Interface ContainerDependency

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
ContainerDependency.Jsii$Proxy

@Generated(value="jsii-pacmak/1.98.0 (build 00b106d)", date="2024-05-08T21:35:06.533Z") @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:
  • Method Details

    • getContainer

      @Stability(Stable) @NotNull ContainerDefinition getContainer()
      The container to depend on.
    • getCondition

      @Stability(Stable) @Nullable default ContainerDependencyCondition 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

      @Stability(Stable) static ContainerDependency.Builder builder()
      Returns:
      a ContainerDependency.Builder of ContainerDependency