Package io.micronaut.aws.sdk.v2
Class EnvironmentAwsCredentialsProvider
java.lang.Object
io.micronaut.aws.sdk.v2.EnvironmentAwsCredentialsProvider
- All Implemented Interfaces:
software.amazon.awssdk.auth.credentials.AwsCredentialsProvider
public final class EnvironmentAwsCredentialsProvider
extends Object
implements software.amazon.awssdk.auth.credentials.AwsCredentialsProvider
A
AwsCredentialsProvider
that reads from the Environment
.- Since:
- 2.0.0
- Author:
- graemerocher, VladimĂr OranĂ˝
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Environment variable name for the AWS access key ID.static final String
Alternate environment variable name for the AWS access key ID.static final String
Alternate environment variable name for the AWS secret key.static final String
Environment variable name for the AWS session token.static final String
Environment variable name for the AWS secret key. -
Method Summary
-
Field Details
-
ACCESS_KEY_ENV_VAR
Environment variable name for the AWS access key ID.- See Also:
-
ALTERNATE_ACCESS_KEY_ENV_VAR
Alternate environment variable name for the AWS access key ID.- See Also:
-
SECRET_KEY_ENV_VAR
Environment variable name for the AWS secret key.- See Also:
-
ALTERNATE_SECRET_KEY_ENV_VAR
Alternate environment variable name for the AWS secret key.- See Also:
-
AWS_SESSION_TOKEN_ENV_VAR
Environment variable name for the AWS session token.- See Also:
-
-
Method Details
-
create
public static EnvironmentAwsCredentialsProvider create(io.micronaut.context.env.Environment environment) - Parameters:
environment
- The Micronaut environment- Returns:
- an
EnvironmentAwsCredentialsProvider
instance.
-
resolveCredentials
public software.amazon.awssdk.auth.credentials.AwsCredentials resolveCredentials()- Specified by:
resolveCredentials
in interfacesoftware.amazon.awssdk.auth.credentials.AwsCredentialsProvider
-
toString
-