如何使用java访问所有AWS RDS预留实例的数据?

时间:2017-06-27 10:34:25

标签: amazon-web-services amazon-s3 amazon-ec2 amazon-rds

我不知道如何只访问java中的rds保留实例数据。任何人都可以提供,以便我可以访问rds保留的实例数据。

谢谢

1 个答案:

答案 0 :(得分:0)

请尝试这个

AmazonRDS client = new AmazonRDSClient();
DescribeReservedDBInstancesRequest request = new DescribeReservedDBInstancesRequest()
    .withDBInstanceClass("db.t2.micro").withDuration("1y")
    .withMultiAZ(false).withOfferingType("No Upfront")
    .withProductDescription("mysql");
DescribeReservedDBInstancesResult response = client
    .describeReservedDBInstances(request);

您可以在此链接中阅读其他方法 http://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/services/rds/AmazonRDSClient.html