AWS CloudFormation
User Guide (API Version 2010-05-15)
« PreviousNext »
View the PDF for this guide.Go to the AWS Discussion Forum for this product.Go to the Kindle Store to download this guide in Kindle format.Did this page help you?  Yes | No |  Tell us about it...

AWS::SNS::TopicPolicy

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

Syntax

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

Properties

PolicyDocument

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

Required: Yes

Type: JSON object

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 snippts, see Declaring an Amazon SNS Topic Policy.