Struct aws_sdk_gamelift::types::ContainerDependency
source · #[non_exhaustive]pub struct ContainerDependency {
pub container_name: Option<String>,
pub condition: Option<ContainerDependencyCondition>,
}
Expand description
This data type is used with the Amazon GameLift containers feature, which is currently in public preview.
A container's dependency on another container in the same container group. The dependency impacts how the dependent container is able to start or shut down based the status of the other container.
For example, ContainerA is configured with the following dependency: a START
dependency on ContainerB. This means that ContainerA can't start until ContainerB has started. It also means that ContainerA must shut down before ContainerB.
Part of: ContainerDefinition
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 descriptive label for the container definition that this container depends on.
condition: Option<ContainerDependencyCondition>
The condition that the dependency container must reach before the dependent container can start. Valid conditions include:
-
START - The dependency container must have started.
-
COMPLETE - The dependency container has run to completion (exits). Use this condition with nonessential containers, such as those that run a script and then exit. The dependency container can't be an essential container.
-
SUCCESS - The dependency container has run to completion and exited with a zero status. The dependency container can't be an essential container.
-
HEALTHY - The dependency container has passed its Docker health check. Use this condition with dependency containers that have health checks configured. This condition is confirmed at container group startup only.
Implementations§
source§impl ContainerDependency
impl ContainerDependency
sourcepub fn container_name(&self) -> Option<&str>
pub fn container_name(&self) -> Option<&str>
A descriptive label for the container definition that this container depends on.
sourcepub fn condition(&self) -> Option<&ContainerDependencyCondition>
pub fn condition(&self) -> Option<&ContainerDependencyCondition>
The condition that the dependency container must reach before the dependent container can start. Valid conditions include:
-
START - The dependency container must have started.
-
COMPLETE - The dependency container has run to completion (exits). Use this condition with nonessential containers, such as those that run a script and then exit. The dependency container can't be an essential container.
-
SUCCESS - The dependency container has run to completion and exited with a zero status. The dependency container can't be an essential container.
-
HEALTHY - The dependency container has passed its Docker health check. Use this condition with dependency containers that have health checks configured. This condition is confirmed at container group startup only.
source§impl ContainerDependency
impl ContainerDependency
sourcepub fn builder() -> ContainerDependencyBuilder
pub fn builder() -> ContainerDependencyBuilder
Creates a new builder-style object to manufacture ContainerDependency
.
Trait Implementations§
source§impl Clone for ContainerDependency
impl Clone for ContainerDependency
source§fn clone(&self) -> ContainerDependency
fn clone(&self) -> ContainerDependency
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ContainerDependency
impl Debug for ContainerDependency
source§impl PartialEq for ContainerDependency
impl PartialEq for ContainerDependency
source§fn eq(&self, other: &ContainerDependency) -> bool
fn eq(&self, other: &ContainerDependency) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ContainerDependency
Auto Trait Implementations§
impl Freeze for ContainerDependency
impl RefUnwindSafe for ContainerDependency
impl Send for ContainerDependency
impl Sync for ContainerDependency
impl Unpin for ContainerDependency
impl UnwindSafe for ContainerDependency
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