AWS::Batch::JobDefinition EvaluateOnExit - AWS CloudFormation

AWS::Batch::JobDefinition EvaluateOnExit

Specifies a set of conditions to be met, and an action to take (RETRY or EXIT) if all conditions are met.

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 are not case sensitive.

Required: Yes

Type: String

Allowed values: EXIT | RETRY

Update requires: No interruption

OnExitCode

Contains a glob pattern to match against the decimal representation of the ExitCode returned for a job. The patten can be up to 512 characters long, can contain only numbers, and 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

OnReason

Contains a glob pattern to match against the Reason returned for a job. The patten can be up to 512 characters long, can contain letters, numbers, periods (.), colons (:), and whitespace (spaces, tabs), and 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 patten can be up to 512 characters long, can contain letters, numbers, periods (.), colons (:), and whitespace (spaces, tabs). and 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