ContainerDependency

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

Bases: object

__init__(*, container, condition=None)

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 :see: https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ContainerDependency.html

Return type

None

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 :default: ContainerDependencyCondition.HEALTHY

Return type

Optional[ContainerDependencyCondition]

container

The container to depend on.

Return type

ContainerDefinition