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, return a list of mapping IDs
dataset/ETHPy150Open saltstack/salt/salt/modules/boto_lambda.py/get_event_source_mapping_ids