public static final class CfnRuleGroup.RuleActionProperty.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements CfnRuleGroup.RuleActionProperty
CfnRuleGroup.RuleActionProperty
CfnRuleGroup.RuleActionProperty.Builder, CfnRuleGroup.RuleActionProperty.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
Modifier and Type | Method and Description |
---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(java.lang.Object o) |
java.lang.Object |
getAllow()
Instructs AWS WAF to allow the web request.
|
java.lang.Object |
getBlock()
Instructs AWS WAF to block the web request.
|
java.lang.Object |
getCaptcha()
Specifies that AWS WAF should run a `CAPTCHA` check against the request:.
|
java.lang.Object |
getChallenge()
Instructs AWS WAF to run a `Challenge` check against the web request.
|
java.lang.Object |
getCount()
Instructs AWS WAF to count the web request and then continue evaluating the request using the remaining rules in the web ACL.
|
int |
hashCode() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
builder
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef
- Reference to the JSII managed object.public final java.lang.Object getAllow()
CfnRuleGroup.RuleActionProperty
getAllow
in interface CfnRuleGroup.RuleActionProperty
public final java.lang.Object getBlock()
CfnRuleGroup.RuleActionProperty
getBlock
in interface CfnRuleGroup.RuleActionProperty
public final java.lang.Object getCaptcha()
CfnRuleGroup.RuleActionProperty
CAPTCHA
token, AWS WAF allows the web request inspection to proceed to the next rule, similar to a CountAction
.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:
x-amzn-waf-action
with a value of captcha
.405 Method Not Allowed
.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.
getCaptcha
in interface CfnRuleGroup.RuleActionProperty
public final java.lang.Object getChallenge()
CfnRuleGroup.RuleActionProperty
getChallenge
in interface CfnRuleGroup.RuleActionProperty
public final java.lang.Object getCount()
CfnRuleGroup.RuleActionProperty
getCount
in interface CfnRuleGroup.RuleActionProperty
public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
public final boolean equals(java.lang.Object o)
public final int hashCode()