interface ContainerDependency
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.ECS.ContainerDependency |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsecs#ContainerDependency |
Java | software.amazon.awscdk.services.ecs.ContainerDependency |
Python | aws_cdk.aws_ecs.ContainerDependency |
TypeScript (source) | aws-cdk-lib » aws_ecs » ContainerDependency |
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 { aws_ecs as ecs } from 'aws-cdk-lib';
declare const containerDefinition: ecs.ContainerDefinition;
const containerDependency: ecs.ContainerDependency = {
container: containerDefinition,
// the properties below are optional
condition: ecs.ContainerDependencyCondition.START,
};
Properties
Name | Type | Description |
---|---|---|
container | Container | The container to depend on. |
condition? | Container | The state the container needs to be in to satisfy the dependency and proceed with startup. |
container
Type:
Container
The container to depend on.
condition?
Type:
Container
(optional, default: ContainerDependencyCondition.HEALTHY)
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.