Class CfnTaskDefinition.ContainerDependencyProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.CfnTaskDefinition.ContainerDependencyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTaskDefinition.ContainerDependencyProperty>
- Enclosing interface:
CfnTaskDefinition.ContainerDependencyProperty
@Stability(Stable)
public static final class CfnTaskDefinition.ContainerDependencyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTaskDefinition.ContainerDependencyProperty>
A builder for
CfnTaskDefinition.ContainerDependencyProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnTaskDefinition.ContainerDependencyProperty.getCondition()
containerName
(String containerName) Sets the value ofCfnTaskDefinition.ContainerDependencyProperty.getContainerName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
condition
@Stability(Stable) public CfnTaskDefinition.ContainerDependencyProperty.Builder condition(String condition) Sets the value ofCfnTaskDefinition.ContainerDependencyProperty.getCondition()
- Parameters:
condition
- 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.
- Returns:
this
-
containerName
@Stability(Stable) public CfnTaskDefinition.ContainerDependencyProperty.Builder containerName(String containerName) Sets the value ofCfnTaskDefinition.ContainerDependencyProperty.getContainerName()
- Parameters:
containerName
- The name of a container.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnTaskDefinition.ContainerDependencyProperty>
- Returns:
- a new instance of
CfnTaskDefinition.ContainerDependencyProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-