import { AwsCredentialIdentityProvider } from '@aws-sdk/types'; /** * A set of credentials information for an AWS account. * * @public */ export type AwsCredentialProvider = { /** * The AWS account ID of these credentials */ accountId?: string; /** * The STS region used with these credentials */ stsRegion?: string; /** * The credential identity provider to use when creating AWS SDK for Javascript V3 clients */ sdkCredentialProvider: AwsCredentialIdentityProvider; }; /** * The options for specifying the AWS credentials to retrieve. * * @public */ export type AwsCredentialProviderOptions = { /** * The AWS account ID, e.g. '0123456789012' */ accountId?: string; /** * The resource ARN that will be accessed with the returned credentials. * If account ID or region are not specified, they will be inferred from the ARN. */ arn?: string; }; /** * This allows implementations to be provided to retrieve AWS credentials. * * @public */ export interface AwsCredentialsManager { /** * Get credentials for an AWS account. */ getCredentialProvider(opts?: AwsCredentialProviderOptions): Promise; }