Amazon.Lambda.AmazonLambdaClient.CreateEventSourceMappingAsync C# (CSharp) Method

CreateEventSourceMappingAsync() public method

Initiates the asynchronous execution of the CreateEventSourceMapping operation.
public CreateEventSourceMappingAsync ( CreateEventSourceMappingRequest request, System cancellationToken = default(CancellationToken) ) : Task
request Amazon.Lambda.Model.CreateEventSourceMappingRequest Container for the necessary parameters to execute the CreateEventSourceMapping operation.
cancellationToken System /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. ///
return Task
        public Task<CreateEventSourceMappingResponse> CreateEventSourceMappingAsync(CreateEventSourceMappingRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller = new CreateEventSourceMappingRequestMarshaller();
            var unmarshaller = CreateEventSourceMappingResponseUnmarshaller.Instance;

            return InvokeAsync<CreateEventSourceMappingRequest,CreateEventSourceMappingResponse>(request, marshaller, 
                unmarshaller, cancellationToken);
        }

Same methods

AmazonLambdaClient::CreateEventSourceMappingAsync ( CreateEventSourceMappingRequest request, CreateEventSourceMappingResponse>.AmazonServiceCallback callback, AsyncOptions options = null ) : void
AmazonLambdaClient