ImdsCredentialsProvider
constructor(profileOverride: String? = null, client: Lazy<InstanceMetadataProvider> = lazy { ImdsClient() }, platformProvider: PlatformEnvironProvider = PlatformProvider.System, clock: Clock = Clock.System)
Parameters
profileOverride
override the instance profile name. When retrieving credentials, a call must first be made to <IMDS_BASE_URL>/latest/meta-data/iam/security-credentials
. This returns the instance profile used. If profileOverride is set, the initial call to retrieve the profile is skipped and the provided value is used instead.
client
the IMDS client to use to resolve credentials information with. This provider takes ownership over the lifetime of the given ImdsClient and will close it when the provider is closed.
platformProvider
the PlatformEnvironProvider instance