Assignment constructor

const Assignment({
  1. Input<List<AssignmentGroupLabel>>? groupLabels,
  2. Input<List<String>>? instanceNamePrefixes,
  3. Input<List<String>>? instances,
  4. Input<List<AssignmentOsType>>? osTypes,
  5. Input<List<String>>? zones,
})

Creates a new Assignment. groupLabels Targets instances matching at least one of these label sets. This allows an assignment to target disparate groups, for example "env=prod or env=staging". instanceNamePrefixes Targets VM instances whose name starts with one of these prefixes. Like labels, this is another way to group VM instances when targeting configs, for example prefix="prod-". Only supported for project-level policies. instances Targets any of the instances specified. Instances are specified by their URI in the form zones/[ZONE]/instances/[INSTANCE_NAME]. Instance targeting is uncommon and is supported to facilitate the management of changes by the instance or to target specific VM instances for development and testing. Only supported for project-level policies and must reference instances within this project. osTypes Targets VM instances matching at least one of the following OS types. VM instances must match all supplied criteria for a given OsType to be included. zones Targets instances in any of these zones. Leave empty to target instances in any zone. Zonal targeting is uncommon and is supported to facilitate the management of changes by zone.

Implementation

const Assignment({
  this.groupLabels,
  this.instanceNamePrefixes,
  this.instances,
  this.osTypes,
  this.zones,
});