/// <summary> /// Initiates the asynchronous execution of the CreateVpnConnectionRoute operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateVpnConnectionRoute 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<CreateVpnConnectionRouteResponse> CreateVpnConnectionRouteAsync(CreateVpnConnectionRouteRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new CreateVpnConnectionRouteRequestMarshaller(); var unmarshaller = CreateVpnConnectionRouteResponseUnmarshaller.Instance; return InvokeAsync<CreateVpnConnectionRouteRequest,CreateVpnConnectionRouteResponse>(request, marshaller, unmarshaller, cancellationToken); }
public void CreateVpnConnectionRouteMarshallTest() { var operation = service_model.FindOperation("CreateVpnConnectionRoute"); var request = InstantiateClassGenerator.Execute<CreateVpnConnectionRouteRequest>(); var marshaller = new CreateVpnConnectionRouteRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); }
/// <summary> /// Creates a static route associated with a VPN connection between an existing virtual /// private gateway and a VPN customer gateway. The static route allows traffic to be /// routed from the virtual private gateway to the VPN customer gateway. /// /// /// <para> /// For more information about VPN connections, see <a href="http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_VPN.html">Adding /// a Hardware Virtual Private Gateway to Your VPC</a> in the <i>Amazon Virtual Private /// Cloud User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateVpnConnectionRoute service method.</param> /// /// <returns>The response from the CreateVpnConnectionRoute service method, as returned by EC2.</returns> public CreateVpnConnectionRouteResponse CreateVpnConnectionRoute(CreateVpnConnectionRouteRequest request) { var marshaller = new CreateVpnConnectionRouteRequestMarshaller(); var unmarshaller = CreateVpnConnectionRouteResponseUnmarshaller.Instance; return Invoke<CreateVpnConnectionRouteRequest,CreateVpnConnectionRouteResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Initiates the asynchronous execution of the CreateVpnConnectionRoute operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateVpnConnectionRoute 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 EndCreateVpnConnectionRoute /// operation.</returns> public IAsyncResult BeginCreateVpnConnectionRoute(CreateVpnConnectionRouteRequest request, AsyncCallback callback, object state) { var marshaller = new CreateVpnConnectionRouteRequestMarshaller(); var unmarshaller = CreateVpnConnectionRouteResponseUnmarshaller.Instance; return BeginInvoke<CreateVpnConnectionRouteRequest>(request, marshaller, unmarshaller, callback, state); }
IAsyncResult invokeCreateVpnConnectionRoute(CreateVpnConnectionRouteRequest createVpnConnectionRouteRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new CreateVpnConnectionRouteRequestMarshaller().Marshall(createVpnConnectionRouteRequest); var unmarshaller = CreateVpnConnectionRouteResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return result; }
/// <summary> /// <para>Creates a static route associated with a VPN connection between an existing virtual private gateway and a VPN customer gateway. The /// static route allows traffic to be routed from the virtual private gateway to the VPN customer gateway.</para> <para>For more information /// about VPN connections, see <a href="http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_VPN.html">Adding a Hardware Virtual Private /// Gateway to Your VPC</a> in the <i>Amazon Virtual Private Cloud User Guide</i> .</para> /// </summary> /// /// <param name="createVpnConnectionRouteRequest">Container for the necessary parameters to execute the CreateVpnConnectionRoute 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<CreateVpnConnectionRouteResponse> CreateVpnConnectionRouteAsync(CreateVpnConnectionRouteRequest createVpnConnectionRouteRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new CreateVpnConnectionRouteRequestMarshaller(); var unmarshaller = CreateVpnConnectionRouteResponseUnmarshaller.GetInstance(); return Invoke<IRequest, CreateVpnConnectionRouteRequest, CreateVpnConnectionRouteResponse>(createVpnConnectionRouteRequest, marshaller, unmarshaller, signer, cancellationToken); }
/// <summary> /// Initiates the asynchronous execution of the CreateVpnConnectionRoute operation. /// <seealso cref="Amazon.EC2.IAmazonEC2.CreateVpnConnectionRoute"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateVpnConnectionRoute 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<CreateVpnConnectionRouteResponse> CreateVpnConnectionRouteAsync(CreateVpnConnectionRouteRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new CreateVpnConnectionRouteRequestMarshaller(); var unmarshaller = CreateVpnConnectionRouteResponseUnmarshaller.GetInstance(); var response = await Invoke<IRequest, CreateVpnConnectionRouteRequest, CreateVpnConnectionRouteResponse>(request, marshaller, unmarshaller, signer, cancellationToken) .ConfigureAwait(continueOnCapturedContext: false); return response; }