DefaultChainBearerTokenProvider
class DefaultChainBearerTokenProvider(val profileName: String? = null, val platformProvider: PlatformProvider = PlatformProvider.System, val httpClient: HttpClientEngine? = null) : CloseableBearerTokenProvider
Default AWS bearer token provider chain used by services marked with @httpBearerAuth
Resolution order:
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: PlatformProvider = PlatformProvider.System, httpClient: HttpClientEngine? = null)