@aws-sdk/client-iotdeviceadvisor 3.306.0 → 3.309.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 (33) hide show
  1. package/dist-cjs/commands/CreateSuiteDefinitionCommand.js +2 -2
  2. package/dist-cjs/commands/DeleteSuiteDefinitionCommand.js +2 -2
  3. package/dist-cjs/commands/GetEndpointCommand.js +2 -2
  4. package/dist-cjs/commands/GetSuiteDefinitionCommand.js +2 -2
  5. package/dist-cjs/commands/GetSuiteRunCommand.js +2 -2
  6. package/dist-cjs/commands/GetSuiteRunReportCommand.js +2 -2
  7. package/dist-cjs/commands/ListSuiteDefinitionsCommand.js +2 -2
  8. package/dist-cjs/commands/ListSuiteRunsCommand.js +2 -2
  9. package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
  10. package/dist-cjs/commands/StartSuiteRunCommand.js +2 -2
  11. package/dist-cjs/commands/StopSuiteRunCommand.js +2 -2
  12. package/dist-cjs/commands/TagResourceCommand.js +2 -2
  13. package/dist-cjs/commands/UntagResourceCommand.js +2 -2
  14. package/dist-cjs/commands/UpdateSuiteDefinitionCommand.js +2 -2
  15. package/dist-cjs/protocols/Aws_restJson1.js +180 -190
  16. package/dist-es/commands/CreateSuiteDefinitionCommand.js +3 -3
  17. package/dist-es/commands/DeleteSuiteDefinitionCommand.js +3 -3
  18. package/dist-es/commands/GetEndpointCommand.js +3 -3
  19. package/dist-es/commands/GetSuiteDefinitionCommand.js +3 -3
  20. package/dist-es/commands/GetSuiteRunCommand.js +3 -3
  21. package/dist-es/commands/GetSuiteRunReportCommand.js +3 -3
  22. package/dist-es/commands/ListSuiteDefinitionsCommand.js +3 -3
  23. package/dist-es/commands/ListSuiteRunsCommand.js +3 -3
  24. package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
  25. package/dist-es/commands/StartSuiteRunCommand.js +3 -3
  26. package/dist-es/commands/StopSuiteRunCommand.js +3 -3
  27. package/dist-es/commands/TagResourceCommand.js +3 -3
  28. package/dist-es/commands/UntagResourceCommand.js +3 -3
  29. package/dist-es/commands/UpdateSuiteDefinitionCommand.js +3 -3
  30. package/dist-es/protocols/Aws_restJson1.js +151 -161
  31. package/dist-types/protocols/Aws_restJson1.d.ts +112 -28
  32. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +28 -28
  33. package/package.json +6 -6
@@ -2,7 +2,7 @@ import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
2
2
  import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map as __map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, throwDefaultError, } from "@aws-sdk/smithy-client";
3
3
  import { IotDeviceAdvisorServiceException as __BaseException } from "../models/IotDeviceAdvisorServiceException";
4
4
  import { ConflictException, InternalServerException, ResourceNotFoundException, ValidationException, } from "../models/models_0";
5
- export const serializeAws_restJson1CreateSuiteDefinitionCommand = async (input, context) => {
5
+ export const se_CreateSuiteDefinitionCommand = async (input, context) => {
6
6
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
7
7
  const headers = {
8
8
  "content-type": "application/json",
@@ -11,9 +11,9 @@ export const serializeAws_restJson1CreateSuiteDefinitionCommand = async (input,
11
11
  let body;
12
12
  body = JSON.stringify({
13
13
  ...(input.suiteDefinitionConfiguration != null && {
14
- suiteDefinitionConfiguration: serializeAws_restJson1SuiteDefinitionConfiguration(input.suiteDefinitionConfiguration, context),
14
+ suiteDefinitionConfiguration: se_SuiteDefinitionConfiguration(input.suiteDefinitionConfiguration, context),
15
15
  }),
16
- ...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
16
+ ...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
17
17
  });
18
18
  return new __HttpRequest({
19
19
  protocol,
@@ -25,7 +25,7 @@ export const serializeAws_restJson1CreateSuiteDefinitionCommand = async (input,
25
25
  body,
26
26
  });
27
27
  };
28
- export const serializeAws_restJson1DeleteSuiteDefinitionCommand = async (input, context) => {
28
+ export const se_DeleteSuiteDefinitionCommand = async (input, context) => {
29
29
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
30
30
  const headers = {};
31
31
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/suiteDefinitions/{suiteDefinitionId}";
@@ -41,7 +41,7 @@ export const serializeAws_restJson1DeleteSuiteDefinitionCommand = async (input,
41
41
  body,
42
42
  });
43
43
  };
44
- export const serializeAws_restJson1GetEndpointCommand = async (input, context) => {
44
+ export const se_GetEndpointCommand = async (input, context) => {
45
45
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
46
46
  const headers = {};
47
47
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/endpoint";
@@ -61,7 +61,7 @@ export const serializeAws_restJson1GetEndpointCommand = async (input, context) =
61
61
  body,
62
62
  });
63
63
  };
64
- export const serializeAws_restJson1GetSuiteDefinitionCommand = async (input, context) => {
64
+ export const se_GetSuiteDefinitionCommand = async (input, context) => {
65
65
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
66
66
  const headers = {};
67
67
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/suiteDefinitions/{suiteDefinitionId}";
@@ -81,7 +81,7 @@ export const serializeAws_restJson1GetSuiteDefinitionCommand = async (input, con
81
81
  body,
82
82
  });
83
83
  };
84
- export const serializeAws_restJson1GetSuiteRunCommand = async (input, context) => {
84
+ export const se_GetSuiteRunCommand = async (input, context) => {
85
85
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
86
86
  const headers = {};
87
87
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -99,7 +99,7 @@ export const serializeAws_restJson1GetSuiteRunCommand = async (input, context) =
99
99
  body,
100
100
  });
101
101
  };
102
- export const serializeAws_restJson1GetSuiteRunReportCommand = async (input, context) => {
102
+ export const se_GetSuiteRunReportCommand = async (input, context) => {
103
103
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
104
104
  const headers = {};
105
105
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -117,7 +117,7 @@ export const serializeAws_restJson1GetSuiteRunReportCommand = async (input, cont
117
117
  body,
118
118
  });
119
119
  };
120
- export const serializeAws_restJson1ListSuiteDefinitionsCommand = async (input, context) => {
120
+ export const se_ListSuiteDefinitionsCommand = async (input, context) => {
121
121
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
122
122
  const headers = {};
123
123
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/suiteDefinitions";
@@ -137,7 +137,7 @@ export const serializeAws_restJson1ListSuiteDefinitionsCommand = async (input, c
137
137
  body,
138
138
  });
139
139
  };
140
- export const serializeAws_restJson1ListSuiteRunsCommand = async (input, context) => {
140
+ export const se_ListSuiteRunsCommand = async (input, context) => {
141
141
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
142
142
  const headers = {};
143
143
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/suiteRuns";
@@ -159,7 +159,7 @@ export const serializeAws_restJson1ListSuiteRunsCommand = async (input, context)
159
159
  body,
160
160
  });
161
161
  };
162
- export const serializeAws_restJson1ListTagsForResourceCommand = async (input, context) => {
162
+ export const se_ListTagsForResourceCommand = async (input, context) => {
163
163
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
164
164
  const headers = {};
165
165
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
@@ -175,7 +175,7 @@ export const serializeAws_restJson1ListTagsForResourceCommand = async (input, co
175
175
  body,
176
176
  });
177
177
  };
178
- export const serializeAws_restJson1StartSuiteRunCommand = async (input, context) => {
178
+ export const se_StartSuiteRunCommand = async (input, context) => {
179
179
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
180
180
  const headers = {
181
181
  "content-type": "application/json",
@@ -187,9 +187,9 @@ export const serializeAws_restJson1StartSuiteRunCommand = async (input, context)
187
187
  body = JSON.stringify({
188
188
  ...(input.suiteDefinitionVersion != null && { suiteDefinitionVersion: input.suiteDefinitionVersion }),
189
189
  ...(input.suiteRunConfiguration != null && {
190
- suiteRunConfiguration: serializeAws_restJson1SuiteRunConfiguration(input.suiteRunConfiguration, context),
190
+ suiteRunConfiguration: se_SuiteRunConfiguration(input.suiteRunConfiguration, context),
191
191
  }),
192
- ...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
192
+ ...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
193
193
  });
194
194
  return new __HttpRequest({
195
195
  protocol,
@@ -201,7 +201,7 @@ export const serializeAws_restJson1StartSuiteRunCommand = async (input, context)
201
201
  body,
202
202
  });
203
203
  };
204
- export const serializeAws_restJson1StopSuiteRunCommand = async (input, context) => {
204
+ export const se_StopSuiteRunCommand = async (input, context) => {
205
205
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
206
206
  const headers = {};
207
207
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -219,7 +219,7 @@ export const serializeAws_restJson1StopSuiteRunCommand = async (input, context)
219
219
  body,
220
220
  });
221
221
  };
222
- export const serializeAws_restJson1TagResourceCommand = async (input, context) => {
222
+ export const se_TagResourceCommand = async (input, context) => {
223
223
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
224
224
  const headers = {
225
225
  "content-type": "application/json",
@@ -228,7 +228,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
228
228
  resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
229
229
  let body;
230
230
  body = JSON.stringify({
231
- ...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
231
+ ...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
232
232
  });
233
233
  return new __HttpRequest({
234
234
  protocol,
@@ -240,7 +240,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
240
240
  body,
241
241
  });
242
242
  };
243
- export const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
243
+ export const se_UntagResourceCommand = async (input, context) => {
244
244
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
245
245
  const headers = {};
246
246
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
@@ -263,7 +263,7 @@ export const serializeAws_restJson1UntagResourceCommand = async (input, context)
263
263
  body,
264
264
  });
265
265
  };
266
- export const serializeAws_restJson1UpdateSuiteDefinitionCommand = async (input, context) => {
266
+ export const se_UpdateSuiteDefinitionCommand = async (input, context) => {
267
267
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
268
268
  const headers = {
269
269
  "content-type": "application/json",
@@ -273,7 +273,7 @@ export const serializeAws_restJson1UpdateSuiteDefinitionCommand = async (input,
273
273
  let body;
274
274
  body = JSON.stringify({
275
275
  ...(input.suiteDefinitionConfiguration != null && {
276
- suiteDefinitionConfiguration: serializeAws_restJson1SuiteDefinitionConfiguration(input.suiteDefinitionConfiguration, context),
276
+ suiteDefinitionConfiguration: se_SuiteDefinitionConfiguration(input.suiteDefinitionConfiguration, context),
277
277
  }),
278
278
  });
279
279
  return new __HttpRequest({
@@ -286,9 +286,9 @@ export const serializeAws_restJson1UpdateSuiteDefinitionCommand = async (input,
286
286
  body,
287
287
  });
288
288
  };
289
- export const deserializeAws_restJson1CreateSuiteDefinitionCommand = async (output, context) => {
289
+ export const de_CreateSuiteDefinitionCommand = async (output, context) => {
290
290
  if (output.statusCode !== 200 && output.statusCode >= 300) {
291
- return deserializeAws_restJson1CreateSuiteDefinitionCommandError(output, context);
291
+ return de_CreateSuiteDefinitionCommandError(output, context);
292
292
  }
293
293
  const contents = map({
294
294
  $metadata: deserializeMetadata(output),
@@ -308,7 +308,7 @@ export const deserializeAws_restJson1CreateSuiteDefinitionCommand = async (outpu
308
308
  }
309
309
  return contents;
310
310
  };
311
- const deserializeAws_restJson1CreateSuiteDefinitionCommandError = async (output, context) => {
311
+ const de_CreateSuiteDefinitionCommandError = async (output, context) => {
312
312
  const parsedOutput = {
313
313
  ...output,
314
314
  body: await parseErrorBody(output.body, context),
@@ -317,10 +317,10 @@ const deserializeAws_restJson1CreateSuiteDefinitionCommandError = async (output,
317
317
  switch (errorCode) {
318
318
  case "InternalServerException":
319
319
  case "com.amazonaws.iotdeviceadvisor#InternalServerException":
320
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
320
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
321
321
  case "ValidationException":
322
322
  case "com.amazonaws.iotdeviceadvisor#ValidationException":
323
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
323
+ throw await de_ValidationExceptionRes(parsedOutput, context);
324
324
  default:
325
325
  const parsedBody = parsedOutput.body;
326
326
  throwDefaultError({
@@ -331,9 +331,9 @@ const deserializeAws_restJson1CreateSuiteDefinitionCommandError = async (output,
331
331
  });
332
332
  }
333
333
  };
334
- export const deserializeAws_restJson1DeleteSuiteDefinitionCommand = async (output, context) => {
334
+ export const de_DeleteSuiteDefinitionCommand = async (output, context) => {
335
335
  if (output.statusCode !== 200 && output.statusCode >= 300) {
336
- return deserializeAws_restJson1DeleteSuiteDefinitionCommandError(output, context);
336
+ return de_DeleteSuiteDefinitionCommandError(output, context);
337
337
  }
338
338
  const contents = map({
339
339
  $metadata: deserializeMetadata(output),
@@ -341,7 +341,7 @@ export const deserializeAws_restJson1DeleteSuiteDefinitionCommand = async (outpu
341
341
  await collectBody(output.body, context);
342
342
  return contents;
343
343
  };
344
- const deserializeAws_restJson1DeleteSuiteDefinitionCommandError = async (output, context) => {
344
+ const de_DeleteSuiteDefinitionCommandError = async (output, context) => {
345
345
  const parsedOutput = {
346
346
  ...output,
347
347
  body: await parseErrorBody(output.body, context),
@@ -350,10 +350,10 @@ const deserializeAws_restJson1DeleteSuiteDefinitionCommandError = async (output,
350
350
  switch (errorCode) {
351
351
  case "InternalServerException":
352
352
  case "com.amazonaws.iotdeviceadvisor#InternalServerException":
353
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
353
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
354
354
  case "ValidationException":
355
355
  case "com.amazonaws.iotdeviceadvisor#ValidationException":
356
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
356
+ throw await de_ValidationExceptionRes(parsedOutput, context);
357
357
  default:
358
358
  const parsedBody = parsedOutput.body;
359
359
  throwDefaultError({
@@ -364,9 +364,9 @@ const deserializeAws_restJson1DeleteSuiteDefinitionCommandError = async (output,
364
364
  });
365
365
  }
366
366
  };
367
- export const deserializeAws_restJson1GetEndpointCommand = async (output, context) => {
367
+ export const de_GetEndpointCommand = async (output, context) => {
368
368
  if (output.statusCode !== 200 && output.statusCode >= 300) {
369
- return deserializeAws_restJson1GetEndpointCommandError(output, context);
369
+ return de_GetEndpointCommandError(output, context);
370
370
  }
371
371
  const contents = map({
372
372
  $metadata: deserializeMetadata(output),
@@ -377,7 +377,7 @@ export const deserializeAws_restJson1GetEndpointCommand = async (output, context
377
377
  }
378
378
  return contents;
379
379
  };
380
- const deserializeAws_restJson1GetEndpointCommandError = async (output, context) => {
380
+ const de_GetEndpointCommandError = async (output, context) => {
381
381
  const parsedOutput = {
382
382
  ...output,
383
383
  body: await parseErrorBody(output.body, context),
@@ -386,13 +386,13 @@ const deserializeAws_restJson1GetEndpointCommandError = async (output, context)
386
386
  switch (errorCode) {
387
387
  case "InternalServerException":
388
388
  case "com.amazonaws.iotdeviceadvisor#InternalServerException":
389
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
389
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
390
390
  case "ResourceNotFoundException":
391
391
  case "com.amazonaws.iotdeviceadvisor#ResourceNotFoundException":
392
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
392
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
393
393
  case "ValidationException":
394
394
  case "com.amazonaws.iotdeviceadvisor#ValidationException":
395
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
395
+ throw await de_ValidationExceptionRes(parsedOutput, context);
396
396
  default:
397
397
  const parsedBody = parsedOutput.body;
398
398
  throwDefaultError({
@@ -403,9 +403,9 @@ const deserializeAws_restJson1GetEndpointCommandError = async (output, context)
403
403
  });
404
404
  }
405
405
  };
406
- export const deserializeAws_restJson1GetSuiteDefinitionCommand = async (output, context) => {
406
+ export const de_GetSuiteDefinitionCommand = async (output, context) => {
407
407
  if (output.statusCode !== 200 && output.statusCode >= 300) {
408
- return deserializeAws_restJson1GetSuiteDefinitionCommandError(output, context);
408
+ return de_GetSuiteDefinitionCommandError(output, context);
409
409
  }
410
410
  const contents = map({
411
411
  $metadata: deserializeMetadata(output),
@@ -424,7 +424,7 @@ export const deserializeAws_restJson1GetSuiteDefinitionCommand = async (output,
424
424
  contents.suiteDefinitionArn = __expectString(data.suiteDefinitionArn);
425
425
  }
426
426
  if (data.suiteDefinitionConfiguration != null) {
427
- contents.suiteDefinitionConfiguration = deserializeAws_restJson1SuiteDefinitionConfiguration(data.suiteDefinitionConfiguration, context);
427
+ contents.suiteDefinitionConfiguration = de_SuiteDefinitionConfiguration(data.suiteDefinitionConfiguration, context);
428
428
  }
429
429
  if (data.suiteDefinitionId != null) {
430
430
  contents.suiteDefinitionId = __expectString(data.suiteDefinitionId);
@@ -433,11 +433,11 @@ export const deserializeAws_restJson1GetSuiteDefinitionCommand = async (output,
433
433
  contents.suiteDefinitionVersion = __expectString(data.suiteDefinitionVersion);
434
434
  }
435
435
  if (data.tags != null) {
436
- contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
436
+ contents.tags = de_TagMap(data.tags, context);
437
437
  }
438
438
  return contents;
439
439
  };
440
- const deserializeAws_restJson1GetSuiteDefinitionCommandError = async (output, context) => {
440
+ const de_GetSuiteDefinitionCommandError = async (output, context) => {
441
441
  const parsedOutput = {
442
442
  ...output,
443
443
  body: await parseErrorBody(output.body, context),
@@ -446,13 +446,13 @@ const deserializeAws_restJson1GetSuiteDefinitionCommandError = async (output, co
446
446
  switch (errorCode) {
447
447
  case "InternalServerException":
448
448
  case "com.amazonaws.iotdeviceadvisor#InternalServerException":
449
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
449
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
450
450
  case "ResourceNotFoundException":
451
451
  case "com.amazonaws.iotdeviceadvisor#ResourceNotFoundException":
452
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
452
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
453
453
  case "ValidationException":
454
454
  case "com.amazonaws.iotdeviceadvisor#ValidationException":
455
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
455
+ throw await de_ValidationExceptionRes(parsedOutput, context);
456
456
  default:
457
457
  const parsedBody = parsedOutput.body;
458
458
  throwDefaultError({
@@ -463,9 +463,9 @@ const deserializeAws_restJson1GetSuiteDefinitionCommandError = async (output, co
463
463
  });
464
464
  }
465
465
  };
466
- export const deserializeAws_restJson1GetSuiteRunCommand = async (output, context) => {
466
+ export const de_GetSuiteRunCommand = async (output, context) => {
467
467
  if (output.statusCode !== 200 && output.statusCode >= 300) {
468
- return deserializeAws_restJson1GetSuiteRunCommandError(output, context);
468
+ return de_GetSuiteRunCommandError(output, context);
469
469
  }
470
470
  const contents = map({
471
471
  $metadata: deserializeMetadata(output),
@@ -493,20 +493,20 @@ export const deserializeAws_restJson1GetSuiteRunCommand = async (output, context
493
493
  contents.suiteRunArn = __expectString(data.suiteRunArn);
494
494
  }
495
495
  if (data.suiteRunConfiguration != null) {
496
- contents.suiteRunConfiguration = deserializeAws_restJson1SuiteRunConfiguration(data.suiteRunConfiguration, context);
496
+ contents.suiteRunConfiguration = de_SuiteRunConfiguration(data.suiteRunConfiguration, context);
497
497
  }
498
498
  if (data.suiteRunId != null) {
499
499
  contents.suiteRunId = __expectString(data.suiteRunId);
500
500
  }
501
501
  if (data.tags != null) {
502
- contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
502
+ contents.tags = de_TagMap(data.tags, context);
503
503
  }
504
504
  if (data.testResult != null) {
505
- contents.testResult = deserializeAws_restJson1TestResult(data.testResult, context);
505
+ contents.testResult = de_TestResult(data.testResult, context);
506
506
  }
507
507
  return contents;
508
508
  };
509
- const deserializeAws_restJson1GetSuiteRunCommandError = async (output, context) => {
509
+ const de_GetSuiteRunCommandError = async (output, context) => {
510
510
  const parsedOutput = {
511
511
  ...output,
512
512
  body: await parseErrorBody(output.body, context),
@@ -515,13 +515,13 @@ const deserializeAws_restJson1GetSuiteRunCommandError = async (output, context)
515
515
  switch (errorCode) {
516
516
  case "InternalServerException":
517
517
  case "com.amazonaws.iotdeviceadvisor#InternalServerException":
518
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
518
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
519
519
  case "ResourceNotFoundException":
520
520
  case "com.amazonaws.iotdeviceadvisor#ResourceNotFoundException":
521
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
521
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
522
522
  case "ValidationException":
523
523
  case "com.amazonaws.iotdeviceadvisor#ValidationException":
524
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
524
+ throw await de_ValidationExceptionRes(parsedOutput, context);
525
525
  default:
526
526
  const parsedBody = parsedOutput.body;
527
527
  throwDefaultError({
@@ -532,9 +532,9 @@ const deserializeAws_restJson1GetSuiteRunCommandError = async (output, context)
532
532
  });
533
533
  }
534
534
  };
535
- export const deserializeAws_restJson1GetSuiteRunReportCommand = async (output, context) => {
535
+ export const de_GetSuiteRunReportCommand = async (output, context) => {
536
536
  if (output.statusCode !== 200 && output.statusCode >= 300) {
537
- return deserializeAws_restJson1GetSuiteRunReportCommandError(output, context);
537
+ return de_GetSuiteRunReportCommandError(output, context);
538
538
  }
539
539
  const contents = map({
540
540
  $metadata: deserializeMetadata(output),
@@ -545,7 +545,7 @@ export const deserializeAws_restJson1GetSuiteRunReportCommand = async (output, c
545
545
  }
546
546
  return contents;
547
547
  };
548
- const deserializeAws_restJson1GetSuiteRunReportCommandError = async (output, context) => {
548
+ const de_GetSuiteRunReportCommandError = async (output, context) => {
549
549
  const parsedOutput = {
550
550
  ...output,
551
551
  body: await parseErrorBody(output.body, context),
@@ -554,13 +554,13 @@ const deserializeAws_restJson1GetSuiteRunReportCommandError = async (output, con
554
554
  switch (errorCode) {
555
555
  case "InternalServerException":
556
556
  case "com.amazonaws.iotdeviceadvisor#InternalServerException":
557
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
557
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
558
558
  case "ResourceNotFoundException":
559
559
  case "com.amazonaws.iotdeviceadvisor#ResourceNotFoundException":
560
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
560
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
561
561
  case "ValidationException":
562
562
  case "com.amazonaws.iotdeviceadvisor#ValidationException":
563
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
563
+ throw await de_ValidationExceptionRes(parsedOutput, context);
564
564
  default:
565
565
  const parsedBody = parsedOutput.body;
566
566
  throwDefaultError({
@@ -571,9 +571,9 @@ const deserializeAws_restJson1GetSuiteRunReportCommandError = async (output, con
571
571
  });
572
572
  }
573
573
  };
574
- export const deserializeAws_restJson1ListSuiteDefinitionsCommand = async (output, context) => {
574
+ export const de_ListSuiteDefinitionsCommand = async (output, context) => {
575
575
  if (output.statusCode !== 200 && output.statusCode >= 300) {
576
- return deserializeAws_restJson1ListSuiteDefinitionsCommandError(output, context);
576
+ return de_ListSuiteDefinitionsCommandError(output, context);
577
577
  }
578
578
  const contents = map({
579
579
  $metadata: deserializeMetadata(output),
@@ -583,11 +583,11 @@ export const deserializeAws_restJson1ListSuiteDefinitionsCommand = async (output
583
583
  contents.nextToken = __expectString(data.nextToken);
584
584
  }
585
585
  if (data.suiteDefinitionInformationList != null) {
586
- contents.suiteDefinitionInformationList = deserializeAws_restJson1SuiteDefinitionInformationList(data.suiteDefinitionInformationList, context);
586
+ contents.suiteDefinitionInformationList = de_SuiteDefinitionInformationList(data.suiteDefinitionInformationList, context);
587
587
  }
588
588
  return contents;
589
589
  };
590
- const deserializeAws_restJson1ListSuiteDefinitionsCommandError = async (output, context) => {
590
+ const de_ListSuiteDefinitionsCommandError = async (output, context) => {
591
591
  const parsedOutput = {
592
592
  ...output,
593
593
  body: await parseErrorBody(output.body, context),
@@ -596,10 +596,10 @@ const deserializeAws_restJson1ListSuiteDefinitionsCommandError = async (output,
596
596
  switch (errorCode) {
597
597
  case "InternalServerException":
598
598
  case "com.amazonaws.iotdeviceadvisor#InternalServerException":
599
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
599
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
600
600
  case "ValidationException":
601
601
  case "com.amazonaws.iotdeviceadvisor#ValidationException":
602
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
602
+ throw await de_ValidationExceptionRes(parsedOutput, context);
603
603
  default:
604
604
  const parsedBody = parsedOutput.body;
605
605
  throwDefaultError({
@@ -610,9 +610,9 @@ const deserializeAws_restJson1ListSuiteDefinitionsCommandError = async (output,
610
610
  });
611
611
  }
612
612
  };
613
- export const deserializeAws_restJson1ListSuiteRunsCommand = async (output, context) => {
613
+ export const de_ListSuiteRunsCommand = async (output, context) => {
614
614
  if (output.statusCode !== 200 && output.statusCode >= 300) {
615
- return deserializeAws_restJson1ListSuiteRunsCommandError(output, context);
615
+ return de_ListSuiteRunsCommandError(output, context);
616
616
  }
617
617
  const contents = map({
618
618
  $metadata: deserializeMetadata(output),
@@ -622,11 +622,11 @@ export const deserializeAws_restJson1ListSuiteRunsCommand = async (output, conte
622
622
  contents.nextToken = __expectString(data.nextToken);
623
623
  }
624
624
  if (data.suiteRunsList != null) {
625
- contents.suiteRunsList = deserializeAws_restJson1SuiteRunsList(data.suiteRunsList, context);
625
+ contents.suiteRunsList = de_SuiteRunsList(data.suiteRunsList, context);
626
626
  }
627
627
  return contents;
628
628
  };
629
- const deserializeAws_restJson1ListSuiteRunsCommandError = async (output, context) => {
629
+ const de_ListSuiteRunsCommandError = async (output, context) => {
630
630
  const parsedOutput = {
631
631
  ...output,
632
632
  body: await parseErrorBody(output.body, context),
@@ -635,10 +635,10 @@ const deserializeAws_restJson1ListSuiteRunsCommandError = async (output, context
635
635
  switch (errorCode) {
636
636
  case "InternalServerException":
637
637
  case "com.amazonaws.iotdeviceadvisor#InternalServerException":
638
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
638
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
639
639
  case "ValidationException":
640
640
  case "com.amazonaws.iotdeviceadvisor#ValidationException":
641
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
641
+ throw await de_ValidationExceptionRes(parsedOutput, context);
642
642
  default:
643
643
  const parsedBody = parsedOutput.body;
644
644
  throwDefaultError({
@@ -649,20 +649,20 @@ const deserializeAws_restJson1ListSuiteRunsCommandError = async (output, context
649
649
  });
650
650
  }
651
651
  };
652
- export const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
652
+ export const de_ListTagsForResourceCommand = async (output, context) => {
653
653
  if (output.statusCode !== 200 && output.statusCode >= 300) {
654
- return deserializeAws_restJson1ListTagsForResourceCommandError(output, context);
654
+ return de_ListTagsForResourceCommandError(output, context);
655
655
  }
656
656
  const contents = map({
657
657
  $metadata: deserializeMetadata(output),
658
658
  });
659
659
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
660
660
  if (data.tags != null) {
661
- contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
661
+ contents.tags = de_TagMap(data.tags, context);
662
662
  }
663
663
  return contents;
664
664
  };
665
- const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
665
+ const de_ListTagsForResourceCommandError = async (output, context) => {
666
666
  const parsedOutput = {
667
667
  ...output,
668
668
  body: await parseErrorBody(output.body, context),
@@ -671,13 +671,13 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
671
671
  switch (errorCode) {
672
672
  case "InternalServerException":
673
673
  case "com.amazonaws.iotdeviceadvisor#InternalServerException":
674
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
674
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
675
675
  case "ResourceNotFoundException":
676
676
  case "com.amazonaws.iotdeviceadvisor#ResourceNotFoundException":
677
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
677
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
678
678
  case "ValidationException":
679
679
  case "com.amazonaws.iotdeviceadvisor#ValidationException":
680
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
680
+ throw await de_ValidationExceptionRes(parsedOutput, context);
681
681
  default:
682
682
  const parsedBody = parsedOutput.body;
683
683
  throwDefaultError({
@@ -688,9 +688,9 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
688
688
  });
689
689
  }
690
690
  };
691
- export const deserializeAws_restJson1StartSuiteRunCommand = async (output, context) => {
691
+ export const de_StartSuiteRunCommand = async (output, context) => {
692
692
  if (output.statusCode !== 200 && output.statusCode >= 300) {
693
- return deserializeAws_restJson1StartSuiteRunCommandError(output, context);
693
+ return de_StartSuiteRunCommandError(output, context);
694
694
  }
695
695
  const contents = map({
696
696
  $metadata: deserializeMetadata(output),
@@ -710,7 +710,7 @@ export const deserializeAws_restJson1StartSuiteRunCommand = async (output, conte
710
710
  }
711
711
  return contents;
712
712
  };
713
- const deserializeAws_restJson1StartSuiteRunCommandError = async (output, context) => {
713
+ const de_StartSuiteRunCommandError = async (output, context) => {
714
714
  const parsedOutput = {
715
715
  ...output,
716
716
  body: await parseErrorBody(output.body, context),
@@ -719,13 +719,13 @@ const deserializeAws_restJson1StartSuiteRunCommandError = async (output, context
719
719
  switch (errorCode) {
720
720
  case "ConflictException":
721
721
  case "com.amazonaws.iotdeviceadvisor#ConflictException":
722
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
722
+ throw await de_ConflictExceptionRes(parsedOutput, context);
723
723
  case "InternalServerException":
724
724
  case "com.amazonaws.iotdeviceadvisor#InternalServerException":
725
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
725
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
726
726
  case "ValidationException":
727
727
  case "com.amazonaws.iotdeviceadvisor#ValidationException":
728
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
728
+ throw await de_ValidationExceptionRes(parsedOutput, context);
729
729
  default:
730
730
  const parsedBody = parsedOutput.body;
731
731
  throwDefaultError({
@@ -736,9 +736,9 @@ const deserializeAws_restJson1StartSuiteRunCommandError = async (output, context
736
736
  });
737
737
  }
738
738
  };
739
- export const deserializeAws_restJson1StopSuiteRunCommand = async (output, context) => {
739
+ export const de_StopSuiteRunCommand = async (output, context) => {
740
740
  if (output.statusCode !== 200 && output.statusCode >= 300) {
741
- return deserializeAws_restJson1StopSuiteRunCommandError(output, context);
741
+ return de_StopSuiteRunCommandError(output, context);
742
742
  }
743
743
  const contents = map({
744
744
  $metadata: deserializeMetadata(output),
@@ -746,7 +746,7 @@ export const deserializeAws_restJson1StopSuiteRunCommand = async (output, contex
746
746
  await collectBody(output.body, context);
747
747
  return contents;
748
748
  };
749
- const deserializeAws_restJson1StopSuiteRunCommandError = async (output, context) => {
749
+ const de_StopSuiteRunCommandError = async (output, context) => {
750
750
  const parsedOutput = {
751
751
  ...output,
752
752
  body: await parseErrorBody(output.body, context),
@@ -755,13 +755,13 @@ const deserializeAws_restJson1StopSuiteRunCommandError = async (output, context)
755
755
  switch (errorCode) {
756
756
  case "InternalServerException":
757
757
  case "com.amazonaws.iotdeviceadvisor#InternalServerException":
758
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
758
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
759
759
  case "ResourceNotFoundException":
760
760
  case "com.amazonaws.iotdeviceadvisor#ResourceNotFoundException":
761
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
761
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
762
762
  case "ValidationException":
763
763
  case "com.amazonaws.iotdeviceadvisor#ValidationException":
764
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
764
+ throw await de_ValidationExceptionRes(parsedOutput, context);
765
765
  default:
766
766
  const parsedBody = parsedOutput.body;
767
767
  throwDefaultError({
@@ -772,9 +772,9 @@ const deserializeAws_restJson1StopSuiteRunCommandError = async (output, context)
772
772
  });
773
773
  }
774
774
  };
775
- export const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
775
+ export const de_TagResourceCommand = async (output, context) => {
776
776
  if (output.statusCode !== 200 && output.statusCode >= 300) {
777
- return deserializeAws_restJson1TagResourceCommandError(output, context);
777
+ return de_TagResourceCommandError(output, context);
778
778
  }
779
779
  const contents = map({
780
780
  $metadata: deserializeMetadata(output),
@@ -782,7 +782,7 @@ export const deserializeAws_restJson1TagResourceCommand = async (output, context
782
782
  await collectBody(output.body, context);
783
783
  return contents;
784
784
  };
785
- const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
785
+ const de_TagResourceCommandError = async (output, context) => {
786
786
  const parsedOutput = {
787
787
  ...output,
788
788
  body: await parseErrorBody(output.body, context),
@@ -791,13 +791,13 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
791
791
  switch (errorCode) {
792
792
  case "InternalServerException":
793
793
  case "com.amazonaws.iotdeviceadvisor#InternalServerException":
794
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
794
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
795
795
  case "ResourceNotFoundException":
796
796
  case "com.amazonaws.iotdeviceadvisor#ResourceNotFoundException":
797
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
797
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
798
798
  case "ValidationException":
799
799
  case "com.amazonaws.iotdeviceadvisor#ValidationException":
800
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
800
+ throw await de_ValidationExceptionRes(parsedOutput, context);
801
801
  default:
802
802
  const parsedBody = parsedOutput.body;
803
803
  throwDefaultError({
@@ -808,9 +808,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
808
808
  });
809
809
  }
810
810
  };
811
- export const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
811
+ export const de_UntagResourceCommand = async (output, context) => {
812
812
  if (output.statusCode !== 200 && output.statusCode >= 300) {
813
- return deserializeAws_restJson1UntagResourceCommandError(output, context);
813
+ return de_UntagResourceCommandError(output, context);
814
814
  }
815
815
  const contents = map({
816
816
  $metadata: deserializeMetadata(output),
@@ -818,7 +818,7 @@ export const deserializeAws_restJson1UntagResourceCommand = async (output, conte
818
818
  await collectBody(output.body, context);
819
819
  return contents;
820
820
  };
821
- const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
821
+ const de_UntagResourceCommandError = async (output, context) => {
822
822
  const parsedOutput = {
823
823
  ...output,
824
824
  body: await parseErrorBody(output.body, context),
@@ -827,13 +827,13 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
827
827
  switch (errorCode) {
828
828
  case "InternalServerException":
829
829
  case "com.amazonaws.iotdeviceadvisor#InternalServerException":
830
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
830
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
831
831
  case "ResourceNotFoundException":
832
832
  case "com.amazonaws.iotdeviceadvisor#ResourceNotFoundException":
833
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
833
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
834
834
  case "ValidationException":
835
835
  case "com.amazonaws.iotdeviceadvisor#ValidationException":
836
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
836
+ throw await de_ValidationExceptionRes(parsedOutput, context);
837
837
  default:
838
838
  const parsedBody = parsedOutput.body;
839
839
  throwDefaultError({
@@ -844,9 +844,9 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
844
844
  });
845
845
  }
846
846
  };
847
- export const deserializeAws_restJson1UpdateSuiteDefinitionCommand = async (output, context) => {
847
+ export const de_UpdateSuiteDefinitionCommand = async (output, context) => {
848
848
  if (output.statusCode !== 200 && output.statusCode >= 300) {
849
- return deserializeAws_restJson1UpdateSuiteDefinitionCommandError(output, context);
849
+ return de_UpdateSuiteDefinitionCommandError(output, context);
850
850
  }
851
851
  const contents = map({
852
852
  $metadata: deserializeMetadata(output),
@@ -872,7 +872,7 @@ export const deserializeAws_restJson1UpdateSuiteDefinitionCommand = async (outpu
872
872
  }
873
873
  return contents;
874
874
  };
875
- const deserializeAws_restJson1UpdateSuiteDefinitionCommandError = async (output, context) => {
875
+ const de_UpdateSuiteDefinitionCommandError = async (output, context) => {
876
876
  const parsedOutput = {
877
877
  ...output,
878
878
  body: await parseErrorBody(output.body, context),
@@ -881,10 +881,10 @@ const deserializeAws_restJson1UpdateSuiteDefinitionCommandError = async (output,
881
881
  switch (errorCode) {
882
882
  case "InternalServerException":
883
883
  case "com.amazonaws.iotdeviceadvisor#InternalServerException":
884
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
884
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
885
885
  case "ValidationException":
886
886
  case "com.amazonaws.iotdeviceadvisor#ValidationException":
887
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
887
+ throw await de_ValidationExceptionRes(parsedOutput, context);
888
888
  default:
889
889
  const parsedBody = parsedOutput.body;
890
890
  throwDefaultError({
@@ -896,7 +896,7 @@ const deserializeAws_restJson1UpdateSuiteDefinitionCommandError = async (output,
896
896
  }
897
897
  };
898
898
  const map = __map;
899
- const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
899
+ const de_ConflictExceptionRes = async (parsedOutput, context) => {
900
900
  const contents = map({});
901
901
  const data = parsedOutput.body;
902
902
  if (data.message != null) {
@@ -908,7 +908,7 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
908
908
  });
909
909
  return __decorateServiceException(exception, parsedOutput.body);
910
910
  };
911
- const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
911
+ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
912
912
  const contents = map({});
913
913
  const data = parsedOutput.body;
914
914
  if (data.message != null) {
@@ -920,7 +920,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
920
920
  });
921
921
  return __decorateServiceException(exception, parsedOutput.body);
922
922
  };
923
- const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
923
+ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
924
924
  const contents = map({});
925
925
  const data = parsedOutput.body;
926
926
  if (data.message != null) {
@@ -932,7 +932,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
932
932
  });
933
933
  return __decorateServiceException(exception, parsedOutput.body);
934
934
  };
935
- const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
935
+ const de_ValidationExceptionRes = async (parsedOutput, context) => {
936
936
  const contents = map({});
937
937
  const data = parsedOutput.body;
938
938
  if (data.message != null) {
@@ -944,30 +944,30 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
944
944
  });
945
945
  return __decorateServiceException(exception, parsedOutput.body);
946
946
  };
947
- const serializeAws_restJson1DeviceUnderTest = (input, context) => {
947
+ const se_DeviceUnderTest = (input, context) => {
948
948
  return {
949
949
  ...(input.certificateArn != null && { certificateArn: input.certificateArn }),
950
950
  ...(input.thingArn != null && { thingArn: input.thingArn }),
951
951
  };
952
952
  };
953
- const serializeAws_restJson1DeviceUnderTestList = (input, context) => {
953
+ const se_DeviceUnderTestList = (input, context) => {
954
954
  return input
955
955
  .filter((e) => e != null)
956
956
  .map((entry) => {
957
- return serializeAws_restJson1DeviceUnderTest(entry, context);
957
+ return se_DeviceUnderTest(entry, context);
958
958
  });
959
959
  };
960
- const serializeAws_restJson1SelectedTestList = (input, context) => {
960
+ const se_SelectedTestList = (input, context) => {
961
961
  return input
962
962
  .filter((e) => e != null)
963
963
  .map((entry) => {
964
964
  return entry;
965
965
  });
966
966
  };
967
- const serializeAws_restJson1SuiteDefinitionConfiguration = (input, context) => {
967
+ const se_SuiteDefinitionConfiguration = (input, context) => {
968
968
  return {
969
969
  ...(input.devicePermissionRoleArn != null && { devicePermissionRoleArn: input.devicePermissionRoleArn }),
970
- ...(input.devices != null && { devices: serializeAws_restJson1DeviceUnderTestList(input.devices, context) }),
970
+ ...(input.devices != null && { devices: se_DeviceUnderTestList(input.devices, context) }),
971
971
  ...(input.intendedForQualification != null && { intendedForQualification: input.intendedForQualification }),
972
972
  ...(input.isLongDurationTest != null && { isLongDurationTest: input.isLongDurationTest }),
973
973
  ...(input.protocol != null && { protocol: input.protocol }),
@@ -975,18 +975,14 @@ const serializeAws_restJson1SuiteDefinitionConfiguration = (input, context) => {
975
975
  ...(input.suiteDefinitionName != null && { suiteDefinitionName: input.suiteDefinitionName }),
976
976
  };
977
977
  };
978
- const serializeAws_restJson1SuiteRunConfiguration = (input, context) => {
978
+ const se_SuiteRunConfiguration = (input, context) => {
979
979
  return {
980
980
  ...(input.parallelRun != null && { parallelRun: input.parallelRun }),
981
- ...(input.primaryDevice != null && {
982
- primaryDevice: serializeAws_restJson1DeviceUnderTest(input.primaryDevice, context),
983
- }),
984
- ...(input.selectedTestList != null && {
985
- selectedTestList: serializeAws_restJson1SelectedTestList(input.selectedTestList, context),
986
- }),
981
+ ...(input.primaryDevice != null && { primaryDevice: se_DeviceUnderTest(input.primaryDevice, context) }),
982
+ ...(input.selectedTestList != null && { selectedTestList: se_SelectedTestList(input.selectedTestList, context) }),
987
983
  };
988
984
  };
989
- const serializeAws_restJson1TagMap = (input, context) => {
985
+ const se_TagMap = (input, context) => {
990
986
  return Object.entries(input).reduce((acc, [key, value]) => {
991
987
  if (value === null) {
992
988
  return acc;
@@ -995,42 +991,42 @@ const serializeAws_restJson1TagMap = (input, context) => {
995
991
  return acc;
996
992
  }, {});
997
993
  };
998
- const deserializeAws_restJson1DeviceUnderTest = (output, context) => {
994
+ const de_DeviceUnderTest = (output, context) => {
999
995
  return {
1000
996
  certificateArn: __expectString(output.certificateArn),
1001
997
  thingArn: __expectString(output.thingArn),
1002
998
  };
1003
999
  };
1004
- const deserializeAws_restJson1DeviceUnderTestList = (output, context) => {
1000
+ const de_DeviceUnderTestList = (output, context) => {
1005
1001
  const retVal = (output || [])
1006
1002
  .filter((e) => e != null)
1007
1003
  .map((entry) => {
1008
1004
  if (entry === null) {
1009
1005
  return null;
1010
1006
  }
1011
- return deserializeAws_restJson1DeviceUnderTest(entry, context);
1007
+ return de_DeviceUnderTest(entry, context);
1012
1008
  });
1013
1009
  return retVal;
1014
1010
  };
1015
- const deserializeAws_restJson1GroupResult = (output, context) => {
1011
+ const de_GroupResult = (output, context) => {
1016
1012
  return {
1017
1013
  groupId: __expectString(output.groupId),
1018
1014
  groupName: __expectString(output.groupName),
1019
- tests: output.tests != null ? deserializeAws_restJson1TestCaseRuns(output.tests, context) : undefined,
1015
+ tests: output.tests != null ? de_TestCaseRuns(output.tests, context) : undefined,
1020
1016
  };
1021
1017
  };
1022
- const deserializeAws_restJson1GroupResultList = (output, context) => {
1018
+ const de_GroupResultList = (output, context) => {
1023
1019
  const retVal = (output || [])
1024
1020
  .filter((e) => e != null)
1025
1021
  .map((entry) => {
1026
1022
  if (entry === null) {
1027
1023
  return null;
1028
1024
  }
1029
- return deserializeAws_restJson1GroupResult(entry, context);
1025
+ return de_GroupResult(entry, context);
1030
1026
  });
1031
1027
  return retVal;
1032
1028
  };
1033
- const deserializeAws_restJson1SelectedTestList = (output, context) => {
1029
+ const de_SelectedTestList = (output, context) => {
1034
1030
  const retVal = (output || [])
1035
1031
  .filter((e) => e != null)
1036
1032
  .map((entry) => {
@@ -1041,10 +1037,10 @@ const deserializeAws_restJson1SelectedTestList = (output, context) => {
1041
1037
  });
1042
1038
  return retVal;
1043
1039
  };
1044
- const deserializeAws_restJson1SuiteDefinitionConfiguration = (output, context) => {
1040
+ const de_SuiteDefinitionConfiguration = (output, context) => {
1045
1041
  return {
1046
1042
  devicePermissionRoleArn: __expectString(output.devicePermissionRoleArn),
1047
- devices: output.devices != null ? deserializeAws_restJson1DeviceUnderTestList(output.devices, context) : undefined,
1043
+ devices: output.devices != null ? de_DeviceUnderTestList(output.devices, context) : undefined,
1048
1044
  intendedForQualification: __expectBoolean(output.intendedForQualification),
1049
1045
  isLongDurationTest: __expectBoolean(output.isLongDurationTest),
1050
1046
  protocol: __expectString(output.protocol),
@@ -1052,12 +1048,10 @@ const deserializeAws_restJson1SuiteDefinitionConfiguration = (output, context) =
1052
1048
  suiteDefinitionName: __expectString(output.suiteDefinitionName),
1053
1049
  };
1054
1050
  };
1055
- const deserializeAws_restJson1SuiteDefinitionInformation = (output, context) => {
1051
+ const de_SuiteDefinitionInformation = (output, context) => {
1056
1052
  return {
1057
1053
  createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
1058
- defaultDevices: output.defaultDevices != null
1059
- ? deserializeAws_restJson1DeviceUnderTestList(output.defaultDevices, context)
1060
- : undefined,
1054
+ defaultDevices: output.defaultDevices != null ? de_DeviceUnderTestList(output.defaultDevices, context) : undefined,
1061
1055
  intendedForQualification: __expectBoolean(output.intendedForQualification),
1062
1056
  isLongDurationTest: __expectBoolean(output.isLongDurationTest),
1063
1057
  protocol: __expectString(output.protocol),
@@ -1065,27 +1059,25 @@ const deserializeAws_restJson1SuiteDefinitionInformation = (output, context) =>
1065
1059
  suiteDefinitionName: __expectString(output.suiteDefinitionName),
1066
1060
  };
1067
1061
  };
1068
- const deserializeAws_restJson1SuiteDefinitionInformationList = (output, context) => {
1062
+ const de_SuiteDefinitionInformationList = (output, context) => {
1069
1063
  const retVal = (output || [])
1070
1064
  .filter((e) => e != null)
1071
1065
  .map((entry) => {
1072
1066
  if (entry === null) {
1073
1067
  return null;
1074
1068
  }
1075
- return deserializeAws_restJson1SuiteDefinitionInformation(entry, context);
1069
+ return de_SuiteDefinitionInformation(entry, context);
1076
1070
  });
1077
1071
  return retVal;
1078
1072
  };
1079
- const deserializeAws_restJson1SuiteRunConfiguration = (output, context) => {
1073
+ const de_SuiteRunConfiguration = (output, context) => {
1080
1074
  return {
1081
1075
  parallelRun: __expectBoolean(output.parallelRun),
1082
- primaryDevice: output.primaryDevice != null ? deserializeAws_restJson1DeviceUnderTest(output.primaryDevice, context) : undefined,
1083
- selectedTestList: output.selectedTestList != null
1084
- ? deserializeAws_restJson1SelectedTestList(output.selectedTestList, context)
1085
- : undefined,
1076
+ primaryDevice: output.primaryDevice != null ? de_DeviceUnderTest(output.primaryDevice, context) : undefined,
1077
+ selectedTestList: output.selectedTestList != null ? de_SelectedTestList(output.selectedTestList, context) : undefined,
1086
1078
  };
1087
1079
  };
1088
- const deserializeAws_restJson1SuiteRunInformation = (output, context) => {
1080
+ const de_SuiteRunInformation = (output, context) => {
1089
1081
  return {
1090
1082
  createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
1091
1083
  endAt: output.endAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.endAt))) : undefined,
@@ -1099,18 +1091,18 @@ const deserializeAws_restJson1SuiteRunInformation = (output, context) => {
1099
1091
  suiteRunId: __expectString(output.suiteRunId),
1100
1092
  };
1101
1093
  };
1102
- const deserializeAws_restJson1SuiteRunsList = (output, context) => {
1094
+ const de_SuiteRunsList = (output, context) => {
1103
1095
  const retVal = (output || [])
1104
1096
  .filter((e) => e != null)
1105
1097
  .map((entry) => {
1106
1098
  if (entry === null) {
1107
1099
  return null;
1108
1100
  }
1109
- return deserializeAws_restJson1SuiteRunInformation(entry, context);
1101
+ return de_SuiteRunInformation(entry, context);
1110
1102
  });
1111
1103
  return retVal;
1112
1104
  };
1113
- const deserializeAws_restJson1TagMap = (output, context) => {
1105
+ const de_TagMap = (output, context) => {
1114
1106
  return Object.entries(output).reduce((acc, [key, value]) => {
1115
1107
  if (value === null) {
1116
1108
  return acc;
@@ -1119,7 +1111,7 @@ const deserializeAws_restJson1TagMap = (output, context) => {
1119
1111
  return acc;
1120
1112
  }, {});
1121
1113
  };
1122
- const deserializeAws_restJson1TestCaseRun = (output, context) => {
1114
+ const de_TestCaseRun = (output, context) => {
1123
1115
  return {
1124
1116
  endTime: output.endTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.endTime))) : undefined,
1125
1117
  failure: __expectString(output.failure),
@@ -1129,24 +1121,22 @@ const deserializeAws_restJson1TestCaseRun = (output, context) => {
1129
1121
  testCaseDefinitionId: __expectString(output.testCaseDefinitionId),
1130
1122
  testCaseDefinitionName: __expectString(output.testCaseDefinitionName),
1131
1123
  testCaseRunId: __expectString(output.testCaseRunId),
1132
- testScenarios: output.testScenarios != null
1133
- ? deserializeAws_restJson1TestCaseScenariosList(output.testScenarios, context)
1134
- : undefined,
1124
+ testScenarios: output.testScenarios != null ? de_TestCaseScenariosList(output.testScenarios, context) : undefined,
1135
1125
  warnings: __expectString(output.warnings),
1136
1126
  };
1137
1127
  };
1138
- const deserializeAws_restJson1TestCaseRuns = (output, context) => {
1128
+ const de_TestCaseRuns = (output, context) => {
1139
1129
  const retVal = (output || [])
1140
1130
  .filter((e) => e != null)
1141
1131
  .map((entry) => {
1142
1132
  if (entry === null) {
1143
1133
  return null;
1144
1134
  }
1145
- return deserializeAws_restJson1TestCaseRun(entry, context);
1135
+ return de_TestCaseRun(entry, context);
1146
1136
  });
1147
1137
  return retVal;
1148
1138
  };
1149
- const deserializeAws_restJson1TestCaseScenario = (output, context) => {
1139
+ const de_TestCaseScenario = (output, context) => {
1150
1140
  return {
1151
1141
  failure: __expectString(output.failure),
1152
1142
  status: __expectString(output.status),
@@ -1155,20 +1145,20 @@ const deserializeAws_restJson1TestCaseScenario = (output, context) => {
1155
1145
  testCaseScenarioType: __expectString(output.testCaseScenarioType),
1156
1146
  };
1157
1147
  };
1158
- const deserializeAws_restJson1TestCaseScenariosList = (output, context) => {
1148
+ const de_TestCaseScenariosList = (output, context) => {
1159
1149
  const retVal = (output || [])
1160
1150
  .filter((e) => e != null)
1161
1151
  .map((entry) => {
1162
1152
  if (entry === null) {
1163
1153
  return null;
1164
1154
  }
1165
- return deserializeAws_restJson1TestCaseScenario(entry, context);
1155
+ return de_TestCaseScenario(entry, context);
1166
1156
  });
1167
1157
  return retVal;
1168
1158
  };
1169
- const deserializeAws_restJson1TestResult = (output, context) => {
1159
+ const de_TestResult = (output, context) => {
1170
1160
  return {
1171
- groups: output.groups != null ? deserializeAws_restJson1GroupResultList(output.groups, context) : undefined,
1161
+ groups: output.groups != null ? de_GroupResultList(output.groups, context) : undefined,
1172
1162
  };
1173
1163
  };
1174
1164
  const deserializeMetadata = (output) => ({