public final class EnvironmentAwsCredentialsProvider
extends java.lang.Object
implements software.amazon.awssdk.auth.credentials.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.
|
Modifier and Type | Method and Description |
---|---|
static EnvironmentAwsCredentialsProvider |
create(io.micronaut.context.env.Environment environment) |
software.amazon.awssdk.auth.credentials.AwsCredentials |
resolveCredentials() |
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 static EnvironmentAwsCredentialsProvider create(io.micronaut.context.env.Environment environment)
environment
- The Micronaut environmentEnvironmentAwsCredentialsProvider
instance.public software.amazon.awssdk.auth.credentials.AwsCredentials resolveCredentials()
resolveCredentials
in interface software.amazon.awssdk.auth.credentials.AwsCredentialsProvider
public java.lang.String toString()
toString
in class java.lang.Object