def _toggle_term_protect(name, value):
 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')

def _toggle_term_protect ( name , value ) : 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' )
disable termination protection on a node cli example: .