Rule class
A single rule, which you can use in a WebACL or RuleGroup to
identify web requests that you want to allow, block, or count. Each rule
includes one top-level Statement that AWS WAF uses to identify
matching web requests, and parameters that govern how AWS WAF handles them.
Constructors
- Rule({required String name, required int priority, required Statement statement, required VisibilityConfig visibilityConfig, RuleAction? action, OverrideAction? overrideAction})
-
Rule.fromJson(Map<
String, dynamic> json) -
factory
Properties
- action → RuleAction?
-
The action that AWS WAF should take on a web request when it matches the
rule statement. Settings at the web ACL level can override the rule action
setting.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
The name of the rule. You can't change the name of a
Rule
after you create it.final - overrideAction → OverrideAction?
-
The override action to apply to the rules in a rule group. Used only for
rule statements that reference a rule group, like
RuleGroupReferenceStatement
andManagedRuleGroupStatement
.final - priority → int
-
If you define more than one
Rule
in aWebACL
, AWS WAF evaluates each request against theRules
in order based on the value ofPriority
. AWS WAF processes rules with lower priority first. The priorities don't need to be consecutive, but they must all be different.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- statement → Statement
-
The AWS WAF processing statement for the rule, for example
ByteMatchStatement or SizeConstraintStatement.
final
- visibilityConfig → VisibilityConfig
-
Defines and enables Amazon CloudWatch metrics and web request sample
collection.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited