@zarpay/zar-cdk-lib - v0.32.0
    Preparing search index...

    Class SnsFactory

    Factory for creating and importing SNS topics with Slack integration.

    Index

    Constructors

    Methods

    • Imports an existing SNS topic by name (constructs ARN from current stack context).

      Parameters

      • scope: Construct
      • id: string
      • topicName: string

      Returns ITopic

    • Creates an SNS topic with AWS Chatbot Slack integration.

      Parameters

      • scope: Construct

        CDK construct scope

      • channelId: string

        Slack channel ID (right-click channel → View details)

      • channelName: string

        Channel name (used for topic name)

      Returns Topic

      SnsFactory.slackChannel(this, 'C08SQ3FCWB2', 'devops-alerts');