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

CreateNatGatewayAsync() public method

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

            return InvokeAsync<CreateNatGatewayRequest,CreateNatGatewayResponse>(request, marshaller, 
                unmarshaller, cancellationToken);
        }
AmazonEC2Client