in functions/source/attributes-updater/handler.py [0:0]
def get_mapping(event, mappings):
if not event['type'] == 'lifecycle':
return None
mapping = [x for x in mappings if x['Type'] == event['reading']['et']]
return mapping[0] if len(mapping) else None