EnvironmentRegionProvider

class EnvironmentRegionProvider(environ: EnvironmentProvider = PlatformProvider.System) : RegionProvider

RegionProvider that checks AWS_REGION region environment variable

Parameters

environ

the environment mapping to lookup keys in (defaults to the system environment)

Constructors

Link copied to clipboard
constructor(environ: EnvironmentProvider = PlatformProvider.System)

Functions

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

Return the region name to use. If region information is not available, implementations should return null