@aws-sdk/client-greengrass 3.54.1 → 3.58.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 (104) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist-cjs/GreengrassClient.js +13 -13
  3. package/dist-cjs/commands/AssociateRoleToGroupCommand.js +3 -3
  4. package/dist-cjs/commands/AssociateServiceRoleToAccountCommand.js +3 -3
  5. package/dist-cjs/commands/CreateConnectorDefinitionCommand.js +3 -3
  6. package/dist-cjs/commands/CreateConnectorDefinitionVersionCommand.js +3 -3
  7. package/dist-cjs/commands/CreateCoreDefinitionCommand.js +3 -3
  8. package/dist-cjs/commands/CreateCoreDefinitionVersionCommand.js +3 -3
  9. package/dist-cjs/commands/CreateDeploymentCommand.js +3 -3
  10. package/dist-cjs/commands/CreateDeviceDefinitionCommand.js +3 -3
  11. package/dist-cjs/commands/CreateDeviceDefinitionVersionCommand.js +3 -3
  12. package/dist-cjs/commands/CreateFunctionDefinitionCommand.js +3 -3
  13. package/dist-cjs/commands/CreateFunctionDefinitionVersionCommand.js +3 -3
  14. package/dist-cjs/commands/CreateGroupCertificateAuthorityCommand.js +3 -3
  15. package/dist-cjs/commands/CreateGroupCommand.js +3 -3
  16. package/dist-cjs/commands/CreateGroupVersionCommand.js +3 -3
  17. package/dist-cjs/commands/CreateLoggerDefinitionCommand.js +3 -3
  18. package/dist-cjs/commands/CreateLoggerDefinitionVersionCommand.js +3 -3
  19. package/dist-cjs/commands/CreateResourceDefinitionCommand.js +3 -3
  20. package/dist-cjs/commands/CreateResourceDefinitionVersionCommand.js +3 -3
  21. package/dist-cjs/commands/CreateSoftwareUpdateJobCommand.js +3 -3
  22. package/dist-cjs/commands/CreateSubscriptionDefinitionCommand.js +3 -3
  23. package/dist-cjs/commands/CreateSubscriptionDefinitionVersionCommand.js +3 -3
  24. package/dist-cjs/commands/DeleteConnectorDefinitionCommand.js +3 -3
  25. package/dist-cjs/commands/DeleteCoreDefinitionCommand.js +3 -3
  26. package/dist-cjs/commands/DeleteDeviceDefinitionCommand.js +3 -3
  27. package/dist-cjs/commands/DeleteFunctionDefinitionCommand.js +3 -3
  28. package/dist-cjs/commands/DeleteGroupCommand.js +3 -3
  29. package/dist-cjs/commands/DeleteLoggerDefinitionCommand.js +3 -3
  30. package/dist-cjs/commands/DeleteResourceDefinitionCommand.js +3 -3
  31. package/dist-cjs/commands/DeleteSubscriptionDefinitionCommand.js +3 -3
  32. package/dist-cjs/commands/DisassociateRoleFromGroupCommand.js +3 -3
  33. package/dist-cjs/commands/DisassociateServiceRoleFromAccountCommand.js +3 -3
  34. package/dist-cjs/commands/GetAssociatedRoleCommand.js +3 -3
  35. package/dist-cjs/commands/GetBulkDeploymentStatusCommand.js +3 -3
  36. package/dist-cjs/commands/GetConnectivityInfoCommand.js +3 -3
  37. package/dist-cjs/commands/GetConnectorDefinitionCommand.js +3 -3
  38. package/dist-cjs/commands/GetConnectorDefinitionVersionCommand.js +3 -3
  39. package/dist-cjs/commands/GetCoreDefinitionCommand.js +3 -3
  40. package/dist-cjs/commands/GetCoreDefinitionVersionCommand.js +3 -3
  41. package/dist-cjs/commands/GetDeploymentStatusCommand.js +3 -3
  42. package/dist-cjs/commands/GetDeviceDefinitionCommand.js +3 -3
  43. package/dist-cjs/commands/GetDeviceDefinitionVersionCommand.js +3 -3
  44. package/dist-cjs/commands/GetFunctionDefinitionCommand.js +3 -3
  45. package/dist-cjs/commands/GetFunctionDefinitionVersionCommand.js +3 -3
  46. package/dist-cjs/commands/GetGroupCertificateAuthorityCommand.js +3 -3
  47. package/dist-cjs/commands/GetGroupCertificateConfigurationCommand.js +3 -3
  48. package/dist-cjs/commands/GetGroupCommand.js +3 -3
  49. package/dist-cjs/commands/GetGroupVersionCommand.js +3 -3
  50. package/dist-cjs/commands/GetLoggerDefinitionCommand.js +3 -3
  51. package/dist-cjs/commands/GetLoggerDefinitionVersionCommand.js +3 -3
  52. package/dist-cjs/commands/GetResourceDefinitionCommand.js +3 -3
  53. package/dist-cjs/commands/GetResourceDefinitionVersionCommand.js +3 -3
  54. package/dist-cjs/commands/GetServiceRoleForAccountCommand.js +3 -3
  55. package/dist-cjs/commands/GetSubscriptionDefinitionCommand.js +3 -3
  56. package/dist-cjs/commands/GetSubscriptionDefinitionVersionCommand.js +3 -3
  57. package/dist-cjs/commands/GetThingRuntimeConfigurationCommand.js +3 -3
  58. package/dist-cjs/commands/ListBulkDeploymentDetailedReportsCommand.js +3 -3
  59. package/dist-cjs/commands/ListBulkDeploymentsCommand.js +3 -3
  60. package/dist-cjs/commands/ListConnectorDefinitionVersionsCommand.js +3 -3
  61. package/dist-cjs/commands/ListConnectorDefinitionsCommand.js +3 -3
  62. package/dist-cjs/commands/ListCoreDefinitionVersionsCommand.js +3 -3
  63. package/dist-cjs/commands/ListCoreDefinitionsCommand.js +3 -3
  64. package/dist-cjs/commands/ListDeploymentsCommand.js +3 -3
  65. package/dist-cjs/commands/ListDeviceDefinitionVersionsCommand.js +3 -3
  66. package/dist-cjs/commands/ListDeviceDefinitionsCommand.js +3 -3
  67. package/dist-cjs/commands/ListFunctionDefinitionVersionsCommand.js +3 -3
  68. package/dist-cjs/commands/ListFunctionDefinitionsCommand.js +3 -3
  69. package/dist-cjs/commands/ListGroupCertificateAuthoritiesCommand.js +3 -3
  70. package/dist-cjs/commands/ListGroupVersionsCommand.js +3 -3
  71. package/dist-cjs/commands/ListGroupsCommand.js +3 -3
  72. package/dist-cjs/commands/ListLoggerDefinitionVersionsCommand.js +3 -3
  73. package/dist-cjs/commands/ListLoggerDefinitionsCommand.js +3 -3
  74. package/dist-cjs/commands/ListResourceDefinitionVersionsCommand.js +3 -3
  75. package/dist-cjs/commands/ListResourceDefinitionsCommand.js +3 -3
  76. package/dist-cjs/commands/ListSubscriptionDefinitionVersionsCommand.js +3 -3
  77. package/dist-cjs/commands/ListSubscriptionDefinitionsCommand.js +3 -3
  78. package/dist-cjs/commands/ListTagsForResourceCommand.js +3 -3
  79. package/dist-cjs/commands/ResetDeploymentsCommand.js +3 -3
  80. package/dist-cjs/commands/StartBulkDeploymentCommand.js +3 -3
  81. package/dist-cjs/commands/StopBulkDeploymentCommand.js +3 -3
  82. package/dist-cjs/commands/TagResourceCommand.js +3 -3
  83. package/dist-cjs/commands/UntagResourceCommand.js +3 -3
  84. package/dist-cjs/commands/UpdateConnectivityInfoCommand.js +3 -3
  85. package/dist-cjs/commands/UpdateConnectorDefinitionCommand.js +3 -3
  86. package/dist-cjs/commands/UpdateCoreDefinitionCommand.js +3 -3
  87. package/dist-cjs/commands/UpdateDeviceDefinitionCommand.js +3 -3
  88. package/dist-cjs/commands/UpdateFunctionDefinitionCommand.js +3 -3
  89. package/dist-cjs/commands/UpdateGroupCertificateConfigurationCommand.js +3 -3
  90. package/dist-cjs/commands/UpdateGroupCommand.js +3 -3
  91. package/dist-cjs/commands/UpdateLoggerDefinitionCommand.js +3 -3
  92. package/dist-cjs/commands/UpdateResourceDefinitionCommand.js +3 -3
  93. package/dist-cjs/commands/UpdateSubscriptionDefinitionCommand.js +3 -3
  94. package/dist-cjs/commands/UpdateThingRuntimeConfigurationCommand.js +3 -3
  95. package/dist-cjs/endpoints.js +1 -1
  96. package/dist-cjs/protocols/Aws_restJson1.js +589 -589
  97. package/dist-cjs/runtimeConfig.browser.js +4 -4
  98. package/dist-cjs/runtimeConfig.js +9 -9
  99. package/dist-cjs/runtimeConfig.native.js +1 -1
  100. package/dist-es/Greengrass.js +92 -92
  101. package/dist-es/protocols/Aws_restJson1.js +92 -92
  102. package/dist-types/runtimeConfig.native.d.ts +2 -2
  103. package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -2
  104. package/package.json +34 -34
@@ -19,7 +19,7 @@ const serializeAws_restJson1AssociateRoleToGroupCommand = async (input, context)
19
19
  if (labelValue.length <= 0) {
20
20
  throw new Error("Empty value provided for input HTTP label: GroupId.");
21
21
  }
22
- resolvedPath = resolvedPath.replace("{GroupId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
22
+ resolvedPath = resolvedPath.replace("{GroupId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
23
23
  }
24
24
  else {
25
25
  throw new Error("No value provided for input HTTP label: GroupId.");
@@ -100,7 +100,7 @@ const serializeAws_restJson1CreateConnectorDefinitionVersionCommand = async (inp
100
100
  if (labelValue.length <= 0) {
101
101
  throw new Error("Empty value provided for input HTTP label: ConnectorDefinitionId.");
102
102
  }
103
- resolvedPath = resolvedPath.replace("{ConnectorDefinitionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
103
+ resolvedPath = resolvedPath.replace("{ConnectorDefinitionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
104
104
  }
105
105
  else {
106
106
  throw new Error("No value provided for input HTTP label: ConnectorDefinitionId.");
@@ -161,7 +161,7 @@ const serializeAws_restJson1CreateCoreDefinitionVersionCommand = async (input, c
161
161
  if (labelValue.length <= 0) {
162
162
  throw new Error("Empty value provided for input HTTP label: CoreDefinitionId.");
163
163
  }
164
- resolvedPath = resolvedPath.replace("{CoreDefinitionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
164
+ resolvedPath = resolvedPath.replace("{CoreDefinitionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
165
165
  }
166
166
  else {
167
167
  throw new Error("No value provided for input HTTP label: CoreDefinitionId.");
@@ -194,7 +194,7 @@ const serializeAws_restJson1CreateDeploymentCommand = async (input, context) =>
194
194
  if (labelValue.length <= 0) {
195
195
  throw new Error("Empty value provided for input HTTP label: GroupId.");
196
196
  }
197
- resolvedPath = resolvedPath.replace("{GroupId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
197
+ resolvedPath = resolvedPath.replace("{GroupId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
198
198
  }
199
199
  else {
200
200
  throw new Error("No value provided for input HTTP label: GroupId.");
@@ -258,7 +258,7 @@ const serializeAws_restJson1CreateDeviceDefinitionVersionCommand = async (input,
258
258
  if (labelValue.length <= 0) {
259
259
  throw new Error("Empty value provided for input HTTP label: DeviceDefinitionId.");
260
260
  }
261
- resolvedPath = resolvedPath.replace("{DeviceDefinitionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
261
+ resolvedPath = resolvedPath.replace("{DeviceDefinitionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
262
262
  }
263
263
  else {
264
264
  throw new Error("No value provided for input HTTP label: DeviceDefinitionId.");
@@ -319,7 +319,7 @@ const serializeAws_restJson1CreateFunctionDefinitionVersionCommand = async (inpu
319
319
  if (labelValue.length <= 0) {
320
320
  throw new Error("Empty value provided for input HTTP label: FunctionDefinitionId.");
321
321
  }
322
- resolvedPath = resolvedPath.replace("{FunctionDefinitionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
322
+ resolvedPath = resolvedPath.replace("{FunctionDefinitionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
323
323
  }
324
324
  else {
325
325
  throw new Error("No value provided for input HTTP label: FunctionDefinitionId.");
@@ -383,7 +383,7 @@ const serializeAws_restJson1CreateGroupCertificateAuthorityCommand = async (inpu
383
383
  if (labelValue.length <= 0) {
384
384
  throw new Error("Empty value provided for input HTTP label: GroupId.");
385
385
  }
386
- resolvedPath = resolvedPath.replace("{GroupId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
386
+ resolvedPath = resolvedPath.replace("{GroupId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
387
387
  }
388
388
  else {
389
389
  throw new Error("No value provided for input HTTP label: GroupId.");
@@ -412,7 +412,7 @@ const serializeAws_restJson1CreateGroupVersionCommand = async (input, context) =
412
412
  if (labelValue.length <= 0) {
413
413
  throw new Error("Empty value provided for input HTTP label: GroupId.");
414
414
  }
415
- resolvedPath = resolvedPath.replace("{GroupId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
415
+ resolvedPath = resolvedPath.replace("{GroupId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
416
416
  }
417
417
  else {
418
418
  throw new Error("No value provided for input HTTP label: GroupId.");
@@ -493,7 +493,7 @@ const serializeAws_restJson1CreateLoggerDefinitionVersionCommand = async (input,
493
493
  if (labelValue.length <= 0) {
494
494
  throw new Error("Empty value provided for input HTTP label: LoggerDefinitionId.");
495
495
  }
496
- resolvedPath = resolvedPath.replace("{LoggerDefinitionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
496
+ resolvedPath = resolvedPath.replace("{LoggerDefinitionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
497
497
  }
498
498
  else {
499
499
  throw new Error("No value provided for input HTTP label: LoggerDefinitionId.");
@@ -554,7 +554,7 @@ const serializeAws_restJson1CreateResourceDefinitionVersionCommand = async (inpu
554
554
  if (labelValue.length <= 0) {
555
555
  throw new Error("Empty value provided for input HTTP label: ResourceDefinitionId.");
556
556
  }
557
- resolvedPath = resolvedPath.replace("{ResourceDefinitionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
557
+ resolvedPath = resolvedPath.replace("{ResourceDefinitionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
558
558
  }
559
559
  else {
560
560
  throw new Error("No value provided for input HTTP label: ResourceDefinitionId.");
@@ -652,7 +652,7 @@ const serializeAws_restJson1CreateSubscriptionDefinitionVersionCommand = async (
652
652
  if (labelValue.length <= 0) {
653
653
  throw new Error("Empty value provided for input HTTP label: SubscriptionDefinitionId.");
654
654
  }
655
- resolvedPath = resolvedPath.replace("{SubscriptionDefinitionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
655
+ resolvedPath = resolvedPath.replace("{SubscriptionDefinitionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
656
656
  }
657
657
  else {
658
658
  throw new Error("No value provided for input HTTP label: SubscriptionDefinitionId.");
@@ -685,7 +685,7 @@ const serializeAws_restJson1DeleteConnectorDefinitionCommand = async (input, con
685
685
  if (labelValue.length <= 0) {
686
686
  throw new Error("Empty value provided for input HTTP label: ConnectorDefinitionId.");
687
687
  }
688
- resolvedPath = resolvedPath.replace("{ConnectorDefinitionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
688
+ resolvedPath = resolvedPath.replace("{ConnectorDefinitionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
689
689
  }
690
690
  else {
691
691
  throw new Error("No value provided for input HTTP label: ConnectorDefinitionId.");
@@ -712,7 +712,7 @@ const serializeAws_restJson1DeleteCoreDefinitionCommand = async (input, context)
712
712
  if (labelValue.length <= 0) {
713
713
  throw new Error("Empty value provided for input HTTP label: CoreDefinitionId.");
714
714
  }
715
- resolvedPath = resolvedPath.replace("{CoreDefinitionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
715
+ resolvedPath = resolvedPath.replace("{CoreDefinitionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
716
716
  }
717
717
  else {
718
718
  throw new Error("No value provided for input HTTP label: CoreDefinitionId.");
@@ -739,7 +739,7 @@ const serializeAws_restJson1DeleteDeviceDefinitionCommand = async (input, contex
739
739
  if (labelValue.length <= 0) {
740
740
  throw new Error("Empty value provided for input HTTP label: DeviceDefinitionId.");
741
741
  }
742
- resolvedPath = resolvedPath.replace("{DeviceDefinitionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
742
+ resolvedPath = resolvedPath.replace("{DeviceDefinitionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
743
743
  }
744
744
  else {
745
745
  throw new Error("No value provided for input HTTP label: DeviceDefinitionId.");
@@ -766,7 +766,7 @@ const serializeAws_restJson1DeleteFunctionDefinitionCommand = async (input, cont
766
766
  if (labelValue.length <= 0) {
767
767
  throw new Error("Empty value provided for input HTTP label: FunctionDefinitionId.");
768
768
  }
769
- resolvedPath = resolvedPath.replace("{FunctionDefinitionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
769
+ resolvedPath = resolvedPath.replace("{FunctionDefinitionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
770
770
  }
771
771
  else {
772
772
  throw new Error("No value provided for input HTTP label: FunctionDefinitionId.");
@@ -792,7 +792,7 @@ const serializeAws_restJson1DeleteGroupCommand = async (input, context) => {
792
792
  if (labelValue.length <= 0) {
793
793
  throw new Error("Empty value provided for input HTTP label: GroupId.");
794
794
  }
795
- resolvedPath = resolvedPath.replace("{GroupId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
795
+ resolvedPath = resolvedPath.replace("{GroupId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
796
796
  }
797
797
  else {
798
798
  throw new Error("No value provided for input HTTP label: GroupId.");
@@ -819,7 +819,7 @@ const serializeAws_restJson1DeleteLoggerDefinitionCommand = async (input, contex
819
819
  if (labelValue.length <= 0) {
820
820
  throw new Error("Empty value provided for input HTTP label: LoggerDefinitionId.");
821
821
  }
822
- resolvedPath = resolvedPath.replace("{LoggerDefinitionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
822
+ resolvedPath = resolvedPath.replace("{LoggerDefinitionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
823
823
  }
824
824
  else {
825
825
  throw new Error("No value provided for input HTTP label: LoggerDefinitionId.");
@@ -846,7 +846,7 @@ const serializeAws_restJson1DeleteResourceDefinitionCommand = async (input, cont
846
846
  if (labelValue.length <= 0) {
847
847
  throw new Error("Empty value provided for input HTTP label: ResourceDefinitionId.");
848
848
  }
849
- resolvedPath = resolvedPath.replace("{ResourceDefinitionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
849
+ resolvedPath = resolvedPath.replace("{ResourceDefinitionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
850
850
  }
851
851
  else {
852
852
  throw new Error("No value provided for input HTTP label: ResourceDefinitionId.");
@@ -873,7 +873,7 @@ const serializeAws_restJson1DeleteSubscriptionDefinitionCommand = async (input,
873
873
  if (labelValue.length <= 0) {
874
874
  throw new Error("Empty value provided for input HTTP label: SubscriptionDefinitionId.");
875
875
  }
876
- resolvedPath = resolvedPath.replace("{SubscriptionDefinitionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
876
+ resolvedPath = resolvedPath.replace("{SubscriptionDefinitionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
877
877
  }
878
878
  else {
879
879
  throw new Error("No value provided for input HTTP label: SubscriptionDefinitionId.");
@@ -899,7 +899,7 @@ const serializeAws_restJson1DisassociateRoleFromGroupCommand = async (input, con
899
899
  if (labelValue.length <= 0) {
900
900
  throw new Error("Empty value provided for input HTTP label: GroupId.");
901
901
  }
902
- resolvedPath = resolvedPath.replace("{GroupId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
902
+ resolvedPath = resolvedPath.replace("{GroupId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
903
903
  }
904
904
  else {
905
905
  throw new Error("No value provided for input HTTP label: GroupId.");
@@ -944,7 +944,7 @@ const serializeAws_restJson1GetAssociatedRoleCommand = async (input, context) =>
944
944
  if (labelValue.length <= 0) {
945
945
  throw new Error("Empty value provided for input HTTP label: GroupId.");
946
946
  }
947
- resolvedPath = resolvedPath.replace("{GroupId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
947
+ resolvedPath = resolvedPath.replace("{GroupId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
948
948
  }
949
949
  else {
950
950
  throw new Error("No value provided for input HTTP label: GroupId.");
@@ -971,7 +971,7 @@ const serializeAws_restJson1GetBulkDeploymentStatusCommand = async (input, conte
971
971
  if (labelValue.length <= 0) {
972
972
  throw new Error("Empty value provided for input HTTP label: BulkDeploymentId.");
973
973
  }
974
- resolvedPath = resolvedPath.replace("{BulkDeploymentId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
974
+ resolvedPath = resolvedPath.replace("{BulkDeploymentId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
975
975
  }
976
976
  else {
977
977
  throw new Error("No value provided for input HTTP label: BulkDeploymentId.");
@@ -998,7 +998,7 @@ const serializeAws_restJson1GetConnectivityInfoCommand = async (input, context)
998
998
  if (labelValue.length <= 0) {
999
999
  throw new Error("Empty value provided for input HTTP label: ThingName.");
1000
1000
  }
1001
- resolvedPath = resolvedPath.replace("{ThingName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1001
+ resolvedPath = resolvedPath.replace("{ThingName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1002
1002
  }
1003
1003
  else {
1004
1004
  throw new Error("No value provided for input HTTP label: ThingName.");
@@ -1025,7 +1025,7 @@ const serializeAws_restJson1GetConnectorDefinitionCommand = async (input, contex
1025
1025
  if (labelValue.length <= 0) {
1026
1026
  throw new Error("Empty value provided for input HTTP label: ConnectorDefinitionId.");
1027
1027
  }
1028
- resolvedPath = resolvedPath.replace("{ConnectorDefinitionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1028
+ resolvedPath = resolvedPath.replace("{ConnectorDefinitionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1029
1029
  }
1030
1030
  else {
1031
1031
  throw new Error("No value provided for input HTTP label: ConnectorDefinitionId.");
@@ -1052,7 +1052,7 @@ const serializeAws_restJson1GetConnectorDefinitionVersionCommand = async (input,
1052
1052
  if (labelValue.length <= 0) {
1053
1053
  throw new Error("Empty value provided for input HTTP label: ConnectorDefinitionId.");
1054
1054
  }
1055
- resolvedPath = resolvedPath.replace("{ConnectorDefinitionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1055
+ resolvedPath = resolvedPath.replace("{ConnectorDefinitionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1056
1056
  }
1057
1057
  else {
1058
1058
  throw new Error("No value provided for input HTTP label: ConnectorDefinitionId.");
@@ -1062,7 +1062,7 @@ const serializeAws_restJson1GetConnectorDefinitionVersionCommand = async (input,
1062
1062
  if (labelValue.length <= 0) {
1063
1063
  throw new Error("Empty value provided for input HTTP label: ConnectorDefinitionVersionId.");
1064
1064
  }
1065
- resolvedPath = resolvedPath.replace("{ConnectorDefinitionVersionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1065
+ resolvedPath = resolvedPath.replace("{ConnectorDefinitionVersionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1066
1066
  }
1067
1067
  else {
1068
1068
  throw new Error("No value provided for input HTTP label: ConnectorDefinitionVersionId.");
@@ -1093,7 +1093,7 @@ const serializeAws_restJson1GetCoreDefinitionCommand = async (input, context) =>
1093
1093
  if (labelValue.length <= 0) {
1094
1094
  throw new Error("Empty value provided for input HTTP label: CoreDefinitionId.");
1095
1095
  }
1096
- resolvedPath = resolvedPath.replace("{CoreDefinitionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1096
+ resolvedPath = resolvedPath.replace("{CoreDefinitionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1097
1097
  }
1098
1098
  else {
1099
1099
  throw new Error("No value provided for input HTTP label: CoreDefinitionId.");
@@ -1120,7 +1120,7 @@ const serializeAws_restJson1GetCoreDefinitionVersionCommand = async (input, cont
1120
1120
  if (labelValue.length <= 0) {
1121
1121
  throw new Error("Empty value provided for input HTTP label: CoreDefinitionId.");
1122
1122
  }
1123
- resolvedPath = resolvedPath.replace("{CoreDefinitionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1123
+ resolvedPath = resolvedPath.replace("{CoreDefinitionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1124
1124
  }
1125
1125
  else {
1126
1126
  throw new Error("No value provided for input HTTP label: CoreDefinitionId.");
@@ -1130,7 +1130,7 @@ const serializeAws_restJson1GetCoreDefinitionVersionCommand = async (input, cont
1130
1130
  if (labelValue.length <= 0) {
1131
1131
  throw new Error("Empty value provided for input HTTP label: CoreDefinitionVersionId.");
1132
1132
  }
1133
- resolvedPath = resolvedPath.replace("{CoreDefinitionVersionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1133
+ resolvedPath = resolvedPath.replace("{CoreDefinitionVersionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1134
1134
  }
1135
1135
  else {
1136
1136
  throw new Error("No value provided for input HTTP label: CoreDefinitionVersionId.");
@@ -1157,7 +1157,7 @@ const serializeAws_restJson1GetDeploymentStatusCommand = async (input, context)
1157
1157
  if (labelValue.length <= 0) {
1158
1158
  throw new Error("Empty value provided for input HTTP label: DeploymentId.");
1159
1159
  }
1160
- resolvedPath = resolvedPath.replace("{DeploymentId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1160
+ resolvedPath = resolvedPath.replace("{DeploymentId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1161
1161
  }
1162
1162
  else {
1163
1163
  throw new Error("No value provided for input HTTP label: DeploymentId.");
@@ -1167,7 +1167,7 @@ const serializeAws_restJson1GetDeploymentStatusCommand = async (input, context)
1167
1167
  if (labelValue.length <= 0) {
1168
1168
  throw new Error("Empty value provided for input HTTP label: GroupId.");
1169
1169
  }
1170
- resolvedPath = resolvedPath.replace("{GroupId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1170
+ resolvedPath = resolvedPath.replace("{GroupId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1171
1171
  }
1172
1172
  else {
1173
1173
  throw new Error("No value provided for input HTTP label: GroupId.");
@@ -1194,7 +1194,7 @@ const serializeAws_restJson1GetDeviceDefinitionCommand = async (input, context)
1194
1194
  if (labelValue.length <= 0) {
1195
1195
  throw new Error("Empty value provided for input HTTP label: DeviceDefinitionId.");
1196
1196
  }
1197
- resolvedPath = resolvedPath.replace("{DeviceDefinitionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1197
+ resolvedPath = resolvedPath.replace("{DeviceDefinitionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1198
1198
  }
1199
1199
  else {
1200
1200
  throw new Error("No value provided for input HTTP label: DeviceDefinitionId.");
@@ -1221,7 +1221,7 @@ const serializeAws_restJson1GetDeviceDefinitionVersionCommand = async (input, co
1221
1221
  if (labelValue.length <= 0) {
1222
1222
  throw new Error("Empty value provided for input HTTP label: DeviceDefinitionId.");
1223
1223
  }
1224
- resolvedPath = resolvedPath.replace("{DeviceDefinitionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1224
+ resolvedPath = resolvedPath.replace("{DeviceDefinitionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1225
1225
  }
1226
1226
  else {
1227
1227
  throw new Error("No value provided for input HTTP label: DeviceDefinitionId.");
@@ -1231,7 +1231,7 @@ const serializeAws_restJson1GetDeviceDefinitionVersionCommand = async (input, co
1231
1231
  if (labelValue.length <= 0) {
1232
1232
  throw new Error("Empty value provided for input HTTP label: DeviceDefinitionVersionId.");
1233
1233
  }
1234
- resolvedPath = resolvedPath.replace("{DeviceDefinitionVersionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1234
+ resolvedPath = resolvedPath.replace("{DeviceDefinitionVersionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1235
1235
  }
1236
1236
  else {
1237
1237
  throw new Error("No value provided for input HTTP label: DeviceDefinitionVersionId.");
@@ -1262,7 +1262,7 @@ const serializeAws_restJson1GetFunctionDefinitionCommand = async (input, context
1262
1262
  if (labelValue.length <= 0) {
1263
1263
  throw new Error("Empty value provided for input HTTP label: FunctionDefinitionId.");
1264
1264
  }
1265
- resolvedPath = resolvedPath.replace("{FunctionDefinitionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1265
+ resolvedPath = resolvedPath.replace("{FunctionDefinitionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1266
1266
  }
1267
1267
  else {
1268
1268
  throw new Error("No value provided for input HTTP label: FunctionDefinitionId.");
@@ -1289,7 +1289,7 @@ const serializeAws_restJson1GetFunctionDefinitionVersionCommand = async (input,
1289
1289
  if (labelValue.length <= 0) {
1290
1290
  throw new Error("Empty value provided for input HTTP label: FunctionDefinitionId.");
1291
1291
  }
1292
- resolvedPath = resolvedPath.replace("{FunctionDefinitionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1292
+ resolvedPath = resolvedPath.replace("{FunctionDefinitionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1293
1293
  }
1294
1294
  else {
1295
1295
  throw new Error("No value provided for input HTTP label: FunctionDefinitionId.");
@@ -1299,7 +1299,7 @@ const serializeAws_restJson1GetFunctionDefinitionVersionCommand = async (input,
1299
1299
  if (labelValue.length <= 0) {
1300
1300
  throw new Error("Empty value provided for input HTTP label: FunctionDefinitionVersionId.");
1301
1301
  }
1302
- resolvedPath = resolvedPath.replace("{FunctionDefinitionVersionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1302
+ resolvedPath = resolvedPath.replace("{FunctionDefinitionVersionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1303
1303
  }
1304
1304
  else {
1305
1305
  throw new Error("No value provided for input HTTP label: FunctionDefinitionVersionId.");
@@ -1329,7 +1329,7 @@ const serializeAws_restJson1GetGroupCommand = async (input, context) => {
1329
1329
  if (labelValue.length <= 0) {
1330
1330
  throw new Error("Empty value provided for input HTTP label: GroupId.");
1331
1331
  }
1332
- resolvedPath = resolvedPath.replace("{GroupId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1332
+ resolvedPath = resolvedPath.replace("{GroupId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1333
1333
  }
1334
1334
  else {
1335
1335
  throw new Error("No value provided for input HTTP label: GroupId.");
@@ -1356,7 +1356,7 @@ const serializeAws_restJson1GetGroupCertificateAuthorityCommand = async (input,
1356
1356
  if (labelValue.length <= 0) {
1357
1357
  throw new Error("Empty value provided for input HTTP label: CertificateAuthorityId.");
1358
1358
  }
1359
- resolvedPath = resolvedPath.replace("{CertificateAuthorityId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1359
+ resolvedPath = resolvedPath.replace("{CertificateAuthorityId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1360
1360
  }
1361
1361
  else {
1362
1362
  throw new Error("No value provided for input HTTP label: CertificateAuthorityId.");
@@ -1366,7 +1366,7 @@ const serializeAws_restJson1GetGroupCertificateAuthorityCommand = async (input,
1366
1366
  if (labelValue.length <= 0) {
1367
1367
  throw new Error("Empty value provided for input HTTP label: GroupId.");
1368
1368
  }
1369
- resolvedPath = resolvedPath.replace("{GroupId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1369
+ resolvedPath = resolvedPath.replace("{GroupId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1370
1370
  }
1371
1371
  else {
1372
1372
  throw new Error("No value provided for input HTTP label: GroupId.");
@@ -1393,7 +1393,7 @@ const serializeAws_restJson1GetGroupCertificateConfigurationCommand = async (inp
1393
1393
  if (labelValue.length <= 0) {
1394
1394
  throw new Error("Empty value provided for input HTTP label: GroupId.");
1395
1395
  }
1396
- resolvedPath = resolvedPath.replace("{GroupId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1396
+ resolvedPath = resolvedPath.replace("{GroupId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1397
1397
  }
1398
1398
  else {
1399
1399
  throw new Error("No value provided for input HTTP label: GroupId.");
@@ -1420,7 +1420,7 @@ const serializeAws_restJson1GetGroupVersionCommand = async (input, context) => {
1420
1420
  if (labelValue.length <= 0) {
1421
1421
  throw new Error("Empty value provided for input HTTP label: GroupId.");
1422
1422
  }
1423
- resolvedPath = resolvedPath.replace("{GroupId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1423
+ resolvedPath = resolvedPath.replace("{GroupId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1424
1424
  }
1425
1425
  else {
1426
1426
  throw new Error("No value provided for input HTTP label: GroupId.");
@@ -1430,7 +1430,7 @@ const serializeAws_restJson1GetGroupVersionCommand = async (input, context) => {
1430
1430
  if (labelValue.length <= 0) {
1431
1431
  throw new Error("Empty value provided for input HTTP label: GroupVersionId.");
1432
1432
  }
1433
- resolvedPath = resolvedPath.replace("{GroupVersionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1433
+ resolvedPath = resolvedPath.replace("{GroupVersionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1434
1434
  }
1435
1435
  else {
1436
1436
  throw new Error("No value provided for input HTTP label: GroupVersionId.");
@@ -1457,7 +1457,7 @@ const serializeAws_restJson1GetLoggerDefinitionCommand = async (input, context)
1457
1457
  if (labelValue.length <= 0) {
1458
1458
  throw new Error("Empty value provided for input HTTP label: LoggerDefinitionId.");
1459
1459
  }
1460
- resolvedPath = resolvedPath.replace("{LoggerDefinitionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1460
+ resolvedPath = resolvedPath.replace("{LoggerDefinitionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1461
1461
  }
1462
1462
  else {
1463
1463
  throw new Error("No value provided for input HTTP label: LoggerDefinitionId.");
@@ -1484,7 +1484,7 @@ const serializeAws_restJson1GetLoggerDefinitionVersionCommand = async (input, co
1484
1484
  if (labelValue.length <= 0) {
1485
1485
  throw new Error("Empty value provided for input HTTP label: LoggerDefinitionId.");
1486
1486
  }
1487
- resolvedPath = resolvedPath.replace("{LoggerDefinitionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1487
+ resolvedPath = resolvedPath.replace("{LoggerDefinitionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1488
1488
  }
1489
1489
  else {
1490
1490
  throw new Error("No value provided for input HTTP label: LoggerDefinitionId.");
@@ -1494,7 +1494,7 @@ const serializeAws_restJson1GetLoggerDefinitionVersionCommand = async (input, co
1494
1494
  if (labelValue.length <= 0) {
1495
1495
  throw new Error("Empty value provided for input HTTP label: LoggerDefinitionVersionId.");
1496
1496
  }
1497
- resolvedPath = resolvedPath.replace("{LoggerDefinitionVersionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1497
+ resolvedPath = resolvedPath.replace("{LoggerDefinitionVersionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1498
1498
  }
1499
1499
  else {
1500
1500
  throw new Error("No value provided for input HTTP label: LoggerDefinitionVersionId.");
@@ -1525,7 +1525,7 @@ const serializeAws_restJson1GetResourceDefinitionCommand = async (input, context
1525
1525
  if (labelValue.length <= 0) {
1526
1526
  throw new Error("Empty value provided for input HTTP label: ResourceDefinitionId.");
1527
1527
  }
1528
- resolvedPath = resolvedPath.replace("{ResourceDefinitionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1528
+ resolvedPath = resolvedPath.replace("{ResourceDefinitionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1529
1529
  }
1530
1530
  else {
1531
1531
  throw new Error("No value provided for input HTTP label: ResourceDefinitionId.");
@@ -1552,7 +1552,7 @@ const serializeAws_restJson1GetResourceDefinitionVersionCommand = async (input,
1552
1552
  if (labelValue.length <= 0) {
1553
1553
  throw new Error("Empty value provided for input HTTP label: ResourceDefinitionId.");
1554
1554
  }
1555
- resolvedPath = resolvedPath.replace("{ResourceDefinitionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1555
+ resolvedPath = resolvedPath.replace("{ResourceDefinitionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1556
1556
  }
1557
1557
  else {
1558
1558
  throw new Error("No value provided for input HTTP label: ResourceDefinitionId.");
@@ -1562,7 +1562,7 @@ const serializeAws_restJson1GetResourceDefinitionVersionCommand = async (input,
1562
1562
  if (labelValue.length <= 0) {
1563
1563
  throw new Error("Empty value provided for input HTTP label: ResourceDefinitionVersionId.");
1564
1564
  }
1565
- resolvedPath = resolvedPath.replace("{ResourceDefinitionVersionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1565
+ resolvedPath = resolvedPath.replace("{ResourceDefinitionVersionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1566
1566
  }
1567
1567
  else {
1568
1568
  throw new Error("No value provided for input HTTP label: ResourceDefinitionVersionId.");
@@ -1608,7 +1608,7 @@ const serializeAws_restJson1GetSubscriptionDefinitionCommand = async (input, con
1608
1608
  if (labelValue.length <= 0) {
1609
1609
  throw new Error("Empty value provided for input HTTP label: SubscriptionDefinitionId.");
1610
1610
  }
1611
- resolvedPath = resolvedPath.replace("{SubscriptionDefinitionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1611
+ resolvedPath = resolvedPath.replace("{SubscriptionDefinitionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1612
1612
  }
1613
1613
  else {
1614
1614
  throw new Error("No value provided for input HTTP label: SubscriptionDefinitionId.");
@@ -1635,7 +1635,7 @@ const serializeAws_restJson1GetSubscriptionDefinitionVersionCommand = async (inp
1635
1635
  if (labelValue.length <= 0) {
1636
1636
  throw new Error("Empty value provided for input HTTP label: SubscriptionDefinitionId.");
1637
1637
  }
1638
- resolvedPath = resolvedPath.replace("{SubscriptionDefinitionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1638
+ resolvedPath = resolvedPath.replace("{SubscriptionDefinitionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1639
1639
  }
1640
1640
  else {
1641
1641
  throw new Error("No value provided for input HTTP label: SubscriptionDefinitionId.");
@@ -1645,7 +1645,7 @@ const serializeAws_restJson1GetSubscriptionDefinitionVersionCommand = async (inp
1645
1645
  if (labelValue.length <= 0) {
1646
1646
  throw new Error("Empty value provided for input HTTP label: SubscriptionDefinitionVersionId.");
1647
1647
  }
1648
- resolvedPath = resolvedPath.replace("{SubscriptionDefinitionVersionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1648
+ resolvedPath = resolvedPath.replace("{SubscriptionDefinitionVersionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1649
1649
  }
1650
1650
  else {
1651
1651
  throw new Error("No value provided for input HTTP label: SubscriptionDefinitionVersionId.");
@@ -1676,7 +1676,7 @@ const serializeAws_restJson1GetThingRuntimeConfigurationCommand = async (input,
1676
1676
  if (labelValue.length <= 0) {
1677
1677
  throw new Error("Empty value provided for input HTTP label: ThingName.");
1678
1678
  }
1679
- resolvedPath = resolvedPath.replace("{ThingName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1679
+ resolvedPath = resolvedPath.replace("{ThingName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1680
1680
  }
1681
1681
  else {
1682
1682
  throw new Error("No value provided for input HTTP label: ThingName.");
@@ -1703,7 +1703,7 @@ const serializeAws_restJson1ListBulkDeploymentDetailedReportsCommand = async (in
1703
1703
  if (labelValue.length <= 0) {
1704
1704
  throw new Error("Empty value provided for input HTTP label: BulkDeploymentId.");
1705
1705
  }
1706
- resolvedPath = resolvedPath.replace("{BulkDeploymentId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1706
+ resolvedPath = resolvedPath.replace("{BulkDeploymentId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1707
1707
  }
1708
1708
  else {
1709
1709
  throw new Error("No value provided for input HTTP label: BulkDeploymentId.");
@@ -1777,7 +1777,7 @@ const serializeAws_restJson1ListConnectorDefinitionVersionsCommand = async (inpu
1777
1777
  if (labelValue.length <= 0) {
1778
1778
  throw new Error("Empty value provided for input HTTP label: ConnectorDefinitionId.");
1779
1779
  }
1780
- resolvedPath = resolvedPath.replace("{ConnectorDefinitionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1780
+ resolvedPath = resolvedPath.replace("{ConnectorDefinitionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1781
1781
  }
1782
1782
  else {
1783
1783
  throw new Error("No value provided for input HTTP label: ConnectorDefinitionId.");
@@ -1830,7 +1830,7 @@ const serializeAws_restJson1ListCoreDefinitionVersionsCommand = async (input, co
1830
1830
  if (labelValue.length <= 0) {
1831
1831
  throw new Error("Empty value provided for input HTTP label: CoreDefinitionId.");
1832
1832
  }
1833
- resolvedPath = resolvedPath.replace("{CoreDefinitionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1833
+ resolvedPath = resolvedPath.replace("{CoreDefinitionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1834
1834
  }
1835
1835
  else {
1836
1836
  throw new Error("No value provided for input HTTP label: CoreDefinitionId.");
@@ -1861,7 +1861,7 @@ const serializeAws_restJson1ListDeploymentsCommand = async (input, context) => {
1861
1861
  if (labelValue.length <= 0) {
1862
1862
  throw new Error("Empty value provided for input HTTP label: GroupId.");
1863
1863
  }
1864
- resolvedPath = resolvedPath.replace("{GroupId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1864
+ resolvedPath = resolvedPath.replace("{GroupId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1865
1865
  }
1866
1866
  else {
1867
1867
  throw new Error("No value provided for input HTTP label: GroupId.");
@@ -1914,7 +1914,7 @@ const serializeAws_restJson1ListDeviceDefinitionVersionsCommand = async (input,
1914
1914
  if (labelValue.length <= 0) {
1915
1915
  throw new Error("Empty value provided for input HTTP label: DeviceDefinitionId.");
1916
1916
  }
1917
- resolvedPath = resolvedPath.replace("{DeviceDefinitionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1917
+ resolvedPath = resolvedPath.replace("{DeviceDefinitionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1918
1918
  }
1919
1919
  else {
1920
1920
  throw new Error("No value provided for input HTTP label: DeviceDefinitionId.");
@@ -1967,7 +1967,7 @@ const serializeAws_restJson1ListFunctionDefinitionVersionsCommand = async (input
1967
1967
  if (labelValue.length <= 0) {
1968
1968
  throw new Error("Empty value provided for input HTTP label: FunctionDefinitionId.");
1969
1969
  }
1970
- resolvedPath = resolvedPath.replace("{FunctionDefinitionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1970
+ resolvedPath = resolvedPath.replace("{FunctionDefinitionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1971
1971
  }
1972
1972
  else {
1973
1973
  throw new Error("No value provided for input HTTP label: FunctionDefinitionId.");
@@ -1999,7 +1999,7 @@ const serializeAws_restJson1ListGroupCertificateAuthoritiesCommand = async (inpu
1999
1999
  if (labelValue.length <= 0) {
2000
2000
  throw new Error("Empty value provided for input HTTP label: GroupId.");
2001
2001
  }
2002
- resolvedPath = resolvedPath.replace("{GroupId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
2002
+ resolvedPath = resolvedPath.replace("{GroupId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
2003
2003
  }
2004
2004
  else {
2005
2005
  throw new Error("No value provided for input HTTP label: GroupId.");
@@ -2046,7 +2046,7 @@ const serializeAws_restJson1ListGroupVersionsCommand = async (input, context) =>
2046
2046
  if (labelValue.length <= 0) {
2047
2047
  throw new Error("Empty value provided for input HTTP label: GroupId.");
2048
2048
  }
2049
- resolvedPath = resolvedPath.replace("{GroupId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
2049
+ resolvedPath = resolvedPath.replace("{GroupId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
2050
2050
  }
2051
2051
  else {
2052
2052
  throw new Error("No value provided for input HTTP label: GroupId.");
@@ -2099,7 +2099,7 @@ const serializeAws_restJson1ListLoggerDefinitionVersionsCommand = async (input,
2099
2099
  if (labelValue.length <= 0) {
2100
2100
  throw new Error("Empty value provided for input HTTP label: LoggerDefinitionId.");
2101
2101
  }
2102
- resolvedPath = resolvedPath.replace("{LoggerDefinitionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
2102
+ resolvedPath = resolvedPath.replace("{LoggerDefinitionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
2103
2103
  }
2104
2104
  else {
2105
2105
  throw new Error("No value provided for input HTTP label: LoggerDefinitionId.");
@@ -2152,7 +2152,7 @@ const serializeAws_restJson1ListResourceDefinitionVersionsCommand = async (input
2152
2152
  if (labelValue.length <= 0) {
2153
2153
  throw new Error("Empty value provided for input HTTP label: ResourceDefinitionId.");
2154
2154
  }
2155
- resolvedPath = resolvedPath.replace("{ResourceDefinitionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
2155
+ resolvedPath = resolvedPath.replace("{ResourceDefinitionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
2156
2156
  }
2157
2157
  else {
2158
2158
  throw new Error("No value provided for input HTTP label: ResourceDefinitionId.");
@@ -2205,7 +2205,7 @@ const serializeAws_restJson1ListSubscriptionDefinitionVersionsCommand = async (i
2205
2205
  if (labelValue.length <= 0) {
2206
2206
  throw new Error("Empty value provided for input HTTP label: SubscriptionDefinitionId.");
2207
2207
  }
2208
- resolvedPath = resolvedPath.replace("{SubscriptionDefinitionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
2208
+ resolvedPath = resolvedPath.replace("{SubscriptionDefinitionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
2209
2209
  }
2210
2210
  else {
2211
2211
  throw new Error("No value provided for input HTTP label: SubscriptionDefinitionId.");
@@ -2236,7 +2236,7 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
2236
2236
  if (labelValue.length <= 0) {
2237
2237
  throw new Error("Empty value provided for input HTTP label: ResourceArn.");
2238
2238
  }
2239
- resolvedPath = resolvedPath.replace("{ResourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
2239
+ resolvedPath = resolvedPath.replace("{ResourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
2240
2240
  }
2241
2241
  else {
2242
2242
  throw new Error("No value provided for input HTTP label: ResourceArn.");
@@ -2266,7 +2266,7 @@ const serializeAws_restJson1ResetDeploymentsCommand = async (input, context) =>
2266
2266
  if (labelValue.length <= 0) {
2267
2267
  throw new Error("Empty value provided for input HTTP label: GroupId.");
2268
2268
  }
2269
- resolvedPath = resolvedPath.replace("{GroupId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
2269
+ resolvedPath = resolvedPath.replace("{GroupId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
2270
2270
  }
2271
2271
  else {
2272
2272
  throw new Error("No value provided for input HTTP label: GroupId.");
@@ -2321,7 +2321,7 @@ const serializeAws_restJson1StopBulkDeploymentCommand = async (input, context) =
2321
2321
  if (labelValue.length <= 0) {
2322
2322
  throw new Error("Empty value provided for input HTTP label: BulkDeploymentId.");
2323
2323
  }
2324
- resolvedPath = resolvedPath.replace("{BulkDeploymentId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
2324
+ resolvedPath = resolvedPath.replace("{BulkDeploymentId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
2325
2325
  }
2326
2326
  else {
2327
2327
  throw new Error("No value provided for input HTTP label: BulkDeploymentId.");
@@ -2349,7 +2349,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
2349
2349
  if (labelValue.length <= 0) {
2350
2350
  throw new Error("Empty value provided for input HTTP label: ResourceArn.");
2351
2351
  }
2352
- resolvedPath = resolvedPath.replace("{ResourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
2352
+ resolvedPath = resolvedPath.replace("{ResourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
2353
2353
  }
2354
2354
  else {
2355
2355
  throw new Error("No value provided for input HTTP label: ResourceArn.");
@@ -2378,7 +2378,7 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
2378
2378
  if (labelValue.length <= 0) {
2379
2379
  throw new Error("Empty value provided for input HTTP label: ResourceArn.");
2380
2380
  }
2381
- resolvedPath = resolvedPath.replace("{ResourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
2381
+ resolvedPath = resolvedPath.replace("{ResourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
2382
2382
  }
2383
2383
  else {
2384
2384
  throw new Error("No value provided for input HTTP label: ResourceArn.");
@@ -2411,7 +2411,7 @@ const serializeAws_restJson1UpdateConnectivityInfoCommand = async (input, contex
2411
2411
  if (labelValue.length <= 0) {
2412
2412
  throw new Error("Empty value provided for input HTTP label: ThingName.");
2413
2413
  }
2414
- resolvedPath = resolvedPath.replace("{ThingName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
2414
+ resolvedPath = resolvedPath.replace("{ThingName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
2415
2415
  }
2416
2416
  else {
2417
2417
  throw new Error("No value provided for input HTTP label: ThingName.");
@@ -2446,7 +2446,7 @@ const serializeAws_restJson1UpdateConnectorDefinitionCommand = async (input, con
2446
2446
  if (labelValue.length <= 0) {
2447
2447
  throw new Error("Empty value provided for input HTTP label: ConnectorDefinitionId.");
2448
2448
  }
2449
- resolvedPath = resolvedPath.replace("{ConnectorDefinitionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
2449
+ resolvedPath = resolvedPath.replace("{ConnectorDefinitionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
2450
2450
  }
2451
2451
  else {
2452
2452
  throw new Error("No value provided for input HTTP label: ConnectorDefinitionId.");
@@ -2478,7 +2478,7 @@ const serializeAws_restJson1UpdateCoreDefinitionCommand = async (input, context)
2478
2478
  if (labelValue.length <= 0) {
2479
2479
  throw new Error("Empty value provided for input HTTP label: CoreDefinitionId.");
2480
2480
  }
2481
- resolvedPath = resolvedPath.replace("{CoreDefinitionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
2481
+ resolvedPath = resolvedPath.replace("{CoreDefinitionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
2482
2482
  }
2483
2483
  else {
2484
2484
  throw new Error("No value provided for input HTTP label: CoreDefinitionId.");
@@ -2510,7 +2510,7 @@ const serializeAws_restJson1UpdateDeviceDefinitionCommand = async (input, contex
2510
2510
  if (labelValue.length <= 0) {
2511
2511
  throw new Error("Empty value provided for input HTTP label: DeviceDefinitionId.");
2512
2512
  }
2513
- resolvedPath = resolvedPath.replace("{DeviceDefinitionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
2513
+ resolvedPath = resolvedPath.replace("{DeviceDefinitionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
2514
2514
  }
2515
2515
  else {
2516
2516
  throw new Error("No value provided for input HTTP label: DeviceDefinitionId.");
@@ -2542,7 +2542,7 @@ const serializeAws_restJson1UpdateFunctionDefinitionCommand = async (input, cont
2542
2542
  if (labelValue.length <= 0) {
2543
2543
  throw new Error("Empty value provided for input HTTP label: FunctionDefinitionId.");
2544
2544
  }
2545
- resolvedPath = resolvedPath.replace("{FunctionDefinitionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
2545
+ resolvedPath = resolvedPath.replace("{FunctionDefinitionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
2546
2546
  }
2547
2547
  else {
2548
2548
  throw new Error("No value provided for input HTTP label: FunctionDefinitionId.");
@@ -2573,7 +2573,7 @@ const serializeAws_restJson1UpdateGroupCommand = async (input, context) => {
2573
2573
  if (labelValue.length <= 0) {
2574
2574
  throw new Error("Empty value provided for input HTTP label: GroupId.");
2575
2575
  }
2576
- resolvedPath = resolvedPath.replace("{GroupId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
2576
+ resolvedPath = resolvedPath.replace("{GroupId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
2577
2577
  }
2578
2578
  else {
2579
2579
  throw new Error("No value provided for input HTTP label: GroupId.");
@@ -2605,7 +2605,7 @@ const serializeAws_restJson1UpdateGroupCertificateConfigurationCommand = async (
2605
2605
  if (labelValue.length <= 0) {
2606
2606
  throw new Error("Empty value provided for input HTTP label: GroupId.");
2607
2607
  }
2608
- resolvedPath = resolvedPath.replace("{GroupId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
2608
+ resolvedPath = resolvedPath.replace("{GroupId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
2609
2609
  }
2610
2610
  else {
2611
2611
  throw new Error("No value provided for input HTTP label: GroupId.");
@@ -2640,7 +2640,7 @@ const serializeAws_restJson1UpdateLoggerDefinitionCommand = async (input, contex
2640
2640
  if (labelValue.length <= 0) {
2641
2641
  throw new Error("Empty value provided for input HTTP label: LoggerDefinitionId.");
2642
2642
  }
2643
- resolvedPath = resolvedPath.replace("{LoggerDefinitionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
2643
+ resolvedPath = resolvedPath.replace("{LoggerDefinitionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
2644
2644
  }
2645
2645
  else {
2646
2646
  throw new Error("No value provided for input HTTP label: LoggerDefinitionId.");
@@ -2672,7 +2672,7 @@ const serializeAws_restJson1UpdateResourceDefinitionCommand = async (input, cont
2672
2672
  if (labelValue.length <= 0) {
2673
2673
  throw new Error("Empty value provided for input HTTP label: ResourceDefinitionId.");
2674
2674
  }
2675
- resolvedPath = resolvedPath.replace("{ResourceDefinitionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
2675
+ resolvedPath = resolvedPath.replace("{ResourceDefinitionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
2676
2676
  }
2677
2677
  else {
2678
2678
  throw new Error("No value provided for input HTTP label: ResourceDefinitionId.");
@@ -2704,7 +2704,7 @@ const serializeAws_restJson1UpdateSubscriptionDefinitionCommand = async (input,
2704
2704
  if (labelValue.length <= 0) {
2705
2705
  throw new Error("Empty value provided for input HTTP label: SubscriptionDefinitionId.");
2706
2706
  }
2707
- resolvedPath = resolvedPath.replace("{SubscriptionDefinitionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
2707
+ resolvedPath = resolvedPath.replace("{SubscriptionDefinitionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
2708
2708
  }
2709
2709
  else {
2710
2710
  throw new Error("No value provided for input HTTP label: SubscriptionDefinitionId.");
@@ -2736,7 +2736,7 @@ const serializeAws_restJson1UpdateThingRuntimeConfigurationCommand = async (inpu
2736
2736
  if (labelValue.length <= 0) {
2737
2737
  throw new Error("Empty value provided for input HTTP label: ThingName.");
2738
2738
  }
2739
- resolvedPath = resolvedPath.replace("{ThingName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
2739
+ resolvedPath = resolvedPath.replace("{ThingName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
2740
2740
  }
2741
2741
  else {
2742
2742
  throw new Error("No value provided for input HTTP label: ThingName.");
@@ -2767,9 +2767,9 @@ const deserializeAws_restJson1AssociateRoleToGroupCommand = async (output, conte
2767
2767
  $metadata: deserializeMetadata(output),
2768
2768
  AssociatedAt: undefined,
2769
2769
  };
2770
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2770
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2771
2771
  if (data.AssociatedAt !== undefined && data.AssociatedAt !== null) {
2772
- contents.AssociatedAt = smithy_client_1.expectString(data.AssociatedAt);
2772
+ contents.AssociatedAt = (0, smithy_client_1.expectString)(data.AssociatedAt);
2773
2773
  }
2774
2774
  return Promise.resolve(contents);
2775
2775
  };
@@ -2796,7 +2796,7 @@ const deserializeAws_restJson1AssociateRoleToGroupCommandError = async (output,
2796
2796
  $fault: "client",
2797
2797
  $metadata: deserializeMetadata(output),
2798
2798
  });
2799
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2799
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2800
2800
  }
2801
2801
  };
2802
2802
  const deserializeAws_restJson1AssociateServiceRoleToAccountCommand = async (output, context) => {
@@ -2807,9 +2807,9 @@ const deserializeAws_restJson1AssociateServiceRoleToAccountCommand = async (outp
2807
2807
  $metadata: deserializeMetadata(output),
2808
2808
  AssociatedAt: undefined,
2809
2809
  };
2810
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2810
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2811
2811
  if (data.AssociatedAt !== undefined && data.AssociatedAt !== null) {
2812
- contents.AssociatedAt = smithy_client_1.expectString(data.AssociatedAt);
2812
+ contents.AssociatedAt = (0, smithy_client_1.expectString)(data.AssociatedAt);
2813
2813
  }
2814
2814
  return Promise.resolve(contents);
2815
2815
  };
@@ -2836,7 +2836,7 @@ const deserializeAws_restJson1AssociateServiceRoleToAccountCommandError = async
2836
2836
  $fault: "client",
2837
2837
  $metadata: deserializeMetadata(output),
2838
2838
  });
2839
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2839
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2840
2840
  }
2841
2841
  };
2842
2842
  const deserializeAws_restJson1CreateConnectorDefinitionCommand = async (output, context) => {
@@ -2853,27 +2853,27 @@ const deserializeAws_restJson1CreateConnectorDefinitionCommand = async (output,
2853
2853
  LatestVersionArn: undefined,
2854
2854
  Name: undefined,
2855
2855
  };
2856
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2856
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2857
2857
  if (data.Arn !== undefined && data.Arn !== null) {
2858
- contents.Arn = smithy_client_1.expectString(data.Arn);
2858
+ contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
2859
2859
  }
2860
2860
  if (data.CreationTimestamp !== undefined && data.CreationTimestamp !== null) {
2861
- contents.CreationTimestamp = smithy_client_1.expectString(data.CreationTimestamp);
2861
+ contents.CreationTimestamp = (0, smithy_client_1.expectString)(data.CreationTimestamp);
2862
2862
  }
2863
2863
  if (data.Id !== undefined && data.Id !== null) {
2864
- contents.Id = smithy_client_1.expectString(data.Id);
2864
+ contents.Id = (0, smithy_client_1.expectString)(data.Id);
2865
2865
  }
2866
2866
  if (data.LastUpdatedTimestamp !== undefined && data.LastUpdatedTimestamp !== null) {
2867
- contents.LastUpdatedTimestamp = smithy_client_1.expectString(data.LastUpdatedTimestamp);
2867
+ contents.LastUpdatedTimestamp = (0, smithy_client_1.expectString)(data.LastUpdatedTimestamp);
2868
2868
  }
2869
2869
  if (data.LatestVersion !== undefined && data.LatestVersion !== null) {
2870
- contents.LatestVersion = smithy_client_1.expectString(data.LatestVersion);
2870
+ contents.LatestVersion = (0, smithy_client_1.expectString)(data.LatestVersion);
2871
2871
  }
2872
2872
  if (data.LatestVersionArn !== undefined && data.LatestVersionArn !== null) {
2873
- contents.LatestVersionArn = smithy_client_1.expectString(data.LatestVersionArn);
2873
+ contents.LatestVersionArn = (0, smithy_client_1.expectString)(data.LatestVersionArn);
2874
2874
  }
2875
2875
  if (data.Name !== undefined && data.Name !== null) {
2876
- contents.Name = smithy_client_1.expectString(data.Name);
2876
+ contents.Name = (0, smithy_client_1.expectString)(data.Name);
2877
2877
  }
2878
2878
  return Promise.resolve(contents);
2879
2879
  };
@@ -2897,7 +2897,7 @@ const deserializeAws_restJson1CreateConnectorDefinitionCommandError = async (out
2897
2897
  $fault: "client",
2898
2898
  $metadata: deserializeMetadata(output),
2899
2899
  });
2900
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2900
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2901
2901
  }
2902
2902
  };
2903
2903
  const deserializeAws_restJson1CreateConnectorDefinitionVersionCommand = async (output, context) => {
@@ -2911,18 +2911,18 @@ const deserializeAws_restJson1CreateConnectorDefinitionVersionCommand = async (o
2911
2911
  Id: undefined,
2912
2912
  Version: undefined,
2913
2913
  };
2914
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2914
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2915
2915
  if (data.Arn !== undefined && data.Arn !== null) {
2916
- contents.Arn = smithy_client_1.expectString(data.Arn);
2916
+ contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
2917
2917
  }
2918
2918
  if (data.CreationTimestamp !== undefined && data.CreationTimestamp !== null) {
2919
- contents.CreationTimestamp = smithy_client_1.expectString(data.CreationTimestamp);
2919
+ contents.CreationTimestamp = (0, smithy_client_1.expectString)(data.CreationTimestamp);
2920
2920
  }
2921
2921
  if (data.Id !== undefined && data.Id !== null) {
2922
- contents.Id = smithy_client_1.expectString(data.Id);
2922
+ contents.Id = (0, smithy_client_1.expectString)(data.Id);
2923
2923
  }
2924
2924
  if (data.Version !== undefined && data.Version !== null) {
2925
- contents.Version = smithy_client_1.expectString(data.Version);
2925
+ contents.Version = (0, smithy_client_1.expectString)(data.Version);
2926
2926
  }
2927
2927
  return Promise.resolve(contents);
2928
2928
  };
@@ -2946,7 +2946,7 @@ const deserializeAws_restJson1CreateConnectorDefinitionVersionCommandError = asy
2946
2946
  $fault: "client",
2947
2947
  $metadata: deserializeMetadata(output),
2948
2948
  });
2949
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2949
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2950
2950
  }
2951
2951
  };
2952
2952
  const deserializeAws_restJson1CreateCoreDefinitionCommand = async (output, context) => {
@@ -2963,27 +2963,27 @@ const deserializeAws_restJson1CreateCoreDefinitionCommand = async (output, conte
2963
2963
  LatestVersionArn: undefined,
2964
2964
  Name: undefined,
2965
2965
  };
2966
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2966
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2967
2967
  if (data.Arn !== undefined && data.Arn !== null) {
2968
- contents.Arn = smithy_client_1.expectString(data.Arn);
2968
+ contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
2969
2969
  }
2970
2970
  if (data.CreationTimestamp !== undefined && data.CreationTimestamp !== null) {
2971
- contents.CreationTimestamp = smithy_client_1.expectString(data.CreationTimestamp);
2971
+ contents.CreationTimestamp = (0, smithy_client_1.expectString)(data.CreationTimestamp);
2972
2972
  }
2973
2973
  if (data.Id !== undefined && data.Id !== null) {
2974
- contents.Id = smithy_client_1.expectString(data.Id);
2974
+ contents.Id = (0, smithy_client_1.expectString)(data.Id);
2975
2975
  }
2976
2976
  if (data.LastUpdatedTimestamp !== undefined && data.LastUpdatedTimestamp !== null) {
2977
- contents.LastUpdatedTimestamp = smithy_client_1.expectString(data.LastUpdatedTimestamp);
2977
+ contents.LastUpdatedTimestamp = (0, smithy_client_1.expectString)(data.LastUpdatedTimestamp);
2978
2978
  }
2979
2979
  if (data.LatestVersion !== undefined && data.LatestVersion !== null) {
2980
- contents.LatestVersion = smithy_client_1.expectString(data.LatestVersion);
2980
+ contents.LatestVersion = (0, smithy_client_1.expectString)(data.LatestVersion);
2981
2981
  }
2982
2982
  if (data.LatestVersionArn !== undefined && data.LatestVersionArn !== null) {
2983
- contents.LatestVersionArn = smithy_client_1.expectString(data.LatestVersionArn);
2983
+ contents.LatestVersionArn = (0, smithy_client_1.expectString)(data.LatestVersionArn);
2984
2984
  }
2985
2985
  if (data.Name !== undefined && data.Name !== null) {
2986
- contents.Name = smithy_client_1.expectString(data.Name);
2986
+ contents.Name = (0, smithy_client_1.expectString)(data.Name);
2987
2987
  }
2988
2988
  return Promise.resolve(contents);
2989
2989
  };
@@ -3007,7 +3007,7 @@ const deserializeAws_restJson1CreateCoreDefinitionCommandError = async (output,
3007
3007
  $fault: "client",
3008
3008
  $metadata: deserializeMetadata(output),
3009
3009
  });
3010
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3010
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3011
3011
  }
3012
3012
  };
3013
3013
  const deserializeAws_restJson1CreateCoreDefinitionVersionCommand = async (output, context) => {
@@ -3021,18 +3021,18 @@ const deserializeAws_restJson1CreateCoreDefinitionVersionCommand = async (output
3021
3021
  Id: undefined,
3022
3022
  Version: undefined,
3023
3023
  };
3024
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3024
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3025
3025
  if (data.Arn !== undefined && data.Arn !== null) {
3026
- contents.Arn = smithy_client_1.expectString(data.Arn);
3026
+ contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
3027
3027
  }
3028
3028
  if (data.CreationTimestamp !== undefined && data.CreationTimestamp !== null) {
3029
- contents.CreationTimestamp = smithy_client_1.expectString(data.CreationTimestamp);
3029
+ contents.CreationTimestamp = (0, smithy_client_1.expectString)(data.CreationTimestamp);
3030
3030
  }
3031
3031
  if (data.Id !== undefined && data.Id !== null) {
3032
- contents.Id = smithy_client_1.expectString(data.Id);
3032
+ contents.Id = (0, smithy_client_1.expectString)(data.Id);
3033
3033
  }
3034
3034
  if (data.Version !== undefined && data.Version !== null) {
3035
- contents.Version = smithy_client_1.expectString(data.Version);
3035
+ contents.Version = (0, smithy_client_1.expectString)(data.Version);
3036
3036
  }
3037
3037
  return Promise.resolve(contents);
3038
3038
  };
@@ -3056,7 +3056,7 @@ const deserializeAws_restJson1CreateCoreDefinitionVersionCommandError = async (o
3056
3056
  $fault: "client",
3057
3057
  $metadata: deserializeMetadata(output),
3058
3058
  });
3059
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3059
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3060
3060
  }
3061
3061
  };
3062
3062
  const deserializeAws_restJson1CreateDeploymentCommand = async (output, context) => {
@@ -3068,12 +3068,12 @@ const deserializeAws_restJson1CreateDeploymentCommand = async (output, context)
3068
3068
  DeploymentArn: undefined,
3069
3069
  DeploymentId: undefined,
3070
3070
  };
3071
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3071
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3072
3072
  if (data.DeploymentArn !== undefined && data.DeploymentArn !== null) {
3073
- contents.DeploymentArn = smithy_client_1.expectString(data.DeploymentArn);
3073
+ contents.DeploymentArn = (0, smithy_client_1.expectString)(data.DeploymentArn);
3074
3074
  }
3075
3075
  if (data.DeploymentId !== undefined && data.DeploymentId !== null) {
3076
- contents.DeploymentId = smithy_client_1.expectString(data.DeploymentId);
3076
+ contents.DeploymentId = (0, smithy_client_1.expectString)(data.DeploymentId);
3077
3077
  }
3078
3078
  return Promise.resolve(contents);
3079
3079
  };
@@ -3097,7 +3097,7 @@ const deserializeAws_restJson1CreateDeploymentCommandError = async (output, cont
3097
3097
  $fault: "client",
3098
3098
  $metadata: deserializeMetadata(output),
3099
3099
  });
3100
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3100
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3101
3101
  }
3102
3102
  };
3103
3103
  const deserializeAws_restJson1CreateDeviceDefinitionCommand = async (output, context) => {
@@ -3114,27 +3114,27 @@ const deserializeAws_restJson1CreateDeviceDefinitionCommand = async (output, con
3114
3114
  LatestVersionArn: undefined,
3115
3115
  Name: undefined,
3116
3116
  };
3117
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3117
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3118
3118
  if (data.Arn !== undefined && data.Arn !== null) {
3119
- contents.Arn = smithy_client_1.expectString(data.Arn);
3119
+ contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
3120
3120
  }
3121
3121
  if (data.CreationTimestamp !== undefined && data.CreationTimestamp !== null) {
3122
- contents.CreationTimestamp = smithy_client_1.expectString(data.CreationTimestamp);
3122
+ contents.CreationTimestamp = (0, smithy_client_1.expectString)(data.CreationTimestamp);
3123
3123
  }
3124
3124
  if (data.Id !== undefined && data.Id !== null) {
3125
- contents.Id = smithy_client_1.expectString(data.Id);
3125
+ contents.Id = (0, smithy_client_1.expectString)(data.Id);
3126
3126
  }
3127
3127
  if (data.LastUpdatedTimestamp !== undefined && data.LastUpdatedTimestamp !== null) {
3128
- contents.LastUpdatedTimestamp = smithy_client_1.expectString(data.LastUpdatedTimestamp);
3128
+ contents.LastUpdatedTimestamp = (0, smithy_client_1.expectString)(data.LastUpdatedTimestamp);
3129
3129
  }
3130
3130
  if (data.LatestVersion !== undefined && data.LatestVersion !== null) {
3131
- contents.LatestVersion = smithy_client_1.expectString(data.LatestVersion);
3131
+ contents.LatestVersion = (0, smithy_client_1.expectString)(data.LatestVersion);
3132
3132
  }
3133
3133
  if (data.LatestVersionArn !== undefined && data.LatestVersionArn !== null) {
3134
- contents.LatestVersionArn = smithy_client_1.expectString(data.LatestVersionArn);
3134
+ contents.LatestVersionArn = (0, smithy_client_1.expectString)(data.LatestVersionArn);
3135
3135
  }
3136
3136
  if (data.Name !== undefined && data.Name !== null) {
3137
- contents.Name = smithy_client_1.expectString(data.Name);
3137
+ contents.Name = (0, smithy_client_1.expectString)(data.Name);
3138
3138
  }
3139
3139
  return Promise.resolve(contents);
3140
3140
  };
@@ -3158,7 +3158,7 @@ const deserializeAws_restJson1CreateDeviceDefinitionCommandError = async (output
3158
3158
  $fault: "client",
3159
3159
  $metadata: deserializeMetadata(output),
3160
3160
  });
3161
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3161
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3162
3162
  }
3163
3163
  };
3164
3164
  const deserializeAws_restJson1CreateDeviceDefinitionVersionCommand = async (output, context) => {
@@ -3172,18 +3172,18 @@ const deserializeAws_restJson1CreateDeviceDefinitionVersionCommand = async (outp
3172
3172
  Id: undefined,
3173
3173
  Version: undefined,
3174
3174
  };
3175
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3175
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3176
3176
  if (data.Arn !== undefined && data.Arn !== null) {
3177
- contents.Arn = smithy_client_1.expectString(data.Arn);
3177
+ contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
3178
3178
  }
3179
3179
  if (data.CreationTimestamp !== undefined && data.CreationTimestamp !== null) {
3180
- contents.CreationTimestamp = smithy_client_1.expectString(data.CreationTimestamp);
3180
+ contents.CreationTimestamp = (0, smithy_client_1.expectString)(data.CreationTimestamp);
3181
3181
  }
3182
3182
  if (data.Id !== undefined && data.Id !== null) {
3183
- contents.Id = smithy_client_1.expectString(data.Id);
3183
+ contents.Id = (0, smithy_client_1.expectString)(data.Id);
3184
3184
  }
3185
3185
  if (data.Version !== undefined && data.Version !== null) {
3186
- contents.Version = smithy_client_1.expectString(data.Version);
3186
+ contents.Version = (0, smithy_client_1.expectString)(data.Version);
3187
3187
  }
3188
3188
  return Promise.resolve(contents);
3189
3189
  };
@@ -3207,7 +3207,7 @@ const deserializeAws_restJson1CreateDeviceDefinitionVersionCommandError = async
3207
3207
  $fault: "client",
3208
3208
  $metadata: deserializeMetadata(output),
3209
3209
  });
3210
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3210
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3211
3211
  }
3212
3212
  };
3213
3213
  const deserializeAws_restJson1CreateFunctionDefinitionCommand = async (output, context) => {
@@ -3224,27 +3224,27 @@ const deserializeAws_restJson1CreateFunctionDefinitionCommand = async (output, c
3224
3224
  LatestVersionArn: undefined,
3225
3225
  Name: undefined,
3226
3226
  };
3227
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3227
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3228
3228
  if (data.Arn !== undefined && data.Arn !== null) {
3229
- contents.Arn = smithy_client_1.expectString(data.Arn);
3229
+ contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
3230
3230
  }
3231
3231
  if (data.CreationTimestamp !== undefined && data.CreationTimestamp !== null) {
3232
- contents.CreationTimestamp = smithy_client_1.expectString(data.CreationTimestamp);
3232
+ contents.CreationTimestamp = (0, smithy_client_1.expectString)(data.CreationTimestamp);
3233
3233
  }
3234
3234
  if (data.Id !== undefined && data.Id !== null) {
3235
- contents.Id = smithy_client_1.expectString(data.Id);
3235
+ contents.Id = (0, smithy_client_1.expectString)(data.Id);
3236
3236
  }
3237
3237
  if (data.LastUpdatedTimestamp !== undefined && data.LastUpdatedTimestamp !== null) {
3238
- contents.LastUpdatedTimestamp = smithy_client_1.expectString(data.LastUpdatedTimestamp);
3238
+ contents.LastUpdatedTimestamp = (0, smithy_client_1.expectString)(data.LastUpdatedTimestamp);
3239
3239
  }
3240
3240
  if (data.LatestVersion !== undefined && data.LatestVersion !== null) {
3241
- contents.LatestVersion = smithy_client_1.expectString(data.LatestVersion);
3241
+ contents.LatestVersion = (0, smithy_client_1.expectString)(data.LatestVersion);
3242
3242
  }
3243
3243
  if (data.LatestVersionArn !== undefined && data.LatestVersionArn !== null) {
3244
- contents.LatestVersionArn = smithy_client_1.expectString(data.LatestVersionArn);
3244
+ contents.LatestVersionArn = (0, smithy_client_1.expectString)(data.LatestVersionArn);
3245
3245
  }
3246
3246
  if (data.Name !== undefined && data.Name !== null) {
3247
- contents.Name = smithy_client_1.expectString(data.Name);
3247
+ contents.Name = (0, smithy_client_1.expectString)(data.Name);
3248
3248
  }
3249
3249
  return Promise.resolve(contents);
3250
3250
  };
@@ -3268,7 +3268,7 @@ const deserializeAws_restJson1CreateFunctionDefinitionCommandError = async (outp
3268
3268
  $fault: "client",
3269
3269
  $metadata: deserializeMetadata(output),
3270
3270
  });
3271
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3271
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3272
3272
  }
3273
3273
  };
3274
3274
  const deserializeAws_restJson1CreateFunctionDefinitionVersionCommand = async (output, context) => {
@@ -3282,18 +3282,18 @@ const deserializeAws_restJson1CreateFunctionDefinitionVersionCommand = async (ou
3282
3282
  Id: undefined,
3283
3283
  Version: undefined,
3284
3284
  };
3285
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3285
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3286
3286
  if (data.Arn !== undefined && data.Arn !== null) {
3287
- contents.Arn = smithy_client_1.expectString(data.Arn);
3287
+ contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
3288
3288
  }
3289
3289
  if (data.CreationTimestamp !== undefined && data.CreationTimestamp !== null) {
3290
- contents.CreationTimestamp = smithy_client_1.expectString(data.CreationTimestamp);
3290
+ contents.CreationTimestamp = (0, smithy_client_1.expectString)(data.CreationTimestamp);
3291
3291
  }
3292
3292
  if (data.Id !== undefined && data.Id !== null) {
3293
- contents.Id = smithy_client_1.expectString(data.Id);
3293
+ contents.Id = (0, smithy_client_1.expectString)(data.Id);
3294
3294
  }
3295
3295
  if (data.Version !== undefined && data.Version !== null) {
3296
- contents.Version = smithy_client_1.expectString(data.Version);
3296
+ contents.Version = (0, smithy_client_1.expectString)(data.Version);
3297
3297
  }
3298
3298
  return Promise.resolve(contents);
3299
3299
  };
@@ -3317,7 +3317,7 @@ const deserializeAws_restJson1CreateFunctionDefinitionVersionCommandError = asyn
3317
3317
  $fault: "client",
3318
3318
  $metadata: deserializeMetadata(output),
3319
3319
  });
3320
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3320
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3321
3321
  }
3322
3322
  };
3323
3323
  const deserializeAws_restJson1CreateGroupCommand = async (output, context) => {
@@ -3334,27 +3334,27 @@ const deserializeAws_restJson1CreateGroupCommand = async (output, context) => {
3334
3334
  LatestVersionArn: undefined,
3335
3335
  Name: undefined,
3336
3336
  };
3337
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3337
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3338
3338
  if (data.Arn !== undefined && data.Arn !== null) {
3339
- contents.Arn = smithy_client_1.expectString(data.Arn);
3339
+ contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
3340
3340
  }
3341
3341
  if (data.CreationTimestamp !== undefined && data.CreationTimestamp !== null) {
3342
- contents.CreationTimestamp = smithy_client_1.expectString(data.CreationTimestamp);
3342
+ contents.CreationTimestamp = (0, smithy_client_1.expectString)(data.CreationTimestamp);
3343
3343
  }
3344
3344
  if (data.Id !== undefined && data.Id !== null) {
3345
- contents.Id = smithy_client_1.expectString(data.Id);
3345
+ contents.Id = (0, smithy_client_1.expectString)(data.Id);
3346
3346
  }
3347
3347
  if (data.LastUpdatedTimestamp !== undefined && data.LastUpdatedTimestamp !== null) {
3348
- contents.LastUpdatedTimestamp = smithy_client_1.expectString(data.LastUpdatedTimestamp);
3348
+ contents.LastUpdatedTimestamp = (0, smithy_client_1.expectString)(data.LastUpdatedTimestamp);
3349
3349
  }
3350
3350
  if (data.LatestVersion !== undefined && data.LatestVersion !== null) {
3351
- contents.LatestVersion = smithy_client_1.expectString(data.LatestVersion);
3351
+ contents.LatestVersion = (0, smithy_client_1.expectString)(data.LatestVersion);
3352
3352
  }
3353
3353
  if (data.LatestVersionArn !== undefined && data.LatestVersionArn !== null) {
3354
- contents.LatestVersionArn = smithy_client_1.expectString(data.LatestVersionArn);
3354
+ contents.LatestVersionArn = (0, smithy_client_1.expectString)(data.LatestVersionArn);
3355
3355
  }
3356
3356
  if (data.Name !== undefined && data.Name !== null) {
3357
- contents.Name = smithy_client_1.expectString(data.Name);
3357
+ contents.Name = (0, smithy_client_1.expectString)(data.Name);
3358
3358
  }
3359
3359
  return Promise.resolve(contents);
3360
3360
  };
@@ -3378,7 +3378,7 @@ const deserializeAws_restJson1CreateGroupCommandError = async (output, context)
3378
3378
  $fault: "client",
3379
3379
  $metadata: deserializeMetadata(output),
3380
3380
  });
3381
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3381
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3382
3382
  }
3383
3383
  };
3384
3384
  const deserializeAws_restJson1CreateGroupCertificateAuthorityCommand = async (output, context) => {
@@ -3389,9 +3389,9 @@ const deserializeAws_restJson1CreateGroupCertificateAuthorityCommand = async (ou
3389
3389
  $metadata: deserializeMetadata(output),
3390
3390
  GroupCertificateAuthorityArn: undefined,
3391
3391
  };
3392
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3392
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3393
3393
  if (data.GroupCertificateAuthorityArn !== undefined && data.GroupCertificateAuthorityArn !== null) {
3394
- contents.GroupCertificateAuthorityArn = smithy_client_1.expectString(data.GroupCertificateAuthorityArn);
3394
+ contents.GroupCertificateAuthorityArn = (0, smithy_client_1.expectString)(data.GroupCertificateAuthorityArn);
3395
3395
  }
3396
3396
  return Promise.resolve(contents);
3397
3397
  };
@@ -3418,7 +3418,7 @@ const deserializeAws_restJson1CreateGroupCertificateAuthorityCommandError = asyn
3418
3418
  $fault: "client",
3419
3419
  $metadata: deserializeMetadata(output),
3420
3420
  });
3421
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3421
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3422
3422
  }
3423
3423
  };
3424
3424
  const deserializeAws_restJson1CreateGroupVersionCommand = async (output, context) => {
@@ -3432,18 +3432,18 @@ const deserializeAws_restJson1CreateGroupVersionCommand = async (output, context
3432
3432
  Id: undefined,
3433
3433
  Version: undefined,
3434
3434
  };
3435
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3435
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3436
3436
  if (data.Arn !== undefined && data.Arn !== null) {
3437
- contents.Arn = smithy_client_1.expectString(data.Arn);
3437
+ contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
3438
3438
  }
3439
3439
  if (data.CreationTimestamp !== undefined && data.CreationTimestamp !== null) {
3440
- contents.CreationTimestamp = smithy_client_1.expectString(data.CreationTimestamp);
3440
+ contents.CreationTimestamp = (0, smithy_client_1.expectString)(data.CreationTimestamp);
3441
3441
  }
3442
3442
  if (data.Id !== undefined && data.Id !== null) {
3443
- contents.Id = smithy_client_1.expectString(data.Id);
3443
+ contents.Id = (0, smithy_client_1.expectString)(data.Id);
3444
3444
  }
3445
3445
  if (data.Version !== undefined && data.Version !== null) {
3446
- contents.Version = smithy_client_1.expectString(data.Version);
3446
+ contents.Version = (0, smithy_client_1.expectString)(data.Version);
3447
3447
  }
3448
3448
  return Promise.resolve(contents);
3449
3449
  };
@@ -3467,7 +3467,7 @@ const deserializeAws_restJson1CreateGroupVersionCommandError = async (output, co
3467
3467
  $fault: "client",
3468
3468
  $metadata: deserializeMetadata(output),
3469
3469
  });
3470
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3470
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3471
3471
  }
3472
3472
  };
3473
3473
  const deserializeAws_restJson1CreateLoggerDefinitionCommand = async (output, context) => {
@@ -3484,27 +3484,27 @@ const deserializeAws_restJson1CreateLoggerDefinitionCommand = async (output, con
3484
3484
  LatestVersionArn: undefined,
3485
3485
  Name: undefined,
3486
3486
  };
3487
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3487
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3488
3488
  if (data.Arn !== undefined && data.Arn !== null) {
3489
- contents.Arn = smithy_client_1.expectString(data.Arn);
3489
+ contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
3490
3490
  }
3491
3491
  if (data.CreationTimestamp !== undefined && data.CreationTimestamp !== null) {
3492
- contents.CreationTimestamp = smithy_client_1.expectString(data.CreationTimestamp);
3492
+ contents.CreationTimestamp = (0, smithy_client_1.expectString)(data.CreationTimestamp);
3493
3493
  }
3494
3494
  if (data.Id !== undefined && data.Id !== null) {
3495
- contents.Id = smithy_client_1.expectString(data.Id);
3495
+ contents.Id = (0, smithy_client_1.expectString)(data.Id);
3496
3496
  }
3497
3497
  if (data.LastUpdatedTimestamp !== undefined && data.LastUpdatedTimestamp !== null) {
3498
- contents.LastUpdatedTimestamp = smithy_client_1.expectString(data.LastUpdatedTimestamp);
3498
+ contents.LastUpdatedTimestamp = (0, smithy_client_1.expectString)(data.LastUpdatedTimestamp);
3499
3499
  }
3500
3500
  if (data.LatestVersion !== undefined && data.LatestVersion !== null) {
3501
- contents.LatestVersion = smithy_client_1.expectString(data.LatestVersion);
3501
+ contents.LatestVersion = (0, smithy_client_1.expectString)(data.LatestVersion);
3502
3502
  }
3503
3503
  if (data.LatestVersionArn !== undefined && data.LatestVersionArn !== null) {
3504
- contents.LatestVersionArn = smithy_client_1.expectString(data.LatestVersionArn);
3504
+ contents.LatestVersionArn = (0, smithy_client_1.expectString)(data.LatestVersionArn);
3505
3505
  }
3506
3506
  if (data.Name !== undefined && data.Name !== null) {
3507
- contents.Name = smithy_client_1.expectString(data.Name);
3507
+ contents.Name = (0, smithy_client_1.expectString)(data.Name);
3508
3508
  }
3509
3509
  return Promise.resolve(contents);
3510
3510
  };
@@ -3528,7 +3528,7 @@ const deserializeAws_restJson1CreateLoggerDefinitionCommandError = async (output
3528
3528
  $fault: "client",
3529
3529
  $metadata: deserializeMetadata(output),
3530
3530
  });
3531
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3531
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3532
3532
  }
3533
3533
  };
3534
3534
  const deserializeAws_restJson1CreateLoggerDefinitionVersionCommand = async (output, context) => {
@@ -3542,18 +3542,18 @@ const deserializeAws_restJson1CreateLoggerDefinitionVersionCommand = async (outp
3542
3542
  Id: undefined,
3543
3543
  Version: undefined,
3544
3544
  };
3545
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3545
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3546
3546
  if (data.Arn !== undefined && data.Arn !== null) {
3547
- contents.Arn = smithy_client_1.expectString(data.Arn);
3547
+ contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
3548
3548
  }
3549
3549
  if (data.CreationTimestamp !== undefined && data.CreationTimestamp !== null) {
3550
- contents.CreationTimestamp = smithy_client_1.expectString(data.CreationTimestamp);
3550
+ contents.CreationTimestamp = (0, smithy_client_1.expectString)(data.CreationTimestamp);
3551
3551
  }
3552
3552
  if (data.Id !== undefined && data.Id !== null) {
3553
- contents.Id = smithy_client_1.expectString(data.Id);
3553
+ contents.Id = (0, smithy_client_1.expectString)(data.Id);
3554
3554
  }
3555
3555
  if (data.Version !== undefined && data.Version !== null) {
3556
- contents.Version = smithy_client_1.expectString(data.Version);
3556
+ contents.Version = (0, smithy_client_1.expectString)(data.Version);
3557
3557
  }
3558
3558
  return Promise.resolve(contents);
3559
3559
  };
@@ -3577,7 +3577,7 @@ const deserializeAws_restJson1CreateLoggerDefinitionVersionCommandError = async
3577
3577
  $fault: "client",
3578
3578
  $metadata: deserializeMetadata(output),
3579
3579
  });
3580
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3580
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3581
3581
  }
3582
3582
  };
3583
3583
  const deserializeAws_restJson1CreateResourceDefinitionCommand = async (output, context) => {
@@ -3594,27 +3594,27 @@ const deserializeAws_restJson1CreateResourceDefinitionCommand = async (output, c
3594
3594
  LatestVersionArn: undefined,
3595
3595
  Name: undefined,
3596
3596
  };
3597
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3597
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3598
3598
  if (data.Arn !== undefined && data.Arn !== null) {
3599
- contents.Arn = smithy_client_1.expectString(data.Arn);
3599
+ contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
3600
3600
  }
3601
3601
  if (data.CreationTimestamp !== undefined && data.CreationTimestamp !== null) {
3602
- contents.CreationTimestamp = smithy_client_1.expectString(data.CreationTimestamp);
3602
+ contents.CreationTimestamp = (0, smithy_client_1.expectString)(data.CreationTimestamp);
3603
3603
  }
3604
3604
  if (data.Id !== undefined && data.Id !== null) {
3605
- contents.Id = smithy_client_1.expectString(data.Id);
3605
+ contents.Id = (0, smithy_client_1.expectString)(data.Id);
3606
3606
  }
3607
3607
  if (data.LastUpdatedTimestamp !== undefined && data.LastUpdatedTimestamp !== null) {
3608
- contents.LastUpdatedTimestamp = smithy_client_1.expectString(data.LastUpdatedTimestamp);
3608
+ contents.LastUpdatedTimestamp = (0, smithy_client_1.expectString)(data.LastUpdatedTimestamp);
3609
3609
  }
3610
3610
  if (data.LatestVersion !== undefined && data.LatestVersion !== null) {
3611
- contents.LatestVersion = smithy_client_1.expectString(data.LatestVersion);
3611
+ contents.LatestVersion = (0, smithy_client_1.expectString)(data.LatestVersion);
3612
3612
  }
3613
3613
  if (data.LatestVersionArn !== undefined && data.LatestVersionArn !== null) {
3614
- contents.LatestVersionArn = smithy_client_1.expectString(data.LatestVersionArn);
3614
+ contents.LatestVersionArn = (0, smithy_client_1.expectString)(data.LatestVersionArn);
3615
3615
  }
3616
3616
  if (data.Name !== undefined && data.Name !== null) {
3617
- contents.Name = smithy_client_1.expectString(data.Name);
3617
+ contents.Name = (0, smithy_client_1.expectString)(data.Name);
3618
3618
  }
3619
3619
  return Promise.resolve(contents);
3620
3620
  };
@@ -3638,7 +3638,7 @@ const deserializeAws_restJson1CreateResourceDefinitionCommandError = async (outp
3638
3638
  $fault: "client",
3639
3639
  $metadata: deserializeMetadata(output),
3640
3640
  });
3641
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3641
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3642
3642
  }
3643
3643
  };
3644
3644
  const deserializeAws_restJson1CreateResourceDefinitionVersionCommand = async (output, context) => {
@@ -3652,18 +3652,18 @@ const deserializeAws_restJson1CreateResourceDefinitionVersionCommand = async (ou
3652
3652
  Id: undefined,
3653
3653
  Version: undefined,
3654
3654
  };
3655
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3655
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3656
3656
  if (data.Arn !== undefined && data.Arn !== null) {
3657
- contents.Arn = smithy_client_1.expectString(data.Arn);
3657
+ contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
3658
3658
  }
3659
3659
  if (data.CreationTimestamp !== undefined && data.CreationTimestamp !== null) {
3660
- contents.CreationTimestamp = smithy_client_1.expectString(data.CreationTimestamp);
3660
+ contents.CreationTimestamp = (0, smithy_client_1.expectString)(data.CreationTimestamp);
3661
3661
  }
3662
3662
  if (data.Id !== undefined && data.Id !== null) {
3663
- contents.Id = smithy_client_1.expectString(data.Id);
3663
+ contents.Id = (0, smithy_client_1.expectString)(data.Id);
3664
3664
  }
3665
3665
  if (data.Version !== undefined && data.Version !== null) {
3666
- contents.Version = smithy_client_1.expectString(data.Version);
3666
+ contents.Version = (0, smithy_client_1.expectString)(data.Version);
3667
3667
  }
3668
3668
  return Promise.resolve(contents);
3669
3669
  };
@@ -3687,7 +3687,7 @@ const deserializeAws_restJson1CreateResourceDefinitionVersionCommandError = asyn
3687
3687
  $fault: "client",
3688
3688
  $metadata: deserializeMetadata(output),
3689
3689
  });
3690
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3690
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3691
3691
  }
3692
3692
  };
3693
3693
  const deserializeAws_restJson1CreateSoftwareUpdateJobCommand = async (output, context) => {
@@ -3700,15 +3700,15 @@ const deserializeAws_restJson1CreateSoftwareUpdateJobCommand = async (output, co
3700
3700
  IotJobId: undefined,
3701
3701
  PlatformSoftwareVersion: undefined,
3702
3702
  };
3703
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3703
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3704
3704
  if (data.IotJobArn !== undefined && data.IotJobArn !== null) {
3705
- contents.IotJobArn = smithy_client_1.expectString(data.IotJobArn);
3705
+ contents.IotJobArn = (0, smithy_client_1.expectString)(data.IotJobArn);
3706
3706
  }
3707
3707
  if (data.IotJobId !== undefined && data.IotJobId !== null) {
3708
- contents.IotJobId = smithy_client_1.expectString(data.IotJobId);
3708
+ contents.IotJobId = (0, smithy_client_1.expectString)(data.IotJobId);
3709
3709
  }
3710
3710
  if (data.PlatformSoftwareVersion !== undefined && data.PlatformSoftwareVersion !== null) {
3711
- contents.PlatformSoftwareVersion = smithy_client_1.expectString(data.PlatformSoftwareVersion);
3711
+ contents.PlatformSoftwareVersion = (0, smithy_client_1.expectString)(data.PlatformSoftwareVersion);
3712
3712
  }
3713
3713
  return Promise.resolve(contents);
3714
3714
  };
@@ -3735,7 +3735,7 @@ const deserializeAws_restJson1CreateSoftwareUpdateJobCommandError = async (outpu
3735
3735
  $fault: "client",
3736
3736
  $metadata: deserializeMetadata(output),
3737
3737
  });
3738
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3738
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3739
3739
  }
3740
3740
  };
3741
3741
  const deserializeAws_restJson1CreateSubscriptionDefinitionCommand = async (output, context) => {
@@ -3752,27 +3752,27 @@ const deserializeAws_restJson1CreateSubscriptionDefinitionCommand = async (outpu
3752
3752
  LatestVersionArn: undefined,
3753
3753
  Name: undefined,
3754
3754
  };
3755
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3755
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3756
3756
  if (data.Arn !== undefined && data.Arn !== null) {
3757
- contents.Arn = smithy_client_1.expectString(data.Arn);
3757
+ contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
3758
3758
  }
3759
3759
  if (data.CreationTimestamp !== undefined && data.CreationTimestamp !== null) {
3760
- contents.CreationTimestamp = smithy_client_1.expectString(data.CreationTimestamp);
3760
+ contents.CreationTimestamp = (0, smithy_client_1.expectString)(data.CreationTimestamp);
3761
3761
  }
3762
3762
  if (data.Id !== undefined && data.Id !== null) {
3763
- contents.Id = smithy_client_1.expectString(data.Id);
3763
+ contents.Id = (0, smithy_client_1.expectString)(data.Id);
3764
3764
  }
3765
3765
  if (data.LastUpdatedTimestamp !== undefined && data.LastUpdatedTimestamp !== null) {
3766
- contents.LastUpdatedTimestamp = smithy_client_1.expectString(data.LastUpdatedTimestamp);
3766
+ contents.LastUpdatedTimestamp = (0, smithy_client_1.expectString)(data.LastUpdatedTimestamp);
3767
3767
  }
3768
3768
  if (data.LatestVersion !== undefined && data.LatestVersion !== null) {
3769
- contents.LatestVersion = smithy_client_1.expectString(data.LatestVersion);
3769
+ contents.LatestVersion = (0, smithy_client_1.expectString)(data.LatestVersion);
3770
3770
  }
3771
3771
  if (data.LatestVersionArn !== undefined && data.LatestVersionArn !== null) {
3772
- contents.LatestVersionArn = smithy_client_1.expectString(data.LatestVersionArn);
3772
+ contents.LatestVersionArn = (0, smithy_client_1.expectString)(data.LatestVersionArn);
3773
3773
  }
3774
3774
  if (data.Name !== undefined && data.Name !== null) {
3775
- contents.Name = smithy_client_1.expectString(data.Name);
3775
+ contents.Name = (0, smithy_client_1.expectString)(data.Name);
3776
3776
  }
3777
3777
  return Promise.resolve(contents);
3778
3778
  };
@@ -3796,7 +3796,7 @@ const deserializeAws_restJson1CreateSubscriptionDefinitionCommandError = async (
3796
3796
  $fault: "client",
3797
3797
  $metadata: deserializeMetadata(output),
3798
3798
  });
3799
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3799
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3800
3800
  }
3801
3801
  };
3802
3802
  const deserializeAws_restJson1CreateSubscriptionDefinitionVersionCommand = async (output, context) => {
@@ -3810,18 +3810,18 @@ const deserializeAws_restJson1CreateSubscriptionDefinitionVersionCommand = async
3810
3810
  Id: undefined,
3811
3811
  Version: undefined,
3812
3812
  };
3813
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3813
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3814
3814
  if (data.Arn !== undefined && data.Arn !== null) {
3815
- contents.Arn = smithy_client_1.expectString(data.Arn);
3815
+ contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
3816
3816
  }
3817
3817
  if (data.CreationTimestamp !== undefined && data.CreationTimestamp !== null) {
3818
- contents.CreationTimestamp = smithy_client_1.expectString(data.CreationTimestamp);
3818
+ contents.CreationTimestamp = (0, smithy_client_1.expectString)(data.CreationTimestamp);
3819
3819
  }
3820
3820
  if (data.Id !== undefined && data.Id !== null) {
3821
- contents.Id = smithy_client_1.expectString(data.Id);
3821
+ contents.Id = (0, smithy_client_1.expectString)(data.Id);
3822
3822
  }
3823
3823
  if (data.Version !== undefined && data.Version !== null) {
3824
- contents.Version = smithy_client_1.expectString(data.Version);
3824
+ contents.Version = (0, smithy_client_1.expectString)(data.Version);
3825
3825
  }
3826
3826
  return Promise.resolve(contents);
3827
3827
  };
@@ -3845,7 +3845,7 @@ const deserializeAws_restJson1CreateSubscriptionDefinitionVersionCommandError =
3845
3845
  $fault: "client",
3846
3846
  $metadata: deserializeMetadata(output),
3847
3847
  });
3848
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3848
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3849
3849
  }
3850
3850
  };
3851
3851
  const deserializeAws_restJson1DeleteConnectorDefinitionCommand = async (output, context) => {
@@ -3878,7 +3878,7 @@ const deserializeAws_restJson1DeleteConnectorDefinitionCommandError = async (out
3878
3878
  $fault: "client",
3879
3879
  $metadata: deserializeMetadata(output),
3880
3880
  });
3881
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3881
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3882
3882
  }
3883
3883
  };
3884
3884
  const deserializeAws_restJson1DeleteCoreDefinitionCommand = async (output, context) => {
@@ -3911,7 +3911,7 @@ const deserializeAws_restJson1DeleteCoreDefinitionCommandError = async (output,
3911
3911
  $fault: "client",
3912
3912
  $metadata: deserializeMetadata(output),
3913
3913
  });
3914
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3914
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3915
3915
  }
3916
3916
  };
3917
3917
  const deserializeAws_restJson1DeleteDeviceDefinitionCommand = async (output, context) => {
@@ -3944,7 +3944,7 @@ const deserializeAws_restJson1DeleteDeviceDefinitionCommandError = async (output
3944
3944
  $fault: "client",
3945
3945
  $metadata: deserializeMetadata(output),
3946
3946
  });
3947
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3947
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3948
3948
  }
3949
3949
  };
3950
3950
  const deserializeAws_restJson1DeleteFunctionDefinitionCommand = async (output, context) => {
@@ -3977,7 +3977,7 @@ const deserializeAws_restJson1DeleteFunctionDefinitionCommandError = async (outp
3977
3977
  $fault: "client",
3978
3978
  $metadata: deserializeMetadata(output),
3979
3979
  });
3980
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3980
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3981
3981
  }
3982
3982
  };
3983
3983
  const deserializeAws_restJson1DeleteGroupCommand = async (output, context) => {
@@ -4010,7 +4010,7 @@ const deserializeAws_restJson1DeleteGroupCommandError = async (output, context)
4010
4010
  $fault: "client",
4011
4011
  $metadata: deserializeMetadata(output),
4012
4012
  });
4013
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4013
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4014
4014
  }
4015
4015
  };
4016
4016
  const deserializeAws_restJson1DeleteLoggerDefinitionCommand = async (output, context) => {
@@ -4043,7 +4043,7 @@ const deserializeAws_restJson1DeleteLoggerDefinitionCommandError = async (output
4043
4043
  $fault: "client",
4044
4044
  $metadata: deserializeMetadata(output),
4045
4045
  });
4046
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4046
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4047
4047
  }
4048
4048
  };
4049
4049
  const deserializeAws_restJson1DeleteResourceDefinitionCommand = async (output, context) => {
@@ -4076,7 +4076,7 @@ const deserializeAws_restJson1DeleteResourceDefinitionCommandError = async (outp
4076
4076
  $fault: "client",
4077
4077
  $metadata: deserializeMetadata(output),
4078
4078
  });
4079
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4079
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4080
4080
  }
4081
4081
  };
4082
4082
  const deserializeAws_restJson1DeleteSubscriptionDefinitionCommand = async (output, context) => {
@@ -4109,7 +4109,7 @@ const deserializeAws_restJson1DeleteSubscriptionDefinitionCommandError = async (
4109
4109
  $fault: "client",
4110
4110
  $metadata: deserializeMetadata(output),
4111
4111
  });
4112
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4112
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4113
4113
  }
4114
4114
  };
4115
4115
  const deserializeAws_restJson1DisassociateRoleFromGroupCommand = async (output, context) => {
@@ -4120,9 +4120,9 @@ const deserializeAws_restJson1DisassociateRoleFromGroupCommand = async (output,
4120
4120
  $metadata: deserializeMetadata(output),
4121
4121
  DisassociatedAt: undefined,
4122
4122
  };
4123
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4123
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4124
4124
  if (data.DisassociatedAt !== undefined && data.DisassociatedAt !== null) {
4125
- contents.DisassociatedAt = smithy_client_1.expectString(data.DisassociatedAt);
4125
+ contents.DisassociatedAt = (0, smithy_client_1.expectString)(data.DisassociatedAt);
4126
4126
  }
4127
4127
  return Promise.resolve(contents);
4128
4128
  };
@@ -4149,7 +4149,7 @@ const deserializeAws_restJson1DisassociateRoleFromGroupCommandError = async (out
4149
4149
  $fault: "client",
4150
4150
  $metadata: deserializeMetadata(output),
4151
4151
  });
4152
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4152
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4153
4153
  }
4154
4154
  };
4155
4155
  const deserializeAws_restJson1DisassociateServiceRoleFromAccountCommand = async (output, context) => {
@@ -4160,9 +4160,9 @@ const deserializeAws_restJson1DisassociateServiceRoleFromAccountCommand = async
4160
4160
  $metadata: deserializeMetadata(output),
4161
4161
  DisassociatedAt: undefined,
4162
4162
  };
4163
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4163
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4164
4164
  if (data.DisassociatedAt !== undefined && data.DisassociatedAt !== null) {
4165
- contents.DisassociatedAt = smithy_client_1.expectString(data.DisassociatedAt);
4165
+ contents.DisassociatedAt = (0, smithy_client_1.expectString)(data.DisassociatedAt);
4166
4166
  }
4167
4167
  return Promise.resolve(contents);
4168
4168
  };
@@ -4186,7 +4186,7 @@ const deserializeAws_restJson1DisassociateServiceRoleFromAccountCommandError = a
4186
4186
  $fault: "client",
4187
4187
  $metadata: deserializeMetadata(output),
4188
4188
  });
4189
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4189
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4190
4190
  }
4191
4191
  };
4192
4192
  const deserializeAws_restJson1GetAssociatedRoleCommand = async (output, context) => {
@@ -4198,12 +4198,12 @@ const deserializeAws_restJson1GetAssociatedRoleCommand = async (output, context)
4198
4198
  AssociatedAt: undefined,
4199
4199
  RoleArn: undefined,
4200
4200
  };
4201
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4201
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4202
4202
  if (data.AssociatedAt !== undefined && data.AssociatedAt !== null) {
4203
- contents.AssociatedAt = smithy_client_1.expectString(data.AssociatedAt);
4203
+ contents.AssociatedAt = (0, smithy_client_1.expectString)(data.AssociatedAt);
4204
4204
  }
4205
4205
  if (data.RoleArn !== undefined && data.RoleArn !== null) {
4206
- contents.RoleArn = smithy_client_1.expectString(data.RoleArn);
4206
+ contents.RoleArn = (0, smithy_client_1.expectString)(data.RoleArn);
4207
4207
  }
4208
4208
  return Promise.resolve(contents);
4209
4209
  };
@@ -4230,7 +4230,7 @@ const deserializeAws_restJson1GetAssociatedRoleCommandError = async (output, con
4230
4230
  $fault: "client",
4231
4231
  $metadata: deserializeMetadata(output),
4232
4232
  });
4233
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4233
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4234
4234
  }
4235
4235
  };
4236
4236
  const deserializeAws_restJson1GetBulkDeploymentStatusCommand = async (output, context) => {
@@ -4246,21 +4246,21 @@ const deserializeAws_restJson1GetBulkDeploymentStatusCommand = async (output, co
4246
4246
  ErrorMessage: undefined,
4247
4247
  tags: undefined,
4248
4248
  };
4249
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4249
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4250
4250
  if (data.BulkDeploymentMetrics !== undefined && data.BulkDeploymentMetrics !== null) {
4251
4251
  contents.BulkDeploymentMetrics = deserializeAws_restJson1BulkDeploymentMetrics(data.BulkDeploymentMetrics, context);
4252
4252
  }
4253
4253
  if (data.BulkDeploymentStatus !== undefined && data.BulkDeploymentStatus !== null) {
4254
- contents.BulkDeploymentStatus = smithy_client_1.expectString(data.BulkDeploymentStatus);
4254
+ contents.BulkDeploymentStatus = (0, smithy_client_1.expectString)(data.BulkDeploymentStatus);
4255
4255
  }
4256
4256
  if (data.CreatedAt !== undefined && data.CreatedAt !== null) {
4257
- contents.CreatedAt = smithy_client_1.expectString(data.CreatedAt);
4257
+ contents.CreatedAt = (0, smithy_client_1.expectString)(data.CreatedAt);
4258
4258
  }
4259
4259
  if (data.ErrorDetails !== undefined && data.ErrorDetails !== null) {
4260
4260
  contents.ErrorDetails = deserializeAws_restJson1ErrorDetails(data.ErrorDetails, context);
4261
4261
  }
4262
4262
  if (data.ErrorMessage !== undefined && data.ErrorMessage !== null) {
4263
- contents.ErrorMessage = smithy_client_1.expectString(data.ErrorMessage);
4263
+ contents.ErrorMessage = (0, smithy_client_1.expectString)(data.ErrorMessage);
4264
4264
  }
4265
4265
  if (data.tags !== undefined && data.tags !== null) {
4266
4266
  contents.tags = deserializeAws_restJson1Tags(data.tags, context);
@@ -4287,7 +4287,7 @@ const deserializeAws_restJson1GetBulkDeploymentStatusCommandError = async (outpu
4287
4287
  $fault: "client",
4288
4288
  $metadata: deserializeMetadata(output),
4289
4289
  });
4290
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4290
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4291
4291
  }
4292
4292
  };
4293
4293
  const deserializeAws_restJson1GetConnectivityInfoCommand = async (output, context) => {
@@ -4299,12 +4299,12 @@ const deserializeAws_restJson1GetConnectivityInfoCommand = async (output, contex
4299
4299
  ConnectivityInfo: undefined,
4300
4300
  Message: undefined,
4301
4301
  };
4302
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4302
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4303
4303
  if (data.ConnectivityInfo !== undefined && data.ConnectivityInfo !== null) {
4304
4304
  contents.ConnectivityInfo = deserializeAws_restJson1__listOfConnectivityInfo(data.ConnectivityInfo, context);
4305
4305
  }
4306
4306
  if (data.message !== undefined && data.message !== null) {
4307
- contents.Message = smithy_client_1.expectString(data.message);
4307
+ contents.Message = (0, smithy_client_1.expectString)(data.message);
4308
4308
  }
4309
4309
  return Promise.resolve(contents);
4310
4310
  };
@@ -4331,7 +4331,7 @@ const deserializeAws_restJson1GetConnectivityInfoCommandError = async (output, c
4331
4331
  $fault: "client",
4332
4332
  $metadata: deserializeMetadata(output),
4333
4333
  });
4334
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4334
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4335
4335
  }
4336
4336
  };
4337
4337
  const deserializeAws_restJson1GetConnectorDefinitionCommand = async (output, context) => {
@@ -4349,27 +4349,27 @@ const deserializeAws_restJson1GetConnectorDefinitionCommand = async (output, con
4349
4349
  Name: undefined,
4350
4350
  tags: undefined,
4351
4351
  };
4352
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4352
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4353
4353
  if (data.Arn !== undefined && data.Arn !== null) {
4354
- contents.Arn = smithy_client_1.expectString(data.Arn);
4354
+ contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
4355
4355
  }
4356
4356
  if (data.CreationTimestamp !== undefined && data.CreationTimestamp !== null) {
4357
- contents.CreationTimestamp = smithy_client_1.expectString(data.CreationTimestamp);
4357
+ contents.CreationTimestamp = (0, smithy_client_1.expectString)(data.CreationTimestamp);
4358
4358
  }
4359
4359
  if (data.Id !== undefined && data.Id !== null) {
4360
- contents.Id = smithy_client_1.expectString(data.Id);
4360
+ contents.Id = (0, smithy_client_1.expectString)(data.Id);
4361
4361
  }
4362
4362
  if (data.LastUpdatedTimestamp !== undefined && data.LastUpdatedTimestamp !== null) {
4363
- contents.LastUpdatedTimestamp = smithy_client_1.expectString(data.LastUpdatedTimestamp);
4363
+ contents.LastUpdatedTimestamp = (0, smithy_client_1.expectString)(data.LastUpdatedTimestamp);
4364
4364
  }
4365
4365
  if (data.LatestVersion !== undefined && data.LatestVersion !== null) {
4366
- contents.LatestVersion = smithy_client_1.expectString(data.LatestVersion);
4366
+ contents.LatestVersion = (0, smithy_client_1.expectString)(data.LatestVersion);
4367
4367
  }
4368
4368
  if (data.LatestVersionArn !== undefined && data.LatestVersionArn !== null) {
4369
- contents.LatestVersionArn = smithy_client_1.expectString(data.LatestVersionArn);
4369
+ contents.LatestVersionArn = (0, smithy_client_1.expectString)(data.LatestVersionArn);
4370
4370
  }
4371
4371
  if (data.Name !== undefined && data.Name !== null) {
4372
- contents.Name = smithy_client_1.expectString(data.Name);
4372
+ contents.Name = (0, smithy_client_1.expectString)(data.Name);
4373
4373
  }
4374
4374
  if (data.tags !== undefined && data.tags !== null) {
4375
4375
  contents.tags = deserializeAws_restJson1Tags(data.tags, context);
@@ -4396,7 +4396,7 @@ const deserializeAws_restJson1GetConnectorDefinitionCommandError = async (output
4396
4396
  $fault: "client",
4397
4397
  $metadata: deserializeMetadata(output),
4398
4398
  });
4399
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4399
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4400
4400
  }
4401
4401
  };
4402
4402
  const deserializeAws_restJson1GetConnectorDefinitionVersionCommand = async (output, context) => {
@@ -4412,24 +4412,24 @@ const deserializeAws_restJson1GetConnectorDefinitionVersionCommand = async (outp
4412
4412
  NextToken: undefined,
4413
4413
  Version: undefined,
4414
4414
  };
4415
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4415
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4416
4416
  if (data.Arn !== undefined && data.Arn !== null) {
4417
- contents.Arn = smithy_client_1.expectString(data.Arn);
4417
+ contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
4418
4418
  }
4419
4419
  if (data.CreationTimestamp !== undefined && data.CreationTimestamp !== null) {
4420
- contents.CreationTimestamp = smithy_client_1.expectString(data.CreationTimestamp);
4420
+ contents.CreationTimestamp = (0, smithy_client_1.expectString)(data.CreationTimestamp);
4421
4421
  }
4422
4422
  if (data.Definition !== undefined && data.Definition !== null) {
4423
4423
  contents.Definition = deserializeAws_restJson1ConnectorDefinitionVersion(data.Definition, context);
4424
4424
  }
4425
4425
  if (data.Id !== undefined && data.Id !== null) {
4426
- contents.Id = smithy_client_1.expectString(data.Id);
4426
+ contents.Id = (0, smithy_client_1.expectString)(data.Id);
4427
4427
  }
4428
4428
  if (data.NextToken !== undefined && data.NextToken !== null) {
4429
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
4429
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
4430
4430
  }
4431
4431
  if (data.Version !== undefined && data.Version !== null) {
4432
- contents.Version = smithy_client_1.expectString(data.Version);
4432
+ contents.Version = (0, smithy_client_1.expectString)(data.Version);
4433
4433
  }
4434
4434
  return Promise.resolve(contents);
4435
4435
  };
@@ -4453,7 +4453,7 @@ const deserializeAws_restJson1GetConnectorDefinitionVersionCommandError = async
4453
4453
  $fault: "client",
4454
4454
  $metadata: deserializeMetadata(output),
4455
4455
  });
4456
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4456
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4457
4457
  }
4458
4458
  };
4459
4459
  const deserializeAws_restJson1GetCoreDefinitionCommand = async (output, context) => {
@@ -4471,27 +4471,27 @@ const deserializeAws_restJson1GetCoreDefinitionCommand = async (output, context)
4471
4471
  Name: undefined,
4472
4472
  tags: undefined,
4473
4473
  };
4474
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4474
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4475
4475
  if (data.Arn !== undefined && data.Arn !== null) {
4476
- contents.Arn = smithy_client_1.expectString(data.Arn);
4476
+ contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
4477
4477
  }
4478
4478
  if (data.CreationTimestamp !== undefined && data.CreationTimestamp !== null) {
4479
- contents.CreationTimestamp = smithy_client_1.expectString(data.CreationTimestamp);
4479
+ contents.CreationTimestamp = (0, smithy_client_1.expectString)(data.CreationTimestamp);
4480
4480
  }
4481
4481
  if (data.Id !== undefined && data.Id !== null) {
4482
- contents.Id = smithy_client_1.expectString(data.Id);
4482
+ contents.Id = (0, smithy_client_1.expectString)(data.Id);
4483
4483
  }
4484
4484
  if (data.LastUpdatedTimestamp !== undefined && data.LastUpdatedTimestamp !== null) {
4485
- contents.LastUpdatedTimestamp = smithy_client_1.expectString(data.LastUpdatedTimestamp);
4485
+ contents.LastUpdatedTimestamp = (0, smithy_client_1.expectString)(data.LastUpdatedTimestamp);
4486
4486
  }
4487
4487
  if (data.LatestVersion !== undefined && data.LatestVersion !== null) {
4488
- contents.LatestVersion = smithy_client_1.expectString(data.LatestVersion);
4488
+ contents.LatestVersion = (0, smithy_client_1.expectString)(data.LatestVersion);
4489
4489
  }
4490
4490
  if (data.LatestVersionArn !== undefined && data.LatestVersionArn !== null) {
4491
- contents.LatestVersionArn = smithy_client_1.expectString(data.LatestVersionArn);
4491
+ contents.LatestVersionArn = (0, smithy_client_1.expectString)(data.LatestVersionArn);
4492
4492
  }
4493
4493
  if (data.Name !== undefined && data.Name !== null) {
4494
- contents.Name = smithy_client_1.expectString(data.Name);
4494
+ contents.Name = (0, smithy_client_1.expectString)(data.Name);
4495
4495
  }
4496
4496
  if (data.tags !== undefined && data.tags !== null) {
4497
4497
  contents.tags = deserializeAws_restJson1Tags(data.tags, context);
@@ -4518,7 +4518,7 @@ const deserializeAws_restJson1GetCoreDefinitionCommandError = async (output, con
4518
4518
  $fault: "client",
4519
4519
  $metadata: deserializeMetadata(output),
4520
4520
  });
4521
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4521
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4522
4522
  }
4523
4523
  };
4524
4524
  const deserializeAws_restJson1GetCoreDefinitionVersionCommand = async (output, context) => {
@@ -4534,24 +4534,24 @@ const deserializeAws_restJson1GetCoreDefinitionVersionCommand = async (output, c
4534
4534
  NextToken: undefined,
4535
4535
  Version: undefined,
4536
4536
  };
4537
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4537
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4538
4538
  if (data.Arn !== undefined && data.Arn !== null) {
4539
- contents.Arn = smithy_client_1.expectString(data.Arn);
4539
+ contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
4540
4540
  }
4541
4541
  if (data.CreationTimestamp !== undefined && data.CreationTimestamp !== null) {
4542
- contents.CreationTimestamp = smithy_client_1.expectString(data.CreationTimestamp);
4542
+ contents.CreationTimestamp = (0, smithy_client_1.expectString)(data.CreationTimestamp);
4543
4543
  }
4544
4544
  if (data.Definition !== undefined && data.Definition !== null) {
4545
4545
  contents.Definition = deserializeAws_restJson1CoreDefinitionVersion(data.Definition, context);
4546
4546
  }
4547
4547
  if (data.Id !== undefined && data.Id !== null) {
4548
- contents.Id = smithy_client_1.expectString(data.Id);
4548
+ contents.Id = (0, smithy_client_1.expectString)(data.Id);
4549
4549
  }
4550
4550
  if (data.NextToken !== undefined && data.NextToken !== null) {
4551
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
4551
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
4552
4552
  }
4553
4553
  if (data.Version !== undefined && data.Version !== null) {
4554
- contents.Version = smithy_client_1.expectString(data.Version);
4554
+ contents.Version = (0, smithy_client_1.expectString)(data.Version);
4555
4555
  }
4556
4556
  return Promise.resolve(contents);
4557
4557
  };
@@ -4575,7 +4575,7 @@ const deserializeAws_restJson1GetCoreDefinitionVersionCommandError = async (outp
4575
4575
  $fault: "client",
4576
4576
  $metadata: deserializeMetadata(output),
4577
4577
  });
4578
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4578
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4579
4579
  }
4580
4580
  };
4581
4581
  const deserializeAws_restJson1GetDeploymentStatusCommand = async (output, context) => {
@@ -4590,21 +4590,21 @@ const deserializeAws_restJson1GetDeploymentStatusCommand = async (output, contex
4590
4590
  ErrorMessage: undefined,
4591
4591
  UpdatedAt: undefined,
4592
4592
  };
4593
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4593
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4594
4594
  if (data.DeploymentStatus !== undefined && data.DeploymentStatus !== null) {
4595
- contents.DeploymentStatus = smithy_client_1.expectString(data.DeploymentStatus);
4595
+ contents.DeploymentStatus = (0, smithy_client_1.expectString)(data.DeploymentStatus);
4596
4596
  }
4597
4597
  if (data.DeploymentType !== undefined && data.DeploymentType !== null) {
4598
- contents.DeploymentType = smithy_client_1.expectString(data.DeploymentType);
4598
+ contents.DeploymentType = (0, smithy_client_1.expectString)(data.DeploymentType);
4599
4599
  }
4600
4600
  if (data.ErrorDetails !== undefined && data.ErrorDetails !== null) {
4601
4601
  contents.ErrorDetails = deserializeAws_restJson1ErrorDetails(data.ErrorDetails, context);
4602
4602
  }
4603
4603
  if (data.ErrorMessage !== undefined && data.ErrorMessage !== null) {
4604
- contents.ErrorMessage = smithy_client_1.expectString(data.ErrorMessage);
4604
+ contents.ErrorMessage = (0, smithy_client_1.expectString)(data.ErrorMessage);
4605
4605
  }
4606
4606
  if (data.UpdatedAt !== undefined && data.UpdatedAt !== null) {
4607
- contents.UpdatedAt = smithy_client_1.expectString(data.UpdatedAt);
4607
+ contents.UpdatedAt = (0, smithy_client_1.expectString)(data.UpdatedAt);
4608
4608
  }
4609
4609
  return Promise.resolve(contents);
4610
4610
  };
@@ -4628,7 +4628,7 @@ const deserializeAws_restJson1GetDeploymentStatusCommandError = async (output, c
4628
4628
  $fault: "client",
4629
4629
  $metadata: deserializeMetadata(output),
4630
4630
  });
4631
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4631
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4632
4632
  }
4633
4633
  };
4634
4634
  const deserializeAws_restJson1GetDeviceDefinitionCommand = async (output, context) => {
@@ -4646,27 +4646,27 @@ const deserializeAws_restJson1GetDeviceDefinitionCommand = async (output, contex
4646
4646
  Name: undefined,
4647
4647
  tags: undefined,
4648
4648
  };
4649
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4649
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4650
4650
  if (data.Arn !== undefined && data.Arn !== null) {
4651
- contents.Arn = smithy_client_1.expectString(data.Arn);
4651
+ contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
4652
4652
  }
4653
4653
  if (data.CreationTimestamp !== undefined && data.CreationTimestamp !== null) {
4654
- contents.CreationTimestamp = smithy_client_1.expectString(data.CreationTimestamp);
4654
+ contents.CreationTimestamp = (0, smithy_client_1.expectString)(data.CreationTimestamp);
4655
4655
  }
4656
4656
  if (data.Id !== undefined && data.Id !== null) {
4657
- contents.Id = smithy_client_1.expectString(data.Id);
4657
+ contents.Id = (0, smithy_client_1.expectString)(data.Id);
4658
4658
  }
4659
4659
  if (data.LastUpdatedTimestamp !== undefined && data.LastUpdatedTimestamp !== null) {
4660
- contents.LastUpdatedTimestamp = smithy_client_1.expectString(data.LastUpdatedTimestamp);
4660
+ contents.LastUpdatedTimestamp = (0, smithy_client_1.expectString)(data.LastUpdatedTimestamp);
4661
4661
  }
4662
4662
  if (data.LatestVersion !== undefined && data.LatestVersion !== null) {
4663
- contents.LatestVersion = smithy_client_1.expectString(data.LatestVersion);
4663
+ contents.LatestVersion = (0, smithy_client_1.expectString)(data.LatestVersion);
4664
4664
  }
4665
4665
  if (data.LatestVersionArn !== undefined && data.LatestVersionArn !== null) {
4666
- contents.LatestVersionArn = smithy_client_1.expectString(data.LatestVersionArn);
4666
+ contents.LatestVersionArn = (0, smithy_client_1.expectString)(data.LatestVersionArn);
4667
4667
  }
4668
4668
  if (data.Name !== undefined && data.Name !== null) {
4669
- contents.Name = smithy_client_1.expectString(data.Name);
4669
+ contents.Name = (0, smithy_client_1.expectString)(data.Name);
4670
4670
  }
4671
4671
  if (data.tags !== undefined && data.tags !== null) {
4672
4672
  contents.tags = deserializeAws_restJson1Tags(data.tags, context);
@@ -4693,7 +4693,7 @@ const deserializeAws_restJson1GetDeviceDefinitionCommandError = async (output, c
4693
4693
  $fault: "client",
4694
4694
  $metadata: deserializeMetadata(output),
4695
4695
  });
4696
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4696
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4697
4697
  }
4698
4698
  };
4699
4699
  const deserializeAws_restJson1GetDeviceDefinitionVersionCommand = async (output, context) => {
@@ -4709,24 +4709,24 @@ const deserializeAws_restJson1GetDeviceDefinitionVersionCommand = async (output,
4709
4709
  NextToken: undefined,
4710
4710
  Version: undefined,
4711
4711
  };
4712
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4712
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4713
4713
  if (data.Arn !== undefined && data.Arn !== null) {
4714
- contents.Arn = smithy_client_1.expectString(data.Arn);
4714
+ contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
4715
4715
  }
4716
4716
  if (data.CreationTimestamp !== undefined && data.CreationTimestamp !== null) {
4717
- contents.CreationTimestamp = smithy_client_1.expectString(data.CreationTimestamp);
4717
+ contents.CreationTimestamp = (0, smithy_client_1.expectString)(data.CreationTimestamp);
4718
4718
  }
4719
4719
  if (data.Definition !== undefined && data.Definition !== null) {
4720
4720
  contents.Definition = deserializeAws_restJson1DeviceDefinitionVersion(data.Definition, context);
4721
4721
  }
4722
4722
  if (data.Id !== undefined && data.Id !== null) {
4723
- contents.Id = smithy_client_1.expectString(data.Id);
4723
+ contents.Id = (0, smithy_client_1.expectString)(data.Id);
4724
4724
  }
4725
4725
  if (data.NextToken !== undefined && data.NextToken !== null) {
4726
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
4726
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
4727
4727
  }
4728
4728
  if (data.Version !== undefined && data.Version !== null) {
4729
- contents.Version = smithy_client_1.expectString(data.Version);
4729
+ contents.Version = (0, smithy_client_1.expectString)(data.Version);
4730
4730
  }
4731
4731
  return Promise.resolve(contents);
4732
4732
  };
@@ -4750,7 +4750,7 @@ const deserializeAws_restJson1GetDeviceDefinitionVersionCommandError = async (ou
4750
4750
  $fault: "client",
4751
4751
  $metadata: deserializeMetadata(output),
4752
4752
  });
4753
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4753
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4754
4754
  }
4755
4755
  };
4756
4756
  const deserializeAws_restJson1GetFunctionDefinitionCommand = async (output, context) => {
@@ -4768,27 +4768,27 @@ const deserializeAws_restJson1GetFunctionDefinitionCommand = async (output, cont
4768
4768
  Name: undefined,
4769
4769
  tags: undefined,
4770
4770
  };
4771
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4771
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4772
4772
  if (data.Arn !== undefined && data.Arn !== null) {
4773
- contents.Arn = smithy_client_1.expectString(data.Arn);
4773
+ contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
4774
4774
  }
4775
4775
  if (data.CreationTimestamp !== undefined && data.CreationTimestamp !== null) {
4776
- contents.CreationTimestamp = smithy_client_1.expectString(data.CreationTimestamp);
4776
+ contents.CreationTimestamp = (0, smithy_client_1.expectString)(data.CreationTimestamp);
4777
4777
  }
4778
4778
  if (data.Id !== undefined && data.Id !== null) {
4779
- contents.Id = smithy_client_1.expectString(data.Id);
4779
+ contents.Id = (0, smithy_client_1.expectString)(data.Id);
4780
4780
  }
4781
4781
  if (data.LastUpdatedTimestamp !== undefined && data.LastUpdatedTimestamp !== null) {
4782
- contents.LastUpdatedTimestamp = smithy_client_1.expectString(data.LastUpdatedTimestamp);
4782
+ contents.LastUpdatedTimestamp = (0, smithy_client_1.expectString)(data.LastUpdatedTimestamp);
4783
4783
  }
4784
4784
  if (data.LatestVersion !== undefined && data.LatestVersion !== null) {
4785
- contents.LatestVersion = smithy_client_1.expectString(data.LatestVersion);
4785
+ contents.LatestVersion = (0, smithy_client_1.expectString)(data.LatestVersion);
4786
4786
  }
4787
4787
  if (data.LatestVersionArn !== undefined && data.LatestVersionArn !== null) {
4788
- contents.LatestVersionArn = smithy_client_1.expectString(data.LatestVersionArn);
4788
+ contents.LatestVersionArn = (0, smithy_client_1.expectString)(data.LatestVersionArn);
4789
4789
  }
4790
4790
  if (data.Name !== undefined && data.Name !== null) {
4791
- contents.Name = smithy_client_1.expectString(data.Name);
4791
+ contents.Name = (0, smithy_client_1.expectString)(data.Name);
4792
4792
  }
4793
4793
  if (data.tags !== undefined && data.tags !== null) {
4794
4794
  contents.tags = deserializeAws_restJson1Tags(data.tags, context);
@@ -4815,7 +4815,7 @@ const deserializeAws_restJson1GetFunctionDefinitionCommandError = async (output,
4815
4815
  $fault: "client",
4816
4816
  $metadata: deserializeMetadata(output),
4817
4817
  });
4818
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4818
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4819
4819
  }
4820
4820
  };
4821
4821
  const deserializeAws_restJson1GetFunctionDefinitionVersionCommand = async (output, context) => {
@@ -4831,24 +4831,24 @@ const deserializeAws_restJson1GetFunctionDefinitionVersionCommand = async (outpu
4831
4831
  NextToken: undefined,
4832
4832
  Version: undefined,
4833
4833
  };
4834
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4834
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4835
4835
  if (data.Arn !== undefined && data.Arn !== null) {
4836
- contents.Arn = smithy_client_1.expectString(data.Arn);
4836
+ contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
4837
4837
  }
4838
4838
  if (data.CreationTimestamp !== undefined && data.CreationTimestamp !== null) {
4839
- contents.CreationTimestamp = smithy_client_1.expectString(data.CreationTimestamp);
4839
+ contents.CreationTimestamp = (0, smithy_client_1.expectString)(data.CreationTimestamp);
4840
4840
  }
4841
4841
  if (data.Definition !== undefined && data.Definition !== null) {
4842
4842
  contents.Definition = deserializeAws_restJson1FunctionDefinitionVersion(data.Definition, context);
4843
4843
  }
4844
4844
  if (data.Id !== undefined && data.Id !== null) {
4845
- contents.Id = smithy_client_1.expectString(data.Id);
4845
+ contents.Id = (0, smithy_client_1.expectString)(data.Id);
4846
4846
  }
4847
4847
  if (data.NextToken !== undefined && data.NextToken !== null) {
4848
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
4848
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
4849
4849
  }
4850
4850
  if (data.Version !== undefined && data.Version !== null) {
4851
- contents.Version = smithy_client_1.expectString(data.Version);
4851
+ contents.Version = (0, smithy_client_1.expectString)(data.Version);
4852
4852
  }
4853
4853
  return Promise.resolve(contents);
4854
4854
  };
@@ -4872,7 +4872,7 @@ const deserializeAws_restJson1GetFunctionDefinitionVersionCommandError = async (
4872
4872
  $fault: "client",
4873
4873
  $metadata: deserializeMetadata(output),
4874
4874
  });
4875
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4875
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4876
4876
  }
4877
4877
  };
4878
4878
  const deserializeAws_restJson1GetGroupCommand = async (output, context) => {
@@ -4890,27 +4890,27 @@ const deserializeAws_restJson1GetGroupCommand = async (output, context) => {
4890
4890
  Name: undefined,
4891
4891
  tags: undefined,
4892
4892
  };
4893
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4893
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4894
4894
  if (data.Arn !== undefined && data.Arn !== null) {
4895
- contents.Arn = smithy_client_1.expectString(data.Arn);
4895
+ contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
4896
4896
  }
4897
4897
  if (data.CreationTimestamp !== undefined && data.CreationTimestamp !== null) {
4898
- contents.CreationTimestamp = smithy_client_1.expectString(data.CreationTimestamp);
4898
+ contents.CreationTimestamp = (0, smithy_client_1.expectString)(data.CreationTimestamp);
4899
4899
  }
4900
4900
  if (data.Id !== undefined && data.Id !== null) {
4901
- contents.Id = smithy_client_1.expectString(data.Id);
4901
+ contents.Id = (0, smithy_client_1.expectString)(data.Id);
4902
4902
  }
4903
4903
  if (data.LastUpdatedTimestamp !== undefined && data.LastUpdatedTimestamp !== null) {
4904
- contents.LastUpdatedTimestamp = smithy_client_1.expectString(data.LastUpdatedTimestamp);
4904
+ contents.LastUpdatedTimestamp = (0, smithy_client_1.expectString)(data.LastUpdatedTimestamp);
4905
4905
  }
4906
4906
  if (data.LatestVersion !== undefined && data.LatestVersion !== null) {
4907
- contents.LatestVersion = smithy_client_1.expectString(data.LatestVersion);
4907
+ contents.LatestVersion = (0, smithy_client_1.expectString)(data.LatestVersion);
4908
4908
  }
4909
4909
  if (data.LatestVersionArn !== undefined && data.LatestVersionArn !== null) {
4910
- contents.LatestVersionArn = smithy_client_1.expectString(data.LatestVersionArn);
4910
+ contents.LatestVersionArn = (0, smithy_client_1.expectString)(data.LatestVersionArn);
4911
4911
  }
4912
4912
  if (data.Name !== undefined && data.Name !== null) {
4913
- contents.Name = smithy_client_1.expectString(data.Name);
4913
+ contents.Name = (0, smithy_client_1.expectString)(data.Name);
4914
4914
  }
4915
4915
  if (data.tags !== undefined && data.tags !== null) {
4916
4916
  contents.tags = deserializeAws_restJson1Tags(data.tags, context);
@@ -4937,7 +4937,7 @@ const deserializeAws_restJson1GetGroupCommandError = async (output, context) =>
4937
4937
  $fault: "client",
4938
4938
  $metadata: deserializeMetadata(output),
4939
4939
  });
4940
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4940
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4941
4941
  }
4942
4942
  };
4943
4943
  const deserializeAws_restJson1GetGroupCertificateAuthorityCommand = async (output, context) => {
@@ -4950,15 +4950,15 @@ const deserializeAws_restJson1GetGroupCertificateAuthorityCommand = async (outpu
4950
4950
  GroupCertificateAuthorityId: undefined,
4951
4951
  PemEncodedCertificate: undefined,
4952
4952
  };
4953
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4953
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4954
4954
  if (data.GroupCertificateAuthorityArn !== undefined && data.GroupCertificateAuthorityArn !== null) {
4955
- contents.GroupCertificateAuthorityArn = smithy_client_1.expectString(data.GroupCertificateAuthorityArn);
4955
+ contents.GroupCertificateAuthorityArn = (0, smithy_client_1.expectString)(data.GroupCertificateAuthorityArn);
4956
4956
  }
4957
4957
  if (data.GroupCertificateAuthorityId !== undefined && data.GroupCertificateAuthorityId !== null) {
4958
- contents.GroupCertificateAuthorityId = smithy_client_1.expectString(data.GroupCertificateAuthorityId);
4958
+ contents.GroupCertificateAuthorityId = (0, smithy_client_1.expectString)(data.GroupCertificateAuthorityId);
4959
4959
  }
4960
4960
  if (data.PemEncodedCertificate !== undefined && data.PemEncodedCertificate !== null) {
4961
- contents.PemEncodedCertificate = smithy_client_1.expectString(data.PemEncodedCertificate);
4961
+ contents.PemEncodedCertificate = (0, smithy_client_1.expectString)(data.PemEncodedCertificate);
4962
4962
  }
4963
4963
  return Promise.resolve(contents);
4964
4964
  };
@@ -4985,7 +4985,7 @@ const deserializeAws_restJson1GetGroupCertificateAuthorityCommandError = async (
4985
4985
  $fault: "client",
4986
4986
  $metadata: deserializeMetadata(output),
4987
4987
  });
4988
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4988
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4989
4989
  }
4990
4990
  };
4991
4991
  const deserializeAws_restJson1GetGroupCertificateConfigurationCommand = async (output, context) => {
@@ -4998,16 +4998,16 @@ const deserializeAws_restJson1GetGroupCertificateConfigurationCommand = async (o
4998
4998
  CertificateExpiryInMilliseconds: undefined,
4999
4999
  GroupId: undefined,
5000
5000
  };
5001
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5001
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5002
5002
  if (data.CertificateAuthorityExpiryInMilliseconds !== undefined &&
5003
5003
  data.CertificateAuthorityExpiryInMilliseconds !== null) {
5004
- contents.CertificateAuthorityExpiryInMilliseconds = smithy_client_1.expectString(data.CertificateAuthorityExpiryInMilliseconds);
5004
+ contents.CertificateAuthorityExpiryInMilliseconds = (0, smithy_client_1.expectString)(data.CertificateAuthorityExpiryInMilliseconds);
5005
5005
  }
5006
5006
  if (data.CertificateExpiryInMilliseconds !== undefined && data.CertificateExpiryInMilliseconds !== null) {
5007
- contents.CertificateExpiryInMilliseconds = smithy_client_1.expectString(data.CertificateExpiryInMilliseconds);
5007
+ contents.CertificateExpiryInMilliseconds = (0, smithy_client_1.expectString)(data.CertificateExpiryInMilliseconds);
5008
5008
  }
5009
5009
  if (data.GroupId !== undefined && data.GroupId !== null) {
5010
- contents.GroupId = smithy_client_1.expectString(data.GroupId);
5010
+ contents.GroupId = (0, smithy_client_1.expectString)(data.GroupId);
5011
5011
  }
5012
5012
  return Promise.resolve(contents);
5013
5013
  };
@@ -5034,7 +5034,7 @@ const deserializeAws_restJson1GetGroupCertificateConfigurationCommandError = asy
5034
5034
  $fault: "client",
5035
5035
  $metadata: deserializeMetadata(output),
5036
5036
  });
5037
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5037
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5038
5038
  }
5039
5039
  };
5040
5040
  const deserializeAws_restJson1GetGroupVersionCommand = async (output, context) => {
@@ -5049,21 +5049,21 @@ const deserializeAws_restJson1GetGroupVersionCommand = async (output, context) =
5049
5049
  Id: undefined,
5050
5050
  Version: undefined,
5051
5051
  };
5052
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5052
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5053
5053
  if (data.Arn !== undefined && data.Arn !== null) {
5054
- contents.Arn = smithy_client_1.expectString(data.Arn);
5054
+ contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
5055
5055
  }
5056
5056
  if (data.CreationTimestamp !== undefined && data.CreationTimestamp !== null) {
5057
- contents.CreationTimestamp = smithy_client_1.expectString(data.CreationTimestamp);
5057
+ contents.CreationTimestamp = (0, smithy_client_1.expectString)(data.CreationTimestamp);
5058
5058
  }
5059
5059
  if (data.Definition !== undefined && data.Definition !== null) {
5060
5060
  contents.Definition = deserializeAws_restJson1GroupVersion(data.Definition, context);
5061
5061
  }
5062
5062
  if (data.Id !== undefined && data.Id !== null) {
5063
- contents.Id = smithy_client_1.expectString(data.Id);
5063
+ contents.Id = (0, smithy_client_1.expectString)(data.Id);
5064
5064
  }
5065
5065
  if (data.Version !== undefined && data.Version !== null) {
5066
- contents.Version = smithy_client_1.expectString(data.Version);
5066
+ contents.Version = (0, smithy_client_1.expectString)(data.Version);
5067
5067
  }
5068
5068
  return Promise.resolve(contents);
5069
5069
  };
@@ -5087,7 +5087,7 @@ const deserializeAws_restJson1GetGroupVersionCommandError = async (output, conte
5087
5087
  $fault: "client",
5088
5088
  $metadata: deserializeMetadata(output),
5089
5089
  });
5090
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5090
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5091
5091
  }
5092
5092
  };
5093
5093
  const deserializeAws_restJson1GetLoggerDefinitionCommand = async (output, context) => {
@@ -5105,27 +5105,27 @@ const deserializeAws_restJson1GetLoggerDefinitionCommand = async (output, contex
5105
5105
  Name: undefined,
5106
5106
  tags: undefined,
5107
5107
  };
5108
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5108
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5109
5109
  if (data.Arn !== undefined && data.Arn !== null) {
5110
- contents.Arn = smithy_client_1.expectString(data.Arn);
5110
+ contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
5111
5111
  }
5112
5112
  if (data.CreationTimestamp !== undefined && data.CreationTimestamp !== null) {
5113
- contents.CreationTimestamp = smithy_client_1.expectString(data.CreationTimestamp);
5113
+ contents.CreationTimestamp = (0, smithy_client_1.expectString)(data.CreationTimestamp);
5114
5114
  }
5115
5115
  if (data.Id !== undefined && data.Id !== null) {
5116
- contents.Id = smithy_client_1.expectString(data.Id);
5116
+ contents.Id = (0, smithy_client_1.expectString)(data.Id);
5117
5117
  }
5118
5118
  if (data.LastUpdatedTimestamp !== undefined && data.LastUpdatedTimestamp !== null) {
5119
- contents.LastUpdatedTimestamp = smithy_client_1.expectString(data.LastUpdatedTimestamp);
5119
+ contents.LastUpdatedTimestamp = (0, smithy_client_1.expectString)(data.LastUpdatedTimestamp);
5120
5120
  }
5121
5121
  if (data.LatestVersion !== undefined && data.LatestVersion !== null) {
5122
- contents.LatestVersion = smithy_client_1.expectString(data.LatestVersion);
5122
+ contents.LatestVersion = (0, smithy_client_1.expectString)(data.LatestVersion);
5123
5123
  }
5124
5124
  if (data.LatestVersionArn !== undefined && data.LatestVersionArn !== null) {
5125
- contents.LatestVersionArn = smithy_client_1.expectString(data.LatestVersionArn);
5125
+ contents.LatestVersionArn = (0, smithy_client_1.expectString)(data.LatestVersionArn);
5126
5126
  }
5127
5127
  if (data.Name !== undefined && data.Name !== null) {
5128
- contents.Name = smithy_client_1.expectString(data.Name);
5128
+ contents.Name = (0, smithy_client_1.expectString)(data.Name);
5129
5129
  }
5130
5130
  if (data.tags !== undefined && data.tags !== null) {
5131
5131
  contents.tags = deserializeAws_restJson1Tags(data.tags, context);
@@ -5152,7 +5152,7 @@ const deserializeAws_restJson1GetLoggerDefinitionCommandError = async (output, c
5152
5152
  $fault: "client",
5153
5153
  $metadata: deserializeMetadata(output),
5154
5154
  });
5155
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5155
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5156
5156
  }
5157
5157
  };
5158
5158
  const deserializeAws_restJson1GetLoggerDefinitionVersionCommand = async (output, context) => {
@@ -5167,21 +5167,21 @@ const deserializeAws_restJson1GetLoggerDefinitionVersionCommand = async (output,
5167
5167
  Id: undefined,
5168
5168
  Version: undefined,
5169
5169
  };
5170
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5170
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5171
5171
  if (data.Arn !== undefined && data.Arn !== null) {
5172
- contents.Arn = smithy_client_1.expectString(data.Arn);
5172
+ contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
5173
5173
  }
5174
5174
  if (data.CreationTimestamp !== undefined && data.CreationTimestamp !== null) {
5175
- contents.CreationTimestamp = smithy_client_1.expectString(data.CreationTimestamp);
5175
+ contents.CreationTimestamp = (0, smithy_client_1.expectString)(data.CreationTimestamp);
5176
5176
  }
5177
5177
  if (data.Definition !== undefined && data.Definition !== null) {
5178
5178
  contents.Definition = deserializeAws_restJson1LoggerDefinitionVersion(data.Definition, context);
5179
5179
  }
5180
5180
  if (data.Id !== undefined && data.Id !== null) {
5181
- contents.Id = smithy_client_1.expectString(data.Id);
5181
+ contents.Id = (0, smithy_client_1.expectString)(data.Id);
5182
5182
  }
5183
5183
  if (data.Version !== undefined && data.Version !== null) {
5184
- contents.Version = smithy_client_1.expectString(data.Version);
5184
+ contents.Version = (0, smithy_client_1.expectString)(data.Version);
5185
5185
  }
5186
5186
  return Promise.resolve(contents);
5187
5187
  };
@@ -5205,7 +5205,7 @@ const deserializeAws_restJson1GetLoggerDefinitionVersionCommandError = async (ou
5205
5205
  $fault: "client",
5206
5206
  $metadata: deserializeMetadata(output),
5207
5207
  });
5208
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5208
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5209
5209
  }
5210
5210
  };
5211
5211
  const deserializeAws_restJson1GetResourceDefinitionCommand = async (output, context) => {
@@ -5223,27 +5223,27 @@ const deserializeAws_restJson1GetResourceDefinitionCommand = async (output, cont
5223
5223
  Name: undefined,
5224
5224
  tags: undefined,
5225
5225
  };
5226
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5226
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5227
5227
  if (data.Arn !== undefined && data.Arn !== null) {
5228
- contents.Arn = smithy_client_1.expectString(data.Arn);
5228
+ contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
5229
5229
  }
5230
5230
  if (data.CreationTimestamp !== undefined && data.CreationTimestamp !== null) {
5231
- contents.CreationTimestamp = smithy_client_1.expectString(data.CreationTimestamp);
5231
+ contents.CreationTimestamp = (0, smithy_client_1.expectString)(data.CreationTimestamp);
5232
5232
  }
5233
5233
  if (data.Id !== undefined && data.Id !== null) {
5234
- contents.Id = smithy_client_1.expectString(data.Id);
5234
+ contents.Id = (0, smithy_client_1.expectString)(data.Id);
5235
5235
  }
5236
5236
  if (data.LastUpdatedTimestamp !== undefined && data.LastUpdatedTimestamp !== null) {
5237
- contents.LastUpdatedTimestamp = smithy_client_1.expectString(data.LastUpdatedTimestamp);
5237
+ contents.LastUpdatedTimestamp = (0, smithy_client_1.expectString)(data.LastUpdatedTimestamp);
5238
5238
  }
5239
5239
  if (data.LatestVersion !== undefined && data.LatestVersion !== null) {
5240
- contents.LatestVersion = smithy_client_1.expectString(data.LatestVersion);
5240
+ contents.LatestVersion = (0, smithy_client_1.expectString)(data.LatestVersion);
5241
5241
  }
5242
5242
  if (data.LatestVersionArn !== undefined && data.LatestVersionArn !== null) {
5243
- contents.LatestVersionArn = smithy_client_1.expectString(data.LatestVersionArn);
5243
+ contents.LatestVersionArn = (0, smithy_client_1.expectString)(data.LatestVersionArn);
5244
5244
  }
5245
5245
  if (data.Name !== undefined && data.Name !== null) {
5246
- contents.Name = smithy_client_1.expectString(data.Name);
5246
+ contents.Name = (0, smithy_client_1.expectString)(data.Name);
5247
5247
  }
5248
5248
  if (data.tags !== undefined && data.tags !== null) {
5249
5249
  contents.tags = deserializeAws_restJson1Tags(data.tags, context);
@@ -5270,7 +5270,7 @@ const deserializeAws_restJson1GetResourceDefinitionCommandError = async (output,
5270
5270
  $fault: "client",
5271
5271
  $metadata: deserializeMetadata(output),
5272
5272
  });
5273
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5273
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5274
5274
  }
5275
5275
  };
5276
5276
  const deserializeAws_restJson1GetResourceDefinitionVersionCommand = async (output, context) => {
@@ -5285,21 +5285,21 @@ const deserializeAws_restJson1GetResourceDefinitionVersionCommand = async (outpu
5285
5285
  Id: undefined,
5286
5286
  Version: undefined,
5287
5287
  };
5288
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5288
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5289
5289
  if (data.Arn !== undefined && data.Arn !== null) {
5290
- contents.Arn = smithy_client_1.expectString(data.Arn);
5290
+ contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
5291
5291
  }
5292
5292
  if (data.CreationTimestamp !== undefined && data.CreationTimestamp !== null) {
5293
- contents.CreationTimestamp = smithy_client_1.expectString(data.CreationTimestamp);
5293
+ contents.CreationTimestamp = (0, smithy_client_1.expectString)(data.CreationTimestamp);
5294
5294
  }
5295
5295
  if (data.Definition !== undefined && data.Definition !== null) {
5296
5296
  contents.Definition = deserializeAws_restJson1ResourceDefinitionVersion(data.Definition, context);
5297
5297
  }
5298
5298
  if (data.Id !== undefined && data.Id !== null) {
5299
- contents.Id = smithy_client_1.expectString(data.Id);
5299
+ contents.Id = (0, smithy_client_1.expectString)(data.Id);
5300
5300
  }
5301
5301
  if (data.Version !== undefined && data.Version !== null) {
5302
- contents.Version = smithy_client_1.expectString(data.Version);
5302
+ contents.Version = (0, smithy_client_1.expectString)(data.Version);
5303
5303
  }
5304
5304
  return Promise.resolve(contents);
5305
5305
  };
@@ -5323,7 +5323,7 @@ const deserializeAws_restJson1GetResourceDefinitionVersionCommandError = async (
5323
5323
  $fault: "client",
5324
5324
  $metadata: deserializeMetadata(output),
5325
5325
  });
5326
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5326
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5327
5327
  }
5328
5328
  };
5329
5329
  const deserializeAws_restJson1GetServiceRoleForAccountCommand = async (output, context) => {
@@ -5335,12 +5335,12 @@ const deserializeAws_restJson1GetServiceRoleForAccountCommand = async (output, c
5335
5335
  AssociatedAt: undefined,
5336
5336
  RoleArn: undefined,
5337
5337
  };
5338
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5338
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5339
5339
  if (data.AssociatedAt !== undefined && data.AssociatedAt !== null) {
5340
- contents.AssociatedAt = smithy_client_1.expectString(data.AssociatedAt);
5340
+ contents.AssociatedAt = (0, smithy_client_1.expectString)(data.AssociatedAt);
5341
5341
  }
5342
5342
  if (data.RoleArn !== undefined && data.RoleArn !== null) {
5343
- contents.RoleArn = smithy_client_1.expectString(data.RoleArn);
5343
+ contents.RoleArn = (0, smithy_client_1.expectString)(data.RoleArn);
5344
5344
  }
5345
5345
  return Promise.resolve(contents);
5346
5346
  };
@@ -5364,7 +5364,7 @@ const deserializeAws_restJson1GetServiceRoleForAccountCommandError = async (outp
5364
5364
  $fault: "client",
5365
5365
  $metadata: deserializeMetadata(output),
5366
5366
  });
5367
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5367
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5368
5368
  }
5369
5369
  };
5370
5370
  const deserializeAws_restJson1GetSubscriptionDefinitionCommand = async (output, context) => {
@@ -5382,27 +5382,27 @@ const deserializeAws_restJson1GetSubscriptionDefinitionCommand = async (output,
5382
5382
  Name: undefined,
5383
5383
  tags: undefined,
5384
5384
  };
5385
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5385
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5386
5386
  if (data.Arn !== undefined && data.Arn !== null) {
5387
- contents.Arn = smithy_client_1.expectString(data.Arn);
5387
+ contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
5388
5388
  }
5389
5389
  if (data.CreationTimestamp !== undefined && data.CreationTimestamp !== null) {
5390
- contents.CreationTimestamp = smithy_client_1.expectString(data.CreationTimestamp);
5390
+ contents.CreationTimestamp = (0, smithy_client_1.expectString)(data.CreationTimestamp);
5391
5391
  }
5392
5392
  if (data.Id !== undefined && data.Id !== null) {
5393
- contents.Id = smithy_client_1.expectString(data.Id);
5393
+ contents.Id = (0, smithy_client_1.expectString)(data.Id);
5394
5394
  }
5395
5395
  if (data.LastUpdatedTimestamp !== undefined && data.LastUpdatedTimestamp !== null) {
5396
- contents.LastUpdatedTimestamp = smithy_client_1.expectString(data.LastUpdatedTimestamp);
5396
+ contents.LastUpdatedTimestamp = (0, smithy_client_1.expectString)(data.LastUpdatedTimestamp);
5397
5397
  }
5398
5398
  if (data.LatestVersion !== undefined && data.LatestVersion !== null) {
5399
- contents.LatestVersion = smithy_client_1.expectString(data.LatestVersion);
5399
+ contents.LatestVersion = (0, smithy_client_1.expectString)(data.LatestVersion);
5400
5400
  }
5401
5401
  if (data.LatestVersionArn !== undefined && data.LatestVersionArn !== null) {
5402
- contents.LatestVersionArn = smithy_client_1.expectString(data.LatestVersionArn);
5402
+ contents.LatestVersionArn = (0, smithy_client_1.expectString)(data.LatestVersionArn);
5403
5403
  }
5404
5404
  if (data.Name !== undefined && data.Name !== null) {
5405
- contents.Name = smithy_client_1.expectString(data.Name);
5405
+ contents.Name = (0, smithy_client_1.expectString)(data.Name);
5406
5406
  }
5407
5407
  if (data.tags !== undefined && data.tags !== null) {
5408
5408
  contents.tags = deserializeAws_restJson1Tags(data.tags, context);
@@ -5429,7 +5429,7 @@ const deserializeAws_restJson1GetSubscriptionDefinitionCommandError = async (out
5429
5429
  $fault: "client",
5430
5430
  $metadata: deserializeMetadata(output),
5431
5431
  });
5432
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5432
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5433
5433
  }
5434
5434
  };
5435
5435
  const deserializeAws_restJson1GetSubscriptionDefinitionVersionCommand = async (output, context) => {
@@ -5445,24 +5445,24 @@ const deserializeAws_restJson1GetSubscriptionDefinitionVersionCommand = async (o
5445
5445
  NextToken: undefined,
5446
5446
  Version: undefined,
5447
5447
  };
5448
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5448
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5449
5449
  if (data.Arn !== undefined && data.Arn !== null) {
5450
- contents.Arn = smithy_client_1.expectString(data.Arn);
5450
+ contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
5451
5451
  }
5452
5452
  if (data.CreationTimestamp !== undefined && data.CreationTimestamp !== null) {
5453
- contents.CreationTimestamp = smithy_client_1.expectString(data.CreationTimestamp);
5453
+ contents.CreationTimestamp = (0, smithy_client_1.expectString)(data.CreationTimestamp);
5454
5454
  }
5455
5455
  if (data.Definition !== undefined && data.Definition !== null) {
5456
5456
  contents.Definition = deserializeAws_restJson1SubscriptionDefinitionVersion(data.Definition, context);
5457
5457
  }
5458
5458
  if (data.Id !== undefined && data.Id !== null) {
5459
- contents.Id = smithy_client_1.expectString(data.Id);
5459
+ contents.Id = (0, smithy_client_1.expectString)(data.Id);
5460
5460
  }
5461
5461
  if (data.NextToken !== undefined && data.NextToken !== null) {
5462
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
5462
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
5463
5463
  }
5464
5464
  if (data.Version !== undefined && data.Version !== null) {
5465
- contents.Version = smithy_client_1.expectString(data.Version);
5465
+ contents.Version = (0, smithy_client_1.expectString)(data.Version);
5466
5466
  }
5467
5467
  return Promise.resolve(contents);
5468
5468
  };
@@ -5486,7 +5486,7 @@ const deserializeAws_restJson1GetSubscriptionDefinitionVersionCommandError = asy
5486
5486
  $fault: "client",
5487
5487
  $metadata: deserializeMetadata(output),
5488
5488
  });
5489
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5489
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5490
5490
  }
5491
5491
  };
5492
5492
  const deserializeAws_restJson1GetThingRuntimeConfigurationCommand = async (output, context) => {
@@ -5497,7 +5497,7 @@ const deserializeAws_restJson1GetThingRuntimeConfigurationCommand = async (outpu
5497
5497
  $metadata: deserializeMetadata(output),
5498
5498
  RuntimeConfiguration: undefined,
5499
5499
  };
5500
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5500
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5501
5501
  if (data.RuntimeConfiguration !== undefined && data.RuntimeConfiguration !== null) {
5502
5502
  contents.RuntimeConfiguration = deserializeAws_restJson1RuntimeConfiguration(data.RuntimeConfiguration, context);
5503
5503
  }
@@ -5526,7 +5526,7 @@ const deserializeAws_restJson1GetThingRuntimeConfigurationCommandError = async (
5526
5526
  $fault: "client",
5527
5527
  $metadata: deserializeMetadata(output),
5528
5528
  });
5529
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5529
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5530
5530
  }
5531
5531
  };
5532
5532
  const deserializeAws_restJson1ListBulkDeploymentDetailedReportsCommand = async (output, context) => {
@@ -5538,12 +5538,12 @@ const deserializeAws_restJson1ListBulkDeploymentDetailedReportsCommand = async (
5538
5538
  Deployments: undefined,
5539
5539
  NextToken: undefined,
5540
5540
  };
5541
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5541
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5542
5542
  if (data.Deployments !== undefined && data.Deployments !== null) {
5543
5543
  contents.Deployments = deserializeAws_restJson1BulkDeploymentResults(data.Deployments, context);
5544
5544
  }
5545
5545
  if (data.NextToken !== undefined && data.NextToken !== null) {
5546
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
5546
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
5547
5547
  }
5548
5548
  return Promise.resolve(contents);
5549
5549
  };
@@ -5567,7 +5567,7 @@ const deserializeAws_restJson1ListBulkDeploymentDetailedReportsCommandError = as
5567
5567
  $fault: "client",
5568
5568
  $metadata: deserializeMetadata(output),
5569
5569
  });
5570
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5570
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5571
5571
  }
5572
5572
  };
5573
5573
  const deserializeAws_restJson1ListBulkDeploymentsCommand = async (output, context) => {
@@ -5579,12 +5579,12 @@ const deserializeAws_restJson1ListBulkDeploymentsCommand = async (output, contex
5579
5579
  BulkDeployments: undefined,
5580
5580
  NextToken: undefined,
5581
5581
  };
5582
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5582
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5583
5583
  if (data.BulkDeployments !== undefined && data.BulkDeployments !== null) {
5584
5584
  contents.BulkDeployments = deserializeAws_restJson1BulkDeployments(data.BulkDeployments, context);
5585
5585
  }
5586
5586
  if (data.NextToken !== undefined && data.NextToken !== null) {
5587
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
5587
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
5588
5588
  }
5589
5589
  return Promise.resolve(contents);
5590
5590
  };
@@ -5608,7 +5608,7 @@ const deserializeAws_restJson1ListBulkDeploymentsCommandError = async (output, c
5608
5608
  $fault: "client",
5609
5609
  $metadata: deserializeMetadata(output),
5610
5610
  });
5611
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5611
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5612
5612
  }
5613
5613
  };
5614
5614
  const deserializeAws_restJson1ListConnectorDefinitionsCommand = async (output, context) => {
@@ -5620,12 +5620,12 @@ const deserializeAws_restJson1ListConnectorDefinitionsCommand = async (output, c
5620
5620
  Definitions: undefined,
5621
5621
  NextToken: undefined,
5622
5622
  };
5623
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5623
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5624
5624
  if (data.Definitions !== undefined && data.Definitions !== null) {
5625
5625
  contents.Definitions = deserializeAws_restJson1__listOfDefinitionInformation(data.Definitions, context);
5626
5626
  }
5627
5627
  if (data.NextToken !== undefined && data.NextToken !== null) {
5628
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
5628
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
5629
5629
  }
5630
5630
  return Promise.resolve(contents);
5631
5631
  };
@@ -5646,7 +5646,7 @@ const deserializeAws_restJson1ListConnectorDefinitionsCommandError = async (outp
5646
5646
  $fault: "client",
5647
5647
  $metadata: deserializeMetadata(output),
5648
5648
  });
5649
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5649
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5650
5650
  }
5651
5651
  };
5652
5652
  const deserializeAws_restJson1ListConnectorDefinitionVersionsCommand = async (output, context) => {
@@ -5658,9 +5658,9 @@ const deserializeAws_restJson1ListConnectorDefinitionVersionsCommand = async (ou
5658
5658
  NextToken: undefined,
5659
5659
  Versions: undefined,
5660
5660
  };
5661
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5661
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5662
5662
  if (data.NextToken !== undefined && data.NextToken !== null) {
5663
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
5663
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
5664
5664
  }
5665
5665
  if (data.Versions !== undefined && data.Versions !== null) {
5666
5666
  contents.Versions = deserializeAws_restJson1__listOfVersionInformation(data.Versions, context);
@@ -5687,7 +5687,7 @@ const deserializeAws_restJson1ListConnectorDefinitionVersionsCommandError = asyn
5687
5687
  $fault: "client",
5688
5688
  $metadata: deserializeMetadata(output),
5689
5689
  });
5690
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5690
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5691
5691
  }
5692
5692
  };
5693
5693
  const deserializeAws_restJson1ListCoreDefinitionsCommand = async (output, context) => {
@@ -5699,12 +5699,12 @@ const deserializeAws_restJson1ListCoreDefinitionsCommand = async (output, contex
5699
5699
  Definitions: undefined,
5700
5700
  NextToken: undefined,
5701
5701
  };
5702
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5702
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5703
5703
  if (data.Definitions !== undefined && data.Definitions !== null) {
5704
5704
  contents.Definitions = deserializeAws_restJson1__listOfDefinitionInformation(data.Definitions, context);
5705
5705
  }
5706
5706
  if (data.NextToken !== undefined && data.NextToken !== null) {
5707
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
5707
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
5708
5708
  }
5709
5709
  return Promise.resolve(contents);
5710
5710
  };
@@ -5725,7 +5725,7 @@ const deserializeAws_restJson1ListCoreDefinitionsCommandError = async (output, c
5725
5725
  $fault: "client",
5726
5726
  $metadata: deserializeMetadata(output),
5727
5727
  });
5728
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5728
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5729
5729
  }
5730
5730
  };
5731
5731
  const deserializeAws_restJson1ListCoreDefinitionVersionsCommand = async (output, context) => {
@@ -5737,9 +5737,9 @@ const deserializeAws_restJson1ListCoreDefinitionVersionsCommand = async (output,
5737
5737
  NextToken: undefined,
5738
5738
  Versions: undefined,
5739
5739
  };
5740
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5740
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5741
5741
  if (data.NextToken !== undefined && data.NextToken !== null) {
5742
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
5742
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
5743
5743
  }
5744
5744
  if (data.Versions !== undefined && data.Versions !== null) {
5745
5745
  contents.Versions = deserializeAws_restJson1__listOfVersionInformation(data.Versions, context);
@@ -5766,7 +5766,7 @@ const deserializeAws_restJson1ListCoreDefinitionVersionsCommandError = async (ou
5766
5766
  $fault: "client",
5767
5767
  $metadata: deserializeMetadata(output),
5768
5768
  });
5769
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5769
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5770
5770
  }
5771
5771
  };
5772
5772
  const deserializeAws_restJson1ListDeploymentsCommand = async (output, context) => {
@@ -5778,12 +5778,12 @@ const deserializeAws_restJson1ListDeploymentsCommand = async (output, context) =
5778
5778
  Deployments: undefined,
5779
5779
  NextToken: undefined,
5780
5780
  };
5781
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5781
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5782
5782
  if (data.Deployments !== undefined && data.Deployments !== null) {
5783
5783
  contents.Deployments = deserializeAws_restJson1Deployments(data.Deployments, context);
5784
5784
  }
5785
5785
  if (data.NextToken !== undefined && data.NextToken !== null) {
5786
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
5786
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
5787
5787
  }
5788
5788
  return Promise.resolve(contents);
5789
5789
  };
@@ -5807,7 +5807,7 @@ const deserializeAws_restJson1ListDeploymentsCommandError = async (output, conte
5807
5807
  $fault: "client",
5808
5808
  $metadata: deserializeMetadata(output),
5809
5809
  });
5810
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5810
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5811
5811
  }
5812
5812
  };
5813
5813
  const deserializeAws_restJson1ListDeviceDefinitionsCommand = async (output, context) => {
@@ -5819,12 +5819,12 @@ const deserializeAws_restJson1ListDeviceDefinitionsCommand = async (output, cont
5819
5819
  Definitions: undefined,
5820
5820
  NextToken: undefined,
5821
5821
  };
5822
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5822
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5823
5823
  if (data.Definitions !== undefined && data.Definitions !== null) {
5824
5824
  contents.Definitions = deserializeAws_restJson1__listOfDefinitionInformation(data.Definitions, context);
5825
5825
  }
5826
5826
  if (data.NextToken !== undefined && data.NextToken !== null) {
5827
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
5827
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
5828
5828
  }
5829
5829
  return Promise.resolve(contents);
5830
5830
  };
@@ -5845,7 +5845,7 @@ const deserializeAws_restJson1ListDeviceDefinitionsCommandError = async (output,
5845
5845
  $fault: "client",
5846
5846
  $metadata: deserializeMetadata(output),
5847
5847
  });
5848
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5848
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5849
5849
  }
5850
5850
  };
5851
5851
  const deserializeAws_restJson1ListDeviceDefinitionVersionsCommand = async (output, context) => {
@@ -5857,9 +5857,9 @@ const deserializeAws_restJson1ListDeviceDefinitionVersionsCommand = async (outpu
5857
5857
  NextToken: undefined,
5858
5858
  Versions: undefined,
5859
5859
  };
5860
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5860
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5861
5861
  if (data.NextToken !== undefined && data.NextToken !== null) {
5862
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
5862
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
5863
5863
  }
5864
5864
  if (data.Versions !== undefined && data.Versions !== null) {
5865
5865
  contents.Versions = deserializeAws_restJson1__listOfVersionInformation(data.Versions, context);
@@ -5886,7 +5886,7 @@ const deserializeAws_restJson1ListDeviceDefinitionVersionsCommandError = async (
5886
5886
  $fault: "client",
5887
5887
  $metadata: deserializeMetadata(output),
5888
5888
  });
5889
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5889
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5890
5890
  }
5891
5891
  };
5892
5892
  const deserializeAws_restJson1ListFunctionDefinitionsCommand = async (output, context) => {
@@ -5898,12 +5898,12 @@ const deserializeAws_restJson1ListFunctionDefinitionsCommand = async (output, co
5898
5898
  Definitions: undefined,
5899
5899
  NextToken: undefined,
5900
5900
  };
5901
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5901
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5902
5902
  if (data.Definitions !== undefined && data.Definitions !== null) {
5903
5903
  contents.Definitions = deserializeAws_restJson1__listOfDefinitionInformation(data.Definitions, context);
5904
5904
  }
5905
5905
  if (data.NextToken !== undefined && data.NextToken !== null) {
5906
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
5906
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
5907
5907
  }
5908
5908
  return Promise.resolve(contents);
5909
5909
  };
@@ -5924,7 +5924,7 @@ const deserializeAws_restJson1ListFunctionDefinitionsCommandError = async (outpu
5924
5924
  $fault: "client",
5925
5925
  $metadata: deserializeMetadata(output),
5926
5926
  });
5927
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5927
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5928
5928
  }
5929
5929
  };
5930
5930
  const deserializeAws_restJson1ListFunctionDefinitionVersionsCommand = async (output, context) => {
@@ -5936,9 +5936,9 @@ const deserializeAws_restJson1ListFunctionDefinitionVersionsCommand = async (out
5936
5936
  NextToken: undefined,
5937
5937
  Versions: undefined,
5938
5938
  };
5939
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5939
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5940
5940
  if (data.NextToken !== undefined && data.NextToken !== null) {
5941
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
5941
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
5942
5942
  }
5943
5943
  if (data.Versions !== undefined && data.Versions !== null) {
5944
5944
  contents.Versions = deserializeAws_restJson1__listOfVersionInformation(data.Versions, context);
@@ -5965,7 +5965,7 @@ const deserializeAws_restJson1ListFunctionDefinitionVersionsCommandError = async
5965
5965
  $fault: "client",
5966
5966
  $metadata: deserializeMetadata(output),
5967
5967
  });
5968
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5968
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5969
5969
  }
5970
5970
  };
5971
5971
  const deserializeAws_restJson1ListGroupCertificateAuthoritiesCommand = async (output, context) => {
@@ -5976,7 +5976,7 @@ const deserializeAws_restJson1ListGroupCertificateAuthoritiesCommand = async (ou
5976
5976
  $metadata: deserializeMetadata(output),
5977
5977
  GroupCertificateAuthorities: undefined,
5978
5978
  };
5979
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5979
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5980
5980
  if (data.GroupCertificateAuthorities !== undefined && data.GroupCertificateAuthorities !== null) {
5981
5981
  contents.GroupCertificateAuthorities = deserializeAws_restJson1__listOfGroupCertificateAuthorityProperties(data.GroupCertificateAuthorities, context);
5982
5982
  }
@@ -6005,7 +6005,7 @@ const deserializeAws_restJson1ListGroupCertificateAuthoritiesCommandError = asyn
6005
6005
  $fault: "client",
6006
6006
  $metadata: deserializeMetadata(output),
6007
6007
  });
6008
- throw smithy_client_1.decorateServiceException(response, parsedBody);
6008
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
6009
6009
  }
6010
6010
  };
6011
6011
  const deserializeAws_restJson1ListGroupsCommand = async (output, context) => {
@@ -6017,12 +6017,12 @@ const deserializeAws_restJson1ListGroupsCommand = async (output, context) => {
6017
6017
  Groups: undefined,
6018
6018
  NextToken: undefined,
6019
6019
  };
6020
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
6020
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
6021
6021
  if (data.Groups !== undefined && data.Groups !== null) {
6022
6022
  contents.Groups = deserializeAws_restJson1__listOfGroupInformation(data.Groups, context);
6023
6023
  }
6024
6024
  if (data.NextToken !== undefined && data.NextToken !== null) {
6025
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
6025
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
6026
6026
  }
6027
6027
  return Promise.resolve(contents);
6028
6028
  };
@@ -6043,7 +6043,7 @@ const deserializeAws_restJson1ListGroupsCommandError = async (output, context) =
6043
6043
  $fault: "client",
6044
6044
  $metadata: deserializeMetadata(output),
6045
6045
  });
6046
- throw smithy_client_1.decorateServiceException(response, parsedBody);
6046
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
6047
6047
  }
6048
6048
  };
6049
6049
  const deserializeAws_restJson1ListGroupVersionsCommand = async (output, context) => {
@@ -6055,9 +6055,9 @@ const deserializeAws_restJson1ListGroupVersionsCommand = async (output, context)
6055
6055
  NextToken: undefined,
6056
6056
  Versions: undefined,
6057
6057
  };
6058
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
6058
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
6059
6059
  if (data.NextToken !== undefined && data.NextToken !== null) {
6060
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
6060
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
6061
6061
  }
6062
6062
  if (data.Versions !== undefined && data.Versions !== null) {
6063
6063
  contents.Versions = deserializeAws_restJson1__listOfVersionInformation(data.Versions, context);
@@ -6084,7 +6084,7 @@ const deserializeAws_restJson1ListGroupVersionsCommandError = async (output, con
6084
6084
  $fault: "client",
6085
6085
  $metadata: deserializeMetadata(output),
6086
6086
  });
6087
- throw smithy_client_1.decorateServiceException(response, parsedBody);
6087
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
6088
6088
  }
6089
6089
  };
6090
6090
  const deserializeAws_restJson1ListLoggerDefinitionsCommand = async (output, context) => {
@@ -6096,12 +6096,12 @@ const deserializeAws_restJson1ListLoggerDefinitionsCommand = async (output, cont
6096
6096
  Definitions: undefined,
6097
6097
  NextToken: undefined,
6098
6098
  };
6099
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
6099
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
6100
6100
  if (data.Definitions !== undefined && data.Definitions !== null) {
6101
6101
  contents.Definitions = deserializeAws_restJson1__listOfDefinitionInformation(data.Definitions, context);
6102
6102
  }
6103
6103
  if (data.NextToken !== undefined && data.NextToken !== null) {
6104
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
6104
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
6105
6105
  }
6106
6106
  return Promise.resolve(contents);
6107
6107
  };
@@ -6122,7 +6122,7 @@ const deserializeAws_restJson1ListLoggerDefinitionsCommandError = async (output,
6122
6122
  $fault: "client",
6123
6123
  $metadata: deserializeMetadata(output),
6124
6124
  });
6125
- throw smithy_client_1.decorateServiceException(response, parsedBody);
6125
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
6126
6126
  }
6127
6127
  };
6128
6128
  const deserializeAws_restJson1ListLoggerDefinitionVersionsCommand = async (output, context) => {
@@ -6134,9 +6134,9 @@ const deserializeAws_restJson1ListLoggerDefinitionVersionsCommand = async (outpu
6134
6134
  NextToken: undefined,
6135
6135
  Versions: undefined,
6136
6136
  };
6137
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
6137
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
6138
6138
  if (data.NextToken !== undefined && data.NextToken !== null) {
6139
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
6139
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
6140
6140
  }
6141
6141
  if (data.Versions !== undefined && data.Versions !== null) {
6142
6142
  contents.Versions = deserializeAws_restJson1__listOfVersionInformation(data.Versions, context);
@@ -6163,7 +6163,7 @@ const deserializeAws_restJson1ListLoggerDefinitionVersionsCommandError = async (
6163
6163
  $fault: "client",
6164
6164
  $metadata: deserializeMetadata(output),
6165
6165
  });
6166
- throw smithy_client_1.decorateServiceException(response, parsedBody);
6166
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
6167
6167
  }
6168
6168
  };
6169
6169
  const deserializeAws_restJson1ListResourceDefinitionsCommand = async (output, context) => {
@@ -6175,12 +6175,12 @@ const deserializeAws_restJson1ListResourceDefinitionsCommand = async (output, co
6175
6175
  Definitions: undefined,
6176
6176
  NextToken: undefined,
6177
6177
  };
6178
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
6178
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
6179
6179
  if (data.Definitions !== undefined && data.Definitions !== null) {
6180
6180
  contents.Definitions = deserializeAws_restJson1__listOfDefinitionInformation(data.Definitions, context);
6181
6181
  }
6182
6182
  if (data.NextToken !== undefined && data.NextToken !== null) {
6183
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
6183
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
6184
6184
  }
6185
6185
  return Promise.resolve(contents);
6186
6186
  };
@@ -6201,7 +6201,7 @@ const deserializeAws_restJson1ListResourceDefinitionsCommandError = async (outpu
6201
6201
  $fault: "client",
6202
6202
  $metadata: deserializeMetadata(output),
6203
6203
  });
6204
- throw smithy_client_1.decorateServiceException(response, parsedBody);
6204
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
6205
6205
  }
6206
6206
  };
6207
6207
  const deserializeAws_restJson1ListResourceDefinitionVersionsCommand = async (output, context) => {
@@ -6213,9 +6213,9 @@ const deserializeAws_restJson1ListResourceDefinitionVersionsCommand = async (out
6213
6213
  NextToken: undefined,
6214
6214
  Versions: undefined,
6215
6215
  };
6216
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
6216
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
6217
6217
  if (data.NextToken !== undefined && data.NextToken !== null) {
6218
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
6218
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
6219
6219
  }
6220
6220
  if (data.Versions !== undefined && data.Versions !== null) {
6221
6221
  contents.Versions = deserializeAws_restJson1__listOfVersionInformation(data.Versions, context);
@@ -6242,7 +6242,7 @@ const deserializeAws_restJson1ListResourceDefinitionVersionsCommandError = async
6242
6242
  $fault: "client",
6243
6243
  $metadata: deserializeMetadata(output),
6244
6244
  });
6245
- throw smithy_client_1.decorateServiceException(response, parsedBody);
6245
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
6246
6246
  }
6247
6247
  };
6248
6248
  const deserializeAws_restJson1ListSubscriptionDefinitionsCommand = async (output, context) => {
@@ -6254,12 +6254,12 @@ const deserializeAws_restJson1ListSubscriptionDefinitionsCommand = async (output
6254
6254
  Definitions: undefined,
6255
6255
  NextToken: undefined,
6256
6256
  };
6257
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
6257
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
6258
6258
  if (data.Definitions !== undefined && data.Definitions !== null) {
6259
6259
  contents.Definitions = deserializeAws_restJson1__listOfDefinitionInformation(data.Definitions, context);
6260
6260
  }
6261
6261
  if (data.NextToken !== undefined && data.NextToken !== null) {
6262
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
6262
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
6263
6263
  }
6264
6264
  return Promise.resolve(contents);
6265
6265
  };
@@ -6280,7 +6280,7 @@ const deserializeAws_restJson1ListSubscriptionDefinitionsCommandError = async (o
6280
6280
  $fault: "client",
6281
6281
  $metadata: deserializeMetadata(output),
6282
6282
  });
6283
- throw smithy_client_1.decorateServiceException(response, parsedBody);
6283
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
6284
6284
  }
6285
6285
  };
6286
6286
  const deserializeAws_restJson1ListSubscriptionDefinitionVersionsCommand = async (output, context) => {
@@ -6292,9 +6292,9 @@ const deserializeAws_restJson1ListSubscriptionDefinitionVersionsCommand = async
6292
6292
  NextToken: undefined,
6293
6293
  Versions: undefined,
6294
6294
  };
6295
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
6295
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
6296
6296
  if (data.NextToken !== undefined && data.NextToken !== null) {
6297
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
6297
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
6298
6298
  }
6299
6299
  if (data.Versions !== undefined && data.Versions !== null) {
6300
6300
  contents.Versions = deserializeAws_restJson1__listOfVersionInformation(data.Versions, context);
@@ -6321,7 +6321,7 @@ const deserializeAws_restJson1ListSubscriptionDefinitionVersionsCommandError = a
6321
6321
  $fault: "client",
6322
6322
  $metadata: deserializeMetadata(output),
6323
6323
  });
6324
- throw smithy_client_1.decorateServiceException(response, parsedBody);
6324
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
6325
6325
  }
6326
6326
  };
6327
6327
  const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
@@ -6332,7 +6332,7 @@ const deserializeAws_restJson1ListTagsForResourceCommand = async (output, contex
6332
6332
  $metadata: deserializeMetadata(output),
6333
6333
  tags: undefined,
6334
6334
  };
6335
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
6335
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
6336
6336
  if (data.tags !== undefined && data.tags !== null) {
6337
6337
  contents.tags = deserializeAws_restJson1Tags(data.tags, context);
6338
6338
  }
@@ -6358,7 +6358,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
6358
6358
  $fault: "client",
6359
6359
  $metadata: deserializeMetadata(output),
6360
6360
  });
6361
- throw smithy_client_1.decorateServiceException(response, parsedBody);
6361
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
6362
6362
  }
6363
6363
  };
6364
6364
  const deserializeAws_restJson1ResetDeploymentsCommand = async (output, context) => {
@@ -6370,12 +6370,12 @@ const deserializeAws_restJson1ResetDeploymentsCommand = async (output, context)
6370
6370
  DeploymentArn: undefined,
6371
6371
  DeploymentId: undefined,
6372
6372
  };
6373
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
6373
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
6374
6374
  if (data.DeploymentArn !== undefined && data.DeploymentArn !== null) {
6375
- contents.DeploymentArn = smithy_client_1.expectString(data.DeploymentArn);
6375
+ contents.DeploymentArn = (0, smithy_client_1.expectString)(data.DeploymentArn);
6376
6376
  }
6377
6377
  if (data.DeploymentId !== undefined && data.DeploymentId !== null) {
6378
- contents.DeploymentId = smithy_client_1.expectString(data.DeploymentId);
6378
+ contents.DeploymentId = (0, smithy_client_1.expectString)(data.DeploymentId);
6379
6379
  }
6380
6380
  return Promise.resolve(contents);
6381
6381
  };
@@ -6399,7 +6399,7 @@ const deserializeAws_restJson1ResetDeploymentsCommandError = async (output, cont
6399
6399
  $fault: "client",
6400
6400
  $metadata: deserializeMetadata(output),
6401
6401
  });
6402
- throw smithy_client_1.decorateServiceException(response, parsedBody);
6402
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
6403
6403
  }
6404
6404
  };
6405
6405
  const deserializeAws_restJson1StartBulkDeploymentCommand = async (output, context) => {
@@ -6411,12 +6411,12 @@ const deserializeAws_restJson1StartBulkDeploymentCommand = async (output, contex
6411
6411
  BulkDeploymentArn: undefined,
6412
6412
  BulkDeploymentId: undefined,
6413
6413
  };
6414
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
6414
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
6415
6415
  if (data.BulkDeploymentArn !== undefined && data.BulkDeploymentArn !== null) {
6416
- contents.BulkDeploymentArn = smithy_client_1.expectString(data.BulkDeploymentArn);
6416
+ contents.BulkDeploymentArn = (0, smithy_client_1.expectString)(data.BulkDeploymentArn);
6417
6417
  }
6418
6418
  if (data.BulkDeploymentId !== undefined && data.BulkDeploymentId !== null) {
6419
- contents.BulkDeploymentId = smithy_client_1.expectString(data.BulkDeploymentId);
6419
+ contents.BulkDeploymentId = (0, smithy_client_1.expectString)(data.BulkDeploymentId);
6420
6420
  }
6421
6421
  return Promise.resolve(contents);
6422
6422
  };
@@ -6440,7 +6440,7 @@ const deserializeAws_restJson1StartBulkDeploymentCommandError = async (output, c
6440
6440
  $fault: "client",
6441
6441
  $metadata: deserializeMetadata(output),
6442
6442
  });
6443
- throw smithy_client_1.decorateServiceException(response, parsedBody);
6443
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
6444
6444
  }
6445
6445
  };
6446
6446
  const deserializeAws_restJson1StopBulkDeploymentCommand = async (output, context) => {
@@ -6473,7 +6473,7 @@ const deserializeAws_restJson1StopBulkDeploymentCommandError = async (output, co
6473
6473
  $fault: "client",
6474
6474
  $metadata: deserializeMetadata(output),
6475
6475
  });
6476
- throw smithy_client_1.decorateServiceException(response, parsedBody);
6476
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
6477
6477
  }
6478
6478
  };
6479
6479
  const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
@@ -6506,7 +6506,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
6506
6506
  $fault: "client",
6507
6507
  $metadata: deserializeMetadata(output),
6508
6508
  });
6509
- throw smithy_client_1.decorateServiceException(response, parsedBody);
6509
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
6510
6510
  }
6511
6511
  };
6512
6512
  const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
@@ -6539,7 +6539,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
6539
6539
  $fault: "client",
6540
6540
  $metadata: deserializeMetadata(output),
6541
6541
  });
6542
- throw smithy_client_1.decorateServiceException(response, parsedBody);
6542
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
6543
6543
  }
6544
6544
  };
6545
6545
  const deserializeAws_restJson1UpdateConnectivityInfoCommand = async (output, context) => {
@@ -6551,12 +6551,12 @@ const deserializeAws_restJson1UpdateConnectivityInfoCommand = async (output, con
6551
6551
  Message: undefined,
6552
6552
  Version: undefined,
6553
6553
  };
6554
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
6554
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
6555
6555
  if (data.message !== undefined && data.message !== null) {
6556
- contents.Message = smithy_client_1.expectString(data.message);
6556
+ contents.Message = (0, smithy_client_1.expectString)(data.message);
6557
6557
  }
6558
6558
  if (data.Version !== undefined && data.Version !== null) {
6559
- contents.Version = smithy_client_1.expectString(data.Version);
6559
+ contents.Version = (0, smithy_client_1.expectString)(data.Version);
6560
6560
  }
6561
6561
  return Promise.resolve(contents);
6562
6562
  };
@@ -6583,7 +6583,7 @@ const deserializeAws_restJson1UpdateConnectivityInfoCommandError = async (output
6583
6583
  $fault: "client",
6584
6584
  $metadata: deserializeMetadata(output),
6585
6585
  });
6586
- throw smithy_client_1.decorateServiceException(response, parsedBody);
6586
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
6587
6587
  }
6588
6588
  };
6589
6589
  const deserializeAws_restJson1UpdateConnectorDefinitionCommand = async (output, context) => {
@@ -6616,7 +6616,7 @@ const deserializeAws_restJson1UpdateConnectorDefinitionCommandError = async (out
6616
6616
  $fault: "client",
6617
6617
  $metadata: deserializeMetadata(output),
6618
6618
  });
6619
- throw smithy_client_1.decorateServiceException(response, parsedBody);
6619
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
6620
6620
  }
6621
6621
  };
6622
6622
  const deserializeAws_restJson1UpdateCoreDefinitionCommand = async (output, context) => {
@@ -6649,7 +6649,7 @@ const deserializeAws_restJson1UpdateCoreDefinitionCommandError = async (output,
6649
6649
  $fault: "client",
6650
6650
  $metadata: deserializeMetadata(output),
6651
6651
  });
6652
- throw smithy_client_1.decorateServiceException(response, parsedBody);
6652
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
6653
6653
  }
6654
6654
  };
6655
6655
  const deserializeAws_restJson1UpdateDeviceDefinitionCommand = async (output, context) => {
@@ -6682,7 +6682,7 @@ const deserializeAws_restJson1UpdateDeviceDefinitionCommandError = async (output
6682
6682
  $fault: "client",
6683
6683
  $metadata: deserializeMetadata(output),
6684
6684
  });
6685
- throw smithy_client_1.decorateServiceException(response, parsedBody);
6685
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
6686
6686
  }
6687
6687
  };
6688
6688
  const deserializeAws_restJson1UpdateFunctionDefinitionCommand = async (output, context) => {
@@ -6715,7 +6715,7 @@ const deserializeAws_restJson1UpdateFunctionDefinitionCommandError = async (outp
6715
6715
  $fault: "client",
6716
6716
  $metadata: deserializeMetadata(output),
6717
6717
  });
6718
- throw smithy_client_1.decorateServiceException(response, parsedBody);
6718
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
6719
6719
  }
6720
6720
  };
6721
6721
  const deserializeAws_restJson1UpdateGroupCommand = async (output, context) => {
@@ -6748,7 +6748,7 @@ const deserializeAws_restJson1UpdateGroupCommandError = async (output, context)
6748
6748
  $fault: "client",
6749
6749
  $metadata: deserializeMetadata(output),
6750
6750
  });
6751
- throw smithy_client_1.decorateServiceException(response, parsedBody);
6751
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
6752
6752
  }
6753
6753
  };
6754
6754
  const deserializeAws_restJson1UpdateGroupCertificateConfigurationCommand = async (output, context) => {
@@ -6761,16 +6761,16 @@ const deserializeAws_restJson1UpdateGroupCertificateConfigurationCommand = async
6761
6761
  CertificateExpiryInMilliseconds: undefined,
6762
6762
  GroupId: undefined,
6763
6763
  };
6764
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
6764
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
6765
6765
  if (data.CertificateAuthorityExpiryInMilliseconds !== undefined &&
6766
6766
  data.CertificateAuthorityExpiryInMilliseconds !== null) {
6767
- contents.CertificateAuthorityExpiryInMilliseconds = smithy_client_1.expectString(data.CertificateAuthorityExpiryInMilliseconds);
6767
+ contents.CertificateAuthorityExpiryInMilliseconds = (0, smithy_client_1.expectString)(data.CertificateAuthorityExpiryInMilliseconds);
6768
6768
  }
6769
6769
  if (data.CertificateExpiryInMilliseconds !== undefined && data.CertificateExpiryInMilliseconds !== null) {
6770
- contents.CertificateExpiryInMilliseconds = smithy_client_1.expectString(data.CertificateExpiryInMilliseconds);
6770
+ contents.CertificateExpiryInMilliseconds = (0, smithy_client_1.expectString)(data.CertificateExpiryInMilliseconds);
6771
6771
  }
6772
6772
  if (data.GroupId !== undefined && data.GroupId !== null) {
6773
- contents.GroupId = smithy_client_1.expectString(data.GroupId);
6773
+ contents.GroupId = (0, smithy_client_1.expectString)(data.GroupId);
6774
6774
  }
6775
6775
  return Promise.resolve(contents);
6776
6776
  };
@@ -6797,7 +6797,7 @@ const deserializeAws_restJson1UpdateGroupCertificateConfigurationCommandError =
6797
6797
  $fault: "client",
6798
6798
  $metadata: deserializeMetadata(output),
6799
6799
  });
6800
- throw smithy_client_1.decorateServiceException(response, parsedBody);
6800
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
6801
6801
  }
6802
6802
  };
6803
6803
  const deserializeAws_restJson1UpdateLoggerDefinitionCommand = async (output, context) => {
@@ -6830,7 +6830,7 @@ const deserializeAws_restJson1UpdateLoggerDefinitionCommandError = async (output
6830
6830
  $fault: "client",
6831
6831
  $metadata: deserializeMetadata(output),
6832
6832
  });
6833
- throw smithy_client_1.decorateServiceException(response, parsedBody);
6833
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
6834
6834
  }
6835
6835
  };
6836
6836
  const deserializeAws_restJson1UpdateResourceDefinitionCommand = async (output, context) => {
@@ -6863,7 +6863,7 @@ const deserializeAws_restJson1UpdateResourceDefinitionCommandError = async (outp
6863
6863
  $fault: "client",
6864
6864
  $metadata: deserializeMetadata(output),
6865
6865
  });
6866
- throw smithy_client_1.decorateServiceException(response, parsedBody);
6866
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
6867
6867
  }
6868
6868
  };
6869
6869
  const deserializeAws_restJson1UpdateSubscriptionDefinitionCommand = async (output, context) => {
@@ -6896,7 +6896,7 @@ const deserializeAws_restJson1UpdateSubscriptionDefinitionCommandError = async (
6896
6896
  $fault: "client",
6897
6897
  $metadata: deserializeMetadata(output),
6898
6898
  });
6899
- throw smithy_client_1.decorateServiceException(response, parsedBody);
6899
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
6900
6900
  }
6901
6901
  };
6902
6902
  const deserializeAws_restJson1UpdateThingRuntimeConfigurationCommand = async (output, context) => {
@@ -6932,7 +6932,7 @@ const deserializeAws_restJson1UpdateThingRuntimeConfigurationCommandError = asyn
6932
6932
  $fault: "client",
6933
6933
  $metadata: deserializeMetadata(output),
6934
6934
  });
6935
- throw smithy_client_1.decorateServiceException(response, parsedBody);
6935
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
6936
6936
  }
6937
6937
  };
6938
6938
  const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput, context) => {
@@ -6942,13 +6942,13 @@ const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput,
6942
6942
  contents.ErrorDetails = deserializeAws_restJson1ErrorDetails(data.ErrorDetails, context);
6943
6943
  }
6944
6944
  if (data.Message !== undefined && data.Message !== null) {
6945
- contents.Message = smithy_client_1.expectString(data.Message);
6945
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
6946
6946
  }
6947
6947
  const exception = new models_0_1.BadRequestException({
6948
6948
  $metadata: deserializeMetadata(parsedOutput),
6949
6949
  ...contents,
6950
6950
  });
6951
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
6951
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
6952
6952
  };
6953
6953
  const deserializeAws_restJson1InternalServerErrorExceptionResponse = async (parsedOutput, context) => {
6954
6954
  const contents = {};
@@ -6957,13 +6957,13 @@ const deserializeAws_restJson1InternalServerErrorExceptionResponse = async (pars
6957
6957
  contents.ErrorDetails = deserializeAws_restJson1ErrorDetails(data.ErrorDetails, context);
6958
6958
  }
6959
6959
  if (data.Message !== undefined && data.Message !== null) {
6960
- contents.Message = smithy_client_1.expectString(data.Message);
6960
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
6961
6961
  }
6962
6962
  const exception = new models_0_1.InternalServerErrorException({
6963
6963
  $metadata: deserializeMetadata(parsedOutput),
6964
6964
  ...contents,
6965
6965
  });
6966
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
6966
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
6967
6967
  };
6968
6968
  const serializeAws_restJson1__listOf__string = (input, context) => {
6969
6969
  return input
@@ -7407,7 +7407,7 @@ const deserializeAws_restJson1__listOf__string = (output, context) => {
7407
7407
  if (entry === null) {
7408
7408
  return null;
7409
7409
  }
7410
- return smithy_client_1.expectString(entry);
7410
+ return (0, smithy_client_1.expectString)(entry);
7411
7411
  });
7412
7412
  return retVal;
7413
7413
  };
@@ -7561,36 +7561,36 @@ const deserializeAws_restJson1__mapOf__string = (output, context) => {
7561
7561
  }
7562
7562
  return {
7563
7563
  ...acc,
7564
- [key]: smithy_client_1.expectString(value),
7564
+ [key]: (0, smithy_client_1.expectString)(value),
7565
7565
  };
7566
7566
  }, {});
7567
7567
  };
7568
7568
  const deserializeAws_restJson1BulkDeployment = (output, context) => {
7569
7569
  return {
7570
- BulkDeploymentArn: smithy_client_1.expectString(output.BulkDeploymentArn),
7571
- BulkDeploymentId: smithy_client_1.expectString(output.BulkDeploymentId),
7572
- CreatedAt: smithy_client_1.expectString(output.CreatedAt),
7570
+ BulkDeploymentArn: (0, smithy_client_1.expectString)(output.BulkDeploymentArn),
7571
+ BulkDeploymentId: (0, smithy_client_1.expectString)(output.BulkDeploymentId),
7572
+ CreatedAt: (0, smithy_client_1.expectString)(output.CreatedAt),
7573
7573
  };
7574
7574
  };
7575
7575
  const deserializeAws_restJson1BulkDeploymentMetrics = (output, context) => {
7576
7576
  return {
7577
- InvalidInputRecords: smithy_client_1.expectInt32(output.InvalidInputRecords),
7578
- RecordsProcessed: smithy_client_1.expectInt32(output.RecordsProcessed),
7579
- RetryAttempts: smithy_client_1.expectInt32(output.RetryAttempts),
7577
+ InvalidInputRecords: (0, smithy_client_1.expectInt32)(output.InvalidInputRecords),
7578
+ RecordsProcessed: (0, smithy_client_1.expectInt32)(output.RecordsProcessed),
7579
+ RetryAttempts: (0, smithy_client_1.expectInt32)(output.RetryAttempts),
7580
7580
  };
7581
7581
  };
7582
7582
  const deserializeAws_restJson1BulkDeploymentResult = (output, context) => {
7583
7583
  return {
7584
- CreatedAt: smithy_client_1.expectString(output.CreatedAt),
7585
- DeploymentArn: smithy_client_1.expectString(output.DeploymentArn),
7586
- DeploymentId: smithy_client_1.expectString(output.DeploymentId),
7587
- DeploymentStatus: smithy_client_1.expectString(output.DeploymentStatus),
7588
- DeploymentType: smithy_client_1.expectString(output.DeploymentType),
7584
+ CreatedAt: (0, smithy_client_1.expectString)(output.CreatedAt),
7585
+ DeploymentArn: (0, smithy_client_1.expectString)(output.DeploymentArn),
7586
+ DeploymentId: (0, smithy_client_1.expectString)(output.DeploymentId),
7587
+ DeploymentStatus: (0, smithy_client_1.expectString)(output.DeploymentStatus),
7588
+ DeploymentType: (0, smithy_client_1.expectString)(output.DeploymentType),
7589
7589
  ErrorDetails: output.ErrorDetails !== undefined && output.ErrorDetails !== null
7590
7590
  ? deserializeAws_restJson1ErrorDetails(output.ErrorDetails, context)
7591
7591
  : undefined,
7592
- ErrorMessage: smithy_client_1.expectString(output.ErrorMessage),
7593
- GroupArn: smithy_client_1.expectString(output.GroupArn),
7592
+ ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
7593
+ GroupArn: (0, smithy_client_1.expectString)(output.GroupArn),
7594
7594
  };
7595
7595
  };
7596
7596
  const deserializeAws_restJson1BulkDeploymentResults = (output, context) => {
@@ -7617,16 +7617,16 @@ const deserializeAws_restJson1BulkDeployments = (output, context) => {
7617
7617
  };
7618
7618
  const deserializeAws_restJson1ConnectivityInfo = (output, context) => {
7619
7619
  return {
7620
- HostAddress: smithy_client_1.expectString(output.HostAddress),
7621
- Id: smithy_client_1.expectString(output.Id),
7622
- Metadata: smithy_client_1.expectString(output.Metadata),
7623
- PortNumber: smithy_client_1.expectInt32(output.PortNumber),
7620
+ HostAddress: (0, smithy_client_1.expectString)(output.HostAddress),
7621
+ Id: (0, smithy_client_1.expectString)(output.Id),
7622
+ Metadata: (0, smithy_client_1.expectString)(output.Metadata),
7623
+ PortNumber: (0, smithy_client_1.expectInt32)(output.PortNumber),
7624
7624
  };
7625
7625
  };
7626
7626
  const deserializeAws_restJson1Connector = (output, context) => {
7627
7627
  return {
7628
- ConnectorArn: smithy_client_1.expectString(output.ConnectorArn),
7629
- Id: smithy_client_1.expectString(output.Id),
7628
+ ConnectorArn: (0, smithy_client_1.expectString)(output.ConnectorArn),
7629
+ Id: (0, smithy_client_1.expectString)(output.Id),
7630
7630
  Parameters: output.Parameters !== undefined && output.Parameters !== null
7631
7631
  ? deserializeAws_restJson1__mapOf__string(output.Parameters, context)
7632
7632
  : undefined,
@@ -7641,10 +7641,10 @@ const deserializeAws_restJson1ConnectorDefinitionVersion = (output, context) =>
7641
7641
  };
7642
7642
  const deserializeAws_restJson1Core = (output, context) => {
7643
7643
  return {
7644
- CertificateArn: smithy_client_1.expectString(output.CertificateArn),
7645
- Id: smithy_client_1.expectString(output.Id),
7646
- SyncShadow: smithy_client_1.expectBoolean(output.SyncShadow),
7647
- ThingArn: smithy_client_1.expectString(output.ThingArn),
7644
+ CertificateArn: (0, smithy_client_1.expectString)(output.CertificateArn),
7645
+ Id: (0, smithy_client_1.expectString)(output.Id),
7646
+ SyncShadow: (0, smithy_client_1.expectBoolean)(output.SyncShadow),
7647
+ ThingArn: (0, smithy_client_1.expectString)(output.ThingArn),
7648
7648
  };
7649
7649
  };
7650
7650
  const deserializeAws_restJson1CoreDefinitionVersion = (output, context) => {
@@ -7656,13 +7656,13 @@ const deserializeAws_restJson1CoreDefinitionVersion = (output, context) => {
7656
7656
  };
7657
7657
  const deserializeAws_restJson1DefinitionInformation = (output, context) => {
7658
7658
  return {
7659
- Arn: smithy_client_1.expectString(output.Arn),
7660
- CreationTimestamp: smithy_client_1.expectString(output.CreationTimestamp),
7661
- Id: smithy_client_1.expectString(output.Id),
7662
- LastUpdatedTimestamp: smithy_client_1.expectString(output.LastUpdatedTimestamp),
7663
- LatestVersion: smithy_client_1.expectString(output.LatestVersion),
7664
- LatestVersionArn: smithy_client_1.expectString(output.LatestVersionArn),
7665
- Name: smithy_client_1.expectString(output.Name),
7659
+ Arn: (0, smithy_client_1.expectString)(output.Arn),
7660
+ CreationTimestamp: (0, smithy_client_1.expectString)(output.CreationTimestamp),
7661
+ Id: (0, smithy_client_1.expectString)(output.Id),
7662
+ LastUpdatedTimestamp: (0, smithy_client_1.expectString)(output.LastUpdatedTimestamp),
7663
+ LatestVersion: (0, smithy_client_1.expectString)(output.LatestVersion),
7664
+ LatestVersionArn: (0, smithy_client_1.expectString)(output.LatestVersionArn),
7665
+ Name: (0, smithy_client_1.expectString)(output.Name),
7666
7666
  Tags: output.tags !== undefined && output.tags !== null
7667
7667
  ? deserializeAws_restJson1Tags(output.tags, context)
7668
7668
  : undefined,
@@ -7670,11 +7670,11 @@ const deserializeAws_restJson1DefinitionInformation = (output, context) => {
7670
7670
  };
7671
7671
  const deserializeAws_restJson1Deployment = (output, context) => {
7672
7672
  return {
7673
- CreatedAt: smithy_client_1.expectString(output.CreatedAt),
7674
- DeploymentArn: smithy_client_1.expectString(output.DeploymentArn),
7675
- DeploymentId: smithy_client_1.expectString(output.DeploymentId),
7676
- DeploymentType: smithy_client_1.expectString(output.DeploymentType),
7677
- GroupArn: smithy_client_1.expectString(output.GroupArn),
7673
+ CreatedAt: (0, smithy_client_1.expectString)(output.CreatedAt),
7674
+ DeploymentArn: (0, smithy_client_1.expectString)(output.DeploymentArn),
7675
+ DeploymentId: (0, smithy_client_1.expectString)(output.DeploymentId),
7676
+ DeploymentType: (0, smithy_client_1.expectString)(output.DeploymentType),
7677
+ GroupArn: (0, smithy_client_1.expectString)(output.GroupArn),
7678
7678
  };
7679
7679
  };
7680
7680
  const deserializeAws_restJson1Deployments = (output, context) => {
@@ -7690,10 +7690,10 @@ const deserializeAws_restJson1Deployments = (output, context) => {
7690
7690
  };
7691
7691
  const deserializeAws_restJson1Device = (output, context) => {
7692
7692
  return {
7693
- CertificateArn: smithy_client_1.expectString(output.CertificateArn),
7694
- Id: smithy_client_1.expectString(output.Id),
7695
- SyncShadow: smithy_client_1.expectBoolean(output.SyncShadow),
7696
- ThingArn: smithy_client_1.expectString(output.ThingArn),
7693
+ CertificateArn: (0, smithy_client_1.expectString)(output.CertificateArn),
7694
+ Id: (0, smithy_client_1.expectString)(output.Id),
7695
+ SyncShadow: (0, smithy_client_1.expectBoolean)(output.SyncShadow),
7696
+ ThingArn: (0, smithy_client_1.expectString)(output.ThingArn),
7697
7697
  };
7698
7698
  };
7699
7699
  const deserializeAws_restJson1DeviceDefinitionVersion = (output, context) => {
@@ -7705,8 +7705,8 @@ const deserializeAws_restJson1DeviceDefinitionVersion = (output, context) => {
7705
7705
  };
7706
7706
  const deserializeAws_restJson1ErrorDetail = (output, context) => {
7707
7707
  return {
7708
- DetailedErrorCode: smithy_client_1.expectString(output.DetailedErrorCode),
7709
- DetailedErrorMessage: smithy_client_1.expectString(output.DetailedErrorMessage),
7708
+ DetailedErrorCode: (0, smithy_client_1.expectString)(output.DetailedErrorCode),
7709
+ DetailedErrorMessage: (0, smithy_client_1.expectString)(output.DetailedErrorMessage),
7710
7710
  };
7711
7711
  };
7712
7712
  const deserializeAws_restJson1ErrorDetails = (output, context) => {
@@ -7722,29 +7722,29 @@ const deserializeAws_restJson1ErrorDetails = (output, context) => {
7722
7722
  };
7723
7723
  const deserializeAws_restJson1Function = (output, context) => {
7724
7724
  return {
7725
- FunctionArn: smithy_client_1.expectString(output.FunctionArn),
7725
+ FunctionArn: (0, smithy_client_1.expectString)(output.FunctionArn),
7726
7726
  FunctionConfiguration: output.FunctionConfiguration !== undefined && output.FunctionConfiguration !== null
7727
7727
  ? deserializeAws_restJson1FunctionConfiguration(output.FunctionConfiguration, context)
7728
7728
  : undefined,
7729
- Id: smithy_client_1.expectString(output.Id),
7729
+ Id: (0, smithy_client_1.expectString)(output.Id),
7730
7730
  };
7731
7731
  };
7732
7732
  const deserializeAws_restJson1FunctionConfiguration = (output, context) => {
7733
7733
  return {
7734
- EncodingType: smithy_client_1.expectString(output.EncodingType),
7734
+ EncodingType: (0, smithy_client_1.expectString)(output.EncodingType),
7735
7735
  Environment: output.Environment !== undefined && output.Environment !== null
7736
7736
  ? deserializeAws_restJson1FunctionConfigurationEnvironment(output.Environment, context)
7737
7737
  : undefined,
7738
- ExecArgs: smithy_client_1.expectString(output.ExecArgs),
7739
- Executable: smithy_client_1.expectString(output.Executable),
7740
- MemorySize: smithy_client_1.expectInt32(output.MemorySize),
7741
- Pinned: smithy_client_1.expectBoolean(output.Pinned),
7742
- Timeout: smithy_client_1.expectInt32(output.Timeout),
7738
+ ExecArgs: (0, smithy_client_1.expectString)(output.ExecArgs),
7739
+ Executable: (0, smithy_client_1.expectString)(output.Executable),
7740
+ MemorySize: (0, smithy_client_1.expectInt32)(output.MemorySize),
7741
+ Pinned: (0, smithy_client_1.expectBoolean)(output.Pinned),
7742
+ Timeout: (0, smithy_client_1.expectInt32)(output.Timeout),
7743
7743
  };
7744
7744
  };
7745
7745
  const deserializeAws_restJson1FunctionConfigurationEnvironment = (output, context) => {
7746
7746
  return {
7747
- AccessSysfs: smithy_client_1.expectBoolean(output.AccessSysfs),
7747
+ AccessSysfs: (0, smithy_client_1.expectBoolean)(output.AccessSysfs),
7748
7748
  Execution: output.Execution !== undefined && output.Execution !== null
7749
7749
  ? deserializeAws_restJson1FunctionExecutionConfig(output.Execution, context)
7750
7750
  : undefined,
@@ -7765,7 +7765,7 @@ const deserializeAws_restJson1FunctionDefaultConfig = (output, context) => {
7765
7765
  };
7766
7766
  const deserializeAws_restJson1FunctionDefaultExecutionConfig = (output, context) => {
7767
7767
  return {
7768
- IsolationMode: smithy_client_1.expectString(output.IsolationMode),
7768
+ IsolationMode: (0, smithy_client_1.expectString)(output.IsolationMode),
7769
7769
  RunAs: output.RunAs !== undefined && output.RunAs !== null
7770
7770
  ? deserializeAws_restJson1FunctionRunAsConfig(output.RunAs, context)
7771
7771
  : undefined,
@@ -7783,7 +7783,7 @@ const deserializeAws_restJson1FunctionDefinitionVersion = (output, context) => {
7783
7783
  };
7784
7784
  const deserializeAws_restJson1FunctionExecutionConfig = (output, context) => {
7785
7785
  return {
7786
- IsolationMode: smithy_client_1.expectString(output.IsolationMode),
7786
+ IsolationMode: (0, smithy_client_1.expectString)(output.IsolationMode),
7787
7787
  RunAs: output.RunAs !== undefined && output.RunAs !== null
7788
7788
  ? deserializeAws_restJson1FunctionRunAsConfig(output.RunAs, context)
7789
7789
  : undefined,
@@ -7791,42 +7791,42 @@ const deserializeAws_restJson1FunctionExecutionConfig = (output, context) => {
7791
7791
  };
7792
7792
  const deserializeAws_restJson1FunctionRunAsConfig = (output, context) => {
7793
7793
  return {
7794
- Gid: smithy_client_1.expectInt32(output.Gid),
7795
- Uid: smithy_client_1.expectInt32(output.Uid),
7794
+ Gid: (0, smithy_client_1.expectInt32)(output.Gid),
7795
+ Uid: (0, smithy_client_1.expectInt32)(output.Uid),
7796
7796
  };
7797
7797
  };
7798
7798
  const deserializeAws_restJson1GroupCertificateAuthorityProperties = (output, context) => {
7799
7799
  return {
7800
- GroupCertificateAuthorityArn: smithy_client_1.expectString(output.GroupCertificateAuthorityArn),
7801
- GroupCertificateAuthorityId: smithy_client_1.expectString(output.GroupCertificateAuthorityId),
7800
+ GroupCertificateAuthorityArn: (0, smithy_client_1.expectString)(output.GroupCertificateAuthorityArn),
7801
+ GroupCertificateAuthorityId: (0, smithy_client_1.expectString)(output.GroupCertificateAuthorityId),
7802
7802
  };
7803
7803
  };
7804
7804
  const deserializeAws_restJson1GroupInformation = (output, context) => {
7805
7805
  return {
7806
- Arn: smithy_client_1.expectString(output.Arn),
7807
- CreationTimestamp: smithy_client_1.expectString(output.CreationTimestamp),
7808
- Id: smithy_client_1.expectString(output.Id),
7809
- LastUpdatedTimestamp: smithy_client_1.expectString(output.LastUpdatedTimestamp),
7810
- LatestVersion: smithy_client_1.expectString(output.LatestVersion),
7811
- LatestVersionArn: smithy_client_1.expectString(output.LatestVersionArn),
7812
- Name: smithy_client_1.expectString(output.Name),
7806
+ Arn: (0, smithy_client_1.expectString)(output.Arn),
7807
+ CreationTimestamp: (0, smithy_client_1.expectString)(output.CreationTimestamp),
7808
+ Id: (0, smithy_client_1.expectString)(output.Id),
7809
+ LastUpdatedTimestamp: (0, smithy_client_1.expectString)(output.LastUpdatedTimestamp),
7810
+ LatestVersion: (0, smithy_client_1.expectString)(output.LatestVersion),
7811
+ LatestVersionArn: (0, smithy_client_1.expectString)(output.LatestVersionArn),
7812
+ Name: (0, smithy_client_1.expectString)(output.Name),
7813
7813
  };
7814
7814
  };
7815
7815
  const deserializeAws_restJson1GroupOwnerSetting = (output, context) => {
7816
7816
  return {
7817
- AutoAddGroupOwner: smithy_client_1.expectBoolean(output.AutoAddGroupOwner),
7818
- GroupOwner: smithy_client_1.expectString(output.GroupOwner),
7817
+ AutoAddGroupOwner: (0, smithy_client_1.expectBoolean)(output.AutoAddGroupOwner),
7818
+ GroupOwner: (0, smithy_client_1.expectString)(output.GroupOwner),
7819
7819
  };
7820
7820
  };
7821
7821
  const deserializeAws_restJson1GroupVersion = (output, context) => {
7822
7822
  return {
7823
- ConnectorDefinitionVersionArn: smithy_client_1.expectString(output.ConnectorDefinitionVersionArn),
7824
- CoreDefinitionVersionArn: smithy_client_1.expectString(output.CoreDefinitionVersionArn),
7825
- DeviceDefinitionVersionArn: smithy_client_1.expectString(output.DeviceDefinitionVersionArn),
7826
- FunctionDefinitionVersionArn: smithy_client_1.expectString(output.FunctionDefinitionVersionArn),
7827
- LoggerDefinitionVersionArn: smithy_client_1.expectString(output.LoggerDefinitionVersionArn),
7828
- ResourceDefinitionVersionArn: smithy_client_1.expectString(output.ResourceDefinitionVersionArn),
7829
- SubscriptionDefinitionVersionArn: smithy_client_1.expectString(output.SubscriptionDefinitionVersionArn),
7823
+ ConnectorDefinitionVersionArn: (0, smithy_client_1.expectString)(output.ConnectorDefinitionVersionArn),
7824
+ CoreDefinitionVersionArn: (0, smithy_client_1.expectString)(output.CoreDefinitionVersionArn),
7825
+ DeviceDefinitionVersionArn: (0, smithy_client_1.expectString)(output.DeviceDefinitionVersionArn),
7826
+ FunctionDefinitionVersionArn: (0, smithy_client_1.expectString)(output.FunctionDefinitionVersionArn),
7827
+ LoggerDefinitionVersionArn: (0, smithy_client_1.expectString)(output.LoggerDefinitionVersionArn),
7828
+ ResourceDefinitionVersionArn: (0, smithy_client_1.expectString)(output.ResourceDefinitionVersionArn),
7829
+ SubscriptionDefinitionVersionArn: (0, smithy_client_1.expectString)(output.SubscriptionDefinitionVersionArn),
7830
7830
  };
7831
7831
  };
7832
7832
  const deserializeAws_restJson1LocalDeviceResourceData = (output, context) => {
@@ -7834,25 +7834,25 @@ const deserializeAws_restJson1LocalDeviceResourceData = (output, context) => {
7834
7834
  GroupOwnerSetting: output.GroupOwnerSetting !== undefined && output.GroupOwnerSetting !== null
7835
7835
  ? deserializeAws_restJson1GroupOwnerSetting(output.GroupOwnerSetting, context)
7836
7836
  : undefined,
7837
- SourcePath: smithy_client_1.expectString(output.SourcePath),
7837
+ SourcePath: (0, smithy_client_1.expectString)(output.SourcePath),
7838
7838
  };
7839
7839
  };
7840
7840
  const deserializeAws_restJson1LocalVolumeResourceData = (output, context) => {
7841
7841
  return {
7842
- DestinationPath: smithy_client_1.expectString(output.DestinationPath),
7842
+ DestinationPath: (0, smithy_client_1.expectString)(output.DestinationPath),
7843
7843
  GroupOwnerSetting: output.GroupOwnerSetting !== undefined && output.GroupOwnerSetting !== null
7844
7844
  ? deserializeAws_restJson1GroupOwnerSetting(output.GroupOwnerSetting, context)
7845
7845
  : undefined,
7846
- SourcePath: smithy_client_1.expectString(output.SourcePath),
7846
+ SourcePath: (0, smithy_client_1.expectString)(output.SourcePath),
7847
7847
  };
7848
7848
  };
7849
7849
  const deserializeAws_restJson1Logger = (output, context) => {
7850
7850
  return {
7851
- Component: smithy_client_1.expectString(output.Component),
7852
- Id: smithy_client_1.expectString(output.Id),
7853
- Level: smithy_client_1.expectString(output.Level),
7854
- Space: smithy_client_1.expectInt32(output.Space),
7855
- Type: smithy_client_1.expectString(output.Type),
7851
+ Component: (0, smithy_client_1.expectString)(output.Component),
7852
+ Id: (0, smithy_client_1.expectString)(output.Id),
7853
+ Level: (0, smithy_client_1.expectString)(output.Level),
7854
+ Space: (0, smithy_client_1.expectInt32)(output.Space),
7855
+ Type: (0, smithy_client_1.expectString)(output.Type),
7856
7856
  };
7857
7857
  };
7858
7858
  const deserializeAws_restJson1LoggerDefinitionVersion = (output, context) => {
@@ -7864,8 +7864,8 @@ const deserializeAws_restJson1LoggerDefinitionVersion = (output, context) => {
7864
7864
  };
7865
7865
  const deserializeAws_restJson1Resource = (output, context) => {
7866
7866
  return {
7867
- Id: smithy_client_1.expectString(output.Id),
7868
- Name: smithy_client_1.expectString(output.Name),
7867
+ Id: (0, smithy_client_1.expectString)(output.Id),
7868
+ Name: (0, smithy_client_1.expectString)(output.Name),
7869
7869
  ResourceDataContainer: output.ResourceDataContainer !== undefined && output.ResourceDataContainer !== null
7870
7870
  ? deserializeAws_restJson1ResourceDataContainer(output.ResourceDataContainer, context)
7871
7871
  : undefined,
@@ -7873,8 +7873,8 @@ const deserializeAws_restJson1Resource = (output, context) => {
7873
7873
  };
7874
7874
  const deserializeAws_restJson1ResourceAccessPolicy = (output, context) => {
7875
7875
  return {
7876
- Permission: smithy_client_1.expectString(output.Permission),
7877
- ResourceId: smithy_client_1.expectString(output.ResourceId),
7876
+ Permission: (0, smithy_client_1.expectString)(output.Permission),
7877
+ ResourceId: (0, smithy_client_1.expectString)(output.ResourceId),
7878
7878
  };
7879
7879
  };
7880
7880
  const deserializeAws_restJson1ResourceDataContainer = (output, context) => {
@@ -7906,8 +7906,8 @@ const deserializeAws_restJson1ResourceDefinitionVersion = (output, context) => {
7906
7906
  };
7907
7907
  const deserializeAws_restJson1ResourceDownloadOwnerSetting = (output, context) => {
7908
7908
  return {
7909
- GroupOwner: smithy_client_1.expectString(output.GroupOwner),
7910
- GroupPermission: smithy_client_1.expectString(output.GroupPermission),
7909
+ GroupOwner: (0, smithy_client_1.expectString)(output.GroupOwner),
7910
+ GroupPermission: (0, smithy_client_1.expectString)(output.GroupPermission),
7911
7911
  };
7912
7912
  };
7913
7913
  const deserializeAws_restJson1RuntimeConfiguration = (output, context) => {
@@ -7919,25 +7919,25 @@ const deserializeAws_restJson1RuntimeConfiguration = (output, context) => {
7919
7919
  };
7920
7920
  const deserializeAws_restJson1S3MachineLearningModelResourceData = (output, context) => {
7921
7921
  return {
7922
- DestinationPath: smithy_client_1.expectString(output.DestinationPath),
7922
+ DestinationPath: (0, smithy_client_1.expectString)(output.DestinationPath),
7923
7923
  OwnerSetting: output.OwnerSetting !== undefined && output.OwnerSetting !== null
7924
7924
  ? deserializeAws_restJson1ResourceDownloadOwnerSetting(output.OwnerSetting, context)
7925
7925
  : undefined,
7926
- S3Uri: smithy_client_1.expectString(output.S3Uri),
7926
+ S3Uri: (0, smithy_client_1.expectString)(output.S3Uri),
7927
7927
  };
7928
7928
  };
7929
7929
  const deserializeAws_restJson1SageMakerMachineLearningModelResourceData = (output, context) => {
7930
7930
  return {
7931
- DestinationPath: smithy_client_1.expectString(output.DestinationPath),
7931
+ DestinationPath: (0, smithy_client_1.expectString)(output.DestinationPath),
7932
7932
  OwnerSetting: output.OwnerSetting !== undefined && output.OwnerSetting !== null
7933
7933
  ? deserializeAws_restJson1ResourceDownloadOwnerSetting(output.OwnerSetting, context)
7934
7934
  : undefined,
7935
- SageMakerJobArn: smithy_client_1.expectString(output.SageMakerJobArn),
7935
+ SageMakerJobArn: (0, smithy_client_1.expectString)(output.SageMakerJobArn),
7936
7936
  };
7937
7937
  };
7938
7938
  const deserializeAws_restJson1SecretsManagerSecretResourceData = (output, context) => {
7939
7939
  return {
7940
- ARN: smithy_client_1.expectString(output.ARN),
7940
+ ARN: (0, smithy_client_1.expectString)(output.ARN),
7941
7941
  AdditionalStagingLabelsToDownload: output.AdditionalStagingLabelsToDownload !== undefined && output.AdditionalStagingLabelsToDownload !== null
7942
7942
  ? deserializeAws_restJson1__listOf__string(output.AdditionalStagingLabelsToDownload, context)
7943
7943
  : undefined,
@@ -7945,10 +7945,10 @@ const deserializeAws_restJson1SecretsManagerSecretResourceData = (output, contex
7945
7945
  };
7946
7946
  const deserializeAws_restJson1Subscription = (output, context) => {
7947
7947
  return {
7948
- Id: smithy_client_1.expectString(output.Id),
7949
- Source: smithy_client_1.expectString(output.Source),
7950
- Subject: smithy_client_1.expectString(output.Subject),
7951
- Target: smithy_client_1.expectString(output.Target),
7948
+ Id: (0, smithy_client_1.expectString)(output.Id),
7949
+ Source: (0, smithy_client_1.expectString)(output.Source),
7950
+ Subject: (0, smithy_client_1.expectString)(output.Subject),
7951
+ Target: (0, smithy_client_1.expectString)(output.Target),
7952
7952
  };
7953
7953
  };
7954
7954
  const deserializeAws_restJson1SubscriptionDefinitionVersion = (output, context) => {
@@ -7965,22 +7965,22 @@ const deserializeAws_restJson1Tags = (output, context) => {
7965
7965
  }
7966
7966
  return {
7967
7967
  ...acc,
7968
- [key]: smithy_client_1.expectString(value),
7968
+ [key]: (0, smithy_client_1.expectString)(value),
7969
7969
  };
7970
7970
  }, {});
7971
7971
  };
7972
7972
  const deserializeAws_restJson1TelemetryConfiguration = (output, context) => {
7973
7973
  return {
7974
- ConfigurationSyncStatus: smithy_client_1.expectString(output.ConfigurationSyncStatus),
7975
- Telemetry: smithy_client_1.expectString(output.Telemetry),
7974
+ ConfigurationSyncStatus: (0, smithy_client_1.expectString)(output.ConfigurationSyncStatus),
7975
+ Telemetry: (0, smithy_client_1.expectString)(output.Telemetry),
7976
7976
  };
7977
7977
  };
7978
7978
  const deserializeAws_restJson1VersionInformation = (output, context) => {
7979
7979
  return {
7980
- Arn: smithy_client_1.expectString(output.Arn),
7981
- CreationTimestamp: smithy_client_1.expectString(output.CreationTimestamp),
7982
- Id: smithy_client_1.expectString(output.Id),
7983
- Version: smithy_client_1.expectString(output.Version),
7980
+ Arn: (0, smithy_client_1.expectString)(output.Arn),
7981
+ CreationTimestamp: (0, smithy_client_1.expectString)(output.CreationTimestamp),
7982
+ Id: (0, smithy_client_1.expectString)(output.Id),
7983
+ Version: (0, smithy_client_1.expectString)(output.Version),
7984
7984
  };
7985
7985
  };
7986
7986
  const deserializeMetadata = (output) => {