@Stability(value=Stable) public static final class CfnRuleGroup.RuleActionProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnRuleGroup.RuleActionProperty>
CfnRuleGroup.RuleActionProperty| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CfnRuleGroup.RuleActionProperty.Builder |
allow(Object allow)
Sets the value of
CfnRuleGroup.RuleActionProperty.getAllow() |
CfnRuleGroup.RuleActionProperty.Builder |
block(Object block)
Sets the value of
CfnRuleGroup.RuleActionProperty.getBlock() |
CfnRuleGroup.RuleActionProperty |
build()
Builds the configured instance.
|
CfnRuleGroup.RuleActionProperty.Builder |
captcha(Object captcha)
Sets the value of
CfnRuleGroup.RuleActionProperty.getCaptcha() |
CfnRuleGroup.RuleActionProperty.Builder |
count(Object count)
Sets the value of
CfnRuleGroup.RuleActionProperty.getCount() |
@Stability(value=Stable) public CfnRuleGroup.RuleActionProperty.Builder allow(Object allow)
CfnRuleGroup.RuleActionProperty.getAllow()allow - Instructs AWS WAF to allow the web request.this@Stability(value=Stable) public CfnRuleGroup.RuleActionProperty.Builder block(Object block)
CfnRuleGroup.RuleActionProperty.getBlock()block - Instructs AWS WAF to block the web request.this@Stability(value=Stable) public CfnRuleGroup.RuleActionProperty.Builder captcha(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@Stability(value=Stable) public CfnRuleGroup.RuleActionProperty.Builder count(Object count)
CfnRuleGroup.RuleActionProperty.getCount()count - Instructs AWS WAF to count the web request and allow it.this@Stability(value=Stable) public CfnRuleGroup.RuleActionProperty build()
build in interface software.amazon.jsii.Builder<CfnRuleGroup.RuleActionProperty>CfnRuleGroup.RuleActionPropertyNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.