AllocationPolicy constructor

const AllocationPolicy({
  1. Input<List<InstancePolicyOrTemplate>>? instances,
  2. Input<Map<String, String>>? labels,
  3. Input<LocationPolicy>? location,
  4. Input<NetworkPolicy>? network,
  5. Input<PlacementPolicy>? placement,
  6. Input<ServiceAccount>? serviceAccount,
})

Creates a new AllocationPolicy. instances Describe instances that can be created by this AllocationPolicy. Only instances0 is supported now. labels Labels applied to all VM instances and other resources created by AllocationPolicy. Labels could be user provided or system generated. You can assign up to 64 labels. Google Compute Engine label restrictions apply. Label names that start with "goog-" or "google-" are reserved. location Location where compute resources should be allocated for the Job. network The network policy. If you define an instance template in the InstancePolicyOrTemplate field, Batch will use the network settings in the instance template instead of this field. placement The placement policy. serviceAccount Service account that VMs will run as.

Implementation

const AllocationPolicy({
  this.instances,
  this.labels,
  this.location,
  this.network,
  this.placement,
  this.serviceAccount,
});