EvaluateOnExit - AWS Batch

EvaluateOnExit

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

Contents

action

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

Type: String

Valid Values: RETRY | EXIT

Required: Yes

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.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 512.

Pattern: [0-9]*\*?

Required: No

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.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 512.

Pattern: [a-zA-Z0-9\.:\s]*\*?

Required: No

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.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 512.

Pattern: [a-zA-Z0-9\.:\s]*\*?

Required: No

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: