AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::SNS::TopicInlinePolicy

CfnTopicInlinePolicy

The `AWS::SNS::TopicInlinePolicy` resource associates one Amazon topic with one policy.

Import

import { CfnTopicInlinePolicy } from 'aws-cdk-lib/aws-sns';

Or use the module namespace:

import * as sns from 'aws-cdk-lib/aws-sns';
// sns.CfnTopicInlinePolicy

Properties

Configuration passed to the constructor as CfnTopicInlinePolicyProps.

policyDocumentRequired
any

A policy document that contains permissions to add to the specified Amazon topic.

topicArnRequired
string

The Amazon Resource Name (ARN) of the topic to which you want to add the policy.

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Get the Amazon SNS Cheat Sheet

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

Download Free Infographic