/// <summary> /// Initiates the asynchronous execution of the DeleteVpnGateway operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteVpnGateway 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<DeleteVpnGatewayResponse> DeleteVpnGatewayAsync(DeleteVpnGatewayRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DeleteVpnGatewayRequestMarshaller(); var unmarshaller = DeleteVpnGatewayResponseUnmarshaller.Instance; return InvokeAsync<DeleteVpnGatewayRequest,DeleteVpnGatewayResponse>(request, marshaller, unmarshaller, cancellationToken); }
public void DeleteVpnGatewayMarshallTest() { var operation = service_model.FindOperation("DeleteVpnGateway"); var request = InstantiateClassGenerator.Execute<DeleteVpnGatewayRequest>(); var marshaller = new DeleteVpnGatewayRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); }
/// <summary> /// Deletes the specified virtual private gateway. We recommend that before you delete /// a virtual private gateway, you detach it from the VPC and delete the VPN connection. /// Note that you don't need to delete the virtual private gateway if you plan to delete /// and recreate the VPN connection between your VPC and your network. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteVpnGateway service method.</param> /// /// <returns>The response from the DeleteVpnGateway service method, as returned by EC2.</returns> public DeleteVpnGatewayResponse DeleteVpnGateway(DeleteVpnGatewayRequest request) { var marshaller = new DeleteVpnGatewayRequestMarshaller(); var unmarshaller = DeleteVpnGatewayResponseUnmarshaller.Instance; return Invoke<DeleteVpnGatewayRequest,DeleteVpnGatewayResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Initiates the asynchronous execution of the DeleteVpnGateway operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteVpnGateway 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 EndDeleteVpnGateway /// operation.</returns> public IAsyncResult BeginDeleteVpnGateway(DeleteVpnGatewayRequest request, AsyncCallback callback, object state) { var marshaller = new DeleteVpnGatewayRequestMarshaller(); var unmarshaller = DeleteVpnGatewayResponseUnmarshaller.Instance; return BeginInvoke<DeleteVpnGatewayRequest>(request, marshaller, unmarshaller, callback, state); }
IAsyncResult invokeDeleteVpnGateway(DeleteVpnGatewayRequest deleteVpnGatewayRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new DeleteVpnGatewayRequestMarshaller().Marshall(deleteVpnGatewayRequest); var unmarshaller = DeleteVpnGatewayResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return result; }
/// <summary> /// <para>Deletes the specified virtual private gateway. We recommend that before you delete a virtual private gateway, you detach it from the /// VPC and delete the VPN connection. Note that you don't need to delete the virtual private gateway if you plan to delete and recreate the VPN /// connection between your VPC and your network.</para> /// </summary> /// /// <param name="deleteVpnGatewayRequest">Container for the necessary parameters to execute the DeleteVpnGateway 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<DeleteVpnGatewayResponse> DeleteVpnGatewayAsync(DeleteVpnGatewayRequest deleteVpnGatewayRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DeleteVpnGatewayRequestMarshaller(); var unmarshaller = DeleteVpnGatewayResponseUnmarshaller.GetInstance(); return Invoke<IRequest, DeleteVpnGatewayRequest, DeleteVpnGatewayResponse>(deleteVpnGatewayRequest, marshaller, unmarshaller, signer, cancellationToken); }
/// <summary> /// Initiates the asynchronous execution of the DeleteVpnGateway operation. /// <seealso cref="Amazon.EC2.IAmazonEC2.DeleteVpnGateway"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteVpnGateway 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<DeleteVpnGatewayResponse> DeleteVpnGatewayAsync(DeleteVpnGatewayRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DeleteVpnGatewayRequestMarshaller(); var unmarshaller = DeleteVpnGatewayResponseUnmarshaller.GetInstance(); var response = await Invoke<IRequest, DeleteVpnGatewayRequest, DeleteVpnGatewayResponse>(request, marshaller, unmarshaller, signer, cancellationToken) .ConfigureAwait(continueOnCapturedContext: false); return response; }