Four lambda triggers are used (link to AWS documentation):
- Pre-Sign-Up
- Define Challenge
- Create Challenge
- Verify Challenge
The first trigger auto-confirms users pre-sign-up.
The triggers 2-4 define two custom challenges:
- Send random String via E-Mail
- Send 6-digit code via SMS