There are more AWS SDK examples available in the AWS Doc SDK Examples
Use ListDeadLetterSourceQueues with a CLI
The following code examples show how to use ListDeadLetterSourceQueues.
- CLI
-
- AWS CLI
-
To list dead letter source queues
The following
list-dead-letter-source-queuesexample lists the queues that are associated with the specified dead letter source queue.aws sqs list-dead-letter-source-queues \ --queue-urlhttps://sqs.us-west-2.amazonaws.com/80398EXAMPLE/MyDeadLetterQueueOutput:
{ "queueUrls": [ "https://queue.amazonaws.com/80398EXAMPLE/MyQueue", "https://queue.amazonaws.com/80398EXAMPLE/MyOtherQueue" ] }For more information, see Using dead-letter queues in Amazon SQS in the Amazon Simple Queue Service Developer Guide.
-
For API details, see ListDeadLetterSourceQueues
in AWS CLI Command Reference.
-
- PowerShell
-
- Tools for PowerShell V4
-
Example 1: This example lists the URLs of any queues that rely on the specified queue as their dead letter queue.
Get-SQSDeadLetterSourceQueue -QueueUrl https://sqs.us-east-1.amazonaws.com/80398EXAMPLE/MyDeadLetterQueueOutput:
https://sqs.us-east-1.amazonaws.com/80398EXAMPLE/MyQueue https://sqs.us-east-1.amazonaws.com/80398EXAMPLE/MyOtherQueue-
For API details, see ListDeadLetterSourceQueues in AWS Tools for PowerShell Cmdlet Reference (V4).
-
- Tools for PowerShell V5
-
Example 1: This example lists the URLs of any queues that rely on the specified queue as their dead letter queue.
Get-SQSDeadLetterSourceQueue -QueueUrl https://sqs.us-east-1.amazonaws.com/80398EXAMPLE/MyDeadLetterQueueOutput:
https://sqs.us-east-1.amazonaws.com/80398EXAMPLE/MyQueue https://sqs.us-east-1.amazonaws.com/80398EXAMPLE/MyOtherQueue-
For API details, see ListDeadLetterSourceQueues in AWS Tools for PowerShell Cmdlet Reference (V5).
-