-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Closed
Labels
@aws-cdk/aws-sqsRelated to Amazon Simple Queue ServiceRelated to Amazon Simple Queue Serviceeffort/smallSmall work item – less than a day of effortSmall work item – less than a day of effortfeature-requestA feature should be added or improved.A feature should be added or improved.good first issueRelated to contributions. See CONTRIBUTING.mdRelated to contributions. See CONTRIBUTING.mdp1
Description
Description
Add a readonly property to Queue to access the dead letter queue (if configured)
Use Case
Sometimes I want access to a queues dead letter queue. For example say I'm building a separate monitoring stack which provisions CloudWatch dashboards/alarms for many SQS queues.
It would be much easier to have a dead letter queue property on each queue versus having to maintain code that maps each queue to it's dead letter queue.
For example
// Create deadletter queue
const deadletterQueue = new sqs.Queue(this, 'MyDeadLetterQueue');
// create SQS queue
const queue = new sqs.Queue(this, 'MySQSQueue', {
deadLetterQueue: {
queue: deadletterQueue,
maxReceiveCount: 3
}
});
// Want to be able to access dead letter queue as a property
const dlq = queue.deadLetterQueue;Proposed Solution
Add an optional readonly property to the Queue class to access the dead letter queue config, if one is configured
Other information
No response
Acknowledge
- I may be able to implement this feature request
- This feature might incur a breaking change
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
@aws-cdk/aws-sqsRelated to Amazon Simple Queue ServiceRelated to Amazon Simple Queue Serviceeffort/smallSmall work item – less than a day of effortSmall work item – less than a day of effortfeature-requestA feature should be added or improved.A feature should be added or improved.good first issueRelated to contributions. See CONTRIBUTING.mdRelated to contributions. See CONTRIBUTING.mdp1