Skip to content

Commit

Permalink
Polish.
Browse files Browse the repository at this point in the history
  • Loading branch information
SydneyUni-Jim committed Jun 22, 2024
1 parent c3a7494 commit 121fba1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/aws-cdk-lib/aws-cloudfront/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -597,12 +597,12 @@ function handler(event) {
//
return {
statusCode: 302, statusDescription: 'Found',
headers: { location: { value: 'https://www.example.com/' } }, // %DEFAULT_REDIRECT% is replaced during CDK synth
headers: { location: { value: 'https://www.example.com/' } }, // https://www.example.com/ is replaced during CDK synth
}
}
```

> **Note:** This is simple find and replace, like that of a non-intelligent text
> **Note:** This is a simple find and replace, like that of a non-intelligent text
> editor. The CDK does not look for whole identifiers, strings, or words. The
> CDK replaces anything in your code that matches `find` regardless of its context.
>
Expand Down Expand Up @@ -675,12 +675,12 @@ new cloudfront.Function(this, 'Function', {

In your CloudFront function, put `%KVS_ID%` where you would normally put the key value store ID.

```ts
```js
import cf from 'cloudfront';
const kvsId = "%KVS_ID%";
const kvsHandle = cf.kvs(kvsId);

function handler(event) {
async function handler(event) {
//
}
```
Expand Down

0 comments on commit 121fba1

Please sign in to comment.