Struct aws_sdk_cloudfront::model::CachePolicy [−][src]
#[non_exhaustive]pub struct CachePolicy {
pub id: Option<String>,
pub last_modified_time: Option<Instant>,
pub cache_policy_config: Option<CachePolicyConfig>,
}
Expand description
A cache policy.
When it’s attached to a cache behavior, the cache policy determines the following:
-
The values that CloudFront includes in the cache key. These values can include HTTP headers, cookies, and URL query strings. CloudFront uses the cache key to find an object in its cache that it can return to the viewer.
-
The default, minimum, and maximum time to live (TTL) values that you want objects to stay in the CloudFront cache.
The headers, cookies, and query strings that are included in the cache key are automatically
included in requests that CloudFront sends to the origin. CloudFront sends a request when it can’t
find a valid object in its cache that matches the request’s cache key. If you want to
send values to the origin but not include them in the cache key,
use OriginRequestPolicy
.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.id: Option<String>
The unique identifier for the cache policy.
last_modified_time: Option<Instant>
The date and time when the cache policy was last modified.
cache_policy_config: Option<CachePolicyConfig>
The cache policy configuration.
Implementations
The date and time when the cache policy was last modified.
The cache policy configuration.
Creates a new builder-style object to manufacture CachePolicy
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for CachePolicy
impl Send for CachePolicy
impl Sync for CachePolicy
impl Unpin for CachePolicy
impl UnwindSafe for CachePolicy
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more