19.08.2018 Views

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

Amazon SQS Policy Examples<br />

]<br />

}<br />

}<br />

}<br />

The following example policy enables a connection between the Amazon Simple Notification Service<br />

topic specified by the Amazon Resource Name (ARN) arn:aws:sns:us-east-1:599169622985:test-topic<br />

and the queue named arn:aws:<strong>sqs</strong>:us-east-1:599169622985:test-topic-queue.<br />

{<br />

}<br />

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

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

"Statement":<br />

{<br />

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

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

"Principal": {<br />

"AWS": "*"<br />

},<br />

"Action": "<strong>sqs</strong>:*",<br />

"Resource": "arn:aws:<strong>sqs</strong>:us-east-1:599169622985:test-topic-queue",<br />

"Condition" : {<br />

"StringEquals" : {<br />

"aws:SourceArn":"arn:aws:sns:us-east-1:599169622985:test-topic"<br />

}<br />

}<br />

}<br />

API Version <strong>2009</strong>-<strong>02</strong>-<strong>01</strong><br />

60

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

Saved successfully!

Ooh no, something went wrong!