/// <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); }
/// <summary> /// Initiates the asynchronous execution of the RemoveEventSource operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the RemoveEventSource 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 EndRemoveEventSource /// operation.</returns> public IAsyncResult BeginRemoveEventSource(RemoveEventSourceRequest request, AsyncCallback callback, object state) { var marshaller = new RemoveEventSourceRequestMarshaller(); var unmarshaller = RemoveEventSourceResponseUnmarshaller.Instance; return BeginInvoke<RemoveEventSourceRequest>(request, marshaller, unmarshaller, callback, state); }
internal RemoveEventSourceResponse RemoveEventSource(RemoveEventSourceRequest request) { var marshaller = new RemoveEventSourceRequestMarshaller(); var unmarshaller = RemoveEventSourceResponseUnmarshaller.Instance; return Invoke<RemoveEventSourceRequest,RemoveEventSourceResponse>(request, marshaller, unmarshaller); }
/// <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); }