Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/aws-cdk-lib/aws-kms/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ must be set to `true`. By default, this flag is `false` and grant calls on an im

If you can't use a KMS key imported by alias (e.g. because you need access to the key id), you can lookup the key with `Key.fromLookup()`.

In general, the preferred method would be to use `Alias.fromAliasName()` which returns an `IAlias` object which extends `IKey`. However, some services need to have access to the underlying key id. In this case, `Key.fromLookup()` allows to lookup the key id.
In general, the preferred method would be to use `Alias.fromAliasName()` which returns an `IAlias` object which extends `IKey`. However, some services need to have access to the underlying key id. In this case, `Key.fromLookup()` allows you to look up the key id.

The result of the `Key.fromLookup()` operation will be written to a file
called `cdk.context.json`. You must commit this file to source control so
Expand Down
4 changes: 2 additions & 2 deletions packages/aws-cdk-lib/aws-lambda-destinations/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ payload file in the configured bucket is `aws/lambda/async/<function-name>/YYYY/

### Auto-extract response payload with lambda destination

The `responseOnly` option of `LambdaDestination` allows to auto-extract the response payload from the
The `responseOnly` option of `LambdaDestination` allows you to auto-extract the response payload from the
invocation record:

```ts
Expand All @@ -146,5 +146,5 @@ In the above example, `destinationFn` will be invoked with the payload returned
When used with `onFailure`, the destination function is invoked with the error object returned
by the source function.

Using the `responseOnly` option allows to easily chain asynchronous Lambda functions without
Using the `responseOnly` option allows you to easily chain asynchronous Lambda functions without
having to deal with data extraction in the runtime code.
2 changes: 1 addition & 1 deletion packages/aws-cdk-lib/aws-lambda-nodejs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ new nodejs.NodejsFunction(this, 'my-handler', {
charset: nodejs.Charset.UTF8, // do not escape non-ASCII characters, defaults to Charset.ASCII
format: nodejs.OutputFormat.ESM, // ECMAScript module output format, defaults to OutputFormat.CJS (OutputFormat.ESM requires Node.js >= 14)
mainFields: ['module', 'main'], // prefer ECMAScript versions of dependencies
inject: ['./my-shim.js', './other-shim.js'], // allows to automatically replace a global variable with an import from another file
inject: ['./my-shim.js', './other-shim.js'], // allows you to automatically replace a global variable with an import from another file
esbuildArgs: { // Pass additional arguments to esbuild
"--log-limit": "0",
"--splitting": true,
Expand Down
Loading