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:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAll compute environments have a maxvCpus parameter that is smaller than the job requirements.All connected compute environments have insufficient capacity errors.None of the compute environments have instances that meet the job requirements. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.static JobStateTimeLimitActionsReason[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
INSUFFICIENT_INSTANCE_CAPACITY
@Stability(Stable) public static final JobStateTimeLimitActionsReason INSUFFICIENT_INSTANCE_CAPACITYAll connected compute environments have insufficient capacity errors. -
COMPUTE_ENVIRONMENT_MAX_RESOURCE
@Stability(Stable) public static final JobStateTimeLimitActionsReason COMPUTE_ENVIRONMENT_MAX_RESOURCEAll compute environments have a maxvCpus parameter that is smaller than the job requirements. -
JOB_RESOURCE_REQUIREMENT
None of the compute environments have instances that meet the job requirements.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-