Interface ContainerDependency
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ContainerDependency.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:47.275Z")
@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();
-
Nested Class Summary
Nested ClassesModifier 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
-