python-botocore/botocore/data/synthetics/2017-10-11/service-2.json
2021-10-04 09:33:37 -07:00

1255 lines
62 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"version":"2.0",
"metadata":{
"apiVersion":"2017-10-11",
"endpointPrefix":"synthetics",
"jsonVersion":"1.1",
"protocol":"rest-json",
"serviceAbbreviation":"Synthetics",
"serviceFullName":"Synthetics",
"serviceId":"synthetics",
"signatureVersion":"v4",
"signingName":"synthetics",
"uid":"synthetics-2017-10-11"
},
"operations":{
"CreateCanary":{
"name":"CreateCanary",
"http":{
"method":"POST",
"requestUri":"/canary"
},
"input":{"shape":"CreateCanaryRequest"},
"output":{"shape":"CreateCanaryResponse"},
"errors":[
{"shape":"InternalServerException"},
{"shape":"ValidationException"}
],
"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>"
},
"DeleteCanary":{
"name":"DeleteCanary",
"http":{
"method":"DELETE",
"requestUri":"/canary/{name}"
},
"input":{"shape":"DeleteCanaryRequest"},
"output":{"shape":"DeleteCanaryResponse"},
"errors":[
{"shape":"InternalServerException"},
{"shape":"ValidationException"},
{"shape":"ResourceNotFoundException"},
{"shape":"ConflictException"}
],
"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>"
},
"DescribeCanaries":{
"name":"DescribeCanaries",
"http":{
"method":"POST",
"requestUri":"/canaries"
},
"input":{"shape":"DescribeCanariesRequest"},
"output":{"shape":"DescribeCanariesResponse"},
"errors":[
{"shape":"InternalServerException"},
{"shape":"ValidationException"}
],
"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>"
},
"DescribeCanariesLastRun":{
"name":"DescribeCanariesLastRun",
"http":{
"method":"POST",
"requestUri":"/canaries/last-run"
},
"input":{"shape":"DescribeCanariesLastRunRequest"},
"output":{"shape":"DescribeCanariesLastRunResponse"},
"errors":[
{"shape":"InternalServerException"},
{"shape":"ValidationException"}
],
"documentation":"<p>Use this operation to see information from the most recent run of each canary that you have created.</p>"
},
"DescribeRuntimeVersions":{
"name":"DescribeRuntimeVersions",
"http":{
"method":"POST",
"requestUri":"/runtime-versions"
},
"input":{"shape":"DescribeRuntimeVersionsRequest"},
"output":{"shape":"DescribeRuntimeVersionsResponse"},
"errors":[
{"shape":"InternalServerException"},
{"shape":"ValidationException"}
],
"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>"
},
"GetCanary":{
"name":"GetCanary",
"http":{
"method":"GET",
"requestUri":"/canary/{name}"
},
"input":{"shape":"GetCanaryRequest"},
"output":{"shape":"GetCanaryResponse"},
"errors":[
{"shape":"InternalServerException"},
{"shape":"ValidationException"}
],
"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>"
},
"GetCanaryRuns":{
"name":"GetCanaryRuns",
"http":{
"method":"POST",
"requestUri":"/canary/{name}/runs"
},
"input":{"shape":"GetCanaryRunsRequest"},
"output":{"shape":"GetCanaryRunsResponse"},
"errors":[
{"shape":"InternalServerException"},
{"shape":"ValidationException"},
{"shape":"ResourceNotFoundException"}
],
"documentation":"<p>Retrieves a list of runs for a specified canary.</p>"
},
"ListTagsForResource":{
"name":"ListTagsForResource",
"http":{
"method":"GET",
"requestUri":"/tags/{resourceArn}"
},
"input":{"shape":"ListTagsForResourceRequest"},
"output":{"shape":"ListTagsForResourceResponse"},
"errors":[
{"shape":"InternalServerException"},
{"shape":"ResourceNotFoundException"},
{"shape":"ValidationException"}
],
"documentation":"<p>Displays the tags associated with a canary.</p>"
},
"StartCanary":{
"name":"StartCanary",
"http":{
"method":"POST",
"requestUri":"/canary/{name}/start"
},
"input":{"shape":"StartCanaryRequest"},
"output":{"shape":"StartCanaryResponse"},
"errors":[
{"shape":"InternalServerException"},
{"shape":"ValidationException"},
{"shape":"ResourceNotFoundException"},
{"shape":"ConflictException"}
],
"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>"
},
"StopCanary":{
"name":"StopCanary",
"http":{
"method":"POST",
"requestUri":"/canary/{name}/stop"
},
"input":{"shape":"StopCanaryRequest"},
"output":{"shape":"StopCanaryResponse"},
"errors":[
{"shape":"InternalServerException"},
{"shape":"ValidationException"},
{"shape":"ResourceNotFoundException"},
{"shape":"ConflictException"}
],
"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 canarys current schedule at any point in the future. </p>"
},
"TagResource":{
"name":"TagResource",
"http":{
"method":"POST",
"requestUri":"/tags/{resourceArn}"
},
"input":{"shape":"TagResourceRequest"},
"output":{"shape":"TagResourceResponse"},
"errors":[
{"shape":"InternalServerException"},
{"shape":"ResourceNotFoundException"},
{"shape":"ValidationException"}
],
"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>"
},
"UntagResource":{
"name":"UntagResource",
"http":{
"method":"DELETE",
"requestUri":"/tags/{resourceArn}"
},
"input":{"shape":"UntagResourceRequest"},
"output":{"shape":"UntagResourceResponse"},
"errors":[
{"shape":"InternalServerException"},
{"shape":"ResourceNotFoundException"},
{"shape":"ValidationException"}
],
"documentation":"<p>Removes one or more tags from the specified canary.</p>"
},
"UpdateCanary":{
"name":"UpdateCanary",
"http":{
"method":"PATCH",
"requestUri":"/canary/{name}"
},
"input":{"shape":"UpdateCanaryRequest"},
"output":{"shape":"UpdateCanaryResponse"},
"errors":[
{"shape":"InternalServerException"},
{"shape":"ValidationException"},
{"shape":"ResourceNotFoundException"},
{"shape":"ConflictException"}
],
"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>"
}
},
"shapes":{
"ArtifactConfigInput":{
"type":"structure",
"members":{
"S3Encryption":{
"shape":"S3EncryptionConfig",
"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>"
}
},
"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>"
},
"ArtifactConfigOutput":{
"type":"structure",
"members":{
"S3Encryption":{
"shape":"S3EncryptionConfig",
"documentation":"<p>A structure that contains the configuration of encryption settings for canary artifacts that are stored in Amazon S3. </p>"
}
},
"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>"
},
"BaseScreenshot":{
"type":"structure",
"required":["ScreenshotName"],
"members":{
"ScreenshotName":{
"shape":"String",
"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>"
},
"IgnoreCoordinates":{
"shape":"BaseScreenshotIgnoreCoordinates",
"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>"
}
},
"documentation":"<p>A structure representing a screenshot that is used as a baseline during visual monitoring comparisons made by the canary.</p>"
},
"BaseScreenshotConfigIgnoreCoordinate":{
"type":"string",
"pattern":"^(-?\\d{1,5}\\.?\\d{0,2},){3}(-?\\d{1,5}\\.?\\d{0,2}){1}$"
},
"BaseScreenshotIgnoreCoordinates":{
"type":"list",
"member":{"shape":"BaseScreenshotConfigIgnoreCoordinate"},
"max":20,
"min":0
},
"BaseScreenshots":{
"type":"list",
"member":{"shape":"BaseScreenshot"}
},
"Blob":{
"type":"blob",
"max":10000000,
"min":1
},
"Canaries":{
"type":"list",
"member":{"shape":"Canary"}
},
"CanariesLastRun":{
"type":"list",
"member":{"shape":"CanaryLastRun"}
},
"Canary":{
"type":"structure",
"members":{
"Id":{
"shape":"UUID",
"documentation":"<p>The unique ID of this canary.</p>"
},
"Name":{
"shape":"CanaryName",
"documentation":"<p>The name of the canary.</p>"
},
"Code":{"shape":"CanaryCodeOutput"},
"ExecutionRoleArn":{
"shape":"RoleArn",
"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>"
},
"Schedule":{
"shape":"CanaryScheduleOutput",
"documentation":"<p>A structure that contains information about how often the canary is to run, and when these runs are to stop.</p>"
},
"RunConfig":{"shape":"CanaryRunConfigOutput"},
"SuccessRetentionPeriodInDays":{
"shape":"MaxSize1024",
"documentation":"<p>The number of days to retain data about successful runs of this canary.</p>"
},
"FailureRetentionPeriodInDays":{
"shape":"MaxSize1024",
"documentation":"<p>The number of days to retain data about failed runs of this canary.</p>"
},
"Status":{
"shape":"CanaryStatus",
"documentation":"<p>A structure that contains information about the canary's status.</p>"
},
"Timeline":{
"shape":"CanaryTimeline",
"documentation":"<p>A structure that contains information about when the canary was created, modified, and most recently run.</p>"
},
"ArtifactS3Location":{
"shape":"String",
"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>"
},
"EngineArn":{
"shape":"FunctionArn",
"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>"
},
"RuntimeVersion":{
"shape":"String",
"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>"
},
"VpcConfig":{"shape":"VpcConfigOutput"},
"VisualReference":{
"shape":"VisualReferenceOutput",
"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>"
},
"Tags":{
"shape":"TagMap",
"documentation":"<p>The list of key-value pairs that are associated with the canary.</p>"
},
"ArtifactConfig":{
"shape":"ArtifactConfigOutput",
"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>"
}
},
"documentation":"<p>This structure contains all information about one canary in your account.</p>"
},
"CanaryArn":{
"type":"string",
"max":2048,
"min":1,
"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}"
},
"CanaryCodeInput":{
"type":"structure",
"required":["Handler"],
"members":{
"S3Bucket":{
"shape":"String",
"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>"
},
"S3Key":{
"shape":"String",
"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>"
},
"S3Version":{
"shape":"String",
"documentation":"<p>The S3 version ID of your script.</p>"
},
"ZipFile":{
"shape":"Blob",
"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>"
},
"Handler":{
"shape":"String",
"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>"
}
},
"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>"
},
"CanaryCodeOutput":{
"type":"structure",
"members":{
"SourceLocationArn":{
"shape":"String",
"documentation":"<p>The ARN of the Lambda layer where Synthetics stores the canary script code.</p>"
},
"Handler":{
"shape":"String",
"documentation":"<p>The entry point to use for the source code when running the canary.</p>"
}
},
"documentation":"<p>This structure contains information about the canary's Lambda handler and where its code is stored by CloudWatch Synthetics.</p>"
},
"CanaryLastRun":{
"type":"structure",
"members":{
"CanaryName":{
"shape":"CanaryName",
"documentation":"<p>The name of the canary.</p>"
},
"LastRun":{
"shape":"CanaryRun",
"documentation":"<p>The results from this canary's most recent run.</p>"
}
},
"documentation":"<p>This structure contains information about the most recent run of a single canary.</p>"
},
"CanaryName":{
"type":"string",
"max":21,
"min":1,
"pattern":"^[0-9a-z_\\-]+$"
},
"CanaryRun":{
"type":"structure",
"members":{
"Id":{
"shape":"UUID",
"documentation":"<p>A unique ID that identifies this canary run.</p>"
},
"Name":{
"shape":"CanaryName",
"documentation":"<p>The name of the canary.</p>"
},
"Status":{
"shape":"CanaryRunStatus",
"documentation":"<p>The status of this run.</p>"
},
"Timeline":{
"shape":"CanaryRunTimeline",
"documentation":"<p>A structure that contains the start and end times of this run.</p>"
},
"ArtifactS3Location":{
"shape":"String",
"documentation":"<p>The location where the canary stored artifacts from the run. Artifacts include the log file, screenshots, and HAR files.</p>"
}
},
"documentation":"<p>This structure contains the details about one run of one canary.</p>"
},
"CanaryRunConfigInput":{
"type":"structure",
"members":{
"TimeoutInSeconds":{
"shape":"MaxFifteenMinutesInSeconds",
"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>"
},
"MemoryInMB":{
"shape":"MaxSize3008",
"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>"
},
"ActiveTracing":{
"shape":"NullableBoolean",
"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>"
},
"EnvironmentVariables":{
"shape":"EnvironmentVariablesMap",
"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>"
}
},
"documentation":"<p>A structure that contains input information for a canary run.</p>"
},
"CanaryRunConfigOutput":{
"type":"structure",
"members":{
"TimeoutInSeconds":{
"shape":"MaxFifteenMinutesInSeconds",
"documentation":"<p>How long the canary is allowed to run before it must stop.</p>"
},
"MemoryInMB":{
"shape":"MaxSize3008",
"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>"
},
"ActiveTracing":{
"shape":"NullableBoolean",
"documentation":"<p>Displays whether this canary run used active X-Ray tracing. </p>"
}
},
"documentation":"<p>A structure that contains information about a canary run.</p>"
},
"CanaryRunState":{
"type":"string",
"enum":[
"RUNNING",
"PASSED",
"FAILED"
]
},
"CanaryRunStateReasonCode":{
"type":"string",
"enum":[
"CANARY_FAILURE",
"EXECUTION_FAILURE"
]
},
"CanaryRunStatus":{
"type":"structure",
"members":{
"State":{
"shape":"CanaryRunState",
"documentation":"<p>The current state of the run.</p>"
},
"StateReason":{
"shape":"String",
"documentation":"<p>If run of the canary failed, this field contains the reason for the error.</p>"
},
"StateReasonCode":{
"shape":"CanaryRunStateReasonCode",
"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>"
}
},
"documentation":"<p>This structure contains the status information about a canary run.</p>"
},
"CanaryRunTimeline":{
"type":"structure",
"members":{
"Started":{
"shape":"Timestamp",
"documentation":"<p>The start time of the run.</p>"
},
"Completed":{
"shape":"Timestamp",
"documentation":"<p>The end time of the run.</p>"
}
},
"documentation":"<p>This structure contains the start and end times of a single canary run.</p>"
},
"CanaryRuns":{
"type":"list",
"member":{"shape":"CanaryRun"}
},
"CanaryScheduleInput":{
"type":"structure",
"required":["Expression"],
"members":{
"Expression":{
"shape":"String",
"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>"
},
"DurationInSeconds":{
"shape":"MaxOneYearInSeconds",
"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>"
}
},
"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>"
},
"CanaryScheduleOutput":{
"type":"structure",
"members":{
"Expression":{
"shape":"String",
"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>"
},
"DurationInSeconds":{
"shape":"MaxOneYearInSeconds",
"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>"
}
},
"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>"
},
"CanaryState":{
"type":"string",
"enum":[
"CREATING",
"READY",
"STARTING",
"RUNNING",
"UPDATING",
"STOPPING",
"STOPPED",
"ERROR",
"DELETING"
]
},
"CanaryStateReasonCode":{
"type":"string",
"enum":["INVALID_PERMISSIONS"]
},
"CanaryStatus":{
"type":"structure",
"members":{
"State":{
"shape":"CanaryState",
"documentation":"<p>The current state of the canary.</p>"
},
"StateReason":{
"shape":"String",
"documentation":"<p>If the canary has insufficient permissions to run, this field provides more details.</p>"
},
"StateReasonCode":{
"shape":"CanaryStateReasonCode",
"documentation":"<p>If the canary cannot run or has failed, this field displays the reason.</p>"
}
},
"documentation":"<p>A structure that contains the current state of the canary.</p>"
},
"CanaryTimeline":{
"type":"structure",
"members":{
"Created":{
"shape":"Timestamp",
"documentation":"<p>The date and time the canary was created.</p>"
},
"LastModified":{
"shape":"Timestamp",
"documentation":"<p>The date and time the canary was most recently modified.</p>"
},
"LastStarted":{
"shape":"Timestamp",
"documentation":"<p>The date and time that the canary's most recent run started.</p>"
},
"LastStopped":{
"shape":"Timestamp",
"documentation":"<p>The date and time that the canary's most recent run ended.</p>"
}
},
"documentation":"<p>This structure contains information about when the canary was created and modified.</p>"
},
"ConflictException":{
"type":"structure",
"members":{
"Message":{"shape":"ErrorMessage"}
},
"documentation":"<p>A conflicting operation is already in progress.</p>",
"error":{"httpStatusCode":409},
"exception":true
},
"CreateCanaryRequest":{
"type":"structure",
"required":[
"Name",
"Code",
"ArtifactS3Location",
"ExecutionRoleArn",
"Schedule",
"RuntimeVersion"
],
"members":{
"Name":{
"shape":"CanaryName",
"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>"
},
"Code":{
"shape":"CanaryCodeInput",
"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>"
},
"ArtifactS3Location":{
"shape":"String",
"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>"
},
"ExecutionRoleArn":{
"shape":"RoleArn",
"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>"
},
"Schedule":{
"shape":"CanaryScheduleInput",
"documentation":"<p>A structure that contains information about how often the canary is to run and when these test runs are to stop.</p>"
},
"RunConfig":{
"shape":"CanaryRunConfigInput",
"documentation":"<p>A structure that contains the configuration for individual canary runs, such as timeout value.</p>"
},
"SuccessRetentionPeriodInDays":{
"shape":"MaxSize1024",
"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>"
},
"FailureRetentionPeriodInDays":{
"shape":"MaxSize1024",
"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>"
},
"RuntimeVersion":{
"shape":"String",
"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>"
},
"VpcConfig":{
"shape":"VpcConfigInput",
"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>"
},
"Tags":{
"shape":"TagMap",
"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>"
},
"ArtifactConfig":{
"shape":"ArtifactConfigInput",
"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>"
}
}
},
"CreateCanaryResponse":{
"type":"structure",
"members":{
"Canary":{
"shape":"Canary",
"documentation":"<p>The full details about the canary you have created.</p>"
}
}
},
"DeleteCanaryRequest":{
"type":"structure",
"required":["Name"],
"members":{
"Name":{
"shape":"CanaryName",
"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>",
"location":"uri",
"locationName":"name"
}
}
},
"DeleteCanaryResponse":{
"type":"structure",
"members":{
}
},
"DescribeCanariesLastRunRequest":{
"type":"structure",
"members":{
"NextToken":{
"shape":"Token",
"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>"
},
"MaxResults":{
"shape":"MaxSize100",
"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>"
}
}
},
"DescribeCanariesLastRunResponse":{
"type":"structure",
"members":{
"CanariesLastRun":{
"shape":"CanariesLastRun",
"documentation":"<p>An array that contains the information from the most recent run of each canary.</p>"
},
"NextToken":{
"shape":"Token",
"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>"
}
}
},
"DescribeCanariesRequest":{
"type":"structure",
"members":{
"NextToken":{
"shape":"Token",
"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>"
},
"MaxResults":{
"shape":"MaxCanaryResults",
"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>"
}
}
},
"DescribeCanariesResponse":{
"type":"structure",
"members":{
"Canaries":{
"shape":"Canaries",
"documentation":"<p>Returns an array. Each item in the array contains the full information about one canary.</p>"
},
"NextToken":{
"shape":"Token",
"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>"
}
}
},
"DescribeRuntimeVersionsRequest":{
"type":"structure",
"members":{
"NextToken":{
"shape":"Token",
"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>"
},
"MaxResults":{
"shape":"MaxSize100",
"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>"
}
}
},
"DescribeRuntimeVersionsResponse":{
"type":"structure",
"members":{
"RuntimeVersions":{
"shape":"RuntimeVersionList",
"documentation":"<p>An array of objects that display the details about each Synthetics canary runtime version.</p>"
},
"NextToken":{
"shape":"Token",
"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>"
}
}
},
"EncryptionMode":{
"type":"string",
"enum":[
"SSE_S3",
"SSE_KMS"
]
},
"EnvironmentVariableName":{
"type":"string",
"pattern":"[a-zA-Z]([a-zA-Z0-9_])+"
},
"EnvironmentVariableValue":{"type":"string"},
"EnvironmentVariablesMap":{
"type":"map",
"key":{"shape":"EnvironmentVariableName"},
"value":{"shape":"EnvironmentVariableValue"}
},
"ErrorMessage":{"type":"string"},
"FunctionArn":{
"type":"string",
"max":2048,
"min":1,
"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-_]+))?"
},
"GetCanaryRequest":{
"type":"structure",
"required":["Name"],
"members":{
"Name":{
"shape":"CanaryName",
"documentation":"<p>The name of the canary that you want details for.</p>",
"location":"uri",
"locationName":"name"
}
}
},
"GetCanaryResponse":{
"type":"structure",
"members":{
"Canary":{
"shape":"Canary",
"documentation":"<p>A strucure that contains the full information about the canary.</p>"
}
}
},
"GetCanaryRunsRequest":{
"type":"structure",
"required":["Name"],
"members":{
"Name":{
"shape":"CanaryName",
"documentation":"<p>The name of the canary that you want to see runs for.</p>",
"location":"uri",
"locationName":"name"
},
"NextToken":{
"shape":"Token",
"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>"
},
"MaxResults":{
"shape":"MaxSize100",
"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>"
}
}
},
"GetCanaryRunsResponse":{
"type":"structure",
"members":{
"CanaryRuns":{
"shape":"CanaryRuns",
"documentation":"<p>An array of structures. Each structure contains the details of one of the retrieved canary runs.</p>"
},
"NextToken":{
"shape":"Token",
"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>"
}
}
},
"InternalServerException":{
"type":"structure",
"members":{
"Message":{"shape":"ErrorMessage"}
},
"documentation":"<p>An unknown internal error occurred.</p>",
"error":{"httpStatusCode":500},
"exception":true
},
"KmsKeyArn":{
"type":"string",
"max":2048,
"min":1,
"pattern":"arn:(aws[a-zA-Z-]*)?:kms:[a-z]{2}((-gov)|(-iso(b?)))?-[a-z]+-\\d{1}:\\d{12}:key/[\\w\\-\\/]+"
},
"ListTagsForResourceRequest":{
"type":"structure",
"required":["ResourceArn"],
"members":{
"ResourceArn":{
"shape":"CanaryArn",
"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>",
"location":"uri",
"locationName":"resourceArn"
}
}
},
"ListTagsForResourceResponse":{
"type":"structure",
"members":{
"Tags":{
"shape":"TagMap",
"documentation":"<p>The list of tag keys and values associated with the canary that you specified.</p>"
}
}
},
"MaxCanaryResults":{
"type":"integer",
"max":20,
"min":1
},
"MaxFifteenMinutesInSeconds":{
"type":"integer",
"max":840,
"min":3
},
"MaxOneYearInSeconds":{
"type":"long",
"max":31622400,
"min":0
},
"MaxSize100":{
"type":"integer",
"max":100,
"min":1
},
"MaxSize1024":{
"type":"integer",
"max":1024,
"min":1
},
"MaxSize3008":{
"type":"integer",
"max":3008,
"min":960
},
"NullableBoolean":{"type":"boolean"},
"ResourceNotFoundException":{
"type":"structure",
"members":{
"Message":{"shape":"ErrorMessage"}
},
"documentation":"<p>One of the specified resources was not found.</p>",
"error":{"httpStatusCode":404},
"exception":true
},
"RoleArn":{
"type":"string",
"max":2048,
"min":1,
"pattern":"arn:(aws[a-zA-Z-]*)?:iam::\\d{12}:role/?[a-zA-Z_0-9+=,.@\\-_/]+"
},
"RuntimeVersion":{
"type":"structure",
"members":{
"VersionName":{
"shape":"String",
"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>"
},
"Description":{
"shape":"String",
"documentation":"<p>A description of the runtime version, created by Amazon.</p>"
},
"ReleaseDate":{
"shape":"Timestamp",
"documentation":"<p>The date that the runtime version was released.</p>"
},
"DeprecationDate":{
"shape":"Timestamp",
"documentation":"<p>If this runtime version is deprecated, this value is the date of deprecation.</p>"
}
},
"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>"
},
"RuntimeVersionList":{
"type":"list",
"member":{"shape":"RuntimeVersion"}
},
"S3EncryptionConfig":{
"type":"structure",
"members":{
"EncryptionMode":{
"shape":"EncryptionMode",
"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>"
},
"KmsKeyArn":{
"shape":"KmsKeyArn",
"documentation":"<p>The ARN of the customer-managed KMS key to use, if you specify <code>SSE-KMS</code> for <code>EncryptionMode</code> </p>"
}
},
"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>"
},
"SecurityGroupId":{"type":"string"},
"SecurityGroupIds":{
"type":"list",
"member":{"shape":"SecurityGroupId"},
"max":5,
"min":0
},
"StartCanaryRequest":{
"type":"structure",
"required":["Name"],
"members":{
"Name":{
"shape":"CanaryName",
"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>",
"location":"uri",
"locationName":"name"
}
}
},
"StartCanaryResponse":{
"type":"structure",
"members":{
}
},
"StopCanaryRequest":{
"type":"structure",
"required":["Name"],
"members":{
"Name":{
"shape":"CanaryName",
"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>",
"location":"uri",
"locationName":"name"
}
}
},
"StopCanaryResponse":{
"type":"structure",
"members":{
}
},
"String":{
"type":"string",
"max":1024,
"min":1
},
"SubnetId":{"type":"string"},
"SubnetIds":{
"type":"list",
"member":{"shape":"SubnetId"},
"max":16,
"min":0
},
"TagKey":{
"type":"string",
"max":128,
"min":1,
"pattern":"^(?!aws:)[a-zA-Z+-=._:/]+$"
},
"TagKeyList":{
"type":"list",
"member":{"shape":"TagKey"},
"max":50,
"min":1
},
"TagMap":{
"type":"map",
"key":{"shape":"TagKey"},
"value":{"shape":"TagValue"},
"max":50,
"min":1
},
"TagResourceRequest":{
"type":"structure",
"required":[
"ResourceArn",
"Tags"
],
"members":{
"ResourceArn":{
"shape":"CanaryArn",
"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>",
"location":"uri",
"locationName":"resourceArn"
},
"Tags":{
"shape":"TagMap",
"documentation":"<p>The list of key-value pairs to associate with the canary.</p>"
}
}
},
"TagResourceResponse":{
"type":"structure",
"members":{
}
},
"TagValue":{
"type":"string",
"max":256
},
"Timestamp":{"type":"timestamp"},
"Token":{
"type":"string",
"max":252,
"min":4
},
"UUID":{
"type":"string",
"pattern":"^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$"
},
"UntagResourceRequest":{
"type":"structure",
"required":[
"ResourceArn",
"TagKeys"
],
"members":{
"ResourceArn":{
"shape":"CanaryArn",
"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>",
"location":"uri",
"locationName":"resourceArn"
},
"TagKeys":{
"shape":"TagKeyList",
"documentation":"<p>The list of tag keys to remove from the resource.</p>",
"location":"querystring",
"locationName":"tagKeys"
}
}
},
"UntagResourceResponse":{
"type":"structure",
"members":{
}
},
"UpdateCanaryRequest":{
"type":"structure",
"required":["Name"],
"members":{
"Name":{
"shape":"CanaryName",
"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>",
"location":"uri",
"locationName":"name"
},
"Code":{
"shape":"CanaryCodeInput",
"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>"
},
"ExecutionRoleArn":{
"shape":"RoleArn",
"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>"
},
"RuntimeVersion":{
"shape":"String",
"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>"
},
"Schedule":{
"shape":"CanaryScheduleInput",
"documentation":"<p>A structure that contains information about how often the canary is to run, and when these runs are to stop.</p>"
},
"RunConfig":{
"shape":"CanaryRunConfigInput",
"documentation":"<p>A structure that contains the timeout value that is used for each individual run of the canary.</p>"
},
"SuccessRetentionPeriodInDays":{
"shape":"MaxSize1024",
"documentation":"<p>The number of days to retain data about successful runs of this canary.</p>"
},
"FailureRetentionPeriodInDays":{
"shape":"MaxSize1024",
"documentation":"<p>The number of days to retain data about failed runs of this canary.</p>"
},
"VpcConfig":{
"shape":"VpcConfigInput",
"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>"
},
"VisualReference":{
"shape":"VisualReferenceInput",
"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>"
},
"ArtifactS3Location":{
"shape":"String",
"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>"
},
"ArtifactConfig":{
"shape":"ArtifactConfigInput",
"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>"
}
}
},
"UpdateCanaryResponse":{
"type":"structure",
"members":{
}
},
"ValidationException":{
"type":"structure",
"members":{
"Message":{"shape":"ErrorMessage"}
},
"documentation":"<p>A parameter could not be validated.</p>",
"error":{"httpStatusCode":400},
"exception":true
},
"VisualReferenceInput":{
"type":"structure",
"required":["BaseCanaryRunId"],
"members":{
"BaseScreenshots":{
"shape":"BaseScreenshots",
"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>"
},
"BaseCanaryRunId":{
"shape":"String",
"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>"
}
},
"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>"
},
"VisualReferenceOutput":{
"type":"structure",
"members":{
"BaseScreenshots":{
"shape":"BaseScreenshots",
"documentation":"<p>An array of screenshots that are used as the baseline for comparisons during visual monitoring.</p>"
},
"BaseCanaryRunId":{
"shape":"String",
"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>"
}
},
"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>"
},
"VpcConfigInput":{
"type":"structure",
"members":{
"SubnetIds":{
"shape":"SubnetIds",
"documentation":"<p>The IDs of the subnets where this canary is to run.</p>"
},
"SecurityGroupIds":{
"shape":"SecurityGroupIds",
"documentation":"<p>The IDs of the security groups for this canary.</p>"
}
},
"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>"
},
"VpcConfigOutput":{
"type":"structure",
"members":{
"VpcId":{
"shape":"VpcId",
"documentation":"<p>The IDs of the VPC where this canary is to run.</p>"
},
"SubnetIds":{
"shape":"SubnetIds",
"documentation":"<p>The IDs of the subnets where this canary is to run.</p>"
},
"SecurityGroupIds":{
"shape":"SecurityGroupIds",
"documentation":"<p>The IDs of the security groups for this canary.</p>"
}
},
"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>"
},
"VpcId":{"type":"string"}
},
"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>"
}