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

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

            ListApplicationsResponse resp = new ListApplicationsResponse();

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

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

                foreach (var obj in resp.Items)
                {
                    AddObject(obj);
                }
            }while (!string.IsNullOrEmpty(resp.NextToken));
        }
Example #2
0
        public void AppConfigListApplications()
        {
            #region to-list-the-available-applications-1632267111131

            var client   = new AmazonAppConfigClient();
            var response = client.ListApplications(new ListApplicationsRequest
            {
            });

            List <Application> items = response.Items;

            #endregion
        }