Class CfnRateBasedRule.Builder
java.lang.Object
software.amazon.awscdk.services.waf.regional.CfnRateBasedRule.Builder
- All Implemented Interfaces:
 software.amazon.jsii.Builder<CfnRateBasedRule>
- Enclosing class:
 CfnRateBasedRule
@Stability(Stable)
public static final class CfnRateBasedRule.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRateBasedRule>
A fluent builder for 
CfnRateBasedRule.- 
Method Summary
Modifier and TypeMethodDescriptionbuild()static CfnRateBasedRule.BuildermatchPredicates(List<? extends Object> matchPredicates) ThePredicatesobject contains onePredicateelement for eachByteMatchSet,IPSet, orSqlInjectionMatchSet>object that you want to include in aRateBasedRule.matchPredicates(IResolvable matchPredicates) ThePredicatesobject contains onePredicateelement for eachByteMatchSet,IPSet, orSqlInjectionMatchSet>object that you want to include in aRateBasedRule.metricName(String metricName) A name for the metrics for aRateBasedRule.A friendly name or description for aRateBasedRule.The field that AWS WAF uses to determine if requests are likely arriving from single source and thus subject to rate monitoring.The maximum number of requests, which have an identical value in the field specified by theRateKey, allowed in a five-minute period. 
- 
Method Details
- 
create
@Stability(Stable) public static CfnRateBasedRule.Builder create(software.constructs.Construct scope, String id) - Parameters:
 scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
 - a new instance of 
CfnRateBasedRule.Builder. 
 - 
metricName
A name for the metrics for aRateBasedRule.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.- Parameters:
 metricName- A name for the metrics for aRateBasedRule. This parameter is required.- Returns:
 this- See Also:
 
 - 
name
A friendly name or description for aRateBasedRule.You can't change the name of a
RateBasedRuleafter you create it.- Parameters:
 name- A friendly name or description for aRateBasedRule. This parameter is required.- Returns:
 this- See Also:
 
 - 
rateKey
The field that AWS WAF uses to determine if requests are likely arriving from single source and thus subject to rate monitoring.The only valid value for
RateKeyisIP.IPindicates that requests arriving from the same IP address are subject to theRateLimitthat is specified in theRateBasedRule.- Parameters:
 rateKey- The field that AWS WAF uses to determine if requests are likely arriving from single source and thus subject to rate monitoring. This parameter is required.- Returns:
 this- See Also:
 
 - 
rateLimit
The maximum number of requests, which have an identical value in the field specified by theRateKey, allowed in a five-minute period.If the number of requests exceeds the
RateLimitand the other predicates specified in the rule are also met, AWS WAF triggers the action that is specified for this rule.- Parameters:
 rateLimit- The maximum number of requests, which have an identical value in the field specified by theRateKey, allowed in a five-minute period. This parameter is required.- Returns:
 this- See Also:
 
 - 
matchPredicates
ThePredicatesobject contains onePredicateelement for eachByteMatchSet,IPSet, orSqlInjectionMatchSet>object that you want to include in aRateBasedRule.- Parameters:
 matchPredicates- ThePredicatesobject contains onePredicateelement for eachByteMatchSet,IPSet, orSqlInjectionMatchSet>object that you want to include in aRateBasedRule. This parameter is required.- Returns:
 this- See Also:
 
 - 
matchPredicates
@Stability(Stable) public CfnRateBasedRule.Builder matchPredicates(List<? extends Object> matchPredicates) ThePredicatesobject contains onePredicateelement for eachByteMatchSet,IPSet, orSqlInjectionMatchSet>object that you want to include in aRateBasedRule.- Parameters:
 matchPredicates- ThePredicatesobject contains onePredicateelement for eachByteMatchSet,IPSet, orSqlInjectionMatchSet>object that you want to include in aRateBasedRule. This parameter is required.- Returns:
 this- See Also:
 
 - 
build
- Specified by:
 buildin interfacesoftware.amazon.jsii.Builder<CfnRateBasedRule>- Returns:
 - a newly built instance of 
CfnRateBasedRule. 
 
 -