Interface CfnRuleGroup.IRuleActionProperty
The action that AWS WAF should take on a web request when it matches a rule's statement.
Namespace: Amazon.CDK.AWS.WAFv2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IRuleActionProperty
Syntax (vb)
Public Interface IRuleActionProperty
Remarks
Settings at the web ACL level can override the rule action setting.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.WAFv2;
var allow;
var block;
var captcha;
var challenge;
var count;
var ruleActionProperty = new RuleActionProperty {
Allow = allow,
Block = block,
Captcha = captcha,
Challenge = challenge,
Count = count
};
Synopsis
Properties
Allow | Instructs AWS WAF to allow the web request. |
Block | Instructs AWS WAF to block the web request. |
Captcha | Specifies that AWS WAF should run a |
Challenge | Instructs AWS WAF to run a |
Count | Instructs AWS WAF to count the web request and then continue evaluating the request using the remaining rules in the web ACL. |
Properties
Allow
Instructs AWS WAF to allow the web request.
virtual object Allow { get; }
Property Value
System.Object
Remarks
Block
Instructs AWS WAF to block the web request.
virtual object Block { get; }
Property Value
System.Object
Remarks
Captcha
Specifies that AWS WAF should run a CAPTCHA
check against the request:.
virtual object Captcha { get; }
Property Value
System.Object
Remarks
AWS WAF generates a response that it sends back to the client, which includes the following:
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.
Challenge
Instructs AWS WAF to run a Challenge
check against the web request.
virtual object Challenge { get; }
Property Value
System.Object
Remarks
Count
Instructs AWS WAF to count the web request and then continue evaluating the request using the remaining rules in the web ACL.
virtual object Count { get; }
Property Value
System.Object