Struct rusoto_ecs::PlacementConstraint [−][src]
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 are using the Fargate launch type, task placement constraints are not supported.
Fields
expression: Option<String>
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 Elastic Container Service Developer Guide.
type_: Option<String>
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.
Trait Implementations
Returns the “default value” for a type. Read more
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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 RefUnwindSafe for PlacementConstraint
impl Send for PlacementConstraint
impl Sync for PlacementConstraint
impl Unpin for PlacementConstraint
impl UnwindSafe for PlacementConstraint
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self