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