/// <summary> /// <para>Creates a configuration template. Templates are associated with a specific application and are used to deploy different versions of /// the application with the same configuration settings.</para> <para>Related Topics</para> /// <ul> /// <li> DescribeConfigurationOptions </li> /// <li> DescribeConfigurationSettings </li> /// <li> ListAvailableSolutionStacks </li> /// /// </ul> /// </summary> /// /// <param name="createConfigurationTemplateRequest">Container for the necessary parameters to execute the CreateConfigurationTemplate service /// method on AmazonElasticBeanstalk.</param> /// /// <returns>The response from the CreateConfigurationTemplate service method, as returned by AmazonElasticBeanstalk.</returns> /// /// <exception cref="TooManyConfigurationTemplatesException"/> public CreateConfigurationTemplateResponse CreateConfigurationTemplate(CreateConfigurationTemplateRequest createConfigurationTemplateRequest) { IRequest <CreateConfigurationTemplateRequest> request = new CreateConfigurationTemplateRequestMarshaller().Marshall(createConfigurationTemplateRequest); CreateConfigurationTemplateResponse response = Invoke <CreateConfigurationTemplateRequest, CreateConfigurationTemplateResponse> (request, this.signer, CreateConfigurationTemplateResponseUnmarshaller.GetInstance()); return(response); }
public void CreateConfigurationTemplateMarshallTest() { var operation = service_model.FindOperation("CreateConfigurationTemplate"); var request = InstantiateClassGenerator.Execute <CreateConfigurationTemplateRequest>(); var marshaller = new CreateConfigurationTemplateRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), false, null); var response = CreateConfigurationTemplateResponseUnmarshaller.Instance.Unmarshall(context) as CreateConfigurationTemplateResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
IAsyncResult invokeCreateConfigurationTemplate(CreateConfigurationTemplateRequest createConfigurationTemplateRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new CreateConfigurationTemplateRequestMarshaller().Marshall(createConfigurationTemplateRequest); var unmarshaller = CreateConfigurationTemplateResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return result; }
/// <summary> /// Initiates the asynchronous execution of the CreateConfigurationTemplate operation. /// <seealso cref="Amazon.ElasticBeanstalk.IAmazonElasticBeanstalk"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateConfigurationTemplate 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<CreateConfigurationTemplateResponse> CreateConfigurationTemplateAsync(CreateConfigurationTemplateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new CreateConfigurationTemplateRequestMarshaller(); var unmarshaller = CreateConfigurationTemplateResponseUnmarshaller.Instance; return InvokeAsync<CreateConfigurationTemplateRequest,CreateConfigurationTemplateResponse>(request, marshaller, unmarshaller, cancellationToken); }
internal CreateConfigurationTemplateResponse CreateConfigurationTemplate(CreateConfigurationTemplateRequest request) { var marshaller = new CreateConfigurationTemplateRequestMarshaller(); var unmarshaller = CreateConfigurationTemplateResponseUnmarshaller.Instance; return Invoke<CreateConfigurationTemplateRequest,CreateConfigurationTemplateResponse>(request, marshaller, unmarshaller); }
/// <summary> /// <para>Creates a configuration template. Templates are associated with a specific application and are used to deploy different versions of /// the application with the same configuration settings.</para> <para>Related Topics</para> /// <ul> /// <li> DescribeConfigurationOptions </li> /// <li> DescribeConfigurationSettings </li> /// <li> ListAvailableSolutionStacks </li> /// /// </ul> /// </summary> /// /// <param name="createConfigurationTemplateRequest">Container for the necessary parameters to execute the CreateConfigurationTemplate service /// method on AmazonElasticBeanstalk.</param> /// /// <returns>The response from the CreateConfigurationTemplate service method, as returned by AmazonElasticBeanstalk.</returns> /// /// <exception cref="TooManyConfigurationTemplatesException"/> public CreateConfigurationTemplateResponse CreateConfigurationTemplate(CreateConfigurationTemplateRequest createConfigurationTemplateRequest) { IRequest<CreateConfigurationTemplateRequest> request = new CreateConfigurationTemplateRequestMarshaller().Marshall(createConfigurationTemplateRequest); CreateConfigurationTemplateResponse response = Invoke<CreateConfigurationTemplateRequest, CreateConfigurationTemplateResponse> (request, this.signer, CreateConfigurationTemplateResponseUnmarshaller.GetInstance()); return response; }
public void CreateConfigurationTemplateMarshallTest() { var operation = service_model.FindOperation("CreateConfigurationTemplate"); var request = InstantiateClassGenerator.Execute<CreateConfigurationTemplateRequest>(); var marshaller = new CreateConfigurationTemplateRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), false, null); var response = CreateConfigurationTemplateResponseUnmarshaller.Instance.Unmarshall(context) as CreateConfigurationTemplateResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
/// <summary> /// <para>Creates a configuration template. Templates are associated with a specific application and are used to deploy different versions of /// the application with the same configuration settings.</para> <para>Related Topics</para> /// <ul> /// <li> DescribeConfigurationOptions </li> /// <li> DescribeConfigurationSettings </li> /// <li> ListAvailableSolutionStacks </li> /// /// </ul> /// </summary> /// /// <param name="createConfigurationTemplateRequest">Container for the necessary parameters to execute the CreateConfigurationTemplate service /// method on AmazonElasticBeanstalk.</param> /// /// <returns>The response from the CreateConfigurationTemplate service method, as returned by AmazonElasticBeanstalk.</returns> /// /// <exception cref="T:Amazon.ElasticBeanstalk.Model.InsufficientPrivilegesException" /> /// <exception cref="T:Amazon.ElasticBeanstalk.Model.TooManyConfigurationTemplatesException" /> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> public Task<CreateConfigurationTemplateResponse> CreateConfigurationTemplateAsync(CreateConfigurationTemplateRequest createConfigurationTemplateRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new CreateConfigurationTemplateRequestMarshaller(); var unmarshaller = CreateConfigurationTemplateResponseUnmarshaller.GetInstance(); return Invoke<IRequest, CreateConfigurationTemplateRequest, CreateConfigurationTemplateResponse>(createConfigurationTemplateRequest, marshaller, unmarshaller, signer, cancellationToken); }
/// <summary> /// Initiates the asynchronous execution of the CreateConfigurationTemplate operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateConfigurationTemplate 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 EndCreateConfigurationTemplate /// operation.</returns> public IAsyncResult BeginCreateConfigurationTemplate(CreateConfigurationTemplateRequest request, AsyncCallback callback, object state) { var marshaller = new CreateConfigurationTemplateRequestMarshaller(); var unmarshaller = CreateConfigurationTemplateResponseUnmarshaller.Instance; return BeginInvoke<CreateConfigurationTemplateRequest>(request, marshaller, unmarshaller, callback, state); }
IAsyncResult invokeCreateConfigurationTemplate(CreateConfigurationTemplateRequest request, AsyncCallback callback, object state, bool synchronized) { var marshaller = new CreateConfigurationTemplateRequestMarshaller(); var unmarshaller = CreateConfigurationTemplateResponseUnmarshaller.Instance; return Invoke(request, callback, state, synchronized, marshaller, unmarshaller, signer); }
/// <summary> /// <para>Creates a configuration template. Templates are associated with a specific application and are used to deploy different versions of /// the application with the same configuration settings.</para> <para>Related Topics</para> /// <ul> /// <li> DescribeConfigurationOptions </li> /// <li> DescribeConfigurationSettings </li> /// <li> ListAvailableSolutionStacks </li> /// /// </ul> /// </summary> /// /// <param name="createConfigurationTemplateRequest">Container for the necessary parameters to execute the CreateConfigurationTemplate service /// method on AmazonElasticBeanstalk.</param> /// /// <returns>The response from the CreateConfigurationTemplate service method, as returned by AmazonElasticBeanstalk.</returns> /// /// <exception cref="T:Amazon.ElasticBeanstalk.Model.InsufficientPrivilegesException" /> /// <exception cref="T:Amazon.ElasticBeanstalk.Model.TooManyConfigurationTemplatesException" /> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> public async Task<CreateConfigurationTemplateResponse> CreateConfigurationTemplateAsync(CreateConfigurationTemplateRequest createConfigurationTemplateRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new CreateConfigurationTemplateRequestMarshaller(); var unmarshaller = CreateConfigurationTemplateResponseUnmarshaller.GetInstance(); var response = await Invoke<IRequest, CreateConfigurationTemplateRequest, CreateConfigurationTemplateResponse>(createConfigurationTemplateRequest, marshaller, unmarshaller, signer, cancellationToken) .ConfigureAwait(continueOnCapturedContext: false); return response; }