concept PrivateLink in category aws

This is an excerpt from Manning's book AWS Security.
The rules that we create for controlling network access in AWS apply to various networking resources. In order to understand how those rules work, we first need to understand the primary networking resources available to us. At the highest level we have the VPC. A VPC represents an isolated network. Within a VPC we have subnets, or individual sub-networks. Most networked-resources like EC2 instances are attached to a subnet. These subnets can be either public or private, which refers to whether or not resources within the subnet are accessible over the public internet. Traffic between resources within a VPC will be routed through the VPC. That means that the traffic does not leave the VPC, and is not vulnerable to the same kinds of snooping and man-in-the-middle attacks as if it had gone over the public internet. For this reason it is generally better to keep traffic within a VPC when possible, and not route traffic over the public internet. This is such an important concept that several networking resources exist for specifically this purpose, like VPC Peering, PrivateLink, and TransitGateways, which we'll cover in this and the following chapter.
In addition to networking with AWS services, you can create VPC endpoints for your own applications using AWS PrivateLink. Suppose your customers call your service through an API. You could set up PrivateLink for your API, then your customers could privately access your API from a VPC by routing through an interface VPC endpoint instead of over the public internet. This scenario is depicted in Figure 5.2.