#[non_exhaustive]pub struct AutoScalingGroupProviderUpdateBuilder { /* private fields */ }
Expand description
A builder for AutoScalingGroupProviderUpdate
.
Implementations§
source§impl AutoScalingGroupProviderUpdateBuilder
impl AutoScalingGroupProviderUpdateBuilder
sourcepub fn managed_scaling(self, input: ManagedScaling) -> Self
pub fn managed_scaling(self, input: ManagedScaling) -> Self
The managed scaling settings for the Auto Scaling group capacity provider.
sourcepub fn set_managed_scaling(self, input: Option<ManagedScaling>) -> Self
pub fn set_managed_scaling(self, input: Option<ManagedScaling>) -> Self
The managed scaling settings for the Auto Scaling group capacity provider.
sourcepub fn get_managed_scaling(&self) -> &Option<ManagedScaling>
pub fn get_managed_scaling(&self) -> &Option<ManagedScaling>
The managed scaling settings for the Auto Scaling group capacity provider.
sourcepub fn managed_termination_protection(
self,
input: ManagedTerminationProtection
) -> Self
pub fn managed_termination_protection( self, input: ManagedTerminationProtection ) -> Self
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 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. 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 set_managed_termination_protection(
self,
input: Option<ManagedTerminationProtection>
) -> Self
pub fn set_managed_termination_protection( self, input: Option<ManagedTerminationProtection> ) -> Self
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 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. 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 get_managed_termination_protection(
&self
) -> &Option<ManagedTerminationProtection>
pub fn get_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 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. 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 build(self) -> AutoScalingGroupProviderUpdate
pub fn build(self) -> AutoScalingGroupProviderUpdate
Consumes the builder and constructs a AutoScalingGroupProviderUpdate
.
Trait Implementations§
source§impl Clone for AutoScalingGroupProviderUpdateBuilder
impl Clone for AutoScalingGroupProviderUpdateBuilder
source§fn clone(&self) -> AutoScalingGroupProviderUpdateBuilder
fn clone(&self) -> AutoScalingGroupProviderUpdateBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for AutoScalingGroupProviderUpdateBuilder
impl Default for AutoScalingGroupProviderUpdateBuilder
source§fn default() -> AutoScalingGroupProviderUpdateBuilder
fn default() -> AutoScalingGroupProviderUpdateBuilder
source§impl PartialEq for AutoScalingGroupProviderUpdateBuilder
impl PartialEq for AutoScalingGroupProviderUpdateBuilder
source§fn eq(&self, other: &AutoScalingGroupProviderUpdateBuilder) -> bool
fn eq(&self, other: &AutoScalingGroupProviderUpdateBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.