interface RetryPolicyProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.EventsV2.CfnSubscriber.RetryPolicyProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awseventsv2#CfnSubscriber_RetryPolicyProperty |
Java | software.amazon.awscdk.services.eventsv2.CfnSubscriber.RetryPolicyProperty |
Python | aws_cdk.aws_eventsv2.CfnSubscriber.RetryPolicyProperty |
TypeScript | aws-cdk-lib » aws_eventsv2 » CfnSubscriber » RetryPolicyProperty |
The retry policy for failed deliveries.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_eventsv2 as eventsv2 } from 'aws-cdk-lib';
const retryPolicyProperty: eventsv2.CfnSubscriber.RetryPolicyProperty = {
maxEventAgeInSeconds: 123,
maxRetryAttempts: 123,
retryStrategy: 'retryStrategy',
};
Properties
| Name | Type | Description |
|---|---|---|
| max | number | The maximum age of an event in seconds, 60-86400 (24 hours). |
| max | number | The maximum number of retry attempts, 0-185. |
| retry | string | Which errors are retried. |
maxEventAgeInSeconds?
Type:
number
(optional)
The maximum age of an event in seconds, 60-86400 (24 hours).
When an event reaches this age, retries stop; if OnFailureConfiguration is set, the event is delivered to that destination, otherwise it is dropped. The default is 300.
maxRetryAttempts?
Type:
number
(optional)
The maximum number of retry attempts, 0-185.
When the attempts are exhausted, retries stop; if OnFailureConfiguration is set, the event is delivered to that destination, otherwise it is dropped. The default is 5.
retryStrategy?
Type:
string
(optional)
Which errors are retried.
ALL retries all errors. The default is ALL.

.NET
Go
Java
Python
TypeScript