/// <summary> /// <para> Returns a full description of the launch configurations given the specified names. </para> <para> If no names are specified, then the /// full details of all launch configurations are returned. </para> /// </summary> /// /// <param name="describeLaunchConfigurationsRequest">Container for the necessary parameters to execute the DescribeLaunchConfigurations service /// method on AmazonAutoScaling.</param> /// /// <returns>The response from the DescribeLaunchConfigurations service method, as returned by AmazonAutoScaling.</returns> /// /// <exception cref="InvalidNextTokenException"/> public DescribeLaunchConfigurationsResponse DescribeLaunchConfigurations(DescribeLaunchConfigurationsRequest describeLaunchConfigurationsRequest) { IRequest <DescribeLaunchConfigurationsRequest> request = new DescribeLaunchConfigurationsRequestMarshaller().Marshall(describeLaunchConfigurationsRequest); DescribeLaunchConfigurationsResponse response = Invoke <DescribeLaunchConfigurationsRequest, DescribeLaunchConfigurationsResponse> (request, this.signer, DescribeLaunchConfigurationsResponseUnmarshaller.GetInstance()); return(response); }
public void DescribeLaunchConfigurationsMarshallTest() { var operation = service_model.FindOperation("DescribeLaunchConfigurations"); var request = InstantiateClassGenerator.Execute <DescribeLaunchConfigurationsRequest>(); var marshaller = new DescribeLaunchConfigurationsRequestMarshaller(); 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 = DescribeLaunchConfigurationsResponseUnmarshaller.Instance.Unmarshall(context) as DescribeLaunchConfigurationsResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
/// <summary> /// Initiates the asynchronous execution of the DescribeLaunchConfigurations operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeLaunchConfigurations 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<DescribeLaunchConfigurationsResponse> DescribeLaunchConfigurationsAsync(DescribeLaunchConfigurationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DescribeLaunchConfigurationsRequestMarshaller(); var unmarshaller = DescribeLaunchConfigurationsResponseUnmarshaller.Instance; return InvokeAsync<DescribeLaunchConfigurationsRequest,DescribeLaunchConfigurationsResponse>(request, marshaller, unmarshaller, cancellationToken); }
internal DescribeLaunchConfigurationsResponse DescribeLaunchConfigurations(DescribeLaunchConfigurationsRequest request) { var marshaller = new DescribeLaunchConfigurationsRequestMarshaller(); var unmarshaller = DescribeLaunchConfigurationsResponseUnmarshaller.Instance; return Invoke<DescribeLaunchConfigurationsRequest,DescribeLaunchConfigurationsResponse>(request, marshaller, unmarshaller); }
IAsyncResult invokeDescribeLaunchConfigurations(DescribeLaunchConfigurationsRequest describeLaunchConfigurationsRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new DescribeLaunchConfigurationsRequestMarshaller().Marshall(describeLaunchConfigurationsRequest); var unmarshaller = DescribeLaunchConfigurationsResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return result; }
/// <summary> /// Initiates the asynchronous execution of the DescribeLaunchConfigurations operation. /// <seealso cref="Amazon.AutoScaling.IAmazonAutoScaling.DescribeLaunchConfigurations"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeLaunchConfigurations 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<DescribeLaunchConfigurationsResponse> DescribeLaunchConfigurationsAsync(DescribeLaunchConfigurationsRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DescribeLaunchConfigurationsRequestMarshaller(); var unmarshaller = DescribeLaunchConfigurationsResponseUnmarshaller.GetInstance(); return Invoke<IRequest, DescribeLaunchConfigurationsRequest, DescribeLaunchConfigurationsResponse>(request, marshaller, unmarshaller, signer, cancellationToken); }
/// <summary> /// Initiates the asynchronous execution of the DescribeLaunchConfigurations operation. /// <seealso cref="Amazon.AutoScaling.IAmazonAutoScaling"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeLaunchConfigurations operation on AmazonAutoScalingClient.</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 EndDescribeLaunchConfigurations /// operation.</returns> public IAsyncResult BeginDescribeLaunchConfigurations(DescribeLaunchConfigurationsRequest request, AsyncCallback callback, object state) { var marshaller = new DescribeLaunchConfigurationsRequestMarshaller(); var unmarshaller = DescribeLaunchConfigurationsResponseUnmarshaller.Instance; return BeginInvoke<DescribeLaunchConfigurationsRequest>(request, marshaller, unmarshaller, callback, state); }
public void DescribeLaunchConfigurationsMarshallTest() { var operation = service_model.FindOperation("DescribeLaunchConfigurations"); var request = InstantiateClassGenerator.Execute<DescribeLaunchConfigurationsRequest>(); var marshaller = new DescribeLaunchConfigurationsRequestMarshaller(); 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 = DescribeLaunchConfigurationsResponseUnmarshaller.Instance.Unmarshall(context) as DescribeLaunchConfigurationsResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
/// <summary> /// <para> Returns a full description of the launch configurations, or the specified launch configurations, if they exist. </para> <para> If no /// name is specified, then the full details of all launch configurations are returned. </para> /// </summary> /// /// <param name="describeLaunchConfigurationsRequest">Container for the necessary parameters to execute the DescribeLaunchConfigurations service /// method on AmazonAutoScaling.</param> /// /// <returns>The response from the DescribeLaunchConfigurations service method, as returned by AmazonAutoScaling.</returns> /// /// <exception cref="InvalidNextTokenException"/> public DescribeLaunchConfigurationsResponse DescribeLaunchConfigurations(DescribeLaunchConfigurationsRequest describeLaunchConfigurationsRequest) { IRequest<DescribeLaunchConfigurationsRequest> request = new DescribeLaunchConfigurationsRequestMarshaller().Marshall(describeLaunchConfigurationsRequest); DescribeLaunchConfigurationsResponse response = Invoke<DescribeLaunchConfigurationsRequest, DescribeLaunchConfigurationsResponse> (request, this.signer, DescribeLaunchConfigurationsResponseUnmarshaller.GetInstance()); return response; }
/// <summary> /// Initiates the asynchronous execution of the DescribeLaunchConfigurations operation. /// <seealso cref="Amazon.AutoScaling.IAmazonAutoScaling.DescribeLaunchConfigurations"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeLaunchConfigurations 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 async Task<DescribeLaunchConfigurationsResponse> DescribeLaunchConfigurationsAsync(DescribeLaunchConfigurationsRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DescribeLaunchConfigurationsRequestMarshaller(); var unmarshaller = DescribeLaunchConfigurationsResponseUnmarshaller.GetInstance(); var response = await Invoke<IRequest, DescribeLaunchConfigurationsRequest, DescribeLaunchConfigurationsResponse>(request, marshaller, unmarshaller, signer, cancellationToken) .ConfigureAwait(continueOnCapturedContext: false); return response; }