AWS WAF Rule Predicates
Predicates is a property of the AWS::WAF::Rule resource that specifies the ByteMatchSet, IPSet, SizeConstraintSet, SqlInjectionMatchSet, or XssMatchSet objects to include in an AWS WAF rule. If you add more than one predicate to a rule,
an incoming request must match all of the specifications in the predicates to be allowed
or blocked.
Syntax
Properties
DataId-
The unique identifier of a predicate, such as the ID of a
ByteMatchSetorIPSet.Required: Yes
Type: String
Negated-
Whether to use the settings or the negated settings that you specified in the
ByteMatchSet,IPSet,SizeConstraintSet,SqlInjectionMatchSet, orXssMatchSetobjects.Specify
falseif you want AWS WAF to allow, block, or count requests based on the settings in the specifiedByteMatchSet,IPSet,SizeConstraintSet,SqlInjectionMatchSet, orXssMatchSetobjects. For example, if anIPSetobject includes the IP address192.0.2.44, AWS WAF allows, blocks, or counts requests originating from that IP address.Specify
trueif you want AWS WAF to allow, block, or count requests based on the negated settings in theByteMatchSet,IPSet,SizeConstraintSet,SqlInjectionMatchSet, orXssMatchSetobjects. For example, if anIPSetobject includes the IP address192.0.2.44, AWS WAF allows, blocks, or counts requests originating from all IP addresses except 192.0.2.44.Required: Yes
Type: Boolean
Type-
The type of predicate in a rule, such as an
IPSet(IPMatch). For valid values, see theTypecontents of the Predicate data type in the AWS WAF API Reference.Required: Yes
Type: String
