@Stability(value=Stable) public static final class CfnWebACL.RuleActionProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnWebACL.RuleActionProperty>
CfnWebACL.RuleActionProperty| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) public CfnWebACL.RuleActionProperty.Builder allow(CfnWebACL.AllowActionProperty allow)
CfnWebACL.RuleActionProperty.getAllow()allow - Instructs AWS WAF to allow the web request.this@Stability(value=Stable) public CfnWebACL.RuleActionProperty.Builder allow(IResolvable allow)
CfnWebACL.RuleActionProperty.getAllow()allow - Instructs AWS WAF to allow the web request.this@Stability(value=Stable) public CfnWebACL.RuleActionProperty.Builder block(CfnWebACL.BlockActionProperty block)
CfnWebACL.RuleActionProperty.getBlock()block - Instructs AWS WAF to block the web request.this@Stability(value=Stable) public CfnWebACL.RuleActionProperty.Builder block(IResolvable block)
CfnWebACL.RuleActionProperty.getBlock()block - Instructs AWS WAF to block the web request.this@Stability(value=Stable) public CfnWebACL.RuleActionProperty.Builder captcha(CfnWebACL.CaptchaActionProperty captcha)
CfnWebACL.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 CfnWebACL.RuleActionProperty.Builder captcha(IResolvable captcha)
CfnWebACL.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 CfnWebACL.RuleActionProperty.Builder count(CfnWebACL.CountActionProperty count)
CfnWebACL.RuleActionProperty.getCount()count - Instructs AWS WAF to count the web request and allow it.this@Stability(value=Stable) public CfnWebACL.RuleActionProperty.Builder count(IResolvable count)
CfnWebACL.RuleActionProperty.getCount()count - Instructs AWS WAF to count the web request and allow it.this@Stability(value=Stable) public CfnWebACL.RuleActionProperty build()
build in interface software.amazon.jsii.Builder<CfnWebACL.RuleActionProperty>CfnWebACL.RuleActionPropertyNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.