Class CachePolicyProps.Jsii$Proxy
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.cloudfront.CachePolicyProps.Jsii$Proxy
- All Implemented Interfaces:
CachePolicyProps
,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
- CachePolicyProps
@Stability(Stable)
@Internal
public static final class CachePolicyProps.Jsii$Proxy
extends software.amazon.jsii.JsiiObject
implements CachePolicyProps
An implementation for
CachePolicyProps
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.cloudfront.CachePolicyProps
CachePolicyProps.Builder, CachePolicyProps.Jsii$Proxy
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Jsii$Proxy
(CachePolicyProps.Builder builder) Constructor that initializes the object based on literal property values passed by theCachePolicyProps.Builder
.protected
Jsii$Proxy
(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject. -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonNode
final boolean
final String
A unique name to identify the cache policy.final String
A comment to describe the cache policy.final CacheCookieBehavior
Determines whether any cookies in viewer requests are included in the cache key and automatically included in requests that CloudFront sends to the origin.final Duration
The default amount of time for objects to stay in the CloudFront cache.final Boolean
Whether to normalize and include theAccept-Encoding
header in the cache key when theAccept-Encoding
header is 'br'.final Boolean
Whether to normalize and include theAccept-Encoding
header in the cache key when theAccept-Encoding
header is 'gzip'.final CacheHeaderBehavior
Determines whether any HTTP headers are included in the cache key and automatically included in requests that CloudFront sends to the origin.final Duration
The maximum amount of time for objects to stay in the CloudFront cache.final Duration
The minimum amount of time for objects to stay in the CloudFront cache.final CacheQueryStringBehavior
Determines whether any query strings are included in the cache key and automatically included in requests that CloudFront sends to the origin.final int
hashCode()
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
-
Constructor Details
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject.- Parameters:
objRef
- Reference to the JSII managed object.
-
Jsii$Proxy
Constructor that initializes the object based on literal property values passed by theCachePolicyProps.Builder
.
-
-
Method Details
-
getCachePolicyName
Description copied from interface:CachePolicyProps
A unique name to identify the cache policy.The name must only include '-', '_', or alphanumeric characters.
Default: - generated from the `id`
- Specified by:
getCachePolicyName
in interfaceCachePolicyProps
-
getComment
Description copied from interface:CachePolicyProps
A comment to describe the cache policy.Default: - no comment
- Specified by:
getComment
in interfaceCachePolicyProps
-
getCookieBehavior
Description copied from interface:CachePolicyProps
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: CacheCookieBehavior.none()
- Specified by:
getCookieBehavior
in interfaceCachePolicyProps
-
getDefaultTtl
Description copied from interface:CachePolicyProps
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.
Default: - The greater of 1 day and ``minTtl``
- Specified by:
getDefaultTtl
in interfaceCachePolicyProps
-
getEnableAcceptEncodingBrotli
Description copied from interface:CachePolicyProps
Whether to normalize and include theAccept-Encoding
header in the cache key when theAccept-Encoding
header is 'br'.Default: false
- Specified by:
getEnableAcceptEncodingBrotli
in interfaceCachePolicyProps
-
getEnableAcceptEncodingGzip
Description copied from interface:CachePolicyProps
Whether to normalize and include theAccept-Encoding
header in the cache key when theAccept-Encoding
header is 'gzip'.Default: false
- Specified by:
getEnableAcceptEncodingGzip
in interfaceCachePolicyProps
-
getHeaderBehavior
Description copied from interface:CachePolicyProps
Determines whether any HTTP headers are included in the cache key and automatically included in requests that CloudFront sends to the origin.Default: CacheHeaderBehavior.none()
- Specified by:
getHeaderBehavior
in interfaceCachePolicyProps
-
getMaxTtl
Description copied from interface:CachePolicyProps
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.
Default: - The greater of 1 year and ``defaultTtl``
- Specified by:
getMaxTtl
in interfaceCachePolicyProps
-
getMinTtl
Description copied from interface:CachePolicyProps
The minimum amount of time for objects to stay in the CloudFront cache.Default: Duration.seconds(0)
- Specified by:
getMinTtl
in interfaceCachePolicyProps
-
getQueryStringBehavior
Description copied from interface:CachePolicyProps
Determines whether any query strings are included in the cache key and automatically included in requests that CloudFront sends to the origin.Default: CacheQueryStringBehavior.none()
- Specified by:
getQueryStringBehavior
in interfaceCachePolicyProps
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()- Specified by:
$jsii$toJson
in interfacesoftware.amazon.jsii.JsiiSerializable
-
equals
-
hashCode
public final int hashCode()
-