Class CfnWebACL.CustomResponseProperty.Jsii$Proxy

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

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

    • getResponseCode

      public final Number getResponseCode()
      Description copied from interface: CfnWebACL.CustomResponseProperty
      The HTTP status code to return to the client.

      For a list of status codes that you can use in your custom responses, see Supported status codes for custom response in the AWS WAF Developer Guide .

      Specified by:
      getResponseCode in interface CfnWebACL.CustomResponseProperty
    • getCustomResponseBodyKey

      public final String getCustomResponseBodyKey()
      Description copied from interface: CfnWebACL.CustomResponseProperty
      References the response body that you want AWS WAF to return to the web request client.

      You can define a custom response for a rule action or a default web ACL action that is set to block. To do this, you first define the response body key and value in the CustomResponseBodies setting for the WebACL or RuleGroup where you want to use it. Then, in the rule action or web ACL default action BlockAction setting, you reference the response body using this key.

      Specified by:
      getCustomResponseBodyKey in interface CfnWebACL.CustomResponseProperty
    • getResponseHeaders

      public final Object getResponseHeaders()
      Description copied from interface: CfnWebACL.CustomResponseProperty
      The HTTP headers to use in the response. Duplicate header names are not allowed.

      For information about the limits on count and size for custom request and response settings, see AWS WAF quotas in the AWS WAF Developer Guide .

      Specified by:
      getResponseHeaders in interface CfnWebACL.CustomResponseProperty
    • $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