UNPKG

@mbc-cqrs-serverless/core

Version:
11 lines (10 loc) 484 B
import { ConfigService } from '@nestjs/config'; import { SnsEvent } from './sns.event'; import { SnsClientFactory } from './sns-client-factory'; export declare class SnsService { private readonly snsClientFactory; private readonly config; private readonly defaultTopicArn; constructor(snsClientFactory: SnsClientFactory, config: ConfigService); publish<T extends SnsEvent>(msg: T, topicArn?: string): Promise<import("@aws-sdk/client-sns").PublishCommandOutput>; }