CognitoUserPoolAddCustomMessageLambda
Description (What does this pattern/example do?)
Creates a Cognito custom message trigger lambda function. Amazon Cognito invokes this trigger before it sends an email or phone verification message or a multi-factor authentication (MFA) code. See Custom message Lambda trigger for more information.
Resources
AWS::Lambda::Function
A Lambda function with default implementation that responds with a custom message to Cognito based on triggering event types.
The default implementation includes handlers for the following event types:
CustomMessage_SignUp
CustomMessage_ForgotPassword
CustomMessage_ResendCode
AWS::Lambda::Permission
Permission to grant Cognito to invoke a custom message trigger lambda function
AWS::IAM::Role
Execution role for custom message trigger lambda function