@Stability(value=Experimental) @Internal public static final class CachePolicyProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements CachePolicyProps
CachePolicyPropssoftware.amazon.jsii.JsiiObject.InitializationModeCachePolicyProps.Builder, CachePolicyProps.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
protected |
Jsii$Proxy(String cachePolicyName,
String comment,
CacheCookieBehavior cookieBehavior,
Duration defaultTtl,
Boolean enableAcceptEncodingBrotli,
Boolean enableAcceptEncodingGzip,
CacheHeaderBehavior headerBehavior,
Duration maxTtl,
Duration minTtl,
CacheQueryStringBehavior queryStringBehavior)
Constructor that initializes the object based on literal property values passed by the
CachePolicyProps.Builder. |
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(Object o) |
String |
getCachePolicyName()
(experimental) A unique name to identify the cache policy.
|
String |
getComment()
(experimental) A comment to describe the cache policy.
|
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.
|
Duration |
getDefaultTtl()
(experimental) The default amount of time for objects to stay in the CloudFront cache.
|
Boolean |
getEnableAcceptEncodingBrotli()
(experimental) Whether to normalize and include the `Accept-Encoding` header in the cache key when the `Accept-Encoding` header is 'br'.
|
Boolean |
getEnableAcceptEncodingGzip()
(experimental) Whether to normalize and include the `Accept-Encoding` header in the cache key when the `Accept-Encoding` header is 'gzip'.
|
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.
|
Duration |
getMaxTtl()
(experimental) The maximum amount of time for objects to stay in the CloudFront cache.
|
Duration |
getMinTtl()
(experimental) The minimum amount of time for objects to stay in the CloudFront cache.
|
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.
|
int |
hashCode() |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitbuilderprotected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef - Reference to the JSII managed object.protected Jsii$Proxy(String cachePolicyName, String comment, CacheCookieBehavior cookieBehavior, Duration defaultTtl, Boolean enableAcceptEncodingBrotli, Boolean enableAcceptEncodingGzip, CacheHeaderBehavior headerBehavior, Duration maxTtl, Duration minTtl, CacheQueryStringBehavior queryStringBehavior)
CachePolicyProps.Builder.public final String getCachePolicyName()
CachePolicyPropsThe name must only include '-', '_', or alphanumeric characters.
Default: - generated from the `id`
getCachePolicyName in interface CachePolicyPropspublic final String getComment()
CachePolicyPropsDefault: - no comment
getComment in interface CachePolicyPropspublic final CacheCookieBehavior getCookieBehavior()
CachePolicyPropsDefault: CacheCookieBehavior.none()
getCookieBehavior in interface CachePolicyPropspublic final Duration getDefaultTtl()
CachePolicyPropsOnly used when the origin does not send Cache-Control or Expires headers with the object.
Default: - The greater of 1 day and ``minTtl``
getDefaultTtl in interface CachePolicyPropspublic final Boolean getEnableAcceptEncodingBrotli()
CachePolicyPropsDefault: false
getEnableAcceptEncodingBrotli in interface CachePolicyPropspublic final Boolean getEnableAcceptEncodingGzip()
CachePolicyPropsDefault: false
getEnableAcceptEncodingGzip in interface CachePolicyPropspublic final CacheHeaderBehavior getHeaderBehavior()
CachePolicyPropsDefault: CacheHeaderBehavior.none()
getHeaderBehavior in interface CachePolicyPropspublic final Duration getMaxTtl()
CachePolicyPropsCloudFront uses this value only when the origin sends Cache-Control or Expires headers with the object.
Default: - The greater of 1 year and ``defaultTtl``
getMaxTtl in interface CachePolicyPropspublic final Duration getMinTtl()
CachePolicyPropsDefault: Duration.seconds(0)
getMinTtl in interface CachePolicyPropspublic final CacheQueryStringBehavior getQueryStringBehavior()
CachePolicyPropsDefault: CacheQueryStringBehavior.none()
getQueryStringBehavior in interface CachePolicyProps@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson in interface software.amazon.jsii.JsiiSerializableCopyright © 2021. All rights reserved.