Unmarshalling DynamoDB streams event: events.DynamoDBAttributeValue #1680
-
Describe the issue with documentationcannot use record.OldImage (variable of type map[string]events.DynamoDBAttributeValue) as map[string]"github.com/aws/aws-sdk-go-v2/service/dynamodb/types".AttributeValue value in argument to attributevalue.UnmarshalMap Suggestionhttps://aws.github.io/aws-sdk-go-v2/docs/code-examples/dynamodb/ is very light. We need some serious examples, like saving removed dynamodb Items via DynamoDB streams. I am puzzled how to unmarshal https://pkg.go.dev/github.com/aws/[email protected]/events?utm_source=gopls#DynamoDBStreamRecord.OldImage using https://pkg.go.dev/github.com/aws/aws-sdk-go-v2/feature/dynamodb/[email protected]?utm_source=gopls#UnmarshalMap ... are they not effectively the same?
I'm very confused. AWS Go SDK version usedv1.23.0 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Please see this discussion and this gist. Hope this helps! |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
Please see this discussion and this gist. Hope this helps!