#[non_exhaustive]pub struct InstanceGroupManagerInstanceLifecyclePolicy {
pub default_action_on_failure: Option<DefaultActionOnFailure>,
pub force_update_on_repair: Option<ForceUpdateOnRepair>,
/* private fields */
}instance-group-managers or region-instance-group-managers only.Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.default_action_on_failure: Option<DefaultActionOnFailure>The action that a MIG performs on a failed or an unhealthy VM. A VM is marked as unhealthy when the application running on that VM fails a health check. Valid values are - REPAIR (default): MIG automatically repairs a failed or an unhealthy VM by recreating it. For more information, see About repairing VMs in a MIG. - DO_NOTHING: MIG does not repair a failed or an unhealthy VM.
force_update_on_repair: Option<ForceUpdateOnRepair>A bit indicating whether to forcefully apply the group’s latest configuration when repairing a VM. Valid options are: - NO (default): If configuration updates are available, they are not forcefully applied during repair. Instead, configuration updates are applied according to the group’s update policy. - YES: If configuration updates are available, they are applied during repair.
Implementations§
Source§impl InstanceGroupManagerInstanceLifecyclePolicy
impl InstanceGroupManagerInstanceLifecyclePolicy
pub fn new() -> Self
Sourcepub fn set_default_action_on_failure<T>(self, v: T) -> Selfwhere
T: Into<DefaultActionOnFailure>,
pub fn set_default_action_on_failure<T>(self, v: T) -> Selfwhere
T: Into<DefaultActionOnFailure>,
Sets the value of default_action_on_failure.
Sourcepub fn set_or_clear_default_action_on_failure<T>(self, v: Option<T>) -> Selfwhere
T: Into<DefaultActionOnFailure>,
pub fn set_or_clear_default_action_on_failure<T>(self, v: Option<T>) -> Selfwhere
T: Into<DefaultActionOnFailure>,
Sets or clears the value of default_action_on_failure.
Sourcepub fn set_force_update_on_repair<T>(self, v: T) -> Selfwhere
T: Into<ForceUpdateOnRepair>,
pub fn set_force_update_on_repair<T>(self, v: T) -> Selfwhere
T: Into<ForceUpdateOnRepair>,
Sets the value of force_update_on_repair.
Sourcepub fn set_or_clear_force_update_on_repair<T>(self, v: Option<T>) -> Selfwhere
T: Into<ForceUpdateOnRepair>,
pub fn set_or_clear_force_update_on_repair<T>(self, v: Option<T>) -> Selfwhere
T: Into<ForceUpdateOnRepair>,
Sets or clears the value of force_update_on_repair.
Trait Implementations§
Source§impl Clone for InstanceGroupManagerInstanceLifecyclePolicy
impl Clone for InstanceGroupManagerInstanceLifecyclePolicy
Source§fn clone(&self) -> InstanceGroupManagerInstanceLifecyclePolicy
fn clone(&self) -> InstanceGroupManagerInstanceLifecyclePolicy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for InstanceGroupManagerInstanceLifecyclePolicy
impl Default for InstanceGroupManagerInstanceLifecyclePolicy
Source§fn default() -> InstanceGroupManagerInstanceLifecyclePolicy
fn default() -> InstanceGroupManagerInstanceLifecyclePolicy
Source§impl PartialEq for InstanceGroupManagerInstanceLifecyclePolicy
impl PartialEq for InstanceGroupManagerInstanceLifecyclePolicy
Source§fn eq(&self, other: &InstanceGroupManagerInstanceLifecyclePolicy) -> bool
fn eq(&self, other: &InstanceGroupManagerInstanceLifecyclePolicy) -> bool
self and other values to be equal, and is used by ==.