Class CfnDistribution.CacheSettingsProperty.Jsii$Proxy

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.lightsail.CfnDistribution.CacheSettingsProperty.Jsii$Proxy
All Implemented Interfaces:
CfnDistribution.CacheSettingsProperty, software.amazon.jsii.JsiiSerializable
Enclosing interface:
CfnDistribution.CacheSettingsProperty

@Stability(Stable) @Internal public static final class CfnDistribution.CacheSettingsProperty.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements CfnDistribution.CacheSettingsProperty
  • Constructor Details

  • Method Details

    • getAllowedHttpMethods

      public final String getAllowedHttpMethods()
      Description copied from interface: CfnDistribution.CacheSettingsProperty
      The HTTP methods that are processed and forwarded to the distribution's origin.

      You can specify the following options:

      • GET,HEAD - The distribution forwards the GET and HEAD methods.
      • GET,HEAD,OPTIONS - The distribution forwards the GET , HEAD , and OPTIONS methods.
      • GET,HEAD,OPTIONS,PUT,PATCH,POST,DELETE - The distribution forwards the GET , HEAD , OPTIONS , PUT , PATCH , POST , and DELETE methods.

      If you specify GET,HEAD,OPTIONS,PUT,PATCH,POST,DELETE , you might need to restrict access to your distribution's origin so users can't perform operations that you don't want them to. For example, you might not want users to have permission to delete objects from your origin.

      Specified by:
      getAllowedHttpMethods in interface CfnDistribution.CacheSettingsProperty
    • getCachedHttpMethods

      public final String getCachedHttpMethods()
      Description copied from interface: CfnDistribution.CacheSettingsProperty
      The HTTP method responses that are cached by your distribution.

      You can specify the following options:

      • GET,HEAD - The distribution caches responses to the GET and HEAD methods.
      • GET,HEAD,OPTIONS - The distribution caches responses to the GET , HEAD , and OPTIONS methods.
      Specified by:
      getCachedHttpMethods in interface CfnDistribution.CacheSettingsProperty
    • getDefaultTtl

      public final Number getDefaultTtl()
      Description copied from interface: CfnDistribution.CacheSettingsProperty
      The default amount of time that objects stay in the distribution's cache before the distribution forwards another request to the origin to determine whether the content has been updated.

      The value specified applies only when the origin does not add HTTP headers such as Cache-Control max-age , Cache-Control s-maxage , and Expires to objects.

      Specified by:
      getDefaultTtl in interface CfnDistribution.CacheSettingsProperty
    • getForwardedCookies

      public final Object getForwardedCookies()
      Description copied from interface: CfnDistribution.CacheSettingsProperty
      An object that describes the cookies that are forwarded to the origin.

      Your content is cached based on the cookies that are forwarded.

      Specified by:
      getForwardedCookies in interface CfnDistribution.CacheSettingsProperty
    • getForwardedHeaders

      public final Object getForwardedHeaders()
      Description copied from interface: CfnDistribution.CacheSettingsProperty
      An object that describes the headers that are forwarded to the origin.

      Your content is cached based on the headers that are forwarded.

      Specified by:
      getForwardedHeaders in interface CfnDistribution.CacheSettingsProperty
    • getForwardedQueryStrings

      public final Object getForwardedQueryStrings()
      Description copied from interface: CfnDistribution.CacheSettingsProperty
      An object that describes the query strings that are forwarded to the origin.

      Your content is cached based on the query strings that are forwarded.

      Specified by:
      getForwardedQueryStrings in interface CfnDistribution.CacheSettingsProperty
    • getMaximumTtl

      public final Number getMaximumTtl()
      Description copied from interface: CfnDistribution.CacheSettingsProperty
      The maximum amount of time that objects stay in the distribution's cache before the distribution forwards another request to the origin to determine whether the object has been updated.

      The value specified applies only when the origin adds HTTP headers such as Cache-Control max-age , Cache-Control s-maxage , and Expires to objects.

      Specified by:
      getMaximumTtl in interface CfnDistribution.CacheSettingsProperty
    • getMinimumTtl

      public final Number getMinimumTtl()
      Description copied from interface: CfnDistribution.CacheSettingsProperty
      The minimum amount of time that objects stay in the distribution's cache before the distribution forwards another request to the origin to determine whether the object has been updated.

      A value of 0 must be specified for minimumTTL if the distribution is configured to forward all headers to the origin.

      Specified by:
      getMinimumTtl in interface CfnDistribution.CacheSettingsProperty
    • $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