Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -48,27 +47,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)
Loading