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
,software.amazon.awssdk.identity.spi.IdentityProvider<software.amazon.awssdk.identity.spi.AwsCredentialsIdentity>
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
Modifier 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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.awssdk.auth.credentials.AwsCredentialsProvider
identityType, resolveIdentity
Methods inherited from interface software.amazon.awssdk.identity.spi.IdentityProvider
resolveIdentity, resolveIdentity
-
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
-