StsWebIdentityCredentialsProvider
class StsWebIdentityCredentialsProvider(val webIdentityParameters: AssumeRoleWithWebIdentityParameters, val region: String?, val platformProvider: PlatformProvider = PlatformProvider.System, val httpClient: HttpClientEngine? = null) : CredentialsProvider
A CredentialsProvider that exchanges a Web Identity Token for credentials from the AWS Security Token Service (STS).
Parameters
webIdentityParameters
The parameters to pass to the AssumeRoleWithWebIdentity
call
region
The AWS region to assume the role in
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(roleArn: String, webIdentityTokenFilePath: String, region: String?, roleSessionName: String? = null, duration: Duration = DEFAULT_CREDENTIALS_REFRESH_SECONDS.seconds, platformProvider: PlatformProvider = PlatformProvider.System, httpClient: HttpClientEngine? = null)
A CredentialsProvider that exchanges a Web Identity Token for credentials from the AWS Security Token Service (STS).
constructor(webIdentityParameters: AssumeRoleWithWebIdentityParameters, region: String?, platformProvider: PlatformProvider = PlatformProvider.System, httpClient: HttpClientEngine? = null)