Skip to content

Commit d9a386f

Browse files
authored
Merge branch 'main' into kumvprat-patch-3
2 parents cc5f683 + b7fcdb5 commit d9a386f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -839,7 +839,7 @@ const functionVersion = lambda.Version.fromVersionArn(this, 'Version', 'arn:aws:
839839

840840
new cloudfront.Distribution(this, 'distro', {
841841
defaultBehavior: {
842-
origin: new origins.S3Origin(s3Bucket),
842+
origin: origins.S3BucketOrigin.withOriginAccessControl(s3Bucket),
843843
edgeLambdas: [
844844
{
845845
functionVersion,

0 commit comments

Comments
 (0)