Replies: 3 comments
-
@Simonl9l I think you are referring to add |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
Hi, I am having the same issue when trying to convert a json DynamoStream event to a |
Beta Was this translation helpful? Give feedback.
-
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_DEBUG
environment 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?
Beta Was this translation helpful? Give feedback.
All reactions