You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.
Class: Aws::WAF::Types::UpdateWebACLRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::WAF::Types::UpdateWebACLRequest
- Defined in:
- (unknown)
Overview
When passing UpdateWebACLRequest as input to an Aws::Client method, you can use a vanilla Hash:
{
web_acl_id: "ResourceId", # required
change_token: "ChangeToken", # required
updates: [
{
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
},
],
},
},
],
default_action: {
type: "BLOCK", # required, accepts BLOCK, ALLOW, COUNT
},
}
Instance Attribute Summary collapse
-
#change_token ⇒ String
The value returned by the most recent call to GetChangeToken.
-
#default_action ⇒ Types::WafAction
A default action for the web ACL, either ALLOW or BLOCK.
-
#updates ⇒ Array<Types::WebACLUpdate>
An array of updates to make to the WebACL.
-
#web_acl_id ⇒ String
The
WebACLId
of the WebACL that you want to update.
Instance Attribute Details
#change_token ⇒ String
The value returned by the most recent call to GetChangeToken.
#default_action ⇒ Types::WafAction
A default action for the web ACL, either ALLOW or BLOCK. AWS WAF performs the default action if a request doesn\'t match the criteria in any of the rules in a web ACL.
#updates ⇒ Array<Types::WebACLUpdate>
An array of updates to make to the WebACL.
An array of WebACLUpdate
objects that you want to insert into or
delete from a WebACL. For more information, see the applicable
data types:
WebACLUpdate: Contains
Action
andActivatedRule
ActivatedRule: Contains
Action
,OverrideAction
,Priority
,RuleId
, andType
.ActivatedRule|OverrideAction
applies only when updating or adding aRuleGroup
to aWebACL
. In this case, you do not useActivatedRule|Action
. For all other update requests,ActivatedRule|Action
is used instead ofActivatedRule|OverrideAction
.WafAction: Contains
Type
#web_acl_id ⇒ String
The WebACLId
of the WebACL that you want to update. WebACLId
is returned by CreateWebACL and by ListWebACLs.