You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now, I have to write my own massive switch statement to convert between these enum values. I can't simply cast between them because they're in different orders, which will give "EU West 1" a different value depending on if its a AWSRegionType or a AWSS3BucketLocationConstraint.
I'd like a method, provided by Amazon, that converts these for me. Whenever you add a new region, not only do I have to update the SDK I also have to remember to add the new values to my switch statement.
There's also no clear mapping between AWSS3BucketLocationConstraintEU, for example, and a AWSRegionType - should there be? These can be solved very easily by Amazon providing the method to do this.
The text was updated successfully, but these errors were encountered:
Thanks for reporting this @simonmaddox I will take this as a request to the team. I will update the thread here once we have support for this feature. The constraints are different from the region and agreed that the method will be more useful.
Thanks for opening this feature request. We have no plans to add a new API for mapping between AWSRegionType and AWSS3BucketLocationConstraint at this time.
Right now, I have to write my own massive
switch
statement to convert between these enum values. I can't simply cast between them because they're in different orders, which will give "EU West 1" a different value depending on if its aAWSRegionType
or aAWSS3BucketLocationConstraint
.I'd like a method, provided by Amazon, that converts these for me. Whenever you add a new region, not only do I have to update the SDK I also have to remember to add the new values to my switch statement.
There's also no clear mapping between
AWSS3BucketLocationConstraintEU
, for example, and aAWSRegionType
- should there be? These can be solved very easily by Amazon providing the method to do this.The text was updated successfully, but these errors were encountered: