-
Notifications
You must be signed in to change notification settings - Fork 557
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Event Type for CognitoEventUserPoolsCustomEmailSender #370
Comments
@makeitraina |
@PrakashSuthar |
I'm facing the same issue, unable to find |
There seems to be an issue with official event struct aws-lambda-go/events/cognito.go Line 291 in de51f68
Actual event that is received into lambda is:
|
This is an issue with the CognitoEventUserPoolsCustomMessage struct as @KlemenKozelj mentioned above. The specific issue is the json attribute that the struct is searching for to populate the CodeParameter value. It is searching for I worked around this by copying those structs into my lambda and modifying the above, then using that type directly instead of using it under the events namespace. Would be good for this to get a fix. |
Is your feature request related to a problem? Please describe.
The events types include types for all cognito event triggers except for the custom sender triggers. It seems there should be types for the custom email sender event and custom sms sender event. This is so that the functionality described here can be implemented in a golang lambda.
Describe the solution you'd like
I think the solution is to have an event type for CognitoEventUserPoolsCustomEmailSender
Describe alternatives you've considered
Trying to use the existing type of CognitoEventUserPoolsCustomMessage since it most closely resembles this function. Naturally I have not tested this extensively to see what data is missing/would cause an error.
My current handler signature looks like
The text was updated successfully, but these errors were encountered: