Struct aws_sdk_ecs::model::PlacementConstraint
source · [−]#[non_exhaustive]pub struct PlacementConstraint { /* private fields */ }Expand description
An object representing a constraint on task placement. For more information, see Task placement constraints in the Amazon Elastic Container Service Developer Guide.
If you're using the Fargate launch type, task placement constraints aren't supported.
Implementations
sourceimpl 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. The expression can have a maximum length of 2000 characters. You can't specify an expression if the constraint type is distinctInstance. For more information, see Cluster query language in the Amazon Elastic Container Service Developer Guide.
sourceimpl PlacementConstraint
impl PlacementConstraint
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture PlacementConstraint.
Trait Implementations
sourceimpl Clone for PlacementConstraint
impl Clone for PlacementConstraint
sourcefn clone(&self) -> PlacementConstraint
fn clone(&self) -> PlacementConstraint
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more