From 33c557d62772488bed35c3ab6317194f40e90187 Mon Sep 17 00:00:00 2001 From: Kazuho CryerShinozuka Date: Sat, 11 Jan 2025 08:53:08 +0900 Subject: [PATCH] update --- packages/aws-cdk-lib/aws-synthetics/lib/code.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/aws-cdk-lib/aws-synthetics/lib/code.ts b/packages/aws-cdk-lib/aws-synthetics/lib/code.ts index 5443b7e91ee0c..c9d6f1b350d17 100644 --- a/packages/aws-cdk-lib/aws-synthetics/lib/code.ts +++ b/packages/aws-cdk-lib/aws-synthetics/lib/code.ts @@ -154,12 +154,12 @@ export class AssetCode extends Code { if (family === RuntimeFamily.NODEJS && runtimeName.includes('puppeteer') && !fs.existsSync(path.join(assetPath, 'nodejs', 'node_modules', nodeFilename))) { throw new Error(`The canary resource requires that the handler is present at "nodejs/node_modules/${nodeFilename}" but not found at ${this.assetPath} (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_WritingCanary_Nodejs.html)`); } - // Requires the canary handler file to have the extension '.js', '.mjs', or '.cjs' for playwright runtime. + // Requires the canary handler file to have the extension '.js', '.mjs', or '.cjs' for the playwright runtime. if (family === RuntimeFamily.NODEJS && runtimeName.includes('playwright') && !hasValidExtension) { throw new Error(`The canary resource requires that the handler is present at one of the following extensions: ${playwrightValidExtensions.join(', ')} but not found at ${this.assetPath}`); } } - // Requires asset directory to have the structure 'python/{canary-handler-name}.py' for Python runtime. + // Requires the asset directory to have the structure 'python/{canary-handler-name}.py' for the Python runtime. if (family === RuntimeFamily.PYTHON && !fs.existsSync(path.join(assetPath, 'python', pythonFilename))) { throw new Error(`The canary resource requires that the handler is present at "python/${pythonFilename}" but not found at ${this.assetPath} (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_WritingCanary_Python.html)`); }