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