Struct aws_sdk_ecs::model::AutoScalingGroupProvider
source · [−]#[non_exhaustive]pub struct AutoScalingGroupProvider {
pub auto_scaling_group_arn: Option<String>,
pub managed_scaling: Option<ManagedScaling>,
pub managed_termination_protection: Option<ManagedTerminationProtection>,
}
Expand description
The details of the Auto Scaling group for the capacity provider.
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.auto_scaling_group_arn: Option<String>
The Amazon Resource Name (ARN) that identifies the Auto Scaling group.
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. The default is disabled.
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 as well. 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 AutoScalingGroupProvider
impl AutoScalingGroupProvider
sourcepub fn auto_scaling_group_arn(&self) -> Option<&str>
pub fn auto_scaling_group_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) that identifies the Auto Scaling group.
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. The default is disabled.
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 as well. 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 AutoScalingGroupProvider
impl AutoScalingGroupProvider
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture AutoScalingGroupProvider
Trait Implementations
sourceimpl Clone for AutoScalingGroupProvider
impl Clone for AutoScalingGroupProvider
sourcefn clone(&self) -> AutoScalingGroupProvider
fn clone(&self) -> AutoScalingGroupProvider
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 AutoScalingGroupProvider
impl Debug for AutoScalingGroupProvider
sourceimpl PartialEq<AutoScalingGroupProvider> for AutoScalingGroupProvider
impl PartialEq<AutoScalingGroupProvider> for AutoScalingGroupProvider
sourcefn eq(&self, other: &AutoScalingGroupProvider) -> bool
fn eq(&self, other: &AutoScalingGroupProvider) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &AutoScalingGroupProvider) -> bool
fn ne(&self, other: &AutoScalingGroupProvider) -> bool
This method tests for !=
.
impl StructuralPartialEq for AutoScalingGroupProvider
Auto Trait Implementations
impl RefUnwindSafe for AutoScalingGroupProvider
impl Send for AutoScalingGroupProvider
impl Sync for AutoScalingGroupProvider
impl Unpin for AutoScalingGroupProvider
impl UnwindSafe for AutoScalingGroupProvider
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