BatchRetryStrategyProperty
Struct External
The retry strategy that's associated with a job.
For more information, see Automated job retries in the AWS Batch User Guide .
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_pipes as pipes } from 'aws-cdk-lib';
const batchRetryStrategyProperty: pipes.CfnPipe.BatchRetryStrategyProperty = {
attempts: 123,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_pipes as pipes
batch_retry_strategy_property = pipes.CfnPipe.BatchRetryStrategyProperty(
attempts=123
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.pipes.*;
BatchRetryStrategyProperty batchRetryStrategyProperty = BatchRetryStrategyProperty.builder()
.attempts(123)
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Pipes;
var batchRetryStrategyProperty = new BatchRetryStrategyProperty {
Attempts = 123
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
batchRetryStrategyProperty := &BatchRetryStrategyProperty{
Attempts: jsii.Number(123),
}
Properties
attemptsoptionalnumberattemptsoptionalint | floatattemptsoptionalNumberAttemptsoptionaldoubleAttemptsoptional*float64 = 0 #The number of times to move a job to the `RUNNABLE` status.
If the value of attempts is greater than one, the job is retried on failure the same number of attempts as the value.