WebAclRateBasedStatementArgs

data class WebAclRateBasedStatementArgs(val aggregateKeyType: Output<WebAclRateBasedStatementAggregateKeyType>, val customKeys: Output<List<WebAclRateBasedStatementCustomKeyArgs>>? = null, val evaluationWindowSec: Output<Int>? = null, val forwardedIpConfig: Output<WebAclForwardedIpConfigurationArgs>? = null, val limit: Output<Int>, val scopeDownStatement: Output<WebAclStatementArgs>? = null) : ConvertibleToJava<WebAclRateBasedStatementArgs>

Constructors

Link copied to clipboard
constructor(aggregateKeyType: Output<WebAclRateBasedStatementAggregateKeyType>, customKeys: Output<List<WebAclRateBasedStatementCustomKeyArgs>>? = null, evaluationWindowSec: Output<Int>? = null, forwardedIpConfig: Output<WebAclForwardedIpConfigurationArgs>? = null, limit: Output<Int>, scopeDownStatement: Output<WebAclStatementArgs>? = null)

Properties

Link copied to clipboard

Setting that indicates how to aggregate the request counts.

Link copied to clipboard

Specifies the aggregate keys to use in a rate-base rule.

Link copied to clipboard
val evaluationWindowSec: Output<Int>? = null

The amount of time, in seconds, that AWS WAF should include in its request counts, looking back from the current time. For example, for a setting of 120, when AWS WAF checks the rate, it counts the requests for the 2 minutes immediately preceding the current time. Valid settings are 60, 120, 300, and 600. This setting doesn't determine how often AWS WAF checks the rate, but how far back it looks each time it checks. AWS WAF checks the rate about every 10 seconds. Default: 300 (5 minutes)

Link copied to clipboard

The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. Commonly, this is the X-Forwarded-For (XFF) header, but you can specify any header name.

Link copied to clipboard
val limit: Output<Int>

The limit on requests per 5-minute period for a single aggregation instance for the rate-based rule. If the rate-based statement includes a ScopeDownStatement , this limit is applied only to the requests that match the statement. Examples:

Link copied to clipboard

An optional nested statement that narrows the scope of the web requests that are evaluated and managed by the rate-based statement. When you use a scope-down statement, the rate-based rule only tracks and rate limits requests that match the scope-down statement. You can use any nestable Statement in the scope-down statement, and you can nest statements at any level, the same as you can for a rule statement.

Functions

Link copied to clipboard
open override fun toJava(): WebAclRateBasedStatementArgs