aws-elixir v0.6.0 AWS.Request.Internal View Source

Link to this section Summary

Functions

Add an Authorization header with an AWS4-HMAC-SHA256 signature to the list of headers.

Add an X-Amz-Date header with a long date value in YYMMDDTHHMMSSZ format to a list of headers.

Add an X-Amz-Security-Token if credentials configurations are configured for it

Generate an AWS4-HMAC-SHA256 authorization signature.

Strip leading and trailing whitespace around name and value, convert name to lowercase, and add a trailing newline.

Convert a list of headers to canonical header format. Leading and trailing whitespace around header names and values is stripped, header names are lowercased, and headers are newline-joined in alphabetical order (with a trailing newline).

Process and merge request values into a canonical request for AWS signature version 4.

Generate a credential scope from a short date in YYMMDD format, a region identifier and a service identifier.

Strip leading and trailing whitespace around Name and convert it to lowercase.

Convert a list of headers to canonicals signed header format. Leading and trailing whitespace around names is stripped, header names are lowercased, and header names are semicolon-joined in alphabetical order.

Generate a signing key from a secret access key, a short date in YYMMDD format, a region identifier and a service identifier.

Strip the query string from the URL, if one if present, and return the URL and query string as separate values.

Generate the text to sign from a long date in YYMMDDTHHMMSSZ format, a credential scope and a hashed canonical request.

Link to this section Functions

Link to this function

add_authorization_header(headers, authorization)

View Source

Add an Authorization header with an AWS4-HMAC-SHA256 signature to the list of headers.

Link to this function

add_date_header(headers, date)

View Source

Add an X-Amz-Date header with a long date value in YYMMDDTHHMMSSZ format to a list of headers.

Link to this function

add_security_token(headers, client)

View Source

Add an X-Amz-Security-Token if credentials configurations are configured for it

Link to this function

authorization(access_key_id, credential_scope, signed_headers, signature)

View Source

Generate an AWS4-HMAC-SHA256 authorization signature.

Strip leading and trailing whitespace around name and value, convert name to lowercase, and add a trailing newline.

Link to this function

canonical_headers(headers)

View Source

Convert a list of headers to canonical header format. Leading and trailing whitespace around header names and values is stripped, header names are lowercased, and headers are newline-joined in alphabetical order (with a trailing newline).

Link to this function

canonical_request(method, url, headers, body)

View Source

Process and merge request values into a canonical request for AWS signature version 4.

Link to this function

credential_scope(short_date, region, service)

View Source

Generate a credential scope from a short date in YYMMDD format, a region identifier and a service identifier.

Strip leading and trailing whitespace around Name and convert it to lowercase.

Convert a list of headers to canonicals signed header format. Leading and trailing whitespace around names is stripped, header names are lowercased, and header names are semicolon-joined in alphabetical order.

Link to this function

signing_key(secret_access_key, short_date, region, service)

View Source

Generate a signing key from a secret access key, a short date in YYMMDD format, a region identifier and a service identifier.

Strip the query string from the URL, if one if present, and return the URL and query string as separate values.

Link to this function

string_to_sign(long_date, credential_scope, hashed_canonical_request)

View Source

Generate the text to sign from a long date in YYMMDDTHHMMSSZ format, a credential scope and a hashed canonical request.