Interface CfnJobQueue.JobStateTimeLimitActionProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnJobQueue.JobStateTimeLimitActionProperty.Jsii$Proxy
- Enclosing class:
- CfnJobQueue
@Stability(Stable)
public static interface CfnJobQueue.JobStateTimeLimitActionProperty
extends software.amazon.jsii.JsiiSerializable
Specifies an action that AWS Batch will take after the job has remained at the head of the queue in the specified state for longer than the specified time.
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.batch.*; JobStateTimeLimitActionProperty jobStateTimeLimitActionProperty = JobStateTimeLimitActionProperty.builder() .action("action") .maxTimeSeconds(123) .reason("reason") .state("state") .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnJobQueue.JobStateTimeLimitActionProperty
static final class
An implementation forCfnJobQueue.JobStateTimeLimitActionProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
The action to take when a job is at the head of the job queue in the specified state for the specified period of time.The approximate amount of time, in seconds, that must pass with the job in the specified state before the action is taken.The reason to log for the action being taken.getState()
The state of the job needed to trigger the action.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAction
The action to take when a job is at the head of the job queue in the specified state for the specified period of time.The only supported value is
CANCEL
, which will cancel the job. -
getMaxTimeSeconds
The approximate amount of time, in seconds, that must pass with the job in the specified state before the action is taken.The minimum value is 600 (10 minutes) and the maximum value is 86,400 (24 hours).
-
getReason
The reason to log for the action being taken. -
getState
The state of the job needed to trigger the action.The only supported value is
RUNNABLE
. -
builder
-