Amazon CloudWatch Synthetics Type Support for syn-nodejs-puppeteer-* runtime
npm install @aws/synthetics-broken-link-checker-reportTypeScript type definitions for Amazon CloudWatch Synthetics broken link checker reporting functionality in syn-nodejs-puppeteer-* runtime.
Please ensure the type definition package version matches your canary's runtime version.
``bash`
npm install @aws/synthetics-broken-link-checker-report
`typescript
const BrokenLinkCheckerReport = require('@aws/synthetics-broken-link-checker-report');
const SyntheticsLink = require('@aws/synthetics-link');
let brokenLinkCheckerReport = new BrokenLinkCheckerReport();
// Add links to the report
const link = new SyntheticsLink('https://example.com');
brokenLinkCheckerReport.addLink(link);
// Get report data
const allLinks = brokenLinkCheckerReport.getLinks();
const brokenCount = brokenLinkCheckerReport.getTotalBrokenLinks();
const totalCount = brokenLinkCheckerReport.getTotalLinksChecked();
``
This package provides complete TypeScript type definitions for the Amazon CloudWatch Synthetics Node.js Puppeteer runtime broken link checker report functionality, enabling full IntelliSense support and type checking in your canary scripts.
See CONTRIBUTING for more information.
This project is licensed under the Apache-2.0 License.