Show / Hide Table of Contents

Interface CfnJobDefinition.IEvaluateOnExitProperty

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

Namespace: Amazon.CDK.AWS.Batch
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface CfnJobDefinition.IEvaluateOnExitProperty
Syntax (vb)
Public Interface CfnJobDefinition.IEvaluateOnExitProperty
Remarks

If none of the EvaluateOnExit conditions in a RetryStrategy match, then the job is retried.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-evaluateonexit.html

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.AWS.Batch;

             var evaluateOnExitProperty = new EvaluateOnExitProperty {
                 Action = "action",

                 // the properties below are optional
                 OnExitCode = "onExitCode",
                 OnReason = "onReason",
                 OnStatusReason = "onStatusReason"
             };

Synopsis

Properties

Action

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

OnExitCode

Contains a glob pattern to match against the decimal representation of the ExitCode returned for a job.

OnReason

Contains a glob pattern to match against the Reason returned for a job.

OnStatusReason

Contains a glob pattern to match against the StatusReason returned for a job.

Properties

Action

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

string Action { get; }
Property Value

string

Remarks

The values aren't case sensitive.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-evaluateonexit.html#cfn-batch-jobdefinition-evaluateonexit-action

OnExitCode

Contains a glob pattern to match against the decimal representation of the ExitCode returned for a job.

string? OnExitCode { get; }
Property Value

string

Remarks

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.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-evaluateonexit.html#cfn-batch-jobdefinition-evaluateonexit-onexitcode

OnReason

Contains a glob pattern to match against the Reason returned for a job.

string? OnReason { get; }
Property Value

string

Remarks

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.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-evaluateonexit.html#cfn-batch-jobdefinition-evaluateonexit-onreason

OnStatusReason

Contains a glob pattern to match against the StatusReason returned for a job.

string? OnStatusReason { get; }
Property Value

string

Remarks

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.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-evaluateonexit.html#cfn-batch-jobdefinition-evaluateonexit-onstatusreason

Back to top Generated by DocFX