LaunchInstanceAvailabilityConfigDetails

class oci.core.models.LaunchInstanceAvailabilityConfigDetails(**kwargs)

Bases: object

Options for defining the availability of a VM instance after a maintenance event that impacts the underlying hardware.

Attributes

RECOVERY_ACTION_RESTORE_INSTANCE A constant which can be used with the recovery_action property of a LaunchInstanceAvailabilityConfigDetails.
RECOVERY_ACTION_STOP_INSTANCE A constant which can be used with the recovery_action property of a LaunchInstanceAvailabilityConfigDetails.
recovery_action Gets the recovery_action of this LaunchInstanceAvailabilityConfigDetails.

Methods

__init__(**kwargs) Initializes a new LaunchInstanceAvailabilityConfigDetails object with values from keyword arguments.
RECOVERY_ACTION_RESTORE_INSTANCE = 'RESTORE_INSTANCE'

A constant which can be used with the recovery_action property of a LaunchInstanceAvailabilityConfigDetails. This constant has a value of “RESTORE_INSTANCE”

RECOVERY_ACTION_STOP_INSTANCE = 'STOP_INSTANCE'

A constant which can be used with the recovery_action property of a LaunchInstanceAvailabilityConfigDetails. This constant has a value of “STOP_INSTANCE”

__init__(**kwargs)

Initializes a new LaunchInstanceAvailabilityConfigDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:recovery_action (str) – The value to assign to the recovery_action property of this LaunchInstanceAvailabilityConfigDetails. Allowed values for this property are: “RESTORE_INSTANCE”, “STOP_INSTANCE”
recovery_action

Gets the recovery_action of this LaunchInstanceAvailabilityConfigDetails. The lifecycle state for an instance when it is recovered after infrastructure maintenance. * RESTORE_INSTANCE - The instance is restored to the lifecycle state it was in before the maintenance event. If the instance was running, it is automatically rebooted. This is the default action when a value is not set. * STOP_INSTANCE - The instance is recovered in the stopped state.

Allowed values for this property are: “RESTORE_INSTANCE”, “STOP_INSTANCE”

Returns:The recovery_action of this LaunchInstanceAvailabilityConfigDetails.
Return type:str