Api Gateway Domain Name Not Working. Then change it to your custom domain and things should work. The AWSApiGatewayDomainName resource specifies a custom domain name for your API in API Gateway.
Submit a HTTP request to theAPI Gateway assigned URL like this. Invalid certificates produce warnings. For more information about using custom domain names see Set up Custom Domain Name for an API in API Gateway in the API Gateway Developer Guide.
There are a number of endpoints to which you can assign a custom domain name.
API Gateway looks for a connection between the Host header and declared APIs passes the request to the Lambda and responds to the browser The user receives the response ie. There are a number of endpoints to which you can assign a custom domain name. The following OpenAPI API definition file shows an example of an API with a proxy resource that is integrated with a Lambda function named SimpleLambda4ProxyResource. In the Endpoints pane select your interface VPC endpoint.