From c2664e56cdbf6f8d06041bada4c37957584a1687 Mon Sep 17 00:00:00 2001 From: Nick Lynch Date: Thu, 30 Jul 2020 17:09:10 +0100 Subject: [PATCH] chore(cloudfront): README updates and notes of breaking changes Making a small -- but useful -- README change as an excuse to capture the breaking changes made in #9326, but that were missed in that commit message. BREAKING CHANGE: Removed origin classes from the aws-cloudfront module. * **aws-cloudfront:** Removed S3Origin and HttpOrigin from the aws-cloudfront module. Use the S3Origin and HttpOrigin classes in the aws-cloudfront-origins module instead. * **aws-cloudfront:** Renamed Origin to OriginBase. --- packages/@aws-cdk/aws-cloudfront/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/@aws-cdk/aws-cloudfront/README.md b/packages/@aws-cdk/aws-cloudfront/README.md index e0a38d797088d..44bfe03e680eb 100644 --- a/packages/@aws-cdk/aws-cloudfront/README.md +++ b/packages/@aws-cdk/aws-cloudfront/README.md @@ -36,7 +36,8 @@ for more complex use cases. CloudFront distributions deliver your content from one or more origins; an origin is the location where you store the original version of your content. Origins can be created from S3 buckets or a custom origin (HTTP server). Each distribution has a default behavior which applies to all -requests to that distribution, and routes requests to a primary origin. +requests to that distribution, and routes requests to a primary origin. Constructs to define origins are in the `@aws-cdk/aws-cloudfront-origins` +module. #### From an S3 Bucket @@ -323,7 +324,6 @@ const distribution = new CloudFrontWebDistribution(this, 'MyDistribution', { In case the origin source is not available and answers with one of the specified status code the failover origin source will be used. - ```ts new CloudFrontWebDistribution(stack, 'ADistribution', { originConfigs: [