Ejemplo n.º 1
0
        internal GetEventSourceResponse GetEventSource(GetEventSourceRequest request)
        {
            var marshaller   = new GetEventSourceRequestMarshaller();
            var unmarshaller = GetEventSourceResponseUnmarshaller.Instance;

            return(Invoke <GetEventSourceRequest, GetEventSourceResponse>(request, marshaller, unmarshaller));
        }
Ejemplo n.º 2
0
        /// <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));
        }
Ejemplo n.º 3
0
        /// <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));
        }