def remove_event_source(event_source, lambda_arn, target_function, boto_session, dry=False):
 (event_source_obj, ctx, funk) = get_event_source(event_source, lambda_arn, target_function, boto_session, dry=False)
 funk.arn = lambda_arn
 if (not dry):
  rule_response = event_source_obj.remove(funk)
  return rule_response
 else:
  return event_source_obj

def remove_event_source ( event_source , lambda_arn , target_function , boto_session , dry = False ) : ( event_source_obj , ctx , funk ) = get_event_source ( event_source , lambda_arn , target_function , boto_session , dry = False ) funk . arn = lambda_arn if ( not dry ) : rule_response = event_source_obj . remove ( funk ) return rule_response else : return event_source_obj
given an event_source dictionary .