Question on AWSSDK.DynamoDBv2 that Document class have not been updated to support .NET 8 native AOT

0

I want to develop Lambda using .NET 8 AOT (Ahead Of Time) . This Lambda can access and manipulate AWS DynamoDB data because I have granted it the associated access permissions.

But when I use the Document class from AWSSDK.DynamoDBv2 (version 3.7.300.20) I get this warning:

Warning IL2026 Using member 'Amazon.DynamoDBv2.DocumentModel.Document.Document()' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. The Amazon DynamoDB high level libraries in the DocumentModel and DataModel namespace have not been updated to support Native AOT.

In fact, using the same code, I can successfully deployed a Lambda with .NET 7 AOT and didn't see any warnings about Amazon.DynamoDBv2.DocumentModel.Document.Document.

Now, what should I do to make this .NET8 AOT Lambda work like a .NET 7 AOT Lambda without changing my code?

No Answers

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions