StartCanaryDryRunRequest
¶
Source code in docs_src/capo_synthetics/types/start_canary_dry_run_request.py
artifact_s3_location
instance-attribute
¶
artifact_s3_location: NotRequired[String]
The location in Amazon S3 where Synthetics stores artifacts from the test runs of this canary. Artifacts include the log file, screenshots, and HAR files. The name of the Amazon S3 bucket can't include a period (.).
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.
execution_role_arn
instance-attribute
¶
execution_role_arn: NotRequired[RoleArn]
The ARN of the IAM role to be used to run the canary. This role must already exist, and must include lambda.amazonaws.com as a principal in the trust policy. The role must also have the following permissions:
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. If you omit this field, the default of 31 days is used. The valid range is 1 to 455 days.
This setting affects the range of information returned by GetCanaryRuns, as well as the range of information displayed in the Synthetics console.
name
instance-attribute
¶
name: CanaryName
The name of the canary that you want to dry run. To find canary names, use DescribeCanaries.
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 you omit this parameter, the default of AUTOMATIC is used, which means that 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 a list of valid runtime versions and for more information about runtime versions, see Canary Runtime Versions.
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. If you omit this field, the default of 31 days is used. The valid range is 1 to 455 days.
This setting affects the range of information returned by GetCanaryRuns, as well as the range of information displayed in the Synthetics console.
visual_references
instance-attribute
¶
visual_references: NotRequired[VisualReferences]
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.