Beispiel #1
0
        public void ChangeConfig()
        {
            var requestSettings = new DescribeConfigurationSettingsRequest()
            {
                ApplicationName = $"Safe-Arrival-{ environment.ToString()}-{GlobalVariables.Color}",
                EnvironmentName = $"{ environment.ToString()}-{GlobalVariables.Color}-API",
            };
            var response = client.DescribeConfigurationSettings(requestSettings);

            HashSet <string> setNameSpace  = new HashSet <string>();
            HashSet <string> setOptionName = new HashSet <string>();

            foreach (var option in response.ConfigurationSettings[0].OptionSettings)
            {
                setNameSpace.Add(option.Namespace);
                setOptionName.Add(option.Namespace + "." + option.OptionName + "=" + option.Value);
            }
        }
Beispiel #2
0
        public void ElasticBeanstalkDescribeConfigurationSettings()
        {
            #region to-view-configurations-settings-for-an-environment-1456276924537

            var client   = new AmazonElasticBeanstalkClient();
            var response = client.DescribeConfigurationSettings(new DescribeConfigurationSettingsRequest
            {
                ApplicationName = "my-app",
                EnvironmentName = "my-env"
            });

            List <ConfigurationSettingsDescription> configurationSettings = response.ConfigurationSettings;

            #endregion
        }