@Stability(value=Stable) public static final class CfnRateBasedRuleProps.Builder extends Object implements software.amazon.jsii.Builder<CfnRateBasedRuleProps>
CfnRateBasedRuleProps| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CfnRateBasedRuleProps |
build()
Builds the configured instance.
|
CfnRateBasedRuleProps.Builder |
matchPredicates(IResolvable matchPredicates)
Sets the value of
CfnRateBasedRuleProps.getMatchPredicates() |
CfnRateBasedRuleProps.Builder |
matchPredicates(List<? extends Object> matchPredicates)
Sets the value of
CfnRateBasedRuleProps.getMatchPredicates() |
CfnRateBasedRuleProps.Builder |
metricName(String metricName)
Sets the value of
CfnRateBasedRuleProps.getMetricName() |
CfnRateBasedRuleProps.Builder |
name(String name)
Sets the value of
CfnRateBasedRuleProps.getName() |
CfnRateBasedRuleProps.Builder |
rateKey(String rateKey)
Sets the value of
CfnRateBasedRuleProps.getRateKey() |
CfnRateBasedRuleProps.Builder |
rateLimit(Number rateLimit)
Sets the value of
CfnRateBasedRuleProps.getRateLimit() |
@Stability(value=Stable) public CfnRateBasedRuleProps.Builder metricName(String metricName)
CfnRateBasedRuleProps.getMetricName()metricName - A name for the metrics for a `RateBasedRule` . This parameter is required.
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 .this@Stability(value=Stable) public CfnRateBasedRuleProps.Builder name(String name)
CfnRateBasedRuleProps.getName()name - A friendly name or description for a `RateBasedRule` . This parameter is required.
You can't change the name of a RateBasedRule after you create it.this@Stability(value=Stable) public CfnRateBasedRuleProps.Builder rateKey(String rateKey)
CfnRateBasedRuleProps.getRateKey()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.
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 .this@Stability(value=Stable) public CfnRateBasedRuleProps.Builder rateLimit(Number rateLimit)
CfnRateBasedRuleProps.getRateLimit()rateLimit - The maximum number of requests, which have an identical value in the field specified by the `RateKey` , allowed in a five-minute period. This parameter is required.
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.this@Stability(value=Stable) public CfnRateBasedRuleProps.Builder matchPredicates(IResolvable matchPredicates)
CfnRateBasedRuleProps.getMatchPredicates()matchPredicates - The `Predicates` object contains one `Predicate` element for each `ByteMatchSet` , `IPSet` , or `SqlInjectionMatchSet>` object that you want to include in a `RateBasedRule` .this@Stability(value=Stable) public CfnRateBasedRuleProps.Builder matchPredicates(List<? extends Object> matchPredicates)
CfnRateBasedRuleProps.getMatchPredicates()matchPredicates - The `Predicates` object contains one `Predicate` element for each `ByteMatchSet` , `IPSet` , or `SqlInjectionMatchSet>` object that you want to include in a `RateBasedRule` .this@Stability(value=Stable) public CfnRateBasedRuleProps build()
build in interface software.amazon.jsii.Builder<CfnRateBasedRuleProps>CfnRateBasedRulePropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.