@aws-sdk/credential-provider-ini
Version:
AWS credential provider that sources credentials from ~/.aws/credentials and ~/.aws/config
17 lines (16 loc) • 603 B
TypeScript
import { AwsIdentityProperties } from "@aws-sdk/types";
import { AwsCredentialIdentity, Profile } from "@smithy/types";
import { FromIniInit } from "./fromIni";
export interface WebIdentityProfile extends Profile {
web_identity_token_file: string;
role_arn: string;
role_session_name?: string;
}
export declare const isWebIdentityProfile: (
arg: any
) => arg is WebIdentityProfile;
export declare const resolveWebIdentityCredentials: (
profile: WebIdentityProfile,
options: FromIniInit,
callerClientConfig?: AwsIdentityProperties["callerClientConfig"]
) => Promise<AwsCredentialIdentity>;