public override void Invoke(AWSCredentials creds, RegionEndpoint region, int maxItems) { AmazonElasticBeanstalkConfig config = new AmazonElasticBeanstalkConfig(); config.RegionEndpoint = region; ConfigureClient(config); AmazonElasticBeanstalkClient client = new AmazonElasticBeanstalkClient(creds, config); ListPlatformVersionsResponse resp = new ListPlatformVersionsResponse(); do { ListPlatformVersionsRequest req = new ListPlatformVersionsRequest { NextToken = resp.NextToken , MaxRecords = maxItems }; resp = client.ListPlatformVersions(req); CheckError(resp.HttpStatusCode, "200"); foreach (var obj in resp.PlatformSummaryList) { AddObject(obj); } }while (!string.IsNullOrEmpty(resp.NextToken)); }