Metzploreur/node_modules/@aws-sdk/credential-providers/dist-types/ts3.4/fromTemporaryCredentials.d.ts
clement callaert 244d45ceb8 Version 2
2023-11-01 17:33:25 +01:00

21 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;