Struct aws_sdk_batch::types::TaskContainerDependency
source · #[non_exhaustive]pub struct TaskContainerDependency {
pub container_name: Option<String>,
pub condition: Option<String>,
}
Expand description
A list of containers that this task depends on.
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.container_name: Option<String>
A unique identifier for the container.
condition: Option<String>
The dependency condition of the container. The following are the available conditions and their behavior:
-
START
- This condition emulates the behavior of links and volumes today. It validates that a dependent container is started before permitting other containers to start. -
COMPLETE
- This condition validates that a dependent container runs to completion (exits) before permitting other containers to start. This can be useful for nonessential containers that run a script and then exit. This condition can't be set on an essential container. -
SUCCESS
- This condition is the same asCOMPLETE
, but it also requires that the container exits with a zero status. This condition can't be set on an essential container.
Implementations§
source§impl TaskContainerDependency
impl TaskContainerDependency
sourcepub fn container_name(&self) -> Option<&str>
pub fn container_name(&self) -> Option<&str>
A unique identifier for the container.
sourcepub fn condition(&self) -> Option<&str>
pub fn condition(&self) -> Option<&str>
The dependency condition of the container. The following are the available conditions and their behavior:
-
START
- This condition emulates the behavior of links and volumes today. It validates that a dependent container is started before permitting other containers to start. -
COMPLETE
- This condition validates that a dependent container runs to completion (exits) before permitting other containers to start. This can be useful for nonessential containers that run a script and then exit. This condition can't be set on an essential container. -
SUCCESS
- This condition is the same asCOMPLETE
, but it also requires that the container exits with a zero status. This condition can't be set on an essential container.
source§impl TaskContainerDependency
impl TaskContainerDependency
sourcepub fn builder() -> TaskContainerDependencyBuilder
pub fn builder() -> TaskContainerDependencyBuilder
Creates a new builder-style object to manufacture TaskContainerDependency
.
Trait Implementations§
source§impl Clone for TaskContainerDependency
impl Clone for TaskContainerDependency
source§fn clone(&self) -> TaskContainerDependency
fn clone(&self) -> TaskContainerDependency
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TaskContainerDependency
impl Debug for TaskContainerDependency
source§impl PartialEq for TaskContainerDependency
impl PartialEq for TaskContainerDependency
source§fn eq(&self, other: &TaskContainerDependency) -> bool
fn eq(&self, other: &TaskContainerDependency) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TaskContainerDependency
Auto Trait Implementations§
impl Freeze for TaskContainerDependency
impl RefUnwindSafe for TaskContainerDependency
impl Send for TaskContainerDependency
impl Sync for TaskContainerDependency
impl Unpin for TaskContainerDependency
impl UnwindSafe for TaskContainerDependency
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> 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