CfnTopicPolicyMixinProps

class aws_cdk.mixins_preview.aws_sns.mixins.CfnTopicPolicyMixinProps(*, policy_document=None, topics=None)

Bases: object

Properties for CfnTopicPolicyPropsMixin.

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

  • topics (Optional[Sequence[str]]) – The Amazon Resource Names (ARN) of the topics to which you want to add the policy. You can use the [Ref](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-ref.html) function to specify an [AWS::SNS::Topic](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sns-topic.html) resource.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sns-topicpolicy.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.mixins_preview.aws_sns import mixins as sns_mixins

# policy_document: Any

cfn_topic_policy_mixin_props = sns_mixins.CfnTopicPolicyMixinProps(
    policy_document=policy_document,
    topics=["topics"]
)

Attributes

policy_document

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

See:

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

topics

The Amazon Resource Names (ARN) of the topics to which you want to add the policy.

You can use the [Ref](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-ref.html) function to specify an [AWS::SNS::Topic](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sns-topic.html) resource.

See:

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