#[non_exhaustive]pub struct InstanceGroupManagerAutoHealingPolicy {
pub health_check: Option<String>,
pub initial_delay_sec: Option<i32>,
/* private fields */
}Available on crate features
instance-group-managers or region-instance-group-managers only.Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.health_check: Option<String>The URL for the health check that signals autohealing.
initial_delay_sec: Option<i32>The initial delay is the number of seconds that a new VM takes to initialize and run its startup script. During a VM’s initial delay period, the MIG ignores unsuccessful health checks because the VM might be in the startup process. This prevents the MIG from prematurely recreating a VM. If the health check receives a healthy response during the initial delay, it indicates that the startup process is complete and the VM is ready. The value of initial delay must be between 0 and 3600 seconds. The default value is 0.
Implementations§
Source§impl InstanceGroupManagerAutoHealingPolicy
impl InstanceGroupManagerAutoHealingPolicy
pub fn new() -> Self
Sourcepub fn set_health_check<T>(self, v: T) -> Self
pub fn set_health_check<T>(self, v: T) -> Self
Sets the value of health_check.
§Example
ⓘ
let x = InstanceGroupManagerAutoHealingPolicy::new().set_health_check("example");Sourcepub fn set_or_clear_health_check<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_health_check<T>(self, v: Option<T>) -> Self
Sets or clears the value of health_check.
§Example
ⓘ
let x = InstanceGroupManagerAutoHealingPolicy::new().set_or_clear_health_check(Some("example"));
let x = InstanceGroupManagerAutoHealingPolicy::new().set_or_clear_health_check(None::<String>);Sourcepub fn set_initial_delay_sec<T>(self, v: T) -> Self
pub fn set_initial_delay_sec<T>(self, v: T) -> Self
Sets the value of initial_delay_sec.
§Example
ⓘ
let x = InstanceGroupManagerAutoHealingPolicy::new().set_initial_delay_sec(42);Sourcepub fn set_or_clear_initial_delay_sec<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_initial_delay_sec<T>(self, v: Option<T>) -> Self
Sets or clears the value of initial_delay_sec.
§Example
ⓘ
let x = InstanceGroupManagerAutoHealingPolicy::new().set_or_clear_initial_delay_sec(Some(42));
let x = InstanceGroupManagerAutoHealingPolicy::new().set_or_clear_initial_delay_sec(None::<i32>);Trait Implementations§
Source§impl Clone for InstanceGroupManagerAutoHealingPolicy
impl Clone for InstanceGroupManagerAutoHealingPolicy
Source§fn clone(&self) -> InstanceGroupManagerAutoHealingPolicy
fn clone(&self) -> InstanceGroupManagerAutoHealingPolicy
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for InstanceGroupManagerAutoHealingPolicy
impl Default for InstanceGroupManagerAutoHealingPolicy
Source§fn default() -> InstanceGroupManagerAutoHealingPolicy
fn default() -> InstanceGroupManagerAutoHealingPolicy
Returns the “default value” for a type. Read more
Source§impl PartialEq for InstanceGroupManagerAutoHealingPolicy
impl PartialEq for InstanceGroupManagerAutoHealingPolicy
Source§fn eq(&self, other: &InstanceGroupManagerAutoHealingPolicy) -> bool
fn eq(&self, other: &InstanceGroupManagerAutoHealingPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InstanceGroupManagerAutoHealingPolicy
Auto Trait Implementations§
impl Freeze for InstanceGroupManagerAutoHealingPolicy
impl RefUnwindSafe for InstanceGroupManagerAutoHealingPolicy
impl Send for InstanceGroupManagerAutoHealingPolicy
impl Sync for InstanceGroupManagerAutoHealingPolicy
impl Unpin for InstanceGroupManagerAutoHealingPolicy
impl UnwindSafe for InstanceGroupManagerAutoHealingPolicy
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more