Menu
AWS CloudFormation
User Guide (API Version 2010-05-15)

AWS::SNS::TopicPolicy

The AWS::SNS::TopicPolicy resource associates Amazon SNS topics with a policy.

Syntax

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

JSON

Copy
{ "Type" : "AWS::SNS::TopicPolicy", "Properties" : { "PolicyDocument" : PolicyDocument, "Topics" : [ List of SNS topic ARNs, ... ] } }

YAML

Copy
Type: "AWS::SNS::TopicPolicy" Properties: PolicyDocument: PolicyDocument Topics: - List of SNS topic ARNs

Properties

PolicyDocument

A policy document that contains permissions to add to the specified SNS topics.

Required: Yes

JSON or YAML

Update requires: No interruption

Topics

The Amazon Resource Names (ARN) of the topics to which you want to add the policy. You can use the Ref function to specify an AWS::SNS::Topic resource.

Required: Yes

Type: A list of Amazon SNS topics ARNs

Update requires: No interruption

For sample AWS::SNS::TopicPolicy snippets, see Declaring an Amazon SNS Topic Policy.

On this page: