public override void Invoke(AWSCredentials creds, RegionEndpoint region, int maxItems) { AmazonWellArchitectedConfig config = new AmazonWellArchitectedConfig(); config.RegionEndpoint = region; ConfigureClient(config); AmazonWellArchitectedClient client = new AmazonWellArchitectedClient(creds, config); ListLensReviewsResponse resp = new ListLensReviewsResponse(); do { ListLensReviewsRequest req = new ListLensReviewsRequest { NextToken = resp.NextToken , MaxResults = maxItems }; resp = client.ListLensReviews(req); CheckError(resp.HttpStatusCode, "200"); foreach (var obj in resp.WorkloadId) { AddObject(obj); } foreach (var obj in resp.MilestoneNumber) { AddObject(obj); } foreach (var obj in resp.LensReviewSummaries) { AddObject(obj); } }while (!string.IsNullOrEmpty(resp.NextToken)); }