DefaultRegionProviderChain
RegionProvider that looks for region in this order:
Check
aws.region
system property (JVM only)Check the
AWS_REGION
environment variable (JVM, Node, Native)Check the AWS config files/profile for region information
If running on EC2, check the EC2 metadata service for region
Constructors
Link copied to clipboard
expect constructor(platformProvider: PlatformProvider = PlatformProvider.System, imdsClient: Lazy<InstanceMetadataProvider> = lazy { ImdsClient() }, profile: LazyAsyncValue<AwsProfile> = asyncLazy { loadAwsSharedConfig(platformProvider).activeProfile })
actual constructor(platformProvider: PlatformProvider, imdsClient: Lazy<<Error class: unknown class>>, profile: LazyAsyncValue<<Error class: unknown class>>)
actual constructor(platformProvider: PlatformProvider, imdsClient: Lazy<InstanceMetadataProvider>, profile: LazyAsyncValue<AwsProfile>)