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)); }
public void BatchDescribeJobQueues() { #region to-describe-a-job-queue-1481153995804 var client = new AmazonBatchClient(); var response = client.DescribeJobQueues(new DescribeJobQueuesRequest { JobQueues = new List <string> { "HighPriority" } }); List <JobQueueDetail> jobQueues = response.JobQueues; #endregion }