Interface CfnJobQueue.IJobStateTimeLimitActionProperty
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.
Namespace: Amazon.CDK.AWS.Batch
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface CfnJobQueue.IJobStateTimeLimitActionProperty
Syntax (vb)
Public Interface CfnJobQueue.IJobStateTimeLimitActionProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Batch;
var jobStateTimeLimitActionProperty = new JobStateTimeLimitActionProperty {
Action = "action",
MaxTimeSeconds = 123,
Reason = "reason",
State = "state"
};
Synopsis
Properties
| Action | 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. |
| MaxTimeSeconds | The approximate amount of time, in seconds, that must pass with the job in the specified state before the action is taken. |
| Reason | The reason to log for the action being taken. |
| State | The state of the job needed to trigger the action. |
Properties
Action
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.
string Action { get; }
Property Value
Remarks
The only supported value is CANCEL , which will cancel the job.
MaxTimeSeconds
The approximate amount of time, in seconds, that must pass with the job in the specified state before the action is taken.
double MaxTimeSeconds { get; }
Property Value
Remarks
The minimum value is 600 (10 minutes) and the maximum value is 86,400 (24 hours).
Reason
The reason to log for the action being taken.
string Reason { get; }
Property Value
Remarks
State
The state of the job needed to trigger the action.
string State { get; }
Property Value
Remarks
The only supported value is RUNNABLE .