condition property

String? condition
getter/setter pair

A Common Expression Language (CEL) condition expression that must evaluate to true for the constraint to be enforced.

The maximum length is 1000 characters. For example: + resource.instanceName.matches('(production|test)_(.+_)?[\d]+'): Evaluates to true if the resource's instanceName attribute contains the following: + The prefix production or test + An underscore (_) + Optional: One or more characters, followed by an underscore (_) + One or more digits + resource.management.auto_upgrade == true: Evaluates to true if the resource's management.auto_upgrade attribute is true.

Implementation

core.String? condition;