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

Remove SDK dependency from DynamoDBEvent #1648

Merged
merged 2 commits into from
Jan 12, 2024
Merged

Remove SDK dependency from DynamoDBEvent #1648

merged 2 commits into from
Jan 12, 2024

Conversation

dscpinheiro
Copy link
Contributor

Issue #, if available: aws/aws-sdk-net#1116 (and internal issue DOTNET-4497)

Description of changes: Similar to #1237, this PR removes the AWSSDK.DynamoDBv2 dependency from the DynamoDBEvent class (by moving the properties from the Amazon.DynamoDBv2.Model.Record class).

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

@dscpinheiro dscpinheiro requested a review from normj January 9, 2024 22:04
@dscpinheiro dscpinheiro marked this pull request as ready for review January 9, 2024 22:04
@afroz429 afroz429 requested a review from ashovlin January 10, 2024 18:26
@dscpinheiro dscpinheiro changed the base branch from master to dev January 11, 2024 13:24
/// </li>
/// </ul>
/// </summary>
public string StreamViewType { get; set; }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an enum in the SDK, should we try to reproduce here? Though I suppose a plain .NET enum isn't as flexible as the generated constant class we use.

https://github.com/aws/aws-sdk-net/blob/459d2e5410af5a5b0e26ba6951e75bf0c420351a/sdk/src/Services/DynamoDBv2/Generated/Model/StreamRecord.cs#L180

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have to use string to be forward compatible with new enum values and we don't have the ConstantClass to use here. Which the ConstantClass cause other fun JSON serialization issues.

@dscpinheiro dscpinheiro merged commit 4329775 into dev Jan 12, 2024
4 checks passed
@dscpinheiro dscpinheiro deleted the dspin-ddb-stream branch January 12, 2024 15:06
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.

3 participants