@dustfoundation/dynamodb-observer
TypeScript icon, indicating that this package has built-in type declarations

4.0.0 • Public • Published

@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);

Readme

Keywords

none

Package Sidebar

Install

npm i @dustfoundation/dynamodb-observer

Weekly Downloads

2

Version

4.0.0

License

none

Unpacked Size

9.63 kB

Total Files

5

Last publish

Collaborators

  • hibanka
  • maxim-levitskiy