#[non_exhaustive]pub struct TaskDefinitionPlacementConstraint {
pub type: Option<TaskDefinitionPlacementConstraintType>,
pub expression: Option<String>,
}
Expand description
The 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§
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
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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
self
and other
values to be equal, and is used
by ==
.