BatchRetryStrategyProperty Struct
The retry strategy to use for failed jobs, if the target is an AWS Batch job.
If you specify a retry strategy here, it overrides the retry strategy defined in the job definition.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_events as events } from 'aws-cdk-lib';
const batchRetryStrategyProperty: events.CfnRule.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_events as events
batch_retry_strategy_property = events.CfnRule.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.events.*;
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.Events;
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#The number of times to attempt to retry, if the job fails.
Valid values are 1–10.