Function aws_sign_request

  • Perform AWS HTTP request signing.

    The HttpRequest is transformed asynchronously, according to the AwsSigningConfig.

    When signing:

    1. It is good practice to use a new config for each signature, or the date might get too old.

    2. Do not add the following headers to requests before signing, they may be added by the signer: x-amz-content-sha256, X-Amz-Date, Authorization

    3. Do not add the following query params to requests before signing, they may be added by the signer: X-Amz-Signature, X-Amz-Date, X-Amz-Credential, X-Amz-Algorithm, X-Amz-SignedHeaders

    Parameters

    Returns Promise<HttpRequest>

    A promise whose result will be the signed HttpRequest. The future will contain an exception if the signing process fails.

Generated using TypeDoc