Struct aws_sdk_ecs::model::managed_scaling::Builder
source · [−]#[non_exhaustive]pub struct Builder { /* private fields */ }
Expand description
A builder for ManagedScaling
Implementations
sourceimpl Builder
impl Builder
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 target_capacity(self, input: i32) -> Self
pub fn target_capacity(self, input: i32) -> Self
The target capacity value for the capacity provider. The specified value must be greater than 0
and less than or equal to 100
. A value of 100
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 value for the capacity provider. The specified value must be greater than 0
and less than or equal to 100
. A value of 100
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 container instances that Amazon ECS scales in or scales out at one time. If this parameter is omitted, the default value of 1
is used.
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 container instances that Amazon ECS scales in or scales out at one time. If this parameter is omitted, the default value of 1
is used.
sourcepub fn maximum_scaling_step_size(self, input: i32) -> Self
pub fn maximum_scaling_step_size(self, input: i32) -> Self
The maximum number of container instances that Amazon ECS scales in or scales out at one time. 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 container instances that Amazon ECS scales in or scales out at one time. 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 build(self) -> ManagedScaling
pub fn build(self) -> ManagedScaling
Consumes the builder and constructs a ManagedScaling
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more