RedrivePermission

class aws_cdk.aws_sqs.RedrivePermission(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)

Bases: Enum

The permission type that defines which source queues can specify the current queue as the dead-letter queue.

ExampleMetadata:

infused

Example:

# source_queue: sqs.IQueue


# Only the sourceQueue can specify this queue as the dead-letter queue.
queue1 = sqs.Queue(self, "Queue2",
    redrive_allow_policy=sqs.RedriveAllowPolicy(
        source_queues=[source_queue]
    )
)

# No source queues can specify this queue as the dead-letter queue.
queue2 = sqs.Queue(self, "Queue",
    redrive_allow_policy=sqs.RedriveAllowPolicy(
        redrive_permission=sqs.RedrivePermission.DENY_ALL
    )
)

Attributes

ALLOW_ALL

Any source queues in this AWS account in the same Region can specify this queue as the dead-letter queue.

BY_QUEUE

Only queues specified by the sourceQueueArns parameter can specify this queue as the dead-letter queue.

DENY_ALL

No source queues can specify this queue as the dead-letter queue.