Ejemplo n.º 1
0
        public override void Invoke(AWSCredentials creds, RegionEndpoint region, int maxItems)
        {
            AmazonCloud9Config config = new AmazonCloud9Config();

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

            ListEnvironmentsResponse resp = new ListEnvironmentsResponse();

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

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

                foreach (var obj in resp.EnvironmentIds)
                {
                    AddObject(obj);
                }
            }while (!string.IsNullOrEmpty(resp.NextToken));
        }
Ejemplo n.º 2
0
        public void Cloud9ListEnvironments()
        {
            #region listenvironments-1516823687205

            var client   = new AmazonCloud9Client();
            var response = client.ListEnvironments(new ListEnvironmentsRequest
            {
            });

            List <string> environmentIds = response.EnvironmentIds;

            #endregion
        }