-
Notifications
You must be signed in to change notification settings - Fork 228
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
Failed to serialize CognitoUserPoolPreTokenGenerationEvent #433
Comments
If you change the method to <String, String> and log out the event. What does it look like? Obviously please don't share any sensitive details. |
|
any news here? |
I have figured out what the problem is. The |
Would you like to submit a PR? |
Can I get away with just a patch? |
Looks like I managed to create a pull request. |
Hello,
I am trying to use cognito and a java pre-token generation event lambda https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-pre-token-generation.html
I wrote a lambda and used the following class as my lambda definition: com.amazonaws.services.lambda.runtime.RequestHandler<com.amazonaws.services.lambda.runtime.events.CognitoUserPoolPreTokenGenerationEvent, com.amazonaws.services.lambda.runtime.events.CognitoUserPoolPreTokenGenerationEvent>
this doesn't seem to be able to parse the input at all and I get the following output in the logs:
If however I use
com.amazonaws.services.lambda.runtime.RequestStreamHandler
I do in fact see the correct input in the lambda log. Please helpThe text was updated successfully, but these errors were encountered: