CfnTopicInlinePolicyProps

class aws_cdk.aws_sns.CfnTopicInlinePolicyProps(*, policy_document, topic_arn)

Bases: object

Properties for defining a CfnTopicInlinePolicy.

Parameters:
  • policy_document (Any) – A policy document that contains permissions to add to the specified Amazon SNS topic.

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

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sns-topicinlinepolicy.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_sns as sns

# policy_document: Any

cfn_topic_inline_policy_props = sns.CfnTopicInlinePolicyProps(
    policy_document=policy_document,
    topic_arn="topicArn"
)

Attributes

policy_document

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

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sns-topicinlinepolicy.html#cfn-sns-topicinlinepolicy-policydocument

topic_arn

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

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sns-topicinlinepolicy.html#cfn-sns-topicinlinepolicy-topicarn