/// <summary> /// Initiates the asynchronous execution of the EnableVgwRoutePropagation operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the EnableVgwRoutePropagation 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<EnableVgwRoutePropagationResponse> EnableVgwRoutePropagationAsync(EnableVgwRoutePropagationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new EnableVgwRoutePropagationRequestMarshaller(); var unmarshaller = EnableVgwRoutePropagationResponseUnmarshaller.Instance; return InvokeAsync<EnableVgwRoutePropagationRequest,EnableVgwRoutePropagationResponse>(request, marshaller, unmarshaller, cancellationToken); }
public void EnableVgwRoutePropagationMarshallTest() { var operation = service_model.FindOperation("EnableVgwRoutePropagation"); var request = InstantiateClassGenerator.Execute<EnableVgwRoutePropagationRequest>(); var marshaller = new EnableVgwRoutePropagationRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); }
/// <summary> /// Enables a virtual private gateway (VGW) to propagate routes to the specified route /// table of a VPC. /// </summary> /// <param name="request">Container for the necessary parameters to execute the EnableVgwRoutePropagation service method.</param> /// /// <returns>The response from the EnableVgwRoutePropagation service method, as returned by EC2.</returns> public EnableVgwRoutePropagationResponse EnableVgwRoutePropagation(EnableVgwRoutePropagationRequest request) { var marshaller = new EnableVgwRoutePropagationRequestMarshaller(); var unmarshaller = EnableVgwRoutePropagationResponseUnmarshaller.Instance; return Invoke<EnableVgwRoutePropagationRequest,EnableVgwRoutePropagationResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Initiates the asynchronous execution of the EnableVgwRoutePropagation operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the EnableVgwRoutePropagation 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 EndEnableVgwRoutePropagation /// operation.</returns> public IAsyncResult BeginEnableVgwRoutePropagation(EnableVgwRoutePropagationRequest request, AsyncCallback callback, object state) { var marshaller = new EnableVgwRoutePropagationRequestMarshaller(); var unmarshaller = EnableVgwRoutePropagationResponseUnmarshaller.Instance; return BeginInvoke<EnableVgwRoutePropagationRequest>(request, marshaller, unmarshaller, callback, state); }
IAsyncResult invokeEnableVgwRoutePropagation(EnableVgwRoutePropagationRequest enableVgwRoutePropagationRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new EnableVgwRoutePropagationRequestMarshaller().Marshall(enableVgwRoutePropagationRequest); var unmarshaller = EnableVgwRoutePropagationResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return result; }
/// <summary> /// <para>Enables a virtual private gateway (VGW) to propagate routes to the routing tables of a VPC.</para> /// </summary> /// /// <param name="enableVgwRoutePropagationRequest">Container for the necessary parameters to execute the EnableVgwRoutePropagation 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<EnableVgwRoutePropagationResponse> EnableVgwRoutePropagationAsync(EnableVgwRoutePropagationRequest enableVgwRoutePropagationRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new EnableVgwRoutePropagationRequestMarshaller(); var unmarshaller = EnableVgwRoutePropagationResponseUnmarshaller.GetInstance(); return Invoke<IRequest, EnableVgwRoutePropagationRequest, EnableVgwRoutePropagationResponse>(enableVgwRoutePropagationRequest, marshaller, unmarshaller, signer, cancellationToken); }
/// <summary> /// Initiates the asynchronous execution of the EnableVgwRoutePropagation operation. /// <seealso cref="Amazon.EC2.IAmazonEC2.EnableVgwRoutePropagation"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the EnableVgwRoutePropagation 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<EnableVgwRoutePropagationResponse> EnableVgwRoutePropagationAsync(EnableVgwRoutePropagationRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new EnableVgwRoutePropagationRequestMarshaller(); var unmarshaller = EnableVgwRoutePropagationResponseUnmarshaller.GetInstance(); var response = await Invoke<IRequest, EnableVgwRoutePropagationRequest, EnableVgwRoutePropagationResponse>(request, marshaller, unmarshaller, signer, cancellationToken) .ConfigureAwait(continueOnCapturedContext: false); return response; }