ContainerDependency

class aws_cdk.aws_ecs.ContainerDependency(*, container, condition=None)

Bases: object

The details of a dependency on another container in the task definition.

Parameters
  • container (ContainerDefinition) – The container to depend on.

  • condition (Optional[ContainerDependencyCondition]) – 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

See

https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ContainerDependency.html

Attributes

condition

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

Return type

Optional[ContainerDependencyCondition]

container

The container to depend on.

Return type

ContainerDefinition