Skip to content

DeadLetterConfiguration

Source code in docs_src/capo_kinesis/types/dead_letter_configuration.py
class DeadLetterConfiguration(TypedDict, closed=True):
    target_type: "capo_kinesis.types.target_type.TargetType"
    """<p>Whether dead-letter handling is enabled for the queue. <code>BUILT_IN</code> enables it: when a record has been received <code>MaxReceiveCount</code> times without being acknowledged, it becomes a dead-letter record and <a>ReceiveQueueRecords</a> no longer returns it. <code>NONE</code> disables it, and an unacknowledged record continues to be redelivered until it is acknowledged or its retention period ends.</p>"""
    max_receive_count: NotRequired[
        "capo_kinesis.types.max_receive_count.MaxReceiveCount"
    ]
    """<p>The number of times a record can be received without being acknowledged before it becomes a dead-letter record. Required when <code>TargetType</code> is <code>BUILT_IN</code>. A queue that you create without <code>DeadLetterConfiguration</code> gets a <code>MaxReceiveCount</code> of 6.</p>"""

max_receive_count instance-attribute

max_receive_count: NotRequired[MaxReceiveCount]

The number of times a record can be received without being acknowledged before it becomes a dead-letter record. Required when TargetType is BUILT_IN. A queue that you create without DeadLetterConfiguration gets a MaxReceiveCount of 6.

target_type instance-attribute

target_type: TargetType

Whether dead-letter handling is enabled for the queue. BUILT_IN enables it: when a record has been received MaxReceiveCount times without being acknowledged, it becomes a dead-letter record and ReceiveQueueRecords no longer returns it. NONE disables it, and an unacknowledged record continues to be redelivered until it is acknowledged or its retention period ends.