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 Details

    • ACCESS_KEY_ENV_VAR

      public static final String ACCESS_KEY_ENV_VAR
      Environment variable name for the AWS access key ID.
      See Also:
    • ALTERNATE_ACCESS_KEY_ENV_VAR

      public static final String ALTERNATE_ACCESS_KEY_ENV_VAR
      Alternate environment variable name for the AWS access key ID.
      See Also:
    • SECRET_KEY_ENV_VAR

      public static final String SECRET_KEY_ENV_VAR
      Environment variable name for the AWS secret key.
      See Also:
    • ALTERNATE_SECRET_KEY_ENV_VAR

      public static final String ALTERNATE_SECRET_KEY_ENV_VAR
      Alternate environment variable name for the AWS secret key.
      See Also:
    • AWS_SESSION_TOKEN_ENV_VAR

      public static final String 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 interface com.amazonaws.auth.AWSCredentialsProvider
    • refresh

      public void refresh()
      Specified by:
      refresh in interface com.amazonaws.auth.AWSCredentialsProvider
    • toString

      public String toString()
      Overrides:
      toString in class Object