You can configure AWS PrivateLink to enable private communication between the serverless runtime environment hosted on AWS platform and a REST endpoint.
For more information about configuring AWS PrivateLink, see "Serverless runtime environments" in Runtime Environments in the Administrator help.