Interface ContainerDependency
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ContainerDependency.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-17T14:40:50.491Z")
@Stability(Stable)
public interface ContainerDependency
extends software.amazon.jsii.JsiiSerializable
The details of a dependency on another container in the task definition.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ecs.*;
ContainerDefinition containerDefinition;
ContainerDependency containerDependency = ContainerDependency.builder()
.container(containerDefinition)
// the properties below are optional
.condition(ContainerDependencyCondition.START)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forContainerDependencystatic final classAn implementation forContainerDependency -
Method Summary
Modifier and TypeMethodDescriptionstatic ContainerDependency.Builderbuilder()default ContainerDependencyConditionThe state the container needs to be in to satisfy the dependency and proceed with startup.The container to depend on.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getContainer
The container to depend on. -
getCondition
The state the container needs to be in to satisfy the dependency and proceed with startup.Valid values are ContainerDependencyCondition.START, ContainerDependencyCondition.COMPLETE, ContainerDependencyCondition.SUCCESS and ContainerDependencyCondition.HEALTHY.
Default: ContainerDependencyCondition.HEALTHY
-
builder
- Returns:
- a
ContainerDependency.BuilderofContainerDependency
-