Skip to content

Event handlers

This content has moved!

We have moved our samples to a separate, dedicated site:

This document is no longer being maintained.

The event handlers provide examples to process metadata creation, update and deletion events in real-time:

  • ScoreCalculator calculates a completeness score for an asset any time the asset changes, and populates the result into custom metadata on the asset.
  • VerificationEnforcer checks whether an asset that has been given a certificate of VERIFIED is worthy of it, and if not automatically reverts the certificate to DRAFT with an explanatory message.

Setting up the event handlers

To set up the event handlers, follow the instructions in the handling webhooks via AWS Lambda pattern.