AWS CDK で `CloudFrontWebDistribution` を使ってはいけない



The Distribution API is currently being built to replace the existing CloudFrontWebDistribution API. The Distribution API is optimized for the most common use cases of CloudFront distributions (e.g., single origin and behavior, few customizations) while still providing the ability for more advanced use cases. The API focuses on simplicity for the common use cases, and convenience methods for creating the behaviors and origins necessary for more complex use cases.

Distribution を使いましょう

ぼくの場合 CloudFrontWebDistribution だと CachePolicy を作れなくて困りました