TopicProps

class aws_cdk.aws_sns.TopicProps(*, content_based_deduplication=None, display_name=None, fifo=None, master_key=None, topic_name=None)

Bases: object

Properties for a new SNS topic.

Parameters:
  • content_based_deduplication (Optional[bool]) – Enables content-based deduplication for FIFO topics. Default: None

  • display_name (Optional[str]) – A developer-defined string that can be used to identify this SNS topic. Default: None

  • fifo (Optional[bool]) – Set to true to create a FIFO topic. Default: None

  • master_key (Optional[IKey]) – A KMS Key, either managed by this CDK app, or imported. Default: None

  • topic_name (Optional[str]) – A name for the topic. If you don’t specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the topic name. For more information, see Name Type. Default: Generated name

ExampleMetadata:

infused

Example:

topic = sns.Topic(self, "Topic",
    display_name="Customer subscription topic"
)

Attributes

content_based_deduplication

Enables content-based deduplication for FIFO topics.

Default:

None

display_name

A developer-defined string that can be used to identify this SNS topic.

Default:

None

fifo

Set to true to create a FIFO topic.

Default:

None

master_key

A KMS Key, either managed by this CDK app, or imported.

Default:

None

topic_name

A name for the topic.

If you don’t specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the topic name. For more information, see Name Type.

Default:

Generated name