def event_source_mapping_exists(UUID=None, EventSourceArn=None, FunctionName=None, region=None, key=None, keyid=None, profile=None):
 desc = describe_event_source_mapping(UUID=UUID, EventSourceArn=EventSourceArn, FunctionName=FunctionName, region=region, key=key, keyid=keyid, profile=profile)
 if ('error' in desc):
  return desc
 return {'exists': bool(desc.get('event_source_mapping'))}

def event_source_mapping_exists ( UUID = None , EventSourceArn = None , FunctionName = None , region = None , key = None , keyid = None , profile = None ) : desc = describe_event_source_mapping ( UUID = UUID , EventSourceArn = EventSourceArn , FunctionName = FunctionName , region = region , key = key , keyid = keyid , profile = profile ) if ( 'error' in desc ) : return desc return { 'exists' : bool ( desc . get ( 'event_source_mapping' ) ) }
given an event source mapping id or an event source arn and functionname .