Class CfnDistribution.CacheBehaviorPerPathProperty.Jsii$Proxy

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

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

  • Method Details

    • getBehavior

      public final String getBehavior()
      Description copied from interface: CfnDistribution.CacheBehaviorPerPathProperty
      The cache behavior for the specified path.

      You can specify one of the following per-path cache behaviors:

      • cache - This behavior caches the specified path.
      • dont-cache - This behavior doesn't cache the specified path.
      Specified by:
      getBehavior in interface CfnDistribution.CacheBehaviorPerPathProperty
    • getPath

      public final String getPath()
      Description copied from interface: CfnDistribution.CacheBehaviorPerPathProperty
      The path to a directory or file to cache, or not cache.

      Use an asterisk symbol to specify wildcard directories ( path/to/assets/* ), and file types ( *.html , *jpg , *js ). Directories and file paths are case-sensitive.

      Examples:

      • Specify the following to cache all files in the document root of an Apache web server running on a instance.

      var/www/html/

      • Specify the following file to cache only the index page in the document root of an Apache web server.

      var/www/html/index.html

      • Specify the following to cache only the .html files in the document root of an Apache web server.

      var/www/html/*.html

      • Specify the following to cache only the .jpg, .png, and .gif files in the images sub-directory of the document root of an Apache web server.

      var/www/html/images/*.jpg

      var/www/html/images/*.png

      var/www/html/images/*.gif

      Specify the following to cache all files in the images subdirectory of the document root of an Apache web server.

      var/www/html/images/

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