@cloud-copilot/iam-collect
Version:
Collect IAM information from AWS Accounts
13 lines • 487 B
TypeScript
import { AwsCredentialIdentity } from '@aws-sdk/types';
/**
* Get the AWS account ID and partition from the provided credentials.
*
* @param credentials The AWS credentials to use for the request.
* @returns An object containing the AWS account ID and partition for the provided credentials.
*/
export declare function getTokenInfo(credentials: AwsCredentialIdentity): Promise<{
accountId: string;
partition: string;
arn: string;
}>;
//# sourceMappingURL=tokens.d.ts.map