AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Specifies an action that 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 Hierarchy

System.Object
  Amazon.Batch.Model.JobStateTimeLimitAction

Namespace: Amazon.Batch.Model
Assembly: AWSSDK.Batch.dll
Version: 3.x.y.z

Syntax

C#
public class JobStateTimeLimitAction

The JobStateTimeLimitAction type exposes the following members

Constructors

NameDescription
Public Method JobStateTimeLimitAction()

Properties

NameTypeDescription
Public Property Action Amazon.Batch.JobStateTimeLimitActionsAction

Gets and sets the property 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. The only supported value is CANCEL, which will cancel the job.

Public Property MaxTimeSeconds System.Int32

Gets and sets the property MaxTimeSeconds.

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).

Public Property Reason System.String

Gets and sets the property Reason.

The reason to log for the action being taken.

Public Property State Amazon.Batch.JobStateTimeLimitActionsState

Gets and sets the property State.

The state of the job needed to trigger the action. The only supported value is RUNNABLE.

Version Information

.NET Core App:
Supported in: 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5, 4.0, 3.5