Starting today, the Amplify CLI (part of the open source Amplify Framework) includes support for adding and configuring AWS Lambda triggers for events when using Amazon Cognito, Amazon Simple Storage Service, and Amazon DynamoDB as event sources. This enables developers to setup customized authentication flows for their mobile and web applications from the Amplify CLI using Amazon Cognito User Pool as an authentication provider.  

from Recent Announcements