---
type: resource-type
title: QueuePolicy
description: aws resource type AWS::SQS::QueuePolicy
name: QueuePolicy
lexicon: aws
resource_type: AWS::SQS::QueuePolicy
---
`AWS::SQS::QueuePolicy`, a resource type of the aws lexicon.

## Properties

- `PolicyDocument` (`PolicyDocument`, required): A policy document that contains the permissions for the specified SQS queues. For more information about SQS policies, see [Using custom policies with the access policy language](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-creating-custom-policies.html) in the *Developer Guide*.
- `Queues` (`string[]`, required): 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.
- `Id` (`string`, optional)

## Attributes

- `Id`
