pub struct DistributionConfig {Show 22 fields
pub caller_reference: String,
pub aliases: Vec<String>,
pub default_root_object: String,
pub origins: Vec<Origin>,
pub origin_groups: Vec<OriginGroup>,
pub default_cache_behavior: CacheBehavior,
pub cache_behaviors: Vec<CacheBehavior>,
pub custom_error_responses: Vec<CustomErrorResponse>,
pub comment: String,
pub logging: LoggingConfig,
pub price_class: String,
pub enabled: bool,
pub viewer_certificate: ViewerCertificate,
pub restrictions: Restrictions,
pub web_acl_id: String,
pub http_version: String,
pub is_ipv6_enabled: bool,
pub continuous_deployment_policy_id: String,
pub staging: bool,
pub anycast_ip_list_id: String,
pub connection_mode: String,
pub tenant_config_parameters: Vec<TenantConfigParameter>,
}Expand description
Distribution configuration.
Mirrors AWS DistributionConfig. Optional subsections that AWS always emits
(like Aliases, CustomErrorResponses, Restrictions) are modelled as
default-constructible structs rather than Option<T>.
Fields§
§caller_reference: StringIdempotency token supplied by the caller.
aliases: Vec<String>Alternate CNAMEs.
default_root_object: StringDefault root object (e.g. index.html).
origins: Vec<Origin>Origin list.
origin_groups: Vec<OriginGroup>Origin groups (failover pairs).
default_cache_behavior: CacheBehaviorCatch-all cache behavior.
cache_behaviors: Vec<CacheBehavior>Ordered prefixed cache behaviors.
custom_error_responses: Vec<CustomErrorResponse>Custom error response overrides.
comment: StringOptional comment.
logging: LoggingConfigLogging settings.
price_class: StringPriceClass_All, PriceClass_100, PriceClass_200.
enabled: boolWhether the distribution is enabled.
viewer_certificate: ViewerCertificateViewer certificate settings.
restrictions: RestrictionsGeo restrictions.
web_acl_id: StringARN of WAF WebACL (stored only).
http_version: StringHTTP version (http1.1, http2, http2and3, http3).
is_ipv6_enabled: boolWhether IPv6 is enabled.
continuous_deployment_policy_id: StringContinuous deployment policy ID (stored only).
staging: boolWhether this is a staging distribution.
anycast_ip_list_id: StringAnycast IP list ID (stored only).
connection_mode: StringConnection mode: direct or tenant-only.
tenant_config_parameters: Vec<TenantConfigParameter>TenantConfig parameter definitions (stored only).
Trait Implementations§
Source§impl Clone for DistributionConfig
impl Clone for DistributionConfig
Source§fn clone(&self) -> DistributionConfig
fn clone(&self) -> DistributionConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more