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

Element Descriptions

"Effect":"Allow"

Principal

The Principal is the person or persons who receive or are denied permission according to the policy.

You must specify the principal by using the principal's AWS account ID (e.g., 1234-5678-9012, with or

without the hyphens). You can specify multiple principals, or a wildcard (*) to indicate all possible users.

You can view your account ID by logging in to your AWS account at http://aws.amazon.com and clicking

Account Activity.

In JSON, you use "AWS": as a prefix for the principal's AWS account ID. In the following example, two

principals are included in the statement.

"Principal":[

"AWS": "123456789012",

"AWS": "999999999999"

]

NotPrincipal

The NotPrincipal element is useful if you want to make an exception to a list of principals. You could

use this, for example, if you want to prevent all AWS accounts except a certain one. The Principal is

the person or persons who receive or are denied permission according to the policy. You must specify

the principal by using the principal's AWS account ID (e.g., 1234-5678-9012, with or without the hyphens).

You can specify multiple principals, or a wildcard (*) to indicate all possible users. You can view your

account ID by logging in to your AWS account at http://aws.amazon.com and clicking Account Activity.

In JSON, you use "AWS": as a prefix for the principal's AWS account ID. In the following example, two

principals are included in the statement.

"Principal":[

"AWS": "123456789012",

"AWS": "999999999999"

]

Action

The Action is the specific type or types of access allowed or denied (for example, read or write). You

can specify multiple values for this element. The values are free-form but must match values the AWS

service expects (for more information, see Special Information for SQS Policies (p. 61)). You can use a

wildcard (*) to give the principal access to all the actions the specific AWS service lets you share with

other developers. For example, Amazon SQS lets you share only a particular subset of all the possible

SQS actions. So, using the wildcard doesn't give someone full control of the queue; it only gives access

to that particular subset of actions.

"Action":["sqs:SendMessage","sqs:ReceiveMessage"]

The prefix and the action name are case insensitive. For example, sqs:SendMessage is equivalent to

SQS:sendmessage.

API Version 2009-02-01

49

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

Saved successfully!

Ooh no, something went wrong!