Struct aws_sdk_ecs::types::builders::ContainerDependencyBuilder
source · #[non_exhaustive]pub struct ContainerDependencyBuilder { /* private fields */ }
Expand description
A builder for ContainerDependency
.
Implementations§
source§impl ContainerDependencyBuilder
impl ContainerDependencyBuilder
sourcepub fn container_name(self, input: impl Into<String>) -> Self
pub fn container_name(self, input: impl Into<String>) -> Self
The name of a container.
This field is required.sourcepub fn set_container_name(self, input: Option<String>) -> Self
pub fn set_container_name(self, input: Option<String>) -> Self
The name of a container.
sourcepub fn get_container_name(&self) -> &Option<String>
pub fn get_container_name(&self) -> &Option<String>
The name of a container.
sourcepub fn condition(self, input: ContainerCondition) -> Self
pub fn condition(self, input: ContainerCondition) -> Self
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 azero
status. This condition can't be set on an essential container. -
HEALTHY
- This condition validates that the dependent container passes its Docker health check before permitting other containers to start. This requires that the dependent container has health checks configured. This condition is confirmed only at task startup.
sourcepub fn set_condition(self, input: Option<ContainerCondition>) -> Self
pub fn set_condition(self, input: Option<ContainerCondition>) -> Self
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 azero
status. This condition can't be set on an essential container. -
HEALTHY
- This condition validates that the dependent container passes its Docker health check before permitting other containers to start. This requires that the dependent container has health checks configured. This condition is confirmed only at task startup.
sourcepub fn get_condition(&self) -> &Option<ContainerCondition>
pub fn get_condition(&self) -> &Option<ContainerCondition>
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 azero
status. This condition can't be set on an essential container. -
HEALTHY
- This condition validates that the dependent container passes its Docker health check before permitting other containers to start. This requires that the dependent container has health checks configured. This condition is confirmed only at task startup.
sourcepub fn build(self) -> Result<ContainerDependency, BuildError>
pub fn build(self) -> Result<ContainerDependency, BuildError>
Consumes the builder and constructs a ContainerDependency
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ContainerDependencyBuilder
impl Clone for ContainerDependencyBuilder
source§fn clone(&self) -> ContainerDependencyBuilder
fn clone(&self) -> ContainerDependencyBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ContainerDependencyBuilder
impl Debug for ContainerDependencyBuilder
source§impl Default for ContainerDependencyBuilder
impl Default for ContainerDependencyBuilder
source§fn default() -> ContainerDependencyBuilder
fn default() -> ContainerDependencyBuilder
source§impl PartialEq for ContainerDependencyBuilder
impl PartialEq for ContainerDependencyBuilder
source§fn eq(&self, other: &ContainerDependencyBuilder) -> bool
fn eq(&self, other: &ContainerDependencyBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.