A custom constraint defined by customers which can only be applied to the given resource types and organization.
By creating a custom constraint, customers can apply policies of this custom constraint. Creating a custom constraint itself does NOT apply any policy enforcement.
| JSON representation |
|---|
{ "name": string, "resourceTypes": [ string ], "methodTypes": [ enum ( |
| Fields | |
|---|---|
name |
Immutable. Name of the constraint. This is unique within the organization. Format of the name should be
Example: The max length is 70 characters and the minimum length is 1. Note that the prefix |
resourceTypes[] |
Immutable. The resource instance type on which this policy applies. Format will be of the form :
|
methodTypes[] |
All the operations being applied for this constraint. |
condition |
A Common Expression Language (CEL) condition which is used in the evaluation of the constraint. For example: The max length of the condition is 1000 characters. |
actionType |
Allow or deny type. |
displayName |
One line display name for the UI. The max length of the displayName is 200 characters. |
description |
Detailed information about this custom policy constraint. The max length of the description is 2000 characters. |
updateTime |
Output only. The last time this custom constraint was updated. This represents the last time that the Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |