Skip to main content

Module aws

Module aws 

Source
Expand description

AWS credentials, request signing and event streams for Amazon Bedrock.

The credential chain ports the AWS SDK for JavaScript v3’s defaultProvider, which pi v1.0.0’s Bedrock provider uses: environment keys, the shared config and credentials files (static keys, assumed roles, web identity, credential_process and IAM Identity Center), a web identity token file, then container or instance metadata.

Modules§

eventstream
The application/vnd.amazon.eventstream framing of AWS streaming responses: length-prefixed messages with typed headers and CRC32 checksums, as @smithy/eventstream-codec reads them.
ini
The shared AWS config and credentials files, read as @smithy/shared-ini-file-loader reads them.
sigv4
AWS Signature Version 4 for JSON requests, as @smithy/signature-v4 signs them for services other than S3.

Structs§

AwsEnv
The environment the credential chain reads: the request’s provider settings over the process environment.
Credentials
AWS credentials.

Functions§

default_credentials
The default credential chain for profile (else AWS_PROFILE), with region for Security Token Service (STS) calls. Results are cached until five minutes before they expire.
profile_region
The region of a profile in the config file, as the SDK’s region chain falls back to it.