Skip to content

Commit

Permalink
chore(cloudfront): fix example formatting in README (#30133)
Browse files Browse the repository at this point in the history
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*
  • Loading branch information
gracelu0 committed May 9, 2024
1 parent e87f25e commit b2eb86c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/aws-cdk-lib/aws-cloudfront/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit b2eb86c

Please sign in to comment.