Show / Hide Table of Contents

Class CfnJobDefinition.RetryStrategyProperty

The retry strategy that's associated with a job.

Inheritance
object
CfnJobDefinition.RetryStrategyProperty
Implements
CfnJobDefinition.IRetryStrategyProperty
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.AWS.Batch
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnJobDefinition.RetryStrategyProperty : CfnJobDefinition.IRetryStrategyProperty
Syntax (vb)
Public Class CfnJobDefinition.RetryStrategyProperty Implements 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

Constructors

RetryStrategyProperty()

The retry strategy that's associated with a job.

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.

Constructors

RetryStrategyProperty()

The retry strategy that's associated with a job.

public RetryStrategyProperty()
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"
                 } }
             };

Properties

Attempts

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

public double? Attempts { get; set; }
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.

public object? EvaluateOnExit { get; set; }
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)[]

Implements

CfnJobDefinition.IRetryStrategyProperty
Back to top Generated by DocFX