使用 Cloudformation 和 Api Gateway V1 创建 API 映射

Create API Mapping with Cloudformation and Api Gateway V1

我已经使用 CloudFormation 创建了一个 AWS Api 网关(边缘优化)。到目前为止,一切都很好。现在我想让 API 在自定义域下可用,所以我还添加了一个 custom domain resource to my CFN scripts. However, I do not see any possibility to also create an API mapping with CFN. If I create that manually, everything works fine, but I want do have it as part of the CFN scripts. I´ve seen in the documentation, that there is an ApiMapping 可用于 Api Gateway v2 资源,但据我所知,这不适用于边缘优化 APIs。你能帮我吗?

亲切的问候

BasePathMapping 确实成功了。在我看来,这并不是那么明显,因为文档没有任何地方说明该资源的用途。谢谢。