AWS Lambda response in Java for Cognito
问题 How can I write an "AWS Lambda response" in Java so that Cognito is happy? Something like this is passed to the lambda function { "version": number, "triggerSource": "string", "region": AWSRegion, "userPoolId": "string", "callerContext": { "awsSdkVersion": "string", "clientId": "string" }, "request": { "userAttributes": { "string": "string", .... } }, "response": {} } Now I need to make the response in Java.. and send back to Cognito. At the moment Cognito throws an