DynamoDB Observer to monitor Unit Capacity usage.
npm install --save @dustfoundation/dynamodb-observer
import { DynamoDB } from '@dustfoundation/dynamodb-observer';
const client = new DynamoDB({
region: 'eu-central-1',
keys: { ['table-name']: 'userId' },
});
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);