AWS::SNS::TopicPolicy
The AWS::SNS::TopicPolicy resource associates Amazon SNS topics with a
policy.
Topics
Syntax
To declare this entity in your AWS CloudFormation template, use the following syntax:
JSON
{ "Type" : "AWS::SNS::TopicPolicy", "Properties" : { "PolicyDocument" :PolicyDocument, "Topics" : [List of SNS topic ARNs, ...] } }
YAML
Type: AWS::SNS::TopicPolicy Properties: PolicyDocument:PolicyDocumentTopics: -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.
