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); ListHealthChecksResponse resp = new ListHealthChecksResponse(); do { ListHealthChecksRequest req = new ListHealthChecksRequest { Marker = resp.NextMarker , MaxItems = maxItems.ToString() }; resp = client.ListHealthChecks(req); CheckError(resp.HttpStatusCode, "200"); foreach (var obj in resp.HealthChecks) { AddObject(obj); } }while (!string.IsNullOrEmpty(resp.NextMarker)); }