Using custom policies with the Amazon SQS Access Policy Language - Amazon Simple Queue Service
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Using custom policies with the Amazon SQS Access Policy Language

If you want to allow Amazon SQS access based only on an Amazon Web Services account ID and basic permissions (such as for SendMessage or ReceiveMessage), you don't need to write your own policies. You can just use the Amazon SQS AddPermission action.

If you want to explicitly deny or allow access based on more specific conditions (such as the time the request comes in or the IP address of the requester), you need to write your own Amazon SQS policies and upload them to the Amazon system using the Amazon SQS SetQueueAttributes action.