Interface CfnJobDefinitionPropsMixin.RetryStrategyProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnJobDefinitionPropsMixin.RetryStrategyProperty.Jsii$Proxy
- Enclosing class:
CfnJobDefinitionPropsMixin
@Stability(Stable)
public static interface CfnJobDefinitionPropsMixin.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.cfnpropertymixins.services.batch.*;
RetryStrategyProperty retryStrategyProperty = RetryStrategyProperty.builder()
.attempts(123)
.evaluateOnExit(List.of(EvaluateOnExitProperty.builder()
.action("action")
.onExitCode("onExitCode")
.onReason("onReason")
.onStatusReason("onStatusReason")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnJobDefinitionPropsMixin.RetryStrategyPropertystatic final classAn implementation forCfnJobDefinitionPropsMixin.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: '<'eitherIResolvableorCfnJobDefinitionPropsMixin.EvaluateOnExitProperty>- See Also:
-
builder
-