Package io.micronaut.aws.sdk.v1
Class EnvironmentAWSCredentialsProvider
java.lang.Object
io.micronaut.aws.sdk.v1.EnvironmentAWSCredentialsProvider
- All Implemented Interfaces:
com.amazonaws.auth.AWSCredentialsProvider
public class EnvironmentAWSCredentialsProvider
extends Object
implements com.amazonaws.auth.AWSCredentialsProvider
A
AWSCredentialsProvider
that reads from the Environment
.- Since:
- 1.0
- Author:
- graemerocher
-
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. -
Constructor Summary
ConstructorDescriptionEnvironmentAWSCredentialsProvider
(io.micronaut.context.env.Environment environment) Constructor. -
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:
-
-
Constructor Details
-
EnvironmentAWSCredentialsProvider
public EnvironmentAWSCredentialsProvider(io.micronaut.context.env.Environment environment) Constructor.- Parameters:
environment
- environment
-
-
Method Details
-
getCredentials
public com.amazonaws.auth.AWSCredentials getCredentials()- Specified by:
getCredentials
in interfacecom.amazonaws.auth.AWSCredentialsProvider
-
refresh
public void refresh()- Specified by:
refresh
in interfacecom.amazonaws.auth.AWSCredentialsProvider
-
toString
-