Enum ContainerDependencyCondition

java.lang.Object
java.lang.Enum<ContainerDependencyCondition>
software.amazon.awscdk.services.ecs.ContainerDependencyCondition
All Implemented Interfaces:
Serializable, Comparable<ContainerDependencyCondition>, java.lang.constant.Constable

@Generated(value="jsii-pacmak/1.98.0 (build 00b106d)", date="2024-05-08T21:35:06.533Z") @Stability(Stable) public enum ContainerDependencyCondition extends Enum<ContainerDependencyCondition>
  • Enum Constant Details

    • START

      @Stability(Stable) public static final ContainerDependencyCondition START
      This condition emulates the behavior of links and volumes today.

      It validates that a dependent container is started before permitting other containers to start.

    • COMPLETE

      @Stability(Stable) public static final ContainerDependencyCondition COMPLETE
      This condition validates that a dependent container runs to completion (exits) before permitting other containers to start.

      This can be useful for nonessential containers that run a script and then exit.

    • SUCCESS

      @Stability(Stable) public static final ContainerDependencyCondition SUCCESS
      This condition is the same as COMPLETE, but it also requires that the container exits with a zero status.
    • HEALTHY

      @Stability(Stable) public static final ContainerDependencyCondition HEALTHY
      This condition validates that the dependent container passes its Docker health check before permitting other containers to start.

      This requires that the dependent container has health checks configured. This condition is confirmed only at task startup.

  • Method Details

    • values

      public static ContainerDependencyCondition[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static ContainerDependencyCondition valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null