/// <summary>
        /// Initiates the asynchronous execution of the GetEventSource operation.
        /// </summary>
        /// 
        /// <param name="request">Container for the necessary parameters to execute the GetEventSource operation.</param>
        /// <param name="cancellationToken">
        ///     A cancellation token that can be used by other objects or threads to receive notice of cancellation.
        /// </param>
        /// <returns>The task object representing the asynchronous operation.</returns>
        public Task<GetEventSourceResponse> GetEventSourceAsync(GetEventSourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller = new GetEventSourceRequestMarshaller();
            var unmarshaller = GetEventSourceResponseUnmarshaller.Instance;

            return InvokeAsync<GetEventSourceRequest,GetEventSourceResponse>(request, marshaller, 
                unmarshaller, cancellationToken);
        }
        /// <summary>
        /// Initiates the asynchronous execution of the GetEventSource operation.
        /// </summary>
        /// 
        /// <param name="request">Container for the necessary parameters to execute the GetEventSource operation on AmazonLambdaClient.</param>
        /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
        /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
        ///          procedure using the AsyncState property.</param>
        /// 
        /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetEventSource
        ///         operation.</returns>
        public IAsyncResult BeginGetEventSource(GetEventSourceRequest request, AsyncCallback callback, object state)
        {
            var marshaller = new GetEventSourceRequestMarshaller();
            var unmarshaller = GetEventSourceResponseUnmarshaller.Instance;

            return BeginInvoke<GetEventSourceRequest>(request, marshaller, unmarshaller,
                callback, state);
        }
        internal GetEventSourceResponse GetEventSource(GetEventSourceRequest request)
        {
            var marshaller = new GetEventSourceRequestMarshaller();
            var unmarshaller = GetEventSourceResponseUnmarshaller.Instance;

            return Invoke<GetEventSourceRequest,GetEventSourceResponse>(request, marshaller, unmarshaller);
        }
 /// <summary>
 /// Returns configuration information for the specified event source mapping (see <a>AddEventSource</a>).
 /// 
 ///  
 /// <para>
 /// This operation requires permission for the <code>lambda:GetEventSource</code> action.
 /// </para>
 /// </summary>
 /// <param name="uuid">The AWS Lambda assigned ID of the event source mapping.</param>
 /// 
 /// <returns>The response from the GetEventSource service method, as returned by Lambda.</returns>
 /// <exception cref="Amazon.Lambda.Model.InvalidParameterValueException">
 /// One of the parameters in the request is invalid. For example, if you provided an IAM
 /// role for AWS Lambda to assume in the <code>UploadFunction</code> or the <code>UpdateFunctionConfiguration</code>
 /// API, that AWS Lambda is unable to assume you will get this exception.
 /// </exception>
 /// <exception cref="Amazon.Lambda.Model.ResourceNotFoundException">
 /// The function or the event source specified in the request does not exist.
 /// </exception>
 /// <exception cref="Amazon.Lambda.Model.ServiceException">
 /// The AWS Lambda service encountered an internal error.
 /// </exception>
 public GetEventSourceResponse GetEventSource(string uuid)
 {
     var request = new GetEventSourceRequest();
     request.UUID = uuid;
     return GetEventSource(request);
 }