interface BatchRetryStrategyProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Events.CfnRule.BatchRetryStrategyProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsevents#CfnRule_BatchRetryStrategyProperty |
Java | software.amazon.awscdk.services.events.CfnRule.BatchRetryStrategyProperty |
Python | aws_cdk.aws_events.CfnRule.BatchRetryStrategyProperty |
TypeScript | aws-cdk-lib » aws_events » CfnRule » 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.
Example
// 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,
};
Properties
Name | Type | Description |
---|---|---|
attempts? | number | The number of times to attempt to retry, if the job fails. |
attempts?
Type:
number
(optional)
The number of times to attempt to retry, if the job fails.
Valid values are 1–10.