def modify_instance_attribute(self, instance_id, attribute, value):
        # Allow a bool to be passed in for value of disableApiTermination
        if attribute == 'disableApiTermination':
            if isinstance(value, bool):
                if value:
                    value = 'true'
                else:
                    value = 'false'
        params = {'InstanceId' : instance_id,
                  'Attribute' : attribute,
                  'Value' : value}
        return self.get_status('ModifyInstanceAttribute', params, verb='POST')
Changes an attribute of an instance
dataset/ETHPy150Open darcyliu/storyboard/boto/ec2/connection.py/EC2Connection.modify_instance_attribute