def _modify_eni_properties(eni_id, properties=None, vm_=None):
    '''
    Change properties of the interface
    with id eni_id to the values in properties dict
    '''
    if not isinstance(properties, dict):
        raise SaltCloudException(
            'ENI properties must be a dictionary'
        )

    params = {'Action': 'ModifyNetworkInterfaceAttribute',
              'NetworkInterfaceId': eni_id}
    for k, v in six.iteritems(properties):
        params[k] = v

    result = aws.query(params,
                       return_root=True,
                       location=get_location(vm_),
                       provider=get_provider(),
                       opts=__opts__,
                       sigver='4')

    if isinstance(result, dict) and result.get('error'):
        raise SaltCloudException(
            'Could not change interface <{0}> attributes <\'{1}\'>'.format(
                eni_id, properties
            )
        )
    else:
        return result
Change properties of the interface
    with id eni_id to the values in properties dict