Class Behavior.Jsii$Proxy

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

@Stability(Stable) @Internal public static final class Behavior.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements Behavior
An implementation for Behavior
  • 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(Behavior.Builder builder)
      Constructor that initializes the object based on literal property values passed by the Behavior.Builder.
  • Method Details

    • getAllowedMethods

      public final CloudFrontAllowedMethods getAllowedMethods()
      Description copied from interface: Behavior
      The method this CloudFront distribution responds do.

      Default: GET_HEAD

      Specified by:
      getAllowedMethods in interface Behavior
    • getCachedMethods

      public final CloudFrontAllowedCachedMethods getCachedMethods()
      Description copied from interface: Behavior
      Which methods are cached by CloudFront by default.

      Default: GET_HEAD

      Specified by:
      getCachedMethods in interface Behavior
    • getCompress

      public final Boolean getCompress()
      Description copied from interface: Behavior
      If CloudFront should automatically compress some content types.

      Default: true

      Specified by:
      getCompress in interface Behavior
    • getDefaultTtl

      public final Duration getDefaultTtl()
      Description copied from interface: Behavior
      The default amount of time CloudFront will cache an object.

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

      Default: 86400 (1 day)

      Specified by:
      getDefaultTtl in interface Behavior
    • getForwardedValues

      public final CfnDistribution.ForwardedValuesProperty getForwardedValues()
      Description copied from interface: Behavior
      The values CloudFront will forward to the origin when making a request.

      Default: none (no cookies - no headers)

      Specified by:
      getForwardedValues in interface Behavior
    • getFunctionAssociations

      public final List<FunctionAssociation> getFunctionAssociations()
      Description copied from interface: Behavior
      The CloudFront functions to invoke before serving the contents.

      Default: - no functions will be invoked

      Specified by:
      getFunctionAssociations in interface Behavior
    • getIsDefaultBehavior

      public final Boolean getIsDefaultBehavior()
      Description copied from interface: Behavior
      If this behavior is the default behavior for the distribution.

      You must specify exactly one default distribution per CloudFront distribution. The default behavior is allowed to omit the "path" property.

      Specified by:
      getIsDefaultBehavior in interface Behavior
    • getLambdaFunctionAssociations

      public final List<LambdaFunctionAssociation> getLambdaFunctionAssociations()
      Description copied from interface: Behavior
      Declares associated lambda@edge functions for this distribution behaviour.

      Default: No lambda function associated

      Specified by:
      getLambdaFunctionAssociations in interface Behavior
    • getMaxTtl

      public final Duration getMaxTtl()
      Description copied from interface: Behavior
      The max amount of time you want objects to stay in the cache before CloudFront queries your origin.

      Default: Duration.seconds(31536000) (one year)

      Specified by:
      getMaxTtl in interface Behavior
    • getMinTtl

      public final Duration getMinTtl()
      Description copied from interface: Behavior
      The minimum amount of time that you want objects to stay in the cache before CloudFront queries your origin.
      Specified by:
      getMinTtl in interface Behavior
    • getPathPattern

      public final String getPathPattern()
      Description copied from interface: Behavior
      The path this behavior responds to.

      Required for all non-default behaviors. (The default behavior implicitly has "*" as the path pattern. )

      Specified by:
      getPathPattern in interface Behavior
    • getTrustedKeyGroups

      public final List<IKeyGroup> getTrustedKeyGroups()
      Description copied from interface: Behavior
      A list of Key Groups that CloudFront can use to validate signed URLs or signed cookies.

      Default: - no KeyGroups are associated with cache behavior

      Specified by:
      getTrustedKeyGroups in interface Behavior
      See Also:
    • getTrustedSigners

      public final List<String> getTrustedSigners()
      Description copied from interface: Behavior
      (deprecated) Trusted signers is how CloudFront allows you to serve private content.

      The signers are the account IDs that are allowed to sign cookies/presigned URLs for this distribution.

      If you pass a non empty value, all requests for this behavior must be signed (no public access will be allowed)

      Specified by:
      getTrustedSigners in interface Behavior
    • getViewerProtocolPolicy

      public final ViewerProtocolPolicy getViewerProtocolPolicy()
      Description copied from interface: Behavior
      The viewer policy for this behavior.

      Default: - the distribution wide viewer protocol policy will be used

      Specified by:
      getViewerProtocolPolicy in interface Behavior
    • $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