#[non_exhaustive]pub struct TaskDefinitionPlacementConstraint {
pub type: Option<TaskDefinitionPlacementConstraintType>,
pub expression: Option<String>,
}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.
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.type: Option<TaskDefinitionPlacementConstraintType>The type of constraint. The MemberOf constraint restricts selection to be from a group of valid candidates.
expression: Option<String>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.
Implementations
The type of constraint. The MemberOf constraint restricts selection to be from a group of valid candidates.
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.
Creates a new builder-style object to manufacture TaskDefinitionPlacementConstraint
Trait Implementations
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl Send for TaskDefinitionPlacementConstraint
impl Sync for TaskDefinitionPlacementConstraint
impl Unpin for TaskDefinitionPlacementConstraint
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more