InstanceSchedulingArgs

data class InstanceSchedulingArgs(val automaticRestart: Output<Boolean>? = null, val availabilityDomain: Output<Int>? = null, val gracefulShutdown: Output<InstanceSchedulingGracefulShutdownArgs>? = null, val hostErrorTimeoutSeconds: Output<Int>? = null, val instanceTerminationAction: Output<String>? = null, val localSsdRecoveryTimeout: Output<InstanceSchedulingLocalSsdRecoveryTimeoutArgs>? = null, val maintenanceInterval: Output<String>? = null, val maxRunDuration: Output<InstanceSchedulingMaxRunDurationArgs>? = null, val minNodeCpus: Output<Int>? = null, val nodeAffinities: Output<List<InstanceSchedulingNodeAffinityArgs>>? = null, val onHostMaintenance: Output<String>? = null, val onInstanceStopAction: Output<InstanceSchedulingOnInstanceStopActionArgs>? = null, val preemptible: Output<Boolean>? = null, val provisioningModel: Output<String>? = null, val terminationTime: Output<String>? = null) : ConvertibleToJava<InstanceSchedulingArgs>

Constructors

Link copied to clipboard
constructor(automaticRestart: Output<Boolean>? = null, availabilityDomain: Output<Int>? = null, gracefulShutdown: Output<InstanceSchedulingGracefulShutdownArgs>? = null, hostErrorTimeoutSeconds: Output<Int>? = null, instanceTerminationAction: Output<String>? = null, localSsdRecoveryTimeout: Output<InstanceSchedulingLocalSsdRecoveryTimeoutArgs>? = null, maintenanceInterval: Output<String>? = null, maxRunDuration: Output<InstanceSchedulingMaxRunDurationArgs>? = null, minNodeCpus: Output<Int>? = null, nodeAffinities: Output<List<InstanceSchedulingNodeAffinityArgs>>? = null, onHostMaintenance: Output<String>? = null, onInstanceStopAction: Output<InstanceSchedulingOnInstanceStopActionArgs>? = null, preemptible: Output<Boolean>? = null, provisioningModel: Output<String>? = null, terminationTime: Output<String>? = null)

Properties

Link copied to clipboard
val automaticRestart: Output<Boolean>? = null

Specifies if the instance should be restarted if it was terminated by Compute Engine (not a user). Defaults to true.

Link copied to clipboard
val availabilityDomain: Output<Int>? = null

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.

Link copied to clipboard

Settings for the instance to perform a graceful shutdown. Structure is documented below.

Link copied to clipboard
val hostErrorTimeoutSeconds: Output<Int>? = null

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.

Link copied to clipboard
val instanceTerminationAction: Output<String>? = null

Describe the type of termination action for VM. Can be STOP or DELETE. Read more on here

Link copied to clipboard

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.

Link copied to clipboard
val maintenanceInterval: Output<String>? = null

Specifies the frequency of planned maintenance events. The accepted values are: PERIODIC.

Link copied to clipboard

The duration of the instance. Instance will run and be terminated after then, the termination action could be defined in instance_termination_action. Structure is documented below.

Link copied to clipboard
val minNodeCpus: Output<Int>? = null

The minimum number of virtual CPUs this instance will consume when running on a sole-tenant node.

Link copied to clipboard

Specifies node affinities or anti-affinities to determine which sole-tenant nodes your instances and managed instance groups will use as host systems. Read more on sole-tenant node creation here. Structure documented below.

Link copied to clipboard
val onHostMaintenance: Output<String>? = null

Describes maintenance behavior for the instance. Can be MIGRATE or TERMINATE, for more info, read here.

Link copied to clipboard

Specifies the action to be performed when the instance is terminated using max_run_duration and STOP instance_termination_action. Only support true discard_local_ssd at this point. Structure is documented below.

Link copied to clipboard
val preemptible: Output<Boolean>? = null

Specifies if the instance is preemptible. If this field is set to true, then automatic_restart must be set to false. Defaults to false.

Link copied to clipboard
val provisioningModel: Output<String>? = null

Describe the type of preemptible VM. This field accepts the value STANDARD or SPOT. If the value is STANDARD, there will be no discount. If this is set to SPOT, preemptible should be true and automatic_restart should be false. For more info about SPOT, read here

Link copied to clipboard
val terminationTime: Output<String>? = null

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.

Functions

Link copied to clipboard
open override fun toJava(): InstanceSchedulingArgs