09.06.2017 Views

hello123

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":"sqs:SendMessage",<br />

"Resource":"arn:aws:sqs:*:123456789012: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":"sqs:GetQueueAttributes",<br />

"Resource":"*"<br />

}<br />

]<br />

API Version 2009-02-01<br />

69

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

Saved successfully!

Ooh no, something went wrong!