AWS::Batch::JobDefinition EvaluateOnExit - AWS CloudFormation

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 AWS 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