AWS::SQS::QueueInlinePolicy - AWS CloudFormation

AWS::SQS::QueueInlinePolicy

The AWS::SQS::QueueInlinePolicy resource associates one Amazon SQS queue with one policy.

Syntax

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

JSON

{ "Type" : "AWS::SQS::QueueInlinePolicy", "Properties" : { "PolicyDocument" : Json, "Queue" : String } }

YAML

Type: AWS::SQS::QueueInlinePolicy Properties: PolicyDocument: Json Queue: String

Properties

PolicyDocument

A policy document that contains the permissions for the specified Amazon SQS queues. For more information about Amazon SQS policies, see Using custom policies with the Amazon SQS access policy language in the Amazon SQS Developer Guide.

Required: Yes

Type: Json

Update requires: No interruption

Queue

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: String

Update requires: Replacement

Return values

Ref

When you pass the logical ID of this resource to the intrinsic Ref function, Ref returns returns the URL of the Amazon SQS queue.

For more information about using the Ref function, see Ref.