Replies: 8 comments 9 replies
-
Beta Was this translation helpful? Give feedback.
-
Does't |
Beta Was this translation helpful? Give feedback.
-
Hi @matejvasek thanks! I tried
My code: @Funq("handle")
public Uni<? extends CognitoUserPoolEvent> handleString(byte[] cognitoPayload) {
ObjectMapper mapper = new ObjectMapper();
try {
CognitoUserPoolEvent userPoolEvent = mapper.readValue(cognitoPayload, CognitoUserPoolEvent.class); |
Beta Was this translation helpful? Give feedback.
-
@vladaman I will need to check that. I pretty sure |
Beta Was this translation helpful? Give feedback.
-
If you are using Lambda constructs like Cognito, why not just use Lambda? |
Beta Was this translation helpful? Give feedback.
-
byte[] will not work with funqy-lambda. We need to fix that. Not sure why String doesn't work for you though. You aren't getting json? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
@vladaman btw do you use |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Is there any way to conditionally parse different event types with Funqy?
We use Funqy to process multiple AWS Cognito events such as
CognitoUserPoolPreAuthenticationEvent
orCognitoUserPoolPostAuthenticationEvent
.We'd like to have single handler and single running function and branching based on the event type.
We tried following approach but getting JSON as string doesn't work here. Is there any solution to this?
Beta Was this translation helpful? Give feedback.
All reactions