/// <summary> /// Initiates the asynchronous execution of the DetachVpnGateway operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DetachVpnGateway 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<DetachVpnGatewayResponse> DetachVpnGatewayAsync(DetachVpnGatewayRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DetachVpnGatewayRequestMarshaller(); var unmarshaller = DetachVpnGatewayResponseUnmarshaller.Instance; return InvokeAsync<DetachVpnGatewayRequest,DetachVpnGatewayResponse>(request, marshaller, unmarshaller, cancellationToken); }
public void DetachVpnGatewayMarshallTest() { var operation = service_model.FindOperation("DetachVpnGateway"); var request = InstantiateClassGenerator.Execute<DetachVpnGatewayRequest>(); var marshaller = new DetachVpnGatewayRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); }
/// <summary> /// Detaches a virtual private gateway from a VPC. You do this if you're planning to turn /// off the VPC and not use it anymore. You can confirm a virtual private gateway has /// been completely detached from a VPC by describing the virtual private gateway (any /// attachments to the virtual private gateway are also described). /// /// /// <para> /// You must wait for the attachment's state to switch to <code>detached</code> before /// you can delete the VPC or attach a different VPC to the virtual private gateway. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DetachVpnGateway service method.</param> /// /// <returns>The response from the DetachVpnGateway service method, as returned by EC2.</returns> public DetachVpnGatewayResponse DetachVpnGateway(DetachVpnGatewayRequest request) { var marshaller = new DetachVpnGatewayRequestMarshaller(); var unmarshaller = DetachVpnGatewayResponseUnmarshaller.Instance; return Invoke<DetachVpnGatewayRequest,DetachVpnGatewayResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Initiates the asynchronous execution of the DetachVpnGateway operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DetachVpnGateway operation on AmazonEC2Client.</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 EndDetachVpnGateway /// operation.</returns> public IAsyncResult BeginDetachVpnGateway(DetachVpnGatewayRequest request, AsyncCallback callback, object state) { var marshaller = new DetachVpnGatewayRequestMarshaller(); var unmarshaller = DetachVpnGatewayResponseUnmarshaller.Instance; return BeginInvoke<DetachVpnGatewayRequest>(request, marshaller, unmarshaller, callback, state); }
IAsyncResult invokeDetachVpnGateway(DetachVpnGatewayRequest detachVpnGatewayRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new DetachVpnGatewayRequestMarshaller().Marshall(detachVpnGatewayRequest); var unmarshaller = DetachVpnGatewayResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return result; }
/// <summary> /// <para>Detaches a virtual private gateway from a VPC. You do this if you're planning to turn off the VPC and not use it anymore. You can /// confirm a virtual private gateway has been completely detached from a VPC by describing the virtual private gateway (any attachments to the /// virtual private gateway are also described).</para> <para>You must wait for the attachment's state to switch to <c>detached</c> before you /// can delete the VPC or attach a different VPC to the virtual private gateway.</para> /// </summary> /// /// <param name="detachVpnGatewayRequest">Container for the necessary parameters to execute the DetachVpnGateway service method on /// AmazonEC2.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> public Task<DetachVpnGatewayResponse> DetachVpnGatewayAsync(DetachVpnGatewayRequest detachVpnGatewayRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DetachVpnGatewayRequestMarshaller(); var unmarshaller = DetachVpnGatewayResponseUnmarshaller.GetInstance(); return Invoke<IRequest, DetachVpnGatewayRequest, DetachVpnGatewayResponse>(detachVpnGatewayRequest, marshaller, unmarshaller, signer, cancellationToken); }
/// <summary> /// Initiates the asynchronous execution of the DetachVpnGateway operation. /// <seealso cref="Amazon.EC2.IAmazonEC2.DetachVpnGateway"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DetachVpnGateway 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<DetachVpnGatewayResponse> DetachVpnGatewayAsync(DetachVpnGatewayRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DetachVpnGatewayRequestMarshaller(); var unmarshaller = DetachVpnGatewayResponseUnmarshaller.GetInstance(); var response = await Invoke<IRequest, DetachVpnGatewayRequest, DetachVpnGatewayResponse>(request, marshaller, unmarshaller, signer, cancellationToken) .ConfigureAwait(continueOnCapturedContext: false); return response; }