AWS::SNS::TopicPolicy - Amazon CloudFormation
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).


The AWS::SNS::TopicPolicy resource associates Amazon SNS topics with a policy. For an example snippet, see Declaring an Amazon SNS policy in the Amazon CloudFormation User Guide.


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


{ "Type" : "AWS::SNS::TopicPolicy", "Properties" : { "PolicyDocument" : Json, "Topics" : [ String, ... ] } }


Type: AWS::SNS::TopicPolicy Properties: PolicyDocument: Json Topics: - String



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

Required: Yes

Type: Json

Update requires: No interruption


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

Update requires: No interruption

Return values


The Fn::GetAtt intrinsic function returns a value for a specified attribute of this type. The following are the available attributes and sample return values.

For more information about using the Fn::GetAtt intrinsic function, see Fn::GetAtt.


The provider-assigned unique ID for this managed resource.