02.02.2018 Views

sqsputapi

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Amazon Simple Queue Service Developer Guide<br />

Basic Use Cases for Access Control<br />

{<br />

}<br />

"Version":"2008-10-17",<br />

"Id":"UseCase4",<br />

"Statement" : [<br />

{<br />

"Sid":"1",<br />

"Effect":"Deny",<br />

"Principal" : {<br />

"AWS": "123456789012"<br />

},<br />

"Action":["sqs:SendMessage","sqs:ReceiveMessage"],<br />

"Resource": "/987654321000/queue2",<br />

}<br />

]<br />

From these use cases, you can see that if you want to restrict access based on special conditions or<br />

deny someone access entirely, you need to read this appendix and learn how to write your own policies.<br />

You can also see that the policies themselves are not that complex and the access policy language is<br />

straightforward.<br />

API Version 2009-02-01<br />

45

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

Saved successfully!

Ooh no, something went wrong!