Skip to content

[Feature]: Support the AWS.DynamoDB.Converter methods #751

@obones

Description

@obones

Self-service

  • I'd be willing to implement this feature

Problem

As I'm processing DynamoDB notifications with a lambda function, I have the following code:

const keys = AWS.DynamoDB.Converter.unmarshall(record.dynamodb.Keys);

But this is not being converted, just left as is.
Note that the const AWS = require("aws-sdk"); line is not removed in that case leading to a non running code.

Solution

Ideally, this should add the following import

const { unmarshall } = require("@aws-sdk/util-dynamodb");

and change the code to this

const keys = unmarshall(record.dynamodb.Keys);

Alternatives

Converting manually was easy enough in my case

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestp2This is a standard priority issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions