@aws-sdk/client-iot-wireless 3.41.0 → 3.46.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 (49) hide show
  1. package/CHANGELOG.md +48 -0
  2. package/README.md +11 -1
  3. package/dist-cjs/IoTWireless.js +60 -0
  4. package/dist-cjs/commands/DeleteQueuedMessagesCommand.js +36 -0
  5. package/dist-cjs/commands/GetNetworkAnalyzerConfigurationCommand.js +36 -0
  6. package/dist-cjs/commands/ListQueuedMessagesCommand.js +36 -0
  7. package/dist-cjs/commands/UpdateNetworkAnalyzerConfigurationCommand.js +36 -0
  8. package/dist-cjs/commands/index.js +4 -0
  9. package/dist-cjs/endpoints.js +48 -1
  10. package/dist-cjs/models/models_0.js +76 -11
  11. package/dist-cjs/pagination/ListQueuedMessagesPaginator.js +35 -0
  12. package/dist-cjs/pagination/index.js +1 -0
  13. package/dist-cjs/protocols/Aws_restJson1.js +545 -4
  14. package/dist-cjs/runtimeConfig.js +0 -2
  15. package/dist-es/IoTWireless.js +60 -0
  16. package/dist-es/commands/DeleteQueuedMessagesCommand.js +39 -0
  17. package/dist-es/commands/GetNetworkAnalyzerConfigurationCommand.js +39 -0
  18. package/dist-es/commands/ListQueuedMessagesCommand.js +39 -0
  19. package/dist-es/commands/UpdateNetworkAnalyzerConfigurationCommand.js +39 -0
  20. package/dist-es/commands/index.js +4 -0
  21. package/dist-es/endpoints.js +48 -1
  22. package/dist-es/models/models_0.js +49 -4
  23. package/dist-es/pagination/ListQueuedMessagesPaginator.js +74 -0
  24. package/dist-es/pagination/index.js +1 -0
  25. package/dist-es/protocols/Aws_restJson1.js +629 -32
  26. package/dist-es/runtimeConfig.js +0 -2
  27. package/dist-types/IoTWireless.d.ts +39 -1
  28. package/dist-types/IoTWirelessClient.d.ts +17 -3
  29. package/dist-types/commands/DeleteQueuedMessagesCommand.d.ts +35 -0
  30. package/dist-types/commands/GetNetworkAnalyzerConfigurationCommand.d.ts +35 -0
  31. package/dist-types/commands/ListQueuedMessagesCommand.d.ts +35 -0
  32. package/dist-types/commands/UpdateNetworkAnalyzerConfigurationCommand.d.ts +35 -0
  33. package/dist-types/commands/index.d.ts +4 -0
  34. package/dist-types/models/models_0.d.ts +205 -15
  35. package/dist-types/pagination/ListQueuedMessagesPaginator.d.ts +4 -0
  36. package/dist-types/pagination/index.d.ts +1 -0
  37. package/dist-types/protocols/Aws_restJson1.d.ts +12 -0
  38. package/dist-types/ts3.4/IoTWireless.d.ts +20 -0
  39. package/dist-types/ts3.4/IoTWirelessClient.d.ts +6 -2
  40. package/dist-types/ts3.4/commands/DeleteQueuedMessagesCommand.d.ts +17 -0
  41. package/dist-types/ts3.4/commands/GetNetworkAnalyzerConfigurationCommand.d.ts +17 -0
  42. package/dist-types/ts3.4/commands/ListQueuedMessagesCommand.d.ts +17 -0
  43. package/dist-types/ts3.4/commands/UpdateNetworkAnalyzerConfigurationCommand.d.ts +17 -0
  44. package/dist-types/ts3.4/commands/index.d.ts +4 -0
  45. package/dist-types/ts3.4/models/models_0.d.ts +125 -9
  46. package/dist-types/ts3.4/pagination/ListQueuedMessagesPaginator.d.ts +4 -0
  47. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  48. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
  49. package/package.json +36 -43
@@ -651,6 +651,39 @@ export var serializeAws_restJson1DeleteMulticastGroupCommand = function (input,
651
651
  }
652
652
  });
653
653
  }); };
654
+ export var serializeAws_restJson1DeleteQueuedMessagesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
655
+ var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
656
+ return __generator(this, function (_c) {
657
+ switch (_c.label) {
658
+ case 0: return [4, context.endpoint()];
659
+ case 1:
660
+ _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
661
+ headers = {};
662
+ resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/wireless-devices/{Id}/data";
663
+ if (input.Id !== undefined) {
664
+ labelValue = input.Id;
665
+ if (labelValue.length <= 0) {
666
+ throw new Error("Empty value provided for input HTTP label: Id.");
667
+ }
668
+ resolvedPath = resolvedPath.replace("{Id}", __extendedEncodeURIComponent(labelValue));
669
+ }
670
+ else {
671
+ throw new Error("No value provided for input HTTP label: Id.");
672
+ }
673
+ query = __assign(__assign({}, (input.MessageId !== undefined && { messageId: input.MessageId })), (input.WirelessDeviceType !== undefined && { WirelessDeviceType: input.WirelessDeviceType }));
674
+ return [2, new __HttpRequest({
675
+ protocol: protocol,
676
+ hostname: hostname,
677
+ port: port,
678
+ method: "DELETE",
679
+ headers: headers,
680
+ path: resolvedPath,
681
+ query: query,
682
+ body: body,
683
+ })];
684
+ }
685
+ });
686
+ }); };
654
687
  export var serializeAws_restJson1DeleteServiceProfileCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
655
688
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
656
689
  return __generator(this, function (_c) {
@@ -1237,6 +1270,38 @@ export var serializeAws_restJson1GetMulticastGroupSessionCommand = function (inp
1237
1270
  }
1238
1271
  });
1239
1272
  }); };
1273
+ export var serializeAws_restJson1GetNetworkAnalyzerConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
1274
+ var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
1275
+ return __generator(this, function (_c) {
1276
+ switch (_c.label) {
1277
+ case 0: return [4, context.endpoint()];
1278
+ case 1:
1279
+ _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1280
+ headers = {};
1281
+ resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1282
+ "/network-analyzer-configurations/{ConfigurationName}";
1283
+ if (input.ConfigurationName !== undefined) {
1284
+ labelValue = input.ConfigurationName;
1285
+ if (labelValue.length <= 0) {
1286
+ throw new Error("Empty value provided for input HTTP label: ConfigurationName.");
1287
+ }
1288
+ resolvedPath = resolvedPath.replace("{ConfigurationName}", __extendedEncodeURIComponent(labelValue));
1289
+ }
1290
+ else {
1291
+ throw new Error("No value provided for input HTTP label: ConfigurationName.");
1292
+ }
1293
+ return [2, new __HttpRequest({
1294
+ protocol: protocol,
1295
+ hostname: hostname,
1296
+ port: port,
1297
+ method: "GET",
1298
+ headers: headers,
1299
+ path: resolvedPath,
1300
+ body: body,
1301
+ })];
1302
+ }
1303
+ });
1304
+ }); };
1240
1305
  export var serializeAws_restJson1GetPartnerAccountCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
1241
1306
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
1242
1307
  return __generator(this, function (_c) {
@@ -1793,6 +1858,39 @@ export var serializeAws_restJson1ListPartnerAccountsCommand = function (input, c
1793
1858
  }
1794
1859
  });
1795
1860
  }); };
1861
+ export var serializeAws_restJson1ListQueuedMessagesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
1862
+ var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
1863
+ return __generator(this, function (_c) {
1864
+ switch (_c.label) {
1865
+ case 0: return [4, context.endpoint()];
1866
+ case 1:
1867
+ _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1868
+ headers = {};
1869
+ resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/wireless-devices/{Id}/data";
1870
+ if (input.Id !== undefined) {
1871
+ labelValue = input.Id;
1872
+ if (labelValue.length <= 0) {
1873
+ throw new Error("Empty value provided for input HTTP label: Id.");
1874
+ }
1875
+ resolvedPath = resolvedPath.replace("{Id}", __extendedEncodeURIComponent(labelValue));
1876
+ }
1877
+ else {
1878
+ throw new Error("No value provided for input HTTP label: Id.");
1879
+ }
1880
+ query = __assign(__assign(__assign({}, (input.NextToken !== undefined && { nextToken: input.NextToken })), (input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() })), (input.WirelessDeviceType !== undefined && { WirelessDeviceType: input.WirelessDeviceType }));
1881
+ return [2, new __HttpRequest({
1882
+ protocol: protocol,
1883
+ hostname: hostname,
1884
+ port: port,
1885
+ method: "GET",
1886
+ headers: headers,
1887
+ path: resolvedPath,
1888
+ query: query,
1889
+ body: body,
1890
+ })];
1891
+ }
1892
+ });
1893
+ }); };
1796
1894
  export var serializeAws_restJson1ListServiceProfilesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
1797
1895
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
1798
1896
  return __generator(this, function (_c) {
@@ -2434,6 +2532,54 @@ export var serializeAws_restJson1UpdateMulticastGroupCommand = function (input,
2434
2532
  }
2435
2533
  });
2436
2534
  }); };
2535
+ export var serializeAws_restJson1UpdateNetworkAnalyzerConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
2536
+ var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
2537
+ return __generator(this, function (_c) {
2538
+ switch (_c.label) {
2539
+ case 0: return [4, context.endpoint()];
2540
+ case 1:
2541
+ _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
2542
+ headers = {
2543
+ "content-type": "application/json",
2544
+ };
2545
+ resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2546
+ "/network-analyzer-configurations/{ConfigurationName}";
2547
+ if (input.ConfigurationName !== undefined) {
2548
+ labelValue = input.ConfigurationName;
2549
+ if (labelValue.length <= 0) {
2550
+ throw new Error("Empty value provided for input HTTP label: ConfigurationName.");
2551
+ }
2552
+ resolvedPath = resolvedPath.replace("{ConfigurationName}", __extendedEncodeURIComponent(labelValue));
2553
+ }
2554
+ else {
2555
+ throw new Error("No value provided for input HTTP label: ConfigurationName.");
2556
+ }
2557
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.TraceContent !== undefined &&
2558
+ input.TraceContent !== null && { TraceContent: serializeAws_restJson1TraceContent(input.TraceContent, context) })), (input.WirelessDevicesToAdd !== undefined &&
2559
+ input.WirelessDevicesToAdd !== null && {
2560
+ WirelessDevicesToAdd: serializeAws_restJson1WirelessDeviceList(input.WirelessDevicesToAdd, context),
2561
+ })), (input.WirelessDevicesToRemove !== undefined &&
2562
+ input.WirelessDevicesToRemove !== null && {
2563
+ WirelessDevicesToRemove: serializeAws_restJson1WirelessDeviceList(input.WirelessDevicesToRemove, context),
2564
+ })), (input.WirelessGatewaysToAdd !== undefined &&
2565
+ input.WirelessGatewaysToAdd !== null && {
2566
+ WirelessGatewaysToAdd: serializeAws_restJson1WirelessGatewayList(input.WirelessGatewaysToAdd, context),
2567
+ })), (input.WirelessGatewaysToRemove !== undefined &&
2568
+ input.WirelessGatewaysToRemove !== null && {
2569
+ WirelessGatewaysToRemove: serializeAws_restJson1WirelessGatewayList(input.WirelessGatewaysToRemove, context),
2570
+ })));
2571
+ return [2, new __HttpRequest({
2572
+ protocol: protocol,
2573
+ hostname: hostname,
2574
+ port: port,
2575
+ method: "PATCH",
2576
+ headers: headers,
2577
+ path: resolvedPath,
2578
+ body: body,
2579
+ })];
2580
+ }
2581
+ });
2582
+ }); };
2437
2583
  export var serializeAws_restJson1UpdatePartnerAccountCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
2438
2584
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
2439
2585
  return __generator(this, function (_c) {
@@ -4677,6 +4823,94 @@ var deserializeAws_restJson1DeleteMulticastGroupCommandError = function (output,
4677
4823
  }
4678
4824
  });
4679
4825
  }); };
4826
+ export var deserializeAws_restJson1DeleteQueuedMessagesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4827
+ var contents;
4828
+ return __generator(this, function (_a) {
4829
+ switch (_a.label) {
4830
+ case 0:
4831
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
4832
+ return [2, deserializeAws_restJson1DeleteQueuedMessagesCommandError(output, context)];
4833
+ }
4834
+ contents = {
4835
+ $metadata: deserializeMetadata(output),
4836
+ };
4837
+ return [4, collectBody(output.body, context)];
4838
+ case 1:
4839
+ _a.sent();
4840
+ return [2, Promise.resolve(contents)];
4841
+ }
4842
+ });
4843
+ }); };
4844
+ var deserializeAws_restJson1DeleteQueuedMessagesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4845
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
4846
+ var _h;
4847
+ return __generator(this, function (_j) {
4848
+ switch (_j.label) {
4849
+ case 0:
4850
+ _a = [__assign({}, output)];
4851
+ _h = {};
4852
+ return [4, parseBody(output.body, context)];
4853
+ case 1:
4854
+ parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
4855
+ errorCode = "UnknownError";
4856
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4857
+ _b = errorCode;
4858
+ switch (_b) {
4859
+ case "AccessDeniedException": return [3, 2];
4860
+ case "com.amazonaws.iotwireless#AccessDeniedException": return [3, 2];
4861
+ case "InternalServerException": return [3, 4];
4862
+ case "com.amazonaws.iotwireless#InternalServerException": return [3, 4];
4863
+ case "ResourceNotFoundException": return [3, 6];
4864
+ case "com.amazonaws.iotwireless#ResourceNotFoundException": return [3, 6];
4865
+ case "ThrottlingException": return [3, 8];
4866
+ case "com.amazonaws.iotwireless#ThrottlingException": return [3, 8];
4867
+ case "ValidationException": return [3, 10];
4868
+ case "com.amazonaws.iotwireless#ValidationException": return [3, 10];
4869
+ }
4870
+ return [3, 12];
4871
+ case 2:
4872
+ _c = [{}];
4873
+ return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
4874
+ case 3:
4875
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
4876
+ return [3, 13];
4877
+ case 4:
4878
+ _d = [{}];
4879
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
4880
+ case 5:
4881
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
4882
+ return [3, 13];
4883
+ case 6:
4884
+ _e = [{}];
4885
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
4886
+ case 7:
4887
+ response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
4888
+ return [3, 13];
4889
+ case 8:
4890
+ _f = [{}];
4891
+ return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
4892
+ case 9:
4893
+ response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
4894
+ return [3, 13];
4895
+ case 10:
4896
+ _g = [{}];
4897
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
4898
+ case 11:
4899
+ response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
4900
+ return [3, 13];
4901
+ case 12:
4902
+ parsedBody = parsedOutput.body;
4903
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
4904
+ response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
4905
+ _j.label = 13;
4906
+ case 13:
4907
+ message = response.message || response.Message || errorCode;
4908
+ response.message = message;
4909
+ delete response.Message;
4910
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
4911
+ }
4912
+ });
4913
+ }); };
4680
4914
  export var deserializeAws_restJson1DeleteServiceProfileCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4681
4915
  var contents;
4682
4916
  return __generator(this, function (_a) {
@@ -6417,76 +6651,178 @@ var deserializeAws_restJson1GetMulticastGroupSessionCommandError = function (out
6417
6651
  }
6418
6652
  });
6419
6653
  }); };
6420
- export var deserializeAws_restJson1GetPartnerAccountCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
6654
+ export var deserializeAws_restJson1GetNetworkAnalyzerConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
6421
6655
  var contents, data, _a, _b;
6422
6656
  return __generator(this, function (_c) {
6423
6657
  switch (_c.label) {
6424
6658
  case 0:
6425
6659
  if (output.statusCode !== 200 && output.statusCode >= 300) {
6426
- return [2, deserializeAws_restJson1GetPartnerAccountCommandError(output, context)];
6660
+ return [2, deserializeAws_restJson1GetNetworkAnalyzerConfigurationCommandError(output, context)];
6427
6661
  }
6428
6662
  contents = {
6429
6663
  $metadata: deserializeMetadata(output),
6430
- AccountLinked: undefined,
6431
- Sidewalk: undefined,
6664
+ TraceContent: undefined,
6665
+ WirelessDevices: undefined,
6666
+ WirelessGateways: undefined,
6432
6667
  };
6433
6668
  _a = __expectNonNull;
6434
6669
  _b = __expectObject;
6435
6670
  return [4, parseBody(output.body, context)];
6436
6671
  case 1:
6437
6672
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
6438
- if (data.AccountLinked !== undefined && data.AccountLinked !== null) {
6439
- contents.AccountLinked = __expectBoolean(data.AccountLinked);
6673
+ if (data.TraceContent !== undefined && data.TraceContent !== null) {
6674
+ contents.TraceContent = deserializeAws_restJson1TraceContent(data.TraceContent, context);
6440
6675
  }
6441
- if (data.Sidewalk !== undefined && data.Sidewalk !== null) {
6442
- contents.Sidewalk = deserializeAws_restJson1SidewalkAccountInfoWithFingerprint(data.Sidewalk, context);
6676
+ if (data.WirelessDevices !== undefined && data.WirelessDevices !== null) {
6677
+ contents.WirelessDevices = deserializeAws_restJson1WirelessDeviceList(data.WirelessDevices, context);
6678
+ }
6679
+ if (data.WirelessGateways !== undefined && data.WirelessGateways !== null) {
6680
+ contents.WirelessGateways = deserializeAws_restJson1WirelessGatewayList(data.WirelessGateways, context);
6443
6681
  }
6444
6682
  return [2, Promise.resolve(contents)];
6445
6683
  }
6446
6684
  });
6447
6685
  }); };
6448
- var deserializeAws_restJson1GetPartnerAccountCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
6449
- var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
6450
- var _g;
6451
- return __generator(this, function (_h) {
6452
- switch (_h.label) {
6686
+ var deserializeAws_restJson1GetNetworkAnalyzerConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
6687
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
6688
+ var _h;
6689
+ return __generator(this, function (_j) {
6690
+ switch (_j.label) {
6453
6691
  case 0:
6454
6692
  _a = [__assign({}, output)];
6455
- _g = {};
6693
+ _h = {};
6456
6694
  return [4, parseBody(output.body, context)];
6457
6695
  case 1:
6458
- parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
6696
+ parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
6459
6697
  errorCode = "UnknownError";
6460
6698
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
6461
6699
  _b = errorCode;
6462
6700
  switch (_b) {
6463
- case "InternalServerException": return [3, 2];
6464
- case "com.amazonaws.iotwireless#InternalServerException": return [3, 2];
6465
- case "ResourceNotFoundException": return [3, 4];
6466
- case "com.amazonaws.iotwireless#ResourceNotFoundException": return [3, 4];
6467
- case "ThrottlingException": return [3, 6];
6468
- case "com.amazonaws.iotwireless#ThrottlingException": return [3, 6];
6469
- case "ValidationException": return [3, 8];
6470
- case "com.amazonaws.iotwireless#ValidationException": return [3, 8];
6701
+ case "AccessDeniedException": return [3, 2];
6702
+ case "com.amazonaws.iotwireless#AccessDeniedException": return [3, 2];
6703
+ case "InternalServerException": return [3, 4];
6704
+ case "com.amazonaws.iotwireless#InternalServerException": return [3, 4];
6705
+ case "ResourceNotFoundException": return [3, 6];
6706
+ case "com.amazonaws.iotwireless#ResourceNotFoundException": return [3, 6];
6707
+ case "ThrottlingException": return [3, 8];
6708
+ case "com.amazonaws.iotwireless#ThrottlingException": return [3, 8];
6709
+ case "ValidationException": return [3, 10];
6710
+ case "com.amazonaws.iotwireless#ValidationException": return [3, 10];
6471
6711
  }
6472
- return [3, 10];
6712
+ return [3, 12];
6473
6713
  case 2:
6474
6714
  _c = [{}];
6475
- return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
6715
+ return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
6476
6716
  case 3:
6477
- response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
6478
- return [3, 11];
6717
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
6718
+ return [3, 13];
6479
6719
  case 4:
6480
6720
  _d = [{}];
6481
- return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
6721
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
6482
6722
  case 5:
6483
- response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
6484
- return [3, 11];
6723
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
6724
+ return [3, 13];
6485
6725
  case 6:
6486
6726
  _e = [{}];
6487
- return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
6727
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
6488
6728
  case 7:
6489
- response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
6729
+ response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
6730
+ return [3, 13];
6731
+ case 8:
6732
+ _f = [{}];
6733
+ return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
6734
+ case 9:
6735
+ response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
6736
+ return [3, 13];
6737
+ case 10:
6738
+ _g = [{}];
6739
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
6740
+ case 11:
6741
+ response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
6742
+ return [3, 13];
6743
+ case 12:
6744
+ parsedBody = parsedOutput.body;
6745
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
6746
+ response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
6747
+ _j.label = 13;
6748
+ case 13:
6749
+ message = response.message || response.Message || errorCode;
6750
+ response.message = message;
6751
+ delete response.Message;
6752
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
6753
+ }
6754
+ });
6755
+ }); };
6756
+ export var deserializeAws_restJson1GetPartnerAccountCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
6757
+ var contents, data, _a, _b;
6758
+ return __generator(this, function (_c) {
6759
+ switch (_c.label) {
6760
+ case 0:
6761
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
6762
+ return [2, deserializeAws_restJson1GetPartnerAccountCommandError(output, context)];
6763
+ }
6764
+ contents = {
6765
+ $metadata: deserializeMetadata(output),
6766
+ AccountLinked: undefined,
6767
+ Sidewalk: undefined,
6768
+ };
6769
+ _a = __expectNonNull;
6770
+ _b = __expectObject;
6771
+ return [4, parseBody(output.body, context)];
6772
+ case 1:
6773
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
6774
+ if (data.AccountLinked !== undefined && data.AccountLinked !== null) {
6775
+ contents.AccountLinked = __expectBoolean(data.AccountLinked);
6776
+ }
6777
+ if (data.Sidewalk !== undefined && data.Sidewalk !== null) {
6778
+ contents.Sidewalk = deserializeAws_restJson1SidewalkAccountInfoWithFingerprint(data.Sidewalk, context);
6779
+ }
6780
+ return [2, Promise.resolve(contents)];
6781
+ }
6782
+ });
6783
+ }); };
6784
+ var deserializeAws_restJson1GetPartnerAccountCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
6785
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
6786
+ var _g;
6787
+ return __generator(this, function (_h) {
6788
+ switch (_h.label) {
6789
+ case 0:
6790
+ _a = [__assign({}, output)];
6791
+ _g = {};
6792
+ return [4, parseBody(output.body, context)];
6793
+ case 1:
6794
+ parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
6795
+ errorCode = "UnknownError";
6796
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
6797
+ _b = errorCode;
6798
+ switch (_b) {
6799
+ case "InternalServerException": return [3, 2];
6800
+ case "com.amazonaws.iotwireless#InternalServerException": return [3, 2];
6801
+ case "ResourceNotFoundException": return [3, 4];
6802
+ case "com.amazonaws.iotwireless#ResourceNotFoundException": return [3, 4];
6803
+ case "ThrottlingException": return [3, 6];
6804
+ case "com.amazonaws.iotwireless#ThrottlingException": return [3, 6];
6805
+ case "ValidationException": return [3, 8];
6806
+ case "com.amazonaws.iotwireless#ValidationException": return [3, 8];
6807
+ }
6808
+ return [3, 10];
6809
+ case 2:
6810
+ _c = [{}];
6811
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
6812
+ case 3:
6813
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
6814
+ return [3, 11];
6815
+ case 4:
6816
+ _d = [{}];
6817
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
6818
+ case 5:
6819
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
6820
+ return [3, 11];
6821
+ case 6:
6822
+ _e = [{}];
6823
+ return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
6824
+ case 7:
6825
+ response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
6490
6826
  return [3, 11];
6491
6827
  case 8:
6492
6828
  _f = [{}];
@@ -8311,6 +8647,104 @@ var deserializeAws_restJson1ListPartnerAccountsCommandError = function (output,
8311
8647
  }
8312
8648
  });
8313
8649
  }); };
8650
+ export var deserializeAws_restJson1ListQueuedMessagesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
8651
+ var contents, data, _a, _b;
8652
+ return __generator(this, function (_c) {
8653
+ switch (_c.label) {
8654
+ case 0:
8655
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
8656
+ return [2, deserializeAws_restJson1ListQueuedMessagesCommandError(output, context)];
8657
+ }
8658
+ contents = {
8659
+ $metadata: deserializeMetadata(output),
8660
+ DownlinkQueueMessagesList: undefined,
8661
+ NextToken: undefined,
8662
+ };
8663
+ _a = __expectNonNull;
8664
+ _b = __expectObject;
8665
+ return [4, parseBody(output.body, context)];
8666
+ case 1:
8667
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
8668
+ if (data.DownlinkQueueMessagesList !== undefined && data.DownlinkQueueMessagesList !== null) {
8669
+ contents.DownlinkQueueMessagesList = deserializeAws_restJson1DownlinkQueueMessagesList(data.DownlinkQueueMessagesList, context);
8670
+ }
8671
+ if (data.NextToken !== undefined && data.NextToken !== null) {
8672
+ contents.NextToken = __expectString(data.NextToken);
8673
+ }
8674
+ return [2, Promise.resolve(contents)];
8675
+ }
8676
+ });
8677
+ }); };
8678
+ var deserializeAws_restJson1ListQueuedMessagesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
8679
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
8680
+ var _h;
8681
+ return __generator(this, function (_j) {
8682
+ switch (_j.label) {
8683
+ case 0:
8684
+ _a = [__assign({}, output)];
8685
+ _h = {};
8686
+ return [4, parseBody(output.body, context)];
8687
+ case 1:
8688
+ parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
8689
+ errorCode = "UnknownError";
8690
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
8691
+ _b = errorCode;
8692
+ switch (_b) {
8693
+ case "AccessDeniedException": return [3, 2];
8694
+ case "com.amazonaws.iotwireless#AccessDeniedException": return [3, 2];
8695
+ case "InternalServerException": return [3, 4];
8696
+ case "com.amazonaws.iotwireless#InternalServerException": return [3, 4];
8697
+ case "ResourceNotFoundException": return [3, 6];
8698
+ case "com.amazonaws.iotwireless#ResourceNotFoundException": return [3, 6];
8699
+ case "ThrottlingException": return [3, 8];
8700
+ case "com.amazonaws.iotwireless#ThrottlingException": return [3, 8];
8701
+ case "ValidationException": return [3, 10];
8702
+ case "com.amazonaws.iotwireless#ValidationException": return [3, 10];
8703
+ }
8704
+ return [3, 12];
8705
+ case 2:
8706
+ _c = [{}];
8707
+ return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
8708
+ case 3:
8709
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
8710
+ return [3, 13];
8711
+ case 4:
8712
+ _d = [{}];
8713
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
8714
+ case 5:
8715
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
8716
+ return [3, 13];
8717
+ case 6:
8718
+ _e = [{}];
8719
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
8720
+ case 7:
8721
+ response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
8722
+ return [3, 13];
8723
+ case 8:
8724
+ _f = [{}];
8725
+ return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
8726
+ case 9:
8727
+ response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
8728
+ return [3, 13];
8729
+ case 10:
8730
+ _g = [{}];
8731
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
8732
+ case 11:
8733
+ response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
8734
+ return [3, 13];
8735
+ case 12:
8736
+ parsedBody = parsedOutput.body;
8737
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
8738
+ response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
8739
+ _j.label = 13;
8740
+ case 13:
8741
+ message = response.message || response.Message || errorCode;
8742
+ response.message = message;
8743
+ delete response.Message;
8744
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
8745
+ }
8746
+ });
8747
+ }); };
8314
8748
  export var deserializeAws_restJson1ListServiceProfilesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
8315
8749
  var contents, data, _a, _b;
8316
8750
  return __generator(this, function (_c) {
@@ -10231,6 +10665,94 @@ var deserializeAws_restJson1UpdateMulticastGroupCommandError = function (output,
10231
10665
  }
10232
10666
  });
10233
10667
  }); };
10668
+ export var deserializeAws_restJson1UpdateNetworkAnalyzerConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
10669
+ var contents;
10670
+ return __generator(this, function (_a) {
10671
+ switch (_a.label) {
10672
+ case 0:
10673
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
10674
+ return [2, deserializeAws_restJson1UpdateNetworkAnalyzerConfigurationCommandError(output, context)];
10675
+ }
10676
+ contents = {
10677
+ $metadata: deserializeMetadata(output),
10678
+ };
10679
+ return [4, collectBody(output.body, context)];
10680
+ case 1:
10681
+ _a.sent();
10682
+ return [2, Promise.resolve(contents)];
10683
+ }
10684
+ });
10685
+ }); };
10686
+ var deserializeAws_restJson1UpdateNetworkAnalyzerConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
10687
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
10688
+ var _h;
10689
+ return __generator(this, function (_j) {
10690
+ switch (_j.label) {
10691
+ case 0:
10692
+ _a = [__assign({}, output)];
10693
+ _h = {};
10694
+ return [4, parseBody(output.body, context)];
10695
+ case 1:
10696
+ parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
10697
+ errorCode = "UnknownError";
10698
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
10699
+ _b = errorCode;
10700
+ switch (_b) {
10701
+ case "AccessDeniedException": return [3, 2];
10702
+ case "com.amazonaws.iotwireless#AccessDeniedException": return [3, 2];
10703
+ case "InternalServerException": return [3, 4];
10704
+ case "com.amazonaws.iotwireless#InternalServerException": return [3, 4];
10705
+ case "ResourceNotFoundException": return [3, 6];
10706
+ case "com.amazonaws.iotwireless#ResourceNotFoundException": return [3, 6];
10707
+ case "ThrottlingException": return [3, 8];
10708
+ case "com.amazonaws.iotwireless#ThrottlingException": return [3, 8];
10709
+ case "ValidationException": return [3, 10];
10710
+ case "com.amazonaws.iotwireless#ValidationException": return [3, 10];
10711
+ }
10712
+ return [3, 12];
10713
+ case 2:
10714
+ _c = [{}];
10715
+ return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
10716
+ case 3:
10717
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
10718
+ return [3, 13];
10719
+ case 4:
10720
+ _d = [{}];
10721
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
10722
+ case 5:
10723
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
10724
+ return [3, 13];
10725
+ case 6:
10726
+ _e = [{}];
10727
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
10728
+ case 7:
10729
+ response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
10730
+ return [3, 13];
10731
+ case 8:
10732
+ _f = [{}];
10733
+ return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
10734
+ case 9:
10735
+ response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
10736
+ return [3, 13];
10737
+ case 10:
10738
+ _g = [{}];
10739
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
10740
+ case 11:
10741
+ response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
10742
+ return [3, 13];
10743
+ case 12:
10744
+ parsedBody = parsedOutput.body;
10745
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
10746
+ response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
10747
+ _j.label = 13;
10748
+ case 13:
10749
+ message = response.message || response.Message || errorCode;
10750
+ response.message = message;
10751
+ delete response.Message;
10752
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
10753
+ }
10754
+ });
10755
+ }); };
10234
10756
  export var deserializeAws_restJson1UpdatePartnerAccountCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
10235
10757
  var contents;
10236
10758
  return __generator(this, function (_a) {
@@ -10910,6 +11432,10 @@ var serializeAws_restJson1TagList = function (input, context) {
10910
11432
  return serializeAws_restJson1Tag(entry, context);
10911
11433
  });
10912
11434
  };
11435
+ var serializeAws_restJson1TraceContent = function (input, context) {
11436
+ return __assign(__assign({}, (input.LogLevel !== undefined && input.LogLevel !== null && { LogLevel: input.LogLevel })), (input.WirelessDeviceFrameInfo !== undefined &&
11437
+ input.WirelessDeviceFrameInfo !== null && { WirelessDeviceFrameInfo: input.WirelessDeviceFrameInfo }));
11438
+ };
10913
11439
  var serializeAws_restJson1UpdateWirelessGatewayTaskCreate = function (input, context) {
10914
11440
  return __assign(__assign(__assign({}, (input.LoRaWAN !== undefined &&
10915
11441
  input.LoRaWAN !== null && {
@@ -10931,6 +11457,16 @@ var serializeAws_restJson1WirelessDeviceEventLogOptionList = function (input, co
10931
11457
  return serializeAws_restJson1WirelessDeviceEventLogOption(entry, context);
10932
11458
  });
10933
11459
  };
11460
+ var serializeAws_restJson1WirelessDeviceList = function (input, context) {
11461
+ return input
11462
+ .filter(function (e) { return e != null; })
11463
+ .map(function (entry) {
11464
+ if (entry === null) {
11465
+ return null;
11466
+ }
11467
+ return entry;
11468
+ });
11469
+ };
10934
11470
  var serializeAws_restJson1WirelessDeviceLogOption = function (input, context) {
10935
11471
  return __assign(__assign(__assign({}, (input.Events !== undefined &&
10936
11472
  input.Events !== null && {
@@ -10960,6 +11496,16 @@ var serializeAws_restJson1WirelessGatewayEventLogOptionList = function (input, c
10960
11496
  return serializeAws_restJson1WirelessGatewayEventLogOption(entry, context);
10961
11497
  });
10962
11498
  };
11499
+ var serializeAws_restJson1WirelessGatewayList = function (input, context) {
11500
+ return input
11501
+ .filter(function (e) { return e != null; })
11502
+ .map(function (entry) {
11503
+ if (entry === null) {
11504
+ return null;
11505
+ }
11506
+ return entry;
11507
+ });
11508
+ };
10963
11509
  var serializeAws_restJson1WirelessGatewayLogOption = function (input, context) {
10964
11510
  return __assign(__assign(__assign({}, (input.Events !== undefined &&
10965
11511
  input.Events !== null && {
@@ -11057,6 +11603,26 @@ var deserializeAws_restJson1DeviceRegistrationStateEventConfiguration = function
11057
11603
  : undefined,
11058
11604
  };
11059
11605
  };
11606
+ var deserializeAws_restJson1DownlinkQueueMessage = function (output, context) {
11607
+ return {
11608
+ LoRaWAN: output.LoRaWAN !== undefined && output.LoRaWAN !== null
11609
+ ? deserializeAws_restJson1LoRaWANSendDataToDevice(output.LoRaWAN, context)
11610
+ : undefined,
11611
+ MessageId: __expectString(output.MessageId),
11612
+ ReceivedAt: __expectString(output.ReceivedAt),
11613
+ TransmitMode: __expectInt32(output.TransmitMode),
11614
+ };
11615
+ };
11616
+ var deserializeAws_restJson1DownlinkQueueMessagesList = function (output, context) {
11617
+ return (output || [])
11618
+ .filter(function (e) { return e != null; })
11619
+ .map(function (entry) {
11620
+ if (entry === null) {
11621
+ return null;
11622
+ }
11623
+ return deserializeAws_restJson1DownlinkQueueMessage(entry, context);
11624
+ });
11625
+ };
11060
11626
  var deserializeAws_restJson1FactoryPresetFreqsList = function (output, context) {
11061
11627
  return (output || [])
11062
11628
  .filter(function (e) { return e != null; })
@@ -11270,6 +11836,11 @@ var deserializeAws_restJson1LoRaWANMulticastSession = function (output, context)
11270
11836
  SessionTimeout: __expectInt32(output.SessionTimeout),
11271
11837
  };
11272
11838
  };
11839
+ var deserializeAws_restJson1LoRaWANSendDataToDevice = function (output, context) {
11840
+ return {
11841
+ FPort: __expectInt32(output.FPort),
11842
+ };
11843
+ };
11273
11844
  var deserializeAws_restJson1LoRaWANUpdateGatewayTaskCreate = function (output, context) {
11274
11845
  return {
11275
11846
  CurrentVersion: output.CurrentVersion !== undefined && output.CurrentVersion !== null
@@ -11468,6 +12039,12 @@ var deserializeAws_restJson1TagList = function (output, context) {
11468
12039
  return deserializeAws_restJson1Tag(entry, context);
11469
12040
  });
11470
12041
  };
12042
+ var deserializeAws_restJson1TraceContent = function (output, context) {
12043
+ return {
12044
+ LogLevel: __expectString(output.LogLevel),
12045
+ WirelessDeviceFrameInfo: __expectString(output.WirelessDeviceFrameInfo),
12046
+ };
12047
+ };
11471
12048
  var deserializeAws_restJson1UpdateWirelessGatewayTaskCreate = function (output, context) {
11472
12049
  return {
11473
12050
  LoRaWAN: output.LoRaWAN !== undefined && output.LoRaWAN !== null
@@ -11502,6 +12079,16 @@ var deserializeAws_restJson1WirelessDeviceEventLogOptionList = function (output,
11502
12079
  return deserializeAws_restJson1WirelessDeviceEventLogOption(entry, context);
11503
12080
  });
11504
12081
  };
12082
+ var deserializeAws_restJson1WirelessDeviceList = function (output, context) {
12083
+ return (output || [])
12084
+ .filter(function (e) { return e != null; })
12085
+ .map(function (entry) {
12086
+ if (entry === null) {
12087
+ return null;
12088
+ }
12089
+ return __expectString(entry);
12090
+ });
12091
+ };
11505
12092
  var deserializeAws_restJson1WirelessDeviceLogOption = function (output, context) {
11506
12093
  return {
11507
12094
  Events: output.Events !== undefined && output.Events !== null
@@ -11566,6 +12153,16 @@ var deserializeAws_restJson1WirelessGatewayEventLogOptionList = function (output
11566
12153
  return deserializeAws_restJson1WirelessGatewayEventLogOption(entry, context);
11567
12154
  });
11568
12155
  };
12156
+ var deserializeAws_restJson1WirelessGatewayList = function (output, context) {
12157
+ return (output || [])
12158
+ .filter(function (e) { return e != null; })
12159
+ .map(function (entry) {
12160
+ if (entry === null) {
12161
+ return null;
12162
+ }
12163
+ return __expectString(entry);
12164
+ });
12165
+ };
11569
12166
  var deserializeAws_restJson1WirelessGatewayLogOption = function (output, context) {
11570
12167
  return {
11571
12168
  Events: output.Events !== undefined && output.Events !== null