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

codegen aws regions enums based on partitions.json #3059

Merged
merged 1 commit into from
Jul 29, 2024
Merged

Conversation

sbiscigl
Copy link
Contributor

Issue #, if available:

issues/3057

Description of changes:

codegen Region.h enum from partitions.json instead of hand editing to prevent potential errors from hand editing adding new regions.

Check all that applies:

  • Did a review by yourself.
  • Added proper tests to cover this PR. (If tests are not applicable, explain.)
  • Checked if this PR is a breaking (APIs have been changed) change.
  • Checked if this PR will not introduce cross-platform inconsistent behavior.
  • Checked if this PR would require a ReadMe/Wiki update.

Check which platforms you have built SDK on to verify the correctness of this PR.

  • Linux
  • Windows
  • Android
  • MacOS
  • IOS
  • Other Platforms

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@@ -16,44 +15,48 @@ namespace Aws
*/
namespace Region
{
// AWS_GLOBAL is a pseudo region that can be used to tell SDK to use the service global endpoint if there is any.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you want to keep that comment about global?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nah now that theres several global regions, and putting the global region as the first entry of the enum adds a bit of weird custom logic that makes this change a bit messy.

also existing AWS documentation on this exists that users could refer to.

aws-global specifies the global endpoint for services that support a separate global endpoint in addition to Regional endpoints, such as AWS Security Token Service (AWS STS) and Amazon Simple Storage Service (Amazon S3).

@sbiscigl sbiscigl marked this pull request as ready for review July 29, 2024 13:15
@sbiscigl sbiscigl merged commit 47de5e4 into main Jul 29, 2024
3 of 4 checks passed
@sbiscigl sbiscigl deleted the codegen-regions branch July 29, 2024 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Invalid Region Constant in Aws::Region (AP_NORTHEAST_4) & Missing Region Constant (AP_SOUTHEAST_4)
3 participants