-
Notifications
You must be signed in to change notification settings - Fork 250
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
Provide a way to get partition from region #811
Comments
interesting—can you provide some more use cases when this is required? This is something we could consider exposing, we have the logic internally but we're often hesitant to expose behavior like this because of backwards and forwards compatibility concerns. |
In Java, I'm using the partition information to get the |
We do have this code internally to resolve endpoints. Wouldn't be necessarily a bad idea to expose it. |
As an example I'm running into today - when setting up a new ACM PCA, one of the fields required is the template ARN, in order to override the default template and use The correct value varies based on the region per the ACM PCA docs:
If I could get the partition from the region, then it would be trivial to generate the ARN, since the other fields are constant. |
Closing this for now, as this isn't something that we plan on supporting in the near future. |
Comments on closed issues are hard for our team to see. |
Describe the feature
Other SDK languages provide rich information about their regions, and specifically what partition they are in (ie. "aws", "aws-cn", etc).
Use Case
Knowing the partition is necessary to generate correct arns and for some business logic which may differ between partitions.
Proposed Solution
No response
Other Information
No response
Acknowledgements
A note for the community
Community Note
The text was updated successfully, but these errors were encountered: