@Stability(value=Experimental) public static final class CachePolicyProps.Builder extends Object implements software.amazon.jsii.Builder<CachePolicyProps>
CachePolicyProps| Constructor and Description |
|---|
Builder() |
@Stability(value=Experimental) public CachePolicyProps.Builder cachePolicyName(String cachePolicyName)
CachePolicyProps.getCachePolicyName()cachePolicyName - A unique name to identify the cache policy.
The name must only include '-', '_', or alphanumeric characters.this@Stability(value=Experimental) public CachePolicyProps.Builder comment(String comment)
CachePolicyProps.getComment()comment - A comment to describe the cache policy.this@Stability(value=Experimental) public CachePolicyProps.Builder cookieBehavior(CacheCookieBehavior cookieBehavior)
CachePolicyProps.getCookieBehavior()cookieBehavior - Determines whether any cookies in viewer requests are included in the cache key and automatically included in requests that CloudFront sends to the origin.this@Stability(value=Experimental) public CachePolicyProps.Builder defaultTtl(Duration defaultTtl)
CachePolicyProps.getDefaultTtl()defaultTtl - The default amount of time for objects to stay in the CloudFront cache.
Only used when the origin does not send Cache-Control or Expires headers with the object.this@Stability(value=Experimental) public CachePolicyProps.Builder enableAcceptEncodingBrotli(Boolean enableAcceptEncodingBrotli)
CachePolicyProps.getEnableAcceptEncodingBrotli()enableAcceptEncodingBrotli - Whether to normalize and include the `Accept-Encoding` header in the cache key when the `Accept-Encoding` header is 'br'.this@Stability(value=Experimental) public CachePolicyProps.Builder enableAcceptEncodingGzip(Boolean enableAcceptEncodingGzip)
CachePolicyProps.getEnableAcceptEncodingGzip()enableAcceptEncodingGzip - Whether to normalize and include the `Accept-Encoding` header in the cache key when the `Accept-Encoding` header is 'gzip'.this@Stability(value=Experimental) public CachePolicyProps.Builder headerBehavior(CacheHeaderBehavior headerBehavior)
CachePolicyProps.getHeaderBehavior()headerBehavior - Determines whether any HTTP headers are included in the cache key and automatically included in requests that CloudFront sends to the origin.this@Stability(value=Experimental) public CachePolicyProps.Builder maxTtl(Duration maxTtl)
CachePolicyProps.getMaxTtl()maxTtl - The maximum amount of time for objects to stay in the CloudFront cache.
CloudFront uses this value only when the origin sends Cache-Control or Expires headers with the object.this@Stability(value=Experimental) public CachePolicyProps.Builder minTtl(Duration minTtl)
CachePolicyProps.getMinTtl()minTtl - The minimum amount of time for objects to stay in the CloudFront cache.this@Stability(value=Experimental) public CachePolicyProps.Builder queryStringBehavior(CacheQueryStringBehavior queryStringBehavior)
CachePolicyProps.getQueryStringBehavior()queryStringBehavior - Determines whether any query strings are included in the cache key and automatically included in requests that CloudFront sends to the origin.this@Stability(value=Experimental) public CachePolicyProps build()
build in interface software.amazon.jsii.Builder<CachePolicyProps>CachePolicyPropsNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.