@Stability(value=Stable)
public static interface CfnJobDefinition.RetryStrategyProperty
extends software.amazon.jsii.JsiiSerializable
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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnJobDefinition.RetryStrategyProperty.Builder
A builder for
CfnJobDefinition.RetryStrategyProperty |
static class |
CfnJobDefinition.RetryStrategyProperty.Jsii$Proxy
An implementation for
CfnJobDefinition.RetryStrategyProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnJobDefinition.RetryStrategyProperty.Builder |
builder() |
default Number |
getAttempts()
The number of times to move a job to the `RUNNABLE` status.
|
default Object |
getEvaluateOnExit()
Array of up to 5 objects that specify conditions under which the job should be retried or failed.
|
@Stability(value=Stable) @Nullable default Number getAttempts()
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.
@Stability(value=Stable) @Nullable default Object getEvaluateOnExit()
If this parameter is specified, then the attempts parameter must also be specified.
@Stability(value=Stable) static CfnJobDefinition.RetryStrategyProperty.Builder builder()
Copyright © 2022. All rights reserved.