Пример #1
0
        internal RemoveEventSourceResponse RemoveEventSource(RemoveEventSourceRequest request)
        {
            var marshaller   = new RemoveEventSourceRequestMarshaller();
            var unmarshaller = RemoveEventSourceResponseUnmarshaller.Instance;

            return(Invoke <RemoveEventSourceRequest, RemoveEventSourceResponse>(request, marshaller, unmarshaller));
        }
Пример #2
0
        /// <summary>
        /// Removes an event source mapping. This means AWS Lambda will no longer invoke the function
        /// for events in the associated source.
        ///
        ///
        /// <para>
        /// This operation requires permission for the <code>lambda:RemoveEventSource</code> action.
        /// </para>
        /// </summary>
        /// <param name="uuid">The event source mapping ID.</param>
        ///
        /// <returns>The response from the RemoveEventSource 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 RemoveEventSourceResponse RemoveEventSource(string uuid)
        {
            var request = new RemoveEventSourceRequest();

            request.UUID = uuid;
            return(RemoveEventSource(request));
        }
Пример #3
0
        /// <summary>
        /// Initiates the asynchronous execution of the RemoveEventSource operation.
        /// </summary>
        ///
        /// <param name="request">Container for the necessary parameters to execute the RemoveEventSource 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 <RemoveEventSourceResponse> RemoveEventSourceAsync(RemoveEventSourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller   = new RemoveEventSourceRequestMarshaller();
            var unmarshaller = RemoveEventSourceResponseUnmarshaller.Instance;

            return(InvokeAsync <RemoveEventSourceRequest, RemoveEventSourceResponse>(request, marshaller,
                                                                                     unmarshaller, cancellationToken));
        }