AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

The action that WAF should take on a web request when it matches a rule's statement. Settings at the web ACL level can override the rule action setting.

Inheritance Hierarchy

System.Object
  Amazon.WAFV2.Model.RuleAction

Namespace: Amazon.WAFV2.Model
Assembly: AWSSDK.WAFV2.dll
Version: 3.x.y.z

Syntax

C#
public class RuleAction

The RuleAction type exposes the following members

Constructors

NameDescription
Public Method RuleAction()

Properties

NameTypeDescription
Public Property Allow Amazon.WAFV2.Model.AllowAction

Gets and sets the property Allow.

Instructs WAF to allow the web request.

Public Property Block Amazon.WAFV2.Model.BlockAction

Gets and sets the property Block.

Instructs WAF to block the web request.

Public Property Captcha Amazon.WAFV2.Model.CaptchaAction

Gets and sets the property Captcha.

Instructs WAF to run a CAPTCHA check against the web request.

Public Property Challenge Amazon.WAFV2.Model.ChallengeAction

Gets and sets the property Challenge.

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

Public Property Count Amazon.WAFV2.Model.CountAction

Gets and sets the property Count.

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

Version Information

.NET:
Supported in: 8.0 and newer, Core 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5 and newer, 3.5