22 lines
724 B
TypeScript
22 lines
724 B
TypeScript
|
import { AssumeRoleCommandInput, STSClientConfig } from "@aws-sdk/client-sts";
|
||
|
import {
|
||
|
AwsCredentialIdentity,
|
||
|
AwsCredentialIdentityProvider,
|
||
|
Pluggable,
|
||
|
} from "@smithy/types";
|
||
|
export interface FromTemporaryCredentialsOptions {
|
||
|
params: Pick<
|
||
|
AssumeRoleCommandInput,
|
||
|
Exclude<keyof AssumeRoleCommandInput, "RoleSessionName">
|
||
|
> & {
|
||
|
RoleSessionName?: string;
|
||
|
};
|
||
|
masterCredentials?: AwsCredentialIdentity | AwsCredentialIdentityProvider;
|
||
|
clientConfig?: STSClientConfig;
|
||
|
clientPlugins?: Pluggable<any, any>[];
|
||
|
mfaCodeProvider?: (mfaSerial: string) => Promise<string>;
|
||
|
}
|
||
|
export declare const fromTemporaryCredentials: (
|
||
|
options: FromTemporaryCredentialsOptions
|
||
|
) => AwsCredentialIdentityProvider;
|