Amazon.EC2.AmazonEC2Client.CreateVpnGatewayAsync C# (CSharp) Method

CreateVpnGatewayAsync() public method

Initiates the asynchronous execution of the CreateVpnGateway operation.
public CreateVpnGatewayAsync ( CreateVpnGatewayRequest request, System cancellationToken = default(CancellationToken) ) : Task
request CreateVpnGatewayRequest Container for the necessary parameters to execute the CreateVpnGateway operation.
cancellationToken System /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. ///
return Task
        public Task<CreateVpnGatewayResponse> CreateVpnGatewayAsync(CreateVpnGatewayRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller = new CreateVpnGatewayRequestMarshaller();
            var unmarshaller = CreateVpnGatewayResponseUnmarshaller.Instance;

            return InvokeAsync<CreateVpnGatewayRequest,CreateVpnGatewayResponse>(request, marshaller, 
                unmarshaller, cancellationToken);
        }
AmazonEC2Client