pub struct CacheBehavior {Show 23 fields
pub path_pattern: String,
pub target_origin_id: String,
pub viewer_protocol_policy: String,
pub allowed_methods: Vec<String>,
pub cached_methods: Vec<String>,
pub smooth_streaming: bool,
pub compress: bool,
pub field_level_encryption_id: String,
pub realtime_log_config_arn: String,
pub cache_policy_id: String,
pub origin_request_policy_id: String,
pub response_headers_policy_id: String,
pub grpc_enabled: bool,
pub trusted_signers: Vec<String>,
pub trusted_signers_enabled: bool,
pub trusted_key_groups: Vec<String>,
pub trusted_key_groups_enabled: bool,
pub lambda_function_associations: Vec<LambdaFunctionAssociation>,
pub function_associations: Vec<FunctionAssociation>,
pub forwarded_values: Option<ForwardedValues>,
pub min_ttl: i64,
pub default_ttl: i64,
pub max_ttl: i64,
}Expand description
Cache behavior (default or prefixed).
Fields§
§path_pattern: StringGlob path pattern (empty for DefaultCacheBehavior).
target_origin_id: StringReferenced Origin.id.
viewer_protocol_policy: Stringallow-all, https-only, redirect-to-https.
allowed_methods: Vec<String>Methods the distribution accepts.
cached_methods: Vec<String>Subset of allowed_methods whose responses are cached.
smooth_streaming: boolWhether SmoothStreaming is enabled.
compress: boolWhether to compress responses.
field_level_encryption_id: StringField-level encryption config ID.
realtime_log_config_arn: StringRealtime log config ARN.
cache_policy_id: StringCache policy ID.
origin_request_policy_id: StringOrigin request policy ID.
response_headers_policy_id: StringResponse headers policy ID.
grpc_enabled: boolGrpc config.
trusted_signers: Vec<String>Trusted signers (legacy).
trusted_signers_enabled: boolTrusted signers enabled flag.
trusted_key_groups: Vec<String>Trusted key groups (modern).
trusted_key_groups_enabled: boolTrusted key groups enabled flag.
lambda_function_associations: Vec<LambdaFunctionAssociation>Lambda@Edge associations.
function_associations: Vec<FunctionAssociation>CloudFront Function associations.
forwarded_values: Option<ForwardedValues>Legacy forwarded values (when no CachePolicy is set).
min_ttl: i64Legacy MinTTL (when no CachePolicy is set).
default_ttl: i64Legacy DefaultTTL.
max_ttl: i64Legacy MaxTTL.
Trait Implementations§
Source§impl Clone for CacheBehavior
impl Clone for CacheBehavior
Source§fn clone(&self) -> CacheBehavior
fn clone(&self) -> CacheBehavior
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CacheBehavior
impl Debug for CacheBehavior
Source§impl Default for CacheBehavior
impl Default for CacheBehavior
Source§fn default() -> CacheBehavior
fn default() -> CacheBehavior
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CacheBehavior
impl<'de> Deserialize<'de> for CacheBehavior
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CacheBehavior
impl RefUnwindSafe for CacheBehavior
impl Send for CacheBehavior
impl Sync for CacheBehavior
impl Unpin for CacheBehavior
impl UnsafeUnpin for CacheBehavior
impl UnwindSafe for CacheBehavior
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more