@aws-sdk/client-iot-wireless 3.76.0 → 3.80.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 (74) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/dist-cjs/IoTWireless.js +90 -0
  3. package/dist-cjs/commands/CreateNetworkAnalyzerConfigurationCommand.js +36 -0
  4. package/dist-cjs/commands/DeleteNetworkAnalyzerConfigurationCommand.js +36 -0
  5. package/dist-cjs/commands/GetEventConfigurationByResourceTypesCommand.js +36 -0
  6. package/dist-cjs/commands/ListEventConfigurationsCommand.js +36 -0
  7. package/dist-cjs/commands/ListNetworkAnalyzerConfigurationsCommand.js +36 -0
  8. package/dist-cjs/commands/UpdateEventConfigurationByResourceTypesCommand.js +36 -0
  9. package/dist-cjs/commands/index.js +6 -0
  10. package/dist-cjs/models/models_0.js +216 -38
  11. package/dist-cjs/pagination/ListDestinationsPaginator.js +2 -1
  12. package/dist-cjs/pagination/ListDeviceProfilesPaginator.js +2 -1
  13. package/dist-cjs/pagination/ListFuotaTasksPaginator.js +2 -1
  14. package/dist-cjs/pagination/ListMulticastGroupsByFuotaTaskPaginator.js +2 -1
  15. package/dist-cjs/pagination/ListMulticastGroupsPaginator.js +2 -1
  16. package/dist-cjs/pagination/ListNetworkAnalyzerConfigurationsPaginator.js +36 -0
  17. package/dist-cjs/pagination/ListQueuedMessagesPaginator.js +2 -1
  18. package/dist-cjs/pagination/ListServiceProfilesPaginator.js +2 -1
  19. package/dist-cjs/pagination/ListWirelessDevicesPaginator.js +2 -1
  20. package/dist-cjs/pagination/ListWirelessGatewaysPaginator.js +2 -1
  21. package/dist-cjs/pagination/index.js +1 -0
  22. package/dist-cjs/protocols/Aws_restJson1.js +743 -27
  23. package/dist-es/IoTWireless.js +90 -0
  24. package/dist-es/commands/CreateNetworkAnalyzerConfigurationCommand.js +39 -0
  25. package/dist-es/commands/DeleteNetworkAnalyzerConfigurationCommand.js +39 -0
  26. package/dist-es/commands/GetEventConfigurationByResourceTypesCommand.js +39 -0
  27. package/dist-es/commands/ListEventConfigurationsCommand.js +39 -0
  28. package/dist-es/commands/ListNetworkAnalyzerConfigurationsCommand.js +39 -0
  29. package/dist-es/commands/UpdateEventConfigurationByResourceTypesCommand.js +39 -0
  30. package/dist-es/commands/index.js +6 -0
  31. package/dist-es/models/models_0.js +150 -28
  32. package/dist-es/pagination/ListDestinationsPaginator.js +3 -2
  33. package/dist-es/pagination/ListDeviceProfilesPaginator.js +3 -2
  34. package/dist-es/pagination/ListFuotaTasksPaginator.js +3 -2
  35. package/dist-es/pagination/ListMulticastGroupsByFuotaTaskPaginator.js +3 -2
  36. package/dist-es/pagination/ListMulticastGroupsPaginator.js +3 -2
  37. package/dist-es/pagination/ListNetworkAnalyzerConfigurationsPaginator.js +75 -0
  38. package/dist-es/pagination/ListQueuedMessagesPaginator.js +3 -2
  39. package/dist-es/pagination/ListServiceProfilesPaginator.js +3 -2
  40. package/dist-es/pagination/ListWirelessDevicesPaginator.js +3 -2
  41. package/dist-es/pagination/ListWirelessGatewaysPaginator.js +3 -2
  42. package/dist-es/pagination/index.js +1 -0
  43. package/dist-es/protocols/Aws_restJson1.js +847 -27
  44. package/dist-types/IoTWireless.d.ts +46 -4
  45. package/dist-types/IoTWirelessClient.d.ts +8 -2
  46. package/dist-types/commands/CreateNetworkAnalyzerConfigurationCommand.d.ts +35 -0
  47. package/dist-types/commands/DeleteNetworkAnalyzerConfigurationCommand.d.ts +35 -0
  48. package/dist-types/commands/DeleteQueuedMessagesCommand.d.ts +1 -1
  49. package/dist-types/commands/GetEventConfigurationByResourceTypesCommand.d.ts +35 -0
  50. package/dist-types/commands/GetNetworkAnalyzerConfigurationCommand.d.ts +1 -1
  51. package/dist-types/commands/ListEventConfigurationsCommand.d.ts +35 -0
  52. package/dist-types/commands/ListNetworkAnalyzerConfigurationsCommand.d.ts +35 -0
  53. package/dist-types/commands/ListQueuedMessagesCommand.d.ts +1 -1
  54. package/dist-types/commands/UpdateEventConfigurationByResourceTypesCommand.d.ts +35 -0
  55. package/dist-types/commands/UpdateNetworkAnalyzerConfigurationCommand.d.ts +1 -1
  56. package/dist-types/commands/index.d.ts +6 -0
  57. package/dist-types/models/models_0.d.ts +653 -79
  58. package/dist-types/pagination/ListNetworkAnalyzerConfigurationsPaginator.d.ts +4 -0
  59. package/dist-types/pagination/index.d.ts +1 -0
  60. package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
  61. package/dist-types/ts3.4/IoTWireless.d.ts +30 -0
  62. package/dist-types/ts3.4/IoTWirelessClient.d.ts +8 -2
  63. package/dist-types/ts3.4/commands/CreateNetworkAnalyzerConfigurationCommand.d.ts +17 -0
  64. package/dist-types/ts3.4/commands/DeleteNetworkAnalyzerConfigurationCommand.d.ts +17 -0
  65. package/dist-types/ts3.4/commands/GetEventConfigurationByResourceTypesCommand.d.ts +17 -0
  66. package/dist-types/ts3.4/commands/ListEventConfigurationsCommand.d.ts +17 -0
  67. package/dist-types/ts3.4/commands/ListNetworkAnalyzerConfigurationsCommand.d.ts +17 -0
  68. package/dist-types/ts3.4/commands/UpdateEventConfigurationByResourceTypesCommand.d.ts +17 -0
  69. package/dist-types/ts3.4/commands/index.d.ts +6 -0
  70. package/dist-types/ts3.4/models/models_0.d.ts +361 -36
  71. package/dist-types/ts3.4/pagination/ListNetworkAnalyzerConfigurationsPaginator.d.ts +4 -0
  72. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  73. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +18 -0
  74. package/package.json +25 -25
@@ -380,6 +380,39 @@ export var serializeAws_restJson1CreateMulticastGroupCommand = function (input,
380
380
  }
381
381
  });
382
382
  }); };
383
+ export var serializeAws_restJson1CreateNetworkAnalyzerConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
384
+ var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
385
+ var _c;
386
+ return __generator(this, function (_d) {
387
+ switch (_d.label) {
388
+ case 0: return [4, context.endpoint()];
389
+ case 1:
390
+ _a = _d.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
391
+ headers = {
392
+ "content-type": "application/json",
393
+ };
394
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/network-analyzer-configurations";
395
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Tags !== undefined &&
396
+ input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })), (input.TraceContent !== undefined &&
397
+ input.TraceContent !== null && { TraceContent: serializeAws_restJson1TraceContent(input.TraceContent, context) })), (input.WirelessDevices !== undefined &&
398
+ input.WirelessDevices !== null && {
399
+ WirelessDevices: serializeAws_restJson1WirelessDeviceList(input.WirelessDevices, context),
400
+ })), (input.WirelessGateways !== undefined &&
401
+ input.WirelessGateways !== null && {
402
+ WirelessGateways: serializeAws_restJson1WirelessGatewayList(input.WirelessGateways, context),
403
+ })));
404
+ return [2, new __HttpRequest({
405
+ protocol: protocol,
406
+ hostname: hostname,
407
+ port: port,
408
+ method: "POST",
409
+ headers: headers,
410
+ path: resolvedPath,
411
+ body: body,
412
+ })];
413
+ }
414
+ });
415
+ }); };
383
416
  export var serializeAws_restJson1CreateServiceProfileCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
384
417
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
385
418
  var _c;
@@ -653,6 +686,38 @@ export var serializeAws_restJson1DeleteMulticastGroupCommand = function (input,
653
686
  }
654
687
  });
655
688
  }); };
689
+ export var serializeAws_restJson1DeleteNetworkAnalyzerConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
690
+ var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
691
+ return __generator(this, function (_c) {
692
+ switch (_c.label) {
693
+ case 0: return [4, context.endpoint()];
694
+ case 1:
695
+ _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
696
+ headers = {};
697
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
698
+ "/network-analyzer-configurations/{ConfigurationName}";
699
+ if (input.ConfigurationName !== undefined) {
700
+ labelValue = input.ConfigurationName;
701
+ if (labelValue.length <= 0) {
702
+ throw new Error("Empty value provided for input HTTP label: ConfigurationName.");
703
+ }
704
+ resolvedPath = resolvedPath.replace("{ConfigurationName}", __extendedEncodeURIComponent(labelValue));
705
+ }
706
+ else {
707
+ throw new Error("No value provided for input HTTP label: ConfigurationName.");
708
+ }
709
+ return [2, new __HttpRequest({
710
+ protocol: protocol,
711
+ hostname: hostname,
712
+ port: port,
713
+ method: "DELETE",
714
+ headers: headers,
715
+ path: resolvedPath,
716
+ body: body,
717
+ })];
718
+ }
719
+ });
720
+ }); };
656
721
  export var serializeAws_restJson1DeleteQueuedMessagesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
657
722
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
658
723
  return __generator(this, function (_c) {
@@ -1155,6 +1220,30 @@ export var serializeAws_restJson1GetDeviceProfileCommand = function (input, cont
1155
1220
  }
1156
1221
  });
1157
1222
  }); };
1223
+ export var serializeAws_restJson1GetEventConfigurationByResourceTypesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
1224
+ var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
1225
+ return __generator(this, function (_c) {
1226
+ switch (_c.label) {
1227
+ case 0: return [4, context.endpoint()];
1228
+ case 1:
1229
+ _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1230
+ headers = {
1231
+ "content-type": "application/json",
1232
+ };
1233
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/event-configurations-resource-types";
1234
+ body = "";
1235
+ return [2, new __HttpRequest({
1236
+ protocol: protocol,
1237
+ hostname: hostname,
1238
+ port: port,
1239
+ method: "GET",
1240
+ headers: headers,
1241
+ path: resolvedPath,
1242
+ body: body,
1243
+ })];
1244
+ }
1245
+ });
1246
+ }); };
1158
1247
  export var serializeAws_restJson1GetFuotaTaskCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
1159
1248
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
1160
1249
  return __generator(this, function (_c) {
@@ -1758,6 +1847,29 @@ export var serializeAws_restJson1ListDeviceProfilesCommand = function (input, co
1758
1847
  }
1759
1848
  });
1760
1849
  }); };
1850
+ export var serializeAws_restJson1ListEventConfigurationsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
1851
+ var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
1852
+ return __generator(this, function (_c) {
1853
+ switch (_c.label) {
1854
+ case 0: return [4, context.endpoint()];
1855
+ case 1:
1856
+ _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1857
+ headers = {};
1858
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/event-configurations";
1859
+ query = __assign(__assign(__assign({}, (input.ResourceType !== undefined && { resourceType: input.ResourceType })), (input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() })), (input.NextToken !== undefined && { nextToken: input.NextToken }));
1860
+ return [2, new __HttpRequest({
1861
+ protocol: protocol,
1862
+ hostname: hostname,
1863
+ port: port,
1864
+ method: "GET",
1865
+ headers: headers,
1866
+ path: resolvedPath,
1867
+ query: query,
1868
+ body: body,
1869
+ })];
1870
+ }
1871
+ });
1872
+ }); };
1761
1873
  export var serializeAws_restJson1ListFuotaTasksCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
1762
1874
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
1763
1875
  return __generator(this, function (_c) {
@@ -1837,6 +1949,29 @@ export var serializeAws_restJson1ListMulticastGroupsByFuotaTaskCommand = functio
1837
1949
  }
1838
1950
  });
1839
1951
  }); };
1952
+ export var serializeAws_restJson1ListNetworkAnalyzerConfigurationsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
1953
+ var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
1954
+ return __generator(this, function (_c) {
1955
+ switch (_c.label) {
1956
+ case 0: return [4, context.endpoint()];
1957
+ case 1:
1958
+ _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1959
+ headers = {};
1960
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/network-analyzer-configurations";
1961
+ query = __assign(__assign({}, (input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() })), (input.NextToken !== undefined && { nextToken: input.NextToken }));
1962
+ return [2, new __HttpRequest({
1963
+ protocol: protocol,
1964
+ hostname: hostname,
1965
+ port: port,
1966
+ method: "GET",
1967
+ headers: headers,
1968
+ path: resolvedPath,
1969
+ query: query,
1970
+ body: body,
1971
+ })];
1972
+ }
1973
+ });
1974
+ }); };
1840
1975
  export var serializeAws_restJson1ListPartnerAccountsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
1841
1976
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
1842
1977
  return __generator(this, function (_c) {
@@ -2431,6 +2566,40 @@ export var serializeAws_restJson1UpdateDestinationCommand = function (input, con
2431
2566
  }
2432
2567
  });
2433
2568
  }); };
2569
+ export var serializeAws_restJson1UpdateEventConfigurationByResourceTypesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
2570
+ var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
2571
+ return __generator(this, function (_c) {
2572
+ switch (_c.label) {
2573
+ case 0: return [4, context.endpoint()];
2574
+ case 1:
2575
+ _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
2576
+ headers = {
2577
+ "content-type": "application/json",
2578
+ };
2579
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/event-configurations-resource-types";
2580
+ body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.ConnectionStatus !== undefined &&
2581
+ input.ConnectionStatus !== null && {
2582
+ ConnectionStatus: serializeAws_restJson1ConnectionStatusResourceTypeEventConfiguration(input.ConnectionStatus, context),
2583
+ })), (input.DeviceRegistrationState !== undefined &&
2584
+ input.DeviceRegistrationState !== null && {
2585
+ DeviceRegistrationState: serializeAws_restJson1DeviceRegistrationStateResourceTypeEventConfiguration(input.DeviceRegistrationState, context),
2586
+ })), (input.Join !== undefined &&
2587
+ input.Join !== null && { Join: serializeAws_restJson1JoinResourceTypeEventConfiguration(input.Join, context) })), (input.Proximity !== undefined &&
2588
+ input.Proximity !== null && {
2589
+ Proximity: serializeAws_restJson1ProximityResourceTypeEventConfiguration(input.Proximity, context),
2590
+ })));
2591
+ return [2, new __HttpRequest({
2592
+ protocol: protocol,
2593
+ hostname: hostname,
2594
+ port: port,
2595
+ method: "PATCH",
2596
+ headers: headers,
2597
+ path: resolvedPath,
2598
+ body: body,
2599
+ })];
2600
+ }
2601
+ });
2602
+ }); };
2434
2603
  export var serializeAws_restJson1UpdateFuotaTaskCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
2435
2604
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
2436
2605
  return __generator(this, function (_c) {
@@ -2556,7 +2725,7 @@ export var serializeAws_restJson1UpdateNetworkAnalyzerConfigurationCommand = fun
2556
2725
  else {
2557
2726
  throw new Error("No value provided for input HTTP label: ConfigurationName.");
2558
2727
  }
2559
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.TraceContent !== undefined &&
2728
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.TraceContent !== undefined &&
2560
2729
  input.TraceContent !== null && { TraceContent: serializeAws_restJson1TraceContent(input.TraceContent, context) })), (input.WirelessDevicesToAdd !== undefined &&
2561
2730
  input.WirelessDevicesToAdd !== null && {
2562
2731
  WirelessDevicesToAdd: serializeAws_restJson1WirelessDeviceList(input.WirelessDevicesToAdd, context),
@@ -2641,10 +2810,14 @@ export var serializeAws_restJson1UpdateResourceEventConfigurationCommand = funct
2641
2810
  throw new Error("No value provided for input HTTP label: Identifier.");
2642
2811
  }
2643
2812
  query = __assign(__assign({}, (input.IdentifierType !== undefined && { identifierType: input.IdentifierType })), (input.PartnerType !== undefined && { partnerType: input.PartnerType }));
2644
- body = JSON.stringify(__assign(__assign({}, (input.DeviceRegistrationState !== undefined &&
2813
+ body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.ConnectionStatus !== undefined &&
2814
+ input.ConnectionStatus !== null && {
2815
+ ConnectionStatus: serializeAws_restJson1ConnectionStatusEventConfiguration(input.ConnectionStatus, context),
2816
+ })), (input.DeviceRegistrationState !== undefined &&
2645
2817
  input.DeviceRegistrationState !== null && {
2646
2818
  DeviceRegistrationState: serializeAws_restJson1DeviceRegistrationStateEventConfiguration(input.DeviceRegistrationState, context),
2647
- })), (input.Proximity !== undefined &&
2819
+ })), (input.Join !== undefined &&
2820
+ input.Join !== null && { Join: serializeAws_restJson1JoinEventConfiguration(input.Join, context) })), (input.Proximity !== undefined &&
2648
2821
  input.Proximity !== null && {
2649
2822
  Proximity: serializeAws_restJson1ProximityEventConfiguration(input.Proximity, context),
2650
2823
  })));
@@ -3627,6 +3800,86 @@ var deserializeAws_restJson1CreateMulticastGroupCommandError = function (output,
3627
3800
  }
3628
3801
  });
3629
3802
  }); };
3803
+ export var deserializeAws_restJson1CreateNetworkAnalyzerConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3804
+ var contents, data, _a, _b;
3805
+ return __generator(this, function (_c) {
3806
+ switch (_c.label) {
3807
+ case 0:
3808
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
3809
+ return [2, deserializeAws_restJson1CreateNetworkAnalyzerConfigurationCommandError(output, context)];
3810
+ }
3811
+ contents = {
3812
+ $metadata: deserializeMetadata(output),
3813
+ Arn: undefined,
3814
+ Name: undefined,
3815
+ };
3816
+ _a = __expectNonNull;
3817
+ _b = __expectObject;
3818
+ return [4, parseBody(output.body, context)];
3819
+ case 1:
3820
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
3821
+ if (data.Arn !== undefined && data.Arn !== null) {
3822
+ contents.Arn = __expectString(data.Arn);
3823
+ }
3824
+ if (data.Name !== undefined && data.Name !== null) {
3825
+ contents.Name = __expectString(data.Name);
3826
+ }
3827
+ return [2, Promise.resolve(contents)];
3828
+ }
3829
+ });
3830
+ }); };
3831
+ var deserializeAws_restJson1CreateNetworkAnalyzerConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3832
+ var parsedOutput, _a, response, errorCode, _b, parsedBody;
3833
+ var _c;
3834
+ return __generator(this, function (_d) {
3835
+ switch (_d.label) {
3836
+ case 0:
3837
+ _a = [__assign({}, output)];
3838
+ _c = {};
3839
+ return [4, parseBody(output.body, context)];
3840
+ case 1:
3841
+ parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3842
+ errorCode = "UnknownError";
3843
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3844
+ _b = errorCode;
3845
+ switch (_b) {
3846
+ case "AccessDeniedException": return [3, 2];
3847
+ case "com.amazonaws.iotwireless#AccessDeniedException": return [3, 2];
3848
+ case "ConflictException": return [3, 4];
3849
+ case "com.amazonaws.iotwireless#ConflictException": return [3, 4];
3850
+ case "InternalServerException": return [3, 6];
3851
+ case "com.amazonaws.iotwireless#InternalServerException": return [3, 6];
3852
+ case "ResourceNotFoundException": return [3, 8];
3853
+ case "com.amazonaws.iotwireless#ResourceNotFoundException": return [3, 8];
3854
+ case "ThrottlingException": return [3, 10];
3855
+ case "com.amazonaws.iotwireless#ThrottlingException": return [3, 10];
3856
+ case "ValidationException": return [3, 12];
3857
+ case "com.amazonaws.iotwireless#ValidationException": return [3, 12];
3858
+ }
3859
+ return [3, 14];
3860
+ case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
3861
+ case 3: throw _d.sent();
3862
+ case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
3863
+ case 5: throw _d.sent();
3864
+ case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
3865
+ case 7: throw _d.sent();
3866
+ case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
3867
+ case 9: throw _d.sent();
3868
+ case 10: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
3869
+ case 11: throw _d.sent();
3870
+ case 12: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
3871
+ case 13: throw _d.sent();
3872
+ case 14:
3873
+ parsedBody = parsedOutput.body;
3874
+ response = new __BaseException({
3875
+ name: parsedBody.code || parsedBody.Code || errorCode,
3876
+ $fault: "client",
3877
+ $metadata: deserializeMetadata(output),
3878
+ });
3879
+ throw __decorateServiceException(response, parsedBody);
3880
+ }
3881
+ });
3882
+ }); };
3630
3883
  export var deserializeAws_restJson1CreateServiceProfileCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3631
3884
  var contents, data, _a, _b;
3632
3885
  return __generator(this, function (_c) {
@@ -4295,13 +4548,13 @@ var deserializeAws_restJson1DeleteMulticastGroupCommandError = function (output,
4295
4548
  }
4296
4549
  });
4297
4550
  }); };
4298
- export var deserializeAws_restJson1DeleteQueuedMessagesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4551
+ export var deserializeAws_restJson1DeleteNetworkAnalyzerConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4299
4552
  var contents;
4300
4553
  return __generator(this, function (_a) {
4301
4554
  switch (_a.label) {
4302
4555
  case 0:
4303
4556
  if (output.statusCode !== 204 && output.statusCode >= 300) {
4304
- return [2, deserializeAws_restJson1DeleteQueuedMessagesCommandError(output, context)];
4557
+ return [2, deserializeAws_restJson1DeleteNetworkAnalyzerConfigurationCommandError(output, context)];
4305
4558
  }
4306
4559
  contents = {
4307
4560
  $metadata: deserializeMetadata(output),
@@ -4313,7 +4566,7 @@ export var deserializeAws_restJson1DeleteQueuedMessagesCommand = function (outpu
4313
4566
  }
4314
4567
  });
4315
4568
  }); };
4316
- var deserializeAws_restJson1DeleteQueuedMessagesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4569
+ var deserializeAws_restJson1DeleteNetworkAnalyzerConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4317
4570
  var parsedOutput, _a, response, errorCode, _b, parsedBody;
4318
4571
  var _c;
4319
4572
  return __generator(this, function (_d) {
@@ -4330,27 +4583,31 @@ var deserializeAws_restJson1DeleteQueuedMessagesCommandError = function (output,
4330
4583
  switch (_b) {
4331
4584
  case "AccessDeniedException": return [3, 2];
4332
4585
  case "com.amazonaws.iotwireless#AccessDeniedException": return [3, 2];
4333
- case "InternalServerException": return [3, 4];
4334
- case "com.amazonaws.iotwireless#InternalServerException": return [3, 4];
4335
- case "ResourceNotFoundException": return [3, 6];
4336
- case "com.amazonaws.iotwireless#ResourceNotFoundException": return [3, 6];
4337
- case "ThrottlingException": return [3, 8];
4338
- case "com.amazonaws.iotwireless#ThrottlingException": return [3, 8];
4339
- case "ValidationException": return [3, 10];
4340
- case "com.amazonaws.iotwireless#ValidationException": return [3, 10];
4586
+ case "ConflictException": return [3, 4];
4587
+ case "com.amazonaws.iotwireless#ConflictException": return [3, 4];
4588
+ case "InternalServerException": return [3, 6];
4589
+ case "com.amazonaws.iotwireless#InternalServerException": return [3, 6];
4590
+ case "ResourceNotFoundException": return [3, 8];
4591
+ case "com.amazonaws.iotwireless#ResourceNotFoundException": return [3, 8];
4592
+ case "ThrottlingException": return [3, 10];
4593
+ case "com.amazonaws.iotwireless#ThrottlingException": return [3, 10];
4594
+ case "ValidationException": return [3, 12];
4595
+ case "com.amazonaws.iotwireless#ValidationException": return [3, 12];
4341
4596
  }
4342
- return [3, 12];
4597
+ return [3, 14];
4343
4598
  case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
4344
4599
  case 3: throw _d.sent();
4345
- case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
4600
+ case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
4346
4601
  case 5: throw _d.sent();
4347
- case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
4602
+ case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
4348
4603
  case 7: throw _d.sent();
4349
- case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
4604
+ case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
4350
4605
  case 9: throw _d.sent();
4351
- case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
4606
+ case 10: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
4352
4607
  case 11: throw _d.sent();
4353
- case 12:
4608
+ case 12: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
4609
+ case 13: throw _d.sent();
4610
+ case 14:
4354
4611
  parsedBody = parsedOutput.body;
4355
4612
  response = new __BaseException({
4356
4613
  name: parsedBody.code || parsedBody.Code || errorCode,
@@ -4361,13 +4618,79 @@ var deserializeAws_restJson1DeleteQueuedMessagesCommandError = function (output,
4361
4618
  }
4362
4619
  });
4363
4620
  }); };
4364
- export var deserializeAws_restJson1DeleteServiceProfileCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4621
+ export var deserializeAws_restJson1DeleteQueuedMessagesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4365
4622
  var contents;
4366
4623
  return __generator(this, function (_a) {
4367
4624
  switch (_a.label) {
4368
4625
  case 0:
4369
4626
  if (output.statusCode !== 204 && output.statusCode >= 300) {
4370
- return [2, deserializeAws_restJson1DeleteServiceProfileCommandError(output, context)];
4627
+ return [2, deserializeAws_restJson1DeleteQueuedMessagesCommandError(output, context)];
4628
+ }
4629
+ contents = {
4630
+ $metadata: deserializeMetadata(output),
4631
+ };
4632
+ return [4, collectBody(output.body, context)];
4633
+ case 1:
4634
+ _a.sent();
4635
+ return [2, Promise.resolve(contents)];
4636
+ }
4637
+ });
4638
+ }); };
4639
+ var deserializeAws_restJson1DeleteQueuedMessagesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4640
+ var parsedOutput, _a, response, errorCode, _b, parsedBody;
4641
+ var _c;
4642
+ return __generator(this, function (_d) {
4643
+ switch (_d.label) {
4644
+ case 0:
4645
+ _a = [__assign({}, output)];
4646
+ _c = {};
4647
+ return [4, parseBody(output.body, context)];
4648
+ case 1:
4649
+ parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
4650
+ errorCode = "UnknownError";
4651
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4652
+ _b = errorCode;
4653
+ switch (_b) {
4654
+ case "AccessDeniedException": return [3, 2];
4655
+ case "com.amazonaws.iotwireless#AccessDeniedException": return [3, 2];
4656
+ case "InternalServerException": return [3, 4];
4657
+ case "com.amazonaws.iotwireless#InternalServerException": return [3, 4];
4658
+ case "ResourceNotFoundException": return [3, 6];
4659
+ case "com.amazonaws.iotwireless#ResourceNotFoundException": return [3, 6];
4660
+ case "ThrottlingException": return [3, 8];
4661
+ case "com.amazonaws.iotwireless#ThrottlingException": return [3, 8];
4662
+ case "ValidationException": return [3, 10];
4663
+ case "com.amazonaws.iotwireless#ValidationException": return [3, 10];
4664
+ }
4665
+ return [3, 12];
4666
+ case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
4667
+ case 3: throw _d.sent();
4668
+ case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
4669
+ case 5: throw _d.sent();
4670
+ case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
4671
+ case 7: throw _d.sent();
4672
+ case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
4673
+ case 9: throw _d.sent();
4674
+ case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
4675
+ case 11: throw _d.sent();
4676
+ case 12:
4677
+ parsedBody = parsedOutput.body;
4678
+ response = new __BaseException({
4679
+ name: parsedBody.code || parsedBody.Code || errorCode,
4680
+ $fault: "client",
4681
+ $metadata: deserializeMetadata(output),
4682
+ });
4683
+ throw __decorateServiceException(response, parsedBody);
4684
+ }
4685
+ });
4686
+ }); };
4687
+ export var deserializeAws_restJson1DeleteServiceProfileCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4688
+ var contents;
4689
+ return __generator(this, function (_a) {
4690
+ switch (_a.label) {
4691
+ case 0:
4692
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
4693
+ return [2, deserializeAws_restJson1DeleteServiceProfileCommandError(output, context)];
4371
4694
  }
4372
4695
  contents = {
4373
4696
  $metadata: deserializeMetadata(output),
@@ -5341,6 +5664,82 @@ var deserializeAws_restJson1GetDeviceProfileCommandError = function (output, con
5341
5664
  }
5342
5665
  });
5343
5666
  }); };
5667
+ export var deserializeAws_restJson1GetEventConfigurationByResourceTypesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
5668
+ var contents, data, _a, _b;
5669
+ return __generator(this, function (_c) {
5670
+ switch (_c.label) {
5671
+ case 0:
5672
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
5673
+ return [2, deserializeAws_restJson1GetEventConfigurationByResourceTypesCommandError(output, context)];
5674
+ }
5675
+ contents = {
5676
+ $metadata: deserializeMetadata(output),
5677
+ ConnectionStatus: undefined,
5678
+ DeviceRegistrationState: undefined,
5679
+ Join: undefined,
5680
+ Proximity: undefined,
5681
+ };
5682
+ _a = __expectNonNull;
5683
+ _b = __expectObject;
5684
+ return [4, parseBody(output.body, context)];
5685
+ case 1:
5686
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
5687
+ if (data.ConnectionStatus !== undefined && data.ConnectionStatus !== null) {
5688
+ contents.ConnectionStatus = deserializeAws_restJson1ConnectionStatusResourceTypeEventConfiguration(data.ConnectionStatus, context);
5689
+ }
5690
+ if (data.DeviceRegistrationState !== undefined && data.DeviceRegistrationState !== null) {
5691
+ contents.DeviceRegistrationState = deserializeAws_restJson1DeviceRegistrationStateResourceTypeEventConfiguration(data.DeviceRegistrationState, context);
5692
+ }
5693
+ if (data.Join !== undefined && data.Join !== null) {
5694
+ contents.Join = deserializeAws_restJson1JoinResourceTypeEventConfiguration(data.Join, context);
5695
+ }
5696
+ if (data.Proximity !== undefined && data.Proximity !== null) {
5697
+ contents.Proximity = deserializeAws_restJson1ProximityResourceTypeEventConfiguration(data.Proximity, context);
5698
+ }
5699
+ return [2, Promise.resolve(contents)];
5700
+ }
5701
+ });
5702
+ }); };
5703
+ var deserializeAws_restJson1GetEventConfigurationByResourceTypesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
5704
+ var parsedOutput, _a, response, errorCode, _b, parsedBody;
5705
+ var _c;
5706
+ return __generator(this, function (_d) {
5707
+ switch (_d.label) {
5708
+ case 0:
5709
+ _a = [__assign({}, output)];
5710
+ _c = {};
5711
+ return [4, parseBody(output.body, context)];
5712
+ case 1:
5713
+ parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
5714
+ errorCode = "UnknownError";
5715
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5716
+ _b = errorCode;
5717
+ switch (_b) {
5718
+ case "AccessDeniedException": return [3, 2];
5719
+ case "com.amazonaws.iotwireless#AccessDeniedException": return [3, 2];
5720
+ case "InternalServerException": return [3, 4];
5721
+ case "com.amazonaws.iotwireless#InternalServerException": return [3, 4];
5722
+ case "ThrottlingException": return [3, 6];
5723
+ case "com.amazonaws.iotwireless#ThrottlingException": return [3, 6];
5724
+ }
5725
+ return [3, 8];
5726
+ case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
5727
+ case 3: throw _d.sent();
5728
+ case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
5729
+ case 5: throw _d.sent();
5730
+ case 6: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
5731
+ case 7: throw _d.sent();
5732
+ case 8:
5733
+ parsedBody = parsedOutput.body;
5734
+ response = new __BaseException({
5735
+ name: parsedBody.code || parsedBody.Code || errorCode,
5736
+ $fault: "client",
5737
+ $metadata: deserializeMetadata(output),
5738
+ });
5739
+ throw __decorateServiceException(response, parsedBody);
5740
+ }
5741
+ });
5742
+ }); };
5344
5743
  export var deserializeAws_restJson1GetFuotaTaskCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
5345
5744
  var contents, data, _a, _b;
5346
5745
  return __generator(this, function (_c) {
@@ -5703,6 +6102,9 @@ export var deserializeAws_restJson1GetNetworkAnalyzerConfigurationCommand = func
5703
6102
  }
5704
6103
  contents = {
5705
6104
  $metadata: deserializeMetadata(output),
6105
+ Arn: undefined,
6106
+ Description: undefined,
6107
+ Name: undefined,
5706
6108
  TraceContent: undefined,
5707
6109
  WirelessDevices: undefined,
5708
6110
  WirelessGateways: undefined,
@@ -5712,6 +6114,15 @@ export var deserializeAws_restJson1GetNetworkAnalyzerConfigurationCommand = func
5712
6114
  return [4, parseBody(output.body, context)];
5713
6115
  case 1:
5714
6116
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
6117
+ if (data.Arn !== undefined && data.Arn !== null) {
6118
+ contents.Arn = __expectString(data.Arn);
6119
+ }
6120
+ if (data.Description !== undefined && data.Description !== null) {
6121
+ contents.Description = __expectString(data.Description);
6122
+ }
6123
+ if (data.Name !== undefined && data.Name !== null) {
6124
+ contents.Name = __expectString(data.Name);
6125
+ }
5715
6126
  if (data.TraceContent !== undefined && data.TraceContent !== null) {
5716
6127
  contents.TraceContent = deserializeAws_restJson1TraceContent(data.TraceContent, context);
5717
6128
  }
@@ -5855,7 +6266,9 @@ export var deserializeAws_restJson1GetResourceEventConfigurationCommand = functi
5855
6266
  }
5856
6267
  contents = {
5857
6268
  $metadata: deserializeMetadata(output),
6269
+ ConnectionStatus: undefined,
5858
6270
  DeviceRegistrationState: undefined,
6271
+ Join: undefined,
5859
6272
  Proximity: undefined,
5860
6273
  };
5861
6274
  _a = __expectNonNull;
@@ -5863,9 +6276,15 @@ export var deserializeAws_restJson1GetResourceEventConfigurationCommand = functi
5863
6276
  return [4, parseBody(output.body, context)];
5864
6277
  case 1:
5865
6278
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
6279
+ if (data.ConnectionStatus !== undefined && data.ConnectionStatus !== null) {
6280
+ contents.ConnectionStatus = deserializeAws_restJson1ConnectionStatusEventConfiguration(data.ConnectionStatus, context);
6281
+ }
5866
6282
  if (data.DeviceRegistrationState !== undefined && data.DeviceRegistrationState !== null) {
5867
6283
  contents.DeviceRegistrationState = deserializeAws_restJson1DeviceRegistrationStateEventConfiguration(data.DeviceRegistrationState, context);
5868
6284
  }
6285
+ if (data.Join !== undefined && data.Join !== null) {
6286
+ contents.Join = deserializeAws_restJson1JoinEventConfiguration(data.Join, context);
6287
+ }
5869
6288
  if (data.Proximity !== undefined && data.Proximity !== null) {
5870
6289
  contents.Proximity = deserializeAws_restJson1ProximityEventConfiguration(data.Proximity, context);
5871
6290
  }
@@ -6985,6 +7404,78 @@ var deserializeAws_restJson1ListDeviceProfilesCommandError = function (output, c
6985
7404
  }
6986
7405
  });
6987
7406
  }); };
7407
+ export var deserializeAws_restJson1ListEventConfigurationsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
7408
+ var contents, data, _a, _b;
7409
+ return __generator(this, function (_c) {
7410
+ switch (_c.label) {
7411
+ case 0:
7412
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
7413
+ return [2, deserializeAws_restJson1ListEventConfigurationsCommandError(output, context)];
7414
+ }
7415
+ contents = {
7416
+ $metadata: deserializeMetadata(output),
7417
+ EventConfigurationsList: undefined,
7418
+ NextToken: undefined,
7419
+ };
7420
+ _a = __expectNonNull;
7421
+ _b = __expectObject;
7422
+ return [4, parseBody(output.body, context)];
7423
+ case 1:
7424
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
7425
+ if (data.EventConfigurationsList !== undefined && data.EventConfigurationsList !== null) {
7426
+ contents.EventConfigurationsList = deserializeAws_restJson1EventConfigurationsList(data.EventConfigurationsList, context);
7427
+ }
7428
+ if (data.NextToken !== undefined && data.NextToken !== null) {
7429
+ contents.NextToken = __expectString(data.NextToken);
7430
+ }
7431
+ return [2, Promise.resolve(contents)];
7432
+ }
7433
+ });
7434
+ }); };
7435
+ var deserializeAws_restJson1ListEventConfigurationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
7436
+ var parsedOutput, _a, response, errorCode, _b, parsedBody;
7437
+ var _c;
7438
+ return __generator(this, function (_d) {
7439
+ switch (_d.label) {
7440
+ case 0:
7441
+ _a = [__assign({}, output)];
7442
+ _c = {};
7443
+ return [4, parseBody(output.body, context)];
7444
+ case 1:
7445
+ parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
7446
+ errorCode = "UnknownError";
7447
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
7448
+ _b = errorCode;
7449
+ switch (_b) {
7450
+ case "AccessDeniedException": return [3, 2];
7451
+ case "com.amazonaws.iotwireless#AccessDeniedException": return [3, 2];
7452
+ case "InternalServerException": return [3, 4];
7453
+ case "com.amazonaws.iotwireless#InternalServerException": return [3, 4];
7454
+ case "ThrottlingException": return [3, 6];
7455
+ case "com.amazonaws.iotwireless#ThrottlingException": return [3, 6];
7456
+ case "ValidationException": return [3, 8];
7457
+ case "com.amazonaws.iotwireless#ValidationException": return [3, 8];
7458
+ }
7459
+ return [3, 10];
7460
+ case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
7461
+ case 3: throw _d.sent();
7462
+ case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
7463
+ case 5: throw _d.sent();
7464
+ case 6: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
7465
+ case 7: throw _d.sent();
7466
+ case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
7467
+ case 9: throw _d.sent();
7468
+ case 10:
7469
+ parsedBody = parsedOutput.body;
7470
+ response = new __BaseException({
7471
+ name: parsedBody.code || parsedBody.Code || errorCode,
7472
+ $fault: "client",
7473
+ $metadata: deserializeMetadata(output),
7474
+ });
7475
+ throw __decorateServiceException(response, parsedBody);
7476
+ }
7477
+ });
7478
+ }); };
6988
7479
  export var deserializeAws_restJson1ListFuotaTasksCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
6989
7480
  var contents, data, _a, _b;
6990
7481
  return __generator(this, function (_c) {
@@ -7205,6 +7696,78 @@ var deserializeAws_restJson1ListMulticastGroupsByFuotaTaskCommandError = functio
7205
7696
  }
7206
7697
  });
7207
7698
  }); };
7699
+ export var deserializeAws_restJson1ListNetworkAnalyzerConfigurationsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
7700
+ var contents, data, _a, _b;
7701
+ return __generator(this, function (_c) {
7702
+ switch (_c.label) {
7703
+ case 0:
7704
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
7705
+ return [2, deserializeAws_restJson1ListNetworkAnalyzerConfigurationsCommandError(output, context)];
7706
+ }
7707
+ contents = {
7708
+ $metadata: deserializeMetadata(output),
7709
+ NetworkAnalyzerConfigurationList: undefined,
7710
+ NextToken: undefined,
7711
+ };
7712
+ _a = __expectNonNull;
7713
+ _b = __expectObject;
7714
+ return [4, parseBody(output.body, context)];
7715
+ case 1:
7716
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
7717
+ if (data.NetworkAnalyzerConfigurationList !== undefined && data.NetworkAnalyzerConfigurationList !== null) {
7718
+ contents.NetworkAnalyzerConfigurationList = deserializeAws_restJson1NetworkAnalyzerConfigurationList(data.NetworkAnalyzerConfigurationList, context);
7719
+ }
7720
+ if (data.NextToken !== undefined && data.NextToken !== null) {
7721
+ contents.NextToken = __expectString(data.NextToken);
7722
+ }
7723
+ return [2, Promise.resolve(contents)];
7724
+ }
7725
+ });
7726
+ }); };
7727
+ var deserializeAws_restJson1ListNetworkAnalyzerConfigurationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
7728
+ var parsedOutput, _a, response, errorCode, _b, parsedBody;
7729
+ var _c;
7730
+ return __generator(this, function (_d) {
7731
+ switch (_d.label) {
7732
+ case 0:
7733
+ _a = [__assign({}, output)];
7734
+ _c = {};
7735
+ return [4, parseBody(output.body, context)];
7736
+ case 1:
7737
+ parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
7738
+ errorCode = "UnknownError";
7739
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
7740
+ _b = errorCode;
7741
+ switch (_b) {
7742
+ case "AccessDeniedException": return [3, 2];
7743
+ case "com.amazonaws.iotwireless#AccessDeniedException": return [3, 2];
7744
+ case "InternalServerException": return [3, 4];
7745
+ case "com.amazonaws.iotwireless#InternalServerException": return [3, 4];
7746
+ case "ThrottlingException": return [3, 6];
7747
+ case "com.amazonaws.iotwireless#ThrottlingException": return [3, 6];
7748
+ case "ValidationException": return [3, 8];
7749
+ case "com.amazonaws.iotwireless#ValidationException": return [3, 8];
7750
+ }
7751
+ return [3, 10];
7752
+ case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
7753
+ case 3: throw _d.sent();
7754
+ case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
7755
+ case 5: throw _d.sent();
7756
+ case 6: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
7757
+ case 7: throw _d.sent();
7758
+ case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
7759
+ case 9: throw _d.sent();
7760
+ case 10:
7761
+ parsedBody = parsedOutput.body;
7762
+ response = new __BaseException({
7763
+ name: parsedBody.code || parsedBody.Code || errorCode,
7764
+ $fault: "client",
7765
+ $metadata: deserializeMetadata(output),
7766
+ });
7767
+ throw __decorateServiceException(response, parsedBody);
7768
+ }
7769
+ });
7770
+ }); };
7208
7771
  export var deserializeAws_restJson1ListPartnerAccountsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
7209
7772
  var contents, data, _a, _b;
7210
7773
  return __generator(this, function (_c) {
@@ -8597,6 +9160,68 @@ var deserializeAws_restJson1UpdateDestinationCommandError = function (output, co
8597
9160
  }
8598
9161
  });
8599
9162
  }); };
9163
+ export var deserializeAws_restJson1UpdateEventConfigurationByResourceTypesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
9164
+ var contents;
9165
+ return __generator(this, function (_a) {
9166
+ switch (_a.label) {
9167
+ case 0:
9168
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
9169
+ return [2, deserializeAws_restJson1UpdateEventConfigurationByResourceTypesCommandError(output, context)];
9170
+ }
9171
+ contents = {
9172
+ $metadata: deserializeMetadata(output),
9173
+ };
9174
+ return [4, collectBody(output.body, context)];
9175
+ case 1:
9176
+ _a.sent();
9177
+ return [2, Promise.resolve(contents)];
9178
+ }
9179
+ });
9180
+ }); };
9181
+ var deserializeAws_restJson1UpdateEventConfigurationByResourceTypesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
9182
+ var parsedOutput, _a, response, errorCode, _b, parsedBody;
9183
+ var _c;
9184
+ return __generator(this, function (_d) {
9185
+ switch (_d.label) {
9186
+ case 0:
9187
+ _a = [__assign({}, output)];
9188
+ _c = {};
9189
+ return [4, parseBody(output.body, context)];
9190
+ case 1:
9191
+ parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
9192
+ errorCode = "UnknownError";
9193
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
9194
+ _b = errorCode;
9195
+ switch (_b) {
9196
+ case "AccessDeniedException": return [3, 2];
9197
+ case "com.amazonaws.iotwireless#AccessDeniedException": return [3, 2];
9198
+ case "InternalServerException": return [3, 4];
9199
+ case "com.amazonaws.iotwireless#InternalServerException": return [3, 4];
9200
+ case "ThrottlingException": return [3, 6];
9201
+ case "com.amazonaws.iotwireless#ThrottlingException": return [3, 6];
9202
+ case "ValidationException": return [3, 8];
9203
+ case "com.amazonaws.iotwireless#ValidationException": return [3, 8];
9204
+ }
9205
+ return [3, 10];
9206
+ case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
9207
+ case 3: throw _d.sent();
9208
+ case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
9209
+ case 5: throw _d.sent();
9210
+ case 6: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
9211
+ case 7: throw _d.sent();
9212
+ case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
9213
+ case 9: throw _d.sent();
9214
+ case 10:
9215
+ parsedBody = parsedOutput.body;
9216
+ response = new __BaseException({
9217
+ name: parsedBody.code || parsedBody.Code || errorCode,
9218
+ $fault: "client",
9219
+ $metadata: deserializeMetadata(output),
9220
+ });
9221
+ throw __decorateServiceException(response, parsedBody);
9222
+ }
9223
+ });
9224
+ }); };
8600
9225
  export var deserializeAws_restJson1UpdateFuotaTaskCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
8601
9226
  var contents;
8602
9227
  return __generator(this, function (_a) {
@@ -9237,21 +9862,41 @@ var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput
9237
9862
  });
9238
9863
  }); };
9239
9864
  var serializeAws_restJson1AbpV1_0_x = function (input, context) {
9240
- return __assign(__assign({}, (input.DevAddr !== undefined && input.DevAddr !== null && { DevAddr: input.DevAddr })), (input.SessionKeys !== undefined &&
9865
+ return __assign(__assign(__assign({}, (input.DevAddr !== undefined && input.DevAddr !== null && { DevAddr: input.DevAddr })), (input.FCntStart !== undefined && input.FCntStart !== null && { FCntStart: input.FCntStart })), (input.SessionKeys !== undefined &&
9241
9866
  input.SessionKeys !== null && {
9242
9867
  SessionKeys: serializeAws_restJson1SessionKeysAbpV1_0_x(input.SessionKeys, context),
9243
9868
  }));
9244
9869
  };
9245
9870
  var serializeAws_restJson1AbpV1_1 = function (input, context) {
9246
- return __assign(__assign({}, (input.DevAddr !== undefined && input.DevAddr !== null && { DevAddr: input.DevAddr })), (input.SessionKeys !== undefined &&
9871
+ return __assign(__assign(__assign({}, (input.DevAddr !== undefined && input.DevAddr !== null && { DevAddr: input.DevAddr })), (input.FCntStart !== undefined && input.FCntStart !== null && { FCntStart: input.FCntStart })), (input.SessionKeys !== undefined &&
9247
9872
  input.SessionKeys !== null && {
9248
9873
  SessionKeys: serializeAws_restJson1SessionKeysAbpV1_1(input.SessionKeys, context),
9249
9874
  }));
9250
9875
  };
9876
+ var serializeAws_restJson1ConnectionStatusEventConfiguration = function (input, context) {
9877
+ return __assign(__assign({}, (input.LoRaWAN !== undefined &&
9878
+ input.LoRaWAN !== null && {
9879
+ LoRaWAN: serializeAws_restJson1LoRaWANConnectionStatusEventNotificationConfigurations(input.LoRaWAN, context),
9880
+ })), (input.WirelessGatewayIdEventTopic !== undefined &&
9881
+ input.WirelessGatewayIdEventTopic !== null && { WirelessGatewayIdEventTopic: input.WirelessGatewayIdEventTopic }));
9882
+ };
9883
+ var serializeAws_restJson1ConnectionStatusResourceTypeEventConfiguration = function (input, context) {
9884
+ return __assign({}, (input.LoRaWAN !== undefined &&
9885
+ input.LoRaWAN !== null && {
9886
+ LoRaWAN: serializeAws_restJson1LoRaWANConnectionStatusResourceTypeEventConfiguration(input.LoRaWAN, context),
9887
+ }));
9888
+ };
9251
9889
  var serializeAws_restJson1DeviceRegistrationStateEventConfiguration = function (input, context) {
9252
- return __assign({}, (input.Sidewalk !== undefined &&
9890
+ return __assign(__assign({}, (input.Sidewalk !== undefined &&
9253
9891
  input.Sidewalk !== null && {
9254
9892
  Sidewalk: serializeAws_restJson1SidewalkEventNotificationConfigurations(input.Sidewalk, context),
9893
+ })), (input.WirelessDeviceIdEventTopic !== undefined &&
9894
+ input.WirelessDeviceIdEventTopic !== null && { WirelessDeviceIdEventTopic: input.WirelessDeviceIdEventTopic }));
9895
+ };
9896
+ var serializeAws_restJson1DeviceRegistrationStateResourceTypeEventConfiguration = function (input, context) {
9897
+ return __assign({}, (input.Sidewalk !== undefined &&
9898
+ input.Sidewalk !== null && {
9899
+ Sidewalk: serializeAws_restJson1SidewalkResourceTypeEventConfiguration(input.Sidewalk, context),
9255
9900
  }));
9256
9901
  };
9257
9902
  var serializeAws_restJson1FactoryPresetFreqsList = function (input, context) {
@@ -9287,6 +9932,27 @@ var serializeAws_restJson1JoinEuiRange = function (input, context) {
9287
9932
  return entry;
9288
9933
  });
9289
9934
  };
9935
+ var serializeAws_restJson1JoinEventConfiguration = function (input, context) {
9936
+ return __assign(__assign({}, (input.LoRaWAN !== undefined &&
9937
+ input.LoRaWAN !== null && {
9938
+ LoRaWAN: serializeAws_restJson1LoRaWANJoinEventNotificationConfigurations(input.LoRaWAN, context),
9939
+ })), (input.WirelessDeviceIdEventTopic !== undefined &&
9940
+ input.WirelessDeviceIdEventTopic !== null && { WirelessDeviceIdEventTopic: input.WirelessDeviceIdEventTopic }));
9941
+ };
9942
+ var serializeAws_restJson1JoinResourceTypeEventConfiguration = function (input, context) {
9943
+ return __assign({}, (input.LoRaWAN !== undefined &&
9944
+ input.LoRaWAN !== null && {
9945
+ LoRaWAN: serializeAws_restJson1LoRaWANJoinResourceTypeEventConfiguration(input.LoRaWAN, context),
9946
+ }));
9947
+ };
9948
+ var serializeAws_restJson1LoRaWANConnectionStatusEventNotificationConfigurations = function (input, context) {
9949
+ return __assign({}, (input.GatewayEuiEventTopic !== undefined &&
9950
+ input.GatewayEuiEventTopic !== null && { GatewayEuiEventTopic: input.GatewayEuiEventTopic }));
9951
+ };
9952
+ var serializeAws_restJson1LoRaWANConnectionStatusResourceTypeEventConfiguration = function (input, context) {
9953
+ return __assign({}, (input.WirelessGatewayEventTopic !== undefined &&
9954
+ input.WirelessGatewayEventTopic !== null && { WirelessGatewayEventTopic: input.WirelessGatewayEventTopic }));
9955
+ };
9290
9956
  var serializeAws_restJson1LoRaWANDevice = function (input, context) {
9291
9957
  return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AbpV1_0_x !== undefined &&
9292
9958
  input.AbpV1_0_x !== null && { AbpV1_0_x: serializeAws_restJson1AbpV1_0_x(input.AbpV1_0_x, context) })), (input.AbpV1_1 !== undefined &&
@@ -9323,6 +9989,14 @@ var serializeAws_restJson1LoRaWANGatewayVersion = function (input, context) {
9323
9989
  return __assign(__assign(__assign({}, (input.Model !== undefined && input.Model !== null && { Model: input.Model })), (input.PackageVersion !== undefined &&
9324
9990
  input.PackageVersion !== null && { PackageVersion: input.PackageVersion })), (input.Station !== undefined && input.Station !== null && { Station: input.Station }));
9325
9991
  };
9992
+ var serializeAws_restJson1LoRaWANJoinEventNotificationConfigurations = function (input, context) {
9993
+ return __assign({}, (input.DevEuiEventTopic !== undefined &&
9994
+ input.DevEuiEventTopic !== null && { DevEuiEventTopic: input.DevEuiEventTopic }));
9995
+ };
9996
+ var serializeAws_restJson1LoRaWANJoinResourceTypeEventConfiguration = function (input, context) {
9997
+ return __assign({}, (input.WirelessDeviceEventTopic !== undefined &&
9998
+ input.WirelessDeviceEventTopic !== null && { WirelessDeviceEventTopic: input.WirelessDeviceEventTopic }));
9999
+ };
9326
10000
  var serializeAws_restJson1LoRaWANMulticast = function (input, context) {
9327
10001
  return __assign(__assign({}, (input.DlClass !== undefined && input.DlClass !== null && { DlClass: input.DlClass })), (input.RfRegion !== undefined && input.RfRegion !== null && { RfRegion: input.RfRegion }));
9328
10002
  };
@@ -9347,7 +10021,9 @@ var serializeAws_restJson1LoRaWANStartFuotaTask = function (input, context) {
9347
10021
  input.StartTime !== null && { StartTime: input.StartTime.toISOString().split(".")[0] + "Z" }));
9348
10022
  };
9349
10023
  var serializeAws_restJson1LoRaWANUpdateDevice = function (input, context) {
9350
- return __assign(__assign({}, (input.DeviceProfileId !== undefined &&
10024
+ return __assign(__assign(__assign(__assign({}, (input.AbpV1_0_x !== undefined &&
10025
+ input.AbpV1_0_x !== null && { AbpV1_0_x: serializeAws_restJson1UpdateAbpV1_0_x(input.AbpV1_0_x, context) })), (input.AbpV1_1 !== undefined &&
10026
+ input.AbpV1_1 !== null && { AbpV1_1: serializeAws_restJson1UpdateAbpV1_1(input.AbpV1_1, context) })), (input.DeviceProfileId !== undefined &&
9351
10027
  input.DeviceProfileId !== null && { DeviceProfileId: input.DeviceProfileId })), (input.ServiceProfileId !== undefined &&
9352
10028
  input.ServiceProfileId !== null && { ServiceProfileId: input.ServiceProfileId }));
9353
10029
  };
@@ -9382,9 +10058,16 @@ var serializeAws_restJson1OtaaV1_1 = function (input, context) {
9382
10058
  return __assign(__assign(__assign({}, (input.AppKey !== undefined && input.AppKey !== null && { AppKey: input.AppKey })), (input.JoinEui !== undefined && input.JoinEui !== null && { JoinEui: input.JoinEui })), (input.NwkKey !== undefined && input.NwkKey !== null && { NwkKey: input.NwkKey }));
9383
10059
  };
9384
10060
  var serializeAws_restJson1ProximityEventConfiguration = function (input, context) {
9385
- return __assign({}, (input.Sidewalk !== undefined &&
10061
+ return __assign(__assign({}, (input.Sidewalk !== undefined &&
9386
10062
  input.Sidewalk !== null && {
9387
10063
  Sidewalk: serializeAws_restJson1SidewalkEventNotificationConfigurations(input.Sidewalk, context),
10064
+ })), (input.WirelessDeviceIdEventTopic !== undefined &&
10065
+ input.WirelessDeviceIdEventTopic !== null && { WirelessDeviceIdEventTopic: input.WirelessDeviceIdEventTopic }));
10066
+ };
10067
+ var serializeAws_restJson1ProximityResourceTypeEventConfiguration = function (input, context) {
10068
+ return __assign({}, (input.Sidewalk !== undefined &&
10069
+ input.Sidewalk !== null && {
10070
+ Sidewalk: serializeAws_restJson1SidewalkResourceTypeEventConfiguration(input.Sidewalk, context),
9388
10071
  }));
9389
10072
  };
9390
10073
  var serializeAws_restJson1SessionKeysAbpV1_0_x = function (input, context) {
@@ -9401,6 +10084,10 @@ var serializeAws_restJson1SidewalkEventNotificationConfigurations = function (in
9401
10084
  return __assign({}, (input.AmazonIdEventTopic !== undefined &&
9402
10085
  input.AmazonIdEventTopic !== null && { AmazonIdEventTopic: input.AmazonIdEventTopic }));
9403
10086
  };
10087
+ var serializeAws_restJson1SidewalkResourceTypeEventConfiguration = function (input, context) {
10088
+ return __assign({}, (input.WirelessDeviceEventTopic !== undefined &&
10089
+ input.WirelessDeviceEventTopic !== null && { WirelessDeviceEventTopic: input.WirelessDeviceEventTopic }));
10090
+ };
9404
10091
  var serializeAws_restJson1SidewalkSendDataToDevice = function (input, context) {
9405
10092
  return __assign(__assign({}, (input.MessageType !== undefined && input.MessageType !== null && { MessageType: input.MessageType })), (input.Seq !== undefined && input.Seq !== null && { Seq: input.Seq }));
9406
10093
  };
@@ -9435,6 +10122,12 @@ var serializeAws_restJson1TraceContent = function (input, context) {
9435
10122
  return __assign(__assign({}, (input.LogLevel !== undefined && input.LogLevel !== null && { LogLevel: input.LogLevel })), (input.WirelessDeviceFrameInfo !== undefined &&
9436
10123
  input.WirelessDeviceFrameInfo !== null && { WirelessDeviceFrameInfo: input.WirelessDeviceFrameInfo }));
9437
10124
  };
10125
+ var serializeAws_restJson1UpdateAbpV1_0_x = function (input, context) {
10126
+ return __assign({}, (input.FCntStart !== undefined && input.FCntStart !== null && { FCntStart: input.FCntStart }));
10127
+ };
10128
+ var serializeAws_restJson1UpdateAbpV1_1 = function (input, context) {
10129
+ return __assign({}, (input.FCntStart !== undefined && input.FCntStart !== null && { FCntStart: input.FCntStart }));
10130
+ };
9438
10131
  var serializeAws_restJson1UpdateWirelessGatewayTaskCreate = function (input, context) {
9439
10132
  return __assign(__assign(__assign({}, (input.LoRaWAN !== undefined &&
9440
10133
  input.LoRaWAN !== null && {
@@ -9529,6 +10222,7 @@ var serializeAws_restJson1WirelessMetadata = function (input, context) {
9529
10222
  var deserializeAws_restJson1AbpV1_0_x = function (output, context) {
9530
10223
  return {
9531
10224
  DevAddr: __expectString(output.DevAddr),
10225
+ FCntStart: __expectInt32(output.FCntStart),
9532
10226
  SessionKeys: output.SessionKeys !== undefined && output.SessionKeys !== null
9533
10227
  ? deserializeAws_restJson1SessionKeysAbpV1_0_x(output.SessionKeys, context)
9534
10228
  : undefined,
@@ -9537,6 +10231,7 @@ var deserializeAws_restJson1AbpV1_0_x = function (output, context) {
9537
10231
  var deserializeAws_restJson1AbpV1_1 = function (output, context) {
9538
10232
  return {
9539
10233
  DevAddr: __expectString(output.DevAddr),
10234
+ FCntStart: __expectInt32(output.FCntStart),
9540
10235
  SessionKeys: output.SessionKeys !== undefined && output.SessionKeys !== null
9541
10236
  ? deserializeAws_restJson1SessionKeysAbpV1_1(output.SessionKeys, context)
9542
10237
  : undefined,
@@ -9548,6 +10243,21 @@ var deserializeAws_restJson1CertificateList = function (output, context) {
9548
10243
  Value: __expectString(output.Value),
9549
10244
  };
9550
10245
  };
10246
+ var deserializeAws_restJson1ConnectionStatusEventConfiguration = function (output, context) {
10247
+ return {
10248
+ LoRaWAN: output.LoRaWAN !== undefined && output.LoRaWAN !== null
10249
+ ? deserializeAws_restJson1LoRaWANConnectionStatusEventNotificationConfigurations(output.LoRaWAN, context)
10250
+ : undefined,
10251
+ WirelessGatewayIdEventTopic: __expectString(output.WirelessGatewayIdEventTopic),
10252
+ };
10253
+ };
10254
+ var deserializeAws_restJson1ConnectionStatusResourceTypeEventConfiguration = function (output, context) {
10255
+ return {
10256
+ LoRaWAN: output.LoRaWAN !== undefined && output.LoRaWAN !== null
10257
+ ? deserializeAws_restJson1LoRaWANConnectionStatusResourceTypeEventConfiguration(output.LoRaWAN, context)
10258
+ : undefined,
10259
+ };
10260
+ };
9551
10261
  var deserializeAws_restJson1DestinationList = function (output, context) {
9552
10262
  var retVal = (output || [])
9553
10263
  .filter(function (e) { return e != null; })
@@ -9603,6 +10313,14 @@ var deserializeAws_restJson1DeviceRegistrationStateEventConfiguration = function
9603
10313
  Sidewalk: output.Sidewalk !== undefined && output.Sidewalk !== null
9604
10314
  ? deserializeAws_restJson1SidewalkEventNotificationConfigurations(output.Sidewalk, context)
9605
10315
  : undefined,
10316
+ WirelessDeviceIdEventTopic: __expectString(output.WirelessDeviceIdEventTopic),
10317
+ };
10318
+ };
10319
+ var deserializeAws_restJson1DeviceRegistrationStateResourceTypeEventConfiguration = function (output, context) {
10320
+ return {
10321
+ Sidewalk: output.Sidewalk !== undefined && output.Sidewalk !== null
10322
+ ? deserializeAws_restJson1SidewalkResourceTypeEventConfiguration(output.Sidewalk, context)
10323
+ : undefined,
9606
10324
  };
9607
10325
  };
9608
10326
  var deserializeAws_restJson1DownlinkQueueMessage = function (output, context) {
@@ -9626,6 +10344,43 @@ var deserializeAws_restJson1DownlinkQueueMessagesList = function (output, contex
9626
10344
  });
9627
10345
  return retVal;
9628
10346
  };
10347
+ var deserializeAws_restJson1EventConfigurationItem = function (output, context) {
10348
+ return {
10349
+ Events: output.Events !== undefined && output.Events !== null
10350
+ ? deserializeAws_restJson1EventNotificationItemConfigurations(output.Events, context)
10351
+ : undefined,
10352
+ Identifier: __expectString(output.Identifier),
10353
+ IdentifierType: __expectString(output.IdentifierType),
10354
+ PartnerType: __expectString(output.PartnerType),
10355
+ };
10356
+ };
10357
+ var deserializeAws_restJson1EventConfigurationsList = function (output, context) {
10358
+ var retVal = (output || [])
10359
+ .filter(function (e) { return e != null; })
10360
+ .map(function (entry) {
10361
+ if (entry === null) {
10362
+ return null;
10363
+ }
10364
+ return deserializeAws_restJson1EventConfigurationItem(entry, context);
10365
+ });
10366
+ return retVal;
10367
+ };
10368
+ var deserializeAws_restJson1EventNotificationItemConfigurations = function (output, context) {
10369
+ return {
10370
+ ConnectionStatus: output.ConnectionStatus !== undefined && output.ConnectionStatus !== null
10371
+ ? deserializeAws_restJson1ConnectionStatusEventConfiguration(output.ConnectionStatus, context)
10372
+ : undefined,
10373
+ DeviceRegistrationState: output.DeviceRegistrationState !== undefined && output.DeviceRegistrationState !== null
10374
+ ? deserializeAws_restJson1DeviceRegistrationStateEventConfiguration(output.DeviceRegistrationState, context)
10375
+ : undefined,
10376
+ Join: output.Join !== undefined && output.Join !== null
10377
+ ? deserializeAws_restJson1JoinEventConfiguration(output.Join, context)
10378
+ : undefined,
10379
+ Proximity: output.Proximity !== undefined && output.Proximity !== null
10380
+ ? deserializeAws_restJson1ProximityEventConfiguration(output.Proximity, context)
10381
+ : undefined,
10382
+ };
10383
+ };
9629
10384
  var deserializeAws_restJson1FactoryPresetFreqsList = function (output, context) {
9630
10385
  var retVal = (output || [])
9631
10386
  .filter(function (e) { return e != null; })
@@ -9684,6 +10439,31 @@ var deserializeAws_restJson1JoinEuiRange = function (output, context) {
9684
10439
  });
9685
10440
  return retVal;
9686
10441
  };
10442
+ var deserializeAws_restJson1JoinEventConfiguration = function (output, context) {
10443
+ return {
10444
+ LoRaWAN: output.LoRaWAN !== undefined && output.LoRaWAN !== null
10445
+ ? deserializeAws_restJson1LoRaWANJoinEventNotificationConfigurations(output.LoRaWAN, context)
10446
+ : undefined,
10447
+ WirelessDeviceIdEventTopic: __expectString(output.WirelessDeviceIdEventTopic),
10448
+ };
10449
+ };
10450
+ var deserializeAws_restJson1JoinResourceTypeEventConfiguration = function (output, context) {
10451
+ return {
10452
+ LoRaWAN: output.LoRaWAN !== undefined && output.LoRaWAN !== null
10453
+ ? deserializeAws_restJson1LoRaWANJoinResourceTypeEventConfiguration(output.LoRaWAN, context)
10454
+ : undefined,
10455
+ };
10456
+ };
10457
+ var deserializeAws_restJson1LoRaWANConnectionStatusEventNotificationConfigurations = function (output, context) {
10458
+ return {
10459
+ GatewayEuiEventTopic: __expectString(output.GatewayEuiEventTopic),
10460
+ };
10461
+ };
10462
+ var deserializeAws_restJson1LoRaWANConnectionStatusResourceTypeEventConfiguration = function (output, context) {
10463
+ return {
10464
+ WirelessGatewayEventTopic: __expectString(output.WirelessGatewayEventTopic),
10465
+ };
10466
+ };
9687
10467
  var deserializeAws_restJson1LoRaWANDevice = function (output, context) {
9688
10468
  return {
9689
10469
  AbpV1_0_x: output.AbpV1_0_x !== undefined && output.AbpV1_0_x !== null
@@ -9821,6 +10601,16 @@ var deserializeAws_restJson1LoRaWANGetServiceProfileInfo = function (output, con
9821
10601
  UlRatePolicy: __expectString(output.UlRatePolicy),
9822
10602
  };
9823
10603
  };
10604
+ var deserializeAws_restJson1LoRaWANJoinEventNotificationConfigurations = function (output, context) {
10605
+ return {
10606
+ DevEuiEventTopic: __expectString(output.DevEuiEventTopic),
10607
+ };
10608
+ };
10609
+ var deserializeAws_restJson1LoRaWANJoinResourceTypeEventConfiguration = function (output, context) {
10610
+ return {
10611
+ WirelessDeviceEventTopic: __expectString(output.WirelessDeviceEventTopic),
10612
+ };
10613
+ };
9824
10614
  var deserializeAws_restJson1LoRaWANListDevice = function (output, context) {
9825
10615
  return {
9826
10616
  DevEui: __expectString(output.DevEui),
@@ -9916,6 +10706,23 @@ var deserializeAws_restJson1NetIdFilters = function (output, context) {
9916
10706
  });
9917
10707
  return retVal;
9918
10708
  };
10709
+ var deserializeAws_restJson1NetworkAnalyzerConfigurationList = function (output, context) {
10710
+ var retVal = (output || [])
10711
+ .filter(function (e) { return e != null; })
10712
+ .map(function (entry) {
10713
+ if (entry === null) {
10714
+ return null;
10715
+ }
10716
+ return deserializeAws_restJson1NetworkAnalyzerConfigurations(entry, context);
10717
+ });
10718
+ return retVal;
10719
+ };
10720
+ var deserializeAws_restJson1NetworkAnalyzerConfigurations = function (output, context) {
10721
+ return {
10722
+ Arn: __expectString(output.Arn),
10723
+ Name: __expectString(output.Name),
10724
+ };
10725
+ };
9919
10726
  var deserializeAws_restJson1OtaaV1_0_x = function (output, context) {
9920
10727
  return {
9921
10728
  AppEui: __expectString(output.AppEui),
@@ -9935,6 +10742,14 @@ var deserializeAws_restJson1ProximityEventConfiguration = function (output, cont
9935
10742
  Sidewalk: output.Sidewalk !== undefined && output.Sidewalk !== null
9936
10743
  ? deserializeAws_restJson1SidewalkEventNotificationConfigurations(output.Sidewalk, context)
9937
10744
  : undefined,
10745
+ WirelessDeviceIdEventTopic: __expectString(output.WirelessDeviceIdEventTopic),
10746
+ };
10747
+ };
10748
+ var deserializeAws_restJson1ProximityResourceTypeEventConfiguration = function (output, context) {
10749
+ return {
10750
+ Sidewalk: output.Sidewalk !== undefined && output.Sidewalk !== null
10751
+ ? deserializeAws_restJson1SidewalkResourceTypeEventConfiguration(output.Sidewalk, context)
10752
+ : undefined,
9938
10753
  };
9939
10754
  };
9940
10755
  var deserializeAws_restJson1ServiceProfile = function (output, context) {
@@ -10026,6 +10841,11 @@ var deserializeAws_restJson1SidewalkListDevice = function (output, context) {
10026
10841
  SidewalkManufacturingSn: __expectString(output.SidewalkManufacturingSn),
10027
10842
  };
10028
10843
  };
10844
+ var deserializeAws_restJson1SidewalkResourceTypeEventConfiguration = function (output, context) {
10845
+ return {
10846
+ WirelessDeviceEventTopic: __expectString(output.WirelessDeviceEventTopic),
10847
+ };
10848
+ };
10029
10849
  var deserializeAws_restJson1SubBands = function (output, context) {
10030
10850
  var retVal = (output || [])
10031
10851
  .filter(function (e) { return e != null; })