Amazon SQS access control process workflow - Amazon Simple Queue Service
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Amazon SQS access control process workflow

The following diagram describes the general workflow of access control with the Amazon SQS access policy language.

The general workflow of access control with the Amazon SQS access policy language.

Figure one in the previous diagram. You write an Amazon SQS policy for your queue.

Figure two in the previous diagram. You upload your policy to Amazon. The Amazon service provides an API that you use to upload your policies. For example, you use the Amazon SQS SetQueueAttributes action to upload a policy for a particular Amazon SQS queue.

Figure three in the previous diagram. Someone sends a request to use your Amazon SQS queue.

Figure four in the previous diagram. Amazon SQS examines all available Amazon SQS policies and determines which ones are applicable.

Figure five in the previous diagram. Amazon SQS evaluates the policies and determines whether the requester is allowed to use your queue.

Figure six in the previous diagram. Based on the policy evaluation result, Amazon SQS either returns an Access denied error to the requester or continues to process the request.