Struct aws_sdk_ecs::types::AutoScalingGroupProvider
source · #[non_exhaustive]pub struct AutoScalingGroupProvider {
pub auto_scaling_group_arn: String,
pub managed_scaling: Option<ManagedScaling>,
pub managed_termination_protection: Option<ManagedTerminationProtection>,
pub managed_draining: Option<ManagedDraining>,
}
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: String
The Amazon Resource Name (ARN) that identifies the Auto Scaling group, or the Auto Scaling group name.
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 off.
When using managed termination protection, managed scaling must also be used otherwise managed termination protection doesn't work.
When managed termination protection is on, 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 on as well. For more information, see Instance Protection in the Auto Scaling User Guide.
When managed termination protection is off, your Amazon EC2 instances aren't protected from termination when the Auto Scaling group scales in.
managed_draining: Option<ManagedDraining>
The managed draining option for the Auto Scaling group capacity provider. When you enable this, Amazon ECS manages and gracefully drains the EC2 container instances that are in the Auto Scaling group capacity provider.
Implementations§
source§impl AutoScalingGroupProvider
impl AutoScalingGroupProvider
sourcepub fn auto_scaling_group_arn(&self) -> &str
pub fn auto_scaling_group_arn(&self) -> &str
The Amazon Resource Name (ARN) that identifies the Auto Scaling group, or the Auto Scaling group name.
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 off.
When using managed termination protection, managed scaling must also be used otherwise managed termination protection doesn't work.
When managed termination protection is on, 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 on as well. For more information, see Instance Protection in the Auto Scaling User Guide.
When managed termination protection is off, your Amazon EC2 instances aren't protected from termination when the Auto Scaling group scales in.
sourcepub fn managed_draining(&self) -> Option<&ManagedDraining>
pub fn managed_draining(&self) -> Option<&ManagedDraining>
The managed draining option for the Auto Scaling group capacity provider. When you enable this, Amazon ECS manages and gracefully drains the EC2 container instances that are in the Auto Scaling group capacity provider.
source§impl AutoScalingGroupProvider
impl AutoScalingGroupProvider
sourcepub fn builder() -> AutoScalingGroupProviderBuilder
pub fn builder() -> AutoScalingGroupProviderBuilder
Creates a new builder-style object to manufacture AutoScalingGroupProvider
.
Trait Implementations§
source§impl Clone for AutoScalingGroupProvider
impl Clone for AutoScalingGroupProvider
source§fn clone(&self) -> AutoScalingGroupProvider
fn clone(&self) -> AutoScalingGroupProvider
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AutoScalingGroupProvider
impl Debug for AutoScalingGroupProvider
source§impl PartialEq for AutoScalingGroupProvider
impl PartialEq for AutoScalingGroupProvider
source§fn eq(&self, other: &AutoScalingGroupProvider) -> bool
fn eq(&self, other: &AutoScalingGroupProvider) -> bool
self
and other
values to be equal, and is used
by ==
.