InstanceScheduling constructor

const InstanceScheduling({
  1. Input<bool?>? automaticRestart,
  2. Input<int?>? availabilityDomain,
  3. Input<InstanceSchedulingGracefulShutdown?>? gracefulShutdown,
  4. Input<int?>? hostErrorTimeoutSeconds,
  5. Input<String?>? instanceTerminationAction,
  6. Input<InstanceSchedulingLocalSsdRecoveryTimeout?>? localSsdRecoveryTimeout,
  7. Input<String?>? maintenanceInterval,
  8. Input<InstanceSchedulingMaxRunDuration?>? maxRunDuration,
  9. Input<int?>? minNodeCpus,
  10. Input<List<InstanceSchedulingNodeAffinity>?>? nodeAffinities,
  11. Input<String?>? onHostMaintenance,
  12. Input<InstanceSchedulingOnInstanceStopAction?>? onInstanceStopAction,
  13. Input<bool?>? preemptible,
  14. Input<InstanceSchedulingPreemptionNoticeDuration?>? preemptionNoticeDuration,
  15. Input<String?>? provisioningModel,
  16. Input<bool?>? skipGuestOsShutdown,
  17. Input<String?>? terminationTime,
})

Creates a new InstanceScheduling. automaticRestart Specifies if the instance should be availabilityDomain Specifies the availability domain to place the instance in. The value must be a number between 1 and the number of availability domains specified in the spread placement policy attached to the instance. gracefulShutdown Beta Settings for the instance to perform a graceful shutdown. Structure is documented below. hostErrorTimeoutSeconds Specifies the time in seconds for host error detection, the value must be within the range of 90, 330 with the increment of 30, if unset, the default behavior of host error recovery will be used. instanceTerminationAction Describe the type of termination action for VM. Can be STOP or DELETE. Read more on here localSsdRecoveryTimeout (../guides/provider_versions.html.markdown) Specifies the maximum amount of time a Local Ssd Vm should wait while recovery of the Local Ssd state is attempted. Its value should be in between 0 and 168 hours with hour granularity and the default value being 1 hour. Structure is documented below. maintenanceInterval Beta Specifies the frequency of planned maintenance events. The accepted values are: PERIODIC. maxRunDuration The duration of the instance. Instance will run and be terminated after then, the termination action could be defined in instanceTerminationAction. Structure is documented below. minNodeCpus The minimum number of virtual CPUs this instance will consume when running on a sole-tenant node. nodeAffinities Specifies node affinities or anti-affinities onHostMaintenance Describes maintenance behavior for the onInstanceStopAction Specifies the action to be performed when the instance is terminated using maxRunDuration and STOP instanceTerminationAction. Only support true discardLocalSsd at this point. Structure is documented below. preemptible Specifies if the instance is preemptible. preemptionNoticeDuration Beta Specifies the Metadata Service preemption notice duration before the GCE ACPI G2 Soft Off signal is triggered for Spot VMs only. If not specified, there will be no wait before the G2 Soft Off signal is triggered. Structure is documented below. provisioningModel Describe the type of provisioning model for the instance. This field accepts the value STANDARD, SPOT, FLEX_START, or RESERVATION_BOUND. If the value is STANDARD, there will be no discount. If this is set to SPOT, skipGuestOsShutdown Beta Boolean parameter. Default is false and there will be 120 seconds between GCE ACPI G2 Soft Off and ACPI G3 Mechanical Off for Standard VMs and 30 seconds for Spot VMs. terminationTime Specifies the timestamp, when the instance will be terminated, in RFC3339 text format. If specified, the instance termination action will be performed at the termination time.

Implementation

const InstanceScheduling({
  this.automaticRestart,
  this.availabilityDomain,
  this.gracefulShutdown,
  this.hostErrorTimeoutSeconds,
  this.instanceTerminationAction,
  this.localSsdRecoveryTimeout,
  this.maintenanceInterval,
  this.maxRunDuration,
  this.minNodeCpus,
  this.nodeAffinities,
  this.onHostMaintenance,
  this.onInstanceStopAction,
  this.preemptible,
  this.preemptionNoticeDuration,
  this.provisioningModel,
  this.skipGuestOsShutdown,
  this.terminationTime,
});