PosturePolicySetPolicyConstraintOrgPolicyConstraintCustomCustomConstraint constructor
Creates a new PosturePolicySetPolicyConstraintOrgPolicyConstraintCustomCustomConstraint.
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.
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.
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.
Implementation
const PosturePolicySetPolicyConstraintOrgPolicyConstraintCustomCustomConstraint({
required this.actionType,
required this.condition,
this.description,
this.displayName,
required this.methodTypes,
required this.name,
required this.resourceTypes,
});