Options
All
  • Public
  • Public/Protected
  • All
Menu

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

  • AwsCredentialsProvider
    • AwsCredentialsProvider

Index

Constructors

Methods

Constructors

Protected constructor

Methods

Static newDefault

  • 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

    • Default value bootstrap: ClientBootstrap | undefined = undefined

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

    Returns AwsCredentialsProvider

    a new credentials provider using default credentials resolution rules

Static newStatic

  • newStatic(access_key: StringLike, secret_key: StringLike, session_token?: StringLike): AwsCredentialsProvider
  • Parameters

    • access_key: StringLike
    • secret_key: StringLike
    • Optional session_token: StringLike

    Returns AwsCredentialsProvider

Generated using TypeDoc