DefaultChainBearerTokenProvider

class DefaultChainBearerTokenProvider(val profileName: String? = null, val platformProvider: <Error class: unknown class> = PlatformProvider.System, val httpClient: <Error class: unknown class>? = null)

Default AWS bearer token provider chain used by services marked with @httpBearerAuth

Resolution order:

  1. Profile (ProfileBearerTokenProvider

Closing the chain will close all child providers that implement Closeable.

Parameters

profileName

Override the profile name to use. If not provided it will be resolved internally via environment (see AwsSdkSetting.AwsProfile) or defaulted to default if not configured.

platformProvider

The platform API provider

httpClient

the HttpClientEngine instance to use to make requests. NOTE: This engine's resources and lifetime are NOT managed by the provider. Caller is responsible for closing.

Constructors

Link copied to clipboard
constructor(profileName: String? = null, platformProvider: <Error class: unknown class> = PlatformProvider.System, httpClient: <Error class: unknown class>? = null)

Properties

Link copied to clipboard
val httpClient: <Error class: unknown class>? = null
Link copied to clipboard
val platformProvider: <Error class: unknown class>
Link copied to clipboard
val profileName: String? = null

Functions

Link copied to clipboard
open fun close()
Link copied to clipboard
open suspend fun resolve(attributes: <Error class: unknown class>): <Error class: unknown class>