09.06.2017 Views

hello123

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 />

Table of Contents<br />

Welcome ............................................................................................................................................................. 1<br />

Introduction to Amazon SQS .............................................................................................................................. 2<br />

Making API Requests ....................................................................................................................................... 12<br />

Endpoints .............................................................................................................................................. 13<br />

Making Query Requests ....................................................................................................................... 14<br />

Request Authentication ......................................................................................................................... 17<br />

What Is Authentication? .............................................................................................................. 17<br />

Your AWS Account ...................................................................................................................... 18<br />

Your AWS Identifiers .................................................................................................................... 18<br />

Viewing Your AWS Identifiers ...................................................................................................... 19<br />

HMAC-SHA Signatures ............................................................................................................... 19<br />

Required Authentication Information .................................................................................. 20<br />

Basic Authentication Process ............................................................................................ 20<br />

About the String to Sign ..................................................................................................... 22<br />

About the Time Stamp ....................................................................................................... 22<br />

Java Sample Code for Base64 Encoding .......................................................................... 22<br />

Java Sample Code for Calculating HMAC-SHA1 Signatures ............................................. 22<br />

Query Request Authentication .................................................................................................... 23<br />

Responses ............................................................................................................................................ 27<br />

Shared Queues ..................................................................................................................................... 29<br />

Programming Languages ..................................................................................................................... 31<br />

Using The Access Policy Language ................................................................................................................. 32<br />

Overview ............................................................................................................................................... 33<br />

When to Use Access Control ...................................................................................................... 33<br />

Key Concepts .............................................................................................................................. 33<br />

Architectural Overview ................................................................................................................ 36<br />

Using the Access Policy Language ............................................................................................. 38<br />

Evaluation Logic .......................................................................................................................... 39<br />

Basic Use Cases for Access Control ........................................................................................... 42<br />

How to Write a Policy ............................................................................................................................ 46<br />

Basic Policy Structure ................................................................................................................. 46<br />

Element Descriptions .................................................................................................................. 47<br />

Supported Data Types ................................................................................................................. 55<br />

Amazon SQS Policy Examples ............................................................................................................. 57<br />

Special Information for SQS Policies .................................................................................................... 61<br />

Controlling User Access to Your AWS Account ................................................................................................ 62<br />

Amazon SQS Resources ................................................................................................................................. 72<br />

Document History ............................................................................................................................................. 75<br />

Glossary ........................................................................................................................................................... 73<br />

Index ................................................................................................................................................................. 78

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!