github.com/Foodji/aws-lambda-go@v1.20.2/events/testdata/cognito-event-userpools-custommessage.json (about)

     1  {
     2    "version": "1",
     3    "triggerSource": "CustomMessage_SignUp/CustomMessage_ResendCode/CustomMessage_ForgotPassword/CustomMessage_VerifyUserAttribute",
     4    "region": "<region>",
     5    "userPoolId": "<userPoolId>",
     6    "userName": "<userName>",
     7    "callerContext": {
     8        "awsSdkVersion": "<calling aws sdk with version>",
     9        "clientId": "<apps client id>"
    10    },
    11    "request": {
    12        "userAttributes": {
    13            "phone_number_verified": true,
    14            "email_verified": false
    15         },
    16        "codeParameter": "####",
    17        "usernameParameter": "{username}",
    18        "clientMetadata": {
    19          "exampleMetadataKey": "example metadata value"
    20        }
    21    },
    22    "response": {
    23        "smsMessage": "<custom message to be sent in the message with code parameter>",
    24        "emailMessage": "<custom message to be sent in the message with code parameter>",
    25        "emailSubject": "<custom email subject>"
    26    }
    27  }