rustack_cloudfront_model/ids.rs
1//! Resource ID and ETag types.
2//!
3//! CloudFront resource IDs are 14-character uppercase alphanumeric strings
4//! prefixed with a type letter ('E' for most resources). ETags use the same
5//! character shape — they are treated as opaque version tokens; they are
6//! *not* MD5 hashes of the config.
7
8/// Generic CloudFront resource ID (14 chars, `[A-Z0-9]`, leading `E`).
9pub type ResourceId = String;
10
11/// Distribution ID (alias for `ResourceId`, for documentation clarity).
12pub type DistributionId = String;
13
14/// Invalidation ID (`I` prefix, 14 chars).
15pub type InvalidationId = String;