Ejemplo n.º 1
0
        public void ElasticBeanstalkListAvailableSolutionStacks()
        {
            #region to-view-solution-stacks-1456277504811

            var client   = new AmazonElasticBeanstalkClient();
            var response = client.ListAvailableSolutionStacks(new ListAvailableSolutionStacksRequest
            {
            });

            List <SolutionStackDescription> solutionStackDetails = response.SolutionStackDetails;
            List <string> solutionStacks = response.SolutionStacks;

            #endregion
        }
Ejemplo n.º 2
0
        public override void Invoke(AWSCredentials creds, RegionEndpoint region, int maxItems)
        {
            AmazonElasticBeanstalkConfig config = new AmazonElasticBeanstalkConfig();

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

            ListAvailableSolutionStacksResponse resp = new ListAvailableSolutionStacksResponse();
            ListAvailableSolutionStacksRequest  req  = new ListAvailableSolutionStacksRequest
            {
            };

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

            foreach (var obj in resp.SolutionStacks)
            {
                AddObject(obj);
            }
        }