Show / Hide Table of Contents

Class CfnRuleGroup.RuleActionProperty

The action that AWS WAF should take on a web request when it matches a rule's statement.

Inheritance
object
CfnRuleGroup.RuleActionProperty
Implements
CfnRuleGroup.IRuleActionProperty
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.AWS.WAFv2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnRuleGroup.RuleActionProperty : CfnRuleGroup.IRuleActionProperty
Syntax (vb)
Public Class CfnRuleGroup.RuleActionProperty Implements CfnRuleGroup.IRuleActionProperty
Remarks

Settings at the web ACL level can override the rule action setting.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ruleaction.html

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

Constructors

RuleActionProperty()

The action that AWS WAF should take on a web request when it matches a rule's statement.

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 CAPTCHA check against the request:.

Challenge

Instructs AWS WAF to run a Challenge check against the web request.

Count

Instructs AWS WAF to count the web request and then continue evaluating the request using the remaining rules in the web ACL.

Constructors

RuleActionProperty()

The action that AWS WAF should take on a web request when it matches a rule's statement.

public RuleActionProperty()
Remarks

Settings at the web ACL level can override the rule action setting.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ruleaction.html

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
             };

Properties

Allow

Instructs AWS WAF to allow the web request.

public object? Allow { get; set; }
Property Value

object

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ruleaction.html#cfn-wafv2-rulegroup-ruleaction-allow

Block

Instructs AWS WAF to block the web request.

public object? Block { get; set; }
Property Value

object

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ruleaction.html#cfn-wafv2-rulegroup-ruleaction-block

Captcha

Specifies that AWS WAF should run a CAPTCHA check against the request:.

public object? Captcha { get; set; }
Property Value

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.

      See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ruleaction.html#cfn-wafv2-rulegroup-ruleaction-captcha

      Challenge

      Instructs AWS WAF to run a Challenge check against the web request.

      public object? Challenge { get; set; }
      Property Value

      object

      Remarks

      See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ruleaction.html#cfn-wafv2-rulegroup-ruleaction-challenge

      Count

      Instructs AWS WAF to count the web request and then continue evaluating the request using the remaining rules in the web ACL.

      public object? Count { get; set; }
      Property Value

      object

      Remarks

      See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ruleaction.html#cfn-wafv2-rulegroup-ruleaction-count

      Implements

      CfnRuleGroup.IRuleActionProperty
      Back to top Generated by DocFX