You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.
Class: Aws::WAF::Types::UpdateRateBasedRuleRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::WAF::Types::UpdateRateBasedRuleRequest
- Defined in:
- (unknown)
Overview
When passing UpdateRateBasedRuleRequest as input to an Aws::Client method, you can use a vanilla Hash:
{
rule_id: "ResourceId", # required
change_token: "ChangeToken", # required
updates: [ # required
{
action: "INSERT", # required, accepts INSERT, DELETE
predicate: { # required
negated: false, # required
type: "IPMatch", # required, accepts IPMatch, ByteMatch, SqlInjectionMatch, GeoMatch, SizeConstraint, XssMatch, RegexMatch
data_id: "ResourceId", # required
},
},
],
rate_limit: 1, # required
}
Instance Attribute Summary collapse
-
#change_token ⇒ String
The value returned by the most recent call to GetChangeToken.
-
#rate_limit ⇒ Integer
The maximum number of requests, which have an identical value in the field specified by the
RateKey
, allowed in a five-minute period. -
#rule_id ⇒ String
The
RuleId
of theRateBasedRule
that you want to update. -
#updates ⇒ Array<Types::RuleUpdate>
An array of
RuleUpdate
objects that you want to insert into or delete from a RateBasedRule.
Instance Attribute Details
#change_token ⇒ String
The value returned by the most recent call to GetChangeToken.
#rate_limit ⇒ Integer
The maximum number of requests, which have an identical value in the
field specified by the 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.
#rule_id ⇒ String
The RuleId
of the RateBasedRule
that you want to update. RuleId
is
returned by CreateRateBasedRule
and by ListRateBasedRules.
#updates ⇒ Array<Types::RuleUpdate>
An array of RuleUpdate
objects that you want to insert into or delete
from a RateBasedRule.