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

    Class SnsFactory

    Factory for creating and importing SNS topics with Mattermost 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 an HTTPS subscription to the Mattermost AWS SNS plugin.

      Requires the SSM parameter /platform/mattermost/sns-plugin-token to exist in the target AWS account.

      Parameters

      • scope: Construct

        CDK construct scope

      • mattermostUrl: string

        Mattermost instance URL (e.g., 'https://mattermost.zarhq.dev')

      • teamName: string

        Mattermost team name

      • channelName: string

        Channel name (used for both SNS topic name and Mattermost channel)

      Returns Topic

      SnsFactory.mattermostChannel(this, 'https://mattermost.zarhq.dev', 'zar', 'platform-alerts');