AWS CloudFormation
User Guide (Version )

AWS::SQS::QueuePolicy

The AWS::SQS::QueuePolicy type applies a policy to Amazon SQS queues. For an example snippet, see Declaring an Amazon SQS Policy in the AWS CloudFormation User Guide.

Syntax

To declare this entity in your AWS CloudFormation template, use the following syntax:

JSON

{ "Type" : "AWS::SQS::QueuePolicy", "Properties" : { "PolicyDocument" : Json, "Queues" : [ String, ... ] } }

YAML

Type: AWS::SQS::QueuePolicy Properties: PolicyDocument: Json Queues: - String

Properties

PolicyDocument

A policy document that contains the permissions for the specified Amazon SQS queues. For more information about Amazon SQS policies, see Creating Custom Policies Using the Access Policy Language in the Amazon Simple Queue Service Developer Guide.

Required: Yes

Type: Json

Update requires: No interruption

Queues

The URLs of the queues to which you want to add the policy. You can use the Ref function to specify an AWS::SQS::Queue resource.

Required: Yes

Type: List of String

Update requires: No interruption

On this page: