You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.
Class: Aws::WAF::Types::UpdateRuleGroupRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::WAF::Types::UpdateRuleGroupRequest
- Defined in:
- (unknown)
Overview
When passing UpdateRuleGroupRequest as input to an Aws::Client method, you can use a vanilla Hash:
{
rule_group_id: "ResourceId", # required
updates: [ # required
{
action: "INSERT", # required, accepts INSERT, DELETE
activated_rule: { # required
priority: 1, # required
rule_id: "ResourceId", # required
action: {
type: "BLOCK", # required, accepts BLOCK, ALLOW, COUNT
},
override_action: {
type: "NONE", # required, accepts NONE, COUNT
},
type: "REGULAR", # accepts REGULAR, RATE_BASED, GROUP
excluded_rules: [
{
rule_id: "ResourceId", # required
},
],
},
},
],
change_token: "ChangeToken", # required
}
Instance Attribute Summary collapse
-
#change_token ⇒ String
The value returned by the most recent call to GetChangeToken.
-
#rule_group_id ⇒ String
The
RuleGroupId
of the RuleGroup that you want to update. -
#updates ⇒ Array<Types::RuleGroupUpdate>
An array of
RuleGroupUpdate
objects that you want to insert into or delete from a RuleGroup.
Instance Attribute Details
#change_token ⇒ String
The value returned by the most recent call to GetChangeToken.
#rule_group_id ⇒ String
The RuleGroupId
of the RuleGroup that you want to update.
RuleGroupId
is returned by CreateRuleGroup and by
ListRuleGroups.
#updates ⇒ Array<Types::RuleGroupUpdate>
An array of RuleGroupUpdate
objects that you want to insert into or
delete from a RuleGroup.
You can only insert REGULAR
rules into a rule group.
ActivatedRule|OverrideAction
applies only when updating or adding a
RuleGroup
to a WebACL
. In this case you do not use
ActivatedRule|Action
. For all other update requests,
ActivatedRule|Action
is used instead of
ActivatedRule|OverrideAction
.