AutomaticRepairsPolicyArgs

data class AutomaticRepairsPolicyArgs(val enabled: Output<Boolean>? = null, val gracePeriod: Output<String>? = null, val repairAction: Output<Either<String, RepairAction>>? = null) : ConvertibleToJava<AutomaticRepairsPolicyArgs>

Specifies the configuration parameters for automatic repairs on the virtual machine scale set.

Constructors

Link copied to clipboard
constructor(enabled: Output<Boolean>? = null, gracePeriod: Output<String>? = null, repairAction: Output<Either<String, RepairAction>>? = null)

Properties

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

Specifies whether automatic repairs should be enabled on the virtual machine scale set. The default value is false.

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

The amount of time for which automatic repairs are suspended due to a state change on VM. The grace time starts after the state change has completed. This helps avoid premature or accidental repairs. The time duration should be specified in ISO 8601 format. The minimum allowed grace period is 10 minutes (PT10M), which is also the default value. The maximum allowed grace period is 90 minutes (PT90M).

Link copied to clipboard
val repairAction: Output<Either<String, RepairAction>>? = null

Type of repair action (replace, restart, reimage) that will be used for repairing unhealthy virtual machines in the scale set. Default value is replace.

Functions

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