aws-cdk-lib.aws_batch.CfnJobDefinition.EvaluateOnExitProperty

interface EvaluateOnExitProperty

LanguageType name
.NETAmazon.CDK.AWS.Batch.CfnJobDefinition.EvaluateOnExitProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsbatch#CfnJobDefinition_EvaluateOnExitProperty
Javasoftware.amazon.awscdk.services.batch.CfnJobDefinition.EvaluateOnExitProperty
Pythonaws_cdk.aws_batch.CfnJobDefinition.EvaluateOnExitProperty
TypeScript aws-cdk-lib » aws_batch » CfnJobDefinition » EvaluateOnExitProperty

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.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_batch as batch } from 'aws-cdk-lib';
const evaluateOnExitProperty: batch.CfnJobDefinition.EvaluateOnExitProperty = {
  action: 'action',

  // the properties below are optional
  onExitCode: 'onExitCode',
  onReason: 'onReason',
  onStatusReason: 'onStatusReason',
};

Properties

NameTypeDescription
actionstringSpecifies the action to take if all of the specified conditions ( onStatusReason , onReason , and onExitCode ) are met.
onExitCode?stringContains a glob pattern to match against the decimal representation of the ExitCode returned for a job.
onReason?stringContains a glob pattern to match against the Reason returned for a job.
onStatusReason?stringContains a glob pattern to match against the StatusReason returned for a job.

action

Type: string

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

The values aren't case sensitive.


onExitCode?

Type: string (optional)

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.


onReason?

Type: string (optional)

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.


onStatusReason?

Type: string (optional)

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.