@NotThreadSafe public abstract static class StsCredentialsProvider.BaseBuilder<B extends StsCredentialsProvider.BaseBuilder<B,T>,T extends ToCopyableBuilder<B,T>> extends Object implements CopyableBuilder<B,T>
Modifier and Type | Method and Description |
---|---|
B |
asyncCredentialUpdateEnabled(Boolean asyncCredentialUpdateEnabled)
Configure whether the provider should fetch credentials asynchronously in the background.
|
T |
build()
Build the credentials provider using the configuration applied to this builder.
|
B |
prefetchTime(Duration prefetchTime)
Configure the amount of time, relative to STS token expiration, that the cached credentials are considered
close to stale and should be updated.
|
B |
staleTime(Duration staleTime)
Configure the amount of time, relative to STS token expiration, that the cached credentials are considered
stale and must be updated.
|
B |
stsClient(StsClient stsClient)
Configure the
StsClient to use when calling STS to update the session. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
copy
applyMutation
public B stsClient(StsClient stsClient)
StsClient
to use when calling STS to update the session. This client should not be shut
down as long as this credentials provider is in use.stsClient
- The STS client to use for communication with STS.public B asyncCredentialUpdateEnabled(Boolean asyncCredentialUpdateEnabled)
By default, this is disabled.
public B staleTime(Duration staleTime)
By default, this is 1 minute.
public B prefetchTime(Duration prefetchTime)
asyncCredentialUpdateEnabled
.
By default, this is 5 minutes.
public T build()
build
in interface Buildable
build
in interface SdkBuilder<B extends StsCredentialsProvider.BaseBuilder<B,T>,T extends ToCopyableBuilder<B,T>>
Copyright © 2023. All rights reserved.