Interface ContainerDependency
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ContainerDependency.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2025-01-10T21:56:50.847Z")
@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
Modifier and TypeInterfaceDescriptionstatic final class
A builder forContainerDependency
static final class
An implementation forContainerDependency
-
Method Summary
Modifier and TypeMethodDescriptionstatic ContainerDependency.Builder
builder()
default ContainerDependencyCondition
The 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.Builder
ofContainerDependency
-