Interface CfnJobQueuePropsMixin.JobStateTimeLimitActionProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnJobQueuePropsMixin.JobStateTimeLimitActionProperty.Jsii$Proxy
- Enclosing class:
CfnJobQueuePropsMixin
@Stability(Stable)
public static interface CfnJobQueuePropsMixin.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.cfnpropertymixins.services.batch.*;
JobStateTimeLimitActionProperty jobStateTimeLimitActionProperty = JobStateTimeLimitActionProperty.builder()
.action("action")
.maxTimeSeconds(123)
.reason("reason")
.state("state")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnJobQueuePropsMixin.JobStateTimeLimitActionPropertystatic final classAn implementation forCfnJobQueuePropsMixin.JobStateTimeLimitActionProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default StringThe action to take when a job is at the head of the job queue in the specified state for the specified period of time.default NumberThe approximate amount of time, in seconds, that must pass with the job in the specified state before the action is taken.default StringThe reason to log for the action being taken.default StringgetState()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.- See Also:
-
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).
- See Also:
-
getReason
The reason to log for the action being taken.- See Also:
-
getState
The state of the job needed to trigger the action.The only supported value is
RUNNABLE.- See Also:
-
builder
-