[−][src]Struct rusoto_cloudfront::CachePolicy
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
cache_policy_config: CachePolicyConfig
The cache policy configuration.
id: String
The unique identifier for the cache policy.
last_modified_time: String
The date and time when the cache policy was last modified.
Trait Implementations
impl Clone for CachePolicy
[src]
pub fn clone(&self) -> CachePolicy
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for CachePolicy
[src]
impl Default for CachePolicy
[src]
pub fn default() -> CachePolicy
[src]
impl PartialEq<CachePolicy> for CachePolicy
[src]
pub fn eq(&self, other: &CachePolicy) -> bool
[src]
pub fn ne(&self, other: &CachePolicy) -> bool
[src]
impl StructuralPartialEq for CachePolicy
[src]
Auto Trait Implementations
impl RefUnwindSafe for CachePolicy
[src]
impl Send for CachePolicy
[src]
impl Sync for CachePolicy
[src]
impl Unpin for CachePolicy
[src]
impl UnwindSafe for CachePolicy
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,