aws / aws-sdk-java

The official AWS SDK for Java 1.x (In Maintenance Mode, End-of-Life on 12/31/2025). The AWS SDK for Java 2.x is available here: https://github.com/aws/aws-sdk-java-v2/
https://aws.amazon.com/sdkforjava
Apache License 2.0
4.13k stars 2.83k forks source link

describeDBClusters in AmazonNeptune returns RDS Clusters #2192

Closed anilcs81 closed 4 years ago

anilcs81 commented 4 years ago
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

debora-ito commented 4 years ago

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 commented 4 years ago

@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.

anilcs81 commented 4 years ago

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

karthik-1 commented 4 years ago

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