Returns a list of your queues that have the RedrivePolicy queue attribute configured with a dead letter queue.
public object Execute(ExecutorContext context) { var cmdletContext = context as CmdletContext; // create request var request = new Amazon.SQS.Model.ListDeadLetterSourceQueuesRequest(); if (cmdletContext.MaxResult != null) { request.MaxResults = cmdletContext.MaxResult.Value; } if (cmdletContext.NextToken != null) { request.NextToken = cmdletContext.NextToken; } if (cmdletContext.QueueUrl != null) { request.QueueUrl = cmdletContext.QueueUrl; } CmdletOutput output; // issue call var client = Client ?? CreateClient(_CurrentCredentials, _RegionEndpoint); try { var response = CallAWSServiceOperation(client, request); object pipelineOutput = null; pipelineOutput = cmdletContext.Select(response, this); output = new CmdletOutput { PipelineOutput = pipelineOutput, ServiceResponse = response }; } catch (Exception e) { output = new CmdletOutput { ErrorResponse = e }; } return(output); }
/// <summary> /// Paginator for ListDeadLetterSourceQueues operation ///</summary> public IListDeadLetterSourceQueuesPaginator ListDeadLetterSourceQueues(ListDeadLetterSourceQueuesRequest request) { return(new ListDeadLetterSourceQueuesPaginator(this.client, request)); }
internal ListDeadLetterSourceQueuesPaginator(IAmazonSQS client, ListDeadLetterSourceQueuesRequest request) { this._client = client; this._request = request; }
/// <summary> /// Initiates the asynchronous execution of the ListDeadLetterSourceQueues operation. /// <seealso cref="Amazon.SQS.IAmazonSQS"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListDeadLetterSourceQueues operation on AmazonSQSClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListDeadLetterSourceQueues /// operation.</returns> public IAsyncResult BeginListDeadLetterSourceQueues(ListDeadLetterSourceQueuesRequest request, AsyncCallback callback, object state) { var marshaller = new ListDeadLetterSourceQueuesRequestMarshaller(); var unmarshaller = ListDeadLetterSourceQueuesResponseUnmarshaller.Instance; return BeginInvoke<ListDeadLetterSourceQueuesRequest>(request, marshaller, unmarshaller, callback, state); }
/// <summary> /// Returns a list of your queues that have the RedrivePolicy queue attribute configured /// with a dead letter queue. /// /// /// <para> /// For more information about using dead letter queues, see <a href="http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSDeadLetterQueue.html">Using /// Amazon SQS Dead Letter Queues</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListDeadLetterSourceQueues service method.</param> /// /// <returns>The response from the ListDeadLetterSourceQueues service method, as returned by SQS.</returns> /// <exception cref="QueueDoesNotExistException"> /// The queue referred to does not exist. /// </exception> public ListDeadLetterSourceQueuesResponse ListDeadLetterSourceQueues(ListDeadLetterSourceQueuesRequest request) { var marshaller = new ListDeadLetterSourceQueuesRequestMarshaller(); var unmarshaller = ListDeadLetterSourceQueuesResponseUnmarshaller.Instance; return Invoke<ListDeadLetterSourceQueuesRequest,ListDeadLetterSourceQueuesResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Initiates the asynchronous execution of the ListDeadLetterSourceQueues operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListDeadLetterSourceQueues operation.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// <returns>The task object representing the asynchronous operation.</returns> public Task<ListDeadLetterSourceQueuesResponse> ListDeadLetterSourceQueuesAsync(ListDeadLetterSourceQueuesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new ListDeadLetterSourceQueuesRequestMarshaller(); var unmarshaller = ListDeadLetterSourceQueuesResponseUnmarshaller.Instance; return InvokeAsync<ListDeadLetterSourceQueuesRequest,ListDeadLetterSourceQueuesResponse>(request, marshaller, unmarshaller, cancellationToken); }
IAsyncResult invokeListDeadLetterSourceQueues(ListDeadLetterSourceQueuesRequest listDeadLetterSourceQueuesRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new ListDeadLetterSourceQueuesRequestMarshaller().Marshall(listDeadLetterSourceQueuesRequest); var unmarshaller = ListDeadLetterSourceQueuesResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return result; }
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(); }
/// <summary> /// <para>Returns a list of your queues that have the RedrivePolicy queue attribute configured with a dead letter queue.</para> /// </summary> /// /// <param name="listDeadLetterSourceQueuesRequest">Container for the necessary parameters to execute the ListDeadLetterSourceQueues service /// method on AmazonSQS.</param> /// /// <returns>The response from the ListDeadLetterSourceQueues service method, as returned by AmazonSQS.</returns> /// /// <exception cref="QueueDoesNotExistException"/> public ListDeadLetterSourceQueuesResponse ListDeadLetterSourceQueues(ListDeadLetterSourceQueuesRequest listDeadLetterSourceQueuesRequest) { IAsyncResult asyncResult = invokeListDeadLetterSourceQueues(listDeadLetterSourceQueuesRequest, null, null, true); return EndListDeadLetterSourceQueues(asyncResult); }
/// <summary> /// <para>Returns a list of your queues that have the RedrivePolicy queue attribute configured with a dead letter queue.</para> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListDeadLetterSourceQueues service /// method on AmazonSQS.</param> /// /// <returns>The response from the ListDeadLetterSourceQueues service method, as returned by AmazonSQS.</returns> /// /// <exception cref="T:Amazon.SQS.Model.QueueDoesNotExistException" /> public ListDeadLetterSourceQueuesResponse ListDeadLetterSourceQueues(ListDeadLetterSourceQueuesRequest request) { var task = ListDeadLetterSourceQueuesAsync(request); try { return task.Result; } catch(AggregateException e) { throw e.InnerException; } }
private Amazon.SQS.Model.ListDeadLetterSourceQueuesResponse CallAWSServiceOperation(IAmazonSQS client, Amazon.SQS.Model.ListDeadLetterSourceQueuesRequest request) { Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Amazon Simple Queue Service (SQS)", "ListDeadLetterSourceQueues"); try { #if DESKTOP return(client.ListDeadLetterSourceQueues(request)); #elif CORECLR return(client.ListDeadLetterSourceQueuesAsync(request).GetAwaiter().GetResult()); #else #error "Unknown build edition" #endif } catch (AmazonServiceException exc) { var webException = exc.InnerException as System.Net.WebException; if (webException != null) { throw new Exception(Utils.Common.FormatNameResolutionFailureMessage(client.Config, webException.Message), webException); } throw; } }
public Task<ListDeadLetterSourceQueuesResponse> ListDeadLetterSourceQueuesAsync(ListDeadLetterSourceQueuesRequest request, CancellationToken cancellationToken = new CancellationToken()) { throw new NotImplementedException(); }
public ListDeadLetterSourceQueuesResponse ListDeadLetterSourceQueues(ListDeadLetterSourceQueuesRequest request) { throw new NotImplementedException(); }
/// <summary> /// Initiates the asynchronous execution of the ListDeadLetterSourceQueues operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListDeadLetterSourceQueues operation on AmazonSQSClient.</param> /// <param name="callback">An Action delegate that is invoked when the operation completes.</param> /// <param name="options">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> public void ListDeadLetterSourceQueuesAsync(ListDeadLetterSourceQueuesRequest request, AmazonServiceCallback<ListDeadLetterSourceQueuesRequest, ListDeadLetterSourceQueuesResponse> callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var marshaller = new ListDeadLetterSourceQueuesRequestMarshaller(); var unmarshaller = ListDeadLetterSourceQueuesResponseUnmarshaller.Instance; Action<AmazonWebServiceRequest, AmazonWebServiceResponse, Exception, AsyncOptions> callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult<ListDeadLetterSourceQueuesRequest,ListDeadLetterSourceQueuesResponse> responseObject = new AmazonServiceResult<ListDeadLetterSourceQueuesRequest,ListDeadLetterSourceQueuesResponse>((ListDeadLetterSourceQueuesRequest)req, (ListDeadLetterSourceQueuesResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke<ListDeadLetterSourceQueuesRequest>(request, marshaller, unmarshaller, options, callbackHelper); }
/// <summary> /// <para>Returns a list of your queues that have the RedrivePolicy queue attribute configured with a dead letter queue.</para> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListDeadLetterSourceQueues service /// method on AmazonSQS.</param> /// /// <returns>The response from the ListDeadLetterSourceQueues service method, as returned by AmazonSQS.</returns> /// /// <exception cref="T:Amazon.SQS.Model.QueueDoesNotExistException" /> public ListDeadLetterSourceQueuesResponse ListDeadLetterSourceQueues(ListDeadLetterSourceQueuesRequest request) { var task = ListDeadLetterSourceQueuesAsync(request); try { return task.Result; } catch(AggregateException e) { ExceptionDispatchInfo.Capture(e.InnerException).Throw(); return null; } }
/// <summary> /// Initiates the asynchronous execution of the ListDeadLetterSourceQueues operation. /// <seealso cref="Amazon.SQS.IAmazonSQS.ListDeadLetterSourceQueues"/> /// </summary> /// /// <param name="listDeadLetterSourceQueuesRequest">Container for the necessary parameters to execute the ListDeadLetterSourceQueues operation /// on AmazonSQS.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking /// EndListDeadLetterSourceQueues operation.</returns> public IAsyncResult BeginListDeadLetterSourceQueues(ListDeadLetterSourceQueuesRequest listDeadLetterSourceQueuesRequest, AsyncCallback callback, object state) { return invokeListDeadLetterSourceQueues(listDeadLetterSourceQueuesRequest, callback, state, false); }
/// <summary> /// Initiates the asynchronous execution of the ListDeadLetterSourceQueues operation. /// <seealso cref="Amazon.SQS.IAmazonSQS.ListDeadLetterSourceQueues"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListDeadLetterSourceQueues operation.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// <returns>The task object representing the asynchronous operation.</returns> public Task<ListDeadLetterSourceQueuesResponse> ListDeadLetterSourceQueuesAsync(ListDeadLetterSourceQueuesRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new ListDeadLetterSourceQueuesRequestMarshaller(); var unmarshaller = ListDeadLetterSourceQueuesResponseUnmarshaller.GetInstance(); return Invoke<IRequest, ListDeadLetterSourceQueuesRequest, ListDeadLetterSourceQueuesResponse>(request, marshaller, unmarshaller, signer, cancellationToken); }
IAsyncResult invokeListDeadLetterSourceQueues(ListDeadLetterSourceQueuesRequest request, AsyncCallback callback, object state, bool synchronized) { var marshaller = new ListDeadLetterSourceQueuesRequestMarshaller(); var unmarshaller = ListDeadLetterSourceQueuesResponseUnmarshaller.Instance; return Invoke(request, callback, state, synchronized, marshaller, unmarshaller, signer); }