Struct rusoto_autoscaling::RefreshPreferences
source · [−]pub struct RefreshPreferences {
pub checkpoint_delay: Option<i64>,
pub checkpoint_percentages: Option<Vec<i64>>,
pub instance_warmup: Option<i64>,
pub min_healthy_percentage: Option<i64>,
}
Expand description
Describes information used to start an instance refresh.
All properties are optional. However, if you specify a value for CheckpointDelay
, you must also provide a value for CheckpointPercentages
.
Fields
checkpoint_delay: Option<i64>
The amount of time, in seconds, to wait after a checkpoint before continuing. This property is optional, but if you specify a value for it, you must also specify a value for CheckpointPercentages
. If you specify a value for CheckpointPercentages
and not for CheckpointDelay
, the CheckpointDelay
defaults to 3600
(1 hour).
checkpoint_percentages: Option<Vec<i64>>
Threshold values for each checkpoint in ascending order. Each number must be unique. To replace all instances in the Auto Scaling group, the last number in the array must be 100
.
For usage examples, see Adding checkpoints to an instance refresh in the Amazon EC2 Auto Scaling User Guide.
instance_warmup: Option<i64>
The number of seconds until a newly launched instance is configured and ready to use. During this time, Amazon EC2 Auto Scaling does not immediately move on to the next replacement. The default is to use the value for the health check grace period defined for the group.
min_healthy_percentage: Option<i64>
The amount of capacity in the Auto Scaling group that must remain healthy during an instance refresh to allow the operation to continue, as a percentage of the desired capacity of the Auto Scaling group (rounded up to the nearest integer). The default is 90
.
Trait Implementations
sourceimpl Clone for RefreshPreferences
impl Clone for RefreshPreferences
sourcefn clone(&self) -> RefreshPreferences
fn clone(&self) -> RefreshPreferences
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for RefreshPreferences
impl Debug for RefreshPreferences
sourceimpl Default for RefreshPreferences
impl Default for RefreshPreferences
sourcefn default() -> RefreshPreferences
fn default() -> RefreshPreferences
Returns the “default value” for a type. Read more
sourceimpl PartialEq<RefreshPreferences> for RefreshPreferences
impl PartialEq<RefreshPreferences> for RefreshPreferences
sourcefn eq(&self, other: &RefreshPreferences) -> bool
fn eq(&self, other: &RefreshPreferences) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &RefreshPreferences) -> bool
fn ne(&self, other: &RefreshPreferences) -> bool
This method tests for !=
.
impl StructuralPartialEq for RefreshPreferences
Auto Trait Implementations
impl RefUnwindSafe for RefreshPreferences
impl Send for RefreshPreferences
impl Sync for RefreshPreferences
impl Unpin for RefreshPreferences
impl UnwindSafe for RefreshPreferences
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more