

def update(self, validate=False):
    "\n        Update the DB instance's status information by making a call to fetch\n        the current instance attributes from the service.\n\n        :type validate: bool\n        :param validate: By default, if EC2 returns no data about the\n                         instance the update method returns quietly.  If\n                         the validate param is True, however, it will\n                         raise a ValueError exception if no data is\n                         returned from EC2.\n        "
    rs = self.connection.get_all_dbinstances(self.id)
    if (len(rs) > 0):
        for i in rs:
            if (i.id == self.id):
                self.__dict__.update(i.__dict__)
    elif validate:
        raise ValueError(('%s is not a valid Instance ID' % self.id))
    return self.status

dataset/ETHPy150Open darcyliu/storyboard/boto/rds/dbinstance.py DBInstance.update/original