def update_event_source_mapping(UUID, FunctionName=None, Enabled=None, BatchSize=None, region=None, key=None, keyid=None, profile=None):
 try:
  conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile)
  args = {}
  if (FunctionName is not None):
   args['FunctionName'] = FunctionName
  if (Enabled is not None):
   args['Enabled'] = Enabled
  if (BatchSize is not None):
   args['BatchSize'] = BatchSize
  r = conn.update_event_source_mapping(UUID=UUID, **args)
  if r:
   keys = ('UUID', 'BatchSize', 'EventSourceArn', 'FunctionArn', 'LastModified', 'LastProcessingResult', 'State', 'StateTransitionReason')
   return {'updated': True, 'event_source_mapping': dict([(k, r.get(k)) for k in keys])}
  else:
   log.warning('Mapping was not updated')
   return {'updated': False}
 except ClientError as e:
  return {'created': False, 'error': salt.utils.boto3.get_error(e)}

def update_event_source_mapping ( UUID , FunctionName = None , Enabled = None , BatchSize = None , region = None , key = None , keyid = None , profile = None ) : try : conn = _get_conn ( region = region , key = key , keyid = keyid , profile = profile ) args = { } if ( FunctionName is not None ) : args [ 'FunctionName' ] = FunctionName if ( Enabled is not None ) : args [ 'Enabled' ] = Enabled if ( BatchSize is not None ) : args [ 'BatchSize' ] = BatchSize r = conn . update_event_source_mapping ( UUID = UUID , ** args ) if r : keys = ( 'UUID' , 'BatchSize' , 'EventSourceArn' , 'FunctionArn' , 'LastModified' , 'LastProcessingResult' , 'State' , 'StateTransitionReason' ) return { 'updated' : True , 'event_source_mapping' : dict ( [ ( k , r . get ( k ) ) for k in keys ] ) } else : log . warning ( 'Mapping was not updated' ) return { 'updated' : False } except ClientError as e : return { 'created' : False , 'error' : salt . utils . boto3 . get_error ( e ) }
update the event source mapping identified by the uuid .