SsoCredentialsProvider
constructor(accountId: String, roleName: String, startUrl: String, ssoRegion: String, ssoSessionName: String? = null, httpClient: HttpClientEngine? = null, platformProvider: PlatformProvider = PlatformProvider.System, clock: Clock = Clock.System)
Parameters
accountId
The AWS account ID that temporary AWS credentials will be resolved for
roleName
The IAM role in the AWS account that temporary AWS credentials will be resolved for
startUrl
The start URL (also known as the "User Portal URL") provided by the SSO service
ssoRegion
The AWS region where the SSO directory for the given startUrl is hosted.
ssoSessionName
The SSO Session name from the profile. If a session name is given an SsoTokenProvider will be used to fetch tokens.
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.
platformProvider
The platform provider
clock
The source of time for the provider