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

0.0.0 • Public • Published

@lambda-func/dynamodb

This package contains a set of utilities for when working with DynamoDB stream handlers.

Usage

import { dynamodb } from '@lambda-func/dynamodb'

export const handler = dynamodb()(async (event) => {
  // iterates through each stream record
  console.log(event.dynamodb.NewImage)
})

Testing

This package also includes some testing utilities to make input mapping easier.

  • createUnmarshalledDynamoDBRecord() - mock the input event for the middleware stack

Other Options

  • createDynamoDBStreamEvent() - for raw event mocking
  • createDynamoDBRecord() - after record iteration

Readme

Keywords

none

Package Sidebar

Install

npm i @lambda-func/dynamodb

Weekly Downloads

6

Version

0.0.0

License

ISC

Unpacked Size

6.48 kB

Total Files

12

Last publish

Collaborators

  • cgiles95