Package-level declarations

Types

Link copied to clipboard

Indicates that a single attempt took longer than allowed to complete

Link copied to clipboard
fun interface AuthSchemeResolver

Type agnostic version of AuthSchemeProvider. Typically service client specific versions are code generated and then adapted to this generic version for actually executing a request.

Link copied to clipboard

Indicates that a call (including any retry attempts) took longer than allowed to complete

Link copied to clipboard
abstract class ClientTimeoutException(message: String, cause: Throwable, retryable: Boolean)

Indicates that a client-side configured timeout was exceeded (e.g., call timeout, attempt timeout, etc.)

Link copied to clipboard
fun interface EndpointResolver

Type agnostic version of aws.smithy.kotlin.runtime.client.endpoints.EndpointProvider. Typically service client specific versions are code generated and then adapted to this generic version for actually executing a request.

Link copied to clipboard
sealed interface HttpDeserializer<T>

Implemented by types that know how to deserialize from the HTTP protocol.

Link copied to clipboard

Common configuration for an SDK (HTTP) operation/call

Link copied to clipboard
sealed interface HttpSerializer<T>

Implemented by types that know how to serialize to the HTTP protocol.

Link copied to clipboard

Middleware that intercepts the SdkOperationExecution.initialize phase

Link copied to clipboard
interface InlineMiddleware<I, O>

A middleware that directly registers interceptors onto an operation inline in install. This can be useful for example if a middleware needs to hook into multiple phases:

Link copied to clipboard

A middleware that only mutates the outgoing SdkHttpRequest.

Link copied to clipboard

Middleware that intercepts the SdkOperationExecution.mutate phase

Link copied to clipboard
data class OperationAuthConfig(val authSchemeResolver: AuthSchemeResolver, val configuredAuthSchemes: Map<<Error class: unknown class>, <Error class: unknown class>>, val identityProviderConfig: <Error class: unknown class>)

Container for authentication configuration for an operation

Link copied to clipboard
class OperationMetrics(scope: String, val provider: <Error class: unknown class>)

Container for common operation/call metrics

Link copied to clipboard
data class OperationRequest<T>(val context: <Error class: unknown class>, val subject: T)

Wrapper around a type subject with an execution context.

Link copied to clipboard

Middleware that intercepts the SdkOperationExecution.receive phase

Link copied to clipboard
data class ResolveEndpointRequest(val context: <Error class: unknown class>, val httpRequest: <Error class: unknown class>, val identity: <Error class: unknown class>)

Context for EndpointResolver implementations used to drive endpoint resolution

Link copied to clipboard

A (Smithy) HTTP based operation.

Link copied to clipboard
class SdkHttpOperationBuilder<I, O>(inputType: KClass<*>, outputType: KClass<*>)
Link copied to clipboard
typealias SdkHttpRequest = OperationRequest<<Error class: unknown class>>
Link copied to clipboard

Configure the execution of an operation from Request to Response.

Link copied to clipboard

Telemetry parameters used to instrument an operation

Inherited properties

Link copied to clipboard
val <Error class: unknown class>.sdkInvocationId: String

Gets the unique ID that identifies the active SDK request in this ExecutionContext.

Functions

Link copied to clipboard
fun setResolvedEndpoint(req: SdkHttpRequest, endpoint: <Error class: unknown class>)
fun setResolvedEndpoint(req: <Error class: unknown class>, ctx: <Error class: unknown class>, endpoint: <Error class: unknown class>)

Update an existing request with a resolved endpoint.

Inherited functions

Link copied to clipboard
inline fun <I, O> SdkHttpOperationBuilder<I, O>.context(block: <Error class: unknown class>.() -> Unit)

Configure HTTP operation context elements

Link copied to clipboard
suspend fun <I, O, R> SdkHttpOperation<I, O>.execute(httpHandler: <Error class: unknown class><SdkHttpRequest, <Error class: unknown class>>, input: I, block: suspend (O) -> R): R

Make an operation request with the given input and return the result of executing block with the output.

Link copied to clipboard
suspend fun <I, O> SdkHttpOperation<I, O>.roundTrip(httpHandler: <Error class: unknown class><SdkHttpRequest, <Error class: unknown class>>, input: I): O

Round trip an operation using the given HttpHandler

Link copied to clipboard

Configure operation telemetry parameters