#[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 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 ==
.