STS
fun CredentialsProvider.Companion.STS(sts: STS, clock: Clock, gracePeriod: Duration, assumeRole: () -> STSAction<out AssumedRole>): CredentialsProvider
Refreshing credentials provider for getting credentials based on assuming a role in STS.
fun CredentialsProvider.Companion.STS(sts: STS, roleArn: ARN, roleSessionName: RoleSessionName? = null, clock: Clock = Clock.systemUTC(), gracePeriod: Duration = ofSeconds(300)): CredentialsProvider
fun CredentialsProvider.Companion.STS(env: Map<String, String> = System.getenv(), http: HttpHandler = JavaHttpClient(), clock: Clock = Clock.systemUTC(), gracePeriod: Duration = ofSeconds(300)): CredentialsProvider
fun CredentialsProvider.Companion.STS(env: Environment, http: HttpHandler = JavaHttpClient(), clock: Clock = Clock.systemUTC(), gracePeriod: Duration = ofSeconds(300)): CredentialsProvider