#[non_exhaustive]pub struct AutoScalingGroupProviderBuilder { /* private fields */ }
Expand description
A builder for AutoScalingGroupProvider
.
Implementations§
source§impl AutoScalingGroupProviderBuilder
impl AutoScalingGroupProviderBuilder
sourcepub fn auto_scaling_group_arn(self, input: impl Into<String>) -> Self
pub fn auto_scaling_group_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) that identifies the Auto Scaling group, or the Auto Scaling group name.
This field is required.sourcepub fn set_auto_scaling_group_arn(self, input: Option<String>) -> Self
pub fn set_auto_scaling_group_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) that identifies the Auto Scaling group, or the Auto Scaling group name.
sourcepub fn get_auto_scaling_group_arn(&self) -> &Option<String>
pub fn get_auto_scaling_group_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) that identifies the Auto Scaling group, or the Auto Scaling group name.
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. 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 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. 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 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. 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, input: ManagedDraining) -> Self
pub fn managed_draining(self, input: ManagedDraining) -> Self
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.
sourcepub fn set_managed_draining(self, input: Option<ManagedDraining>) -> Self
pub fn set_managed_draining(self, input: Option<ManagedDraining>) -> Self
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.
sourcepub fn get_managed_draining(&self) -> &Option<ManagedDraining>
pub fn get_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.
sourcepub fn build(self) -> Result<AutoScalingGroupProvider, BuildError>
pub fn build(self) -> Result<AutoScalingGroupProvider, BuildError>
Consumes the builder and constructs a AutoScalingGroupProvider
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for AutoScalingGroupProviderBuilder
impl Clone for AutoScalingGroupProviderBuilder
source§fn clone(&self) -> AutoScalingGroupProviderBuilder
fn clone(&self) -> AutoScalingGroupProviderBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for AutoScalingGroupProviderBuilder
impl Default for AutoScalingGroupProviderBuilder
source§fn default() -> AutoScalingGroupProviderBuilder
fn default() -> AutoScalingGroupProviderBuilder
source§impl PartialEq for AutoScalingGroupProviderBuilder
impl PartialEq for AutoScalingGroupProviderBuilder
source§fn eq(&self, other: &AutoScalingGroupProviderBuilder) -> bool
fn eq(&self, other: &AutoScalingGroupProviderBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AutoScalingGroupProviderBuilder
Auto Trait Implementations§
impl Freeze for AutoScalingGroupProviderBuilder
impl RefUnwindSafe for AutoScalingGroupProviderBuilder
impl Send for AutoScalingGroupProviderBuilder
impl Sync for AutoScalingGroupProviderBuilder
impl Unpin for AutoScalingGroupProviderBuilder
impl UnwindSafe for AutoScalingGroupProviderBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more