class Aws::WAF::Types::RuleUpdate
<note markdown=“1”> This is **AWS WAF
Classic** documentation. For more information, see
- AWS
WAF
Classic][1 -
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.
</note>
Specifies a `Predicate` (such as an `IPSet`) and indicates whether you want to add it to a `Rule` or delete it from a `Rule`.
[1]: docs.aws.amazon.com/waf/latest/developerguide/classic-waf-chapter.html [2]: docs.aws.amazon.com/waf/latest/developerguide/waf-chapter.html
@note When making an API call, you may pass RuleUpdate
data as a 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 }, }
@!attribute [rw] action
Specify `INSERT` to add a `Predicate` to a `Rule`. Use `DELETE` to remove a `Predicate` from a `Rule`. @return [String]
@!attribute [rw] predicate
The ID of the `Predicate` (such as an `IPSet`) that you want to add to a `Rule`. @return [Types::Predicate]
@see docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/RuleUpdate AWS API Documentation
Constants
- SENSITIVE