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.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.cloudfront.CachePolicyProps
CachePolicyProps.Builder, CachePolicyProps.Jsii$Proxy -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedJsii$Proxy(CachePolicyProps.Builder builder) Constructor that initializes the object based on literal property values passed by theCachePolicyProps.Builder.protectedJsii$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.JsonNodefinal booleanfinal StringA unique name to identify the cache policy.final StringA comment to describe the cache policy.final CacheCookieBehaviorDetermines whether any cookies in viewer requests are included in the cache key and automatically included in requests that CloudFront sends to the origin.final DurationThe default amount of time for objects to stay in the CloudFront cache.final BooleanWhether to normalize and include theAccept-Encodingheader in the cache key when theAccept-Encodingheader is 'br'.final BooleanWhether to normalize and include theAccept-Encodingheader in the cache key when theAccept-Encodingheader is 'gzip'.final CacheHeaderBehaviorDetermines whether any HTTP headers are included in the cache key and automatically included in requests that CloudFront sends to the origin.final DurationThe maximum amount of time for objects to stay in the CloudFront cache.final DurationThe minimum amount of time for objects to stay in the CloudFront cache.final CacheQueryStringBehaviorDetermines whether any query strings are included in the cache key and automatically included in requests that CloudFront sends to the origin.final inthashCode()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:CachePolicyPropsA unique name to identify the cache policy.The name must only include '-', '_', or alphanumeric characters.
Default: - generated from the `id`
- Specified by:
getCachePolicyNamein interfaceCachePolicyProps
-
getComment
Description copied from interface:CachePolicyPropsA comment to describe the cache policy.The comment cannot be longer than 128 characters.
Default: - no comment
- Specified by:
getCommentin interfaceCachePolicyProps
-
getCookieBehavior
Description copied from interface:CachePolicyPropsDetermines 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:
getCookieBehaviorin interfaceCachePolicyProps
-
getDefaultTtl
Description copied from interface:CachePolicyPropsThe 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:
getDefaultTtlin interfaceCachePolicyProps
-
getEnableAcceptEncodingBrotli
Description copied from interface:CachePolicyPropsWhether to normalize and include theAccept-Encodingheader in the cache key when theAccept-Encodingheader is 'br'.Default: false
- Specified by:
getEnableAcceptEncodingBrotliin interfaceCachePolicyProps
-
getEnableAcceptEncodingGzip
Description copied from interface:CachePolicyPropsWhether to normalize and include theAccept-Encodingheader in the cache key when theAccept-Encodingheader is 'gzip'.Default: false
- Specified by:
getEnableAcceptEncodingGzipin interfaceCachePolicyProps
-
getHeaderBehavior
Description copied from interface:CachePolicyPropsDetermines 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:
getHeaderBehaviorin interfaceCachePolicyProps
-
getMaxTtl
Description copied from interface:CachePolicyPropsThe 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:
getMaxTtlin interfaceCachePolicyProps
-
getMinTtl
Description copied from interface:CachePolicyPropsThe minimum amount of time for objects to stay in the CloudFront cache.Default: Duration.seconds(0)
- Specified by:
getMinTtlin interfaceCachePolicyProps
-
getQueryStringBehavior
Description copied from interface:CachePolicyPropsDetermines 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:
getQueryStringBehaviorin interfaceCachePolicyProps
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()- Specified by:
$jsii$toJsonin interfacesoftware.amazon.jsii.JsiiSerializable
-
equals
-
hashCode
public final int hashCode()
-