AWS::SNS::TopicPolicyThe AWS::SNS::TopicPolicy resource associates SNS topics with a policy. For an example snippet, see [Declaring an policy](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/quickref-iam.html#scenario-sns-policy) in the *User Guide*.
2 configurable properties. 2 required. Click a row to see details.
| Property | Type | Flags |
|---|---|---|
PolicyDocument | objectstring | Required |
Topics | Array<string> | Required |
Values returned after the resource is created. Access these with Fn::GetAtt.
| Attribute | Type | Description |
|---|---|---|
Id | string | - |
A minimal template with required properties and common optional ones.
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::SNS::TopicPolicy
Resources:
MyResource:
Type: AWS::SNS::TopicPolicy
Properties:
PolicyDocument: "value"
Topics: []Permissions CloudFormation needs in your IAM role to manage this resource.
sns:SetTopicAttributessns:SetTopicAttributessns:SetTopicAttributesEverything you need to know about SNS on one page. HD quality, print-friendly.
Download Free InfographicId