Class CfnRateBasedRuleProps
Properties for defining a CfnRateBasedRule
.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.WAFRegional
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnRateBasedRuleProps : Object, ICfnRateBasedRuleProps
Syntax (vb)
Public Class CfnRateBasedRuleProps
Inherits Object
Implements ICfnRateBasedRuleProps
Remarks
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.WAFRegional;
var cfnRateBasedRuleProps = new CfnRateBasedRuleProps {
MetricName = "metricName",
Name = "name",
RateKey = "rateKey",
RateLimit = 123,
// the properties below are optional
MatchPredicates = new [] { new PredicateProperty {
DataId = "dataId",
Negated = false,
Type = "type"
} }
};
Synopsis
Constructors
Cfn |
Properties
Match |
The |
Metric |
A name for the metrics for a |
Name | A friendly name or description for a |
Rate |
The field that AWS WAF uses to determine if requests are likely arriving from single source and thus subject to rate monitoring. |
Rate |
The maximum number of requests, which have an identical value in the field specified by the |
Constructors
CfnRateBasedRuleProps()
public CfnRateBasedRuleProps()
Properties
MatchPredicates
The Predicates
object contains one Predicate
element for each ByteMatchSet
, IPSet
, or SqlInjectionMatchSet>
object that you want to include in a RateBasedRule
.
public object MatchPredicates { get; set; }
Property Value
System.
Remarks
MetricName
A name for the metrics for a RateBasedRule
.
public string MetricName { get; set; }
Property Value
System.
Remarks
The name can contain only alphanumeric characters (A-Z, a-z, 0-9), with maximum length 128 and minimum length one. It can't contain whitespace or metric names reserved for AWS WAF , including "All" and "Default_Action." You can't change the name of the metric after you create the RateBasedRule
.
Name
A friendly name or description for a RateBasedRule
.
public string Name { get; set; }
Property Value
System.
Remarks
You can't change the name of a RateBasedRule
after you create it.
RateKey
The field that AWS WAF uses to determine if requests are likely arriving from single source and thus subject to rate monitoring.
public string RateKey { get; set; }
Property Value
System.
Remarks
The only valid value for RateKey
is IP
. IP
indicates that requests arriving from the same IP address are subject to the RateLimit
that is specified in the RateBasedRule
.
RateLimit
The maximum number of requests, which have an identical value in the field specified by the RateKey
, allowed in a five-minute period.
public double RateLimit { get; set; }
Property Value
System.
Remarks
If the number of requests exceeds the RateLimit
and the other predicates specified in the rule are also met, AWS WAF triggers the action that is specified for this rule.