Amazon.APIGateway.AmazonAPIGatewayClient.ImportRestApiAsync C# (CSharp) Method

ImportRestApiAsync() public method

Initiates the asynchronous execution of the ImportRestApi operation.
public ImportRestApiAsync ( ImportRestApiRequest request, System cancellationToken = default(CancellationToken) ) : Task
request Amazon.APIGateway.Model.ImportRestApiRequest Container for the necessary parameters to execute the ImportRestApi operation.
cancellationToken System /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. ///
return Task
        public Task<ImportRestApiResponse> ImportRestApiAsync(ImportRestApiRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller = new ImportRestApiRequestMarshaller();
            var unmarshaller = ImportRestApiResponseUnmarshaller.Instance;

            return InvokeAsync<ImportRestApiRequest,ImportRestApiResponse>(request, marshaller, 
                unmarshaller, cancellationToken);
        }
AmazonAPIGatewayClient