public static interface CreateRateBasedRuleRequest.Builder extends WafRequest.Builder, CopyableBuilder<CreateRateBasedRuleRequest.Builder,CreateRateBasedRuleRequest>
Modifier and Type | Method and Description |
---|---|
CreateRateBasedRuleRequest.Builder |
changeToken(String changeToken)
The
ChangeToken that you used to submit the CreateRateBasedRule request. |
CreateRateBasedRuleRequest.Builder |
metricName(String metricName)
A friendly name or description for the metrics for this
RateBasedRule . |
CreateRateBasedRuleRequest.Builder |
name(String name)
A friendly name or description of the RateBasedRule.
|
CreateRateBasedRuleRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
Add an optional request override configuration.
|
CreateRateBasedRuleRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
Add an optional request override configuration.
|
CreateRateBasedRuleRequest.Builder |
rateKey(RateKey rateKey)
The field that AWS WAF uses to determine if requests are likely arriving from a single source and thus
subject to rate monitoring.
|
CreateRateBasedRuleRequest.Builder |
rateKey(String rateKey)
The field that AWS WAF uses to determine if requests are likely arriving from a single source and thus
subject to rate monitoring.
|
CreateRateBasedRuleRequest.Builder |
rateLimit(Long rateLimit)
The maximum number of requests, which have an identical value in the field that is specified by
RateKey , allowed in a five-minute period. |
build
overrideConfiguration
copy
applyMutation, build
CreateRateBasedRuleRequest.Builder name(String name)
A friendly name or description of the RateBasedRule. You can't change the name of a
RateBasedRule
after you create it.
name
- A friendly name or description of the RateBasedRule. You can't change the name of a
RateBasedRule
after you create it.CreateRateBasedRuleRequest.Builder metricName(String metricName)
A friendly name or description for the metrics for this RateBasedRule
. The name can contain only
alphanumeric characters (A-Z, a-z, 0-9); the name can't contain whitespace. You can't change the name of the
metric after you create the RateBasedRule
.
metricName
- A friendly name or description for the metrics for this RateBasedRule
. The name can
contain only alphanumeric characters (A-Z, a-z, 0-9); the name can't contain whitespace. You can't
change the name of the metric after you create the RateBasedRule
.CreateRateBasedRuleRequest.Builder rateKey(String rateKey)
The field that AWS WAF uses to determine if requests are likely arriving from a single source and thus
subject to rate monitoring. The only valid value for RateKey
is IP
. IP
indicates that requests that arrive from the same IP address are subject to the RateLimit
that
is specified in the RateBasedRule
.
rateKey
- The field that AWS WAF uses to determine if requests are likely arriving from a single source and thus
subject to rate monitoring. The only valid value for RateKey
is IP
.
IP
indicates that requests that arrive from the same IP address are subject to the
RateLimit
that is specified in the RateBasedRule
.RateKey
,
RateKey
CreateRateBasedRuleRequest.Builder rateKey(RateKey rateKey)
The field that AWS WAF uses to determine if requests are likely arriving from a single source and thus
subject to rate monitoring. The only valid value for RateKey
is IP
. IP
indicates that requests that arrive from the same IP address are subject to the RateLimit
that
is specified in the RateBasedRule
.
rateKey
- The field that AWS WAF uses to determine if requests are likely arriving from a single source and thus
subject to rate monitoring. The only valid value for RateKey
is IP
.
IP
indicates that requests that arrive from the same IP address are subject to the
RateLimit
that is specified in the RateBasedRule
.RateKey
,
RateKey
CreateRateBasedRuleRequest.Builder rateLimit(Long rateLimit)
The maximum number of requests, which have an identical value in the field that is specified by
RateKey
, allowed in a five-minute period. 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.
rateLimit
- The maximum number of requests, which have an identical value in the field that is specified by
RateKey
, allowed in a five-minute period. 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.CreateRateBasedRuleRequest.Builder changeToken(String changeToken)
The ChangeToken
that you used to submit the CreateRateBasedRule
request. You can
also use this value to query the status of the request. For more information, see
GetChangeTokenStatus.
changeToken
- The ChangeToken
that you used to submit the CreateRateBasedRule
request. You
can also use this value to query the status of the request. For more information, see
GetChangeTokenStatus.CreateRateBasedRuleRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
overrideConfiguration
- The override configuration.CreateRateBasedRuleRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
builderConsumer
- A Consumer
to which an empty AwsRequestOverrideConfiguration.Builder
will be
given.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.