Struct rusoto_ecs::PlacementConstraint [] [src]

pub struct PlacementConstraint {
    pub expression: Option<String>,
    pub type_: Option<String>,
}

An object representing a constraint on task placement. For more information, see Task Placement Constraints in the Amazon EC2 Container Service Developer Guide.

Fields

A cluster query language expression to apply to the constraint. Note you cannot specify an expression if the constraint type is distinctInstance. For more information, see Cluster Query Language in the Amazon EC2 Container Service Developer Guide.

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 selection to a group of valid candidates. Note that distinctInstance is not supported in task definitions.

Trait Implementations

impl Default for PlacementConstraint
[src]

Returns the "default value" for a type. Read more

impl Debug for PlacementConstraint
[src]

Formats the value using the given formatter.

impl Clone for PlacementConstraint
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more