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

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

            SearchSkillGroupsResponse resp = new SearchSkillGroupsResponse();

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

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

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

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

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