Struct rusoto_autoscaling::PutWarmPoolType
source · [−]pub struct PutWarmPoolType {
pub auto_scaling_group_name: String,
pub max_group_prepared_capacity: Option<i64>,
pub min_size: Option<i64>,
pub pool_state: Option<String>,
}
Fields
auto_scaling_group_name: String
The name of the Auto Scaling group.
max_group_prepared_capacity: Option<i64>
Specifies the maximum number of instances that are allowed to be in the warm pool or in any state except Terminated
for the Auto Scaling group. This is an optional property. Specify it only if you do not want the warm pool size to be determined by the difference between the group's maximum capacity and its desired capacity.
If a value for MaxGroupPreparedCapacity
is not specified, Amazon EC2 Auto Scaling launches and maintains the difference between the group's maximum capacity and its desired capacity. If you specify a value for MaxGroupPreparedCapacity
, Amazon EC2 Auto Scaling uses the difference between the MaxGroupPreparedCapacity
and the desired capacity instead.
The size of the warm pool is dynamic. Only when MaxGroupPreparedCapacity
and MinSize
are set to the same value does the warm pool have an absolute size.
If the desired capacity of the Auto Scaling group is higher than the MaxGroupPreparedCapacity
, the capacity of the warm pool is 0, unless you specify a value for MinSize
. To remove a value that you previously set, include the property but specify -1 for the value.
min_size: Option<i64>
Specifies the minimum number of instances to maintain in the warm pool. This helps you to ensure that there is always a certain number of warmed instances available to handle traffic spikes. Defaults to 0 if not specified.
pool_state: Option<String>
Sets the instance state to transition to after the lifecycle actions are complete. Default is Stopped
.
Trait Implementations
sourceimpl Clone for PutWarmPoolType
impl Clone for PutWarmPoolType
sourcefn clone(&self) -> PutWarmPoolType
fn clone(&self) -> PutWarmPoolType
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 PutWarmPoolType
impl Debug for PutWarmPoolType
sourceimpl Default for PutWarmPoolType
impl Default for PutWarmPoolType
sourcefn default() -> PutWarmPoolType
fn default() -> PutWarmPoolType
Returns the “default value” for a type. Read more
sourceimpl PartialEq<PutWarmPoolType> for PutWarmPoolType
impl PartialEq<PutWarmPoolType> for PutWarmPoolType
sourcefn eq(&self, other: &PutWarmPoolType) -> bool
fn eq(&self, other: &PutWarmPoolType) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PutWarmPoolType) -> bool
fn ne(&self, other: &PutWarmPoolType) -> bool
This method tests for !=
.
impl StructuralPartialEq for PutWarmPoolType
Auto Trait Implementations
impl RefUnwindSafe for PutWarmPoolType
impl Send for PutWarmPoolType
impl Sync for PutWarmPoolType
impl Unpin for PutWarmPoolType
impl UnwindSafe for PutWarmPoolType
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