The method GetKeys of DynamodbStreamRecord returns the primary key attributes for the modified DynamoDB item. Consider using the GetKeys method directly to fetch the primary key for the modified DynamoDB item.
GetKeys
DynamodbStreamRecord