DeadLetterQueue Struct
Dead letter queue settings.
| Source | aws-sqs/lib/queue.ts |
|---|
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_sqs as sqs } from 'aws-cdk-lib';
declare const queue: sqs.Queue;
const deadLetterQueue: sqs.DeadLetterQueue = {
maxReceiveCount: 123,
queue: queue,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_sqs as sqs
# queue: sqs.Queue
dead_letter_queue = sqs.DeadLetterQueue(
max_receive_count=123,
queue=queue
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.sqs.*;
Queue queue;
DeadLetterQueue deadLetterQueue = DeadLetterQueue.builder()
.maxReceiveCount(123)
.queue(queue)
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.SQS;
Queue queue;
var deadLetterQueue = new DeadLetterQueue {
MaxReceiveCount = 123,
Queue = queue
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
var queue Queue
deadLetterQueue := &DeadLetterQueue{
MaxReceiveCount: jsii.Number(123),
Queue: queue,
}
Properties
maxReceiveCountnumbermax_receive_countint | floatmaxReceiveCountNumberMaxReceiveCountdoubleMaxReceiveCount*float64 required #The number of times a message can be unsuccessfully dequeued before being moved to the dead-letter queue.