Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a method to map AWSS3BucketLocationConstraint to AWSRegionType #1033

Closed
simonmaddox opened this issue Sep 6, 2018 · 3 comments
Closed
Labels
feature-request Request a new feature s3 Issues related to S3

Comments

@simonmaddox
Copy link

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.

@rohandubal
Copy link
Contributor

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,
Rohan

@scb01 scb01 added the s3 Issues related to S3 label Sep 23, 2018
@frankmuellr frankmuellr added feature-request Request a new feature and removed enhancement labels Oct 5, 2018
@natanrolnik
Copy link

+1, this is indeed useful.
Also, is there a way to map between a AWSRegionType and the actual string identifier for that region?

@atierian
Copy link
Member

atierian commented Dec 6, 2023

Thanks for opening this feature request. We have no plans to add a new API for mapping between AWSRegionType and AWSS3BucketLocationConstraint at this time.

@atierian atierian closed this as completed Dec 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request a new feature s3 Issues related to S3
Projects
None yet
Development

No branches or pull requests

6 participants