modify_db_instance should be able to rename DB instances (#1367)
This commit is contained in:
parent
9e1a233549
commit
796fa6647b
4 changed files with 32 additions and 0 deletions
|
|
@ -107,6 +107,9 @@ class RDSResponse(BaseResponse):
|
|||
def modify_db_instance(self):
|
||||
db_instance_identifier = self._get_param('DBInstanceIdentifier')
|
||||
db_kwargs = self._get_db_kwargs()
|
||||
new_db_instance_identifier = self._get_param('NewDBInstanceIdentifier')
|
||||
if new_db_instance_identifier:
|
||||
db_kwargs['new_db_instance_identifier'] = new_db_instance_identifier
|
||||
database = self.backend.modify_database(
|
||||
db_instance_identifier, db_kwargs)
|
||||
template = self.response_template(MODIFY_DATABASE_TEMPLATE)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue