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.
This is AWS WAF Classic documentation. For more information, see AWS
WAF Classic in the developer guide.
For the latest version of AWS WAF, use the AWS WAFV2 API and see the AWS
WAF Developer Guide. With the latest version, AWS WAF has a single set of endpoints
for regional and global use.
A combination of ByteMatchSet, IPSet, and/or SqlInjectionMatchSet
objects that identify the web requests that you want to allow, block, or count. For
example, you might create a Rule
that includes the following predicates:
An IPSet
that causes AWS WAF to search for web requests that originate from
the IP address 192.0.2.44
A ByteMatchSet
that causes AWS WAF to search for web requests for which the
value of the User-Agent
header is BadBot
.
To match the settings in this Rule
, a request must originate from 192.0.2.44
AND include a User-Agent
header for which the value is BadBot
.
Namespace: Amazon.WAFRegional.Model
Assembly: AWSSDK.WAFRegional.dll
Version: 3.x.y.z
public class Rule
The Rule type exposes the following members
Name | Description | |
---|---|---|
Rule() |
Name | Type | Description | |
---|---|---|---|
MetricName | System.String |
Gets and sets the property MetricName.
A friendly name or description for the metrics for this |
|
Name | System.String |
Gets and sets the property Name.
The friendly name or description for the |
|
Predicates | System.Collections.Generic.List<Amazon.WAFRegional.Model.Predicate> |
Gets and sets the property Predicates.
The |
|
RuleId | System.String |
Gets and sets the property RuleId.
A unique identifier for a
|
.NET Core App:
Supported in: 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5, 4.0, 3.5