ImdsRegionProvider

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

Parameters

client

the IMDS client to use to resolve region information with

platformProvider

the PlatformEnvironProvider instance

Constructors

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

Functions

Link copied to clipboard
open fun close()
Link copied to clipboard
open suspend fun getRegion(): String?