29.07.2020 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

Example AWS IAM Policies for Amazon SQS

Example 2: Allow developers to write messages to a shared test queue

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

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

{

}

"Statement":[{

"Effect":"Allow",

"Action":"sqs:SendMessage",

"Resource":"arn:aws:sqs:*:123456789012:CompanyTestQueue"

}

]

Example 3: Allow managers to get the general size of queues

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

SQS GetQueueAttributes action with all of the AWS Account's queues.

{

}

"Statement":[{

"Effect":"Allow",

"Action":"sqs:GetQueueAttributes",

"Resource":"*"

}

]

API Version 2009-02-01

69

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

Saved successfully!

Ooh no, something went wrong!