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

Listing the RDS database instances

Listing the RDS database instances can simply be done by creating a request object of type DescribeDBInstanceRequest. This class can be used to fetch other details about a particular instance. This request object can then be passed to the DescribeDbInstance() function, which in turn returns a response object of the type DescribeDBInstanceResponse. The response object has the DBInstances property which is a list of the database instances running. You can simply iterate over this list to obtain the information about the instances.

The following code snippet fetches the list of RDS instances running and prints out the database instance identifier of each instance:

 DescribeDBInstancesRequest request = new DescribeDBInstancesRequest(); ...
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