Amazon.SQS.AmazonSQSClient.ListDeadLetterSourceQueues C# (CSharp) Method

ListDeadLetterSourceQueues() public method

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 in the Amazon SQS Developer Guide.

/// The queue referred to doesn't exist. ///
public ListDeadLetterSourceQueues ( ListDeadLetterSourceQueuesRequest request ) : ListDeadLetterSourceQueuesResponse
request Amazon.SQS.Model.ListDeadLetterSourceQueuesRequest Container for the necessary parameters to execute the ListDeadLetterSourceQueues service method.
return Amazon.SQS.Model.ListDeadLetterSourceQueuesResponse
        public ListDeadLetterSourceQueuesResponse ListDeadLetterSourceQueues(ListDeadLetterSourceQueuesRequest request)
        {
            var marshaller = new ListDeadLetterSourceQueuesRequestMarshaller();
            var unmarshaller = ListDeadLetterSourceQueuesResponseUnmarshaller.Instance;

            return Invoke<ListDeadLetterSourceQueuesRequest,ListDeadLetterSourceQueuesResponse>(request, marshaller, unmarshaller);
        }

Usage Example

Exemplo n.º 1
0
    public static void SQSListDeadLetterSourceQueues()
    {
      #region SQSListDeadLetterSourceQueues
      var client = new AmazonSQSClient();

      var request = new ListDeadLetterSourceQueuesRequest
      {
        QueueUrl = "https://sqs.us-east-1.amazonaws.com/80398EXAMPLE/MyTestDeadLetterQueue"
      };

      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);
        }
      }
      else
      {
        Console.WriteLine("No dead letter source queues.");
      }
      #endregion

      Console.ReadLine();
    }
AmazonSQSClient