UNPKG

@smithy/credential-provider-imds

Version:

AWS credential provider that sources credentials from the EC2 instance metadata service and ECS container metadata service

16 lines (15 loc) 711 B
import type { Logger, Provider } from "@smithy/types"; import type { InstanceMetadataCredentials } from "../types"; /** * IMDS credential supports static stability feature. When used, the expiration * of recently issued credentials is extended. The server side allows using * the recently expired credentials. This mitigates impact when clients using * refreshable credentials are unable to retrieve updates. * * @internal * @param provider Credential provider * @returns A credential provider that supports static stability */ export declare const staticStabilityProvider: (provider: Provider<InstanceMetadataCredentials>, options?: { logger?: Logger; }) => Provider<InstanceMetadataCredentials>;