AWS::Events::Rule BatchRetryStrategy - Amazon CloudFormation
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

AWS::Events::Rule BatchRetryStrategy

The retry strategy to use for failed jobs, if the target is an Amazon 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 Amazon 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