1{ 2 "version":"2.0", 3 "metadata":{ 4 "apiVersion":"2017-10-11", 5 "endpointPrefix":"synthetics", 6 "jsonVersion":"1.1", 7 "protocol":"rest-json", 8 "serviceAbbreviation":"Synthetics", 9 "serviceFullName":"Synthetics", 10 "serviceId":"synthetics", 11 "signatureVersion":"v4", 12 "signingName":"synthetics", 13 "uid":"synthetics-2017-10-11" 14 }, 15 "operations":{ 16 "CreateCanary":{ 17 "name":"CreateCanary", 18 "http":{ 19 "method":"POST", 20 "requestUri":"/canary" 21 }, 22 "input":{"shape":"CreateCanaryRequest"}, 23 "output":{"shape":"CreateCanaryResponse"}, 24 "errors":[ 25 {"shape":"InternalServerException"}, 26 {"shape":"ValidationException"} 27 ], 28 "documentation":"<p>Creates a canary. Canaries are scripts that monitor your endpoints and APIs from the outside-in. Canaries help you check the availability and latency of your web services and troubleshoot anomalies by investigating load time data, screenshots of the UI, logs, and metrics. You can set up a canary to run continuously or just once. </p> <p>Do not use <code>CreateCanary</code> to modify an existing canary. Use <a href=\"https://docs.aws.amazon.com/AmazonSynthetics/latest/APIReference/API_UpdateCanary.html\">UpdateCanary</a> instead.</p> <p>To create canaries, you must have the <code>CloudWatchSyntheticsFullAccess</code> policy. If you are creating a new IAM role for the canary, you also need the the <code>iam:CreateRole</code>, <code>iam:CreatePolicy</code> and <code>iam:AttachRolePolicy</code> permissions. For more information, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_Roles\">Necessary Roles and Permissions</a>.</p> <p>Do not include secrets or proprietary information in your canary names. The canary name makes up part of the Amazon Resource Name (ARN) for the canary, and the ARN is included in outbound calls over the internet. For more information, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/servicelens_canaries_security.html\">Security Considerations for Synthetics Canaries</a>.</p>" 29 }, 30 "DeleteCanary":{ 31 "name":"DeleteCanary", 32 "http":{ 33 "method":"DELETE", 34 "requestUri":"/canary/{name}" 35 }, 36 "input":{"shape":"DeleteCanaryRequest"}, 37 "output":{"shape":"DeleteCanaryResponse"}, 38 "errors":[ 39 {"shape":"InternalServerException"}, 40 {"shape":"ValidationException"}, 41 {"shape":"ResourceNotFoundException"}, 42 {"shape":"ConflictException"} 43 ], 44 "documentation":"<p>Permanently deletes the specified canary.</p> <p>When you delete a canary, resources used and created by the canary are not automatically deleted. After you delete a canary that you do not intend to use again, you should also delete the following:</p> <ul> <li> <p>The Lambda functions and layers used by this canary. These have the prefix <code>cwsyn-<i>MyCanaryName</i> </code>.</p> </li> <li> <p>The CloudWatch alarms created for this canary. These alarms have a name of <code>Synthetics-SharpDrop-Alarm-<i>MyCanaryName</i> </code>.</p> </li> <li> <p>Amazon S3 objects and buckets, such as the canary's artifact location.</p> </li> <li> <p>IAM roles created for the canary. If they were created in the console, these roles have the name <code> role/service-role/CloudWatchSyntheticsRole-<i>MyCanaryName</i> </code>.</p> </li> <li> <p>CloudWatch Logs log groups created for the canary. These logs groups have the name <code>/aws/lambda/cwsyn-<i>MyCanaryName</i> </code>. </p> </li> </ul> <p>Before you delete a canary, you might want to use <code>GetCanary</code> to display the information about this canary. Make note of the information returned by this operation so that you can delete these resources after you delete the canary.</p>" 45 }, 46 "DescribeCanaries":{ 47 "name":"DescribeCanaries", 48 "http":{ 49 "method":"POST", 50 "requestUri":"/canaries" 51 }, 52 "input":{"shape":"DescribeCanariesRequest"}, 53 "output":{"shape":"DescribeCanariesResponse"}, 54 "errors":[ 55 {"shape":"InternalServerException"}, 56 {"shape":"ValidationException"} 57 ], 58 "documentation":"<p>This operation returns a list of the canaries in your account, along with full details about each canary.</p> <p>This operation does not have resource-level authorization, so if a user is able to use <code>DescribeCanaries</code>, the user can see all of the canaries in the account. A deny policy can only be used to restrict access to all canaries. It cannot be used on specific resources. </p>" 59 }, 60 "DescribeCanariesLastRun":{ 61 "name":"DescribeCanariesLastRun", 62 "http":{ 63 "method":"POST", 64 "requestUri":"/canaries/last-run" 65 }, 66 "input":{"shape":"DescribeCanariesLastRunRequest"}, 67 "output":{"shape":"DescribeCanariesLastRunResponse"}, 68 "errors":[ 69 {"shape":"InternalServerException"}, 70 {"shape":"ValidationException"} 71 ], 72 "documentation":"<p>Use this operation to see information from the most recent run of each canary that you have created.</p>" 73 }, 74 "DescribeRuntimeVersions":{ 75 "name":"DescribeRuntimeVersions", 76 "http":{ 77 "method":"POST", 78 "requestUri":"/runtime-versions" 79 }, 80 "input":{"shape":"DescribeRuntimeVersionsRequest"}, 81 "output":{"shape":"DescribeRuntimeVersionsResponse"}, 82 "errors":[ 83 {"shape":"InternalServerException"}, 84 {"shape":"ValidationException"} 85 ], 86 "documentation":"<p>Returns a list of Synthetics canary runtime versions. For more information, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_Library.html\"> Canary Runtime Versions</a>.</p>" 87 }, 88 "GetCanary":{ 89 "name":"GetCanary", 90 "http":{ 91 "method":"GET", 92 "requestUri":"/canary/{name}" 93 }, 94 "input":{"shape":"GetCanaryRequest"}, 95 "output":{"shape":"GetCanaryResponse"}, 96 "errors":[ 97 {"shape":"InternalServerException"}, 98 {"shape":"ValidationException"} 99 ], 100 "documentation":"<p>Retrieves complete information about one canary. You must specify the name of the canary that you want. To get a list of canaries and their names, use <a href=\"https://docs.aws.amazon.com/AmazonSynthetics/latest/APIReference/API_DescribeCanaries.html\">DescribeCanaries</a>.</p>" 101 }, 102 "GetCanaryRuns":{ 103 "name":"GetCanaryRuns", 104 "http":{ 105 "method":"POST", 106 "requestUri":"/canary/{name}/runs" 107 }, 108 "input":{"shape":"GetCanaryRunsRequest"}, 109 "output":{"shape":"GetCanaryRunsResponse"}, 110 "errors":[ 111 {"shape":"InternalServerException"}, 112 {"shape":"ValidationException"}, 113 {"shape":"ResourceNotFoundException"} 114 ], 115 "documentation":"<p>Retrieves a list of runs for a specified canary.</p>" 116 }, 117 "ListTagsForResource":{ 118 "name":"ListTagsForResource", 119 "http":{ 120 "method":"GET", 121 "requestUri":"/tags/{resourceArn}" 122 }, 123 "input":{"shape":"ListTagsForResourceRequest"}, 124 "output":{"shape":"ListTagsForResourceResponse"}, 125 "errors":[ 126 {"shape":"InternalServerException"}, 127 {"shape":"ResourceNotFoundException"}, 128 {"shape":"ValidationException"} 129 ], 130 "documentation":"<p>Displays the tags associated with a canary.</p>" 131 }, 132 "StartCanary":{ 133 "name":"StartCanary", 134 "http":{ 135 "method":"POST", 136 "requestUri":"/canary/{name}/start" 137 }, 138 "input":{"shape":"StartCanaryRequest"}, 139 "output":{"shape":"StartCanaryResponse"}, 140 "errors":[ 141 {"shape":"InternalServerException"}, 142 {"shape":"ValidationException"}, 143 {"shape":"ResourceNotFoundException"}, 144 {"shape":"ConflictException"} 145 ], 146 "documentation":"<p>Use this operation to run a canary that has already been created. The frequency of the canary runs is determined by the value of the canary's <code>Schedule</code>. To see a canary's schedule, use <a href=\"https://docs.aws.amazon.com/AmazonSynthetics/latest/APIReference/API_GetCanary.html\">GetCanary</a>.</p>" 147 }, 148 "StopCanary":{ 149 "name":"StopCanary", 150 "http":{ 151 "method":"POST", 152 "requestUri":"/canary/{name}/stop" 153 }, 154 "input":{"shape":"StopCanaryRequest"}, 155 "output":{"shape":"StopCanaryResponse"}, 156 "errors":[ 157 {"shape":"InternalServerException"}, 158 {"shape":"ValidationException"}, 159 {"shape":"ResourceNotFoundException"}, 160 {"shape":"ConflictException"} 161 ], 162 "documentation":"<p>Stops the canary to prevent all future runs. If the canary is currently running, Synthetics stops waiting for the current run of the specified canary to complete. The run that is in progress completes on its own, publishes metrics, and uploads artifacts, but it is not recorded in Synthetics as a completed run.</p> <p>You can use <code>StartCanary</code> to start it running again with the canary’s current schedule at any point in the future. </p>" 163 }, 164 "TagResource":{ 165 "name":"TagResource", 166 "http":{ 167 "method":"POST", 168 "requestUri":"/tags/{resourceArn}" 169 }, 170 "input":{"shape":"TagResourceRequest"}, 171 "output":{"shape":"TagResourceResponse"}, 172 "errors":[ 173 {"shape":"InternalServerException"}, 174 {"shape":"ResourceNotFoundException"}, 175 {"shape":"ValidationException"} 176 ], 177 "documentation":"<p>Assigns one or more tags (key-value pairs) to the specified canary. </p> <p>Tags can help you organize and categorize your resources. You can also use them to scope user permissions, by granting a user permission to access or change only resources with certain tag values.</p> <p>Tags don't have any semantic meaning to Amazon Web Services and are interpreted strictly as strings of characters.</p> <p>You can use the <code>TagResource</code> action with a canary that already has tags. If you specify a new tag key for the alarm, this tag is appended to the list of tags associated with the alarm. If you specify a tag key that is already associated with the alarm, the new tag value that you specify replaces the previous value for that tag.</p> <p>You can associate as many as 50 tags with a canary.</p>" 178 }, 179 "UntagResource":{ 180 "name":"UntagResource", 181 "http":{ 182 "method":"DELETE", 183 "requestUri":"/tags/{resourceArn}" 184 }, 185 "input":{"shape":"UntagResourceRequest"}, 186 "output":{"shape":"UntagResourceResponse"}, 187 "errors":[ 188 {"shape":"InternalServerException"}, 189 {"shape":"ResourceNotFoundException"}, 190 {"shape":"ValidationException"} 191 ], 192 "documentation":"<p>Removes one or more tags from the specified canary.</p>" 193 }, 194 "UpdateCanary":{ 195 "name":"UpdateCanary", 196 "http":{ 197 "method":"PATCH", 198 "requestUri":"/canary/{name}" 199 }, 200 "input":{"shape":"UpdateCanaryRequest"}, 201 "output":{"shape":"UpdateCanaryResponse"}, 202 "errors":[ 203 {"shape":"InternalServerException"}, 204 {"shape":"ValidationException"}, 205 {"shape":"ResourceNotFoundException"}, 206 {"shape":"ConflictException"} 207 ], 208 "documentation":"<p>Use this operation to change the settings of a canary that has already been created.</p> <p>You can't use this operation to update the tags of an existing canary. To change the tags of an existing canary, use <a href=\"https://docs.aws.amazon.com/AmazonSynthetics/latest/APIReference/API_TagResource.html\">TagResource</a>.</p>" 209 } 210 }, 211 "shapes":{ 212 "ArtifactConfigInput":{ 213 "type":"structure", 214 "members":{ 215 "S3Encryption":{ 216 "shape":"S3EncryptionConfig", 217 "documentation":"<p>A structure that contains the configuration of the encryption-at-rest settings for artifacts that the canary uploads to Amazon S3. Artifact encryption functionality is available only for canaries that use Synthetics runtime version syn-nodejs-puppeteer-3.3 or later. For more information, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_artifact_encryption.html\">Encrypting canary artifacts</a> </p>" 218 } 219 }, 220 "documentation":"<p>A structure that contains the configuration for canary artifacts, including the encryption-at-rest settings for artifacts that the canary uploads to Amazon S3.</p>" 221 }, 222 "ArtifactConfigOutput":{ 223 "type":"structure", 224 "members":{ 225 "S3Encryption":{ 226 "shape":"S3EncryptionConfig", 227 "documentation":"<p>A structure that contains the configuration of encryption settings for canary artifacts that are stored in Amazon S3. </p>" 228 } 229 }, 230 "documentation":"<p>A structure that contains the configuration for canary artifacts, including the encryption-at-rest settings for artifacts that the canary uploads to Amazon S3.</p>" 231 }, 232 "BaseScreenshot":{ 233 "type":"structure", 234 "required":["ScreenshotName"], 235 "members":{ 236 "ScreenshotName":{ 237 "shape":"String", 238 "documentation":"<p>The name of the screenshot. This is generated the first time the canary is run after the <code>UpdateCanary</code> operation that specified for this canary to perform visual monitoring.</p>" 239 }, 240 "IgnoreCoordinates":{ 241 "shape":"BaseScreenshotIgnoreCoordinates", 242 "documentation":"<p>Coordinates that define the part of a screen to ignore during screenshot comparisons. To obtain the coordinates to use here, use the CloudWatch Logs console to draw the boundaries on the screen. For more information, see {LINK}</p>" 243 } 244 }, 245 "documentation":"<p>A structure representing a screenshot that is used as a baseline during visual monitoring comparisons made by the canary.</p>" 246 }, 247 "BaseScreenshotConfigIgnoreCoordinate":{ 248 "type":"string", 249 "pattern":"^(-?\\d{1,5}\\.?\\d{0,2},){3}(-?\\d{1,5}\\.?\\d{0,2}){1}$" 250 }, 251 "BaseScreenshotIgnoreCoordinates":{ 252 "type":"list", 253 "member":{"shape":"BaseScreenshotConfigIgnoreCoordinate"}, 254 "max":20, 255 "min":0 256 }, 257 "BaseScreenshots":{ 258 "type":"list", 259 "member":{"shape":"BaseScreenshot"} 260 }, 261 "Blob":{ 262 "type":"blob", 263 "max":10000000, 264 "min":1 265 }, 266 "Canaries":{ 267 "type":"list", 268 "member":{"shape":"Canary"} 269 }, 270 "CanariesLastRun":{ 271 "type":"list", 272 "member":{"shape":"CanaryLastRun"} 273 }, 274 "Canary":{ 275 "type":"structure", 276 "members":{ 277 "Id":{ 278 "shape":"UUID", 279 "documentation":"<p>The unique ID of this canary.</p>" 280 }, 281 "Name":{ 282 "shape":"CanaryName", 283 "documentation":"<p>The name of the canary.</p>" 284 }, 285 "Code":{"shape":"CanaryCodeOutput"}, 286 "ExecutionRoleArn":{ 287 "shape":"RoleArn", 288 "documentation":"<p>The ARN of the IAM role used to run the canary. This role must include <code>lambda.amazonaws.com</code> as a principal in the trust policy.</p>" 289 }, 290 "Schedule":{ 291 "shape":"CanaryScheduleOutput", 292 "documentation":"<p>A structure that contains information about how often the canary is to run, and when these runs are to stop.</p>" 293 }, 294 "RunConfig":{"shape":"CanaryRunConfigOutput"}, 295 "SuccessRetentionPeriodInDays":{ 296 "shape":"MaxSize1024", 297 "documentation":"<p>The number of days to retain data about successful runs of this canary.</p>" 298 }, 299 "FailureRetentionPeriodInDays":{ 300 "shape":"MaxSize1024", 301 "documentation":"<p>The number of days to retain data about failed runs of this canary.</p>" 302 }, 303 "Status":{ 304 "shape":"CanaryStatus", 305 "documentation":"<p>A structure that contains information about the canary's status.</p>" 306 }, 307 "Timeline":{ 308 "shape":"CanaryTimeline", 309 "documentation":"<p>A structure that contains information about when the canary was created, modified, and most recently run.</p>" 310 }, 311 "ArtifactS3Location":{ 312 "shape":"String", 313 "documentation":"<p>The location in Amazon S3 where Synthetics stores artifacts from the runs of this canary. Artifacts include the log file, screenshots, and HAR files.</p>" 314 }, 315 "EngineArn":{ 316 "shape":"FunctionArn", 317 "documentation":"<p>The ARN of the Lambda function that is used as your canary's engine. For more information about Lambda ARN format, see <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/lambda-api-permissions-ref.html\">Resources and Conditions for Lambda Actions</a>.</p>" 318 }, 319 "RuntimeVersion":{ 320 "shape":"String", 321 "documentation":"<p>Specifies the runtime version to use for the canary. For more information about runtime versions, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_Library.html\"> Canary Runtime Versions</a>.</p>" 322 }, 323 "VpcConfig":{"shape":"VpcConfigOutput"}, 324 "VisualReference":{ 325 "shape":"VisualReferenceOutput", 326 "documentation":"<p>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.</p>" 327 }, 328 "Tags":{ 329 "shape":"TagMap", 330 "documentation":"<p>The list of key-value pairs that are associated with the canary.</p>" 331 }, 332 "ArtifactConfig":{ 333 "shape":"ArtifactConfigOutput", 334 "documentation":"<p>A structure that contains the configuration for canary artifacts, including the encryption-at-rest settings for artifacts that the canary uploads to Amazon S3.</p>" 335 } 336 }, 337 "documentation":"<p>This structure contains all information about one canary in your account.</p>" 338 }, 339 "CanaryArn":{ 340 "type":"string", 341 "max":2048, 342 "min":1, 343 "pattern":"arn:(aws[a-zA-Z-]*)?:synthetics:[a-z]{2}((-gov)|(-iso(b?)))?-[a-z]+-\\d{1}:\\d{12}:canary:[0-9a-z_\\-]{1,21}" 344 }, 345 "CanaryCodeInput":{ 346 "type":"structure", 347 "required":["Handler"], 348 "members":{ 349 "S3Bucket":{ 350 "shape":"String", 351 "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>" 352 }, 353 "S3Key":{ 354 "shape":"String", 355 "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>" 356 }, 357 "S3Version":{ 358 "shape":"String", 359 "documentation":"<p>The S3 version ID of your script.</p>" 360 }, 361 "ZipFile":{ 362 "shape":"Blob", 363 "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 256 Kb.</p>" 364 }, 365 "Handler":{ 366 "shape":"String", 367 "documentation":"<p>The entry point to use for the source code when running the canary. This value must end with the string <code>.handler</code>. The string is limited to 29 characters or fewer.</p>" 368 } 369 }, 370 "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>" 371 }, 372 "CanaryCodeOutput":{ 373 "type":"structure", 374 "members":{ 375 "SourceLocationArn":{ 376 "shape":"String", 377 "documentation":"<p>The ARN of the Lambda layer where Synthetics stores the canary script code.</p>" 378 }, 379 "Handler":{ 380 "shape":"String", 381 "documentation":"<p>The entry point to use for the source code when running the canary.</p>" 382 } 383 }, 384 "documentation":"<p>This structure contains information about the canary's Lambda handler and where its code is stored by CloudWatch Synthetics.</p>" 385 }, 386 "CanaryLastRun":{ 387 "type":"structure", 388 "members":{ 389 "CanaryName":{ 390 "shape":"CanaryName", 391 "documentation":"<p>The name of the canary.</p>" 392 }, 393 "LastRun":{ 394 "shape":"CanaryRun", 395 "documentation":"<p>The results from this canary's most recent run.</p>" 396 } 397 }, 398 "documentation":"<p>This structure contains information about the most recent run of a single canary.</p>" 399 }, 400 "CanaryName":{ 401 "type":"string", 402 "max":21, 403 "min":1, 404 "pattern":"^[0-9a-z_\\-]+$" 405 }, 406 "CanaryRun":{ 407 "type":"structure", 408 "members":{ 409 "Id":{ 410 "shape":"UUID", 411 "documentation":"<p>A unique ID that identifies this canary run.</p>" 412 }, 413 "Name":{ 414 "shape":"CanaryName", 415 "documentation":"<p>The name of the canary.</p>" 416 }, 417 "Status":{ 418 "shape":"CanaryRunStatus", 419 "documentation":"<p>The status of this run.</p>" 420 }, 421 "Timeline":{ 422 "shape":"CanaryRunTimeline", 423 "documentation":"<p>A structure that contains the start and end times of this run.</p>" 424 }, 425 "ArtifactS3Location":{ 426 "shape":"String", 427 "documentation":"<p>The location where the canary stored artifacts from the run. Artifacts include the log file, screenshots, and HAR files.</p>" 428 } 429 }, 430 "documentation":"<p>This structure contains the details about one run of one canary.</p>" 431 }, 432 "CanaryRunConfigInput":{ 433 "type":"structure", 434 "members":{ 435 "TimeoutInSeconds":{ 436 "shape":"MaxFifteenMinutesInSeconds", 437 "documentation":"<p>How long the canary is allowed to run before it must stop. You can't set this time to be longer than the frequency of the runs of this canary.</p> <p>If you omit this field, the frequency of the canary is used as this value, up to a maximum of 14 minutes.</p>" 438 }, 439 "MemoryInMB":{ 440 "shape":"MaxSize3008", 441 "documentation":"<p>The maximum amount of memory available to the canary while it is running, in MB. This value must be a multiple of 64.</p>" 442 }, 443 "ActiveTracing":{ 444 "shape":"NullableBoolean", 445 "documentation":"<p>Specifies whether this canary is to use active X-Ray tracing when it runs. Active tracing enables this canary run to be displayed in the ServiceLens and X-Ray service maps even if the canary does not hit an endpoint that has X-Ray tracing enabled. Using X-Ray tracing incurs charges. For more information, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_tracing.html\"> Canaries and X-Ray tracing</a>.</p> <p>You can enable active tracing only for canaries that use version <code>syn-nodejs-2.0</code> or later for their canary runtime.</p>" 446 }, 447 "EnvironmentVariables":{ 448 "shape":"EnvironmentVariablesMap", 449 "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>" 450 } 451 }, 452 "documentation":"<p>A structure that contains input information for a canary run.</p>" 453 }, 454 "CanaryRunConfigOutput":{ 455 "type":"structure", 456 "members":{ 457 "TimeoutInSeconds":{ 458 "shape":"MaxFifteenMinutesInSeconds", 459 "documentation":"<p>How long the canary is allowed to run before it must stop.</p>" 460 }, 461 "MemoryInMB":{ 462 "shape":"MaxSize3008", 463 "documentation":"<p>The maximum amount of memory available to the canary while it is running, in MB. This value must be a multiple of 64.</p>" 464 }, 465 "ActiveTracing":{ 466 "shape":"NullableBoolean", 467 "documentation":"<p>Displays whether this canary run used active X-Ray tracing. </p>" 468 } 469 }, 470 "documentation":"<p>A structure that contains information about a canary run.</p>" 471 }, 472 "CanaryRunState":{ 473 "type":"string", 474 "enum":[ 475 "RUNNING", 476 "PASSED", 477 "FAILED" 478 ] 479 }, 480 "CanaryRunStateReasonCode":{ 481 "type":"string", 482 "enum":[ 483 "CANARY_FAILURE", 484 "EXECUTION_FAILURE" 485 ] 486 }, 487 "CanaryRunStatus":{ 488 "type":"structure", 489 "members":{ 490 "State":{ 491 "shape":"CanaryRunState", 492 "documentation":"<p>The current state of the run.</p>" 493 }, 494 "StateReason":{ 495 "shape":"String", 496 "documentation":"<p>If run of the canary failed, this field contains the reason for the error.</p>" 497 }, 498 "StateReasonCode":{ 499 "shape":"CanaryRunStateReasonCode", 500 "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>" 501 } 502 }, 503 "documentation":"<p>This structure contains the status information about a canary run.</p>" 504 }, 505 "CanaryRunTimeline":{ 506 "type":"structure", 507 "members":{ 508 "Started":{ 509 "shape":"Timestamp", 510 "documentation":"<p>The start time of the run.</p>" 511 }, 512 "Completed":{ 513 "shape":"Timestamp", 514 "documentation":"<p>The end time of the run.</p>" 515 } 516 }, 517 "documentation":"<p>This structure contains the start and end times of a single canary run.</p>" 518 }, 519 "CanaryRuns":{ 520 "type":"list", 521 "member":{"shape":"CanaryRun"} 522 }, 523 "CanaryScheduleInput":{ 524 "type":"structure", 525 "required":["Expression"], 526 "members":{ 527 "Expression":{ 528 "shape":"String", 529 "documentation":"<p>A <code>rate</code> expression or a <code>cron</code> expression that defines how often the canary is to run.</p> <p>For a rate expression, The syntax is <code>rate(<i>number unit</i>)</code>. <i>unit</i> can be <code>minute</code>, <code>minutes</code>, or <code>hour</code>. </p> <p>For example, <code>rate(1 minute)</code> runs the canary once a minute, <code>rate(10 minutes)</code> runs it once every 10 minutes, and <code>rate(1 hour)</code> runs it once every hour. You can specify a frequency between <code>rate(1 minute)</code> and <code>rate(1 hour)</code>.</p> <p>Specifying <code>rate(0 minute)</code> or <code>rate(0 hour)</code> is a special value that causes the canary to run only once when it is started.</p> <p>Use <code>cron(<i>expression</i>)</code> to specify a cron expression. You can't schedule a canary to wait for more than a year before running. For information about the syntax for cron expressions, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_cron.html\"> Scheduling canary runs using cron</a>.</p>" 530 }, 531 "DurationInSeconds":{ 532 "shape":"MaxOneYearInSeconds", 533 "documentation":"<p>How long, in seconds, for the canary to continue making regular runs according to the schedule in the <code>Expression</code> value. If you specify 0, the canary continues making runs until you stop it. If you omit this field, the default of 0 is used.</p>" 534 } 535 }, 536 "documentation":"<p>This structure specifies how often a canary is to make runs and the date and time when it should stop making runs.</p>" 537 }, 538 "CanaryScheduleOutput":{ 539 "type":"structure", 540 "members":{ 541 "Expression":{ 542 "shape":"String", 543 "documentation":"<p>A <code>rate</code> expression or a <code>cron</code> expression that defines how often the canary is to run.</p> <p>For a rate expression, The syntax is <code>rate(<i>number unit</i>)</code>. <i>unit</i> can be <code>minute</code>, <code>minutes</code>, or <code>hour</code>. </p> <p>For example, <code>rate(1 minute)</code> runs the canary once a minute, <code>rate(10 minutes)</code> runs it once every 10 minutes, and <code>rate(1 hour)</code> runs it once every hour. You can specify a frequency between <code>rate(1 minute)</code> and <code>rate(1 hour)</code>.</p> <p>Specifying <code>rate(0 minute)</code> or <code>rate(0 hour)</code> is a special value that causes the canary to run only once when it is started.</p> <p>Use <code>cron(<i>expression</i>)</code> to specify a cron expression. For information about the syntax for cron expressions, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_cron.html\"> Scheduling canary runs using cron</a>.</p>" 544 }, 545 "DurationInSeconds":{ 546 "shape":"MaxOneYearInSeconds", 547 "documentation":"<p>How long, in seconds, for the canary to continue making regular runs after it was created. The runs are performed according to the schedule in the <code>Expression</code> value.</p>" 548 } 549 }, 550 "documentation":"<p>How long, in seconds, for the canary to continue making regular runs according to the schedule in the <code>Expression</code> value.</p>" 551 }, 552 "CanaryState":{ 553 "type":"string", 554 "enum":[ 555 "CREATING", 556 "READY", 557 "STARTING", 558 "RUNNING", 559 "UPDATING", 560 "STOPPING", 561 "STOPPED", 562 "ERROR", 563 "DELETING" 564 ] 565 }, 566 "CanaryStateReasonCode":{ 567 "type":"string", 568 "enum":["INVALID_PERMISSIONS"] 569 }, 570 "CanaryStatus":{ 571 "type":"structure", 572 "members":{ 573 "State":{ 574 "shape":"CanaryState", 575 "documentation":"<p>The current state of the canary.</p>" 576 }, 577 "StateReason":{ 578 "shape":"String", 579 "documentation":"<p>If the canary has insufficient permissions to run, this field provides more details.</p>" 580 }, 581 "StateReasonCode":{ 582 "shape":"CanaryStateReasonCode", 583 "documentation":"<p>If the canary cannot run or has failed, this field displays the reason.</p>" 584 } 585 }, 586 "documentation":"<p>A structure that contains the current state of the canary.</p>" 587 }, 588 "CanaryTimeline":{ 589 "type":"structure", 590 "members":{ 591 "Created":{ 592 "shape":"Timestamp", 593 "documentation":"<p>The date and time the canary was created.</p>" 594 }, 595 "LastModified":{ 596 "shape":"Timestamp", 597 "documentation":"<p>The date and time the canary was most recently modified.</p>" 598 }, 599 "LastStarted":{ 600 "shape":"Timestamp", 601 "documentation":"<p>The date and time that the canary's most recent run started.</p>" 602 }, 603 "LastStopped":{ 604 "shape":"Timestamp", 605 "documentation":"<p>The date and time that the canary's most recent run ended.</p>" 606 } 607 }, 608 "documentation":"<p>This structure contains information about when the canary was created and modified.</p>" 609 }, 610 "ConflictException":{ 611 "type":"structure", 612 "members":{ 613 "Message":{"shape":"ErrorMessage"} 614 }, 615 "documentation":"<p>A conflicting operation is already in progress.</p>", 616 "error":{"httpStatusCode":409}, 617 "exception":true 618 }, 619 "CreateCanaryRequest":{ 620 "type":"structure", 621 "required":[ 622 "Name", 623 "Code", 624 "ArtifactS3Location", 625 "ExecutionRoleArn", 626 "Schedule", 627 "RuntimeVersion" 628 ], 629 "members":{ 630 "Name":{ 631 "shape":"CanaryName", 632 "documentation":"<p>The name for this canary. Be sure to give it a descriptive name that distinguishes it from other canaries in your account.</p> <p>Do not include secrets or proprietary information in your canary names. The canary name makes up part of the canary ARN, and the ARN is included in outbound calls over the internet. For more information, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/servicelens_canaries_security.html\">Security Considerations for Synthetics Canaries</a>.</p>" 633 }, 634 "Code":{ 635 "shape":"CanaryCodeInput", 636 "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>" 637 }, 638 "ArtifactS3Location":{ 639 "shape":"String", 640 "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>" 641 }, 642 "ExecutionRoleArn":{ 643 "shape":"RoleArn", 644 "documentation":"<p>The ARN of the IAM role to be used to run the canary. This role must already exist, and must include <code>lambda.amazonaws.com</code> as a principal in the trust policy. The role must also have the following permissions:</p> <ul> <li> <p> <code>s3:PutObject</code> </p> </li> <li> <p> <code>s3:GetBucketLocation</code> </p> </li> <li> <p> <code>s3:ListAllMyBuckets</code> </p> </li> <li> <p> <code>cloudwatch:PutMetricData</code> </p> </li> <li> <p> <code>logs:CreateLogGroup</code> </p> </li> <li> <p> <code>logs:CreateLogStream</code> </p> </li> <li> <p> <code>logs:PutLogEvents</code> </p> </li> </ul>" 645 }, 646 "Schedule":{ 647 "shape":"CanaryScheduleInput", 648 "documentation":"<p>A structure that contains information about how often the canary is to run and when these test runs are to stop.</p>" 649 }, 650 "RunConfig":{ 651 "shape":"CanaryRunConfigInput", 652 "documentation":"<p>A structure that contains the configuration for individual canary runs, such as timeout value.</p>" 653 }, 654 "SuccessRetentionPeriodInDays":{ 655 "shape":"MaxSize1024", 656 "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>" 657 }, 658 "FailureRetentionPeriodInDays":{ 659 "shape":"MaxSize1024", 660 "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>" 661 }, 662 "RuntimeVersion":{ 663 "shape":"String", 664 "documentation":"<p>Specifies the runtime version to use for the canary. For a list of valid runtime versions and more information about runtime versions, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_Library.html\"> Canary Runtime Versions</a>.</p>" 665 }, 666 "VpcConfig":{ 667 "shape":"VpcConfigInput", 668 "documentation":"<p>If this canary is to test an endpoint in a VPC, this structure contains information about the subnet and security groups of the VPC endpoint. For more information, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_VPC.html\"> Running a Canary in a VPC</a>.</p>" 669 }, 670 "Tags":{ 671 "shape":"TagMap", 672 "documentation":"<p>A list of key-value pairs to associate with the canary. You can associate as many as 50 tags with a canary.</p> <p>Tags can help you organize and categorize your resources. You can also use them to scope user permissions, by granting a user permission to access or change only the resources that have certain tag values.</p>" 673 }, 674 "ArtifactConfig":{ 675 "shape":"ArtifactConfigInput", 676 "documentation":"<p>A structure that contains the configuration for canary artifacts, including the encryption-at-rest settings for artifacts that the canary uploads to Amazon S3.</p>" 677 } 678 } 679 }, 680 "CreateCanaryResponse":{ 681 "type":"structure", 682 "members":{ 683 "Canary":{ 684 "shape":"Canary", 685 "documentation":"<p>The full details about the canary you have created.</p>" 686 } 687 } 688 }, 689 "DeleteCanaryRequest":{ 690 "type":"structure", 691 "required":["Name"], 692 "members":{ 693 "Name":{ 694 "shape":"CanaryName", 695 "documentation":"<p>The name of the canary that you want to delete. To find the names of your canaries, use <a href=\"https://docs.aws.amazon.com/AmazonSynthetics/latest/APIReference/API_DescribeCanaries.html\">DescribeCanaries</a>.</p>", 696 "location":"uri", 697 "locationName":"name" 698 } 699 } 700 }, 701 "DeleteCanaryResponse":{ 702 "type":"structure", 703 "members":{ 704 } 705 }, 706 "DescribeCanariesLastRunRequest":{ 707 "type":"structure", 708 "members":{ 709 "NextToken":{ 710 "shape":"Token", 711 "documentation":"<p>A token that indicates that there is more data available. You can use this token in a subsequent <code>DescribeCanaries</code> operation to retrieve the next set of results.</p>" 712 }, 713 "MaxResults":{ 714 "shape":"MaxSize100", 715 "documentation":"<p>Specify this parameter to limit how many runs are returned each time you use the <code>DescribeLastRun</code> operation. If you omit this parameter, the default of 100 is used.</p>" 716 } 717 } 718 }, 719 "DescribeCanariesLastRunResponse":{ 720 "type":"structure", 721 "members":{ 722 "CanariesLastRun":{ 723 "shape":"CanariesLastRun", 724 "documentation":"<p>An array that contains the information from the most recent run of each canary.</p>" 725 }, 726 "NextToken":{ 727 "shape":"Token", 728 "documentation":"<p>A token that indicates that there is more data available. You can use this token in a subsequent <code>DescribeCanariesLastRun</code> operation to retrieve the next set of results.</p>" 729 } 730 } 731 }, 732 "DescribeCanariesRequest":{ 733 "type":"structure", 734 "members":{ 735 "NextToken":{ 736 "shape":"Token", 737 "documentation":"<p>A token that indicates that there is more data available. You can use this token in a subsequent operation to retrieve the next set of results.</p>" 738 }, 739 "MaxResults":{ 740 "shape":"MaxCanaryResults", 741 "documentation":"<p>Specify this parameter to limit how many canaries are returned each time you use the <code>DescribeCanaries</code> operation. If you omit this parameter, the default of 100 is used.</p>" 742 } 743 } 744 }, 745 "DescribeCanariesResponse":{ 746 "type":"structure", 747 "members":{ 748 "Canaries":{ 749 "shape":"Canaries", 750 "documentation":"<p>Returns an array. Each item in the array contains the full information about one canary.</p>" 751 }, 752 "NextToken":{ 753 "shape":"Token", 754 "documentation":"<p>A token that indicates that there is more data available. You can use this token in a subsequent <code>DescribeCanaries</code> operation to retrieve the next set of results.</p>" 755 } 756 } 757 }, 758 "DescribeRuntimeVersionsRequest":{ 759 "type":"structure", 760 "members":{ 761 "NextToken":{ 762 "shape":"Token", 763 "documentation":"<p>A token that indicates that there is more data available. You can use this token in a subsequent <code>DescribeRuntimeVersions</code> operation to retrieve the next set of results.</p>" 764 }, 765 "MaxResults":{ 766 "shape":"MaxSize100", 767 "documentation":"<p>Specify this parameter to limit how many runs are returned each time you use the <code>DescribeRuntimeVersions</code> operation. If you omit this parameter, the default of 100 is used.</p>" 768 } 769 } 770 }, 771 "DescribeRuntimeVersionsResponse":{ 772 "type":"structure", 773 "members":{ 774 "RuntimeVersions":{ 775 "shape":"RuntimeVersionList", 776 "documentation":"<p>An array of objects that display the details about each Synthetics canary runtime version.</p>" 777 }, 778 "NextToken":{ 779 "shape":"Token", 780 "documentation":"<p>A token that indicates that there is more data available. You can use this token in a subsequent <code>DescribeRuntimeVersions</code> operation to retrieve the next set of results.</p>" 781 } 782 } 783 }, 784 "EncryptionMode":{ 785 "type":"string", 786 "enum":[ 787 "SSE_S3", 788 "SSE_KMS" 789 ] 790 }, 791 "EnvironmentVariableName":{ 792 "type":"string", 793 "pattern":"[a-zA-Z]([a-zA-Z0-9_])+" 794 }, 795 "EnvironmentVariableValue":{"type":"string"}, 796 "EnvironmentVariablesMap":{ 797 "type":"map", 798 "key":{"shape":"EnvironmentVariableName"}, 799 "value":{"shape":"EnvironmentVariableValue"} 800 }, 801 "ErrorMessage":{"type":"string"}, 802 "FunctionArn":{ 803 "type":"string", 804 "max":2048, 805 "min":1, 806 "pattern":"arn:(aws[a-zA-Z-]*)?:lambda:[a-z]{2}((-gov)|(-iso(b?)))?-[a-z]+-\\d{1}:\\d{12}:function:[a-zA-Z0-9-_]+(:(\\$LATEST|[a-zA-Z0-9-_]+))?" 807 }, 808 "GetCanaryRequest":{ 809 "type":"structure", 810 "required":["Name"], 811 "members":{ 812 "Name":{ 813 "shape":"CanaryName", 814 "documentation":"<p>The name of the canary that you want details for.</p>", 815 "location":"uri", 816 "locationName":"name" 817 } 818 } 819 }, 820 "GetCanaryResponse":{ 821 "type":"structure", 822 "members":{ 823 "Canary":{ 824 "shape":"Canary", 825 "documentation":"<p>A strucure that contains the full information about the canary.</p>" 826 } 827 } 828 }, 829 "GetCanaryRunsRequest":{ 830 "type":"structure", 831 "required":["Name"], 832 "members":{ 833 "Name":{ 834 "shape":"CanaryName", 835 "documentation":"<p>The name of the canary that you want to see runs for.</p>", 836 "location":"uri", 837 "locationName":"name" 838 }, 839 "NextToken":{ 840 "shape":"Token", 841 "documentation":"<p>A token that indicates that there is more data available. You can use this token in a subsequent <code>GetCanaryRuns</code> operation to retrieve the next set of results.</p>" 842 }, 843 "MaxResults":{ 844 "shape":"MaxSize100", 845 "documentation":"<p>Specify this parameter to limit how many runs are returned each time you use the <code>GetCanaryRuns</code> operation. If you omit this parameter, the default of 100 is used.</p>" 846 } 847 } 848 }, 849 "GetCanaryRunsResponse":{ 850 "type":"structure", 851 "members":{ 852 "CanaryRuns":{ 853 "shape":"CanaryRuns", 854 "documentation":"<p>An array of structures. Each structure contains the details of one of the retrieved canary runs.</p>" 855 }, 856 "NextToken":{ 857 "shape":"Token", 858 "documentation":"<p>A token that indicates that there is more data available. You can use this token in a subsequent <code>GetCanaryRuns</code> operation to retrieve the next set of results.</p>" 859 } 860 } 861 }, 862 "InternalServerException":{ 863 "type":"structure", 864 "members":{ 865 "Message":{"shape":"ErrorMessage"} 866 }, 867 "documentation":"<p>An unknown internal error occurred.</p>", 868 "error":{"httpStatusCode":500}, 869 "exception":true 870 }, 871 "KmsKeyArn":{ 872 "type":"string", 873 "max":2048, 874 "min":1, 875 "pattern":"arn:(aws[a-zA-Z-]*)?:kms:[a-z]{2}((-gov)|(-iso(b?)))?-[a-z]+-\\d{1}:\\d{12}:key/[\\w\\-\\/]+" 876 }, 877 "ListTagsForResourceRequest":{ 878 "type":"structure", 879 "required":["ResourceArn"], 880 "members":{ 881 "ResourceArn":{ 882 "shape":"CanaryArn", 883 "documentation":"<p>The ARN of the canary that you want to view tags for.</p> <p>The ARN format of a canary is <code>arn:aws:synthetics:<i>Region</i>:<i>account-id</i>:canary:<i>canary-name</i> </code>.</p>", 884 "location":"uri", 885 "locationName":"resourceArn" 886 } 887 } 888 }, 889 "ListTagsForResourceResponse":{ 890 "type":"structure", 891 "members":{ 892 "Tags":{ 893 "shape":"TagMap", 894 "documentation":"<p>The list of tag keys and values associated with the canary that you specified.</p>" 895 } 896 } 897 }, 898 "MaxCanaryResults":{ 899 "type":"integer", 900 "max":20, 901 "min":1 902 }, 903 "MaxFifteenMinutesInSeconds":{ 904 "type":"integer", 905 "max":840, 906 "min":3 907 }, 908 "MaxOneYearInSeconds":{ 909 "type":"long", 910 "max":31622400, 911 "min":0 912 }, 913 "MaxSize100":{ 914 "type":"integer", 915 "max":100, 916 "min":1 917 }, 918 "MaxSize1024":{ 919 "type":"integer", 920 "max":1024, 921 "min":1 922 }, 923 "MaxSize3008":{ 924 "type":"integer", 925 "max":3008, 926 "min":960 927 }, 928 "NullableBoolean":{"type":"boolean"}, 929 "ResourceNotFoundException":{ 930 "type":"structure", 931 "members":{ 932 "Message":{"shape":"ErrorMessage"} 933 }, 934 "documentation":"<p>One of the specified resources was not found.</p>", 935 "error":{"httpStatusCode":404}, 936 "exception":true 937 }, 938 "RoleArn":{ 939 "type":"string", 940 "max":2048, 941 "min":1, 942 "pattern":"arn:(aws[a-zA-Z-]*)?:iam::\\d{12}:role/?[a-zA-Z_0-9+=,.@\\-_/]+" 943 }, 944 "RuntimeVersion":{ 945 "type":"structure", 946 "members":{ 947 "VersionName":{ 948 "shape":"String", 949 "documentation":"<p>The name of the runtime version. For a list of valid runtime versions, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_Library.html\"> Canary Runtime Versions</a>.</p>" 950 }, 951 "Description":{ 952 "shape":"String", 953 "documentation":"<p>A description of the runtime version, created by Amazon.</p>" 954 }, 955 "ReleaseDate":{ 956 "shape":"Timestamp", 957 "documentation":"<p>The date that the runtime version was released.</p>" 958 }, 959 "DeprecationDate":{ 960 "shape":"Timestamp", 961 "documentation":"<p>If this runtime version is deprecated, this value is the date of deprecation.</p>" 962 } 963 }, 964 "documentation":"<p>This structure contains information about one canary runtime version. For more information about runtime versions, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_Library.html\"> Canary Runtime Versions</a>.</p>" 965 }, 966 "RuntimeVersionList":{ 967 "type":"list", 968 "member":{"shape":"RuntimeVersion"} 969 }, 970 "S3EncryptionConfig":{ 971 "type":"structure", 972 "members":{ 973 "EncryptionMode":{ 974 "shape":"EncryptionMode", 975 "documentation":"<p> The encryption method to use for artifacts created by this canary. Specify <code>SSE_S3</code> to use server-side encryption (SSE) with an Amazon S3-managed key. Specify <code>SSE-KMS</code> to use server-side encryption with a customer-managed KMS key.</p> <p>If you omit this parameter, an Amazon Web Services-managed KMS key is used. </p>" 976 }, 977 "KmsKeyArn":{ 978 "shape":"KmsKeyArn", 979 "documentation":"<p>The ARN of the customer-managed KMS key to use, if you specify <code>SSE-KMS</code> for <code>EncryptionMode</code> </p>" 980 } 981 }, 982 "documentation":"<p>A structure that contains the configuration of encryption-at-rest settings for canary artifacts that the canary uploads to Amazon S3. </p> <p>For more information, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_artifact_encryption.html\">Encrypting canary artifacts</a> </p>" 983 }, 984 "SecurityGroupId":{"type":"string"}, 985 "SecurityGroupIds":{ 986 "type":"list", 987 "member":{"shape":"SecurityGroupId"}, 988 "max":5, 989 "min":0 990 }, 991 "StartCanaryRequest":{ 992 "type":"structure", 993 "required":["Name"], 994 "members":{ 995 "Name":{ 996 "shape":"CanaryName", 997 "documentation":"<p>The name of the canary that you want to run. To find canary names, use <a href=\"https://docs.aws.amazon.com/AmazonSynthetics/latest/APIReference/API_DescribeCanaries.html\">DescribeCanaries</a>.</p>", 998 "location":"uri", 999 "locationName":"name" 1000 } 1001 } 1002 }, 1003 "StartCanaryResponse":{ 1004 "type":"structure", 1005 "members":{ 1006 } 1007 }, 1008 "StopCanaryRequest":{ 1009 "type":"structure", 1010 "required":["Name"], 1011 "members":{ 1012 "Name":{ 1013 "shape":"CanaryName", 1014 "documentation":"<p>The name of the canary that you want to stop. To find the names of your canaries, use <a href=\"https://docs.aws.amazon.com/AmazonSynthetics/latest/APIReference/API_DescribeCanaries.html\">DescribeCanaries</a>.</p>", 1015 "location":"uri", 1016 "locationName":"name" 1017 } 1018 } 1019 }, 1020 "StopCanaryResponse":{ 1021 "type":"structure", 1022 "members":{ 1023 } 1024 }, 1025 "String":{ 1026 "type":"string", 1027 "max":1024, 1028 "min":1 1029 }, 1030 "SubnetId":{"type":"string"}, 1031 "SubnetIds":{ 1032 "type":"list", 1033 "member":{"shape":"SubnetId"}, 1034 "max":16, 1035 "min":0 1036 }, 1037 "TagKey":{ 1038 "type":"string", 1039 "max":128, 1040 "min":1, 1041 "pattern":"^(?!aws:)[a-zA-Z+-=._:/]+$" 1042 }, 1043 "TagKeyList":{ 1044 "type":"list", 1045 "member":{"shape":"TagKey"}, 1046 "max":50, 1047 "min":1 1048 }, 1049 "TagMap":{ 1050 "type":"map", 1051 "key":{"shape":"TagKey"}, 1052 "value":{"shape":"TagValue"}, 1053 "max":50, 1054 "min":1 1055 }, 1056 "TagResourceRequest":{ 1057 "type":"structure", 1058 "required":[ 1059 "ResourceArn", 1060 "Tags" 1061 ], 1062 "members":{ 1063 "ResourceArn":{ 1064 "shape":"CanaryArn", 1065 "documentation":"<p>The ARN of the canary that you're adding tags to.</p> <p>The ARN format of a canary is <code>arn:aws:synthetics:<i>Region</i>:<i>account-id</i>:canary:<i>canary-name</i> </code>.</p>", 1066 "location":"uri", 1067 "locationName":"resourceArn" 1068 }, 1069 "Tags":{ 1070 "shape":"TagMap", 1071 "documentation":"<p>The list of key-value pairs to associate with the canary.</p>" 1072 } 1073 } 1074 }, 1075 "TagResourceResponse":{ 1076 "type":"structure", 1077 "members":{ 1078 } 1079 }, 1080 "TagValue":{ 1081 "type":"string", 1082 "max":256 1083 }, 1084 "Timestamp":{"type":"timestamp"}, 1085 "Token":{ 1086 "type":"string", 1087 "max":252, 1088 "min":4 1089 }, 1090 "UUID":{ 1091 "type":"string", 1092 "pattern":"^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$" 1093 }, 1094 "UntagResourceRequest":{ 1095 "type":"structure", 1096 "required":[ 1097 "ResourceArn", 1098 "TagKeys" 1099 ], 1100 "members":{ 1101 "ResourceArn":{ 1102 "shape":"CanaryArn", 1103 "documentation":"<p>The ARN of the canary that you're removing tags from.</p> <p>The ARN format of a canary is <code>arn:aws:synthetics:<i>Region</i>:<i>account-id</i>:canary:<i>canary-name</i> </code>.</p>", 1104 "location":"uri", 1105 "locationName":"resourceArn" 1106 }, 1107 "TagKeys":{ 1108 "shape":"TagKeyList", 1109 "documentation":"<p>The list of tag keys to remove from the resource.</p>", 1110 "location":"querystring", 1111 "locationName":"tagKeys" 1112 } 1113 } 1114 }, 1115 "UntagResourceResponse":{ 1116 "type":"structure", 1117 "members":{ 1118 } 1119 }, 1120 "UpdateCanaryRequest":{ 1121 "type":"structure", 1122 "required":["Name"], 1123 "members":{ 1124 "Name":{ 1125 "shape":"CanaryName", 1126 "documentation":"<p>The name of the canary that you want to update. To find the names of your canaries, use <a href=\"https://docs.aws.amazon.com/AmazonSynthetics/latest/APIReference/API_DescribeCanaries.html\">DescribeCanaries</a>.</p> <p>You cannot change the name of a canary that has already been created.</p>", 1127 "location":"uri", 1128 "locationName":"name" 1129 }, 1130 "Code":{ 1131 "shape":"CanaryCodeInput", 1132 "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>" 1133 }, 1134 "ExecutionRoleArn":{ 1135 "shape":"RoleArn", 1136 "documentation":"<p>The ARN of the IAM role to be used to run the canary. This role must already exist, and must include <code>lambda.amazonaws.com</code> as a principal in the trust policy. The role must also have the following permissions:</p> <ul> <li> <p> <code>s3:PutObject</code> </p> </li> <li> <p> <code>s3:GetBucketLocation</code> </p> </li> <li> <p> <code>s3:ListAllMyBuckets</code> </p> </li> <li> <p> <code>cloudwatch:PutMetricData</code> </p> </li> <li> <p> <code>logs:CreateLogGroup</code> </p> </li> <li> <p> <code>logs:CreateLogStream</code> </p> </li> <li> <p> <code>logs:CreateLogStream</code> </p> </li> </ul>" 1137 }, 1138 "RuntimeVersion":{ 1139 "shape":"String", 1140 "documentation":"<p>Specifies the runtime version to use for the canary. For a list of valid runtime versions and for more information about runtime versions, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_Library.html\"> Canary Runtime Versions</a>.</p>" 1141 }, 1142 "Schedule":{ 1143 "shape":"CanaryScheduleInput", 1144 "documentation":"<p>A structure that contains information about how often the canary is to run, and when these runs are to stop.</p>" 1145 }, 1146 "RunConfig":{ 1147 "shape":"CanaryRunConfigInput", 1148 "documentation":"<p>A structure that contains the timeout value that is used for each individual run of the canary.</p>" 1149 }, 1150 "SuccessRetentionPeriodInDays":{ 1151 "shape":"MaxSize1024", 1152 "documentation":"<p>The number of days to retain data about successful runs of this canary.</p>" 1153 }, 1154 "FailureRetentionPeriodInDays":{ 1155 "shape":"MaxSize1024", 1156 "documentation":"<p>The number of days to retain data about failed runs of this canary.</p>" 1157 }, 1158 "VpcConfig":{ 1159 "shape":"VpcConfigInput", 1160 "documentation":"<p>If this canary is to test an endpoint in a VPC, this structure contains information about the subnet and security groups of the VPC endpoint. For more information, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_VPC.html\"> Running a Canary in a VPC</a>.</p>" 1161 }, 1162 "VisualReference":{ 1163 "shape":"VisualReferenceInput", 1164 "documentation":"<p>Defines the screenshots to use as the baseline for comparisons during visual monitoring comparisons during future runs of this canary. If you omit this parameter, no changes are made to any baseline screenshots that the canary might be using already.</p> <p>Visual monitoring is supported only on canaries running the <b>syn-puppeteer-node-3.2</b> runtime or later. For more information, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Library_SyntheticsLogger_VisualTesting.html\"> Visual monitoring</a> and <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_Blueprints_VisualTesting.html\"> Visual monitoring blueprint</a> </p>" 1165 }, 1166 "ArtifactS3Location":{ 1167 "shape":"String", 1168 "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>" 1169 }, 1170 "ArtifactConfig":{ 1171 "shape":"ArtifactConfigInput", 1172 "documentation":"<p>A structure that contains the configuration for canary artifacts, including the encryption-at-rest settings for artifacts that the canary uploads to Amazon S3.</p>" 1173 } 1174 } 1175 }, 1176 "UpdateCanaryResponse":{ 1177 "type":"structure", 1178 "members":{ 1179 } 1180 }, 1181 "ValidationException":{ 1182 "type":"structure", 1183 "members":{ 1184 "Message":{"shape":"ErrorMessage"} 1185 }, 1186 "documentation":"<p>A parameter could not be validated.</p>", 1187 "error":{"httpStatusCode":400}, 1188 "exception":true 1189 }, 1190 "VisualReferenceInput":{ 1191 "type":"structure", 1192 "required":["BaseCanaryRunId"], 1193 "members":{ 1194 "BaseScreenshots":{ 1195 "shape":"BaseScreenshots", 1196 "documentation":"<p>An array of screenshots that will be used as the baseline for visual monitoring in future runs of this canary. If there is a screenshot that you don't want to be used for visual monitoring, remove it from this array.</p>" 1197 }, 1198 "BaseCanaryRunId":{ 1199 "shape":"String", 1200 "documentation":"<p>Specifies which canary run to use the screenshots from as the baseline for future visual monitoring with this canary. Valid values are <code>nextrun</code> to use the screenshots from the next run after this update is made, <code>lastrun</code> to use the screenshots from the most recent run before this update was made, or the value of <code>Id</code> in the <a href=\"https://docs.aws.amazon.com/AmazonSynthetics/latest/APIReference/API_CanaryRun.html\"> CanaryRun</a> from any past run of this canary.</p>" 1201 } 1202 }, 1203 "documentation":"<p>An object that specifies what screenshots to use as a baseline for visual monitoring by this canary, and optionally the parts of the screenshots to ignore during the visual monitoring comparison.</p> <p>Visual monitoring is supported only on canaries running the <b>syn-puppeteer-node-3.2</b> runtime or later. For more information, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Library_SyntheticsLogger_VisualTesting.html\"> Visual monitoring</a> and <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_Blueprints_VisualTesting.html\"> Visual monitoring blueprint</a> </p>" 1204 }, 1205 "VisualReferenceOutput":{ 1206 "type":"structure", 1207 "members":{ 1208 "BaseScreenshots":{ 1209 "shape":"BaseScreenshots", 1210 "documentation":"<p>An array of screenshots that are used as the baseline for comparisons during visual monitoring.</p>" 1211 }, 1212 "BaseCanaryRunId":{ 1213 "shape":"String", 1214 "documentation":"<p>The ID of the canary run that produced the screenshots that are used as the baseline for visual monitoring comparisons during future runs of this canary.</p>" 1215 } 1216 }, 1217 "documentation":"<p>If this canary performs visual monitoring by comparing screenshots, this structure contains the ID of the canary run that is used as the baseline for screenshots, and the coordinates of any parts of those screenshots that are ignored during visual monitoring comparison.</p> <p>Visual monitoring is supported only on canaries running the <b>syn-puppeteer-node-3.2</b> runtime or later.</p>" 1218 }, 1219 "VpcConfigInput":{ 1220 "type":"structure", 1221 "members":{ 1222 "SubnetIds":{ 1223 "shape":"SubnetIds", 1224 "documentation":"<p>The IDs of the subnets where this canary is to run.</p>" 1225 }, 1226 "SecurityGroupIds":{ 1227 "shape":"SecurityGroupIds", 1228 "documentation":"<p>The IDs of the security groups for this canary.</p>" 1229 } 1230 }, 1231 "documentation":"<p>If this canary is to test an endpoint in a VPC, this structure contains information about the subnets and security groups of the VPC endpoint. For more information, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_VPC.html\"> Running a Canary in a VPC</a>.</p>" 1232 }, 1233 "VpcConfigOutput":{ 1234 "type":"structure", 1235 "members":{ 1236 "VpcId":{ 1237 "shape":"VpcId", 1238 "documentation":"<p>The IDs of the VPC where this canary is to run.</p>" 1239 }, 1240 "SubnetIds":{ 1241 "shape":"SubnetIds", 1242 "documentation":"<p>The IDs of the subnets where this canary is to run.</p>" 1243 }, 1244 "SecurityGroupIds":{ 1245 "shape":"SecurityGroupIds", 1246 "documentation":"<p>The IDs of the security groups for this canary.</p>" 1247 } 1248 }, 1249 "documentation":"<p>If this canary is to test an endpoint in a VPC, this structure contains information about the subnets and security groups of the VPC endpoint. For more information, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_VPC.html\"> Running a Canary in a VPC</a>.</p>" 1250 }, 1251 "VpcId":{"type":"string"} 1252 }, 1253 "documentation":"<fullname>Amazon CloudWatch Synthetics</fullname> <p>You can use Amazon CloudWatch Synthetics to continually monitor your services. You can create and manage <i>canaries</i>, which are modular, lightweight scripts that monitor your endpoints and APIs from the outside-in. You can set up your canaries to run 24 hours a day, once per minute. The canaries help you check the availability and latency of your web services and troubleshoot anomalies by investigating load time data, screenshots of the UI, logs, and metrics. The canaries seamlessly integrate with CloudWatch ServiceLens to help you trace the causes of impacted nodes in your applications. For more information, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/ServiceLens.html\">Using ServiceLens to Monitor the Health of Your Applications</a> in the <i>Amazon CloudWatch User Guide</i>.</p> <p>Before you create and manage canaries, be aware of the security considerations. For more information, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/servicelens_canaries_security.html\">Security Considerations for Synthetics Canaries</a>.</p>" 1254} 1255