From 10ae112da5595bb9742ba1c76876a9f224e48a15 Mon Sep 17 00:00:00 2001 From: Matas Lauzadis Date: Fri, 28 Feb 2025 20:07:05 -0500 Subject: [PATCH 1/2] Remove `@InternalApi` from SdkClientOption extension functions --- .../src/aws/smithy/kotlin/runtime/client/SdkClientOption.kt | 4 ---- 1 file changed, 4 deletions(-) diff --git a/runtime/smithy-client/common/src/aws/smithy/kotlin/runtime/client/SdkClientOption.kt b/runtime/smithy-client/common/src/aws/smithy/kotlin/runtime/client/SdkClientOption.kt index 49045379b3..8b32ecbfe7 100644 --- a/runtime/smithy-client/common/src/aws/smithy/kotlin/runtime/client/SdkClientOption.kt +++ b/runtime/smithy-client/common/src/aws/smithy/kotlin/runtime/client/SdkClientOption.kt @@ -48,27 +48,23 @@ public object SdkClientOption { /** * Get the [IdempotencyTokenProvider] from the context. If one is not set the default will be returned. */ -@InternalApi public val ExecutionContext.idempotencyTokenProvider: IdempotencyTokenProvider get() = getOrNull(SdkClientOption.IdempotencyTokenProvider) ?: IdempotencyTokenProvider.Default /** * Get the [LogMode] from the context. If one is not set a default will be returned */ -@InternalApi public val ExecutionContext.logMode: LogMode get() = getOrNull(SdkClientOption.LogMode) ?: LogMode.Default /** * Get the name of the operation being invoked from the context. */ -@InternalApi public val ExecutionContext.operationName: String? get() = getOrNull(SdkClientOption.OperationName) /** * Get the name of the service being invoked from the context. */ -@InternalApi public val ExecutionContext.serviceName: String? get() = getOrNull(SdkClientOption.ServiceName) From d9dac8dc0f2ea8e314be513e4af3fa7357c30268 Mon Sep 17 00:00:00 2001 From: Matas Lauzadis Date: Fri, 28 Feb 2025 20:09:41 -0500 Subject: [PATCH 2/2] ktlint --- .../src/aws/smithy/kotlin/runtime/client/SdkClientOption.kt | 1 - 1 file changed, 1 deletion(-) diff --git a/runtime/smithy-client/common/src/aws/smithy/kotlin/runtime/client/SdkClientOption.kt b/runtime/smithy-client/common/src/aws/smithy/kotlin/runtime/client/SdkClientOption.kt index 8b32ecbfe7..226ff8efbd 100644 --- a/runtime/smithy-client/common/src/aws/smithy/kotlin/runtime/client/SdkClientOption.kt +++ b/runtime/smithy-client/common/src/aws/smithy/kotlin/runtime/client/SdkClientOption.kt @@ -5,7 +5,6 @@ package aws.smithy.kotlin.runtime.client -import aws.smithy.kotlin.runtime.InternalApi import aws.smithy.kotlin.runtime.collections.AttributeKey import aws.smithy.kotlin.runtime.operation.ExecutionContext