aws-cdk-lib.aws_synthetics.CfnCanary.BaseScreenshotProperty

interface BaseScreenshotProperty

LanguageType name
.NETAmazon.CDK.AWS.Synthetics.CfnCanary.BaseScreenshotProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awssynthetics#CfnCanary_BaseScreenshotProperty
Javasoftware.amazon.awscdk.services.synthetics.CfnCanary.BaseScreenshotProperty
Pythonaws_cdk.aws_synthetics.CfnCanary.BaseScreenshotProperty
TypeScript aws-cdk-lib » aws_synthetics » CfnCanary » BaseScreenshotProperty

A structure representing a screenshot that is used as a baseline during visual monitoring comparisons made by the canary.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_synthetics as synthetics } from 'aws-cdk-lib';
const baseScreenshotProperty: synthetics.CfnCanary.BaseScreenshotProperty = {
  screenshotName: 'screenshotName',

  // the properties below are optional
  ignoreCoordinates: ['ignoreCoordinates'],
};

Properties

NameTypeDescription
screenshotNamestringThe name of the screenshot.
ignoreCoordinates?string[]Coordinates that define the part of a screen to ignore during screenshot comparisons.

screenshotName

Type: string

The name of the screenshot.

This is generated the first time the canary is run after the UpdateCanary operation that specified for this canary to perform visual monitoring.


ignoreCoordinates?

Type: string[] (optional)

Coordinates that define the part of a screen to ignore during screenshot comparisons.

To obtain the coordinates to use here, use the CloudWatch console to draw the boundaries on the screen. For more information, see Edit or delete a canary .