Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Open
Labels
enhancementNew feature or request p2This is a standard priority issue
@obones

Description

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 request p2This 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

        AltStyle によって変換されたページ (->オリジナル) /