InstanceGroupManagerInstanceLifecyclePolicy class

Constructors

InstanceGroupManagerInstanceLifecyclePolicy({Input<String?>? defaultActionOnFailure, Input<String?>? forceUpdateOnRepair, Input<String?>? onFailedHealthCheck, Input<InstanceGroupManagerInstanceLifecyclePolicyOnRepair?>? onRepair})
Creates a new InstanceGroupManagerInstanceLifecyclePolicy. defaultActionOnFailure , Specifies the action that a MIG performs on a failed VM. If the value of the onFailedHealthCheck field is DEFAULT_ACTION, then the same action also applies to the VMs on which your application fails a health check. Valid options are: DO_NOTHING, REPAIR. If DO_NOTHING, then MIG does not repair a failed VM. If REPAIR (default), then MIG automatically repairs a failed VM by recreating it. For more information, see about repairing VMs in a MIG. forceUpdateOnRepair , Specifies whether to apply the group's latest configuration when repairing a VM. Valid options are: YES, NO. If YES and you updated the group's instance template or per-instance configurations after the VM was created, then these changes are applied when VM is repaired. If NO (default), then updates are applied in accordance with the group's update policy type. onFailedHealthCheck , Specifies the action that a MIG performs on an unhealthy VM. A VM is marked as unhealthy when the application running on that VM fails a health check. Valid options are: DEFAULT_ACTION, DO_NOTHING, REPAIR. If DEFAULT_ACTION (default), then MIG uses the same action configured for the defaultActionOnFailure field. If DO_NOTHING, then MIG does not repair unhealthy VM. If REPAIR, then MIG automatically repairs an unhealthy VM by recreating it. For more information, see about repairing VMs in a MIG. onRepair , Configuration for VM repairs in the MIG. Structure is documented below.
const
InstanceGroupManagerInstanceLifecyclePolicy.fromMap(Map<String, dynamic> map)
factory

Properties

defaultActionOnFailure → Input<String?>?
, Specifies the action that a MIG performs on a failed VM. If the value of the onFailedHealthCheck field is DEFAULT_ACTION, then the same action also applies to the VMs on which your application fails a health check. Valid options are: DO_NOTHING, REPAIR. If DO_NOTHING, then MIG does not repair a failed VM. If REPAIR (default), then MIG automatically repairs a failed VM by recreating it. For more information, see about repairing VMs in a MIG.
final
forceUpdateOnRepair → Input<String?>?
, Specifies whether to apply the group's latest configuration when repairing a VM. Valid options are: YES, NO. If YES and you updated the group's instance template or per-instance configurations after the VM was created, then these changes are applied when VM is repaired. If NO (default), then updates are applied in accordance with the group's update policy type.
final
hashCode → int
The hash code for this object.
no setterinherited
onFailedHealthCheck → Input<String?>?
, Specifies the action that a MIG performs on an unhealthy VM. A VM is marked as unhealthy when the application running on that VM fails a health check. Valid options are: DEFAULT_ACTION, DO_NOTHING, REPAIR. If DEFAULT_ACTION (default), then MIG uses the same action configured for the defaultActionOnFailure field. If DO_NOTHING, then MIG does not repair unhealthy VM. If REPAIR, then MIG automatically repairs an unhealthy VM by recreating it. For more information, see about repairing VMs in a MIG.
final
onRepair → Input<InstanceGroupManagerInstanceLifecyclePolicyOnRepair?>?
, Configuration for VM repairs in the MIG. Structure is documented below.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited