|
308 | 308 | "min": 1,
|
309 | 309 | "max": 2048
|
310 | 310 | },
|
311 |
| - "smithy.api#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}$" |
| 311 | + "smithy.api#pattern": "^arn:(aws[a-zA-Z-]*)?:synthetics:[a-z]{2}((-gov)|(-iso(b?)))?-[a-z]+-\\d{1}:\\d{12}:canary:[0-9a-z_\\-]{1,255}$" |
312 | 312 | }
|
313 | 313 | },
|
314 | 314 | "com.amazonaws.synthetics#CanaryCodeInput": {
|
|
347 | 347 | }
|
348 | 348 | },
|
349 | 349 | "traits": {
|
350 |
| - "smithy.api#documentation": "<p>Use this structure to input your script code for the canary. This structure contains the\n Lambda handler with the location where the canary should start running the script. If the\n script is stored in an S3 bucket, the bucket name, key, and version are also included. If\n the script was passed into the canary directly, the script code is contained in the value\n of <code>Zipfile</code>. </p>" |
| 350 | + "smithy.api#documentation": "<p>Use this structure to input your script code for the canary. This structure contains the\n Lambda handler with the location where the canary should start running the script. If the\n script is stored in an S3 bucket, the bucket name, key, and version are also included. If\n the script was passed into the canary directly, the script code is contained in the value\n of <code>Zipfile</code>. </p>\n <p>If you are uploading your canary scripts with an Amazon S3 bucket, your zip file should include your \n script in a certain folder structure.</p>\n <ul>\n <li>\n <p>For Node.js canaries, the folder structure must be <code>nodejs/node_modules/<i>myCanaryFilename.js</i>\n </code>\n For more information, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_WritingCanary_Nodejs.html#CloudWatch_Synthetics_Canaries_package\">Packaging your Node.js canary files</a>\n </p>\n </li>\n <li>\n <p>For Python canaries, the folder structure must be <code>python/<i>myCanaryFilename.p</i>\n </code> or <code>python/<i>myFolder/myCanaryFilename.py</i>\n </code>\n For more information, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_WritingCanary_Python.html#CloudWatch_Synthetics_Canaries_WritingCanary_Python_package\">Packaging your Python canary files</a>\n </p>\n </li>\n </ul>" |
351 | 351 | }
|
352 | 352 | },
|
353 | 353 | "com.amazonaws.synthetics#CanaryCodeOutput": {
|
|
395 | 395 | "traits": {
|
396 | 396 | "smithy.api#length": {
|
397 | 397 | "min": 1,
|
398 |
| - "max": 21 |
| 398 | + "max": 255 |
399 | 399 | },
|
400 | 400 | "smithy.api#pattern": "^[0-9a-z_\\-]+$"
|
401 | 401 | }
|
|
943 | 943 | "smithy.api#documentation": "<p>If this canary is to test an endpoint in a VPC, this structure contains\n information about the subnet and security groups of the VPC endpoint. \n For more information, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_VPC.html\">\n Running a Canary in a VPC</a>.</p>"
|
944 | 944 | }
|
945 | 945 | },
|
| 946 | + "ResourcesToReplicateTags": { |
| 947 | + "target": "com.amazonaws.synthetics#ResourceList", |
| 948 | + "traits": { |
| 949 | + "smithy.api#documentation": "<p>To have the tags that you apply to this canary also be applied to the Lambda function that\n the canary uses, specify this parameter with the value <code>lambda-function</code>.</p>\n <p>If you specify this parameter and don't specify any tags in the <code>Tags</code>\n parameter, the canary creation fails.</p>" |
| 950 | + } |
| 951 | + }, |
946 | 952 | "Tags": {
|
947 | 953 | "target": "com.amazonaws.synthetics#TagMap",
|
948 | 954 | "traits": {
|
949 |
| - "smithy.api#documentation": "<p>A list of key-value pairs to associate with the canary. \n You can associate as many as 50 tags with a canary.</p>\n <p>Tags can help you organize and categorize your\n resources. You can also use them to scope user permissions, by \n granting a user permission to access or change only the resources that have\n certain tag values.</p>" |
| 955 | + "smithy.api#documentation": "<p>A list of key-value pairs to associate with the canary. \n You can associate as many as 50 tags with a canary.</p>\n <p>Tags can help you organize and categorize your\n resources. You can also use them to scope user permissions, by \n granting a user permission to access or change only the resources that have\n certain tag values.</p>\n <p>To have the tags that you apply to this canary also be applied to the Lambda function that\n the canary uses, specify this parameter with the value <code>lambda-function</code>.</p>" |
950 | 956 | }
|
951 | 957 | },
|
952 | 958 | "ArtifactConfig": {
|
|
1063 | 1069 | }
|
1064 | 1070 | ],
|
1065 | 1071 | "traits": {
|
1066 |
| - "smithy.api#documentation": "<p>Permanently deletes the specified canary.</p>\n <p>If you specify <code>DeleteLambda</code> to <code>true</code>, CloudWatch Synthetics also deletes\n the Lambda functions and layers that are used by the canary.</p>\n <p>Other resources used and created by the canary are not automatically deleted. \n After you delete a canary that you do not intend to\n use again, you\n should also delete the following:</p>\n <ul>\n <li>\n <p>The CloudWatch alarms created for this canary. These alarms have a name of\n <code>Synthetics-SharpDrop-Alarm-<i>MyCanaryName</i>\n </code>.</p>\n </li>\n <li>\n <p>Amazon S3 objects and buckets, such as the canary's artifact location.</p>\n </li>\n <li>\n <p>IAM roles created for the canary. If they were created in the console, these roles\n have the name <code>\n role/service-role/CloudWatchSyntheticsRole-<i>MyCanaryName</i>\n </code>.</p>\n </li>\n <li>\n <p>CloudWatch Logs log groups created for the canary. These logs groups have the name\n <code>/aws/lambda/cwsyn-<i>MyCanaryName</i>\n </code>. </p>\n </li>\n </ul>\n <p>Before you delete a canary, you might want to use <code>GetCanary</code> to display\n the information about this canary. Make\n note of the information returned by this operation so that you can delete these resources\n after you delete the canary.</p>", |
| 1072 | + "smithy.api#documentation": "<p>Permanently deletes the specified canary.</p>\n <p>If you specify <code>DeleteLambda</code> to <code>true</code>, CloudWatch Synthetics also deletes\n the Lambda functions and layers that are used by the canary.</p>\n <p>Other resources used and created by the canary are not automatically deleted. \n After you delete a canary that you do not intend to\n use again, you\n should also delete the following:</p>\n <ul>\n <li>\n <p>The CloudWatch alarms created for this canary. These alarms have a name of\n <code>Synthetics-Alarm-<i>first-198-characters-of-canary-name</i>-<i>canaryId</i>-<i>alarm number</i>\n </code>\n </p>\n </li>\n <li>\n <p>Amazon S3 objects and buckets, such as the canary's artifact location.</p>\n </li>\n <li>\n <p>IAM roles created for the canary. If they were created in the console, these roles\n have the name <code>\n role/service-role/CloudWatchSyntheticsRole-<i>First-21-Characters-of-CanaryName</i>\n </code>\n </p>\n </li>\n <li>\n <p>CloudWatch Logs log groups created for the canary. These logs groups have the name\n <code>/aws/lambda/cwsyn-<i>First-21-Characters-of-CanaryName</i>\n </code>\n </p>\n </li>\n </ul>\n <p>Before you delete a canary, you might want to use <code>GetCanary</code> to display\n the information about this canary. Make\n note of the information returned by this operation so that you can delete these resources\n after you delete the canary.</p>", |
1067 | 1073 | "smithy.api#http": {
|
1068 | 1074 | "method": "DELETE",
|
1069 | 1075 | "uri": "/canary/{Name}",
|
|
1298 | 1304 | "MaxResults": {
|
1299 | 1305 | "target": "com.amazonaws.synthetics#MaxCanaryResults",
|
1300 | 1306 | "traits": {
|
1301 |
| - "smithy.api#documentation": "<p>Specify this parameter to limit how many canaries are returned each time you use\n the <code>DescribeCanaries</code> operation. If you omit this parameter, the default of 100 is used.</p>" |
| 1307 | + "smithy.api#documentation": "<p>Specify this parameter to limit how many canaries are returned each time you use\n the <code>DescribeCanaries</code> operation. If you omit this parameter, the default of 20 is used.</p>" |
1302 | 1308 | }
|
1303 | 1309 | },
|
1304 | 1310 | "Names": {
|
|
2259 | 2265 | "smithy.api#pattern": "^arn:(aws[a-zA-Z-]*)?:synthetics:[a-z]{2}((-gov)|(-iso(b?)))?-[a-z]+-\\d{1}:\\d{12}:(canary|group):[0-9a-z_\\-]+$"
|
2260 | 2266 | }
|
2261 | 2267 | },
|
| 2268 | + "com.amazonaws.synthetics#ResourceList": { |
| 2269 | + "type": "list", |
| 2270 | + "member": { |
| 2271 | + "target": "com.amazonaws.synthetics#ResourceToTag" |
| 2272 | + }, |
| 2273 | + "traits": { |
| 2274 | + "smithy.api#length": { |
| 2275 | + "min": 1, |
| 2276 | + "max": 1 |
| 2277 | + } |
| 2278 | + } |
| 2279 | + }, |
2262 | 2280 | "com.amazonaws.synthetics#ResourceNotFoundException": {
|
2263 | 2281 | "type": "structure",
|
2264 | 2282 | "members": {
|
|
2272 | 2290 | "smithy.api#httpError": 404
|
2273 | 2291 | }
|
2274 | 2292 | },
|
| 2293 | + "com.amazonaws.synthetics#ResourceToTag": { |
| 2294 | + "type": "enum", |
| 2295 | + "members": { |
| 2296 | + "LAMBDA_FUNCTION": { |
| 2297 | + "target": "smithy.api#Unit", |
| 2298 | + "traits": { |
| 2299 | + "smithy.api#enumValue": "lambda-function" |
| 2300 | + } |
| 2301 | + } |
| 2302 | + } |
| 2303 | + }, |
2275 | 2304 | "com.amazonaws.synthetics#RoleArn": {
|
2276 | 2305 | "type": "string",
|
2277 | 2306 | "traits": {
|
|
0 commit comments