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

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

            ListAcceleratorsResponse resp = new ListAcceleratorsResponse();

            do
            {
                ListAcceleratorsRequest req = new ListAcceleratorsRequest
                {
                    NextToken = resp.NextToken
                    ,
                    MaxResults = maxItems
                };

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

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

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

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