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

    Constructors
    Modifier
    Constructor
    Description
    protected
    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.
  • Method Summary

    Modifier and Type
    Method
    Description
    com.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.
    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 the Accept-Encoding header in the cache key when the Accept-Encoding header is 'br'.
    final Boolean
    Whether to normalize and include the Accept-Encoding header in the cache key when the Accept-Encoding header is 'gzip'.
    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.
    Determines whether any query strings are included in the cache key and automatically included in requests that CloudFront sends to the origin.
    final int
     

    Methods inherited from class software.amazon.jsii.JsiiObject

    jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • 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

      protected Jsii$Proxy(CachePolicyProps.Builder builder)
      Constructor that initializes the object based on literal property values passed by the CachePolicyProps.Builder.
  • Method Details

    • getCachePolicyName

      public final String 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 interface CachePolicyProps
    • getComment

      public final String getComment()
      Description copied from interface: CachePolicyProps
      A comment to describe the cache policy.

      Default: - no comment

      Specified by:
      getComment in interface CachePolicyProps
    • getCookieBehavior

      public final CacheCookieBehavior 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 interface CachePolicyProps
    • getDefaultTtl

      public final Duration 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 interface CachePolicyProps
    • getEnableAcceptEncodingBrotli

      public final Boolean getEnableAcceptEncodingBrotli()
      Description copied from interface: CachePolicyProps
      Whether to normalize and include the Accept-Encoding header in the cache key when the Accept-Encoding header is 'br'.

      Default: false

      Specified by:
      getEnableAcceptEncodingBrotli in interface CachePolicyProps
    • getEnableAcceptEncodingGzip

      public final Boolean getEnableAcceptEncodingGzip()
      Description copied from interface: CachePolicyProps
      Whether to normalize and include the Accept-Encoding header in the cache key when the Accept-Encoding header is 'gzip'.

      Default: false

      Specified by:
      getEnableAcceptEncodingGzip in interface CachePolicyProps
    • getHeaderBehavior

      public final CacheHeaderBehavior 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 interface CachePolicyProps
    • getMaxTtl

      public final Duration 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 interface CachePolicyProps
    • getMinTtl

      public final Duration 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 interface CachePolicyProps
    • getQueryStringBehavior

      public final CacheQueryStringBehavior 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 interface CachePolicyProps
    • $jsii$toJson

      @Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
      Specified by:
      $jsii$toJson in interface software.amazon.jsii.JsiiSerializable
    • equals

      public final boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object