public override void Invoke(AWSCredentials creds, RegionEndpoint region, int maxItems)
        {
            AmazonNimbleStudioConfig config = new AmazonNimbleStudioConfig();

            config.RegionEndpoint = region;
            ConfigureClient(config);
            AmazonNimbleStudioClient client = new AmazonNimbleStudioClient(creds, config);

            ListStudiosResponse resp = new ListStudiosResponse();

            do
            {
                ListStudiosRequest req = new ListStudiosRequest
                {
                    NextToken = resp.NextToken
                };

                resp = client.ListStudios(req);
                CheckError(resp.HttpStatusCode, "200");

                foreach (var obj in resp.Studios)
                {
                    AddObject(obj);
                }
            }while (!string.IsNullOrEmpty(resp.NextToken));
        }
        protected IAmazonNimbleStudio CreateClient(AWSCredentials credentials, RegionEndpoint region)
        {
            var config = new AmazonNimbleStudioConfig {
                RegionEndpoint = region
            };

            Amazon.PowerShell.Utils.Common.PopulateConfig(this, config);
            this.CustomizeClientConfig(config);
            var client = new AmazonNimbleStudioClient(credentials, config);

            client.BeforeRequestEvent += RequestEventHandler;
            client.AfterResponseEvent += ResponseEventHandler;
            return(client);
        }