Expand description
AWS-specific formatting.
Any creation of strings goes here.
Functions§
- authorization_
header_ string - Generate the AWS authorization header.
- canonical_
query_ string - Generate a canonical query string from the query pairs in the given URL.
- canonical_
request_ string - Generate a canonical request. Assumes headers are already sorted and aws canonical.
- canonical_
uri_ string - Generate a canonical URI string from the given URL. This is used in the AWS canonical request. It is always the path of the URL with percent encoding applied.
- credential_
scope_ string - Generate an AWS scope string. This is used in the AWS authorization header. It is always YYYYMMDD’T’HHMMSS’Z’/region/service/aws4_request.
- get_
keys - Get the keys from a list of key-value pairs. Allocates.
- query_
params_ string - Get the query params string. It is always ?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=credential&X-Amz-Date=long_date&X-Amz-Expires=expires&X-Amz-SignedHeaders=signed_headers. The credential is always access_key/credential_scope_string(datetime, region, service) with percent encoding. The datetime is always to_long_datetime(datetime).
- security_
token_ string - Get the security token string. It is always &X-Amz-Security-Token=token with percent encoding.
- string_
to_ sign - Generate the AWS string to sign. This is used in the AWS authorization header.
- to_
long_ datetime - Convert a
time::OffsetDateTimeto a long date string. This is used in the AWS credential scope. It is always UTC, YYYYMMDD’T’HHMMSS’Z’, sortable and lexicographically comparable. - to_
short_ datetime - Convert a
time::OffsetDateTimeto a short date string. This is used in the AWS credential scope. It is always UTC, YYYYMMDD, sortable and lexicographically comparable. - uri_
encode - Encode a URI following the specific requirements of the AWS service.