enum RedrivePermission
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.SQS.RedrivePermission |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awssqs#RedrivePermission |
Java | software.amazon.awscdk.services.sqs.RedrivePermission |
Python | aws_cdk.aws_sqs.RedrivePermission |
TypeScript (source) | aws-cdk-lib » aws_sqs » RedrivePermission |
The permission type that defines which source queues can specify the current queue as the dead-letter queue.
Example
declare const sourceQueue: sqs.IQueue;
// Only the sourceQueue can specify this queue as the dead-letter queue.
const queue1 = new sqs.Queue(this, 'Queue2', {
redriveAllowPolicy: {
sourceQueues: [sourceQueue],
}
});
// No source queues can specify this queue as the dead-letter queue.
const queue2 = new sqs.Queue(this, 'Queue', {
redriveAllowPolicy: {
redrivePermission: sqs.RedrivePermission.DENY_ALL,
}
});
Members
Name | Description |
---|---|
ALLOW_ALL | Any source queues in this AWS account in the same Region can specify this queue as the dead-letter queue. |
DENY_ALL | No source queues 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. |
ALLOW_ALL
Any source queues in this AWS account in the same Region can specify this queue as the dead-letter queue.
DENY_ALL
No source queues 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.