public override void Invoke(AWSCredentials creds, RegionEndpoint region, int maxItems) { AmazonRekognitionConfig config = new AmazonRekognitionConfig(); config.RegionEndpoint = region; ConfigureClient(config); AmazonRekognitionClient client = new AmazonRekognitionClient(creds, config); DescribeProjectsResponse resp = new DescribeProjectsResponse(); do { DescribeProjectsRequest req = new DescribeProjectsRequest { NextToken = resp.NextToken , MaxResults = maxItems }; resp = client.DescribeProjects(req); CheckError(resp.HttpStatusCode, "200"); foreach (var obj in resp.ProjectDescriptions) { AddObject(obj); } }while (!string.IsNullOrEmpty(resp.NextToken)); }