PosturePolicySetPolicyConstraintOrgPolicyConstraintCustomCustomConstraintArgs

data class PosturePolicySetPolicyConstraintOrgPolicyConstraintCustomCustomConstraintArgs(val actionType: Output<String>, val condition: Output<String>, val description: Output<String>? = null, val displayName: Output<String>? = null, val methodTypes: Output<List<String>>, val name: Output<String>, val resourceTypes: Output<List<String>>) : ConvertibleToJava<PosturePolicySetPolicyConstraintOrgPolicyConstraintCustomCustomConstraintArgs>

Constructors

constructor(actionType: Output<String>, condition: Output<String>, description: Output<String>? = null, displayName: Output<String>? = null, methodTypes: Output<List<String>>, name: Output<String>, resourceTypes: Output<List<String>>)

Properties

Link copied to clipboard
val actionType: Output<String>

The action to take if the condition is met. Possible values are: ALLOW, DENY.

Link copied to clipboard
val condition: Output<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.

Link copied to clipboard
val description: Output<String>? = null

A human-friendly description of the constraint to display as an error message when the policy is violated.

Link copied to clipboard
val displayName: Output<String>? = null

A human-friendly name for the constraint.

Link copied to clipboard
val methodTypes: Output<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.

Link copied to clipboard
val name: Output<String>

Immutable. The name of the custom constraint. This is unique within the organization.

Link copied to clipboard
val resourceTypes: Output<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.

Functions

Link copied to clipboard
open override fun toJava(): PosturePolicySetPolicyConstraintOrgPolicyConstraintCustomCustomConstraintArgs