#[non_exhaustive]pub struct AwsEcsServicePlacementStrategiesDetails {
pub field: Option<String>,
pub type: Option<String>,
}Expand description
A placement strategy that determines how to place the tasks for the service.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.field: Option<String>The field to apply the placement strategy against.
For the spread placement strategy, valid values are instanceId (or host, which has the same effect), or any platform or custom attribute that is applied to a container instance, such as attribute:ecs.availability-zone.
For the binpack placement strategy, valid values are cpu and memory.
For the random placement strategy, this attribute is not used.
type: Option<String>The type of placement strategy.
The random placement strategy randomly places tasks on available candidates.
The spread placement strategy spreads placement across available candidates evenly based on the value of Field.
The binpack strategy places tasks on available candidates that have the least available amount of the resource that is specified in Field.
Valid values: random | spread | binpack
Implementations§
source§impl AwsEcsServicePlacementStrategiesDetails
impl AwsEcsServicePlacementStrategiesDetails
sourcepub fn field(&self) -> Option<&str>
pub fn field(&self) -> Option<&str>
The field to apply the placement strategy against.
For the spread placement strategy, valid values are instanceId (or host, which has the same effect), or any platform or custom attribute that is applied to a container instance, such as attribute:ecs.availability-zone.
For the binpack placement strategy, valid values are cpu and memory.
For the random placement strategy, this attribute is not used.
sourcepub fn type(&self) -> Option<&str>
pub fn type(&self) -> Option<&str>
The type of placement strategy.
The random placement strategy randomly places tasks on available candidates.
The spread placement strategy spreads placement across available candidates evenly based on the value of Field.
The binpack strategy places tasks on available candidates that have the least available amount of the resource that is specified in Field.
Valid values: random | spread | binpack
source§impl AwsEcsServicePlacementStrategiesDetails
impl AwsEcsServicePlacementStrategiesDetails
sourcepub fn builder() -> AwsEcsServicePlacementStrategiesDetailsBuilder
pub fn builder() -> AwsEcsServicePlacementStrategiesDetailsBuilder
Creates a new builder-style object to manufacture AwsEcsServicePlacementStrategiesDetails.
Trait Implementations§
source§impl Clone for AwsEcsServicePlacementStrategiesDetails
impl Clone for AwsEcsServicePlacementStrategiesDetails
source§fn clone(&self) -> AwsEcsServicePlacementStrategiesDetails
fn clone(&self) -> AwsEcsServicePlacementStrategiesDetails
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl PartialEq for AwsEcsServicePlacementStrategiesDetails
impl PartialEq for AwsEcsServicePlacementStrategiesDetails
source§fn eq(&self, other: &AwsEcsServicePlacementStrategiesDetails) -> bool
fn eq(&self, other: &AwsEcsServicePlacementStrategiesDetails) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for AwsEcsServicePlacementStrategiesDetails
Auto Trait Implementations§
impl Freeze for AwsEcsServicePlacementStrategiesDetails
impl RefUnwindSafe for AwsEcsServicePlacementStrategiesDetails
impl Send for AwsEcsServicePlacementStrategiesDetails
impl Sync for AwsEcsServicePlacementStrategiesDetails
impl Unpin for AwsEcsServicePlacementStrategiesDetails
impl UnwindSafe for AwsEcsServicePlacementStrategiesDetails
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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