AWS::Batch::JobQueue JobStateTimeLimitAction - AWS CloudFormation

AWS::Batch::JobQueue JobStateTimeLimitAction

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.

Syntax

To declare this entity in your AWS CloudFormation template, use the following syntax:

JSON

{ "Action" : String, "MaxTimeSeconds" : Integer, "Reason" : String, "State" : String }

YAML

Action: String MaxTimeSeconds: Integer Reason: String State: String

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

Required: Yes

Type: String

Allowed values: CANCEL

Update requires: No interruption

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

Required: Yes

Type: Integer

Minimum: 600

Maximum: 86400

Update requires: No interruption

Reason

The reason to log for the action being taken.

Required: Yes

Type: String

Update requires: No interruption

State

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

Required: Yes

Type: String

Allowed values: RUNNABLE

Update requires: No interruption