aws::waf-rule

Creates a global rule.

Example

aws::waf-rule rule-example
    name: "rule-example"
    metric-name: "ruleExample"

    predicate
        condition: $(aws::waf-regex-match-set regex-match-set-example-waf)
    end
end

Attributes

Attribute Description
name The name of the rule. (Required)
metric-name The metric name of the rule. Can only contain letters and numbers. (Required)
predicate set subresource

A set of predicates specifying the connection between rule and conditions.

condition
The condition to be attached with the rule. (Required)
negated
Set if the condition is checked to be false. Defaults to false.
type
The type of condition being attached. Valid values are XssMatch, GeoMatch, SqlInjectionMatch, ByteMatch, RegexMatch, SizeConstraint or IPMatch.