AWS
4 weeks subscription
4 weeks subscription
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<br />
Query Request Authentication<br />
request, then it handles the required URL encoding of the signature. If your toolkit doesn't URL<br />
encode the final request, then make sure to URL encode the signature before you include it in<br />
the request. Most importantly, make sure the signature is URL encoded only once. A common<br />
mistake is to URL encode it manually during signature formation, and then again when the toolkit<br />
URL encodes the entire request.<br />
Example SetQueueAttributes Request<br />
https://sqs.us-east-1.amazonaws.com/770098461991/queue2<br />
?Action=SetQueueAttributes<br />
&Attribute.Name=VisibilityTimeout<br />
&Attribute.Value=90<br />
&Version=2009-02-01<br />
&Expires=2008-02-10T12%3A00%3A00Z<br />
&SignatureVersion=2<br />
&SignatureMethod=HmacSHA256<br />
&<strong>AWS</strong>AccessKeyId=<br />
Following is the string to sign.<br />
GET\n<br />
sqs.us-east-1.amazonaws.com\n<br />
/770098461991/queue2\n<br />
<strong>AWS</strong>AccessKeyId=<br />
&Action=SetQueueAttributes<br />
&Attribute.Name=VisibilityTimeout<br />
&Attribute.Value=90<br />
&Expires=2008-02-10T12%3A00%3A00Z<br />
&SignatureMethod=HmacSHA256<br />
&SignatureVersion=2<br />
&Version=2009-02-01<br />
Following is the signed request.<br />
https://sqs.us-east-1.amazonaws.com/770098461991/queue2<br />
?Action=SetQueueAttributes<br />
&Attribute.Name=VisibilityTimeout<br />
&Attribute.Value=35<br />
&Version=2009-02-01<br />
&Expires=2008-02-10T12%3A00%3A00Z<br />
&Signature=<br />
&SignatureVersion=2<br />
&SignatureMethod=HmacSHA256<br />
&<strong>AWS</strong>AccessKeyId=<br />
API Version 2009-02-01<br />
25