Class InstanceProfileRegionProvider

  • All Implemented Interfaces:
    AwsRegionProvider

    public final class InstanceProfileRegionProvider
    extends Object
    implements AwsRegionProvider
    Attempts to load region information from the EC2 Metadata service. If the application is not running on EC2 this provider will thrown an exception.

    If SdkSystemSetting.AWS_EC2_METADATA_DISABLED is set to true, it will not try to load region from EC2 metadata service and will return null.