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); DescribeFleetLocationAttributesResponse resp = new DescribeFleetLocationAttributesResponse(); do { DescribeFleetLocationAttributesRequest req = new DescribeFleetLocationAttributesRequest { NextToken = resp.NextToken , Limit = maxItems }; resp = client.DescribeFleetLocationAttributes(req); CheckError(resp.HttpStatusCode, "200"); foreach (var obj in resp.LocationAttributes) { AddObject(obj); } foreach (var obj in resp.FleetId) { AddObject(obj); } foreach (var obj in resp.FleetArn) { AddObject(obj); } }while (!string.IsNullOrEmpty(resp.NextToken)); }