Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

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"[];
resourceTypes?: string[];
}

§Properties

§
actionType?: "ACTION_TYPE_UNSPECIFIED" | "ALLOW" | "DENY"
[src]

Allow or deny type.

§
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.

§

Stores the structure of Parameters used by the constraint condition. The key of map represents the name of the parameter.

§
resourceTypes?: string[]
[src]

The resource instance type on which this policy applies. Format will be of the form : / Example: * compute.googleapis.com/Instance.