AWS and serverless framework currently, view smart contract details is publicly accessible but how to restrict access

urls being served by aws api gateway