如何计算AWS中任何RDS实例的已用存储空间? 我使用以下代码,但没有其他选项可以找到。
DescribeDBInstancesRequest request = new DescribeDBInstancesRequest();
DescribeDBInstancesResult result = rdsClient.describeDBInstances(request);
List<DBInstance> list = result.getDBInstances();
for(DBInstance instance : list){
System.out.println(instance.getAllocatedStorage());
}