#[non_exhaustive]pub struct TaskDefinitionPlacementConstraint { /* private fields */ }Expand description
An object representing a constraint on task placement in the task definition. For more information, see Task placement constraints in the Amazon Elastic Container Service Developer Guide.
Task placement constraints aren't supported for tasks run on Fargate.
Implementations§
source§impl TaskDefinitionPlacementConstraint
impl TaskDefinitionPlacementConstraint
sourcepub fn type(&self) -> Option<&TaskDefinitionPlacementConstraintType>
pub fn type(&self) -> Option<&TaskDefinitionPlacementConstraintType>
The type of constraint. The MemberOf constraint restricts selection to be from 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. For more information, see Cluster query language in the Amazon Elastic Container Service Developer Guide.
source§impl TaskDefinitionPlacementConstraint
impl TaskDefinitionPlacementConstraint
sourcepub fn builder() -> TaskDefinitionPlacementConstraintBuilder
pub fn builder() -> TaskDefinitionPlacementConstraintBuilder
Creates a new builder-style object to manufacture TaskDefinitionPlacementConstraint.
Trait Implementations§
source§impl Clone for TaskDefinitionPlacementConstraint
impl Clone for TaskDefinitionPlacementConstraint
source§fn clone(&self) -> TaskDefinitionPlacementConstraint
fn clone(&self) -> TaskDefinitionPlacementConstraint
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<TaskDefinitionPlacementConstraint> for TaskDefinitionPlacementConstraint
impl PartialEq<TaskDefinitionPlacementConstraint> for TaskDefinitionPlacementConstraint
source§fn eq(&self, other: &TaskDefinitionPlacementConstraint) -> bool
fn eq(&self, other: &TaskDefinitionPlacementConstraint) -> bool
This method tests for
self and other values to be equal, and is used
by ==.