CustomConstraintArgs class

The set of arguments for CustomConstraint. The set of arguments for CustomConstraint.

Constructors

CustomConstraintArgs({required Input<String> actionType, required Input<String> condition, Input<String?>? deletionPolicy, Input<String?>? description, Input<String?>? displayName, required Input<List<String>> methodTypes, Input<String?>? name, required Input<String> parent, required Input<List<String>> resourceTypes})
Creates a new CustomConstraintArgs. 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.
const
CustomConstraintArgs.fromMap(Map<String, dynamic> map)
factory

Properties

actionType → Input<String>
The action to take if the condition is met. Possible values are: ALLOW, DENY.
final
condition → Input<String>
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.
final
deletionPolicy → Input<String?>?
Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
final
description → Input<String?>?
A human-friendly description of the constraint to display as an error message when the policy is violated.
final
displayName → Input<String?>?
A human-friendly name for the constraint.
final
hashCode → int
The hash code for this object.
no setterinherited
methodTypes → Input<List<String>>
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.
final
name → Input<String?>?
Immutable. The name of the custom constraint. This is unique within the organization.
final
parent → Input<String>
The parent of the resource, an organization. Format should be organizations/{organization_id}.
final
resourceTypes → Input<List<String>>
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.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited