InstanceConfigurationAvailabilityConfig

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

Bases: object

Options for defining the availabiity 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 InstanceConfigurationAvailabilityConfig.
RECOVERY_ACTION_STOP_INSTANCE A constant which can be used with the recovery_action property of a InstanceConfigurationAvailabilityConfig.
recovery_action Gets the recovery_action of this InstanceConfigurationAvailabilityConfig.

Methods

__init__(**kwargs) Initializes a new InstanceConfigurationAvailabilityConfig 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 InstanceConfigurationAvailabilityConfig. 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 InstanceConfigurationAvailabilityConfig. This constant has a value of “STOP_INSTANCE”

__init__(**kwargs)

Initializes a new InstanceConfigurationAvailabilityConfig 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 InstanceConfigurationAvailabilityConfig. Allowed values for this property are: “RESTORE_INSTANCE”, “STOP_INSTANCE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
recovery_action

Gets the recovery_action of this InstanceConfigurationAvailabilityConfig. 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”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

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