23.06.2023 Views

AWS

4 weeks subscription

4 weeks subscription

SHOW MORE
SHOW LESS

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

<strong>AWS</strong> IAM and SQS Policies Together<br />

It's up to you how you use both of the systems together to manage your permissions, based on your<br />

needs. The following examples show how the two policy systems work together.<br />

Example 1<br />

In this example, Bob has both an <strong>AWS</strong> IAM policy and an SQS policy that apply to him. The <strong>AWS</strong> IAM<br />

policy gives him permission to use ReceiveMessage on queue_xyz, whereas the SQS policy gives him<br />

permission to use SendMessage on the same queue. The following diagram illustrates the concept.<br />

If Bob were to send a request to receive a message from queue_xyz, the <strong>AWS</strong> IAM policy would allow<br />

the action. If Bob were to send a request to send a message to queue_xyz, the SQS policy would allow<br />

the action.<br />

API Version 2009-02-01<br />

65

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

Saved successfully!

Ooh no, something went wrong!