AWS Fundamentals Logo
AWS Fundamentals
AWS::SQS::QueuePolicy

SQS QueuePolicy

The AWS::SQS::QueuePolicy type applies a policy to SQS queues. For an example snippet, see [Declaring an policy](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/quickref-iam.html#scenario-sqs-policy) in the *User Guide*.

Properties

2 configurable properties. 2 required. Click a row to see details.

Filter:
PropertyTypeFlags
PolicyDocument
objectstring
Required
Queues
Array<string>
Required

Return Values

Values returned after the resource is created. Access these with Fn::GetAtt.

AttributeTypeDescription
Idstring-

Sample CloudFormation Template

A minimal template with required properties and common optional ones.

template.yaml
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::SQS::QueuePolicy

Resources:
  MyResource:
    Type: AWS::SQS::QueuePolicy
    Properties:
      PolicyDocument: "value"
      Queues: []

Required IAM Permissions

Permissions CloudFormation needs in your IAM role to manage this resource.

create

sqs:SetQueueAttributes

update

sqs:SetQueueAttributes

delete

sqs:SetQueueAttributes

Get the SQS Cheat Sheet

Everything you need to know about SQS on one page. HD quality, print-friendly.

Download Free Infographic

Quick Facts

ServiceSQS
Properties3
Required2
TaggingNot supported
Primary IDId

Supported Operations

CreateUpdateDelete

Related Resources

External Links