| Package | Description |
|---|---|
| software.amazon.awscdk.services.cloudfront |
Amazon CloudFront Construct Library
|
| Modifier and Type | Method and Description |
|---|---|
CachePolicy.Builder |
CachePolicy.Builder.cachePolicyName(String cachePolicyName)
(experimental) A unique name to identify the cache policy.
|
CachePolicy.Builder |
CachePolicy.Builder.comment(String comment)
(experimental) A comment to describe the cache policy.
|
CachePolicy.Builder |
CachePolicy.Builder.cookieBehavior(CacheCookieBehavior cookieBehavior)
(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.
|
static CachePolicy.Builder |
CachePolicy.Builder.create(software.constructs.Construct scope,
String id) |
CachePolicy.Builder |
CachePolicy.Builder.defaultTtl(Duration defaultTtl)
(experimental) The default amount of time for objects to stay in the CloudFront cache.
|
CachePolicy.Builder |
CachePolicy.Builder.enableAcceptEncodingBrotli(Boolean enableAcceptEncodingBrotli)
(experimental) Whether to normalize and include the `Accept-Encoding` header in the cache key when the `Accept-Encoding` header is 'br'.
|
CachePolicy.Builder |
CachePolicy.Builder.enableAcceptEncodingGzip(Boolean enableAcceptEncodingGzip)
(experimental) Whether to normalize and include the `Accept-Encoding` header in the cache key when the `Accept-Encoding` header is 'gzip'.
|
CachePolicy.Builder |
CachePolicy.Builder.headerBehavior(CacheHeaderBehavior headerBehavior)
(experimental) Determines whether any HTTP headers are included in the cache key and automatically included in requests that CloudFront sends to the origin.
|
CachePolicy.Builder |
CachePolicy.Builder.maxTtl(Duration maxTtl)
(experimental) The maximum amount of time for objects to stay in the CloudFront cache.
|
CachePolicy.Builder |
CachePolicy.Builder.minTtl(Duration minTtl)
(experimental) The minimum amount of time for objects to stay in the CloudFront cache.
|
CachePolicy.Builder |
CachePolicy.Builder.queryStringBehavior(CacheQueryStringBehavior queryStringBehavior)
(experimental) Determines whether any query strings are included in the cache key and automatically included in requests that CloudFront sends to the origin.
|
Copyright © 2021. All rights reserved.