import * as pulumi from "@pulumi/pulumi"; /** * Gets a custom constraint. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the custom constraint does not exist. */ export declare function getCustomConstraint(args: GetCustomConstraintArgs, opts?: pulumi.InvokeOptions): Promise; export interface GetCustomConstraintArgs { customConstraintId: string; organizationId: string; } export interface GetCustomConstraintResult { /** * Allow or deny type. */ readonly actionType: string; /** * 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. */ readonly condition: string; /** * Detailed information about this custom policy constraint. The max length of the description is 2000 characters. */ readonly description: string; /** * One line display name for the UI. The max length of the display_name is 200 characters. */ readonly displayName: string; /** * All the operations being applied for this constraint. */ readonly methodTypes: string[]; /** * 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. */ readonly name: string; /** * Immutable. The resource instance type on which this policy applies. Format will be of the form : `/` Example: * `compute.googleapis.com/Instance`. */ readonly resourceTypes: string[]; /** * The last time this custom constraint was updated. This represents the last time that the `CreateCustomConstraint` or `UpdateCustomConstraint` RPC was called */ readonly updateTime: string; } /** * Gets a custom constraint. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the custom constraint does not exist. */ export declare function getCustomConstraintOutput(args: GetCustomConstraintOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output; export interface GetCustomConstraintOutputArgs { customConstraintId: pulumi.Input; organizationId: pulumi.Input; }