23 lines
631 B
TypeScript
23 lines
631 B
TypeScript
export type AssumeRoleOptions = {
|
|
endpoint: string;
|
|
accessKeyId: string;
|
|
accessKeySecret: string;
|
|
roleArn: string;
|
|
roleSessionName: string;
|
|
policy?: string;
|
|
durationSeconds?: number;
|
|
};
|
|
export declare function stsAssumeRole(options: AssumeRoleOptions): Promise<{
|
|
RequestId: string | undefined;
|
|
AssumedRoleUser: {
|
|
AssumedRoleId: string | undefined;
|
|
Arn: string | undefined;
|
|
};
|
|
Credentials: {
|
|
SecurityToken: string | undefined;
|
|
Expiration: string | undefined;
|
|
AccessKeySecret: string | undefined;
|
|
AccessKeyId: string | undefined;
|
|
};
|
|
}>;
|