How to convert DynamoDBEvent images to DynamoDBv2.Document ? #1654
Answered
by
dscpinheiro
Dreamescaper
asked this question in
Q&A
-
I have a lambda subscribed to dynamoDb events. I want to convert event's records to regular JSON, currently we use something like that: public async Task FunctionHandler(DynamoDBEvent input, ILambdaContext context)
{
foreach (var record in input.Records)
{
var image = record.Dynamodb.NewImage;
var document = Document.FromAttributeMap(image);
var json = document.ToJson();
/* .... */
}
} However, it doesn't work after the #1648 is merged. |
Beta Was this translation helpful? Give feedback.
Answered by
dscpinheiro
Feb 5, 2024
Replies: 1 comment 6 replies
-
It's related to that change, we'll take a look. Curious: What are you using the regular JSON for? Are you saving it to a separate DynamoDB table? |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@CriggerMarg The corresponding issue is #1657