Struct aws_sdk_ecs::model::AutoScalingGroupProviderUpdate
source · [−]#[non_exhaustive]pub struct AutoScalingGroupProviderUpdate {
pub managed_scaling: Option<ManagedScaling>,
pub managed_termination_protection: Option<ManagedTerminationProtection>,
}
Expand description
The details of the Auto Scaling group capacity provider to update.
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.managed_scaling: Option<ManagedScaling>
The managed scaling settings for the Auto Scaling group capacity provider.
managed_termination_protection: Option<ManagedTerminationProtection>
The managed termination protection setting to use for the Auto Scaling group capacity provider. This determines whether the Auto Scaling group has managed termination protection.
When using managed termination protection, managed scaling must also be used otherwise managed termination protection doesn't work.
When managed termination protection is enabled, Amazon ECS prevents the Amazon EC2 instances in an Auto Scaling group that contain tasks from being terminated during a scale-in action. The Auto Scaling group and each instance in the Auto Scaling group must have instance protection from scale-in actions enabled. For more information, see Instance Protection in the Auto Scaling User Guide.
When managed termination protection is disabled, your Amazon EC2 instances aren't protected from termination when the Auto Scaling group scales in.
Implementations
sourceimpl AutoScalingGroupProviderUpdate
impl AutoScalingGroupProviderUpdate
sourcepub fn managed_scaling(&self) -> Option<&ManagedScaling>
pub fn managed_scaling(&self) -> Option<&ManagedScaling>
The managed scaling settings for the Auto Scaling group capacity provider.
sourcepub fn managed_termination_protection(
&self
) -> Option<&ManagedTerminationProtection>
pub fn managed_termination_protection(
&self
) -> Option<&ManagedTerminationProtection>
The managed termination protection setting to use for the Auto Scaling group capacity provider. This determines whether the Auto Scaling group has managed termination protection.
When using managed termination protection, managed scaling must also be used otherwise managed termination protection doesn't work.
When managed termination protection is enabled, Amazon ECS prevents the Amazon EC2 instances in an Auto Scaling group that contain tasks from being terminated during a scale-in action. The Auto Scaling group and each instance in the Auto Scaling group must have instance protection from scale-in actions enabled. For more information, see Instance Protection in the Auto Scaling User Guide.
When managed termination protection is disabled, your Amazon EC2 instances aren't protected from termination when the Auto Scaling group scales in.
sourceimpl AutoScalingGroupProviderUpdate
impl AutoScalingGroupProviderUpdate
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture AutoScalingGroupProviderUpdate
Trait Implementations
sourceimpl Clone for AutoScalingGroupProviderUpdate
impl Clone for AutoScalingGroupProviderUpdate
sourcefn clone(&self) -> AutoScalingGroupProviderUpdate
fn clone(&self) -> AutoScalingGroupProviderUpdate
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 PartialEq<AutoScalingGroupProviderUpdate> for AutoScalingGroupProviderUpdate
impl PartialEq<AutoScalingGroupProviderUpdate> for AutoScalingGroupProviderUpdate
sourcefn eq(&self, other: &AutoScalingGroupProviderUpdate) -> bool
fn eq(&self, other: &AutoScalingGroupProviderUpdate) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &AutoScalingGroupProviderUpdate) -> bool
fn ne(&self, other: &AutoScalingGroupProviderUpdate) -> bool
This method tests for !=
.
impl StructuralPartialEq for AutoScalingGroupProviderUpdate
Auto Trait Implementations
impl RefUnwindSafe for AutoScalingGroupProviderUpdate
impl Send for AutoScalingGroupProviderUpdate
impl Sync for AutoScalingGroupProviderUpdate
impl Unpin for AutoScalingGroupProviderUpdate
impl UnwindSafe for AutoScalingGroupProviderUpdate
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> 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