File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed
aws-runtime/aws-config/common/src/aws/sdk/kotlin/runtime/config
codegen/aws-sdk-codegen/src/main/kotlin/aws/sdk/kotlin/codegen Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 55
66package aws.sdk.kotlin.runtime.config
77
8- import aws.smithy.kotlin.runtime.client.SdkClientConfig
9-
108import aws.sdk.kotlin.runtime.region.RegionProvider
9+ import aws.smithy.kotlin.runtime.client.SdkClientConfig
1110
1211/* *
1312 * Base interface all generated AWS SDK Kotlin clients implement
@@ -20,6 +19,7 @@ public interface AwsSdkClientConfig : SdkClientConfig {
2019 * information
2120 */
2221 public val region: String?
22+
2323 /* *
2424 * An optional region provider that determines the AWS region for client operations. When specified, this provider
2525 * takes precedence over the default region provider chain, unless a static region is explicitly configured.
Original file line number Diff line number Diff line change @@ -34,13 +34,14 @@ class AwsServiceConfigIntegration : KotlinIntegration {
3434
3535 propertyType = ConfigPropertyType .Custom (
3636 render = { prop, writer ->
37- writer.write(" override val #1L: #2T? = builder.#1L ?: #3T{ builder.regionProvider?.getRegion() ?: #4T() }" ,
37+ writer.write(
38+ " override val #1L: #2T? = builder.#1L ?: #3T{ builder.regionProvider?.getRegion() ?: #4T() }" ,
3839 prop.propertyName,
3940 prop.symbol,
4041 AwsRuntimeTypes .Coroutines .runBlocking,
41- AwsRuntimeTypes .Config .Region .resolveRegion
42+ AwsRuntimeTypes .Config .Region .resolveRegion,
4243 )
43- }
44+ },
4445 )
4546
4647 order = - 100
Original file line number Diff line number Diff line change @@ -30,4 +30,4 @@ class RegionProviderIntegration : KotlinIntegration {
3030 override fun additionalServiceConfigProps (ctx : CodegenContext ): List <ConfigProperty > = buildList {
3131 add(RegionProviderProp )
3232 }
33- }
33+ }
You can’t perform that action at this time.
0 commit comments