Class EnvironmentAwsRegionProvider

java.lang.Object
io.micronaut.aws.sdk.v2.EnvironmentAwsRegionProvider
All Implemented Interfaces:
software.amazon.awssdk.regions.providers.AwsRegionProvider

public class EnvironmentAwsRegionProvider extends Object implements software.amazon.awssdk.regions.providers.AwsRegionProvider
A AwsRegionProvider that reads from the Environment.
Since:
2.0.0
Author:
VladimĂ­r OranĂ˝
  • Field Details

    • REGION_ENV_VAR

      public static final String REGION_ENV_VAR
      Environment variable name for the AWS access key ID.
      See Also:
  • Constructor Details

    • EnvironmentAwsRegionProvider

      public EnvironmentAwsRegionProvider(io.micronaut.context.env.Environment environment)
      Constructor.
      Parameters:
      environment - environment
  • Method Details

    • getRegion

      public software.amazon.awssdk.regions.Region getRegion()
      Specified by:
      getRegion in interface software.amazon.awssdk.regions.providers.AwsRegionProvider
    • toString

      public String toString()
      Overrides:
      toString in class Object