public override void Invoke(AWSCredentials creds, RegionEndpoint region, int maxItems) { AmazonLambdaConfig config = new AmazonLambdaConfig(); config.RegionEndpoint = region; ConfigureClient(config); AmazonLambdaClient client = new AmazonLambdaClient(creds, config); ListEventSourceMappingsResponse resp = new ListEventSourceMappingsResponse(); do { ListEventSourceMappingsRequest req = new ListEventSourceMappingsRequest { Marker = resp.NextMarker , MaxItems = maxItems }; resp = client.ListEventSourceMappings(req); CheckError(resp.HttpStatusCode, "200"); foreach (var obj in resp.EventSourceMappings) { AddObject(obj); } }while (!string.IsNullOrEmpty(resp.NextMarker)); }