This template creates a custom domain name of `example.mydomain.com` for an API in API Gateway. It uses parameters to specify the domain name, base path, and REST API name. It also creates a certificate, a base path mapping, and a REST API resource.

CloudFormation Template