Struct aws_sdk_securityhub::model::AwsEcsServicePlacementConstraintsDetails [−][src]
#[non_exhaustive]pub struct AwsEcsServicePlacementConstraintsDetails {
pub expression: Option<String>,
pub type: Option<String>,
}
Expand description
A placement constraint for the tasks in the service.
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.expression: Option<String>
A cluster query language expression to apply to the constraint. You cannot specify an expression if the constraint type is distinctInstance
.
type: Option<String>
The type of constraint. Use distinctInstance
to run each task in a particular group on a different container instance. Use memberOf
to restrict the selection to a group of valid candidates.
Valid values: distinctInstance
| memberOf
Implementations
A cluster query language expression to apply to the constraint. You cannot specify an expression if the constraint type is distinctInstance
.
Creates a new builder-style object to manufacture AwsEcsServicePlacementConstraintsDetails
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
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