Class: Aws::WAF::Types::UpdateRuleRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::WAF::Types::UpdateRuleRequest
- Defined in:
- gems/aws-sdk-waf/lib/aws-sdk-waf/types.rb
Overview
Note:
When making an API call, you may pass UpdateRuleRequest data as a 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
},
},
],
}
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#change_token ⇒ String
The value returned by the most recent call to GetChangeToken.
-
#rule_id ⇒ String
The
RuleId
of theRule
that you want to update. -
#updates ⇒ Array<Types::RuleUpdate>
An array of
RuleUpdate
objects that you want to insert into or delete from a Rule.
Instance Attribute Details
#change_token ⇒ String
The value returned by the most recent call to GetChangeToken.
6544 6545 6546 6547 6548 6549 6550 |
# File 'gems/aws-sdk-waf/lib/aws-sdk-waf/types.rb', line 6544 class UpdateRuleRequest < Struct.new( :rule_id, :change_token, :updates) SENSITIVE = [] include Aws::Structure end |
#rule_id ⇒ String
The RuleId
of the Rule
that you want to update. RuleId
is
returned by CreateRule
and by ListRules.
6544 6545 6546 6547 6548 6549 6550 |
# File 'gems/aws-sdk-waf/lib/aws-sdk-waf/types.rb', line 6544 class UpdateRuleRequest < Struct.new( :rule_id, :change_token, :updates) SENSITIVE = [] include Aws::Structure end |
#updates ⇒ Array<Types::RuleUpdate>
An array of RuleUpdate
objects that you want to insert into or
delete from a Rule. For more information, see the applicable data
types:
RuleUpdate: Contains
Action
andPredicate
Predicate: Contains
DataId
,Negated
, andType
FieldToMatch: Contains
Data
andType
6544 6545 6546 6547 6548 6549 6550 |
# File 'gems/aws-sdk-waf/lib/aws-sdk-waf/types.rb', line 6544 class UpdateRuleRequest < Struct.new( :rule_id, :change_token, :updates) SENSITIVE = [] include Aws::Structure end |