Skip to content

Commit 8b7c7bf

Browse files
authored
fix missing AccountIDEndpointMode binding (#3013)
1 parent 90f9d10 commit 8b7c7bf

File tree

5 files changed

+12
-19
lines changed

5 files changed

+12
-19
lines changed

.changelog/3BE795A2-340F-4D5A-B237-8CE604BCB8E9.json

Lines changed: 0 additions & 9 deletions
This file was deleted.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"id": "470a22d1-d830-4095-b12f-990c45e9f951",
3+
"type": "bugfix",
4+
"description": "Add missing AccountIDEndpointMode binding to endpoint resolution.",
5+
"modules": [
6+
"service/dynamodb"
7+
]
8+
}

.changelog/adfe779a-b5b4-44bd-8e23-5cdb4db5aef8.json

Lines changed: 0 additions & 10 deletions
This file was deleted.

codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/customization/AwsEndpointBuiltins.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ public class AwsEndpointBuiltins implements GoIntegration {
4141
goTemplate("$T(options.DisableMultiRegionAccessPoints)", SdkGoTypes.Aws.Bool);
4242
private static final GoWriter.Writable BindAccountID =
4343
goTemplate("resolveAccountID(getIdentity(ctx), options.AccountIDEndpointMode)");
44+
private static final GoWriter.Writable BindAccountIDEndpointMode =
45+
goTemplate("$T(string(options.AccountIDEndpointMode))", SdkGoTypes.Aws.String);
4446

4547
@Override
4648
public List<RuntimeClientPlugin> getClientPlugins() {
@@ -55,6 +57,7 @@ public List<RuntimeClientPlugin> getClientPlugins() {
5557
.addEndpointBuiltinBinding("AWS::S3::DisableMultiRegionAccessPoints", BindAwsS3DisableMultiRegionAccessPoints)
5658
.addEndpointBuiltinBinding("AWS::S3Control::UseArnRegion", BindAwsS3UseArnRegion)
5759
.addEndpointBuiltinBinding("AWS::Auth::AccountId", BindAccountID)
60+
.addEndpointBuiltinBinding("AWS::Auth::AccountIdEndpointMode", BindAccountIDEndpointMode)
5861
.build());
5962
}
6063

service/dynamodb/endpoints.go

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)