WebAclRuleStatementRateBasedStatement constructor
- required Input<
String> aggregateKeyType, - Input<
List< ? customKeys,WebAclRuleStatementRateBasedStatementCustomKey> ?> - Input<
int?> ? evaluationWindowSec, - Input<
WebAclRuleStatementRateBasedStatementForwardedIpConfig?> ? forwardedIpConfig, - required Input<
int> limit, - Input<
WebAclRuleStatementRateBasedStatementScopeDownStatement?> ? scopeDownStatement,
Creates a new WebAclRuleStatementRateBasedStatement.
aggregateKeyType Setting that indicates how to aggregate the request counts. Defaults to IP. Valid values: IP, FORWARDED_IP, CUSTOM_KEYS, CONSTANT.
customKeys Aggregate the request counts using one or more web request components as the aggregate keys. See Custom Keys below.
evaluationWindowSec Time window for which the rate limit applies, in seconds. Defaults to 300 (5 minutes). Valid values: 60, 120, 300, 600.
forwardedIpConfig Configuration for inspecting IP addresses in an HTTP header instead of using the web request origin. See Forwarded IP Config below.
limit Rate limit threshold (requests per evaluation window period).
scopeDownStatement Additional statement to narrow the scope of requests that the rate-based rule evaluates. See Scope Down Statement below.
Implementation
const WebAclRuleStatementRateBasedStatement({
required this.aggregateKeyType,
this.customKeys,
this.evaluationWindowSec,
this.forwardedIpConfig,
required this.limit,
this.scopeDownStatement,
});