public override void Invoke(AWSCredentials creds, RegionEndpoint region, int maxItems) { AmazonGameLiftConfig config = new AmazonGameLiftConfig(); config.RegionEndpoint = region; ConfigureClient(config); AmazonGameLiftClient client = new AmazonGameLiftClient(creds, config); DescribeGameSessionQueuesResponse resp = new DescribeGameSessionQueuesResponse(); do { DescribeGameSessionQueuesRequest req = new DescribeGameSessionQueuesRequest { NextToken = resp.NextToken , Limit = maxItems }; resp = client.DescribeGameSessionQueues(req); CheckError(resp.HttpStatusCode, "200"); foreach (var obj in resp.GameSessionQueues) { AddObject(obj); } }while (!string.IsNullOrEmpty(resp.NextToken)); }