Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add DynamoDBEvents SDK Convertor package #1986

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

irina-herciu
Copy link

@irina-herciu irina-herciu commented Feb 19, 2025

Issue #, if available: #1657

Description of changes:

  • Addition of DynamoDBEvents SDK Converter Package: Implements converters that transform raw DynamoDB event data into .NET classes, enhancing developer experience by providing a more intuitive object model.
  • Unit Tests: Includes comprehensive unit tests to ensure the reliability and correctness of the conversion logic.
  • Documentation Updates: Adds usage examples and API documentation to guide developers in integrating the new converters into their Lambda function

Java’s DynamodbAttributeValueTransformer provides a similar solution. The .NET SDK does not have a native implementation, but this extension library can achieve feature parity.

ConvertToSdkAttribute: Converts DynamoDBEvent.AttributeValue to Amazon.DynamoDBv2.Model.AttributeValue.
ConvertToSdkAttributeValueDictionary: Converts a dictionary of Lambda attributes to SDK attributes.
ConvertToSdkIdentity: Converts DynamoDBEvent.Identity to Amazon.DynamoDBv2.Model.Identity.
ConvertToSdkStreamRecord: Converts DynamoDBEvent.StreamRecord to Amazon.DynamoDBv2.Model.StreamRecord.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@irina-herciu irina-herciu changed the base branch from master to dev February 19, 2025 08:14
@irina-herciu irina-herciu marked this pull request as ready for review February 19, 2025 08:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant