UNPKG

@aws-sdk/credential-provider-ini

Version:

AWS credential provider that sources credentials from ~/.aws/credentials and ~/.aws/config

31 lines (30 loc) 919 B
import { AwsIdentityProperties } from "@aws-sdk/types"; import { Logger, ParsedIniData } from "@smithy/types"; import { FromIniInit } from "./fromIni"; import { ResolveProfileData } from "./resolveProfileData"; export interface AssumeRoleParams { RoleArn: string; RoleSessionName: string; ExternalId?: string; SerialNumber?: string; TokenCode?: string; DurationSeconds?: number; } export declare const isAssumeRoleProfile: ( arg: any, { profile, logger, }?: { profile?: string; logger?: Logger; } ) => boolean; export declare const resolveAssumeRoleCredentials: ( profileName: string, profiles: ParsedIniData, options: FromIniInit, callerClientConfig: AwsIdentityProperties["callerClientConfig"] | undefined, visitedProfiles: Record<string, true> | undefined, resolveProfileData: ResolveProfileData ) => Promise<import("@aws-sdk/types").AttributedAwsCredentialIdentity>;