Interface CredentialManager

Provides AWS credentials that can be used to invoke AWS APIs.

interface CredentialManager {
    createCredentialManagerForRole: (
        iamRoleArn: string,
    ) => Promise<CredentialManager>;
    getCallerIdentity: () => Promise<CallerIdentity>;
    getCredentialProvider: () => AwsCredentialIdentityProvider;
    getCredentials: () => Promise<AwsCredentialIdentity>;
    name: string;
}

Properties

createCredentialManagerForRole: (
    iamRoleArn: string,
) => Promise<CredentialManager>

Create a new credential manager for the given command role.

Type declaration

getCallerIdentity: () => Promise<CallerIdentity>

Type declaration

getCredentialProvider: () => AwsCredentialIdentityProvider

Type declaration

    • (): AwsCredentialIdentityProvider
    • Returns AwsCredentialIdentityProvider

      CredentialProvider

getCredentials: () => Promise<AwsCredentialIdentity>

Type declaration

    • (): Promise<AwsCredentialIdentity>
    • Returns Promise<AwsCredentialIdentity>

      AWS credentials

name: string

Credential manager name