简体   繁体   English

AWS CDK - aws-cloudfront - 多种行为和起源

[英]AWS CDK - aws-cloudfront - Multiple Behaviors & Origins

How to create multiple behaviors & origins with stable API?如何使用稳定的 API 创建多种行为和起源?

There are no examples in the documentation https://docs.aws.amazon.com/cdk/api/latest/docs/aws-cloudfront-readme.html#cloudfrontwebdistribution-api-stable文档https://docs.aws.amazon.com/cdk/api/latest/docs/aws-cloudfront-readme.html#cloudfrontwebdistribution-api-stable中没有示例

Specifically, I'm interested in how to provide behavior for API Gateway.具体来说,我对如何为 API 网关提供行为感兴趣。

One of the approaches is to use a custom domain name for API gateway and use it in CloudFront.其中一种方法是为 API 网关使用自定义域名并在 CloudFront 中使用。 Details provided here: https://github.com/aws/aws-cdk/issues/9397此处提供的详细信息: https://github.com/aws/aws-cdk/issues/9397

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM