The SAM template deploys an Amazon API Gateway Regional Custom Domain Name.
The Regional Custom Domain Name is mapped to a Stage in an existing API Gateway. Additionally, a Route53 A record is created to map the Regional Custom Domain Name (i.e. example.com) to the Target Domain Name created by API Gateway (i.e. d-abcde12345.execute-api.ap-southeast-2.amazonaws.com).
As prerequisites for this pattern, you must have:
* A valid certificate in ACM (Amazon Certificate Manager) that covers the namespace of the domain you would like to use (i.e. *.mydomain.com).
* A public Hosted Zone in Route 53 with the domain name you would like to use (i.e. mydomain.com).
* An API Gateway API (REST, HTTP or Websockets) and a deployed Stage within this API.