AWS::Events::Rule BatchRetryStrategy - AWS CloudFormation

AWS::Events::Rule BatchRetryStrategy

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.

Syntax

To declare this entity in your AWS CloudFormation template, use the following syntax:

JSON

{ "Attempts" : Integer }

YAML

Attempts: Integer

Properties

Attempts

The number of times to attempt to retry, if the job fails. Valid values are 1–10.

Required: No

Type: Integer

Update requires: No interruption

Examples

Set the BatchRetryStrategy property

The following example sets the BatchRetryStrategy property to 8 retries.

JSON

"RetryStrategy": { "Attempts": 8 }

YAML

RetryStrategy Attempts: 8