From b2eb86c8445924c721bc02182f3101f89a8daca3 Mon Sep 17 00:00:00 2001 From: Grace Luo <54298030+gracelu0@users.noreply.github.com> Date: Thu, 9 May 2024 16:32:12 -0700 Subject: [PATCH] chore(cloudfront): fix example formatting in README (#30133) Fix code formatting in README to make examples readable ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license* --- packages/aws-cdk-lib/aws-cloudfront/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/aws-cdk-lib/aws-cloudfront/README.md b/packages/aws-cdk-lib/aws-cloudfront/README.md index 673daa77f052d..965e3cbac7f69 100644 --- a/packages/aws-cdk-lib/aws-cloudfront/README.md +++ b/packages/aws-cdk-lib/aws-cloudfront/README.md @@ -539,7 +539,7 @@ Additionally, you can load the function's code from a file using the `FunctionCo If you set `autoPublish` to false, the function will not be automatically published to the LIVE stage when it’s created. -``ts +```ts new cloudfront.Function(this, 'Function', { code: cloudfront.FunctionCode.fromInline('function handler(event) { return event.request }'), runtime: cloudfront.FunctionRuntime.JS_2_0,