0.5.23
The main feature in this new version is the support for DynamoDB events via typed class handlers. Added in #560 and #561 by @jasonmccallister and @pmayet.
Example of such a handler:
class MyHandler extends DynamoDbHandler
{
public function handleDynamoDb(DynamoDbEvent $event, Context $context): void
{
// the $event variable is typed and provides information
// about the records that triggered the event
// for example:
$updatedRecord = $event->getRecords()[0]->getNewImage();
}
}
To configure this in serverless.yml
, create a function using the php-73
/php-74
function runtime and follow the documentation here: https://serverless.com/framework/docs/providers/aws/events/streams/
Additionally, this release should fix the fix of the fix for the vendor/bin/bref dashboard
command 🤓