I'm using serverless. I have created my user pools and protected my lambda function with a Cognito User Pool authorizer on the AWS APi gateway.
Now, inside my lambda function, I want to get my user id and other data to use as key on dynamodb storage, something like this:
module.exports.helloprotected = (event, context, callback) => {
// event.request.userAttributes; -> does not work
};