Skip to content

Resolve AWS endpoints with the AWS rules extension - #973

Open
stobrien89 wants to merge 1 commit into
python-client-sigv4from
python-client-aws-endpoints
Open

stobrien89 wants to merge 1 commit into
python-client-sigv4from
python-client-aws-endpoints

Conversation

@stobrien89

Copy link
Copy Markdown
Contributor

Issue #, if available:

Stacked on #971.

Description of changes:

AWS endpoint rules now work in Python clients, matching Java's AwsEndpointRulesIntegration:

  • The default resolver is BddEndpointResolver(BDD, extensions=[AWS_RULES_EXTENSION]) for AWS services and for any service whose rules use aws.* functions or AWS::* built-ins. Generation no longer rejects aws.partition, aws.parseArn and aws.isVirtualHostableS3Bucket.
  • AWS configs get use_fips_endpoint, use_dualstack_endpoint and account_id_endpoint_mode when their rules declare those built-ins, resolved from the environment and profile.
  • Generated endpoint tests set AWS built-ins from a case, pass the extension to the checks, and use a region and static test credentials so nothing reads the environment.

New ClientIntegration hooks: rules_extensions and endpoint_test_builtin.

The features-client fixture now uses aws.partition, AWS::UseFIPS and an endpoint auth scheme. Its 17 generated endpoint tests all pass with none skipped, the same cases Java generates. All 435 AWS models now plan their endpoints.

S3 bucket and S3 Control account ID host prefix handling come with S3 support.

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

@stobrien89
stobrien89 requested a review from a team as a code owner November 21, 2026 21:55
@stobrien89
stobrien89 added this pull request to stack #972 November 22, 2026 17:38
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.

1 participant