/// <summary> /// Initiates the asynchronous execution of the DetachInternetGateway operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DetachInternetGateway 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<DetachInternetGatewayResponse> DetachInternetGatewayAsync(DetachInternetGatewayRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DetachInternetGatewayRequestMarshaller(); var unmarshaller = DetachInternetGatewayResponseUnmarshaller.Instance; return InvokeAsync<DetachInternetGatewayRequest,DetachInternetGatewayResponse>(request, marshaller, unmarshaller, cancellationToken); }
public void DetachInternetGatewayMarshallTest() { var operation = service_model.FindOperation("DetachInternetGateway"); var request = InstantiateClassGenerator.Execute<DetachInternetGatewayRequest>(); var marshaller = new DetachInternetGatewayRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); }
/// <summary> /// Detaches an Internet gateway from a VPC, disabling connectivity between the Internet /// and the VPC. The VPC must not contain any running instances with Elastic IP addresses. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DetachInternetGateway service method.</param> /// /// <returns>The response from the DetachInternetGateway service method, as returned by EC2.</returns> public DetachInternetGatewayResponse DetachInternetGateway(DetachInternetGatewayRequest request) { var marshaller = new DetachInternetGatewayRequestMarshaller(); var unmarshaller = DetachInternetGatewayResponseUnmarshaller.Instance; return Invoke<DetachInternetGatewayRequest,DetachInternetGatewayResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Initiates the asynchronous execution of the DetachInternetGateway operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DetachInternetGateway 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 EndDetachInternetGateway /// operation.</returns> public IAsyncResult BeginDetachInternetGateway(DetachInternetGatewayRequest request, AsyncCallback callback, object state) { var marshaller = new DetachInternetGatewayRequestMarshaller(); var unmarshaller = DetachInternetGatewayResponseUnmarshaller.Instance; return BeginInvoke<DetachInternetGatewayRequest>(request, marshaller, unmarshaller, callback, state); }
IAsyncResult invokeDetachInternetGateway(DetachInternetGatewayRequest detachInternetGatewayRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new DetachInternetGatewayRequestMarshaller().Marshall(detachInternetGatewayRequest); var unmarshaller = DetachInternetGatewayResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return result; }
/// <summary> /// <para>Detaches an Internet gateway from a VPC, disabling connectivity between the Internet and the VPC. The VPC must not contain any running /// instances with Elastic IP addresses.</para> /// </summary> /// /// <param name="detachInternetGatewayRequest">Container for the necessary parameters to execute the DetachInternetGateway 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<DetachInternetGatewayResponse> DetachInternetGatewayAsync(DetachInternetGatewayRequest detachInternetGatewayRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DetachInternetGatewayRequestMarshaller(); var unmarshaller = DetachInternetGatewayResponseUnmarshaller.GetInstance(); return Invoke<IRequest, DetachInternetGatewayRequest, DetachInternetGatewayResponse>(detachInternetGatewayRequest, marshaller, unmarshaller, signer, cancellationToken); }
/// <summary> /// Initiates the asynchronous execution of the DetachInternetGateway operation. /// <seealso cref="Amazon.EC2.IAmazonEC2.DetachInternetGateway"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DetachInternetGateway 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<DetachInternetGatewayResponse> DetachInternetGatewayAsync(DetachInternetGatewayRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DetachInternetGatewayRequestMarshaller(); var unmarshaller = DetachInternetGatewayResponseUnmarshaller.GetInstance(); var response = await Invoke<IRequest, DetachInternetGatewayRequest, DetachInternetGatewayResponse>(request, marshaller, unmarshaller, signer, cancellationToken) .ConfigureAwait(continueOnCapturedContext: false); return response; }