CustomConstraintState constructor
Creates a new CustomConstraintState.
actionType The action to take if the condition is met.
condition A CEL condition that refers to a supported service resource, for example resource.management.autoUpgrade == false. For details about CEL usage, see Common Expression Language.
deletionPolicy Whether Terraform will be prevented from destroying the resource. Defaults to DELETE.
description A human-friendly description of the constraint to display as an error message when the policy is violated.
displayName A human-friendly name for the constraint.
methodTypes A list of RESTful methods for which to enforce the constraint. Can be CREATE, UPDATE, or both. Not all Google Cloud services support both methods. To see supported methods for each service, find the service in Supported services.
name Immutable. The name of the custom constraint. This is unique within the organization.
parent The parent of the resource, an organization. Format should be organizations/{organization_id}.
resourceTypes Immutable. The fully qualified name of the Google Cloud REST resource containing the object and field you want to restrict. For example, container.googleapis.com/NodePool.
updateTime Output only. The timestamp representing when the constraint was last updated.
Implementation
const CustomConstraintState({
this.actionType,
this.condition,
this.deletionPolicy,
this.description,
this.displayName,
this.methodTypes,
this.name,
this.parent,
this.resourceTypes,
this.updateTime,
});