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

GoogleCloudAssetV1CustomConstraint

import type { GoogleCloudAssetV1CustomConstraint } from "https://googleapis.deno.dev/v1/cloudasset:v1.ts";

The definition of a custom constraint.

interface GoogleCloudAssetV1CustomConstraint {
actionType?: "ACTION_TYPE_UNSPECIFIED" | "ALLOW" | "DENY";
condition?: string;
description?: string;
displayName?: string;
methodTypes?:
| "METHOD_TYPE_UNSPECIFIED"
| "CREATE"
| "UPDATE"
| "DELETE"[];
name?: string;
resourceTypes?: string[];
}

§Properties

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

Allow or deny type.

§
condition?: string
[src]

Organization Policy condition/expression. For example: resource.instanceName.matches("[production|test]_.*_(\d)+")' or, resource.management.auto_upgrade == true

§
description?: string
[src]

Detailed information about this custom policy constraint.

§
displayName?: string
[src]

One line display name for the UI.

§
methodTypes?: "METHOD_TYPE_UNSPECIFIED" | "CREATE" | "UPDATE" | "DELETE"[]
[src]

All the operations being applied for this constraint.

§
name?: string
[src]

Name of the constraint. This is unique within the organization. Format of the name should be * organizations/{organization_id}/customConstraints/{custom_constraint_id} Example : "organizations/123/customConstraints/custom.createOnlyE2TypeVms"

§
resourceTypes?: string[]
[src]

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