Struct aws_sdk_scheduler::model::PlacementConstraint
source · #[non_exhaustive]pub struct PlacementConstraint { /* private fields */ }
Expand description
An object representing a constraint on task placement.
Implementations§
source§impl PlacementConstraint
impl PlacementConstraint
sourcepub fn type(&self) -> Option<&PlacementConstraintType>
pub fn type(&self) -> Option<&PlacementConstraintType>
The type of constraint. Use distinctInstance
to ensure that each task in a particular group is running on a different container instance. Use memberOf
to restrict the selection to a group of valid candidates.
sourcepub fn expression(&self) -> Option<&str>
pub fn expression(&self) -> Option<&str>
A cluster query language expression to apply to the constraint. You cannot specify an expression if the constraint type is distinctInstance
. For more information, see Cluster query language in the Amazon ECS Developer Guide.
source§impl PlacementConstraint
impl PlacementConstraint
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture PlacementConstraint
.
Trait Implementations§
source§impl Clone for PlacementConstraint
impl Clone for PlacementConstraint
source§fn clone(&self) -> PlacementConstraint
fn clone(&self) -> PlacementConstraint
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 Debug for PlacementConstraint
impl Debug for PlacementConstraint
source§impl PartialEq<PlacementConstraint> for PlacementConstraint
impl PartialEq<PlacementConstraint> for PlacementConstraint
source§fn eq(&self, other: &PlacementConstraint) -> bool
fn eq(&self, other: &PlacementConstraint) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.