如何获取给定 SQS 队列 usinb boto3 的死信队列?

How to get the dead letter queue for a given SQS queue usinb boto3?

使用 boto3 资源,如何获取特定 SQS 队列的 DLQ?

我以为是dead_letter_source_queues,但是用例反了

您可以调用 get_queue_attributes 并检查响应中的 RedrivePolicy.deadLetterTargetArn 值。