this patch allows use of the Europe endpoint described at
http://docs.amazonwebservices.com/AmazonSimpleDB/2009-04-15/DeveloperGuide/index.html?Endpoints.html
there are two ways to override the default US endpoint.
you can set an environment variable
20091019-15:14:53 mengwong@cny:~%
SIMPLEDB_ENDPOINT=
http://sdb.eu-west-1.amazonaws.com/ perl -MYAML
-MAmazon::SimpleDB -le 'my $sdb =
Amazon::SimpleDB->new({aws_access_key_id=>"xxx",
aws_secret_access_key=>"yyy"}); print Dump $_->content for $sdb->domains'
---
ListDomainsResponse:
ListDomainsResult:
DomainName:
- direct-test
ResponseMetadata:
BoxUsage: 0.0000071759
RequestId: 228f8d2c-1748-31ef-20d6-775dd6241b22
xmlns:
http://sdb.amazonaws.com/doc/2007-11-07/
or you can specify it in the new().
20091019-15:15:28 mengwong@cny:~% perl -MYAML -MAmazon::SimpleDB -le 'my
$sdb =
Amazon::SimpleDB->new({endpoint=>"
http://sdb.eu-west-1.amazonaws.com/",
aws_access_key_id=>"xxx", aws_secret_access_key=>"yyy"}); print Dump
$_->content for $sdb->domains'
---
ListDomainsResponse:
ListDomainsResult:
DomainName:
- direct-test
ResponseMetadata:
BoxUsage: 0.0000071759
RequestId: 24763566-1db0-b7bf-9ee3-9ee0c72b7831
xmlns:
http://sdb.amazonaws.com/doc/2007-11-07/
cheers
pause: freeside
email: mengwong@pobox.com
name: Meng Weng Wong