AWS::SQS::QueuePolicyThe 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*.
2 configurable properties. 2 required. Click a row to see details.
| Property | Type | Flags |
|---|---|---|
PolicyDocument | objectstring | Required |
Queues | Array<string> | Required |
Values returned after the resource is created. Access these with Fn::GetAtt.
| Attribute | Type | Description |
|---|---|---|
Id | string | - |
A minimal template with required properties and common optional ones.
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::SQS::QueuePolicy
Resources:
MyResource:
Type: AWS::SQS::QueuePolicy
Properties:
PolicyDocument: "value"
Queues: []Permissions CloudFormation needs in your IAM role to manage this resource.
sqs:SetQueueAttributessqs:SetQueueAttributessqs:SetQueueAttributesEverything you need to know about SQS on one page. HD quality, print-friendly.
Download Free InfographicId