Enum JobStateTimeLimitActionsReason

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

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-11-22T02:23:57.741Z") @Stability(Stable) public enum JobStateTimeLimitActionsReason extends Enum<JobStateTimeLimitActionsReason>
The reason to log for the action being taken.

Example:

 JobQueue.Builder.create(this, "JobQueue")
         .jobStateTimeLimitActions(List.of(JobStateTimeLimitAction.builder()
                 .action(JobStateTimeLimitActionsAction.CANCEL)
                 .maxTime(Duration.minutes(10))
                 .reason(JobStateTimeLimitActionsReason.INSUFFICIENT_INSTANCE_CAPACITY)
                 .state(JobStateTimeLimitActionsState.RUNNABLE)
                 .build()))
         .build();
 

See Also:
  • Enum Constant Details

    • INSUFFICIENT_INSTANCE_CAPACITY

      @Stability(Stable) public static final JobStateTimeLimitActionsReason INSUFFICIENT_INSTANCE_CAPACITY
      All connected compute environments have insufficient capacity errors.
    • COMPUTE_ENVIRONMENT_MAX_RESOURCE

      @Stability(Stable) public static final JobStateTimeLimitActionsReason COMPUTE_ENVIRONMENT_MAX_RESOURCE
      All compute environments have a maxvCpus parameter that is smaller than the job requirements.
    • JOB_RESOURCE_REQUIREMENT

      @Stability(Stable) public static final JobStateTimeLimitActionsReason JOB_RESOURCE_REQUIREMENT
      None of the compute environments have instances that meet the job requirements.
  • Method Details

    • values

      public static JobStateTimeLimitActionsReason[] 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 JobStateTimeLimitActionsReason 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