AWS AmazonCloudWatch documentation change
Summary
Updated require statements to use scoped AWS packages (@aws/synthetics-puppeteer, @aws/synthetics-logger, etc.) instead of unnamespaced packages
Security assessment
Package name changes don't indicate security fixes. No vulnerability references or security context provided in changes. This appears to be a maintenance update for package naming conventions.
Diff
diff --git a/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_Library_Nodejs.md b/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_Library_Nodejs.md index 92fa3bb70..13f10ad29 100644 --- a//AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_Library_Nodejs.md +++ b//AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_Library_Nodejs.md @@ -520 +520 @@ First, import the synthetics dependency and fetch the configuration. - const synthetics = require('Synthetics'); + const synthetics = require('@aws/synthetics-puppeteer'); @@ -605 +605 @@ To use the Synthetics Library logger: - const log = require('SyntheticsLogger'); + const log = require('@aws/synthetics-logger'); @@ -702 +702 @@ The first step is to set the Synthetics configuration. - const synthetics = require('Synthetics'); + const synthetics = require('@aws/synthetics-puppeteer'); @@ -705 +705 @@ The first step is to set the Synthetics configuration. - const log = require('SyntheticsLogger'); + const log = require('@aws/synthetics-logger'); @@ -715 +715 @@ The first step is to set the Synthetics configuration. - const syntheticsLogHelper = require('SyntheticsLogHelper'); + const syntheticsLogHelper = require('@aws/synthetics-log-helper'); @@ -732 +732 @@ Next, sanitize and log the URL - const syntheticsLogHelper = require('SyntheticsLogHelper'); + const syntheticsLogHelper = require('@aws/synthetics-log-helper'); @@ -776 +776 @@ The first step is to set the Synthetics configuration. - const synthetics = require('Synthetics'); + const synthetics = require('@aws/synthetics-puppeteer'); @@ -779 +779 @@ The first step is to set the Synthetics configuration. - const log = require('SyntheticsLogger'); + const log = require('@aws/synthetics-logger'); @@ -793 +793 @@ Next, sanitize and log the error message - const syntheticsLogHelper = require('SyntheticsLogHelper'); + const syntheticsLogHelper = require('@aws/synthetics-log-helper'); @@ -1113 +1113 @@ To use `BrokenLinkCheckerReport`, include the following lines in the script: - const BrokenLinkCheckerReport = require('BrokenLinkCheckerReport'); + const BrokenLinkCheckerReport = require('@aws/synthetics-broken-link-checker-report'); @@ -1143,2 +1143,2 @@ The following canary script code snippet demonstrates an example of navigating t - const BrokenLinkCheckerReport = require('BrokenLinkCheckerReport'); - const SyntheticsLink = require('SyntheticsLink'); + const BrokenLinkCheckerReport = require('@aws/synthetics-broken-link-checker-report'); + const SyntheticsLink = require('@aws/synthetics-link'); @@ -1147 +1147 @@ The following canary script code snippet demonstrates an example of navigating t - const synthetics = require('Synthetics'); + const synthetics = require('@aws/synthetics-puppeteer'); @@ -1200 +1200 @@ To use `SyntheticsLink`, include the following lines in the script: - const SyntheticsLink = require('SyntheticsLink'); + const SyntheticsLink = require('@aws/synthetics-link');