[ https://issues.apache.org/jira/browse/CAMEL-20025?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17778946#comment-17778946 ]
Claus Ibsen commented on CAMEL-20025: ------------------------------------- Yeah for the regen, we could have a little jbang script that calls Region.getRegions() and then lower-case and replace dot with dash, and then ,space with comma. > camel-aws - Should we make region an enum > ----------------------------------------- > > Key: CAMEL-20025 > URL: https://issues.apache.org/jira/browse/CAMEL-20025 > Project: Camel > Issue Type: Improvement > Components: camel-aws > Reporter: Claus Ibsen > Priority: Major > Fix For: 4.x > > > All the aws components has to set region as option. Its a string type. > But the AWS client requests to map this to a Region enum class, that has > hardcoded all known regions in the AWS SDK. There is about 40 regions in > total. > We could make region a Region instead of String in the code, then it will be > an enum automatic with those values. > This makes tooling more friendly as they would show a list of enums to choose > among. -- This message was sent by Atlassian Jira (v8.20.10#820010)