interface SignatureV4Init {
    applyChecksum?: boolean;
    credentials: AwsCredentialIdentity | Provider<AwsCredentialIdentity>;
    region: string | Provider<string>;
    service: string;
    sha256: ChecksumConstructor | HashConstructor;
    uriEscapePath?: boolean;
}

Properties

applyChecksum?: boolean

Whether to calculate a checksum of the request body and include it as either a request header (when signing) or as a query string parameter (when presigning). This is required for AWS Glacier and Amazon S3 and optional for every other AWS service as of late 2017.

Default

[true]

The credentials with which the request should be signed or a function that returns a promise that will be resolved with credentials.

region: string | Provider<string>

The region name or a function that returns a promise that will be resolved with the region name.

service: string

The service signing name.

A constructor function for a hash object that will calculate SHA-256 HMAC checksums.

uriEscapePath?: boolean

Whether to uri-escape the request URI path as part of computing the canonical request string. This is required for every AWS service, except Amazon S3, as of late 2017.

Default

[true]