aws-sdk-java icon indicating copy to clipboard operation
aws-sdk-java copied to clipboard

describeDBClusters in AmazonNeptune returns RDS Clusters

Open anilcs81 opened this issue 6 years ago • 4 comments

AmazonNeptune neptuneClient = AmazonNeptuneClientBuilder.standard().withCredentials(new AWSStaticCredentialsProvider(temporaryCredentials)).withRegion(region.getName()).build();
List<DBCluster> dBClustersTemp = neptuneClient.describeDBClusters(new DescribeDBClustersRequest()).getDBClusters();

The code above returns RDS clusters not NeptuneClusters

anilcs81 avatar Jan 03 '20 01:01 anilcs81

Hi @anilcs81

We had the same question asked in a previous issue (#1878) just the other way around - RDS client returning Neptune clusters. The documentation of RDS describeDBClusters API states that "This operation can also return information for Amazon Neptune DB instances and Amazon DocumentDB instances.", so my guess is they all have a shared infrastructure of some kind.

I'll contact the service team behind the Neptune API asking for clarification. Will let you know what we hear back.

debora-ito avatar Jan 06 '20 23:01 debora-ito

@anilcs81 Neptune team responded saying it is the expected behavior. They will work on updating the API documentation to make it more clear.

Closing this, feel free to reopen if you have any more questions.

debora-ito avatar Jan 07 '20 23:01 debora-ito

this is pretty weird and confusing.I have made code chages to filter out the neptune cluster based on "engine=neptune". Wondering why this can't be done at neptune API end

anilcs81 avatar Jan 09 '20 00:01 anilcs81

@anilcs81 thanks, noted feedback . We have updated the describeDB API doc but will also check if we can filter the list to Neptune.

karthik-1 avatar Jan 14 '20 02:01 karthik-1