public static final class CfnRuleGroup.RuleActionProperty.Builder
extends java.lang.Object
CfnRuleGroup.RuleActionProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnRuleGroup.RuleActionProperty.Builder |
allow(java.lang.Object allow)
Sets the value of
CfnRuleGroup.RuleActionProperty.getAllow() |
CfnRuleGroup.RuleActionProperty.Builder |
block(java.lang.Object block)
Sets the value of
CfnRuleGroup.RuleActionProperty.getBlock() |
CfnRuleGroup.RuleActionProperty |
build()
Builds the configured instance.
|
CfnRuleGroup.RuleActionProperty.Builder |
captcha(java.lang.Object captcha)
Sets the value of
CfnRuleGroup.RuleActionProperty.getCaptcha() |
CfnRuleGroup.RuleActionProperty.Builder |
challenge(java.lang.Object challenge)
Sets the value of
CfnRuleGroup.RuleActionProperty.getChallenge() |
CfnRuleGroup.RuleActionProperty.Builder |
count(java.lang.Object count)
Sets the value of
CfnRuleGroup.RuleActionProperty.getCount() |
public CfnRuleGroup.RuleActionProperty.Builder allow(java.lang.Object allow)
CfnRuleGroup.RuleActionProperty.getAllow()
allow
- Instructs AWS WAF to allow the web request.this
public CfnRuleGroup.RuleActionProperty.Builder block(java.lang.Object block)
CfnRuleGroup.RuleActionProperty.getBlock()
block
- Instructs AWS WAF to block the web request.this
public CfnRuleGroup.RuleActionProperty.Builder captcha(java.lang.Object captcha)
CfnRuleGroup.RuleActionProperty.getCaptcha()
captcha
- Specifies that AWS WAF should run a `CAPTCHA` check against the request:.
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.
this
public CfnRuleGroup.RuleActionProperty.Builder challenge(java.lang.Object challenge)
CfnRuleGroup.RuleActionProperty.getChallenge()
challenge
- Instructs AWS WAF to run a `Challenge` check against the web request.this
public CfnRuleGroup.RuleActionProperty.Builder count(java.lang.Object count)
CfnRuleGroup.RuleActionProperty.getCount()
count
- Instructs AWS WAF to count the web request and then continue evaluating the request using the remaining rules in the web ACL.this
public CfnRuleGroup.RuleActionProperty build()
CfnRuleGroup.RuleActionProperty
java.lang.NullPointerException
- if any required attribute was not provided