Skip to content

Commit fbb0418

Browse files
authored
chore(cloudfront): README updates and notes of breaking changes (#9356)
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. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent 3cf6a94 commit fbb0418

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/@aws-cdk/aws-cloudfront/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ for more complex use cases.
3636

3737
CloudFront distributions deliver your content from one or more origins; an origin is the location where you store the original version of your
3838
content. Origins can be created from S3 buckets or a custom origin (HTTP server). Each distribution has a default behavior which applies to all
39-
requests to that distribution, and routes requests to a primary origin.
39+
requests to that distribution, and routes requests to a primary origin. Constructs to define origins are in the `@aws-cdk/aws-cloudfront-origins`
40+
module.
4041

4142
#### From an S3 Bucket
4243

@@ -323,7 +324,6 @@ const distribution = new CloudFrontWebDistribution(this, 'MyDistribution', {
323324
In case the origin source is not available and answers with one of the
324325
specified status code the failover origin source will be used.
325326

326-
327327
```ts
328328
new CloudFrontWebDistribution(stack, 'ADistribution', {
329329
originConfigs: [

0 commit comments

Comments
 (0)