Replies: 4 comments
|
Hi @ashishdhingra - thanks for the reply - No, I don't thing so...as this is not Annotation support specific. I'm actually referring the the ability to code generation per I'm not sure what the scope of for var batchItemFailures = new List<StreamsEventResponse.BatchItemFailure?>();
foreach (var record in dynamoEvent.Records)
{
var curRecordSequenceNumber = record.Dynamodb.SequenceNumber;
try
{
var keys = Document.FromAttributeMap(record.Dynamodb.Keys);
var json = keys.ToJson();
var key = JsonSerializer.Deserialize<Key>(json);
//Todo: process records
}
catch (Exception ex)
{
batchItemFailures.Add(new StreamsEventResponse.BatchItemFailure { ItemIdentifier = curRecordSequenceNumber });
return new StreamsEventResponse { BatchItemFailures = batchItemFailures.Where(item => item is not null).ToList() };
}
}
return new StreamsEventResponse { BatchItemFailures = batchItemFailures.Where(item => item is not null).ToList() };
}Is this what the "pending" scope covers - as there is limited detail in #961 as to that each items means. |
|
Hi, I am having the same issue when trying to convert a json DynamoStream event to a |
|
It's been a few years, but we had made some changes to the |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi whilst I can probably set up my own POCO structure to model the event, it seem sensible to just use the one provided - is there an expectation that the should be easily serializable with a code generated serializer?
The DynamoDBEvents documentation does not indicate that any specific converters need to be registered.
I note that when using the
LAMBDA_NET_SERIALIZER_DEBUGenvironment variable the Event is successful deserialized in the lambda runtime/bootstrap middleware.Im using the following :
I'm hooking serializer up in the
main:With the sterilizer configures as follows:
This is my Function Hander:
And get this exception when trying to use a code generated sterilizer as the event fires:
Any Recommendations?
All reactions