DefaultRegionProviderChain
expect class DefaultRegionProviderChain(platformProvider: PlatformProvider = PlatformProvider.System, imdsClient: Lazy<InstanceMetadataProvider> = lazy { ImdsClient() }, profile: LazyAsyncValue<AwsProfile> = asyncLazy { loadAwsSharedConfig(platformProvider).activeProfile }) : RegionProvider, Closeable
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
actual class DefaultRegionProviderChain(platformProvider: PlatformProvider, imdsClient: Lazy<InstanceMetadataProvider>, profile: LazyAsyncValue<AwsProfile>) : RegionProviderChain, RegionProvider, Closeable
actual class DefaultRegionProviderChain(platformProvider: PlatformProvider, imdsClient: Lazy<InstanceMetadataProvider>, profile: LazyAsyncValue<AwsProfile>) : RegionProvider, Closeable
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<InstanceMetadataProvider>, profile: LazyAsyncValue<AwsProfile>)
actual constructor(platformProvider: PlatformProvider, imdsClient: Lazy<InstanceMetadataProvider>, profile: LazyAsyncValue<AwsProfile>)