Struct aws_sdk_cloudfront::model::cache_policy_config::Builder [−][src]
#[non_exhaustive]pub struct Builder { /* fields omitted */ }
Expand description
A builder for CachePolicyConfig
Implementations
A comment to describe the cache policy. The comment cannot be longer than 128 characters.
A comment to describe the cache policy. The comment cannot be longer than 128 characters.
A unique name to identify the cache policy.
The default amount of time, in seconds, that you want objects to stay in the CloudFront
cache before CloudFront sends another request to the origin to see if the object has been
updated. CloudFront uses this value as the object’s time to live (TTL) only when the origin
does not send Cache-Control
or Expires
headers with the object. For more information, see Managing How Long Content Stays in an Edge Cache (Expiration) in the
Amazon CloudFront Developer Guide.
The default value for this field is 86400 seconds (one day). If the value of
MinTTL
is more than 86400 seconds, then the default value for this field is
the same as the value of MinTTL
.
The default amount of time, in seconds, that you want objects to stay in the CloudFront
cache before CloudFront sends another request to the origin to see if the object has been
updated. CloudFront uses this value as the object’s time to live (TTL) only when the origin
does not send Cache-Control
or Expires
headers with the object. For more information, see Managing How Long Content Stays in an Edge Cache (Expiration) in the
Amazon CloudFront Developer Guide.
The default value for this field is 86400 seconds (one day). If the value of
MinTTL
is more than 86400 seconds, then the default value for this field is
the same as the value of MinTTL
.
The maximum amount of time, in seconds, that objects stay in the CloudFront cache
before CloudFront sends another request to the origin to see if the object has been updated.
CloudFront uses this value only when the origin sends Cache-Control
or
Expires
headers with the object. For more information, see Managing How Long Content Stays in an Edge Cache (Expiration) in the
Amazon CloudFront Developer Guide.
The default value for this field is 31536000 seconds (one year). If the value of
MinTTL
or DefaultTTL
is more than 31536000 seconds, then the
default value for this field is the same as the value of DefaultTTL
.
The maximum amount of time, in seconds, that objects stay in the CloudFront cache
before CloudFront sends another request to the origin to see if the object has been updated.
CloudFront uses this value only when the origin sends Cache-Control
or
Expires
headers with the object. For more information, see Managing How Long Content Stays in an Edge Cache (Expiration) in the
Amazon CloudFront Developer Guide.
The default value for this field is 31536000 seconds (one year). If the value of
MinTTL
or DefaultTTL
is more than 31536000 seconds, then the
default value for this field is the same as the value of DefaultTTL
.
The minimum amount of time, in seconds, that you want objects to stay in the CloudFront cache before CloudFront sends another request to the origin to see if the object has been updated. For more information, see Managing How Long Content Stays in an Edge Cache (Expiration) in the Amazon CloudFront Developer Guide.
The minimum amount of time, in seconds, that you want objects to stay in the CloudFront cache before CloudFront sends another request to the origin to see if the object has been updated. For more information, see Managing How Long Content Stays in an Edge Cache (Expiration) in the Amazon CloudFront Developer Guide.
pub fn parameters_in_cache_key_and_forwarded_to_origin(
self,
input: ParametersInCacheKeyAndForwardedToOrigin
) -> Self
pub fn parameters_in_cache_key_and_forwarded_to_origin(
self,
input: ParametersInCacheKeyAndForwardedToOrigin
) -> Self
The HTTP headers, cookies, and URL query strings to include in the cache key. The values included in the cache key are automatically included in requests that CloudFront sends to the origin.
pub fn set_parameters_in_cache_key_and_forwarded_to_origin(
self,
input: Option<ParametersInCacheKeyAndForwardedToOrigin>
) -> Self
pub fn set_parameters_in_cache_key_and_forwarded_to_origin(
self,
input: Option<ParametersInCacheKeyAndForwardedToOrigin>
) -> Self
The HTTP headers, cookies, and URL query strings to include in the cache key. The values included in the cache key are automatically included in requests that CloudFront sends to the origin.
Consumes the builder and constructs a CachePolicyConfig
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl UnwindSafe for Builder
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