# File lib/fog/aws/requests/lambda/delete_event_source_mapping.rb, line 24 def delete_event_source_mapping(params={}) mapping = self.get_event_source_mapping(params).body unless mapping message = "ResourceNotFoundException => " message << "The resource you requested does not exist." raise Fog::AWS::Lambda::Error, message end mapping_id = mapping['UUID'] self.data[:event_source_mappings].delete(mapping_id) mapping['State'] = 'Deleting' response = Excon::Response.new response.status = 202 response.body = mapping response end