|
551 | 551 | "members":{
|
552 | 552 | "S3Bucket":{
|
553 | 553 | "shape":"String",
|
554 |
| - "documentation":"<p>If your canary script is located in S3, specify the bucket name here. Do not include <code>s3://</code> as the start of the bucket name.</p>" |
| 554 | + "documentation":"<p>If your canary script is located in Amazon S3, specify the bucket name here. Do not include <code>s3://</code> as the start of the bucket name.</p>" |
555 | 555 | },
|
556 | 556 | "S3Key":{
|
557 | 557 | "shape":"String",
|
558 |
| - "documentation":"<p>The S3 key of your script. For more information, see <a href=\"https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingObjects.html\">Working with Amazon S3 Objects</a>.</p>" |
| 558 | + "documentation":"<p>The Amazon S3 key of your script. For more information, see <a href=\"https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingObjects.html\">Working with Amazon S3 Objects</a>.</p>" |
559 | 559 | },
|
560 | 560 | "S3Version":{
|
561 | 561 | "shape":"String",
|
562 |
| - "documentation":"<p>The S3 version ID of your script.</p>" |
| 562 | + "documentation":"<p>The Amazon S3 version ID of your script.</p>" |
563 | 563 | },
|
564 | 564 | "ZipFile":{
|
565 | 565 | "shape":"Blob",
|
566 |
| - "documentation":"<p>If you input your canary script directly into the canary instead of referring to an S3 location, the value of this parameter is the base64-encoded contents of the .zip file that contains the script. It must be smaller than 225 Kb.</p> <p>For large canary scripts, we recommend that you use an S3 location instead of inputting it directly with this parameter.</p>" |
| 566 | + "documentation":"<p>If you input your canary script directly into the canary instead of referring to an Amazon S3 location, the value of this parameter is the base64-encoded contents of the .zip file that contains the script. It must be smaller than 225 Kb.</p> <p>For large canary scripts, we recommend that you use an Amazon S3 location instead of inputting it directly with this parameter.</p>" |
567 | 567 | },
|
568 | 568 | "Handler":{
|
569 | 569 | "shape":"CodeHandler",
|
570 | 570 | "documentation":"<p>The entry point to use for the source code when running the canary. For canaries that use the <code>syn-python-selenium-1.0</code> runtime or a <code>syn-nodejs.puppeteer</code> runtime earlier than <code>syn-nodejs.puppeteer-3.4</code>, the handler must be specified as <code> <i>fileName</i>.handler</code>. For <code>syn-python-selenium-1.1</code>, <code>syn-nodejs.puppeteer-3.4</code>, and later runtimes, the handler can be specified as <code> <i>fileName</i>.<i>functionName</i> </code>, or you can specify a folder where canary scripts reside as <code> <i>folder</i>/<i>fileName</i>.<i>functionName</i> </code>.</p>"
|
571 | 571 | }
|
572 | 572 | },
|
573 |
| - "documentation":"<p>Use this structure to input your script code for the canary. This structure contains the Lambda handler with the location where the canary should start running the script. If the script is stored in an S3 bucket, the bucket name, key, and version are also included. If the script was passed into the canary directly, the script code is contained in the value of <code>Zipfile</code>. </p> <p>If you are uploading your canary scripts with an Amazon S3 bucket, your zip file should include your script in a certain folder structure.</p> <ul> <li> <p>For Node.js canaries, the folder structure must be <code>nodejs/node_modules/<i>myCanaryFilename.js</i> </code> For more information, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_WritingCanary_Nodejs.html#CloudWatch_Synthetics_Canaries_package\">Packaging your Node.js canary files</a> </p> </li> <li> <p>For Python canaries, the folder structure must be <code>python/<i>myCanaryFilename.py</i> </code> or <code>python/<i>myFolder/myCanaryFilename.py</i> </code> For more information, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_WritingCanary_Python.html#CloudWatch_Synthetics_Canaries_WritingCanary_Python_package\">Packaging your Python canary files</a> </p> </li> </ul>" |
| 573 | + "documentation":"<p>Use this structure to input your script code for the canary. This structure contains the Lambda handler with the location where the canary should start running the script. If the script is stored in an Amazon S3 bucket, the bucket name, key, and version are also included. If the script was passed into the canary directly, the script code is contained in the value of <code>Zipfile</code>. </p> <p>If you are uploading your canary scripts with an Amazon S3 bucket, your zip file should include your script in a certain folder structure.</p> <ul> <li> <p>For Node.js canaries, the folder structure must be <code>nodejs/node_modules/<i>myCanaryFilename.js</i> </code> For more information, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_WritingCanary_Nodejs.html#CloudWatch_Synthetics_Canaries_package\">Packaging your Node.js canary files</a> </p> </li> <li> <p>For Python canaries, the folder structure must be <code>python/<i>myCanaryFilename.py</i> </code> or <code>python/<i>myFolder/myCanaryFilename.py</i> </code> For more information, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_WritingCanary_Python.html#CloudWatch_Synthetics_Canaries_WritingCanary_Python_package\">Packaging your Python canary files</a> </p> </li> </ul>" |
574 | 574 | },
|
575 | 575 | "CanaryCodeOutput":{
|
576 | 576 | "type":"structure",
|
|
672 | 672 | "EnvironmentVariables":{
|
673 | 673 | "shape":"EnvironmentVariablesMap",
|
674 | 674 | "documentation":"<p>Specifies the keys and values to use for any environment variables used in the canary script. Use the following format:</p> <p>{ \"key1\" : \"value1\", \"key2\" : \"value2\", ...}</p> <p>Keys must start with a letter and be at least two characters. The total size of your environment variables cannot exceed 4 KB. You can't specify any Lambda reserved environment variables as the keys for your environment variables. For more information about reserved keys, see <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html#configuration-envvars-runtime\"> Runtime environment variables</a>.</p> <important> <p>Environment variable keys and values are encrypted at rest using Amazon Web Services owned KMS keys. However, the environment variables are not encrypted on the client side. Do not store sensitive information in them.</p> </important>"
|
| 675 | + }, |
| 676 | + "EphemeralStorage":{ |
| 677 | + "shape":"EphemeralStorageSize", |
| 678 | + "documentation":"<p>Specifies the amount of ephemeral storage (in MB) to allocate for the canary run during execution. This temporary storage is used for storing canary run artifacts (which are uploaded to an Amazon S3 bucket at the end of the run), and any canary browser operations. This temporary storage is cleared after the run is completed. Default storage value is 1024 MB.</p>" |
675 | 679 | }
|
676 | 680 | },
|
677 | 681 | "documentation":"<p>A structure that contains input information for a canary run.</p>"
|
|
690 | 694 | "ActiveTracing":{
|
691 | 695 | "shape":"NullableBoolean",
|
692 | 696 | "documentation":"<p>Displays whether this canary run used active X-Ray tracing. </p>"
|
| 697 | + }, |
| 698 | + "EphemeralStorage":{ |
| 699 | + "shape":"EphemeralStorageSize", |
| 700 | + "documentation":"<p>Specifies the amount of ephemeral storage (in MB) to allocate for the canary run during execution. This temporary storage is used for storing canary run artifacts (which are uploaded to an Amazon S3 bucket at the end of the run), and any canary browser operations. This temporary storage is cleared after the run is completed. Default storage value is 1024 MB.</p>" |
693 | 701 | }
|
694 | 702 | },
|
695 | 703 | "documentation":"<p>A structure that contains information about a canary run.</p>"
|
|
722 | 730 | },
|
723 | 731 | "StateReasonCode":{
|
724 | 732 | "shape":"CanaryRunStateReasonCode",
|
725 |
| - "documentation":"<p>If this value is <code>CANARY_FAILURE</code>, an exception occurred in the canary code. If this value is <code>EXECUTION_FAILURE</code>, an exception occurred in CloudWatch Synthetics.</p>" |
| 733 | + "documentation":"<p>If this value is <code>CANARY_FAILURE</code>, either the canary script failed or Synthetics ran into a fatal error when running the canary. For example, a canary timeout misconfiguration setting can cause the canary to timeout before Synthetics can evaluate its status. </p> <p> If this value is <code>EXECUTION_FAILURE</code>, a non-critical failure occurred such as failing to save generated debug artifacts (for example, screenshots or har files).</p> <p>If both types of failures occurred, the <code>CANARY_FAILURE</code> takes precedence. To understand the exact error, use the <a href=\"https://docs.aws.amazon.com/AmazonSynthetics/latest/APIReference/API_CanaryRunStatus.html\">StateReason</a> API.</p>" |
| 734 | + }, |
| 735 | + "TestResult":{ |
| 736 | + "shape":"CanaryRunTestResult", |
| 737 | + "documentation":"<p>Specifies the status of canary script for this run. When Synthetics tries to determine the status but fails, the result is marked as <code>UNKNOWN</code>. For the overall status of canary run, see <a href=\"https://docs.aws.amazon.com/AmazonSynthetics/latest/APIReference/API_CanaryRunStatus.html\">State</a>.</p>" |
726 | 738 | }
|
727 | 739 | },
|
728 | 740 | "documentation":"<p>This structure contains the status information about a canary run.</p>"
|
729 | 741 | },
|
| 742 | + "CanaryRunTestResult":{ |
| 743 | + "type":"string", |
| 744 | + "enum":[ |
| 745 | + "PASSED", |
| 746 | + "FAILED", |
| 747 | + "UNKNOWN" |
| 748 | + ] |
| 749 | + }, |
730 | 750 | "CanaryRunTimeline":{
|
731 | 751 | "type":"structure",
|
732 | 752 | "members":{
|
|
889 | 909 | },
|
890 | 910 | "Code":{
|
891 | 911 | "shape":"CanaryCodeInput",
|
892 |
| - "documentation":"<p>A structure that includes the entry point from which the canary should start running your script. If the script is stored in an S3 bucket, the bucket name, key, and version are also included. </p>" |
| 912 | + "documentation":"<p>A structure that includes the entry point from which the canary should start running your script. If the script is stored in an Amazon S3 bucket, the bucket name, key, and version are also included. </p>" |
893 | 913 | },
|
894 | 914 | "ArtifactS3Location":{
|
895 | 915 | "shape":"String",
|
896 |
| - "documentation":"<p>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 S3 bucket can't include a period (.).</p>" |
| 916 | + "documentation":"<p>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 (.).</p>" |
897 | 917 | },
|
898 | 918 | "ExecutionRoleArn":{
|
899 | 919 | "shape":"RoleArn",
|
|
1163 | 1183 | "key":{"shape":"EnvironmentVariableName"},
|
1164 | 1184 | "value":{"shape":"EnvironmentVariableValue"}
|
1165 | 1185 | },
|
| 1186 | + "EphemeralStorageSize":{ |
| 1187 | + "type":"integer", |
| 1188 | + "max":5120, |
| 1189 | + "min":1024 |
| 1190 | + }, |
1166 | 1191 | "ErrorMessage":{"type":"string"},
|
1167 | 1192 | "FunctionArn":{
|
1168 | 1193 | "type":"string",
|
|
1679 | 1704 | },
|
1680 | 1705 | "SuccessRetentionPeriodInDays":{
|
1681 | 1706 | "shape":"MaxSize1024",
|
1682 |
| - "documentation":"<p>The number of days to retain data on the failed runs for this canary. The valid range is 1 to 455 days.</p> <p>This setting affects the range of information returned by <a href=\"https://docs.aws.amazon.com/AmazonSynthetics/latest/APIReference/API_GetCanaryRuns.html\">GetCanaryRuns</a>, as well as the range of information displayed in the Synthetics console. </p>" |
| 1707 | + "documentation":"<p>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.</p> <p>This setting affects the range of information returned by <a href=\"https://docs.aws.amazon.com/AmazonSynthetics/latest/APIReference/API_GetCanaryRuns.html\">GetCanaryRuns</a>, as well as the range of information displayed in the Synthetics console. </p>" |
1683 | 1708 | },
|
1684 | 1709 | "FailureRetentionPeriodInDays":{
|
1685 | 1710 | "shape":"MaxSize1024",
|
1686 |
| - "documentation":"<p>The number of days to retain data on the failed runs for this canary. The valid range is 1 to 455 days.</p> <p>This setting affects the range of information returned by <a href=\"https://docs.aws.amazon.com/AmazonSynthetics/latest/APIReference/API_GetCanaryRuns.html\">GetCanaryRuns</a>, as well as the range of information displayed in the Synthetics console. </p>" |
| 1711 | + "documentation":"<p>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.</p> <p>This setting affects the range of information returned by <a href=\"https://docs.aws.amazon.com/AmazonSynthetics/latest/APIReference/API_GetCanaryRuns.html\">GetCanaryRuns</a>, as well as the range of information displayed in the Synthetics console. </p>" |
1687 | 1712 | },
|
1688 | 1713 | "VisualReference":{"shape":"VisualReferenceInput"},
|
1689 | 1714 | "ArtifactS3Location":{
|
|
1693 | 1718 | "ArtifactConfig":{"shape":"ArtifactConfigInput"},
|
1694 | 1719 | "ProvisionedResourceCleanup":{
|
1695 | 1720 | "shape":"ProvisionedResourceCleanupSetting",
|
1696 |
| - "documentation":"<p>Specifies whether to also delete the Lambda functions and layers used by this canary when the canary is deleted. If the value of this parameter is <code>AUTOMATIC</code>, it means that the Lambda functions and layers will be deleted when the canary is deleted.</p> <p>If the value of this parameter is <code>OFF</code>, then the value of the <code>DeleteLambda</code> parameter of the <a href=\"https://docs.aws.amazon.com/AmazonSynthetics/latest/APIReference/API_DeleteCanary.html\">DeleteCanary</a> operation determines whether the Lambda functions and layers will be deleted.</p>" |
| 1721 | + "documentation":"<p>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 <code>AUTOMATIC</code> is used, which means that the Lambda functions and layers will be deleted when the canary is deleted.</p> <p>If the value of this parameter is <code>OFF</code>, then the value of the <code>DeleteLambda</code> parameter of the <a href=\"https://docs.aws.amazon.com/AmazonSynthetics/latest/APIReference/API_DeleteCanary.html\">DeleteCanary</a> operation determines whether the Lambda functions and layers will be deleted.</p>" |
1697 | 1722 | }
|
1698 | 1723 | }
|
1699 | 1724 | },
|
|
1856 | 1881 | },
|
1857 | 1882 | "Code":{
|
1858 | 1883 | "shape":"CanaryCodeInput",
|
1859 |
| - "documentation":"<p>A structure that includes the entry point from which the canary should start running your script. If the script is stored in an S3 bucket, the bucket name, key, and version are also included. </p>" |
| 1884 | + "documentation":"<p>A structure that includes the entry point from which the canary should start running your script. If the script is stored in an Amazon S3 bucket, the bucket name, key, and version are also included. </p>" |
1860 | 1885 | },
|
1861 | 1886 | "ExecutionRoleArn":{
|
1862 | 1887 | "shape":"RoleArn",
|
|
1892 | 1917 | },
|
1893 | 1918 | "ArtifactS3Location":{
|
1894 | 1919 | "shape":"String",
|
1895 |
| - "documentation":"<p>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 S3 bucket can't include a period (.).</p>" |
| 1920 | + "documentation":"<p>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 (.).</p>" |
1896 | 1921 | },
|
1897 | 1922 | "ArtifactConfig":{
|
1898 | 1923 | "shape":"ArtifactConfigInput",
|
|
0 commit comments