I have a web angular front end an, API gateway protected by Cognito and Lambda for other business use cases. The login and authorisation works fine. I am using AWS Javascript SDK for authorising. Something like https://s3.amazonaws.com/solutions-reference/mobile-backend/latest/mobile-app-backend.pdf
In my lambda I need to get other users information like first name, second name, DOB etc.... by passing email id, which I have in my Lambda.(email id is the mandatory field in Cognito). This lambda is kicked in from the front end action. Imagine viewing some other user's profile kind of scenario.
I beleive this is the API http://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_AdminGetUser.html but I cant find the way to do in Java code.