Container for the parameters to the DescribeConfigurationSettings operation.

Returns a description of the settings for the specified configuration set, that is, either a configuration template or the configuration set associated with a running environment.

When describing the settings for the configuration set associated with a running environment, it is possible to receive two sets of setting descriptions. One is the deployed configuration set, and the other is a draft configuration of an environment that is either in the process of deployment or that failed to deploy.

Related Topics

  • DeleteEnvironmentConfiguration
Inheritance: AmazonElasticBeanstalkRequest
        public object Execute(ExecutorContext context)
        {
            var cmdletContext = context as CmdletContext;
            // create request
            var request = new Amazon.ElasticBeanstalk.Model.DescribeConfigurationSettingsRequest();

            if (cmdletContext.ApplicationName != null)
            {
                request.ApplicationName = cmdletContext.ApplicationName;
            }
            if (cmdletContext.EnvironmentName != null)
            {
                request.EnvironmentName = cmdletContext.EnvironmentName;
            }
            if (cmdletContext.TemplateName != null)
            {
                request.TemplateName = cmdletContext.TemplateName;
            }

            CmdletOutput output;

            // issue call
            var client = Client ?? CreateClient(_CurrentCredentials, _RegionEndpoint);

            try
            {
                var    response       = CallAWSServiceOperation(client, request);
                object pipelineOutput = null;
                pipelineOutput = cmdletContext.Select(response, this);
                output         = new CmdletOutput
                {
                    PipelineOutput  = pipelineOutput,
                    ServiceResponse = response
                };
            }
            catch (Exception e)
            {
                output = new CmdletOutput {
                    ErrorResponse = e
                };
            }

            return(output);
        }
 /// <summary>
 /// <para> Returns a description of the settings for the specified configuration set, that is, either a configuration template or the
 /// configuration set associated with a running environment. </para> <para> When describing the settings for the configuration set associated
 /// with a running environment, it is possible to receive two sets of setting descriptions. One is the deployed configuration set, and the other
 /// is a draft configuration of an environment that is either in the process of deployment or that failed to deploy. </para> <para>Related
 /// Topics</para>
 /// <ul>
 /// <li> DeleteEnvironmentConfiguration </li>
 /// 
 /// </ul>
 /// </summary>
 /// 
 /// <param name="describeConfigurationSettingsRequest">Container for the necessary parameters to execute the DescribeConfigurationSettings
 ///          service method on AmazonElasticBeanstalk.</param>
 /// 
 /// <returns>The response from the DescribeConfigurationSettings service method, as returned by AmazonElasticBeanstalk.</returns>
 /// 
 public DescribeConfigurationSettingsResponse DescribeConfigurationSettings(DescribeConfigurationSettingsRequest describeConfigurationSettingsRequest)
 {
     IAsyncResult asyncResult = invokeDescribeConfigurationSettings(describeConfigurationSettingsRequest, null, null, true);
     return EndDescribeConfigurationSettings(asyncResult);
 }
 /// <summary>
 /// Initiates the asynchronous execution of the DescribeConfigurationSettings operation.
 /// <seealso cref="Amazon.ElasticBeanstalk.AmazonElasticBeanstalk.DescribeConfigurationSettings"/>
 /// </summary>
 /// 
 /// <param name="describeConfigurationSettingsRequest">Container for the necessary parameters to execute the DescribeConfigurationSettings
 ///          operation on AmazonElasticBeanstalk.</param>
 /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
 /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
 ///          procedure using the AsyncState property.</param>
 /// 
 /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking
 ///         EndDescribeConfigurationSettings operation.</returns>
 public IAsyncResult BeginDescribeConfigurationSettings(DescribeConfigurationSettingsRequest describeConfigurationSettingsRequest, AsyncCallback callback, object state)
 {
     return invokeDescribeConfigurationSettings(describeConfigurationSettingsRequest, callback, state, false);
 }
 IAsyncResult invokeDescribeConfigurationSettings(DescribeConfigurationSettingsRequest describeConfigurationSettingsRequest, AsyncCallback callback, object state, bool synchronized)
 {
     IRequest irequest = new DescribeConfigurationSettingsRequestMarshaller().Marshall(describeConfigurationSettingsRequest);
     var unmarshaller = DescribeConfigurationSettingsResponseUnmarshaller.GetInstance();
     AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller);
     Invoke(result);
     return result;
 }
        /// <summary>
        /// Initiates the asynchronous execution of the DescribeConfigurationSettings operation.
        /// <seealso cref="Amazon.ElasticBeanstalk.IAmazonElasticBeanstalk"/>
        /// </summary>
        /// 
        /// <param name="request">Container for the necessary parameters to execute the DescribeConfigurationSettings operation.</param>
        /// <param name="cancellationToken">
        ///     A cancellation token that can be used by other objects or threads to receive notice of cancellation.
        /// </param>
        /// <returns>The task object representing the asynchronous operation.</returns>
        public Task<DescribeConfigurationSettingsResponse> DescribeConfigurationSettingsAsync(DescribeConfigurationSettingsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller = new DescribeConfigurationSettingsRequestMarshaller();
            var unmarshaller = DescribeConfigurationSettingsResponseUnmarshaller.Instance;

            return InvokeAsync<DescribeConfigurationSettingsRequest,DescribeConfigurationSettingsResponse>(request, marshaller, 
                unmarshaller, cancellationToken);
        }
        internal DescribeConfigurationSettingsResponse DescribeConfigurationSettings(DescribeConfigurationSettingsRequest request)
        {
            var marshaller = new DescribeConfigurationSettingsRequestMarshaller();
            var unmarshaller = DescribeConfigurationSettingsResponseUnmarshaller.Instance;

            return Invoke<DescribeConfigurationSettingsRequest,DescribeConfigurationSettingsResponse>(request, marshaller, unmarshaller);
        }
  /// <summary>
  /// <para> Returns a description of the settings for the specified configuration set, that is, either a configuration template or the
  /// configuration set associated with a running environment. </para> <para> When describing the settings for the configuration set associated
  /// with a running environment, it is possible to receive two sets of setting descriptions. One is the deployed configuration set, and the other
  /// is a draft configuration of an environment that is either in the process of deployment or that failed to deploy. </para> <para>Related
  /// Topics</para>
  /// <ul>
  /// <li> DeleteEnvironmentConfiguration </li>
  /// 
  /// </ul>
  /// </summary>
  /// 
  /// <param name="describeConfigurationSettingsRequest">Container for the necessary parameters to execute the DescribeConfigurationSettings
  ///           service method on AmazonElasticBeanstalk.</param>
  /// 
  /// <returns>The response from the DescribeConfigurationSettings service method, as returned by AmazonElasticBeanstalk.</returns>
  /// 
 public DescribeConfigurationSettingsResponse DescribeConfigurationSettings(DescribeConfigurationSettingsRequest describeConfigurationSettingsRequest) 
 {           
     IRequest<DescribeConfigurationSettingsRequest> request = new DescribeConfigurationSettingsRequestMarshaller().Marshall(describeConfigurationSettingsRequest);
     DescribeConfigurationSettingsResponse response = Invoke<DescribeConfigurationSettingsRequest, DescribeConfigurationSettingsResponse> (request, this.signer, DescribeConfigurationSettingsResponseUnmarshaller.GetInstance());
     return response;
 }
        /// <summary>
        /// <para> Returns a description of the settings for the specified configuration set, that is, either a configuration template or the
        /// configuration set associated with a running environment. </para> <para> When describing the settings for the configuration set associated
        /// with a running environment, it is possible to receive two sets of setting descriptions. One is the deployed configuration set, and the other
        /// is a draft configuration of an environment that is either in the process of deployment or that failed to deploy. </para> <para>Related
        /// Topics</para>
        /// <ul>
        /// <li> DeleteEnvironmentConfiguration </li>
        /// 
        /// </ul>
        /// </summary>
        /// 
        /// <param name="describeConfigurationSettingsRequest">Container for the necessary parameters to execute the DescribeConfigurationSettings
        /// service method on AmazonElasticBeanstalk.</param>
        /// 
        /// <returns>The response from the DescribeConfigurationSettings service method, as returned by AmazonElasticBeanstalk.</returns>
        /// <param name="cancellationToken">
        ///     A cancellation token that can be used by other objects or threads to receive notice of cancellation.
        /// </param>
		public Task<DescribeConfigurationSettingsResponse> DescribeConfigurationSettingsAsync(DescribeConfigurationSettingsRequest describeConfigurationSettingsRequest, CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller = new DescribeConfigurationSettingsRequestMarshaller();
            var unmarshaller = DescribeConfigurationSettingsResponseUnmarshaller.GetInstance();
            return Invoke<IRequest, DescribeConfigurationSettingsRequest, DescribeConfigurationSettingsResponse>(describeConfigurationSettingsRequest, marshaller, unmarshaller, signer, cancellationToken);
        }
		internal DescribeConfigurationSettingsResponse DescribeConfigurationSettings(DescribeConfigurationSettingsRequest request)
        {
            var task = DescribeConfigurationSettingsAsync(request);
            try
            {
                return task.Result;
            }
            catch(AggregateException e)
            {
                ExceptionDispatchInfo.Capture(e.InnerException).Throw();
                return null;
            }
        }
Exemplo n.º 10
0
        /// <summary>
        /// Initiates the asynchronous execution of the DescribeConfigurationSettings operation.
        /// </summary>
        /// 
        /// <param name="request">Container for the necessary parameters to execute the DescribeConfigurationSettings operation on AmazonElasticBeanstalkClient.</param>
        /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
        /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
        ///          procedure using the AsyncState property.</param>
        /// 
        /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeConfigurationSettings
        ///         operation.</returns>
        public IAsyncResult BeginDescribeConfigurationSettings(DescribeConfigurationSettingsRequest request, AsyncCallback callback, object state)
        {
            var marshaller = new DescribeConfigurationSettingsRequestMarshaller();
            var unmarshaller = DescribeConfigurationSettingsResponseUnmarshaller.Instance;

            return BeginInvoke<DescribeConfigurationSettingsRequest>(request, marshaller, unmarshaller,
                callback, state);
        }
        IAsyncResult invokeDescribeConfigurationSettings(DescribeConfigurationSettingsRequest request, AsyncCallback callback, object state, bool synchronized)
        {
            var marshaller = new DescribeConfigurationSettingsRequestMarshaller();
            var unmarshaller = DescribeConfigurationSettingsResponseUnmarshaller.Instance;

            return Invoke(request, callback, state, synchronized, marshaller, unmarshaller, signer);
        }
 private Amazon.ElasticBeanstalk.Model.DescribeConfigurationSettingsResponse CallAWSServiceOperation(IAmazonElasticBeanstalk client, Amazon.ElasticBeanstalk.Model.DescribeConfigurationSettingsRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "AWS Elastic Beanstalk", "DescribeConfigurationSettings");
     try
     {
         #if DESKTOP
         return(client.DescribeConfigurationSettings(request));
         #elif CORECLR
         return(client.DescribeConfigurationSettingsAsync(request).GetAwaiter().GetResult());
         #else
                 #error "Unknown build edition"
         #endif
     }
     catch (AmazonServiceException exc)
     {
         var webException = exc.InnerException as System.Net.WebException;
         if (webException != null)
         {
             throw new Exception(Utils.Common.FormatNameResolutionFailureMessage(client.Config, webException.Message), webException);
         }
         throw;
     }
 }
Exemplo n.º 13
0
    private void DescribeConfigurationOptions()
    {
        using (var client = Amazon.AWSClientFactory.CreateAmazonElasticBeanstalkClient(GetConf()))
        {
            Amazon.ElasticBeanstalk.Model.DescribeEnvironmentsRequest req = new Amazon.ElasticBeanstalk.Model.DescribeEnvironmentsRequest();
            req.ApplicationName = "vielgi";

            var response = client.DescribeEnvironments(req);

            string envName = response.Environments[0].EnvironmentName;
            string envId = response.Environments[0].EnvironmentId;

            string health = response.Environments[0].Health.Value;
            lblHealth.Text = Server.HtmlEncode(health);

            string status = response.Environments[0].Status.Value;
            lblStatus.Text = Server.HtmlEncode(status);

            if (Options == null)
            {
                Amazon.ElasticBeanstalk.Model.DescribeConfigurationOptionsRequest optReq = new Amazon.ElasticBeanstalk.Model.DescribeConfigurationOptionsRequest();
                optReq.EnvironmentName = envName;
                optReq.ApplicationName = req.ApplicationName;

                var optResp = client.DescribeConfigurationOptions(optReq);
                Options = optResp.Options;
            }

            Amazon.ElasticBeanstalk.Model.DescribeConfigurationSettingsRequest setReq = new Amazon.ElasticBeanstalk.Model.DescribeConfigurationSettingsRequest();
            setReq.ApplicationName = req.ApplicationName;
            setReq.EnvironmentName = envName;

            var setResp = client.DescribeConfigurationSettings(setReq);

            gvOptions.DataSource = setResp.ConfigurationSettings[0].OptionSettings.Where(x => x.OptionName == "MinSize" || x.OptionName == "MaxSize");
            gvOptions.DataBind();

            #region buttons

            if (status.ToLower() != "ready")
            {
                btnSet1.Visible = btnSet2.Visible = false;
            }
            else
            {
                int currentMinSize = Convert.ToInt32(setResp.ConfigurationSettings[0].OptionSettings.Where(x => x.OptionName == "MinSize").Single().Value);

                btnSet2.Visible = currentMinSize == 1;
                btnSet1.Visible = !btnSet2.Visible;
            }

            #endregion

            lblGenerated.Text = string.Format("Generated on {0: H:mm:ss}", DateTime.Now);
        }
    }
        /// <summary>
        /// <para> Returns a description of the settings for the specified configuration set, that is, either a configuration template or the
        /// configuration set associated with a running environment. </para> <para> When describing the settings for the configuration set associated
        /// with a running environment, it is possible to receive two sets of setting descriptions. One is the deployed configuration set, and the other
        /// is a draft configuration of an environment that is either in the process of deployment or that failed to deploy. </para> <para>Related
        /// Topics</para>
        /// <ul>
        /// <li> DeleteEnvironmentConfiguration </li>
        /// 
        /// </ul>
        /// </summary>
        /// 
        /// <param name="request">Container for the necessary parameters to execute the DescribeConfigurationSettings
        /// service method on AmazonElasticBeanstalk.</param>
        /// 
        /// <returns>The response from the DescribeConfigurationSettings service method, as returned by AmazonElasticBeanstalk.</returns>
		public DescribeConfigurationSettingsResponse DescribeConfigurationSettings(DescribeConfigurationSettingsRequest request)
        {
            var task = DescribeConfigurationSettingsAsync(request);
            try
            {
                return task.Result;
            }
            catch(AggregateException e)
            {
                throw e.InnerException;
            }
        }
        /// <summary>
        /// <para> Returns a description of the settings for the specified configuration set, that is, either a configuration template or the
        /// configuration set associated with a running environment. </para> <para> When describing the settings for the configuration set associated
        /// with a running environment, it is possible to receive two sets of setting descriptions. One is the deployed configuration set, and the other
        /// is a draft configuration of an environment that is either in the process of deployment or that failed to deploy. </para> <para>Related
        /// Topics</para>
        /// <ul>
        /// <li> DeleteEnvironmentConfiguration </li>
        /// 
        /// </ul>
        /// </summary>
        /// 
        /// <param name="describeConfigurationSettingsRequest">Container for the necessary parameters to execute the DescribeConfigurationSettings
        /// service method on AmazonElasticBeanstalk.</param>
        /// 
        /// <returns>The response from the DescribeConfigurationSettings service method, as returned by AmazonElasticBeanstalk.</returns>
        /// <param name="cancellationToken">
        ///     A cancellation token that can be used by other objects or threads to receive notice of cancellation.
        /// </param>
		public async Task<DescribeConfigurationSettingsResponse> DescribeConfigurationSettingsAsync(DescribeConfigurationSettingsRequest describeConfigurationSettingsRequest, CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller = new DescribeConfigurationSettingsRequestMarshaller();
            var unmarshaller = DescribeConfigurationSettingsResponseUnmarshaller.GetInstance();
            var response = await Invoke<IRequest, DescribeConfigurationSettingsRequest, DescribeConfigurationSettingsResponse>(describeConfigurationSettingsRequest, marshaller, unmarshaller, signer, cancellationToken)
                .ConfigureAwait(continueOnCapturedContext: false);
            return response;
        }