public override void Invoke(AWSCredentials creds, RegionEndpoint region, int maxItems)
        {
            AmazonEC2Config config = new AmazonEC2Config();

            config.RegionEndpoint = region;
            ConfigureClient(config);
            AmazonEC2Client client = new AmazonEC2Client(creds, config);

            DescribeBundleTasksResponse resp = new DescribeBundleTasksResponse();
            DescribeBundleTasksRequest  req  = new DescribeBundleTasksRequest
            {
            };

            resp = client.DescribeBundleTasks(req);
            CheckError(resp.HttpStatusCode, "200");

            foreach (var obj in resp.BundleTasks)
            {
                AddObject(obj);
            }
        }
Example #2
0
 /// <summary>
 /// Describe Bundle Tasks
 /// </summary>
 /// <param name="request">Describe Bundle Tasks  request</param>
 /// <returns>Describe Bundle Tasks  Response from the service</returns>
 /// <remarks>
 /// The DescribeBundleTasks operation describes in-progress
 /// and recent bundle tasks. Complete and failed tasks are
 /// removed from the list a short time after completion.
 /// If no bundle ids are given, all bundle tasks are returned.
 ///
 /// </remarks>
 public DescribeBundleTasksResponse DescribeBundleTasks(DescribeBundleTasksRequest request)
 {
     return(Invoke <DescribeBundleTasksResponse>("DescribeBundleTasksResponse.xml"));
 }