#[non_exhaustive]pub struct AwsEcsServiceCapacityProviderStrategyDetails {
pub base: Option<i32>,
pub capacity_provider: Option<String>,
pub weight: Option<i32>,
}
Expand description
Strategy item for the capacity provider strategy that the service uses.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.base: Option<i32>
The minimum number of tasks to run on the capacity provider. Only one strategy item can specify a value for Base
.
The value must be between 0 and 100000.
capacity_provider: Option<String>
The short name of the capacity provider.
weight: Option<i32>
The relative percentage of the total number of tasks that should use the capacity provider.
If no weight is specified, the default value is 0. At least one capacity provider must have a weight greater than 0.
The value can be between 0 and 1000.
Implementations§
source§impl AwsEcsServiceCapacityProviderStrategyDetails
impl AwsEcsServiceCapacityProviderStrategyDetails
source§impl AwsEcsServiceCapacityProviderStrategyDetails
impl AwsEcsServiceCapacityProviderStrategyDetails
sourcepub fn builder() -> AwsEcsServiceCapacityProviderStrategyDetailsBuilder
pub fn builder() -> AwsEcsServiceCapacityProviderStrategyDetailsBuilder
Creates a new builder-style object to manufacture AwsEcsServiceCapacityProviderStrategyDetails
.
Trait Implementations§
source§impl Clone for AwsEcsServiceCapacityProviderStrategyDetails
impl Clone for AwsEcsServiceCapacityProviderStrategyDetails
source§fn clone(&self) -> AwsEcsServiceCapacityProviderStrategyDetails
fn clone(&self) -> AwsEcsServiceCapacityProviderStrategyDetails
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl PartialEq for AwsEcsServiceCapacityProviderStrategyDetails
impl PartialEq for AwsEcsServiceCapacityProviderStrategyDetails
source§fn eq(&self, other: &AwsEcsServiceCapacityProviderStrategyDetails) -> bool
fn eq(&self, other: &AwsEcsServiceCapacityProviderStrategyDetails) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AwsEcsServiceCapacityProviderStrategyDetails
Auto Trait Implementations§
impl RefUnwindSafe for AwsEcsServiceCapacityProviderStrategyDetails
impl Send for AwsEcsServiceCapacityProviderStrategyDetails
impl Sync for AwsEcsServiceCapacityProviderStrategyDetails
impl Unpin for AwsEcsServiceCapacityProviderStrategyDetails
impl UnwindSafe for AwsEcsServiceCapacityProviderStrategyDetails
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
Mutably borrows from an owned value. Read more
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>
Creates a shared type from an unshared type.