Skip to main content

Module id_gen

Module id_gen 

Source
Expand description

Resource ID and ETag generators.

CloudFront resource IDs are 14-character uppercase alphanumeric strings. Distributions, OACs, cache policies, and most other resources start with E; invalidations start with I.

Functionsยง

deterministic_id_with_prefix
Deterministically derive a 14-character ID from a seed string.
distribution_domain_name
Produce the d{lowercased-id}.{suffix} FQDN for a distribution.
is_valid_resource_id
Shape of a CloudFront resource ID: 14 chars, uppercase alnum, optional prefix.
new_distribution_id
Generate a new 14-character distribution ID starting with E.
new_etag
Generate an opaque ETag token.
new_id_with_prefix
Generate a new 14-character ID with an arbitrary type-prefix letter.
new_invalidation_id
Generate a new 14-character invalidation ID starting with I.
new_s3_canonical_user_id
S3 canonical user ID used for OAI responses. Matches AWS format: 64 hex chars.