Canary
¶
Source code in docs_src/capo_synthetics/types/canary.py
artifact_config
instance-attribute
¶
artifact_config: NotRequired[ArtifactConfigOutput]
A structure that contains the configuration for canary artifacts, including the encryption-at-rest settings for artifacts that the canary uploads to Amazon S3.
artifact_s3_location
instance-attribute
¶
artifact_s3_location: NotRequired[String]
The location in Amazon S3 where Synthetics stores artifacts from the runs of this canary. Artifacts include the log file, screenshots, and HAR files.
browser_configs
instance-attribute
¶
browser_configs: NotRequired[BrowserConfigs]
A structure that specifies the browser type to use for a canary run. CloudWatch Synthetics supports running canaries on both CHROME and FIREFOX browsers.
If not specified, browserConfigs defaults to Chrome.
dry_run_config
instance-attribute
¶
dry_run_config: NotRequired[DryRunConfigOutput]
Returns the dry run configurations for a canary.
engine_arn
instance-attribute
¶
engine_arn: NotRequired[FunctionArn]
The ARN of the Lambda function that is used as your canary's engine. For more information about Lambda ARN format, see Resources and Conditions for Lambda Actions.
engine_configs
instance-attribute
¶
engine_configs: NotRequired[EngineConfigs]
A list of engine configurations for the canary, one for each browser type that the canary is configured to run on.
All runtime versions syn-nodejs-puppeteer-11.0 and above, and syn-nodejs-playwright-3.0 and above, use engineConfigs only. You can no longer use engineArn in these versions.
Runtime versions older than syn-nodejs-puppeteer-11.0 and syn-nodejs-playwright-3.0 continue to support engineArn to ensure backward compatibility.
execution_role_arn
instance-attribute
¶
execution_role_arn: NotRequired[RoleArn]
The ARN of the IAM role used to run the canary. This role must include lambda.amazonaws.com as a principal in the trust policy.
failure_retention_period_in_days
instance-attribute
¶
failure_retention_period_in_days: NotRequired[MaxSize1024]
The number of days to retain data about failed runs of this canary.
This setting affects the range of information returned by GetCanaryRuns, as well as the range of information displayed in the Synthetics console.
kms_key_arn
instance-attribute
¶
kms_key_arn: NotRequired[KmsKeyArn]
The Amazon Resource Name (ARN) of the customer-managed AWS Key Management Service (AWS KMS) key used to encrypt the canary's AWS Lambda function environment variables at rest. If you don't specify a value, the service uses an AWS-managed key.
multi_location_config
instance-attribute
¶
multi_location_config: NotRequired[MultiLocationConfig]
If this canary is part of a multi-location configuration, this structure contains information about the canary's location type, primary location, and replicas.
provisioned_resource_cleanup
instance-attribute
¶
provisioned_resource_cleanup: NotRequired[ProvisionedResourceCleanupSetting]
Specifies whether to also delete the Lambda functions and layers used by this canary when the canary is deleted. If it is AUTOMATIC, the Lambda functions and layers will be deleted when the canary is deleted.
If the value of this parameter is OFF, then the value of the DeleteLambda parameter of the DeleteCanary operation determines whether the Lambda functions and layers will be deleted.
runtime_version
instance-attribute
¶
runtime_version: NotRequired[String]
Specifies the runtime version to use for the canary. For more information about runtime versions, see Canary Runtime Versions.
schedule
instance-attribute
¶
schedule: NotRequired[CanaryScheduleOutput]
A structure that contains information about how often the canary is to run, and when these runs are to stop.
status
instance-attribute
¶
status: NotRequired[CanaryStatus]
A structure that contains information about the canary's status.
success_retention_period_in_days
instance-attribute
¶
success_retention_period_in_days: NotRequired[MaxSize1024]
The number of days to retain data about successful runs of this canary.
This setting affects the range of information returned by GetCanaryRuns, as well as the range of information displayed in the Synthetics console.
tags
instance-attribute
¶
tags: NotRequired[TagMap]
The list of key-value pairs that are associated with the canary.
timeline
instance-attribute
¶
timeline: NotRequired[CanaryTimeline]
A structure that contains information about when the canary was created, modified, and most recently run.
visual_reference
instance-attribute
¶
visual_reference: NotRequired[VisualReferenceOutput]
If this canary performs visual monitoring by comparing screenshots, this structure contains the ID of the canary run to use as the baseline for screenshots, and the coordinates of any parts of the screen to ignore during the visual monitoring comparison.
visual_references
instance-attribute
¶
visual_references: NotRequired[VisualReferencesOutput]
A list of visual reference configurations for the canary, one for each browser type that the canary is configured to run on. Visual references are used for visual monitoring comparisons.
syn-nodejs-puppeteer-11.0 and above, and syn-nodejs-playwright-3.0 and above, only supports visualReferences. visualReference field is not supported.
Versions older than syn-nodejs-puppeteer-11.0 supports both visualReference and visualReferences for backward compatibility. It is recommended to use visualReferences for consistency and future compatibility.