Skip to Content
Hybrid Cloud for Developers
book

Hybrid Cloud for Developers

by Manoj Hirway
April 2018
Intermediate to advanced content levelIntermediate to advanced
280 pages
8h 37m
English
Packt Publishing
Content preview from Hybrid Cloud for Developers

Deleting the RDS database instance

Finally, the RDS database instance can be deleted by creating a delete request object of the DeleteDBInstanceRequest class and passing the database instance identifier to its constructor. When a database instance is deleted from RDS, it tries to take a final snapshot of the database, before deleting the instance. The SkipFinalSnapshot property determines this. If you do not wish to take a final snapshot and directly delete the instance, set this property to true. 

The following code snippet demonstrates how to delete an RDS instance:

DeleteDBInstanceRequest delete_request = new DeleteDBInstanceRequest("packtpub");delete_request.SkipFinalSnapshot = true;               client.DeleteDBInstance(delete_request);

Now that you ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Hybrid Cloud for Architects

Hybrid Cloud for Architects

Alok Shrivastwa
OpenStack: Building a Cloud Environment

OpenStack: Building a Cloud Environment

Alok Shrivastwa, Sunil Sarat, Kevin Jackson, Cody Bunch, Egle Sigler, Tony Campbell

Publisher Resources

ISBN: 9781788830874Supplemental Content