Struct aws_sdk_ecs::types::builders::ManagedScalingBuilder
source · #[non_exhaustive]pub struct ManagedScalingBuilder { /* private fields */ }
Expand description
A builder for ManagedScaling
.
Implementations§
source§impl ManagedScalingBuilder
impl ManagedScalingBuilder
sourcepub fn status(self, input: ManagedScalingStatus) -> Self
pub fn status(self, input: ManagedScalingStatus) -> Self
Determines whether to use managed scaling for the capacity provider.
sourcepub fn set_status(self, input: Option<ManagedScalingStatus>) -> Self
pub fn set_status(self, input: Option<ManagedScalingStatus>) -> Self
Determines whether to use managed scaling for the capacity provider.
sourcepub fn get_status(&self) -> &Option<ManagedScalingStatus>
pub fn get_status(&self) -> &Option<ManagedScalingStatus>
Determines whether to use managed scaling for the capacity provider.
sourcepub fn target_capacity(self, input: i32) -> Self
pub fn target_capacity(self, input: i32) -> Self
The target capacity utilization as a percentage for the capacity provider. The specified value must be greater than 0
and less than or equal to 100
. For example, if you want the capacity provider to maintain 10% spare capacity, then that means the utilization is 90%, so use a targetCapacity
of 90
. The default value of 100
percent results in the Amazon EC2 instances in your Auto Scaling group being completely used.
sourcepub fn set_target_capacity(self, input: Option<i32>) -> Self
pub fn set_target_capacity(self, input: Option<i32>) -> Self
The target capacity utilization as a percentage for the capacity provider. The specified value must be greater than 0
and less than or equal to 100
. For example, if you want the capacity provider to maintain 10% spare capacity, then that means the utilization is 90%, so use a targetCapacity
of 90
. The default value of 100
percent results in the Amazon EC2 instances in your Auto Scaling group being completely used.
sourcepub fn get_target_capacity(&self) -> &Option<i32>
pub fn get_target_capacity(&self) -> &Option<i32>
The target capacity utilization as a percentage for the capacity provider. The specified value must be greater than 0
and less than or equal to 100
. For example, if you want the capacity provider to maintain 10% spare capacity, then that means the utilization is 90%, so use a targetCapacity
of 90
. The default value of 100
percent results in the Amazon EC2 instances in your Auto Scaling group being completely used.
sourcepub fn minimum_scaling_step_size(self, input: i32) -> Self
pub fn minimum_scaling_step_size(self, input: i32) -> Self
The minimum number of Amazon EC2 instances that Amazon ECS will scale out at one time. The scale in process is not affected by this parameter If this parameter is omitted, the default value of 1
is used.
When additional capacity is required, Amazon ECS will scale up the minimum scaling step size even if the actual demand is less than the minimum scaling step size.
If you use a capacity provider with an Auto Scaling group configured with more than one Amazon EC2 instance type or Availability Zone, Amazon ECS will scale up by the exact minimum scaling step size value and will ignore both the maximum scaling step size as well as the capacity demand.
sourcepub fn set_minimum_scaling_step_size(self, input: Option<i32>) -> Self
pub fn set_minimum_scaling_step_size(self, input: Option<i32>) -> Self
The minimum number of Amazon EC2 instances that Amazon ECS will scale out at one time. The scale in process is not affected by this parameter If this parameter is omitted, the default value of 1
is used.
When additional capacity is required, Amazon ECS will scale up the minimum scaling step size even if the actual demand is less than the minimum scaling step size.
If you use a capacity provider with an Auto Scaling group configured with more than one Amazon EC2 instance type or Availability Zone, Amazon ECS will scale up by the exact minimum scaling step size value and will ignore both the maximum scaling step size as well as the capacity demand.
sourcepub fn get_minimum_scaling_step_size(&self) -> &Option<i32>
pub fn get_minimum_scaling_step_size(&self) -> &Option<i32>
The minimum number of Amazon EC2 instances that Amazon ECS will scale out at one time. The scale in process is not affected by this parameter If this parameter is omitted, the default value of 1
is used.
When additional capacity is required, Amazon ECS will scale up the minimum scaling step size even if the actual demand is less than the minimum scaling step size.
If you use a capacity provider with an Auto Scaling group configured with more than one Amazon EC2 instance type or Availability Zone, Amazon ECS will scale up by the exact minimum scaling step size value and will ignore both the maximum scaling step size as well as the capacity demand.
sourcepub fn maximum_scaling_step_size(self, input: i32) -> Self
pub fn maximum_scaling_step_size(self, input: i32) -> Self
The maximum number of Amazon EC2 instances that Amazon ECS will scale out at one time. The scale in process is not affected by this parameter. If this parameter is omitted, the default value of 10000
is used.
sourcepub fn set_maximum_scaling_step_size(self, input: Option<i32>) -> Self
pub fn set_maximum_scaling_step_size(self, input: Option<i32>) -> Self
The maximum number of Amazon EC2 instances that Amazon ECS will scale out at one time. The scale in process is not affected by this parameter. If this parameter is omitted, the default value of 10000
is used.
sourcepub fn get_maximum_scaling_step_size(&self) -> &Option<i32>
pub fn get_maximum_scaling_step_size(&self) -> &Option<i32>
The maximum number of Amazon EC2 instances that Amazon ECS will scale out at one time. The scale in process is not affected by this parameter. If this parameter is omitted, the default value of 10000
is used.
sourcepub fn instance_warmup_period(self, input: i32) -> Self
pub fn instance_warmup_period(self, input: i32) -> Self
The period of time, in seconds, after a newly launched Amazon EC2 instance can contribute to CloudWatch metrics for Auto Scaling group. If this parameter is omitted, the default value of 300
seconds is used.
sourcepub fn set_instance_warmup_period(self, input: Option<i32>) -> Self
pub fn set_instance_warmup_period(self, input: Option<i32>) -> Self
The period of time, in seconds, after a newly launched Amazon EC2 instance can contribute to CloudWatch metrics for Auto Scaling group. If this parameter is omitted, the default value of 300
seconds is used.
sourcepub fn get_instance_warmup_period(&self) -> &Option<i32>
pub fn get_instance_warmup_period(&self) -> &Option<i32>
The period of time, in seconds, after a newly launched Amazon EC2 instance can contribute to CloudWatch metrics for Auto Scaling group. If this parameter is omitted, the default value of 300
seconds is used.
sourcepub fn build(self) -> ManagedScaling
pub fn build(self) -> ManagedScaling
Consumes the builder and constructs a ManagedScaling
.
Trait Implementations§
source§impl Clone for ManagedScalingBuilder
impl Clone for ManagedScalingBuilder
source§fn clone(&self) -> ManagedScalingBuilder
fn clone(&self) -> ManagedScalingBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ManagedScalingBuilder
impl Debug for ManagedScalingBuilder
source§impl Default for ManagedScalingBuilder
impl Default for ManagedScalingBuilder
source§fn default() -> ManagedScalingBuilder
fn default() -> ManagedScalingBuilder
source§impl PartialEq for ManagedScalingBuilder
impl PartialEq for ManagedScalingBuilder
source§fn eq(&self, other: &ManagedScalingBuilder) -> bool
fn eq(&self, other: &ManagedScalingBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ManagedScalingBuilder
Auto Trait Implementations§
impl Freeze for ManagedScalingBuilder
impl RefUnwindSafe for ManagedScalingBuilder
impl Send for ManagedScalingBuilder
impl Sync for ManagedScalingBuilder
impl Unpin for ManagedScalingBuilder
impl UnwindSafe for ManagedScalingBuilder
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