Skip to content

Commit

Permalink
fix missing AccountIDEndpointMode binding (#3013)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucix-aws authored Feb 17, 2025
1 parent 90f9d10 commit 8b7c7bf
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 19 deletions.
9 changes: 0 additions & 9 deletions .changelog/3BE795A2-340F-4D5A-B237-8CE604BCB8E9.json

This file was deleted.

8 changes: 8 additions & 0 deletions .changelog/470a22d1d8304095b12f990c45e9f951.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"id": "470a22d1-d830-4095-b12f-990c45e9f951",
"type": "bugfix",
"description": "Add missing AccountIDEndpointMode binding to endpoint resolution.",
"modules": [
"service/dynamodb"
]
}
10 changes: 0 additions & 10 deletions .changelog/adfe779a-b5b4-44bd-8e23-5cdb4db5aef8.json

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ public class AwsEndpointBuiltins implements GoIntegration {
goTemplate("$T(options.DisableMultiRegionAccessPoints)", SdkGoTypes.Aws.Bool);
private static final GoWriter.Writable BindAccountID =
goTemplate("resolveAccountID(getIdentity(ctx), options.AccountIDEndpointMode)");
private static final GoWriter.Writable BindAccountIDEndpointMode =
goTemplate("$T(string(options.AccountIDEndpointMode))", SdkGoTypes.Aws.String);

@Override
public List<RuntimeClientPlugin> getClientPlugins() {
Expand All @@ -55,6 +57,7 @@ public List<RuntimeClientPlugin> getClientPlugins() {
.addEndpointBuiltinBinding("AWS::S3::DisableMultiRegionAccessPoints", BindAwsS3DisableMultiRegionAccessPoints)
.addEndpointBuiltinBinding("AWS::S3Control::UseArnRegion", BindAwsS3UseArnRegion)
.addEndpointBuiltinBinding("AWS::Auth::AccountId", BindAccountID)
.addEndpointBuiltinBinding("AWS::Auth::AccountIdEndpointMode", BindAccountIDEndpointMode)
.build());
}

Expand Down
1 change: 1 addition & 0 deletions service/dynamodb/endpoints.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8b7c7bf

Please sign in to comment.