Class CfnJobDefinition.RetryStrategyProperty
The retry strategy that's associated with a job.
Implements
Inherited Members
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 .
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 |
| 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 .
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
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.
EvaluateOnExit
Array of up to 5 objects that specify the conditions where jobs are retried or failed.
public object? EvaluateOnExit { get; set; }
Property Value
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.
Type union: either IResolvable or (either IResolvable or CfnJobDefinition.IEvaluateOnExitProperty)[]