GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinition
import type { GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinition } from "https://googleapis.deno.dev/v1/orgpolicy:v2.ts";
Custom constraint definition. Defines this as a managed constraint.
interface GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinition {
actionType?: "ACTION_TYPE_UNSPECIFIED" | "ALLOW" | "DENY";
condition?: string;
methodTypes?:
| "METHOD_TYPE_UNSPECIFIED"
| "CREATE"
| "UPDATE"
| "DELETE"
| "REMOVE_GRANT"
| "GOVERN_TAGS"[];
parameters?: {};
resourceTypes?: string[];
}§Properties
§
condition?: string
[src]Org policy condition/expression. For example:
resource.instanceName.matches("[production|test]_.*_(\d)+")
or,
resource.management.auto_upgrade == true
The max length of the condition
is 1000 characters.
§
methodTypes?: "METHOD_TYPE_UNSPECIFIED" | "CREATE" | "UPDATE" | "DELETE" | "REMOVE_GRANT" | "GOVERN_TAGS"[]
[src]All the operations being applied for this constraint.