2.0.50 • Published 2 years ago

typescript-aws-dynamo-helper v2.0.50

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

Install

npm install typescript-aws-dynamo-helper@latest

Usage

Default - running in Lambda in your own account

const logger = new Logger(LogLevel.Trace);

const helper = new DynamoHelper(logger);

const response = await helper.GetItemByKeyAsync(
  'tableName',
  'keyName',
  'keyValue',
);

Running in separate account or not in Lambda

import * as DynamoDB from '@aws-sdk/client-dynamodb';

const logger = new Logger(LogLevel.Trace);

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

const repository = new DynamoDB.DynamoDB(options);

const helper = new DynamoHelper(logger, repository);

const response = await helper.GetItemByKeyAsync(
  'tableName',
  'keyName',
  'keyValue',
);

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

2 years ago

2.0.49

2 years ago

2.0.48

2 years ago

2.0.47

3 years ago

2.0.46

3 years ago

2.0.44

3 years ago

2.0.45

3 years ago

2.0.42

3 years ago

2.0.43

3 years ago

2.0.41

3 years ago

2.0.31

3 years ago

2.0.40

3 years ago

2.0.15

3 years ago

1.0.193

3 years ago

2.0.14

3 years ago

2.0.2

3 years ago

1.0.171

3 years ago

1.0.158

3 years ago

1.0.131

4 years ago

1.0.110

4 years ago

1.0.97

4 years ago

1.0.82

4 years ago

1.0.66

4 years ago

1.0.45

4 years ago

1.0.43

4 years ago

1.0.33

4 years ago

1.0.31

4 years ago

1.0.23

4 years ago

1.0.18

4 years ago

1.0.16

4 years ago

1.0.9

4 years ago

1.0.11

4 years ago

1.0.21

4 years ago

1.0.10

4 years ago

1.0.20

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago