Interface CfnJobDefinition.RetryStrategyProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnJobDefinition.RetryStrategyProperty.Jsii$Proxy
- Enclosing class:
CfnJobDefinition
@Stability(Stable)
public static interface CfnJobDefinition.RetryStrategyProperty
extends software.amazon.jsii.JsiiSerializable
The retry strategy that's associated with a job.
For more information, see Automated job retries in the AWS Batch User Guide .
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.batch.*;
RetryStrategyProperty retryStrategyProperty = RetryStrategyProperty.builder()
.attempts(123)
.evaluateOnExit(List.of(EvaluateOnExitProperty.builder()
.action("action")
// the properties below are optional
.onExitCode("onExitCode")
.onReason("onReason")
.onStatusReason("onStatusReason")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnJobDefinition.RetryStrategyPropertystatic final classAn implementation forCfnJobDefinition.RetryStrategyProperty -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAttempts
The number of times to move a job to theRUNNABLEstatus.You can specify between 1 and 10 attempts. If the value of
attemptsis greater than one, the job is retried on failure the same number of attempts as the value.- See Also:
-
getEvaluateOnExit
Array of up to 5 objects that specify the conditions where jobs are retried or failed.If this parameter is specified, then the
attemptsparameter must also be specified. If none of the listed conditions match, then the job is retried.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnJobDefinition.EvaluateOnExitProperty>- See Also:
-
builder
-