CustomConstraintArgs constructor

const CustomConstraintArgs({
  1. Input<CustomConstraintActionType>? actionType,
  2. Input<String>? condition,
  3. Input<String>? description,
  4. Input<String>? displayName,
  5. Input<List<CustomConstraintMethodTypesItem>>? methodTypes,
  6. Input<String>? name,
  7. required Input<String> organizationId,
  8. Input<List<String>>? resourceTypes,
})

Creates a new CustomConstraintArgs. actionType Allow or deny type. condition Org policy condition/expression. For example: resource.instanceName.matches("[production|test]_.*_(\d)+") or, resource.management.auto_upgrade == true The max length of the condition is 1000 characters. description Detailed information about this custom policy constraint. The max length of the description is 2000 characters. displayName One line display name for the UI. The max length of the display_name is 200 characters. methodTypes All the operations being applied for this constraint. name 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. organizationId Required. resourceTypes Immutable. The resource instance type on which this policy applies. Format will be of the form : / Example: * compute.googleapis.com/Instance.

Implementation

const CustomConstraintArgs({
  this.actionType,
  this.condition,
  this.description,
  this.displayName,
  this.methodTypes,
  this.name,
  required this.organizationId,
  this.resourceTypes,
});