public class EnvironmentAWSCredentialsProvider
extends java.lang.Object
implements com.amazonaws.auth.AWSCredentialsProvider
AWSCredentialsProvider
that reads from the Environment
.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ACCESS_KEY_ENV_VAR
Environment variable name for the AWS access key ID.
|
static java.lang.String |
ALTERNATE_ACCESS_KEY_ENV_VAR
Alternate environment variable name for the AWS access key ID.
|
static java.lang.String |
ALTERNATE_SECRET_KEY_ENV_VAR
Alternate environment variable name for the AWS secret key.
|
static java.lang.String |
AWS_SESSION_TOKEN_ENV_VAR
Environment variable name for the AWS session token.
|
static java.lang.String |
SECRET_KEY_ENV_VAR
Environment variable name for the AWS secret key.
|
Constructor and Description |
---|
EnvironmentAWSCredentialsProvider(io.micronaut.context.env.Environment environment)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
com.amazonaws.auth.AWSCredentials |
getCredentials() |
void |
refresh() |
java.lang.String |
toString() |
public static final java.lang.String ACCESS_KEY_ENV_VAR
public static final java.lang.String ALTERNATE_ACCESS_KEY_ENV_VAR
public static final java.lang.String SECRET_KEY_ENV_VAR
public static final java.lang.String ALTERNATE_SECRET_KEY_ENV_VAR
public static final java.lang.String AWS_SESSION_TOKEN_ENV_VAR
public EnvironmentAWSCredentialsProvider(io.micronaut.context.env.Environment environment)
environment
- environmentpublic com.amazonaws.auth.AWSCredentials getCredentials()
getCredentials
in interface com.amazonaws.auth.AWSCredentialsProvider
public void refresh()
refresh
in interface com.amazonaws.auth.AWSCredentialsProvider
public java.lang.String toString()
toString
in class java.lang.Object