Glossing at the documentation for DynamoDB Streams, I encountered that the dynamodb object is optional
https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_streams_Record.html
This seems intuitively to me like something that should always be defined and included? In which cases can I assume that it will be undefined?