@aws-sdk/client-synthetics 3.121.0 → 3.124.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/README.md +7 -7
  3. package/dist-cjs/Synthetics.js +120 -0
  4. package/dist-cjs/commands/AssociateResourceCommand.js +36 -0
  5. package/dist-cjs/commands/CreateGroupCommand.js +36 -0
  6. package/dist-cjs/commands/DeleteGroupCommand.js +36 -0
  7. package/dist-cjs/commands/DisassociateResourceCommand.js +36 -0
  8. package/dist-cjs/commands/GetGroupCommand.js +36 -0
  9. package/dist-cjs/commands/ListAssociatedGroupsCommand.js +36 -0
  10. package/dist-cjs/commands/ListGroupResourcesCommand.js +36 -0
  11. package/dist-cjs/commands/ListGroupsCommand.js +36 -0
  12. package/dist-cjs/commands/index.js +8 -0
  13. package/dist-cjs/models/models_0.js +236 -58
  14. package/dist-cjs/pagination/ListAssociatedGroupsPaginator.js +36 -0
  15. package/dist-cjs/pagination/ListGroupResourcesPaginator.js +36 -0
  16. package/dist-cjs/pagination/ListGroupsPaginator.js +36 -0
  17. package/dist-cjs/pagination/index.js +3 -0
  18. package/dist-cjs/protocols/Aws_restJson1.js +798 -83
  19. package/dist-es/Synthetics.js +120 -0
  20. package/dist-es/commands/AssociateResourceCommand.js +39 -0
  21. package/dist-es/commands/CreateGroupCommand.js +39 -0
  22. package/dist-es/commands/DeleteGroupCommand.js +39 -0
  23. package/dist-es/commands/DisassociateResourceCommand.js +39 -0
  24. package/dist-es/commands/GetGroupCommand.js +39 -0
  25. package/dist-es/commands/ListAssociatedGroupsCommand.js +39 -0
  26. package/dist-es/commands/ListGroupResourcesCommand.js +39 -0
  27. package/dist-es/commands/ListGroupsCommand.js +39 -0
  28. package/dist-es/commands/index.js +8 -0
  29. package/dist-es/models/models_0.js +189 -52
  30. package/dist-es/pagination/ListAssociatedGroupsPaginator.js +75 -0
  31. package/dist-es/pagination/ListGroupResourcesPaginator.js +75 -0
  32. package/dist-es/pagination/ListGroupsPaginator.js +75 -0
  33. package/dist-es/pagination/index.js +3 -0
  34. package/dist-es/protocols/Aws_restJson1.js +1041 -128
  35. package/dist-types/Synthetics.d.ts +90 -11
  36. package/dist-types/SyntheticsClient.d.ts +10 -2
  37. package/dist-types/commands/AssociateResourceCommand.d.ts +38 -0
  38. package/dist-types/commands/CreateCanaryCommand.d.ts +1 -1
  39. package/dist-types/commands/CreateGroupCommand.d.ts +47 -0
  40. package/dist-types/commands/DeleteCanaryCommand.d.ts +1 -1
  41. package/dist-types/commands/DeleteGroupCommand.d.ts +39 -0
  42. package/dist-types/commands/DisassociateResourceCommand.d.ts +35 -0
  43. package/dist-types/commands/GetGroupCommand.d.ts +36 -0
  44. package/dist-types/commands/ListAssociatedGroupsCommand.d.ts +36 -0
  45. package/dist-types/commands/ListGroupResourcesCommand.d.ts +35 -0
  46. package/dist-types/commands/ListGroupsCommand.d.ts +36 -0
  47. package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
  48. package/dist-types/commands/StopCanaryCommand.d.ts +1 -2
  49. package/dist-types/commands/TagResourceCommand.d.ts +6 -4
  50. package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
  51. package/dist-types/commands/UpdateCanaryCommand.d.ts +1 -1
  52. package/dist-types/commands/index.d.ts +8 -0
  53. package/dist-types/models/models_0.d.ts +450 -52
  54. package/dist-types/pagination/ListAssociatedGroupsPaginator.d.ts +4 -0
  55. package/dist-types/pagination/ListGroupResourcesPaginator.d.ts +4 -0
  56. package/dist-types/pagination/ListGroupsPaginator.d.ts +4 -0
  57. package/dist-types/pagination/index.d.ts +3 -0
  58. package/dist-types/protocols/Aws_restJson1.d.ts +24 -0
  59. package/dist-types/ts3.4/Synthetics.d.ts +40 -0
  60. package/dist-types/ts3.4/SyntheticsClient.d.ts +10 -2
  61. package/dist-types/ts3.4/commands/AssociateResourceCommand.d.ts +17 -0
  62. package/dist-types/ts3.4/commands/CreateGroupCommand.d.ts +17 -0
  63. package/dist-types/ts3.4/commands/DeleteGroupCommand.d.ts +17 -0
  64. package/dist-types/ts3.4/commands/DisassociateResourceCommand.d.ts +17 -0
  65. package/dist-types/ts3.4/commands/GetGroupCommand.d.ts +17 -0
  66. package/dist-types/ts3.4/commands/ListAssociatedGroupsCommand.d.ts +17 -0
  67. package/dist-types/ts3.4/commands/ListGroupResourcesCommand.d.ts +17 -0
  68. package/dist-types/ts3.4/commands/ListGroupsCommand.d.ts +17 -0
  69. package/dist-types/ts3.4/commands/index.d.ts +8 -0
  70. package/dist-types/ts3.4/models/models_0.d.ts +243 -27
  71. package/dist-types/ts3.4/pagination/ListAssociatedGroupsPaginator.d.ts +4 -0
  72. package/dist-types/ts3.4/pagination/ListGroupResourcesPaginator.d.ts +4 -0
  73. package/dist-types/ts3.4/pagination/ListGroupsPaginator.d.ts +4 -0
  74. package/dist-types/ts3.4/pagination/index.d.ts +3 -0
  75. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +24 -0
  76. package/package.json +1 -1
@@ -1,10 +1,41 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deserializeAws_restJson1UpdateCanaryCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1StopCanaryCommand = exports.deserializeAws_restJson1StartCanaryCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1GetCanaryRunsCommand = exports.deserializeAws_restJson1GetCanaryCommand = exports.deserializeAws_restJson1DescribeRuntimeVersionsCommand = exports.deserializeAws_restJson1DescribeCanariesLastRunCommand = exports.deserializeAws_restJson1DescribeCanariesCommand = exports.deserializeAws_restJson1DeleteCanaryCommand = exports.deserializeAws_restJson1CreateCanaryCommand = exports.serializeAws_restJson1UpdateCanaryCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1StopCanaryCommand = exports.serializeAws_restJson1StartCanaryCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1GetCanaryRunsCommand = exports.serializeAws_restJson1GetCanaryCommand = exports.serializeAws_restJson1DescribeRuntimeVersionsCommand = exports.serializeAws_restJson1DescribeCanariesLastRunCommand = exports.serializeAws_restJson1DescribeCanariesCommand = exports.serializeAws_restJson1DeleteCanaryCommand = exports.serializeAws_restJson1CreateCanaryCommand = void 0;
3
+ exports.deserializeAws_restJson1UpdateCanaryCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1StopCanaryCommand = exports.deserializeAws_restJson1StartCanaryCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListGroupsCommand = exports.deserializeAws_restJson1ListGroupResourcesCommand = exports.deserializeAws_restJson1ListAssociatedGroupsCommand = exports.deserializeAws_restJson1GetGroupCommand = exports.deserializeAws_restJson1GetCanaryRunsCommand = exports.deserializeAws_restJson1GetCanaryCommand = exports.deserializeAws_restJson1DisassociateResourceCommand = exports.deserializeAws_restJson1DescribeRuntimeVersionsCommand = exports.deserializeAws_restJson1DescribeCanariesLastRunCommand = exports.deserializeAws_restJson1DescribeCanariesCommand = exports.deserializeAws_restJson1DeleteGroupCommand = exports.deserializeAws_restJson1DeleteCanaryCommand = exports.deserializeAws_restJson1CreateGroupCommand = exports.deserializeAws_restJson1CreateCanaryCommand = exports.deserializeAws_restJson1AssociateResourceCommand = exports.serializeAws_restJson1UpdateCanaryCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1StopCanaryCommand = exports.serializeAws_restJson1StartCanaryCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListGroupsCommand = exports.serializeAws_restJson1ListGroupResourcesCommand = exports.serializeAws_restJson1ListAssociatedGroupsCommand = exports.serializeAws_restJson1GetGroupCommand = exports.serializeAws_restJson1GetCanaryRunsCommand = exports.serializeAws_restJson1GetCanaryCommand = exports.serializeAws_restJson1DisassociateResourceCommand = exports.serializeAws_restJson1DescribeRuntimeVersionsCommand = exports.serializeAws_restJson1DescribeCanariesLastRunCommand = exports.serializeAws_restJson1DescribeCanariesCommand = exports.serializeAws_restJson1DeleteGroupCommand = exports.serializeAws_restJson1DeleteCanaryCommand = exports.serializeAws_restJson1CreateGroupCommand = exports.serializeAws_restJson1CreateCanaryCommand = exports.serializeAws_restJson1AssociateResourceCommand = void 0;
4
4
  const protocol_http_1 = require("@aws-sdk/protocol-http");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const SyntheticsServiceException_1 = require("../models/SyntheticsServiceException");
8
+ const serializeAws_restJson1AssociateResourceCommand = async (input, context) => {
9
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
10
+ const headers = {
11
+ "content-type": "application/json",
12
+ };
13
+ let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/group/{GroupIdentifier}/associate";
14
+ if (input.GroupIdentifier !== undefined) {
15
+ const labelValue = input.GroupIdentifier;
16
+ if (labelValue.length <= 0) {
17
+ throw new Error("Empty value provided for input HTTP label: GroupIdentifier.");
18
+ }
19
+ resolvedPath = resolvedPath.replace("{GroupIdentifier}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
20
+ }
21
+ else {
22
+ throw new Error("No value provided for input HTTP label: GroupIdentifier.");
23
+ }
24
+ let body;
25
+ body = JSON.stringify({
26
+ ...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
27
+ });
28
+ return new protocol_http_1.HttpRequest({
29
+ protocol,
30
+ hostname,
31
+ port,
32
+ method: "PATCH",
33
+ headers,
34
+ path: resolvedPath,
35
+ body,
36
+ });
37
+ };
38
+ exports.serializeAws_restJson1AssociateResourceCommand = serializeAws_restJson1AssociateResourceCommand;
8
39
  const serializeAws_restJson1CreateCanaryCommand = async (input, context) => {
9
40
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
10
41
  const headers = {
@@ -53,6 +84,28 @@ const serializeAws_restJson1CreateCanaryCommand = async (input, context) => {
53
84
  });
54
85
  };
55
86
  exports.serializeAws_restJson1CreateCanaryCommand = serializeAws_restJson1CreateCanaryCommand;
87
+ const serializeAws_restJson1CreateGroupCommand = async (input, context) => {
88
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
89
+ const headers = {
90
+ "content-type": "application/json",
91
+ };
92
+ const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/group";
93
+ let body;
94
+ body = JSON.stringify({
95
+ ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
96
+ ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
97
+ });
98
+ return new protocol_http_1.HttpRequest({
99
+ protocol,
100
+ hostname,
101
+ port,
102
+ method: "POST",
103
+ headers,
104
+ path: resolvedPath,
105
+ body,
106
+ });
107
+ };
108
+ exports.serializeAws_restJson1CreateGroupCommand = serializeAws_restJson1CreateGroupCommand;
56
109
  const serializeAws_restJson1DeleteCanaryCommand = async (input, context) => {
57
110
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
58
111
  const headers = {};
@@ -83,6 +136,32 @@ const serializeAws_restJson1DeleteCanaryCommand = async (input, context) => {
83
136
  });
84
137
  };
85
138
  exports.serializeAws_restJson1DeleteCanaryCommand = serializeAws_restJson1DeleteCanaryCommand;
139
+ const serializeAws_restJson1DeleteGroupCommand = async (input, context) => {
140
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
141
+ const headers = {};
142
+ let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/group/{GroupIdentifier}";
143
+ if (input.GroupIdentifier !== undefined) {
144
+ const labelValue = input.GroupIdentifier;
145
+ if (labelValue.length <= 0) {
146
+ throw new Error("Empty value provided for input HTTP label: GroupIdentifier.");
147
+ }
148
+ resolvedPath = resolvedPath.replace("{GroupIdentifier}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
149
+ }
150
+ else {
151
+ throw new Error("No value provided for input HTTP label: GroupIdentifier.");
152
+ }
153
+ let body;
154
+ return new protocol_http_1.HttpRequest({
155
+ protocol,
156
+ hostname,
157
+ port,
158
+ method: "DELETE",
159
+ headers,
160
+ path: resolvedPath,
161
+ body,
162
+ });
163
+ };
164
+ exports.serializeAws_restJson1DeleteGroupCommand = serializeAws_restJson1DeleteGroupCommand;
86
165
  const serializeAws_restJson1DescribeCanariesCommand = async (input, context) => {
87
166
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
88
167
  const headers = {
@@ -153,6 +232,37 @@ const serializeAws_restJson1DescribeRuntimeVersionsCommand = async (input, conte
153
232
  });
154
233
  };
155
234
  exports.serializeAws_restJson1DescribeRuntimeVersionsCommand = serializeAws_restJson1DescribeRuntimeVersionsCommand;
235
+ const serializeAws_restJson1DisassociateResourceCommand = async (input, context) => {
236
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
237
+ const headers = {
238
+ "content-type": "application/json",
239
+ };
240
+ let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/group/{GroupIdentifier}/disassociate";
241
+ if (input.GroupIdentifier !== undefined) {
242
+ const labelValue = input.GroupIdentifier;
243
+ if (labelValue.length <= 0) {
244
+ throw new Error("Empty value provided for input HTTP label: GroupIdentifier.");
245
+ }
246
+ resolvedPath = resolvedPath.replace("{GroupIdentifier}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
247
+ }
248
+ else {
249
+ throw new Error("No value provided for input HTTP label: GroupIdentifier.");
250
+ }
251
+ let body;
252
+ body = JSON.stringify({
253
+ ...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
254
+ });
255
+ return new protocol_http_1.HttpRequest({
256
+ protocol,
257
+ hostname,
258
+ port,
259
+ method: "PATCH",
260
+ headers,
261
+ path: resolvedPath,
262
+ body,
263
+ });
264
+ };
265
+ exports.serializeAws_restJson1DisassociateResourceCommand = serializeAws_restJson1DisassociateResourceCommand;
156
266
  const serializeAws_restJson1GetCanaryCommand = async (input, context) => {
157
267
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
158
268
  const headers = {};
@@ -211,6 +321,118 @@ const serializeAws_restJson1GetCanaryRunsCommand = async (input, context) => {
211
321
  });
212
322
  };
213
323
  exports.serializeAws_restJson1GetCanaryRunsCommand = serializeAws_restJson1GetCanaryRunsCommand;
324
+ const serializeAws_restJson1GetGroupCommand = async (input, context) => {
325
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
326
+ const headers = {};
327
+ let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/group/{GroupIdentifier}";
328
+ if (input.GroupIdentifier !== undefined) {
329
+ const labelValue = input.GroupIdentifier;
330
+ if (labelValue.length <= 0) {
331
+ throw new Error("Empty value provided for input HTTP label: GroupIdentifier.");
332
+ }
333
+ resolvedPath = resolvedPath.replace("{GroupIdentifier}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
334
+ }
335
+ else {
336
+ throw new Error("No value provided for input HTTP label: GroupIdentifier.");
337
+ }
338
+ let body;
339
+ return new protocol_http_1.HttpRequest({
340
+ protocol,
341
+ hostname,
342
+ port,
343
+ method: "GET",
344
+ headers,
345
+ path: resolvedPath,
346
+ body,
347
+ });
348
+ };
349
+ exports.serializeAws_restJson1GetGroupCommand = serializeAws_restJson1GetGroupCommand;
350
+ const serializeAws_restJson1ListAssociatedGroupsCommand = async (input, context) => {
351
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
352
+ const headers = {
353
+ "content-type": "application/json",
354
+ };
355
+ let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/resource/{ResourceArn}/groups";
356
+ if (input.ResourceArn !== undefined) {
357
+ const labelValue = input.ResourceArn;
358
+ if (labelValue.length <= 0) {
359
+ throw new Error("Empty value provided for input HTTP label: ResourceArn.");
360
+ }
361
+ resolvedPath = resolvedPath.replace("{ResourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
362
+ }
363
+ else {
364
+ throw new Error("No value provided for input HTTP label: ResourceArn.");
365
+ }
366
+ let body;
367
+ body = JSON.stringify({
368
+ ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
369
+ ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
370
+ });
371
+ return new protocol_http_1.HttpRequest({
372
+ protocol,
373
+ hostname,
374
+ port,
375
+ method: "POST",
376
+ headers,
377
+ path: resolvedPath,
378
+ body,
379
+ });
380
+ };
381
+ exports.serializeAws_restJson1ListAssociatedGroupsCommand = serializeAws_restJson1ListAssociatedGroupsCommand;
382
+ const serializeAws_restJson1ListGroupResourcesCommand = async (input, context) => {
383
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
384
+ const headers = {
385
+ "content-type": "application/json",
386
+ };
387
+ let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/group/{GroupIdentifier}/resources";
388
+ if (input.GroupIdentifier !== undefined) {
389
+ const labelValue = input.GroupIdentifier;
390
+ if (labelValue.length <= 0) {
391
+ throw new Error("Empty value provided for input HTTP label: GroupIdentifier.");
392
+ }
393
+ resolvedPath = resolvedPath.replace("{GroupIdentifier}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
394
+ }
395
+ else {
396
+ throw new Error("No value provided for input HTTP label: GroupIdentifier.");
397
+ }
398
+ let body;
399
+ body = JSON.stringify({
400
+ ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
401
+ ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
402
+ });
403
+ return new protocol_http_1.HttpRequest({
404
+ protocol,
405
+ hostname,
406
+ port,
407
+ method: "POST",
408
+ headers,
409
+ path: resolvedPath,
410
+ body,
411
+ });
412
+ };
413
+ exports.serializeAws_restJson1ListGroupResourcesCommand = serializeAws_restJson1ListGroupResourcesCommand;
414
+ const serializeAws_restJson1ListGroupsCommand = async (input, context) => {
415
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
416
+ const headers = {
417
+ "content-type": "application/json",
418
+ };
419
+ const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/groups";
420
+ let body;
421
+ body = JSON.stringify({
422
+ ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
423
+ ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
424
+ });
425
+ return new protocol_http_1.HttpRequest({
426
+ protocol,
427
+ hostname,
428
+ port,
429
+ method: "POST",
430
+ headers,
431
+ path: resolvedPath,
432
+ body,
433
+ });
434
+ };
435
+ exports.serializeAws_restJson1ListGroupsCommand = serializeAws_restJson1ListGroupsCommand;
214
436
  const serializeAws_restJson1ListTagsForResourceCommand = async (input, context) => {
215
437
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
216
438
  const headers = {};
@@ -410,22 +632,339 @@ const serializeAws_restJson1UpdateCanaryCommand = async (input, context) => {
410
632
  });
411
633
  };
412
634
  exports.serializeAws_restJson1UpdateCanaryCommand = serializeAws_restJson1UpdateCanaryCommand;
635
+ const deserializeAws_restJson1AssociateResourceCommand = async (output, context) => {
636
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
637
+ return deserializeAws_restJson1AssociateResourceCommandError(output, context);
638
+ }
639
+ const contents = {
640
+ $metadata: deserializeMetadata(output),
641
+ };
642
+ await collectBody(output.body, context);
643
+ return Promise.resolve(contents);
644
+ };
645
+ exports.deserializeAws_restJson1AssociateResourceCommand = deserializeAws_restJson1AssociateResourceCommand;
646
+ const deserializeAws_restJson1AssociateResourceCommandError = async (output, context) => {
647
+ const parsedOutput = {
648
+ ...output,
649
+ body: await parseBody(output.body, context),
650
+ };
651
+ let response;
652
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
653
+ switch (errorCode) {
654
+ case "ConflictException":
655
+ case "com.amazonaws.synthetics#ConflictException":
656
+ throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
657
+ case "InternalServerException":
658
+ case "com.amazonaws.synthetics#InternalServerException":
659
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
660
+ case "ResourceNotFoundException":
661
+ case "com.amazonaws.synthetics#ResourceNotFoundException":
662
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
663
+ case "ServiceQuotaExceededException":
664
+ case "com.amazonaws.synthetics#ServiceQuotaExceededException":
665
+ throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
666
+ case "ValidationException":
667
+ case "com.amazonaws.synthetics#ValidationException":
668
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
669
+ default:
670
+ const parsedBody = parsedOutput.body;
671
+ const $metadata = deserializeMetadata(output);
672
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
673
+ response = new SyntheticsServiceException_1.SyntheticsServiceException({
674
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
675
+ $fault: "client",
676
+ $metadata,
677
+ });
678
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
679
+ }
680
+ };
413
681
  const deserializeAws_restJson1CreateCanaryCommand = async (output, context) => {
414
682
  if (output.statusCode !== 200 && output.statusCode >= 300) {
415
683
  return deserializeAws_restJson1CreateCanaryCommandError(output, context);
416
684
  }
417
685
  const contents = {
418
686
  $metadata: deserializeMetadata(output),
419
- Canary: undefined,
687
+ Canary: undefined,
688
+ };
689
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
690
+ if (data.Canary !== undefined && data.Canary !== null) {
691
+ contents.Canary = deserializeAws_restJson1Canary(data.Canary, context);
692
+ }
693
+ return Promise.resolve(contents);
694
+ };
695
+ exports.deserializeAws_restJson1CreateCanaryCommand = deserializeAws_restJson1CreateCanaryCommand;
696
+ const deserializeAws_restJson1CreateCanaryCommandError = async (output, context) => {
697
+ const parsedOutput = {
698
+ ...output,
699
+ body: await parseBody(output.body, context),
700
+ };
701
+ let response;
702
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
703
+ switch (errorCode) {
704
+ case "InternalServerException":
705
+ case "com.amazonaws.synthetics#InternalServerException":
706
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
707
+ case "RequestEntityTooLargeException":
708
+ case "com.amazonaws.synthetics#RequestEntityTooLargeException":
709
+ throw await deserializeAws_restJson1RequestEntityTooLargeExceptionResponse(parsedOutput, context);
710
+ case "ValidationException":
711
+ case "com.amazonaws.synthetics#ValidationException":
712
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
713
+ default:
714
+ const parsedBody = parsedOutput.body;
715
+ const $metadata = deserializeMetadata(output);
716
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
717
+ response = new SyntheticsServiceException_1.SyntheticsServiceException({
718
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
719
+ $fault: "client",
720
+ $metadata,
721
+ });
722
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
723
+ }
724
+ };
725
+ const deserializeAws_restJson1CreateGroupCommand = async (output, context) => {
726
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
727
+ return deserializeAws_restJson1CreateGroupCommandError(output, context);
728
+ }
729
+ const contents = {
730
+ $metadata: deserializeMetadata(output),
731
+ Group: undefined,
732
+ };
733
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
734
+ if (data.Group !== undefined && data.Group !== null) {
735
+ contents.Group = deserializeAws_restJson1Group(data.Group, context);
736
+ }
737
+ return Promise.resolve(contents);
738
+ };
739
+ exports.deserializeAws_restJson1CreateGroupCommand = deserializeAws_restJson1CreateGroupCommand;
740
+ const deserializeAws_restJson1CreateGroupCommandError = async (output, context) => {
741
+ const parsedOutput = {
742
+ ...output,
743
+ body: await parseBody(output.body, context),
744
+ };
745
+ let response;
746
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
747
+ switch (errorCode) {
748
+ case "ConflictException":
749
+ case "com.amazonaws.synthetics#ConflictException":
750
+ throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
751
+ case "InternalServerException":
752
+ case "com.amazonaws.synthetics#InternalServerException":
753
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
754
+ case "ServiceQuotaExceededException":
755
+ case "com.amazonaws.synthetics#ServiceQuotaExceededException":
756
+ throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
757
+ case "ValidationException":
758
+ case "com.amazonaws.synthetics#ValidationException":
759
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
760
+ default:
761
+ const parsedBody = parsedOutput.body;
762
+ const $metadata = deserializeMetadata(output);
763
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
764
+ response = new SyntheticsServiceException_1.SyntheticsServiceException({
765
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
766
+ $fault: "client",
767
+ $metadata,
768
+ });
769
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
770
+ }
771
+ };
772
+ const deserializeAws_restJson1DeleteCanaryCommand = async (output, context) => {
773
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
774
+ return deserializeAws_restJson1DeleteCanaryCommandError(output, context);
775
+ }
776
+ const contents = {
777
+ $metadata: deserializeMetadata(output),
778
+ };
779
+ await collectBody(output.body, context);
780
+ return Promise.resolve(contents);
781
+ };
782
+ exports.deserializeAws_restJson1DeleteCanaryCommand = deserializeAws_restJson1DeleteCanaryCommand;
783
+ const deserializeAws_restJson1DeleteCanaryCommandError = async (output, context) => {
784
+ const parsedOutput = {
785
+ ...output,
786
+ body: await parseBody(output.body, context),
787
+ };
788
+ let response;
789
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
790
+ switch (errorCode) {
791
+ case "ConflictException":
792
+ case "com.amazonaws.synthetics#ConflictException":
793
+ throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
794
+ case "InternalServerException":
795
+ case "com.amazonaws.synthetics#InternalServerException":
796
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
797
+ case "ResourceNotFoundException":
798
+ case "com.amazonaws.synthetics#ResourceNotFoundException":
799
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
800
+ case "ValidationException":
801
+ case "com.amazonaws.synthetics#ValidationException":
802
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
803
+ default:
804
+ const parsedBody = parsedOutput.body;
805
+ const $metadata = deserializeMetadata(output);
806
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
807
+ response = new SyntheticsServiceException_1.SyntheticsServiceException({
808
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
809
+ $fault: "client",
810
+ $metadata,
811
+ });
812
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
813
+ }
814
+ };
815
+ const deserializeAws_restJson1DeleteGroupCommand = async (output, context) => {
816
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
817
+ return deserializeAws_restJson1DeleteGroupCommandError(output, context);
818
+ }
819
+ const contents = {
820
+ $metadata: deserializeMetadata(output),
821
+ };
822
+ await collectBody(output.body, context);
823
+ return Promise.resolve(contents);
824
+ };
825
+ exports.deserializeAws_restJson1DeleteGroupCommand = deserializeAws_restJson1DeleteGroupCommand;
826
+ const deserializeAws_restJson1DeleteGroupCommandError = async (output, context) => {
827
+ const parsedOutput = {
828
+ ...output,
829
+ body: await parseBody(output.body, context),
830
+ };
831
+ let response;
832
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
833
+ switch (errorCode) {
834
+ case "ConflictException":
835
+ case "com.amazonaws.synthetics#ConflictException":
836
+ throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
837
+ case "InternalServerException":
838
+ case "com.amazonaws.synthetics#InternalServerException":
839
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
840
+ case "ResourceNotFoundException":
841
+ case "com.amazonaws.synthetics#ResourceNotFoundException":
842
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
843
+ case "ValidationException":
844
+ case "com.amazonaws.synthetics#ValidationException":
845
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
846
+ default:
847
+ const parsedBody = parsedOutput.body;
848
+ const $metadata = deserializeMetadata(output);
849
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
850
+ response = new SyntheticsServiceException_1.SyntheticsServiceException({
851
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
852
+ $fault: "client",
853
+ $metadata,
854
+ });
855
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
856
+ }
857
+ };
858
+ const deserializeAws_restJson1DescribeCanariesCommand = async (output, context) => {
859
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
860
+ return deserializeAws_restJson1DescribeCanariesCommandError(output, context);
861
+ }
862
+ const contents = {
863
+ $metadata: deserializeMetadata(output),
864
+ Canaries: undefined,
865
+ NextToken: undefined,
866
+ };
867
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
868
+ if (data.Canaries !== undefined && data.Canaries !== null) {
869
+ contents.Canaries = deserializeAws_restJson1Canaries(data.Canaries, context);
870
+ }
871
+ if (data.NextToken !== undefined && data.NextToken !== null) {
872
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
873
+ }
874
+ return Promise.resolve(contents);
875
+ };
876
+ exports.deserializeAws_restJson1DescribeCanariesCommand = deserializeAws_restJson1DescribeCanariesCommand;
877
+ const deserializeAws_restJson1DescribeCanariesCommandError = async (output, context) => {
878
+ const parsedOutput = {
879
+ ...output,
880
+ body: await parseBody(output.body, context),
881
+ };
882
+ let response;
883
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
884
+ switch (errorCode) {
885
+ case "InternalServerException":
886
+ case "com.amazonaws.synthetics#InternalServerException":
887
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
888
+ case "ValidationException":
889
+ case "com.amazonaws.synthetics#ValidationException":
890
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
891
+ default:
892
+ const parsedBody = parsedOutput.body;
893
+ const $metadata = deserializeMetadata(output);
894
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
895
+ response = new SyntheticsServiceException_1.SyntheticsServiceException({
896
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
897
+ $fault: "client",
898
+ $metadata,
899
+ });
900
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
901
+ }
902
+ };
903
+ const deserializeAws_restJson1DescribeCanariesLastRunCommand = async (output, context) => {
904
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
905
+ return deserializeAws_restJson1DescribeCanariesLastRunCommandError(output, context);
906
+ }
907
+ const contents = {
908
+ $metadata: deserializeMetadata(output),
909
+ CanariesLastRun: undefined,
910
+ NextToken: undefined,
911
+ };
912
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
913
+ if (data.CanariesLastRun !== undefined && data.CanariesLastRun !== null) {
914
+ contents.CanariesLastRun = deserializeAws_restJson1CanariesLastRun(data.CanariesLastRun, context);
915
+ }
916
+ if (data.NextToken !== undefined && data.NextToken !== null) {
917
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
918
+ }
919
+ return Promise.resolve(contents);
920
+ };
921
+ exports.deserializeAws_restJson1DescribeCanariesLastRunCommand = deserializeAws_restJson1DescribeCanariesLastRunCommand;
922
+ const deserializeAws_restJson1DescribeCanariesLastRunCommandError = async (output, context) => {
923
+ const parsedOutput = {
924
+ ...output,
925
+ body: await parseBody(output.body, context),
926
+ };
927
+ let response;
928
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
929
+ switch (errorCode) {
930
+ case "InternalServerException":
931
+ case "com.amazonaws.synthetics#InternalServerException":
932
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
933
+ case "ValidationException":
934
+ case "com.amazonaws.synthetics#ValidationException":
935
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
936
+ default:
937
+ const parsedBody = parsedOutput.body;
938
+ const $metadata = deserializeMetadata(output);
939
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
940
+ response = new SyntheticsServiceException_1.SyntheticsServiceException({
941
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
942
+ $fault: "client",
943
+ $metadata,
944
+ });
945
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
946
+ }
947
+ };
948
+ const deserializeAws_restJson1DescribeRuntimeVersionsCommand = async (output, context) => {
949
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
950
+ return deserializeAws_restJson1DescribeRuntimeVersionsCommandError(output, context);
951
+ }
952
+ const contents = {
953
+ $metadata: deserializeMetadata(output),
954
+ NextToken: undefined,
955
+ RuntimeVersions: undefined,
420
956
  };
421
957
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
422
- if (data.Canary !== undefined && data.Canary !== null) {
423
- contents.Canary = deserializeAws_restJson1Canary(data.Canary, context);
958
+ if (data.NextToken !== undefined && data.NextToken !== null) {
959
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
960
+ }
961
+ if (data.RuntimeVersions !== undefined && data.RuntimeVersions !== null) {
962
+ contents.RuntimeVersions = deserializeAws_restJson1RuntimeVersionList(data.RuntimeVersions, context);
424
963
  }
425
964
  return Promise.resolve(contents);
426
965
  };
427
- exports.deserializeAws_restJson1CreateCanaryCommand = deserializeAws_restJson1CreateCanaryCommand;
428
- const deserializeAws_restJson1CreateCanaryCommandError = async (output, context) => {
966
+ exports.deserializeAws_restJson1DescribeRuntimeVersionsCommand = deserializeAws_restJson1DescribeRuntimeVersionsCommand;
967
+ const deserializeAws_restJson1DescribeRuntimeVersionsCommandError = async (output, context) => {
429
968
  const parsedOutput = {
430
969
  ...output,
431
970
  body: await parseBody(output.body, context),
@@ -436,9 +975,6 @@ const deserializeAws_restJson1CreateCanaryCommandError = async (output, context)
436
975
  case "InternalServerException":
437
976
  case "com.amazonaws.synthetics#InternalServerException":
438
977
  throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
439
- case "RequestEntityTooLargeException":
440
- case "com.amazonaws.synthetics#RequestEntityTooLargeException":
441
- throw await deserializeAws_restJson1RequestEntityTooLargeExceptionResponse(parsedOutput, context);
442
978
  case "ValidationException":
443
979
  case "com.amazonaws.synthetics#ValidationException":
444
980
  throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
@@ -454,9 +990,9 @@ const deserializeAws_restJson1CreateCanaryCommandError = async (output, context)
454
990
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
455
991
  }
456
992
  };
457
- const deserializeAws_restJson1DeleteCanaryCommand = async (output, context) => {
993
+ const deserializeAws_restJson1DisassociateResourceCommand = async (output, context) => {
458
994
  if (output.statusCode !== 200 && output.statusCode >= 300) {
459
- return deserializeAws_restJson1DeleteCanaryCommandError(output, context);
995
+ return deserializeAws_restJson1DisassociateResourceCommandError(output, context);
460
996
  }
461
997
  const contents = {
462
998
  $metadata: deserializeMetadata(output),
@@ -464,8 +1000,8 @@ const deserializeAws_restJson1DeleteCanaryCommand = async (output, context) => {
464
1000
  await collectBody(output.body, context);
465
1001
  return Promise.resolve(contents);
466
1002
  };
467
- exports.deserializeAws_restJson1DeleteCanaryCommand = deserializeAws_restJson1DeleteCanaryCommand;
468
- const deserializeAws_restJson1DeleteCanaryCommandError = async (output, context) => {
1003
+ exports.deserializeAws_restJson1DisassociateResourceCommand = deserializeAws_restJson1DisassociateResourceCommand;
1004
+ const deserializeAws_restJson1DisassociateResourceCommandError = async (output, context) => {
469
1005
  const parsedOutput = {
470
1006
  ...output,
471
1007
  body: await parseBody(output.body, context),
@@ -497,26 +1033,22 @@ const deserializeAws_restJson1DeleteCanaryCommandError = async (output, context)
497
1033
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
498
1034
  }
499
1035
  };
500
- const deserializeAws_restJson1DescribeCanariesCommand = async (output, context) => {
1036
+ const deserializeAws_restJson1GetCanaryCommand = async (output, context) => {
501
1037
  if (output.statusCode !== 200 && output.statusCode >= 300) {
502
- return deserializeAws_restJson1DescribeCanariesCommandError(output, context);
1038
+ return deserializeAws_restJson1GetCanaryCommandError(output, context);
503
1039
  }
504
1040
  const contents = {
505
1041
  $metadata: deserializeMetadata(output),
506
- Canaries: undefined,
507
- NextToken: undefined,
1042
+ Canary: undefined,
508
1043
  };
509
1044
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
510
- if (data.Canaries !== undefined && data.Canaries !== null) {
511
- contents.Canaries = deserializeAws_restJson1Canaries(data.Canaries, context);
512
- }
513
- if (data.NextToken !== undefined && data.NextToken !== null) {
514
- contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
1045
+ if (data.Canary !== undefined && data.Canary !== null) {
1046
+ contents.Canary = deserializeAws_restJson1Canary(data.Canary, context);
515
1047
  }
516
1048
  return Promise.resolve(contents);
517
1049
  };
518
- exports.deserializeAws_restJson1DescribeCanariesCommand = deserializeAws_restJson1DescribeCanariesCommand;
519
- const deserializeAws_restJson1DescribeCanariesCommandError = async (output, context) => {
1050
+ exports.deserializeAws_restJson1GetCanaryCommand = deserializeAws_restJson1GetCanaryCommand;
1051
+ const deserializeAws_restJson1GetCanaryCommandError = async (output, context) => {
520
1052
  const parsedOutput = {
521
1053
  ...output,
522
1054
  body: await parseBody(output.body, context),
@@ -542,26 +1074,26 @@ const deserializeAws_restJson1DescribeCanariesCommandError = async (output, cont
542
1074
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
543
1075
  }
544
1076
  };
545
- const deserializeAws_restJson1DescribeCanariesLastRunCommand = async (output, context) => {
1077
+ const deserializeAws_restJson1GetCanaryRunsCommand = async (output, context) => {
546
1078
  if (output.statusCode !== 200 && output.statusCode >= 300) {
547
- return deserializeAws_restJson1DescribeCanariesLastRunCommandError(output, context);
1079
+ return deserializeAws_restJson1GetCanaryRunsCommandError(output, context);
548
1080
  }
549
1081
  const contents = {
550
1082
  $metadata: deserializeMetadata(output),
551
- CanariesLastRun: undefined,
1083
+ CanaryRuns: undefined,
552
1084
  NextToken: undefined,
553
1085
  };
554
1086
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
555
- if (data.CanariesLastRun !== undefined && data.CanariesLastRun !== null) {
556
- contents.CanariesLastRun = deserializeAws_restJson1CanariesLastRun(data.CanariesLastRun, context);
1087
+ if (data.CanaryRuns !== undefined && data.CanaryRuns !== null) {
1088
+ contents.CanaryRuns = deserializeAws_restJson1CanaryRuns(data.CanaryRuns, context);
557
1089
  }
558
1090
  if (data.NextToken !== undefined && data.NextToken !== null) {
559
1091
  contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
560
1092
  }
561
1093
  return Promise.resolve(contents);
562
1094
  };
563
- exports.deserializeAws_restJson1DescribeCanariesLastRunCommand = deserializeAws_restJson1DescribeCanariesLastRunCommand;
564
- const deserializeAws_restJson1DescribeCanariesLastRunCommandError = async (output, context) => {
1095
+ exports.deserializeAws_restJson1GetCanaryRunsCommand = deserializeAws_restJson1GetCanaryRunsCommand;
1096
+ const deserializeAws_restJson1GetCanaryRunsCommandError = async (output, context) => {
565
1097
  const parsedOutput = {
566
1098
  ...output,
567
1099
  body: await parseBody(output.body, context),
@@ -572,6 +1104,9 @@ const deserializeAws_restJson1DescribeCanariesLastRunCommandError = async (outpu
572
1104
  case "InternalServerException":
573
1105
  case "com.amazonaws.synthetics#InternalServerException":
574
1106
  throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1107
+ case "ResourceNotFoundException":
1108
+ case "com.amazonaws.synthetics#ResourceNotFoundException":
1109
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
575
1110
  case "ValidationException":
576
1111
  case "com.amazonaws.synthetics#ValidationException":
577
1112
  throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
@@ -587,26 +1122,73 @@ const deserializeAws_restJson1DescribeCanariesLastRunCommandError = async (outpu
587
1122
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
588
1123
  }
589
1124
  };
590
- const deserializeAws_restJson1DescribeRuntimeVersionsCommand = async (output, context) => {
1125
+ const deserializeAws_restJson1GetGroupCommand = async (output, context) => {
591
1126
  if (output.statusCode !== 200 && output.statusCode >= 300) {
592
- return deserializeAws_restJson1DescribeRuntimeVersionsCommandError(output, context);
1127
+ return deserializeAws_restJson1GetGroupCommandError(output, context);
1128
+ }
1129
+ const contents = {
1130
+ $metadata: deserializeMetadata(output),
1131
+ Group: undefined,
1132
+ };
1133
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1134
+ if (data.Group !== undefined && data.Group !== null) {
1135
+ contents.Group = deserializeAws_restJson1Group(data.Group, context);
1136
+ }
1137
+ return Promise.resolve(contents);
1138
+ };
1139
+ exports.deserializeAws_restJson1GetGroupCommand = deserializeAws_restJson1GetGroupCommand;
1140
+ const deserializeAws_restJson1GetGroupCommandError = async (output, context) => {
1141
+ const parsedOutput = {
1142
+ ...output,
1143
+ body: await parseBody(output.body, context),
1144
+ };
1145
+ let response;
1146
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1147
+ switch (errorCode) {
1148
+ case "ConflictException":
1149
+ case "com.amazonaws.synthetics#ConflictException":
1150
+ throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
1151
+ case "InternalServerException":
1152
+ case "com.amazonaws.synthetics#InternalServerException":
1153
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1154
+ case "ResourceNotFoundException":
1155
+ case "com.amazonaws.synthetics#ResourceNotFoundException":
1156
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1157
+ case "ValidationException":
1158
+ case "com.amazonaws.synthetics#ValidationException":
1159
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1160
+ default:
1161
+ const parsedBody = parsedOutput.body;
1162
+ const $metadata = deserializeMetadata(output);
1163
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1164
+ response = new SyntheticsServiceException_1.SyntheticsServiceException({
1165
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1166
+ $fault: "client",
1167
+ $metadata,
1168
+ });
1169
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1170
+ }
1171
+ };
1172
+ const deserializeAws_restJson1ListAssociatedGroupsCommand = async (output, context) => {
1173
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1174
+ return deserializeAws_restJson1ListAssociatedGroupsCommandError(output, context);
593
1175
  }
594
1176
  const contents = {
595
1177
  $metadata: deserializeMetadata(output),
1178
+ Groups: undefined,
596
1179
  NextToken: undefined,
597
- RuntimeVersions: undefined,
598
1180
  };
599
1181
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1182
+ if (data.Groups !== undefined && data.Groups !== null) {
1183
+ contents.Groups = deserializeAws_restJson1GroupSummaryList(data.Groups, context);
1184
+ }
600
1185
  if (data.NextToken !== undefined && data.NextToken !== null) {
601
1186
  contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
602
1187
  }
603
- if (data.RuntimeVersions !== undefined && data.RuntimeVersions !== null) {
604
- contents.RuntimeVersions = deserializeAws_restJson1RuntimeVersionList(data.RuntimeVersions, context);
605
- }
606
1188
  return Promise.resolve(contents);
607
1189
  };
608
- exports.deserializeAws_restJson1DescribeRuntimeVersionsCommand = deserializeAws_restJson1DescribeRuntimeVersionsCommand;
609
- const deserializeAws_restJson1DescribeRuntimeVersionsCommandError = async (output, context) => {
1190
+ exports.deserializeAws_restJson1ListAssociatedGroupsCommand = deserializeAws_restJson1ListAssociatedGroupsCommand;
1191
+ const deserializeAws_restJson1ListAssociatedGroupsCommandError = async (output, context) => {
610
1192
  const parsedOutput = {
611
1193
  ...output,
612
1194
  body: await parseBody(output.body, context),
@@ -617,6 +1199,9 @@ const deserializeAws_restJson1DescribeRuntimeVersionsCommandError = async (outpu
617
1199
  case "InternalServerException":
618
1200
  case "com.amazonaws.synthetics#InternalServerException":
619
1201
  throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1202
+ case "ResourceNotFoundException":
1203
+ case "com.amazonaws.synthetics#ResourceNotFoundException":
1204
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
620
1205
  case "ValidationException":
621
1206
  case "com.amazonaws.synthetics#ValidationException":
622
1207
  throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
@@ -632,22 +1217,26 @@ const deserializeAws_restJson1DescribeRuntimeVersionsCommandError = async (outpu
632
1217
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
633
1218
  }
634
1219
  };
635
- const deserializeAws_restJson1GetCanaryCommand = async (output, context) => {
1220
+ const deserializeAws_restJson1ListGroupResourcesCommand = async (output, context) => {
636
1221
  if (output.statusCode !== 200 && output.statusCode >= 300) {
637
- return deserializeAws_restJson1GetCanaryCommandError(output, context);
1222
+ return deserializeAws_restJson1ListGroupResourcesCommandError(output, context);
638
1223
  }
639
1224
  const contents = {
640
1225
  $metadata: deserializeMetadata(output),
641
- Canary: undefined,
1226
+ NextToken: undefined,
1227
+ Resources: undefined,
642
1228
  };
643
1229
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
644
- if (data.Canary !== undefined && data.Canary !== null) {
645
- contents.Canary = deserializeAws_restJson1Canary(data.Canary, context);
1230
+ if (data.NextToken !== undefined && data.NextToken !== null) {
1231
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
1232
+ }
1233
+ if (data.Resources !== undefined && data.Resources !== null) {
1234
+ contents.Resources = deserializeAws_restJson1StringList(data.Resources, context);
646
1235
  }
647
1236
  return Promise.resolve(contents);
648
1237
  };
649
- exports.deserializeAws_restJson1GetCanaryCommand = deserializeAws_restJson1GetCanaryCommand;
650
- const deserializeAws_restJson1GetCanaryCommandError = async (output, context) => {
1238
+ exports.deserializeAws_restJson1ListGroupResourcesCommand = deserializeAws_restJson1ListGroupResourcesCommand;
1239
+ const deserializeAws_restJson1ListGroupResourcesCommandError = async (output, context) => {
651
1240
  const parsedOutput = {
652
1241
  ...output,
653
1242
  body: await parseBody(output.body, context),
@@ -655,9 +1244,15 @@ const deserializeAws_restJson1GetCanaryCommandError = async (output, context) =>
655
1244
  let response;
656
1245
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
657
1246
  switch (errorCode) {
1247
+ case "ConflictException":
1248
+ case "com.amazonaws.synthetics#ConflictException":
1249
+ throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
658
1250
  case "InternalServerException":
659
1251
  case "com.amazonaws.synthetics#InternalServerException":
660
1252
  throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1253
+ case "ResourceNotFoundException":
1254
+ case "com.amazonaws.synthetics#ResourceNotFoundException":
1255
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
661
1256
  case "ValidationException":
662
1257
  case "com.amazonaws.synthetics#ValidationException":
663
1258
  throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
@@ -673,26 +1268,26 @@ const deserializeAws_restJson1GetCanaryCommandError = async (output, context) =>
673
1268
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
674
1269
  }
675
1270
  };
676
- const deserializeAws_restJson1GetCanaryRunsCommand = async (output, context) => {
1271
+ const deserializeAws_restJson1ListGroupsCommand = async (output, context) => {
677
1272
  if (output.statusCode !== 200 && output.statusCode >= 300) {
678
- return deserializeAws_restJson1GetCanaryRunsCommandError(output, context);
1273
+ return deserializeAws_restJson1ListGroupsCommandError(output, context);
679
1274
  }
680
1275
  const contents = {
681
1276
  $metadata: deserializeMetadata(output),
682
- CanaryRuns: undefined,
1277
+ Groups: undefined,
683
1278
  NextToken: undefined,
684
1279
  };
685
1280
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
686
- if (data.CanaryRuns !== undefined && data.CanaryRuns !== null) {
687
- contents.CanaryRuns = deserializeAws_restJson1CanaryRuns(data.CanaryRuns, context);
1281
+ if (data.Groups !== undefined && data.Groups !== null) {
1282
+ contents.Groups = deserializeAws_restJson1GroupSummaryList(data.Groups, context);
688
1283
  }
689
1284
  if (data.NextToken !== undefined && data.NextToken !== null) {
690
1285
  contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
691
1286
  }
692
1287
  return Promise.resolve(contents);
693
1288
  };
694
- exports.deserializeAws_restJson1GetCanaryRunsCommand = deserializeAws_restJson1GetCanaryRunsCommand;
695
- const deserializeAws_restJson1GetCanaryRunsCommandError = async (output, context) => {
1289
+ exports.deserializeAws_restJson1ListGroupsCommand = deserializeAws_restJson1ListGroupsCommand;
1290
+ const deserializeAws_restJson1ListGroupsCommandError = async (output, context) => {
696
1291
  const parsedOutput = {
697
1292
  ...output,
698
1293
  body: await parseBody(output.body, context),
@@ -703,9 +1298,6 @@ const deserializeAws_restJson1GetCanaryRunsCommandError = async (output, context
703
1298
  case "InternalServerException":
704
1299
  case "com.amazonaws.synthetics#InternalServerException":
705
1300
  throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
706
- case "ResourceNotFoundException":
707
- case "com.amazonaws.synthetics#ResourceNotFoundException":
708
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
709
1301
  case "ValidationException":
710
1302
  case "com.amazonaws.synthetics#ValidationException":
711
1303
  throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
@@ -744,15 +1336,21 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
744
1336
  let response;
745
1337
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
746
1338
  switch (errorCode) {
747
- case "InternalServerException":
748
- case "com.amazonaws.synthetics#InternalServerException":
749
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
750
- case "ResourceNotFoundException":
751
- case "com.amazonaws.synthetics#ResourceNotFoundException":
752
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
753
- case "ValidationException":
754
- case "com.amazonaws.synthetics#ValidationException":
755
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1339
+ case "BadRequestException":
1340
+ case "com.amazonaws.synthetics#BadRequestException":
1341
+ throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
1342
+ case "ConflictException":
1343
+ case "com.amazonaws.synthetics#ConflictException":
1344
+ throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
1345
+ case "InternalFailureException":
1346
+ case "com.amazonaws.synthetics#InternalFailureException":
1347
+ throw await deserializeAws_restJson1InternalFailureExceptionResponse(parsedOutput, context);
1348
+ case "NotFoundException":
1349
+ case "com.amazonaws.synthetics#NotFoundException":
1350
+ throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
1351
+ case "TooManyRequestsException":
1352
+ case "com.amazonaws.synthetics#TooManyRequestsException":
1353
+ throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
756
1354
  default:
757
1355
  const parsedBody = parsedOutput.body;
758
1356
  const $metadata = deserializeMetadata(output);
@@ -870,15 +1468,21 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
870
1468
  let response;
871
1469
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
872
1470
  switch (errorCode) {
873
- case "InternalServerException":
874
- case "com.amazonaws.synthetics#InternalServerException":
875
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
876
- case "ResourceNotFoundException":
877
- case "com.amazonaws.synthetics#ResourceNotFoundException":
878
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
879
- case "ValidationException":
880
- case "com.amazonaws.synthetics#ValidationException":
881
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1471
+ case "BadRequestException":
1472
+ case "com.amazonaws.synthetics#BadRequestException":
1473
+ throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
1474
+ case "ConflictException":
1475
+ case "com.amazonaws.synthetics#ConflictException":
1476
+ throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
1477
+ case "InternalFailureException":
1478
+ case "com.amazonaws.synthetics#InternalFailureException":
1479
+ throw await deserializeAws_restJson1InternalFailureExceptionResponse(parsedOutput, context);
1480
+ case "NotFoundException":
1481
+ case "com.amazonaws.synthetics#NotFoundException":
1482
+ throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
1483
+ case "TooManyRequestsException":
1484
+ case "com.amazonaws.synthetics#TooManyRequestsException":
1485
+ throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
882
1486
  default:
883
1487
  const parsedBody = parsedOutput.body;
884
1488
  const $metadata = deserializeMetadata(output);
@@ -910,15 +1514,21 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
910
1514
  let response;
911
1515
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
912
1516
  switch (errorCode) {
913
- case "InternalServerException":
914
- case "com.amazonaws.synthetics#InternalServerException":
915
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
916
- case "ResourceNotFoundException":
917
- case "com.amazonaws.synthetics#ResourceNotFoundException":
918
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
919
- case "ValidationException":
920
- case "com.amazonaws.synthetics#ValidationException":
921
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1517
+ case "BadRequestException":
1518
+ case "com.amazonaws.synthetics#BadRequestException":
1519
+ throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
1520
+ case "ConflictException":
1521
+ case "com.amazonaws.synthetics#ConflictException":
1522
+ throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
1523
+ case "InternalFailureException":
1524
+ case "com.amazonaws.synthetics#InternalFailureException":
1525
+ throw await deserializeAws_restJson1InternalFailureExceptionResponse(parsedOutput, context);
1526
+ case "NotFoundException":
1527
+ case "com.amazonaws.synthetics#NotFoundException":
1528
+ throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
1529
+ case "TooManyRequestsException":
1530
+ case "com.amazonaws.synthetics#TooManyRequestsException":
1531
+ throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
922
1532
  default:
923
1533
  const parsedBody = parsedOutput.body;
924
1534
  const $metadata = deserializeMetadata(output);
@@ -977,6 +1587,18 @@ const deserializeAws_restJson1UpdateCanaryCommandError = async (output, context)
977
1587
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
978
1588
  }
979
1589
  };
1590
+ const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput, context) => {
1591
+ const contents = {};
1592
+ const data = parsedOutput.body;
1593
+ if (data.Message !== undefined && data.Message !== null) {
1594
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
1595
+ }
1596
+ const exception = new models_0_1.BadRequestException({
1597
+ $metadata: deserializeMetadata(parsedOutput),
1598
+ ...contents,
1599
+ });
1600
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1601
+ };
980
1602
  const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
981
1603
  const contents = {};
982
1604
  const data = parsedOutput.body;
@@ -989,6 +1611,18 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
989
1611
  });
990
1612
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
991
1613
  };
1614
+ const deserializeAws_restJson1InternalFailureExceptionResponse = async (parsedOutput, context) => {
1615
+ const contents = {};
1616
+ const data = parsedOutput.body;
1617
+ if (data.Message !== undefined && data.Message !== null) {
1618
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
1619
+ }
1620
+ const exception = new models_0_1.InternalFailureException({
1621
+ $metadata: deserializeMetadata(parsedOutput),
1622
+ ...contents,
1623
+ });
1624
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1625
+ };
992
1626
  const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
993
1627
  const contents = {};
994
1628
  const data = parsedOutput.body;
@@ -1001,6 +1635,18 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
1001
1635
  });
1002
1636
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1003
1637
  };
1638
+ const deserializeAws_restJson1NotFoundExceptionResponse = async (parsedOutput, context) => {
1639
+ const contents = {};
1640
+ const data = parsedOutput.body;
1641
+ if (data.Message !== undefined && data.Message !== null) {
1642
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
1643
+ }
1644
+ const exception = new models_0_1.NotFoundException({
1645
+ $metadata: deserializeMetadata(parsedOutput),
1646
+ ...contents,
1647
+ });
1648
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1649
+ };
1004
1650
  const deserializeAws_restJson1RequestEntityTooLargeExceptionResponse = async (parsedOutput, context) => {
1005
1651
  const contents = {};
1006
1652
  const data = parsedOutput.body;
@@ -1025,6 +1671,30 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
1025
1671
  });
1026
1672
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1027
1673
  };
1674
+ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (parsedOutput, context) => {
1675
+ const contents = {};
1676
+ const data = parsedOutput.body;
1677
+ if (data.Message !== undefined && data.Message !== null) {
1678
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
1679
+ }
1680
+ const exception = new models_0_1.ServiceQuotaExceededException({
1681
+ $metadata: deserializeMetadata(parsedOutput),
1682
+ ...contents,
1683
+ });
1684
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1685
+ };
1686
+ const deserializeAws_restJson1TooManyRequestsExceptionResponse = async (parsedOutput, context) => {
1687
+ const contents = {};
1688
+ const data = parsedOutput.body;
1689
+ if (data.Message !== undefined && data.Message !== null) {
1690
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
1691
+ }
1692
+ const exception = new models_0_1.TooManyRequestsException({
1693
+ $metadata: deserializeMetadata(parsedOutput),
1694
+ ...contents,
1695
+ });
1696
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1697
+ };
1028
1698
  const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
1029
1699
  const contents = {};
1030
1700
  const data = parsedOutput.body;
@@ -1381,6 +2051,40 @@ const deserializeAws_restJson1CanaryTimeline = (output, context) => {
1381
2051
  : undefined,
1382
2052
  };
1383
2053
  };
2054
+ const deserializeAws_restJson1Group = (output, context) => {
2055
+ return {
2056
+ Arn: (0, smithy_client_1.expectString)(output.Arn),
2057
+ CreatedTime: output.CreatedTime !== undefined && output.CreatedTime !== null
2058
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTime)))
2059
+ : undefined,
2060
+ Id: (0, smithy_client_1.expectString)(output.Id),
2061
+ LastModifiedTime: output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
2062
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
2063
+ : undefined,
2064
+ Name: (0, smithy_client_1.expectString)(output.Name),
2065
+ Tags: output.Tags !== undefined && output.Tags !== null
2066
+ ? deserializeAws_restJson1TagMap(output.Tags, context)
2067
+ : undefined,
2068
+ };
2069
+ };
2070
+ const deserializeAws_restJson1GroupSummary = (output, context) => {
2071
+ return {
2072
+ Arn: (0, smithy_client_1.expectString)(output.Arn),
2073
+ Id: (0, smithy_client_1.expectString)(output.Id),
2074
+ Name: (0, smithy_client_1.expectString)(output.Name),
2075
+ };
2076
+ };
2077
+ const deserializeAws_restJson1GroupSummaryList = (output, context) => {
2078
+ const retVal = (output || [])
2079
+ .filter((e) => e != null)
2080
+ .map((entry) => {
2081
+ if (entry === null) {
2082
+ return null;
2083
+ }
2084
+ return deserializeAws_restJson1GroupSummary(entry, context);
2085
+ });
2086
+ return retVal;
2087
+ };
1384
2088
  const deserializeAws_restJson1RuntimeVersion = (output, context) => {
1385
2089
  return {
1386
2090
  DeprecationDate: output.DeprecationDate !== undefined && output.DeprecationDate !== null
@@ -1421,6 +2125,17 @@ const deserializeAws_restJson1SecurityGroupIds = (output, context) => {
1421
2125
  });
1422
2126
  return retVal;
1423
2127
  };
2128
+ const deserializeAws_restJson1StringList = (output, context) => {
2129
+ const retVal = (output || [])
2130
+ .filter((e) => e != null)
2131
+ .map((entry) => {
2132
+ if (entry === null) {
2133
+ return null;
2134
+ }
2135
+ return (0, smithy_client_1.expectString)(entry);
2136
+ });
2137
+ return retVal;
2138
+ };
1424
2139
  const deserializeAws_restJson1SubnetIds = (output, context) => {
1425
2140
  const retVal = (output || [])
1426
2141
  .filter((e) => e != null)