public static enum AWSConfigConstants.CredentialProvider extends Enum<AWSConfigConstants.CredentialProvider>
AwsCredentialsProvider will be used.| 枚举常量和说明 |
|---|
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.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static AWSConfigConstants.CredentialProvider |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static AWSConfigConstants.CredentialProvider[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
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 - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.