interface RedriveAllowPolicy
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.SQS.RedriveAllowPolicy |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awssqs#RedriveAllowPolicy |
Java | software.amazon.awscdk.services.sqs.RedriveAllowPolicy |
Python | aws_cdk.aws_sqs.RedriveAllowPolicy |
TypeScript (source) | aws-cdk-lib » aws_sqs » RedriveAllowPolicy |
Permission settings for the dead letter source 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,
}
});
Properties
Name | Type | Description |
---|---|---|
redrive | Redrive | Permission settings for source queues that can designate this queue as their dead-letter queue. |
source | IQueue [] | Source queues that can designate this queue as their dead-letter queue. |
redrivePermission?
Type:
Redrive
(optional, default: RedrivePermission.BY_QUEUE
if sourceQueues
is specified,RedrivePermission.ALLOW_ALL
otherwise.)
Permission settings for source queues that can designate this queue as their dead-letter queue.
sourceQueues?
Type:
IQueue
[]
(optional, default: Required when redrivePermission
is RedrivePermission.BY_QUEUE
, cannot be defined otherwise.)
Source queues that can designate this queue as their dead-letter queue.
When redrivePermission
is set to RedrivePermission.BY_QUEUE
, this parameter is required.
You can specify up to 10 source queues.
To allow more than 10 source queues to specify dead-letter queues, set the redrivePermission
to
RedrivePermission.ALLOW_ALL
.
When redrivePermission
is either RedrivePermission.ALLOW_ALL
or RedrivePermission.DENY_ALL
,
this parameter cannot be set.