Class AwsSessionCredentials.Builder
java.lang.Object
software.amazon.awssdk.auth.credentials.AwsSessionCredentials.Builder
- Enclosing class:
AwsSessionCredentials
A builder for creating an instance of
AwsSessionCredentials
. This can be created with the static
AwsSessionCredentials.builder()
method.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccessKeyId
(String accessKeyId) The AWS access key, used to identify the user interacting with services.build()
expirationTime
(Instant expirationTime) The time after which this identity will no longer be valid.secretAccessKey
(String secretAccessKey) The AWS secret access key, used to authenticate the user interacting with services.sessionToken
(String sessionToken) The AWS session token, retrieved from an AWS token service, used for authenticating that this user has received temporary permission to access some resource.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
accessKeyId
The AWS access key, used to identify the user interacting with services. Required. -
secretAccessKey
The AWS secret access key, used to authenticate the user interacting with services. Required -
sessionToken
The AWS session token, retrieved from an AWS token service, used for authenticating that this user has received temporary permission to access some resource. Required -
expirationTime
The time after which this identity will no longer be valid. If this is empty, an expiration time is not known (but the identity may still expire at some time in the future). -
build
-