2.0.44 • Published 2 years ago

typescript-aws-sns-helper v2.0.44

Weekly downloads
55
License
MIT
Repository
github
Last release
2 years ago

Install

npm install typescript-aws-sns-helper@latest

Usage

Default - running in Lambda in your own account

const logger = new Logger(LogLevel.Trace);

const helper = new SNSHelper(logger);

const response = await helper.PublishAsync('topic', 'subject', 'message');

Running in separate account or not in Lambda

import * as SNS from '@aws-sdk/client-sns';

const logger = new Logger(LogLevel.Trace);

const options: SNS.SNSClientConfig = {
  accessKeyId: '{access_key}',
  secretAccessKey: '{secret_key}',
  region: 'us-east-1',
};

const repository = new SNS.SNS(options);

const helper = new SNSHelper(logger, repository);

const response = await helper.PublishAsync('topic', 'subject', 'message');

Notes

If no options are supplied, will default to us-east-1 as the region

Development

Clone the latest and run

npm run prep

to install packages and prep the git hooks

2.0.44

2 years ago

2.0.43

2 years ago

2.0.42

2 years ago

2.0.41

3 years ago

2.0.40

3 years ago

2.0.39

3 years ago

2.0.29

3 years ago

2.0.38

3 years ago

1.0.187

3 years ago

2.0.15

3 years ago

2.0.14

3 years ago

2.0.2

3 years ago

1.0.165

3 years ago

1.0.152

3 years ago

1.0.126

4 years ago

1.0.105

4 years ago

1.0.92

4 years ago

1.0.77

4 years ago

1.0.61

4 years ago

1.0.40

4 years ago

1.0.38

4 years ago

1.0.33

4 years ago

1.0.26

4 years ago

1.0.18

4 years ago

1.0.16

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.15

4 years ago

1.0.14

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago