'Detach a network interface from an instance.
:param      attachment_id: The attachment ID associated with the
interface
:type       attachment_id: ``str``
:param      force: Forces the detachment.
:type       force: ``bool``
:return:    ``True`` on successful detachment, ``False`` otherwise.
:rtype:     ``bool``'

def ex_detach_network_interface(self, attachment_id, force=False):

    params = {'Action': 'DetachNetworkInterface', 'AttachmentId': attachment_id}
    if force:
        params['Force'] = True
    res = self.connection.request(self.path, params=params).object
    return self._get_boolean(res)
