Subject: | Suppoer which Endpoint to connect to for BASE_ENDPOINT |
Hi
The default BASE_ENDPOINT in this module is:
use constant BASE_ENDPOINT => 'http://queue.amazonaws.com';
However
http://docs.amazonwebservices.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/
shows that the BASE_ENDPOINT could be:
queue.amazonaws.com—The endpoint for US-East
us-west-1.queue.amazonaws.com—The endpoint for US-West
eu-west-1.queue.amazonaws.com —The endpoint for EU
ap-southeast-1.queue.amazonaws.com —The endpoint for Asia Pacific
It may be useful to have base_endpoint as an argument to the
contstructor along with aws_key and aws_secret in order to easily
support the multiple separate queue domains. In the mean time, after the
SQS conncetion is established, it appears that the Endpoint attribute
can be force overridden:
my $sqs = Amazon::SQS::Simple->new($key, $secret);
$sqs->{Endpoint} = "http://eu-west-1.queue.amazonaws.com";
JEB