DeadLetterQueue

class aws_cdk.aws_sqs.DeadLetterQueue(*, max_receive_count, queue)

Bases: object

Dead letter queue settings.

Parameters
  • max_receive_count (Union[int, float]) – 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.

ExampleMetadata

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_sqs as sqs

# queue: sqs.Queue

dead_letter_queue = sqs.DeadLetterQueue(
    max_receive_count=123,
    queue=queue
)

Attributes

max_receive_count

The number of times a message can be unsuccesfully dequeued before being moved to the dead-letter queue.

Return type

Union[int, float]

queue

The dead-letter queue to which Amazon SQS moves messages after the value of maxReceiveCount is exceeded.

Return type

IQueue