public override void Invoke(AWSCredentials creds, RegionEndpoint region, int maxItems) { AmazonRoute53Config config = new AmazonRoute53Config(); config.RegionEndpoint = region; ConfigureClient(config); AmazonRoute53Client client = new AmazonRoute53Client(creds, config); ListQueryLoggingConfigsResponse resp = new ListQueryLoggingConfigsResponse(); do { ListQueryLoggingConfigsRequest req = new ListQueryLoggingConfigsRequest { NextToken = resp.NextToken , MaxResults = maxItems.ToString() }; resp = client.ListQueryLoggingConfigs(req); CheckError(resp.HttpStatusCode, "200"); foreach (var obj in resp.QueryLoggingConfigs) { AddObject(obj); } }while (!string.IsNullOrEmpty(resp.NextToken)); }