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)}
Type: Flow or Auxiliary
dataset/ETHPy150Open saltstack/salt/salt/modules/boto_lambda.py/update_event_source_mapping--crossover with--dataset/ETHPy150Open JamesPHoughton/pysd/tests/old_tests/vensim/test_smooth.py/Components.structure_output