sqs-dg-2009-02-01
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Amazon Simple Queue Service Developer Guide
Query Request Authentication
request, then it handles the required URL encoding of the signature. If your toolkit doesn't URL
encode the final request, then make sure to URL encode the signature before you include it in
the request. Most importantly, make sure the signature is URL encoded only once. A common
mistake is to URL encode it manually during signature formation, and then again when the toolkit
URL encodes the entire request.
Example SetQueueAttributes Request
https://sqs.us-east-1.amazonaws.com/770098461991/queue2
?Action=SetQueueAttributes
&Attribute.Name=VisibilityTimeout
&Attribute.Value=90
&Version=2009-02-01
&Expires=2008-02-10T12%3A00%3A00Z
&SignatureVersion=2
&SignatureMethod=HmacSHA256
&AWSAccessKeyId=<Your AWS Access Key ID>
Following is the string to sign.
GET\n
sqs.us-east-1.amazonaws.com\n
/770098461991/queue2\n
AWSAccessKeyId=<Your AWS Access Key ID>
&Action=SetQueueAttributes
&Attribute.Name=VisibilityTimeout
&Attribute.Value=90
&Expires=2008-02-10T12%3A00%3A00Z
&SignatureMethod=HmacSHA256
&SignatureVersion=2
&Version=2009-02-01
Following is the signed request.
https://sqs.us-east-1.amazonaws.com/770098461991/queue2
?Action=SetQueueAttributes
&Attribute.Name=VisibilityTimeout
&Attribute.Value=35
&Version=2009-02-01
&Expires=2008-02-10T12%3A00%3A00Z
&Signature=<URLEncode(Base64Encode(Signature))>
&SignatureVersion=2
&SignatureMethod=HmacSHA256
&AWSAccessKeyId=<Your AWS Access Key ID>
API Version 2009-02-01
25