Tim Jarvis
Tim Jarvis

Reputation: 18825

How do I get the region endpoints from the Amazon SimpleDB API

So its easy to get the Amazon EC2 region endpoints simply via an API call (DescribeRegions)

But how do I do this with the SimpleDB API, there is no obvious (to me) call. (and the endpoints are different, so I can't just use the EC2 one's)

Edit: Oh, I'm using the .NET API

Upvotes: 1

Views: 2486

Answers (2)

Tom Andersen
Tom Andersen

Reputation: 7200

It seems that the mapping for all new domains is direct - so you special case a few (EU, us east), then for new ones the endpoint will match the s3 endpoint. But is that in the docs?

It worked for me when tokyo was announced. Code went right on working and allowed it as an endpoint.

Upvotes: 0

Mocky
Mocky

Reputation: 7888

There are no SimpleDB API calls similiar to DescribeRegions. The documentation is the only source for the public endpoints. Currently there are 4 of them:

  • sdb.amazonaws.com — Endpoint located in the US-East (Northern Virginia) Region
  • sdb.us-west-1.amazonaws.com — Endpoint located in the US-West (Northern California) Region
  • sdb.eu-west-1.amazonaws.com — Endpoint located in the EU (Ireland) Region
  • sdb.ap-southeast-1.amazonaws.com — Endpoint located in the Asia Pacific (Singapore) Region

Here is a direct link to the doc page that maintains the most up to date list of these endpoints. If new ones are added, you'll know by looking here:

http://docs.amazonwebservices.com/AmazonSimpleDB/latest/DeveloperGuide/Endpoints.html

Upvotes: 4

Related Questions