2.0.48 • Published 2 years ago

typescript-aws-lambda-helper v2.0.48

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

Install

npm install typescript-aws-lambda-helper@latest

Usage

Default - running in Lambda in your own account

const logger = new Logger(LogLevel.Trace);

const helper = new LambdaHelper(logger);

const response = await helper.InvokeAsync('lambdaName', 'payload');

Running in separate account or not in Lambda

import * as Lambda from '@aws-sdk/client-lambda';

const logger = new Logger(LogLevel.Trace);

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

const repository = new Lambda.Lambda(options);

const helper = new LambdaHelper(logger, repository);

const response = await helper.InvokeAsync('lambdaName', 'payload');

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.48

2 years ago

2.0.47

2 years ago

2.0.46

2 years ago

2.0.45

3 years ago

2.0.44

3 years ago

2.0.42

3 years ago

2.0.43

3 years ago

2.0.40

3 years ago

2.0.41

3 years ago

2.0.29

3 years ago

2.0.38

3 years ago

1.0.186

3 years ago

2.0.15

3 years ago

2.0.14

3 years ago

2.0.2

3 years ago

1.0.164

3 years ago

1.0.151

3 years ago

1.0.125

4 years ago

1.0.104

4 years ago

1.0.91

4 years ago

1.0.76

4 years ago

1.0.60

4 years ago

1.0.39

4 years ago

1.0.37

4 years ago

1.0.27

4 years ago

1.0.19

4 years ago

1.0.17

4 years ago

1.0.16

4 years ago

1.0.10

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.15

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago