RuleGroup class

A rule group defines a collection of rules to inspect and control web requests that you can use in a WebACL. When you create a rule group, you define an immutable capacity limit. If you update a rule group, you must stay within the capacity. This allows others to reuse the rule group with confidence in its capacity requirements.

Constructors

RuleGroup({required String arn, required int capacity, required String id, required String name, required VisibilityConfig visibilityConfig, String? description, List<Rule>? rules})
RuleGroup.fromJson(Map<String, dynamic> json)
factory

Properties

arn String
The Amazon Resource Name (ARN) of the entity.
final
capacity int
The web ACL capacity units (WCUs) required for this rule group.
final
description String?
A description of the rule group that helps with identification. You cannot change the description of a rule group after you create it.
final
hashCode int
The hash code for this object.
no setterinherited
id String
A unique identifier for the rule group. This ID is returned in the responses to create and list commands. You provide it to operations like update and delete.
final
name String
The name of the rule group. You cannot change the name of a rule group after you create it.
final
rules List<Rule>?
The Rule statements used to identify the 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.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
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
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited