You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.
Class: Aws::WAF::Types::RuleUpdate
- Inherits:
-
Struct
- Object
- Struct
- Aws::WAF::Types::RuleUpdate
- Defined in:
- (unknown)
Overview
When passing RuleUpdate as input to an Aws::Client method, you can use a vanilla Hash:
{
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
},
}
This is AWS WAF Classic documentation. For more information, see AWS WAF Classic in the developer guide. For the latest version of AWS WAF, use the AWS WAFV2 API and see the AWS WAF Developer Guide. With the latest version, AWS WAF has a single set of endpoints for regional and global use.
Specifies a Predicate
(such as an IPSet
) and indicates whether you want to add it to a Rule
or delete it from a Rule
.
Instance Attribute Summary collapse
-
#action ⇒ String
Specify
INSERT
to add aPredicate
to aRule
. -
#predicate ⇒ Types::Predicate
The ID of the
Predicate
(such as anIPSet
) that you want to add to aRule
.
Instance Attribute Details
#action ⇒ String
Specify INSERT
to add a Predicate
to a Rule
. Use DELETE
to
remove a Predicate
from a Rule
.
Possible values:
- INSERT
- DELETE
#predicate ⇒ Types::Predicate
The ID of the Predicate
(such as an IPSet
) that you want to add to a
Rule
.