UNPKG

@bitblit/ratchet-aws

Version:

Common tools for use with AWS browser and node

10 lines (9 loc) 434 B
import { PublishCommandOutput, SNSClient } from '@aws-sdk/client-sns'; export declare class SnsRatchet { private sns; private topicArn; constructor(sns: SNSClient, topicArn: string); get snsClient(): SNSClient; sendMessage(inMsg: any, suppressErrors?: boolean): Promise<PublishCommandOutput>; conditionallySendMessage(inMsg: any, condition: boolean, suppressErrors?: boolean): Promise<PublishCommandOutput>; }