CfnTopicProps

class aws_cdk.aws_sns.CfnTopicProps(*, content_based_deduplication=None, display_name=None, fifo_topic=None, kms_master_key_id=None, subscription=None, tags=None, topic_name=None)

Bases: object

Properties for defining a AWS::SNS::Topic.

Parameters
  • content_based_deduplication (Union[bool, IResolvable, None]) – AWS::SNS::Topic.ContentBasedDeduplication.

  • display_name (Optional[str]) – AWS::SNS::Topic.DisplayName.

  • fifo_topic (Union[bool, IResolvable, None]) – AWS::SNS::Topic.FifoTopic.

  • kms_master_key_id (Optional[str]) – AWS::SNS::Topic.KmsMasterKeyId.

  • subscription (Union[IResolvable, Sequence[Union[IResolvable, SubscriptionProperty]], None]) – AWS::SNS::Topic.Subscription.

  • tags (Optional[Sequence[CfnTag]]) – AWS::SNS::Topic.Tags.

  • topic_name (Optional[str]) – AWS::SNS::Topic.TopicName.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sns-topic.html

Example:

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

cfn_topic_props = sns.CfnTopicProps(
    content_based_deduplication=False,
    display_name="displayName",
    fifo_topic=False,
    kms_master_key_id="kmsMasterKeyId",
    subscription=[sns.CfnTopic.SubscriptionProperty(
        endpoint="endpoint",
        protocol="protocol"
    )],
    tags=[CfnTag(
        key="key",
        value="value"
    )],
    topic_name="topicName"
)

Attributes

content_based_deduplication

AWS::SNS::Topic.ContentBasedDeduplication.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sns-topic.html#cfn-sns-topic-contentbaseddeduplication

Return type

Union[bool, IResolvable, None]

display_name

AWS::SNS::Topic.DisplayName.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sns-topic.html#cfn-sns-topic-displayname

Return type

Optional[str]

fifo_topic

AWS::SNS::Topic.FifoTopic.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sns-topic.html#cfn-sns-topic-fifotopic

Return type

Union[bool, IResolvable, None]

kms_master_key_id

AWS::SNS::Topic.KmsMasterKeyId.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sns-topic.html#cfn-sns-topic-kmsmasterkeyid

Return type

Optional[str]

subscription

AWS::SNS::Topic.Subscription.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sns-topic.html#cfn-sns-topic-subscription

Return type

Union[IResolvable, List[Union[IResolvable, SubscriptionProperty]], None]

tags

AWS::SNS::Topic.Tags.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sns-topic.html#cfn-sns-topic-tags

Return type

Optional[List[CfnTag]]

topic_name

AWS::SNS::Topic.TopicName.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sns-topic.html#cfn-sns-topic-topicname

Return type

Optional[str]