def get_event_source_mapping_ids(EventSourceArn, FunctionName, region=None, key=None, keyid=None, profile=None):
 conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile)
 try:
  mappings = []
  for maps in salt.utils.boto3.paged_call(conn.list_event_source_mappings, EventSourceArn=EventSourceArn, FunctionName=FunctionName):
   mappings.extend([mapping['UUID'] for mapping in maps['EventSourceMappings']])
  return mappings
 except ClientError as e:
  return {'error': salt.utils.boto3.get_error(e)}

def get_event_source_mapping_ids ( EventSourceArn , FunctionName , region = None , key = None , keyid = None , profile = None ) : conn = _get_conn ( region = region , key = key , keyid = keyid , profile = profile ) try : mappings = [ ] for maps in salt . utils . boto3 . paged_call ( conn . list_event_source_mappings , EventSourceArn = EventSourceArn , FunctionName = FunctionName ) : mappings . extend ( [ mapping [ 'UUID' ] for mapping in maps [ 'EventSourceMappings' ] ] ) return mappings except ClientError as e : return { 'error' : salt . utils . boto3 . get_error ( e ) }
given an event source and function name .