public override void Invoke(AWSCredentials creds, RegionEndpoint region, int maxItems) { AmazonBatchConfig config = new AmazonBatchConfig(); config.RegionEndpoint = region; ConfigureClient(config); AmazonBatchClient client = new AmazonBatchClient(creds, config); DescribeJobQueuesResponse resp = new DescribeJobQueuesResponse(); do { DescribeJobQueuesRequest req = new DescribeJobQueuesRequest { NextToken = resp.NextToken , MaxResults = maxItems }; resp = client.DescribeJobQueues(req); CheckError(resp.HttpStatusCode, "200"); foreach (var obj in resp.JobQueues) { AddObject(obj); } }while (!string.IsNullOrEmpty(resp.NextToken)); }
internal virtual DescribeJobQueuesResponse DescribeJobQueues(DescribeJobQueuesRequest request) { var marshaller = new DescribeJobQueuesRequestMarshaller(); var unmarshaller = DescribeJobQueuesResponseUnmarshaller.Instance; return(Invoke <DescribeJobQueuesRequest, DescribeJobQueuesResponse>(request, marshaller, unmarshaller)); }
/// <summary> /// Initiates the asynchronous execution of the DescribeJobQueues operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeJobQueues 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> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeJobQueues">REST API Reference for DescribeJobQueues Operation</seealso> public virtual Task <DescribeJobQueuesResponse> DescribeJobQueuesAsync(DescribeJobQueuesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DescribeJobQueuesRequestMarshaller(); var unmarshaller = DescribeJobQueuesResponseUnmarshaller.Instance; return(InvokeAsync <DescribeJobQueuesRequest, DescribeJobQueuesResponse>(request, marshaller, unmarshaller, cancellationToken)); }
/// <summary> /// Initiates the asynchronous execution of the DescribeJobQueues operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeJobQueues 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> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeJobQueues">REST API Reference for DescribeJobQueues Operation</seealso> public virtual Task <DescribeJobQueuesResponse> DescribeJobQueuesAsync(DescribeJobQueuesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeJobQueuesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeJobQueuesResponseUnmarshaller.Instance; return(InvokeAsync <DescribeJobQueuesResponse>(request, options, cancellationToken)); }
internal virtual DescribeJobQueuesResponse DescribeJobQueues(DescribeJobQueuesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeJobQueuesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeJobQueuesResponseUnmarshaller.Instance; return(Invoke <DescribeJobQueuesResponse>(request, options)); }