Custom Constraint Args
data class CustomConstraintArgs(val actionType: Output<CustomConstraintActionType>? = null, val condition: Output<String>? = null, val description: Output<String>? = null, val displayName: Output<String>? = null, val methodTypes: Output<List<CustomConstraintMethodTypesItem>>? = null, val name: Output<String>? = null, val organizationId: Output<String>? = null, val resourceTypes: Output<List<String>>? = null) : ConvertibleToJava<CustomConstraintArgs>
Creates a custom constraint. Returns a google.rpc.Status
with google.rpc.Code.NOT_FOUND
if the organization does not exist. Returns a google.rpc.Status
with google.rpc.Code.ALREADY_EXISTS
if the constraint already exists on the given organization.
Constructors
Link copied to clipboard
fun CustomConstraintArgs(actionType: Output<CustomConstraintActionType>? = null, condition: Output<String>? = null, description: Output<String>? = null, displayName: Output<String>? = null, methodTypes: Output<List<CustomConstraintMethodTypesItem>>? = null, name: Output<String>? = null, organizationId: Output<String>? = null, resourceTypes: Output<List<String>>? = null)
Functions
Properties
Link copied to clipboard
Link copied to clipboard
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.