/// <summary> /// <para> Describes the configuration options that are used in a particular configuration template or environment, or that a specified solution /// stack defines. The description includes the values the options, their default values, and an indication of the required action on a running /// environment if an option value is changed. </para> /// </summary> /// /// <param name="describeConfigurationOptionsRequest">Container for the necessary parameters to execute the DescribeConfigurationOptions service /// method on AmazonElasticBeanstalk.</param> /// /// <returns>The response from the DescribeConfigurationOptions service method, as returned by AmazonElasticBeanstalk.</returns> /// public DescribeConfigurationOptionsResponse DescribeConfigurationOptions(DescribeConfigurationOptionsRequest describeConfigurationOptionsRequest) { IRequest <DescribeConfigurationOptionsRequest> request = new DescribeConfigurationOptionsRequestMarshaller().Marshall(describeConfigurationOptionsRequest); DescribeConfigurationOptionsResponse response = Invoke <DescribeConfigurationOptionsRequest, DescribeConfigurationOptionsResponse> (request, this.signer, DescribeConfigurationOptionsResponseUnmarshaller.GetInstance()); return(response); }
private static void UnmarshallResult(XmlUnmarshallerContext context, DescribeConfigurationOptionsResponse response) { int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) { targetDepth += 2; } while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("Options/member", targetDepth)) { var unmarshaller = ConfigurationOptionDescriptionUnmarshaller.Instance; var item = unmarshaller.Unmarshall(context); response.Options.Add(item); continue; } if (context.TestExpression("SolutionStackName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.SolutionStackName = unmarshaller.Unmarshall(context); continue; } } } return; }
/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) { DescribeConfigurationOptionsResponse response = new DescribeConfigurationOptionsResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.IsStartElement) { if (context.TestExpression("DescribeConfigurationOptionsResult", 2)) { UnmarshallResult(context, response); continue; } if (context.TestExpression("ResponseMetadata", 2)) { response.ResponseMetadata = ResponseMetadataUnmarshaller.Instance.Unmarshall(context); } } } return(response); }
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); DescribeConfigurationOptionsResponse resp = new DescribeConfigurationOptionsResponse(); DescribeConfigurationOptionsRequest req = new DescribeConfigurationOptionsRequest { }; resp = client.DescribeConfigurationOptions(req); CheckError(resp.HttpStatusCode, "200"); foreach (var obj in resp.Options) { AddObject(obj); } }
public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) { DescribeConfigurationOptionsResponse response = new DescribeConfigurationOptionsResponse(); while (context.Read()) { if (context.IsStartElement) { if (context.TestExpression("DescribeConfigurationOptionsResult", 2)) { response.DescribeConfigurationOptionsResult = DescribeConfigurationOptionsResultUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("ResponseMetadata", 2)) { response.ResponseMetadata = ResponseMetadataUnmarshaller.GetInstance().Unmarshall(context); } } } return(response); }
private static void UnmarshallResult(XmlUnmarshallerContext context, DescribeConfigurationOptionsResponse response) { int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) { targetDepth += 2; } while (context.Read()) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("SolutionStackName", targetDepth)) { response.SolutionStackName = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("Options/member", targetDepth)) { response.Options.Add(ConfigurationOptionDescriptionUnmarshaller.GetInstance().Unmarshall(context)); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return; } } return; }