# BatchRetryStrategyProperty

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.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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
};
```

Golang:

```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

- `attempts`: number — The number of times to attempt to retry, if the job fails.

  Valid values are 1–10.
