Class CfnRuleGroup.RuleActionProperty.Jsii$Proxy

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

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

    • getAllow

      public final Object getAllow()
      Description copied from interface: CfnRuleGroup.RuleActionProperty
      Instructs AWS WAF to allow the web request.
      Specified by:
      getAllow in interface CfnRuleGroup.RuleActionProperty
    • getBlock

      public final Object getBlock()
      Description copied from interface: CfnRuleGroup.RuleActionProperty
      Instructs AWS WAF to block the web request.
      Specified by:
      getBlock in interface CfnRuleGroup.RuleActionProperty
    • getCaptcha

      public final Object getCaptcha()
      Description copied from interface: CfnRuleGroup.RuleActionProperty
      Specifies that AWS WAF should run a CAPTCHA check against the request:.

      • If the request includes a valid, unexpired CAPTCHA token, AWS WAF allows the web request inspection to proceed to the next rule, similar to a CountAction .
      • If the request doesn't include a valid, unexpired CAPTCHA token, AWS WAF discontinues the web ACL evaluation of the request and blocks it from going to its intended destination.

      AWS WAF generates a response that it sends back to the client, which includes the following:

      • The header x-amzn-waf-action with a value of captcha .
      • The HTTP status code 405 Method Not Allowed .
      • If the request contains an Accept header with a value of text/html , the response includes a CAPTCHA challenge.

      You can configure the expiration time in the CaptchaConfig ImmunityTimeProperty setting at the rule and web ACL level. The rule setting overrides the web ACL setting.

      This action option is available for rules. It isn't available for web ACL default actions.

      Specified by:
      getCaptcha in interface CfnRuleGroup.RuleActionProperty
    • getChallenge

      public final Object getChallenge()
      Description copied from interface: CfnRuleGroup.RuleActionProperty
      Instructs AWS WAF to run a Challenge check against the web request.
      Specified by:
      getChallenge in interface CfnRuleGroup.RuleActionProperty
    • getCount

      public final Object getCount()
      Description copied from interface: CfnRuleGroup.RuleActionProperty
      Instructs AWS WAF to count the web request and then continue evaluating the request using the remaining rules in the web ACL.
      Specified by:
      getCount in interface CfnRuleGroup.RuleActionProperty
    • $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