public static interface CachePolicyConfig.Builder extends SdkPojo, CopyableBuilder<CachePolicyConfig.Builder,CachePolicyConfig>
| Modifier and Type | Method and Description |
|---|---|
CachePolicyConfig.Builder |
comment(String comment)
A comment to describe the cache policy.
|
CachePolicyConfig.Builder |
defaultTTL(Long defaultTTL)
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.
|
CachePolicyConfig.Builder |
maxTTL(Long maxTTL)
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.
|
CachePolicyConfig.Builder |
minTTL(Long minTTL)
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.
|
CachePolicyConfig.Builder |
name(String name)
A unique name to identify the cache policy.
|
default CachePolicyConfig.Builder |
parametersInCacheKeyAndForwardedToOrigin(Consumer<ParametersInCacheKeyAndForwardedToOrigin.Builder> parametersInCacheKeyAndForwardedToOrigin)
The HTTP headers, cookies, and URL query strings to include in the cache key.
|
CachePolicyConfig.Builder |
parametersInCacheKeyAndForwardedToOrigin(ParametersInCacheKeyAndForwardedToOrigin parametersInCacheKeyAndForwardedToOrigin)
The HTTP headers, cookies, and URL query strings to include in the cache key.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildCachePolicyConfig.Builder comment(String comment)
A comment to describe the cache policy. The comment cannot be longer than 128 characters.
comment - A comment to describe the cache policy. The comment cannot be longer than 128 characters.CachePolicyConfig.Builder name(String name)
A unique name to identify the cache policy.
name - A unique name to identify the cache policy.CachePolicyConfig.Builder defaultTTL(Long defaultTTL)
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.
defaultTTL - 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.
CachePolicyConfig.Builder maxTTL(Long maxTTL)
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.
maxTTL - 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.
CachePolicyConfig.Builder minTTL(Long minTTL)
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.
minTTL - 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.CachePolicyConfig.Builder parametersInCacheKeyAndForwardedToOrigin(ParametersInCacheKeyAndForwardedToOrigin parametersInCacheKeyAndForwardedToOrigin)
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.
parametersInCacheKeyAndForwardedToOrigin - 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.default CachePolicyConfig.Builder parametersInCacheKeyAndForwardedToOrigin(Consumer<ParametersInCacheKeyAndForwardedToOrigin.Builder> parametersInCacheKeyAndForwardedToOrigin)
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.
This is a convenience that creates an instance of theParametersInCacheKeyAndForwardedToOrigin.Builder avoiding the need to create one manually via
ParametersInCacheKeyAndForwardedToOrigin.builder().
When the Consumer completes, SdkBuilder.build() is
called immediately and its result is passed to
parametersInCacheKeyAndForwardedToOrigin(ParametersInCacheKeyAndForwardedToOrigin).parametersInCacheKeyAndForwardedToOrigin - a consumer that will call methods on ParametersInCacheKeyAndForwardedToOrigin.BuilderparametersInCacheKeyAndForwardedToOrigin(ParametersInCacheKeyAndForwardedToOrigin)Copyright © 2021. All rights reserved.