Package-level declarations

Types

Link copied to clipboard

RegionProvider that looks for region in this order:

Link copied to clipboard
class EnvironmentRegionProvider(environ: <Error class: unknown class> = PlatformProvider.System)

RegionProvider that checks AWS_REGION region environment variable

Link copied to clipboard
class ImdsRegionProvider(client: <Error class: unknown class><InstanceMetadataProvider> = lazy { ImdsClient() }, platformProvider: <Error class: unknown class> = PlatformProvider.System)

RegionProvider that uses EC2 instance metadata service (IMDS) to provider region information

Link copied to clipboard
class JvmSystemPropRegionProvider(propertyProvider: PropertyProvider = PlatformProvider.System) : RegionProvider

RegionProvider that checks aws.region system property

Link copied to clipboard
class ProfileRegionProvider(profile: <Error class: unknown class><AwsProfile> = asyncLazy { loadAwsSharedConfig(PlatformProvider.System).activeProfile })

RegionProvider that sources region information from the active profile

Functions

Link copied to clipboard

Determines if the given region is valid for the purposes of endpoint lookup, specifically that the region is suitable to use in a URI hostname according to RFC 3986 § 3.2.2.

Link copied to clipboard
suspend fun resolveRegion(platformProvider: <Error class: unknown class> = PlatformProvider.System, profile: <Error class: unknown class><AwsProfile> = asyncLazy { loadAwsSharedConfig(platformProvider).activeProfile }): String?

Attempt to resolve the AWS region to which requests should be made. Returns null if none was detected.

Link copied to clipboard
suspend fun resolveSigV4aSigningRegionSet(platform: <Error class: unknown class> = PlatformProvider.System, profile: <Error class: unknown class><AwsProfile>): Set<String>?

Attempts to resolve sigV4aSigningRegionSet from the JVM system properties, environment variables, and file based configuration

Link copied to clipboard

Validates that a region is suitable to use in a URI hostname according to RFC 3986 § 3.2.2. See isRegionValid for a detailed description of the validation criteria.