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

GoogleCloudOrgpolicyV2CustomConstraint

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

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.

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

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

§
description?: string
[src]

Detailed information about this custom policy constraint. The max length of the description is 2000 characters.

§
displayName?: string
[src]

One line display name for the UI. The max length of the display_name is 200 characters.

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

All the operations being applied for this constraint.

§
name?: string
[src]

Immutable. 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 The max length is 70 characters and the minimum length is 1. Note that the prefix organizations/{organization_id}/customConstraints/ is not counted.

§
resourceTypes?: string[]
[src]

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

§
readonly updateTime?: Date
[src]

Output only. The last time this custom constraint was updated. This represents the last time that the CreateCustomConstraint or UpdateCustomConstraint RPC was called