Class CfnJobQueue.JobStateTimeLimitActionProperty
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.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.Batch
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class JobStateTimeLimitActionProperty : Object, CfnJobQueue.IJobStateTimeLimitActionProperty
Syntax (vb)
Public Class JobStateTimeLimitActionProperty
Inherits Object
Implements 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
Constructors
JobStateTimeLimitActionProperty() |
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. |
Constructors
JobStateTimeLimitActionProperty()
public JobStateTimeLimitActionProperty()
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.
public string Action { get; set; }
Property Value
System.String
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.
public double MaxTimeSeconds { get; set; }
Property Value
System.Double
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.
public string Reason { get; set; }
Property Value
System.String
Remarks
State
The state of the job needed to trigger the action.
public string State { get; set; }
Property Value
System.String
Remarks
The only supported value is RUNNABLE
.