Skip to main content

Crate fakecloud_cloudfront

Crate fakecloud_cloudfront 

Source
Expand description

AWS CloudFront emulation for FakeCloud.

Wire protocol: REST-XML. Requests are routed by HTTP method + URI beneath the /2020-05-31/ API version prefix. SigV4 service name is cloudfront; the service is global so callers always sign for us-east-1.

Re-exports§

pub use state::CloudFrontAccounts;
pub use state::SharedCloudFrontState;

Modules§

cfunctions
cfunctions_service
extras
Data types for CloudFront Batch 6a: VPC Origins, Anycast IP Lists, Trust Stores, Resource Policies.
extras2
Data types for CloudFront Batch 6b: Connection Groups, Domain ops, Managed Certificate Details, UpdateDistributionWithStagingConfig.
extras2_service
Handlers for CloudFront Batch 6b: Connection Groups, Domain ops, Managed Certificate Details, UpdateDistributionWithStagingConfig.
extras_service
Handlers for CloudFront Batch 6a: VPC Origins, Anycast IP Lists, Trust Stores, Resource Policies.
fle
Data types for CloudFront Batch 5 resources: Field-Level Encryption configs + profiles, and Realtime Log Configs.
fle_service
Handlers for CloudFront Field-Level Encryption (configs + profiles) and Realtime Log Configs.
functions
Data types for CloudFront Batch 3 resources: Functions, Public Keys, Key Groups, Key Value Stores, Origin Access Identities (legacy), Monitoring Subscriptions.
functions_service
Handlers for CloudFront Batch 3 resources: Functions, Public Keys, Key Groups, Key Value Stores, Origin Access Identities (legacy), Monitoring Subscriptions.
model
Serde-modeled CloudFront payload types.
policies
Origin Access Control + the four policy resources (cache, origin request, response headers, continuous deployment). Models are defined here and the [CloudFrontService] handlers live in this module too — service.rs only dispatches by action name.
policies_service
Handlers for Batch 2 policy resources. The CRUD shape is identical across all five resource types — every one of them parses a *Config XML body, stores an ETag-versioned record, and emits a small <Resource><Id/><LastModifiedTime/><Config/></Resource> envelope. These handlers are split into their own module to keep service.rs focused on the distribution / invalidation surface.
router
HTTP method + URI to action routing for CloudFront’s REST-XML API.
state
In-memory state for CloudFront resources.
streaming
Data types for CloudFront Batch 4 resources: Streaming Distributions (legacy RTMP), Field-Level Encryption, Realtime Log Configs.
streaming_service
Handlers for CloudFront Streaming Distributions (legacy RTMP).
tenants
tenants_service
xml_io
XML serialization helpers.

Structs§

CloudFrontService

Constants§

API_PREFIX
API_VERSION
NAMESPACE