AWS SDK Version 2 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

.NET Framework 3.5
Returns a list of your queues that have the RedrivePolicy queue attribute configured with a dead letter queue.

For more information about using dead letter queues, see Using Amazon SQS Dead Letter Queues.

Namespace: Amazon.SQS
Assembly: AWSSDK.dll
Version: (assembly version)


public virtual ListDeadLetterSourceQueuesResponse ListDeadLetterSourceQueues(
         ListDeadLetterSourceQueuesRequest request


Type: Amazon.SQS.Model.ListDeadLetterSourceQueuesRequest

Container for the necessary parameters to execute the ListDeadLetterSourceQueues service method.

Return Value
Type: Amazon.SQS.Model.ListDeadLetterSourceQueuesResponse
The response from the ListDeadLetterSourceQueues service method, as returned by SQS.


QueueDoesNotExistException The queue referred to does not exist.


This example shows how to list dead letter source queues.

List dead letter source queues example

var client = new AmazonSQSClient();

var request = new ListDeadLetterSourceQueuesRequest
  QueueUrl = ""

var response = client.ListDeadLetterSourceQueues(request);

if (response.QueueUrls.Count > 0)
  Console.WriteLine("Dead letter source queues:");

  foreach (var url in response.QueueUrls)
    Console.WriteLine("  " + url);
  Console.WriteLine("No dead letter source queues.");

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5