4.0.0 • Published 1 year ago

@dustfoundation/dynamodb-observer v4.0.0

Weekly downloads
-
License
-
Repository
github
Last release
1 year ago

@dustfoundation/dynamodb-observer

CI NPM Version Minimum Node.js Version

DynamoDB Observer to monitor Unit Capacity usage.

Installation

npm install --save @dustfoundation/dynamodb-observer

Usage

Default

import { DynamoDB } from '@dustfoundation/dynamodb-observer';

const client = new DynamoDB({
  region: 'eu-central-1',
  keys: { ['table-name']: 'userId' },
});

Dynamoose

import { DynamoDB } from '@dustfoundation/dynamodb-observer';
import { aws, Schema } from 'dynamoose';

const SomeSchema = new Schema({
  userId: { type: String, hashKey: true },
});

const client = new DynamoDB({
  region: 'eu-central-1',
  keys: { ['table-name']: SomeSchema.hashKey },
});
aws.ddb.set(client);
4.0.0

1 year ago

3.1.1

1 year ago

1.0.1

2 years ago

1.0.0

2 years ago

0.0.1

2 years ago