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 />
How to Write a Policy<br />
How to Write a Policy<br />
Topics<br />
• Basic Policy Structure (p. 46)<br />
• Element Descriptions (p. 47)<br />
• Supported Data Types (p. 55)<br />
This section describes how to write policies and gives reference information about each policy element.<br />
Basic Policy Structure<br />
Each policy is a JSON document. As illustrated in the following figure, a policy includes:<br />
• Optional policy-wide information (at the top of the document)<br />
• One or more individual statements<br />
Each statement includes the core information about a single permission. If a policy includes multiple<br />
statements, we apply a logical OR across the statements at evaluation time. If multiple policies are<br />
applicable to a request, we apply a logical OR across the policies at evaluation time.<br />
The information in a statement is contained within a series of elements. For information about these<br />
elements, see Element Descriptions (p. 47).<br />
API Version <strong>2009</strong>-<strong>02</strong>-<strong>01</strong><br />
46