serverless-spy
Version:
CDK-based library for writing elegant integration tests on AWS serverless architecture and an additional web console to monitor events in real time.
13 lines (12 loc) • 681 B
TypeScript
import type { CredentialProviderOptions } from "@aws-sdk/types";
import { AwsCredentialIdentityProvider, Logger } from "@smithy/types";
/**
* @internal
*
* Resolve the `credential_source` entry from the profile, and return the
* credential providers respectively. No memoization is needed for the
* credential source providers because memoization should be added outside the
* fromIni() provider. The source credential needs to be refreshed every time
* fromIni() is called.
*/
export declare const resolveCredentialSource: (credentialSource: string, profileName: string, logger?: Logger) => (options?: CredentialProviderOptions) => Promise<AwsCredentialIdentityProvider>;