def METHOD_NAME(cls, event):
    """Match a given cwe event as cloudtrail with an api call
    That has its information filled out.
    """
    if 'detail' not in event:
        return False
    if 'eventName' not in event['detail']:
        return False
    k = event['detail']['eventName']
    # We want callers to use a compiled expression, but want to avoid
    # initialization cost of doing it without cause. Not thread safe,
    # but usage context is lambda entry.
    if k in cls.trail_events:
        v = dict(cls.trail_events[k])
        if isinstance(v['ids'], str):
            v['ids'] = e = jmespath_compile('detail.%s' % v['ids'])
            cls.trail_events[k]['ids'] = e
        return v
    return False