AWS::Batch::JobDefinition EvaluateOnExit - Amazon CloudFormation
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

AWS::Batch::JobDefinition EvaluateOnExit

Specifies an array of up to 5 conditions to be met, and an action to take (RETRY or EXIT) if all conditions are met. If none of the EvaluateOnExit conditions in a RetryStrategy match, then the job is retried.

Syntax

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

JSON

{ "Action" : String, "OnExitCode" : String, "OnReason" : String, "OnStatusReason" : String }

YAML

Action: String OnExitCode: String OnReason: String OnStatusReason: String

Properties

Action

Specifies the action to take if all of the specified conditions (onStatusReason, onReason, and onExitCode) are met. The values aren't case sensitive.

Required: Yes

Type: String

Allowed values: RETRY | EXIT

Update requires: No interruption

OnExitCode

Contains a glob pattern to match against the decimal representation of the ExitCode returned for a job. The pattern can be up to 512 characters long. It can contain only numbers, and can end with an asterisk (*) so that only the start of the string needs to be an exact match.

The string can contain up to 512 characters.

Required: No

Type: String

Update requires: No interruption

OnReason

Contains a glob pattern to match against the Reason returned for a job. The pattern can contain up to 512 characters. It can contain letters, numbers, periods (.), colons (:), and white space (including spaces and tabs). It can optionally end with an asterisk (*) so that only the start of the string needs to be an exact match.

Required: No

Type: String

Update requires: No interruption

OnStatusReason

Contains a glob pattern to match against the StatusReason returned for a job. The pattern can contain up to 512 characters. It can contain letters, numbers, periods (.), colons (:), and white spaces (including spaces or tabs). It can optionally end with an asterisk (*) so that only the start of the string needs to be an exact match.

Required: No

Type: String

Update requires: No interruption