Skip to main content

rustack_cloudfront_model/
lib.rs

1#![allow(clippy::struct_excessive_bools)]
2//! CloudFront type model for Rustack.
3//!
4//! Defines the domain types for the CloudFront management API (distributions,
5//! invalidations, origin access controls, cache/origin/response-header policies,
6//! key groups, public keys, functions, field-level encryption, realtime log
7//! configs, tags) and the error type used across the HTTP and provider layers.
8//!
9//! Wire-format XML (request parsing and response rendering) lives in the
10//! companion `rustack-cloudfront-http` crate. This crate is dependency-free of
11//! HTTP plumbing so it can be reused from both management and data-plane
12//! code.
13
14pub mod error;
15pub mod ids;
16pub mod tags;
17pub mod types;
18
19pub use error::CloudFrontError;
20pub use ids::{DistributionId, InvalidationId, ResourceId};
21pub use tags::{Tag, TagSet};
22pub use types::*;
23
24/// XML namespace for the 2020-05-31 CloudFront API.
25pub const CLOUDFRONT_XML_NAMESPACE: &str = "http://cloudfront.amazonaws.com/doc/2020-05-31/";
26
27/// API version string used in URL paths.
28pub const CLOUDFRONT_API_VERSION: &str = "2020-05-31";