Struct aws_sdk_ecs::model::container_dependency::Builder
source · [−]pub struct Builder { /* private fields */ }Expand description
A builder for ContainerDependency.
Implementations
sourceimpl Builder
impl Builder
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.
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 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 azerostatus. 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 azerostatus. 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) -> ContainerDependency
pub fn build(self) -> ContainerDependency
Consumes the builder and constructs a ContainerDependency.