I'm trying to deserialize value to restore Kafka message value. But i can not find proper deserializer. I receive following value:
AAAAAAKWBQACDkdMIE5hbWUgc3QuIEhlcm9pdiBQcmFjaRpiLjI4LCBhcHAuMTUwDktoYXJraXYES0gKODU0MzQSMDk4NDMyMzIzAK61xYSfXgIKMTE6MzICDFRSMTIzMghLeWl2
But when i'm trying to get string representation of deserialized message by:
var bytes = Convert.FromBase64String("AAAAAAKWBQACDkdMIE5hbWUgc3QuIEhlcm9pdiBQcmFjaRpiLjI4LCBhcHAuMTUwDktoYXJraXYES0gKODU0MzQSMDk4NDMyMzIzAK61xYSfXgIKMTE6MzICDFRSMTIzMghLeWl2");
var jsonBack = Encoding.UTF8.GetString(bytes);
And it's only partially able to deserialize it. with extra symbols. I can't find any docs on how it serialized and can not see the structure of it. Does anyone seen the same while working with AWS Lambda with MSK trigger for .Net
Bellow i give an example of message from aws docs. But there's no word about what's kept in value (Key & value of message and what's the form)

I have created a class that I use for this. I ran into similar issue when I started working with this because AWS only has given the example of node JS. So from there I created the below class that works just fine. Try it. Use this class as the type of payload received to your lambda function. So your handler signature would look like below. Please note that you would need to base64decode the 'body' property in the class 'KafkaMessage' below.