From 1f061d5f77008a121f0ca87ceea262f5a010730f Mon Sep 17 00:00:00 2001 From: Shuto Yukawa Date: Tue, 31 Mar 2026 19:01:30 +0900 Subject: [PATCH] docs: fix "allows to" grammar in README files "allows to " is grammatically incorrect. The verb "allow" requires an object before the infinitive. --- packages/aws-cdk-lib/aws-kms/README.md | 2 +- packages/aws-cdk-lib/aws-lambda-destinations/README.md | 4 ++-- packages/aws-cdk-lib/aws-lambda-nodejs/README.md | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/aws-cdk-lib/aws-kms/README.md b/packages/aws-cdk-lib/aws-kms/README.md index 624c44744e745..56058f954e89b 100644 --- a/packages/aws-cdk-lib/aws-kms/README.md +++ b/packages/aws-cdk-lib/aws-kms/README.md @@ -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 diff --git a/packages/aws-cdk-lib/aws-lambda-destinations/README.md b/packages/aws-cdk-lib/aws-lambda-destinations/README.md index 38231ce76babd..af124a7691dda 100644 --- a/packages/aws-cdk-lib/aws-lambda-destinations/README.md +++ b/packages/aws-cdk-lib/aws-lambda-destinations/README.md @@ -122,7 +122,7 @@ payload file in the configured bucket is `aws/lambda/async//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 @@ -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. diff --git a/packages/aws-cdk-lib/aws-lambda-nodejs/README.md b/packages/aws-cdk-lib/aws-lambda-nodejs/README.md index 5af890cf77d31..bd3f1766349e6 100644 --- a/packages/aws-cdk-lib/aws-lambda-nodejs/README.md +++ b/packages/aws-cdk-lib/aws-lambda-nodejs/README.md @@ -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,