interface DeadLetterQueue
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.SQS.DeadLetterQueue |
Java | software.amazon.awscdk.services.sqs.DeadLetterQueue |
Python | aws_cdk.aws_sqs.DeadLetterQueue |
TypeScript (source) | @aws-cdk/aws-sqs » DeadLetterQueue |
Dead letter queue settings.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as sqs from '@aws-cdk/aws-sqs';
declare const queue: sqs.Queue;
const deadLetterQueue: sqs.DeadLetterQueue = {
maxReceiveCount: 123,
queue: queue,
};
Properties
Name | Type | Description |
---|---|---|
max | number | The number of times a message can be unsuccesfully dequeued before being moved to the dead-letter queue. |
queue | IQueue | The dead-letter queue to which Amazon SQS moves messages after the value of maxReceiveCount is exceeded. |
maxReceiveCount
Type:
number
The number of times a message can be unsuccesfully dequeued before being moved to the dead-letter queue.
queue
Type:
IQueue
The dead-letter queue to which Amazon SQS moves messages after the value of maxReceiveCount is exceeded.