Skip to content

Commit da6c9c0

Browse files
authored
fix: support client-configured accountIdEndpointMode value (#1265)
1 parent 3c2a9f6 commit da6c9c0

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"id": "6788c4d4-2c98-4119-a9d6-cda9ac29bf02",
3+
"type": "bugfix",
4+
"description": "Support client-configured `accountIdEndpointMode`"
5+
}

codegen/aws-sdk-codegen/src/main/kotlin/aws/sdk/kotlin/codegen/customization/AccountIdEndpointBuiltinCustomization.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class AccountIdEndpointBuiltinCustomization : KotlinIntegration {
4646

4747
private val resolveAccountIdEndpointModeSectionWriter = AppendingSectionWriter { writer ->
4848
writer.write(
49-
"builder.config.#L = #T(profile = activeProfile)",
49+
"builder.config.#1L = builder.config.#1L ?: #2T(profile = activeProfile)",
5050
AccountIdEndpointModeProp.propertyName,
5151
AwsRuntimeTypes.Config.Endpoints.resolveAccountIdEndpointMode,
5252
)

0 commit comments

Comments
 (0)