public static enum AWSConfigConstants.CredentialProvider extends Enum<AWSConfigConstants.CredentialProvider>
AWSCredentialsProvider will be used.| Enum Constant and Description |
|---|
ASSUME_ROLE
Create AWS credentials by assuming a role.
|
AUTO
A credentials provider chain will be used that searches for credentials in this order: ENV_VARS, SYS_PROPS, WEB_IDENTITY_TOKEN, PROFILE in the AWS instance metadata.
|
BASIC
Simply create AWS credentials by supplying the AWS access key ID and AWS secret key in the configuration properties.
|
ENV_VAR
Look for the environment variables AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY to create AWS credentials.
|
PROFILE
Use a AWS credentials profile file to create the AWS credentials.
|
SYS_PROP
Look for Java system properties aws.accessKeyId and aws.secretKey to create AWS credentials.
|
WEB_IDENTITY_TOKEN
Use AWS WebIdentityToken in order to assume a role.
|
| Modifier and Type | Method and Description |
|---|---|
static AWSConfigConstants.CredentialProvider |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AWSConfigConstants.CredentialProvider[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AWSConfigConstants.CredentialProvider ENV_VAR
public static final AWSConfigConstants.CredentialProvider SYS_PROP
public static final AWSConfigConstants.CredentialProvider PROFILE
public static final AWSConfigConstants.CredentialProvider BASIC
public static final AWSConfigConstants.CredentialProvider ASSUME_ROLE
public static final AWSConfigConstants.CredentialProvider WEB_IDENTITY_TOKEN
public static final AWSConfigConstants.CredentialProvider AUTO
public static AWSConfigConstants.CredentialProvider[] values()
for (AWSConfigConstants.CredentialProvider c : AWSConfigConstants.CredentialProvider.values()) System.out.println(c);
public static AWSConfigConstants.CredentialProvider valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.