19.08.2018 Views

sqs-dg-2009-02-01

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

Example AWS IAM Policies for Amazon SQS<br />

Example 2: Allow developers to write messages to a shared test queue<br />

In this example, we create a group for developers and attach a policy that lets the group use the Amazon<br />

SQS SendMessage action, but only with the AWS Account's queue named CompanyTestQueue.<br />

{<br />

}<br />

"Statement":[{<br />

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

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

"Resource":"arn:aws:<strong>sqs</strong>:*:123456789<strong>01</strong>2:CompanyTestQueue"<br />

}<br />

]<br />

Example 3: Allow managers to get the general size of queues<br />

In this example, we create a group for managers and attach a policy that lets the group use the Amazon<br />

SQS GetQueueAttributes action with all of the AWS Account's queues.<br />

{<br />

}<br />

"Statement":[{<br />

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

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

"Resource":"*"<br />

}<br />

]<br />

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

69

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

Saved successfully!

Ooh no, something went wrong!