Since in this tutorial we are using both TypeScript and Python, we will take TypeScript as an example; if you are using Python, it will be similar.
First, go back to the Cognito console. In the Authentication section, select Extensions, then choose Add Lambda trigger.

In the Add Lambda trigger console, configure as follows:

Next, select the Lambda function we created earlier and click Add Lambda trigger.

