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 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:
  • 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 interface software.amazon.awssdk.auth.credentials.AwsCredentialsProvider
    • toString

      public String toString()
      Overrides:
      toString in class Object