Package com.pulumi.aws.wafv2.inputs
Class WebAclRuleStatementRateBasedStatementArgs.Builder
- java.lang.Object
-
- com.pulumi.aws.wafv2.inputs.WebAclRuleStatementRateBasedStatementArgs.Builder
-
- Enclosing class:
- WebAclRuleStatementRateBasedStatementArgs
public static final class WebAclRuleStatementRateBasedStatementArgs.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
Builder(WebAclRuleStatementRateBasedStatementArgs defaults)
-
Method Summary
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(WebAclRuleStatementRateBasedStatementArgs defaults)
-
-
Method Detail
-
aggregateKeyType
public WebAclRuleStatementRateBasedStatementArgs.Builder aggregateKeyType(@Nullable com.pulumi.core.Output<java.lang.String> aggregateKeyType)
- Parameters:
aggregateKeyType
- Setting that indicates how to aggregate the request counts. Valid values include: `CONSTANT`, `CUSTOM_KEYS`, `FORWARDED_IP`, or `IP`. Default: `IP`.- Returns:
- builder
-
aggregateKeyType
public WebAclRuleStatementRateBasedStatementArgs.Builder aggregateKeyType(java.lang.String aggregateKeyType)
- Parameters:
aggregateKeyType
- Setting that indicates how to aggregate the request counts. Valid values include: `CONSTANT`, `CUSTOM_KEYS`, `FORWARDED_IP`, or `IP`. Default: `IP`.- Returns:
- builder
-
customKeys
public WebAclRuleStatementRateBasedStatementArgs.Builder customKeys(@Nullable com.pulumi.core.Output<java.util.List<WebAclRuleStatementRateBasedStatementCustomKeyArgs>> customKeys)
- Parameters:
customKeys
- Aggregate the request counts using one or more web request components as the aggregate keys. See `custom_key` below for details.- Returns:
- builder
-
customKeys
public WebAclRuleStatementRateBasedStatementArgs.Builder customKeys(java.util.List<WebAclRuleStatementRateBasedStatementCustomKeyArgs> customKeys)
- Parameters:
customKeys
- Aggregate the request counts using one or more web request components as the aggregate keys. See `custom_key` below for details.- Returns:
- builder
-
customKeys
public WebAclRuleStatementRateBasedStatementArgs.Builder customKeys(WebAclRuleStatementRateBasedStatementCustomKeyArgs... customKeys)
- Parameters:
customKeys
- Aggregate the request counts using one or more web request components as the aggregate keys. See `custom_key` below for details.- Returns:
- builder
-
evaluationWindowSec
public WebAclRuleStatementRateBasedStatementArgs.Builder evaluationWindowSec(@Nullable com.pulumi.core.Output<java.lang.Integer> evaluationWindowSec)
- Parameters:
evaluationWindowSec
- The amount of time, in seconds, that AWS WAF should include in its request counts, looking back from the current time. Valid values are `60`, `120`, `300`, and `600`. Defaults to `300` (5 minutes). **NOTE:** 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.- Returns:
- builder
-
evaluationWindowSec
public WebAclRuleStatementRateBasedStatementArgs.Builder evaluationWindowSec(java.lang.Integer evaluationWindowSec)
- Parameters:
evaluationWindowSec
- The amount of time, in seconds, that AWS WAF should include in its request counts, looking back from the current time. Valid values are `60`, `120`, `300`, and `600`. Defaults to `300` (5 minutes). **NOTE:** 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.- Returns:
- builder
-
forwardedIpConfig
public WebAclRuleStatementRateBasedStatementArgs.Builder forwardedIpConfig(@Nullable com.pulumi.core.Output<WebAclRuleStatementRateBasedStatementForwardedIpConfigArgs> forwardedIpConfig)
- Parameters:
forwardedIpConfig
- 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. If `aggregate_key_type` is set to `FORWARDED_IP`, this block is required. See `forwarded_ip_config` below for details.- Returns:
- builder
-
forwardedIpConfig
public WebAclRuleStatementRateBasedStatementArgs.Builder forwardedIpConfig(WebAclRuleStatementRateBasedStatementForwardedIpConfigArgs forwardedIpConfig)
- Parameters:
forwardedIpConfig
- 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. If `aggregate_key_type` is set to `FORWARDED_IP`, this block is required. See `forwarded_ip_config` below for details.- Returns:
- builder
-
limit
public WebAclRuleStatementRateBasedStatementArgs.Builder limit(com.pulumi.core.Output<java.lang.Integer> limit)
- Parameters:
limit
- Limit on requests per 5-minute period for a single originating IP address.- Returns:
- builder
-
limit
public WebAclRuleStatementRateBasedStatementArgs.Builder limit(java.lang.Integer limit)
- Parameters:
limit
- Limit on requests per 5-minute period for a single originating IP address.- Returns:
- builder
-
scopeDownStatement
public WebAclRuleStatementRateBasedStatementArgs.Builder scopeDownStatement(@Nullable com.pulumi.core.Output<WebAclRuleStatementRateBasedStatementScopeDownStatementArgs> scopeDownStatement)
- Parameters:
scopeDownStatement
- Optional nested statement that narrows the scope of the rate-based statement to matching web requests. This can be any nestable statement, and you can nest statements at any level below this scope-down statement. See `statement` above for details. If `aggregate_key_type` is set to `CONSTANT`, this block is required.- Returns:
- builder
-
scopeDownStatement
public WebAclRuleStatementRateBasedStatementArgs.Builder scopeDownStatement(WebAclRuleStatementRateBasedStatementScopeDownStatementArgs scopeDownStatement)
- Parameters:
scopeDownStatement
- Optional nested statement that narrows the scope of the rate-based statement to matching web requests. This can be any nestable statement, and you can nest statements at any level below this scope-down statement. See `statement` above for details. If `aggregate_key_type` is set to `CONSTANT`, this block is required.- Returns:
- builder
-
build
public WebAclRuleStatementRateBasedStatementArgs build()
-
-