#[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 for TaskDefinitionPlacementConstraint
impl PartialEq 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 ==.impl StructuralPartialEq for TaskDefinitionPlacementConstraint
Auto Trait Implementations§
impl Freeze for TaskDefinitionPlacementConstraint
impl RefUnwindSafe for TaskDefinitionPlacementConstraint
impl Send for TaskDefinitionPlacementConstraint
impl Sync for TaskDefinitionPlacementConstraint
impl Unpin for TaskDefinitionPlacementConstraint
impl UnwindSafe for TaskDefinitionPlacementConstraint
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more