I have a lambda function that works well to keep my data retrieval in the backend but since it is my first time using lambda with Amplify I am wondering, is it better to use the lambda function that I made using the lambda portal or just try to implement the lambda function using amplify's backend, similar to https://docs.amplify.aws/javascript/build-a-backend/functions/set-up-function/ this doc?
The function logic is using an input from the user in the frontend, taken to the lambda function to AWS Cognito to retrieve user info then that user info is used to access AWS S3 data and return it back to the frontend for the user to access.