pub const AMI_ID_PATTERN: &str = r"^ami-([0-9a-f]{8}|[0-9a-f]{17})$";Expand description
Regex for an EC2 AMI identifier: ami- followed by an 8- or 17-character hex id. The two fixed
lengths (not a {8,17} range) reflect the only id widths EC2 issues, so a 9–16 character string
is not mistaken for an AMI id.