29.07.2020 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

How to Write a Policy

How to Write a Policy

Topics

• Basic Policy Structure (p. 46)

• Element Descriptions (p. 47)

• Supported Data Types (p. 55)

This section describes how to write policies and gives reference information about each policy element.

Basic Policy Structure

Each policy is a JSON document. As illustrated in the following figure, a policy includes:

• Optional policy-wide information (at the top of the document)

• One or more individual statements

Each statement includes the core information about a single permission. If a policy includes multiple

statements, we apply a logical OR across the statements at evaluation time. If multiple policies are

applicable to a request, we apply a logical OR across the policies at evaluation time.

The information in a statement is contained within a series of elements. For information about these

elements, see Element Descriptions (p. 47).

API Version 2009-02-01

46

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

Saved successfully!

Ooh no, something went wrong!