Dynamo DB Stream event data parser for the middy framework, like json body parser but for dynamodb stream events
Taking inspiration from Json Body Parser, we decided to export this simple middleware we built
To install this middleware you can use NPM:
npm install --save @distinction-dev/dynamo-unmarshallconst middy = require('@middy/core');
const dynamoUnmarshall = require('@middy/error-logger');
const handler = middy((event, context) => {
// your handler logic
})
handler
.use(dynamoUnmarshall())-
awsproperty: The instance of theaws-sdk, If none is provided then it will simply import it. -
imageTypesproperty: An array providing which image types to convert can only contain"NewImage", "OldImage". -
converterOptionsproperty: The options that you wanna pass to the DynamoDB converter.
Licensed under MIT License.
