DescribeDBInstancesResult result = client.describeDBInstances(new DescribeDBInstancesRequest() .withDBInstanceIdentifier("test-db-replica")); for(DBInstance instance: result) { // マスターのDB識別子 String masterIdentifier = instance.getReadReplicaSourceDBInstanceIdentifier(); }