@Stability(value=Stable) public static final class CfnWebACL.RateBasedStatementProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnWebACL.RateBasedStatementProperty>
CfnWebACL.RateBasedStatementProperty| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) public CfnWebACL.RateBasedStatementProperty.Builder aggregateKeyType(String aggregateKeyType)
CfnWebACL.RateBasedStatementProperty.getAggregateKeyType()aggregateKeyType - Setting that indicates how to aggregate the request counts. The options are the following:. This parameter is required.
ForwardedIPConfig , to specify the header to use.this@Stability(value=Stable) public CfnWebACL.RateBasedStatementProperty.Builder limit(Number limit)
CfnWebACL.RateBasedStatementProperty.getLimit()limit - The limit on requests per 5-minute period for a single originating IP address. This parameter is required.
If the statement includes a ScopeDownStatement , this limit is applied only to the requests that match the statement.this@Stability(value=Stable) public CfnWebACL.RateBasedStatementProperty.Builder forwardedIpConfig(CfnWebACL.ForwardedIPConfigurationProperty forwardedIpConfig)
CfnWebACL.RateBasedStatementProperty.getForwardedIpConfig()forwardedIpConfig - 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.
If the specified header isn't present in the request, AWS WAF doesn't apply the rule to the web request at all.
This is required if AggregateKeyType is set to FORWARDED_IP .
this@Stability(value=Stable) public CfnWebACL.RateBasedStatementProperty.Builder forwardedIpConfig(IResolvable forwardedIpConfig)
CfnWebACL.RateBasedStatementProperty.getForwardedIpConfig()forwardedIpConfig - 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.
If the specified header isn't present in the request, AWS WAF doesn't apply the rule to the web request at all.
This is required if AggregateKeyType is set to FORWARDED_IP .
this@Stability(value=Stable) public CfnWebACL.RateBasedStatementProperty.Builder scopeDownStatement(CfnWebACL.StatementProperty scopeDownStatement)
CfnWebACL.RateBasedStatementProperty.getScopeDownStatement()scopeDownStatement - An optional nested statement that narrows the scope of the web requests that are evaluated by the rate-based statement.
Requests are only tracked by the rate-based statement if they 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.this@Stability(value=Stable) public CfnWebACL.RateBasedStatementProperty.Builder scopeDownStatement(IResolvable scopeDownStatement)
CfnWebACL.RateBasedStatementProperty.getScopeDownStatement()scopeDownStatement - An optional nested statement that narrows the scope of the web requests that are evaluated by the rate-based statement.
Requests are only tracked by the rate-based statement if they 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.this@Stability(value=Stable) public CfnWebACL.RateBasedStatementProperty build()
build in interface software.amazon.jsii.Builder<CfnWebACL.RateBasedStatementProperty>CfnWebACL.RateBasedStatementPropertyNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.