aws-client-js-sdk
v1.1.0
Published
A simple wrapper around `aws-sdk` that provides utility functions for SNS
Downloads
23
Readme
aws-client-js-sdk
A simple wrapper around aws-sdk
that provides utility functions for SNS
Installation
npm install aws-client-js-sdk --save
Usage SNSClient
TypeScript Example
import { SnsClient } from 'fetch-client-node-sdk';
const snsClient = new SnsClient({
accessKey: 'my-secret',
secretKey: 'my-secret',
topicArn: 'my-topic',
region: 'ap-southeast-2'
});
export class MyService {
sendMessage(message: message): Promise<any> {
return this.snsClient.publish(message);
}
}