Enable or Disable termination protection on a node

def _toggle_term_protect(name, value):
    '''
    Enable or Disable termination protection on a node

    '''
    instance_id = _get_node(name)['instanceId']
    params = {'Action': 'ModifyInstanceAttribute',
              'InstanceId': instance_id,
              'DisableApiTermination.Value': value}

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

    return show_term_protect(name=name, instance_id=instance_id, call='action')