@Stability(value=Stable) @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(CachePolicyProps.Builder builder)
Constructor that initializes the object based on literal property values passed by the
CachePolicyProps.Builder. |
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(Object o) |
String |
getCachePolicyName()
A unique name to identify the cache policy.
|
String |
getComment()
A comment to describe the cache policy.
|
CacheCookieBehavior |
getCookieBehavior()
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()
The default amount of time for objects to stay in the CloudFront cache.
|
Boolean |
getEnableAcceptEncodingBrotli()
Whether to normalize and include the `Accept-Encoding` header in the cache key when the `Accept-Encoding` header is 'br'.
|
Boolean |
getEnableAcceptEncodingGzip()
Whether to normalize and include the `Accept-Encoding` header in the cache key when the `Accept-Encoding` header is 'gzip'.
|
CacheHeaderBehavior |
getHeaderBehavior()
Determines whether any HTTP headers are included in the cache key and automatically included in requests that CloudFront sends to the origin.
|
Duration |
getMaxTtl()
The maximum amount of time for objects to stay in the CloudFront cache.
|
Duration |
getMinTtl()
The minimum amount of time for objects to stay in the CloudFront cache.
|
CacheQueryStringBehavior |
getQueryStringBehavior()
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(CachePolicyProps.Builder builder)
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 © 2022. All rights reserved.