Show / Hide Table of Contents

Interface CfnJobDefinition.IRetryStrategyProperty

The retry strategy that's associated with a job.

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

For more information, see Automated job retries in the AWS Batch User Guide .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-retrystrategy.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 retryStrategyProperty = new RetryStrategyProperty {
                 Attempts = 123,
                 EvaluateOnExit = new [] { new EvaluateOnExitProperty {
                     Action = "action",

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

Synopsis

Properties

Attempts

The number of times to move a job to the RUNNABLE status.

EvaluateOnExit

Array of up to 5 objects that specify the conditions where jobs are retried or failed.

Properties

Attempts

The number of times to move a job to the RUNNABLE status.

double? Attempts { get; }
Property Value

double?

Remarks

You can specify between 1 and 10 attempts. If the value of attempts is greater than one, the job is retried on failure the same number of attempts as the value.

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

EvaluateOnExit

Array of up to 5 objects that specify the conditions where jobs are retried or failed.

object? EvaluateOnExit { get; }
Property Value

object

Remarks

If this parameter is specified, then the attempts parameter must also be specified. If none of the listed conditions match, then the job is retried.

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

Type union: either IResolvable or (either IResolvable or CfnJobDefinition.IEvaluateOnExitProperty)[]

Back to top Generated by DocFX