start_canary_dry_run
¶
start_canary_dry_run(
name: CanaryName,
*,
config_overrides: Optional[syntheticsClientConfig] = None,
code: Optional[CanaryCodeInput] = None,
runtime_version: Optional[String] = None,
run_config: Optional[CanaryRunConfigInput] = None,
vpc_config: Optional[VpcConfigInput] = None,
execution_role_arn: Optional[RoleArn] = None,
success_retention_period_in_days: Optional[MaxSize1024] = None,
failure_retention_period_in_days: Optional[MaxSize1024] = None,
visual_reference: Optional[VisualReferenceInput] = None,
artifact_s3_location: Optional[String] = None,
artifact_config: Optional[ArtifactConfigInput] = None,
provisioned_resource_cleanup: Optional[ProvisionedResourceCleanupSetting] = None,
browser_configs: Optional[BrowserConfigs] = None,
visual_references: Optional[VisualReferences] = None,
) -> StartCanaryDryRunResponse
Use this operation to start a dry run for a canary that has already been created
Parameters:
-
name(CanaryName) –The name of the canary that you want to dry run. To find canary names, use DescribeCanaries.
-
runtime_version(Optional[String], default:None) –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.
-
execution_role_arn(Optional[RoleArn], default:None) –The ARN of the IAM role to be used to run the canary. This role must already exist, and must include
lambda.amazonaws.comas a principal in the trust policy. The role must also have the following permissions: -
success_retention_period_in_days(Optional[MaxSize1024], default:None) –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.
-
failure_retention_period_in_days(Optional[MaxSize1024], default:None) –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.
-
artifact_s3_location(Optional[String], default:None) –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 (.).
-
provisioned_resource_cleanup(Optional[ProvisionedResourceCleanupSetting], default:None) –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
AUTOMATICis 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 theDeleteLambdaparameter of the DeleteCanary operation determines whether the Lambda functions and layers will be deleted. -
browser_configs(Optional[BrowserConfigs], default:None) –A structure that specifies the browser type to use for a canary run. CloudWatch Synthetics supports running canaries on both
CHROMEandFIREFOXbrowsers.If not specified,
browserConfigsdefaults to Chrome. -
visual_references(Optional[VisualReferences], default:None) –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.0and above, andsyn-nodejs-playwright-3.0and above, only supportsvisualReferences.visualReferencefield is not supported.Versions older than
syn-nodejs-puppeteer-11.0supports bothvisualReferenceandvisualReferencesfor backward compatibility. It is recommended to usevisualReferencesfor consistency and future compatibility.
Raises:
-
AccessDeniedException–You don't have permission to perform this operation on this resource.
-
ConflictException–A conflicting operation is already in progress.
-
InternalServerException–An unknown internal error occurred.
-
ResourceNotFoundException–One of the specified resources was not found.
-
ValidationException–A parameter could not be validated.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_synthetics/_services/synthetics.py
1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 | |