-
Notifications
You must be signed in to change notification settings - Fork 557
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added event for Cognito custom message (#185)
* Added custom messgage event * Added new line * update testdata json * review comments resolved
- Loading branch information
Showing
3 changed files
with
71 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
events/testdata/cognito-event-userpools-custommessage.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"version": "1", | ||
"triggerSource": "CustomMessage_SignUp/CustomMessage_ResendCode/CustomMessage_ForgotPassword/CustomMessage_VerifyUserAttribute", | ||
"region": "<region>", | ||
"userPoolId": "<userPoolId>", | ||
"userName": "<userName>", | ||
"callerContext": { | ||
"awsSdkVersion": "<calling aws sdk with version>", | ||
"clientId": "<apps client id>" | ||
}, | ||
"request": { | ||
"userAttributes": { | ||
"phone_number_verified": true, | ||
"email_verified": false | ||
}, | ||
"codeParameter": "####" | ||
}, | ||
"response": { | ||
"smsMessage": "<custom message to be sent in the message with code parameter>", | ||
"emailMessage": "<custom message to be sent in the message with code parameter>", | ||
"emailSubject": "<custom email subject>" | ||
} | ||
} |