19.08.2018 Views

sqs-dg-2009-02-01

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

Element Descriptions<br />

Version<br />

The Version is the access policy language version. This is an optional element, and currently the only<br />

allowed value is 2008-10-17.<br />

"Version":"2008-10-17"<br />

Id<br />

The Id is an optional identifier for the policy. We recommend you use a UUID for the value, or incorporate<br />

a UUID as part of the ID to ensure uniqueness.<br />

Important<br />

The AWS service (e.g., SQS or Amazon SNS) implementing the access policy language might<br />

require this element and have uniqueness requirements for it. For service-specific information<br />

about writing policies, see Special Information for SQS Policies (p. 61).<br />

"Id":"cd3ad3d9-2776-4ef1-a904-4c229d1642ee"<br />

Statement<br />

The Statement is the main element for a statement. It can include multiple elements (see the subsequent<br />

sections in this guide).<br />

The Statement element contains an array of individual statements. Each individual statement is a distinct<br />

JSON block enclosed in curly brackets { }.<br />

"Statement":[{...},{...},{...}]<br />

Sid<br />

The Sid (statement ID) is an optional identifier you provide for the policy statement. Essentially it is just<br />

a sub-ID of the policy document's ID.<br />

Important<br />

The AWS service (e.g., SQS or Amazon SNS) implementing the access policy language might<br />

require this element and have uniqueness requirements for it. For service-specific information<br />

about writing policies, see Special Information for SQS Policies (p. 61).<br />

"Sid" : "1"<br />

Effect<br />

The Effect is a required element that indicates whether you want the statement to result in an allow or<br />

an explicit deny (for more information, see Explicit Deny (p. 36)).<br />

Valid values for Effect are Allow and Deny.<br />

API Version <strong>2009</strong>-<strong>02</strong>-<strong>01</strong><br />

48

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

Saved successfully!

Ooh no, something went wrong!