def delete_event_source_mapping(UUID=None, EventSourceArn=None, FunctionName=None, region=None, key=None, keyid=None, profile=None):
 ids = _get_ids(UUID, EventSourceArn=EventSourceArn, FunctionName=FunctionName)
 try:
  conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile)
  for id in ids:
   conn.delete_event_source_mapping(UUID=id)
  return {'deleted': True}
 except ClientError as e:
  return {'deleted': False, 'error': salt.utils.boto3.get_error(e)}

def delete_event_source_mapping ( UUID = None , EventSourceArn = None , FunctionName = None , region = None , key = None , keyid = None , profile = None ) : ids = _get_ids ( UUID , EventSourceArn = EventSourceArn , FunctionName = FunctionName ) try : conn = _get_conn ( region = region , key = key , keyid = keyid , profile = profile ) for id in ids : conn . delete_event_source_mapping ( UUID = id ) return { 'deleted' : True } except ClientError as e : return { 'deleted' : False , 'error' : salt . utils . boto3 . get_error ( e ) }
given an event source mapping id or an event source arn and functionname .