AWS Fundamentals Logo
AWS Fundamentals
AWS::SNS::TopicPolicy

SNS TopicPolicy

The 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*.

Properties

2 configurable properties. 2 required. Click a row to see details.

Filter:
PropertyTypeFlags
PolicyDocument
objectstring
Required
Topics
Array<string>
Required

Return Values

Values returned after the resource is created. Access these with Fn::GetAtt.

AttributeTypeDescription
Idstring-

Sample CloudFormation Template

A minimal template with required properties and common optional ones.

template.yaml
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::SNS::TopicPolicy

Resources:
  MyResource:
    Type: AWS::SNS::TopicPolicy
    Properties:
      PolicyDocument: "value"
      Topics: []

Required IAM Permissions

Permissions CloudFormation needs in your IAM role to manage this resource.

create

sns:SetTopicAttributes

update

sns:SetTopicAttributes

delete

sns:SetTopicAttributes

Get the SNS Cheat Sheet

Everything you need to know about SNS on one page. HD quality, print-friendly.

Download Free Infographic

Quick Facts

ServiceSNS
Properties3
Required2
TaggingNot supported
Primary IDId

Supported Operations

CreateUpdateDelete

External Links