SecurityPolicyRuleMatchExpr class
match.expr -- a user-defined Common Expression Language (CEL)
predicate evaluated against the request. The expression is passed
to Cloud Armor as an opaque string; the Dart wrapper does NOT
type-check CEL syntax, so callers are responsible for matching
Cloud Armor's CEL dialect (see
https://cloud.google.com/armor/docs/rules-language-reference).
Example expressions:
origin.region_code == 'JP'-- only Japanese-geocoded traffic.request.path.matches('/admin/.*')-- requests to any admin URL.
- Annotations
-
- @immutable
Constructors
-
SecurityPolicyRuleMatchExpr({required TfArg<
String> expression}) -
const
Properties
-
expression
→ TfArg<
String> -
CEL expression. Pass as a raw String -- the wrapper does not
validate CEL syntax; invalid expressions surface as Cloud Armor
apply-time errors.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toArgMap(
) → Map< String, Object?> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited