This is the new Amazon CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the Amazon CloudFormation User Guide.
AWS::Batch::JobDefinition EvaluateOnExit
Specifies an array of up to 10 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:StringOnExitCode:StringOnReason:StringOnStatusReason:String
Properties
Action-
Specifies the action to take if all of the specified conditions (
onStatusReason,onReason, andonExitCode) are met. The values aren't case sensitive.Required: Yes
Type: String
Allowed values:
RETRY | EXITUpdate requires: No interruption
OnExitCode-
Contains a glob pattern to match against the decimal representation of the
ExitCodereturned 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
Reasonreturned 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
StatusReasonreturned 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