Amazon CloudWatch Synthetics Type Support for syn-nodejs-puppeteer-* runtime
npm install @aws/synthetics-log-helperTypeScript type definitions for Amazon CloudWatch Synthetics log helper class in syn-nodejs-puppeteer-* runtime.
Please ensure the type definition package version matches your canary's runtime version.
``bash`
npm install @aws/synthetics-log-helper
`typescript
const syntheticsLogHelper = require('@aws/synthetics-log-helper');
const sanitizedUrl = syntheticsLogHelper.getSanitizedUrl('URL');
const urlConfig = {
restrictedUrlParameters = ['*']
};
const sanitizedUrl = syntheticsLogHelper.getSanitizedUrl('URL', urlConfig);
``
This project is licensed under the Apache-2.0 License.