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 SummaryFieldsModifier and TypeFieldDescriptionstatic final StringEnvironment variable name for the AWS access key ID.static final StringAlternate environment variable name for the AWS access key ID.static final StringAlternate environment variable name for the AWS secret key.static final StringEnvironment variable name for the AWS session token.static final StringEnvironment variable name for the AWS secret key.
- 
Constructor SummaryConstructorsConstructorDescriptionEnvironmentAWSCredentialsProvider(io.micronaut.context.env.Environment environment) Constructor.
- 
Method Summary
- 
Field Details- 
ACCESS_KEY_ENV_VAREnvironment variable name for the AWS access key ID.- See Also:
 
- 
ALTERNATE_ACCESS_KEY_ENV_VARAlternate environment variable name for the AWS access key ID.- See Also:
 
- 
SECRET_KEY_ENV_VAREnvironment variable name for the AWS secret key.- See Also:
 
- 
ALTERNATE_SECRET_KEY_ENV_VARAlternate environment variable name for the AWS secret key.- See Also:
 
- 
AWS_SESSION_TOKEN_ENV_VAREnvironment variable name for the AWS session token.- See Also:
 
 
- 
- 
Constructor Details- 
EnvironmentAWSCredentialsProviderpublic EnvironmentAWSCredentialsProvider(io.micronaut.context.env.Environment environment) Constructor.- Parameters:
- environment- environment
 
 
- 
- 
Method Details- 
getCredentialspublic com.amazonaws.auth.AWSCredentials getCredentials()- Specified by:
- getCredentialsin interface- com.amazonaws.auth.AWSCredentialsProvider
 
- 
refreshpublic void refresh()- Specified by:
- refreshin interface- com.amazonaws.auth.AWSCredentialsProvider
 
- 
toString
 
-