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

Key Concepts

John's queue, and another that states that Bob cannot use John's queue. As shown in the following figure,

an equivalent scenario would be to have two policies, one containing the statement that Jane can use

John's queue, and another containing the statement that Bob cannot use John's queue.

The AWS service implementing access control (e.g., Amazon SQS) uses the information in the statements

(whether they're contained in a single policy or multiple) to determine if someone requesting access to a

resource should be granted that access. We often use the term policy interchangeably with statement,

as they generally represent the same concept (an entity that represents a permission).

Issuer

The issuer is the person who writes a policy to grant permissions for a resource. The issuer (by definition)

is always the resource owner. AWS does not permit AWS service users to create policies for resources

they don't own. If John is the resource owner, AWS authenticates John's identity when he submits the

policy he's written to grant permissions for that resource.

Principal

The principal is the person or persons who receive the permission in the policy. The principal is A in the

statement "A has permission to do B to C where D applies." In a policy, you can set the principal to

"anyone" (i.e., you can specify a wildcard to represent all people). You might do this, for example, if you

don't want to restrict access based on the actual identity of the requester, but instead on some other

identifying characteristic such as the requester's IP address.

Action

The action is the activity the principal has permission to perform. The action is B in the statement "A has

permission to do B to C where D applies." Typically, the action is just the operation in the request to AWS.

For example, Jane sends a request to Amazon SQS with Action=ReceiveMessage. You can specify

one or multiple actions in a policy.

Resource

The resource is the object the principal is requesting access to. The resource is C in the statement "A

has permission to do B to C where D applies."

Conditions and Keys

The conditions are any restrictions or details about the permission. The condition is D in the statement

"A has permission to do B to C where D applies." The part of the policy that specifies the conditions can

be the most detailed and complex of all the parts. Typical conditions are related to:

API Version 2009-02-01

34

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

Saved successfully!

Ooh no, something went wrong!