@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:42.654Z") @Stability(value=Stable) public interface CfnRateBasedRuleProps extends software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.waf.regional.*;
CfnRateBasedRuleProps cfnRateBasedRuleProps = CfnRateBasedRuleProps.builder()
.metricName("metricName")
.name("name")
.rateKey("rateKey")
.rateLimit(123)
// the properties below are optional
.matchPredicates(List.of(PredicateProperty.builder()
.dataId("dataId")
.negated(false)
.type("type")
.build()))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnRateBasedRuleProps.Builder
A builder for
CfnRateBasedRuleProps |
static class |
CfnRateBasedRuleProps.Jsii$Proxy
An implementation for
CfnRateBasedRuleProps |
| Modifier and Type | Method and Description |
|---|---|
static CfnRateBasedRuleProps.Builder |
builder() |
default Object |
getMatchPredicates()
The `Predicates` object contains one `Predicate` element for each `ByteMatchSet` , `IPSet` , or `SqlInjectionMatchSet>` object that you want to include in a `RateBasedRule` .
|
String |
getMetricName()
A name for the metrics for a `RateBasedRule` .
|
String |
getName()
A friendly name or description for a `RateBasedRule` .
|
String |
getRateKey()
The field that AWS WAF uses to determine if requests are likely arriving from single source and thus subject to rate monitoring.
|
Number |
getRateLimit()
The maximum number of requests, which have an identical value in the field specified by the `RateKey` , allowed in a five-minute period.
|
@Stability(value=Stable) @NotNull String getMetricName()
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 .
@Stability(value=Stable) @NotNull String getName()
You can't change the name of a RateBasedRule after you create it.
@Stability(value=Stable) @NotNull String getRateKey()
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 .
@Stability(value=Stable) @NotNull Number getRateLimit()
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.
@Stability(value=Stable) @Nullable default Object getMatchPredicates()
@Stability(value=Stable) static CfnRateBasedRuleProps.Builder builder()
CfnRateBasedRuleProps.Builder of CfnRateBasedRulePropsCopyright © 2022. All rights reserved.