Amazon.CloudWatchLogs.AmazonCloudWatchLogsClient.GetLogEventsAsync C# (CSharp) Method

GetLogEventsAsync() public method

Initiates the asynchronous execution of the GetLogEvents operation.
public GetLogEventsAsync ( GetLogEventsRequest request, System cancellationToken = default(CancellationToken) ) : Task
request Amazon.CloudWatchLogs.Model.GetLogEventsRequest Container for the necessary parameters to execute the GetLogEvents operation.
cancellationToken System /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. ///
return Task
        public Task<GetLogEventsResponse> GetLogEventsAsync(GetLogEventsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller = new GetLogEventsRequestMarshaller();
            var unmarshaller = GetLogEventsResponseUnmarshaller.Instance;

            return InvokeAsync<GetLogEventsRequest,GetLogEventsResponse>(request, marshaller, 
                unmarshaller, cancellationToken);
        }
AmazonCloudWatchLogsClient