Class CfnRuleGroup.CustomResponseProperty.Jsii$Proxy

All Implemented Interfaces:
Enclosing interface:

@Stability(Stable) @Internal public static final class CfnRuleGroup.CustomResponseProperty.Jsii$Proxy extends implements CfnRuleGroup.CustomResponseProperty
  • Constructor Details

    • Jsii$Proxy

      protected Jsii$Proxy( objRef)
      Constructor that initializes the object based on values retrieved from the JsiiObject.
      objRef - Reference to the JSII managed object.
    • Jsii$Proxy

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

    • getResponseCode

      public final Number getResponseCode()
      Description copied from interface: CfnRuleGroup.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 CfnRuleGroup.CustomResponseProperty
    • getCustomResponseBodyKey

      public final String getCustomResponseBodyKey()
      Description copied from interface: CfnRuleGroup.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 CfnRuleGroup.CustomResponseProperty
    • getResponseHeaders

      public final Object getResponseHeaders()
      Description copied from interface: CfnRuleGroup.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 CfnRuleGroup.CustomResponseProperty
    • $jsii$toJson

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

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

      public final int hashCode()
      hashCode in class Object