@Generated(value="jsii-pacmak/1.30.0 (build adae23f)", date="2021-06-30T10:00:50.266Z") @Stability(value=Experimental) public interface CachePolicyProps extends software.amazon.jsii.JsiiSerializable
| Modifier and Type | Interface and Description |
|---|---|
static class |
CachePolicyProps.Builder
A builder for
CachePolicyProps |
static class |
CachePolicyProps.Jsii$Proxy
An implementation for
CachePolicyProps |
| Modifier and Type | Method and Description |
|---|---|
static CachePolicyProps.Builder |
builder() |
default String |
getCachePolicyName()
(experimental) A unique name to identify the cache policy.
|
default String |
getComment()
(experimental) A comment to describe the cache policy.
|
default CacheCookieBehavior |
getCookieBehavior()
(experimental) Determines whether any cookies in viewer requests are included in the cache key and automatically included in requests that CloudFront sends to the origin.
|
default Duration |
getDefaultTtl()
(experimental) The default amount of time for objects to stay in the CloudFront cache.
|
default Boolean |
getEnableAcceptEncodingBrotli()
(experimental) Whether to normalize and include the `Accept-Encoding` header in the cache key when the `Accept-Encoding` header is 'br'.
|
default Boolean |
getEnableAcceptEncodingGzip()
(experimental) Whether to normalize and include the `Accept-Encoding` header in the cache key when the `Accept-Encoding` header is 'gzip'.
|
default CacheHeaderBehavior |
getHeaderBehavior()
(experimental) Determines whether any HTTP headers are included in the cache key and automatically included in requests that CloudFront sends to the origin.
|
default Duration |
getMaxTtl()
(experimental) The maximum amount of time for objects to stay in the CloudFront cache.
|
default Duration |
getMinTtl()
(experimental) The minimum amount of time for objects to stay in the CloudFront cache.
|
default CacheQueryStringBehavior |
getQueryStringBehavior()
(experimental) Determines whether any query strings are included in the cache key and automatically included in requests that CloudFront sends to the origin.
|
@Stability(value=Experimental) @Nullable default String getCachePolicyName()
The name must only include '-', '_', or alphanumeric characters.
Default: - generated from the `id`
@Stability(value=Experimental) @Nullable default String getComment()
Default: - no comment
@Stability(value=Experimental) @Nullable default CacheCookieBehavior getCookieBehavior()
Default: CacheCookieBehavior.none()
@Stability(value=Experimental) @Nullable default Duration getDefaultTtl()
Only used when the origin does not send Cache-Control or Expires headers with the object.
Default: - The greater of 1 day and ``minTtl``
@Stability(value=Experimental) @Nullable default Boolean getEnableAcceptEncodingBrotli()
Default: false
@Stability(value=Experimental) @Nullable default Boolean getEnableAcceptEncodingGzip()
Default: false
@Stability(value=Experimental) @Nullable default CacheHeaderBehavior getHeaderBehavior()
Default: CacheHeaderBehavior.none()
@Stability(value=Experimental) @Nullable default Duration getMaxTtl()
CloudFront uses this value only when the origin sends Cache-Control or Expires headers with the object.
Default: - The greater of 1 year and ``defaultTtl``
@Stability(value=Experimental) @Nullable default Duration getMinTtl()
Default: Duration.seconds(0)
@Stability(value=Experimental) @Nullable default CacheQueryStringBehavior getQueryStringBehavior()
Default: CacheQueryStringBehavior.none()
@Stability(value=Experimental) static CachePolicyProps.Builder builder()
CachePolicyProps.Builder of CachePolicyPropsCopyright © 2021. All rights reserved.