Class AwsCredentialsProvider

Credentials providers source the AwsCredentials needed to sign an authenticated AWS request.

We don't currently expose an interface for fetching credentials from Javascript.

Hierarchy

Methods

  • Creates a new default credentials provider to be used internally for AWS credentials resolution:

    The CRT's default provider chain currently sources in this order:

    1. Environment
    2. Profile
    3. (conditional, off by default) ECS
    4. (conditional, on by default) EC2 Instance Metadata

    Parameters

    • bootstrap: undefined | ClientBootstrap = undefined

      (optional) client bootstrap to be used to establish any required network connections

    Returns AwsCredentialsProvider

    a new credentials provider using default credentials resolution rules

  • Creates a new credentials provider that returns a fixed set of credentials.

    Parameters

    • access_key: StringLike

      access key to use in the static credentials

    • secret_key: StringLike

      secret key to use in the static credentials

    • Optional session_token: StringLike

      (optional) session token to use in the static credentials

    Returns AwsCredentialsProvider

    a new credentials provider that will return a fixed set of AWS credentials

Generated using TypeDoc