@aws-sdk/client-iotfleetwise 3.179.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 (316) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE +201 -0
  3. package/README.md +219 -0
  4. package/dist-cjs/IoTFleetWise.js +757 -0
  5. package/dist-cjs/IoTFleetWiseClient.js +37 -0
  6. package/dist-cjs/commands/AssociateVehicleFleetCommand.js +36 -0
  7. package/dist-cjs/commands/BatchCreateVehicleCommand.js +36 -0
  8. package/dist-cjs/commands/BatchUpdateVehicleCommand.js +36 -0
  9. package/dist-cjs/commands/CreateCampaignCommand.js +36 -0
  10. package/dist-cjs/commands/CreateDecoderManifestCommand.js +36 -0
  11. package/dist-cjs/commands/CreateFleetCommand.js +36 -0
  12. package/dist-cjs/commands/CreateModelManifestCommand.js +36 -0
  13. package/dist-cjs/commands/CreateSignalCatalogCommand.js +36 -0
  14. package/dist-cjs/commands/CreateVehicleCommand.js +36 -0
  15. package/dist-cjs/commands/DeleteCampaignCommand.js +36 -0
  16. package/dist-cjs/commands/DeleteDecoderManifestCommand.js +36 -0
  17. package/dist-cjs/commands/DeleteFleetCommand.js +36 -0
  18. package/dist-cjs/commands/DeleteModelManifestCommand.js +36 -0
  19. package/dist-cjs/commands/DeleteSignalCatalogCommand.js +36 -0
  20. package/dist-cjs/commands/DeleteVehicleCommand.js +36 -0
  21. package/dist-cjs/commands/DisassociateVehicleFleetCommand.js +36 -0
  22. package/dist-cjs/commands/GetCampaignCommand.js +36 -0
  23. package/dist-cjs/commands/GetDecoderManifestCommand.js +36 -0
  24. package/dist-cjs/commands/GetFleetCommand.js +36 -0
  25. package/dist-cjs/commands/GetLoggingOptionsCommand.js +36 -0
  26. package/dist-cjs/commands/GetModelManifestCommand.js +36 -0
  27. package/dist-cjs/commands/GetRegisterAccountStatusCommand.js +36 -0
  28. package/dist-cjs/commands/GetSignalCatalogCommand.js +36 -0
  29. package/dist-cjs/commands/GetVehicleCommand.js +36 -0
  30. package/dist-cjs/commands/GetVehicleStatusCommand.js +36 -0
  31. package/dist-cjs/commands/ImportDecoderManifestCommand.js +36 -0
  32. package/dist-cjs/commands/ImportSignalCatalogCommand.js +36 -0
  33. package/dist-cjs/commands/ListCampaignsCommand.js +36 -0
  34. package/dist-cjs/commands/ListDecoderManifestNetworkInterfacesCommand.js +36 -0
  35. package/dist-cjs/commands/ListDecoderManifestSignalsCommand.js +36 -0
  36. package/dist-cjs/commands/ListDecoderManifestsCommand.js +36 -0
  37. package/dist-cjs/commands/ListFleetsCommand.js +36 -0
  38. package/dist-cjs/commands/ListFleetsForVehicleCommand.js +36 -0
  39. package/dist-cjs/commands/ListModelManifestNodesCommand.js +36 -0
  40. package/dist-cjs/commands/ListModelManifestsCommand.js +36 -0
  41. package/dist-cjs/commands/ListSignalCatalogNodesCommand.js +36 -0
  42. package/dist-cjs/commands/ListSignalCatalogsCommand.js +36 -0
  43. package/dist-cjs/commands/ListTagsForResourceCommand.js +36 -0
  44. package/dist-cjs/commands/ListVehiclesCommand.js +36 -0
  45. package/dist-cjs/commands/ListVehiclesInFleetCommand.js +36 -0
  46. package/dist-cjs/commands/PutLoggingOptionsCommand.js +36 -0
  47. package/dist-cjs/commands/RegisterAccountCommand.js +36 -0
  48. package/dist-cjs/commands/TagResourceCommand.js +36 -0
  49. package/dist-cjs/commands/UntagResourceCommand.js +36 -0
  50. package/dist-cjs/commands/UpdateCampaignCommand.js +36 -0
  51. package/dist-cjs/commands/UpdateDecoderManifestCommand.js +36 -0
  52. package/dist-cjs/commands/UpdateFleetCommand.js +36 -0
  53. package/dist-cjs/commands/UpdateModelManifestCommand.js +36 -0
  54. package/dist-cjs/commands/UpdateSignalCatalogCommand.js +36 -0
  55. package/dist-cjs/commands/UpdateVehicleCommand.js +36 -0
  56. package/dist-cjs/commands/index.js +53 -0
  57. package/dist-cjs/endpoints.js +132 -0
  58. package/dist-cjs/index.js +11 -0
  59. package/dist-cjs/models/IoTFleetWiseServiceException.js +11 -0
  60. package/dist-cjs/models/index.js +4 -0
  61. package/dist-cjs/models/models_0.js +931 -0
  62. package/dist-cjs/pagination/GetVehicleStatusPaginator.js +36 -0
  63. package/dist-cjs/pagination/Interfaces.js +2 -0
  64. package/dist-cjs/pagination/ListCampaignsPaginator.js +36 -0
  65. package/dist-cjs/pagination/ListDecoderManifestNetworkInterfacesPaginator.js +36 -0
  66. package/dist-cjs/pagination/ListDecoderManifestSignalsPaginator.js +36 -0
  67. package/dist-cjs/pagination/ListDecoderManifestsPaginator.js +36 -0
  68. package/dist-cjs/pagination/ListFleetsForVehiclePaginator.js +36 -0
  69. package/dist-cjs/pagination/ListFleetsPaginator.js +36 -0
  70. package/dist-cjs/pagination/ListModelManifestNodesPaginator.js +36 -0
  71. package/dist-cjs/pagination/ListModelManifestsPaginator.js +36 -0
  72. package/dist-cjs/pagination/ListSignalCatalogNodesPaginator.js +36 -0
  73. package/dist-cjs/pagination/ListSignalCatalogsPaginator.js +36 -0
  74. package/dist-cjs/pagination/ListVehiclesInFleetPaginator.js +36 -0
  75. package/dist-cjs/pagination/ListVehiclesPaginator.js +36 -0
  76. package/dist-cjs/pagination/index.js +17 -0
  77. package/dist-cjs/protocols/Aws_json1_0.js +4827 -0
  78. package/dist-cjs/runtimeConfig.browser.js +45 -0
  79. package/dist-cjs/runtimeConfig.js +52 -0
  80. package/dist-cjs/runtimeConfig.native.js +16 -0
  81. package/dist-cjs/runtimeConfig.shared.js +17 -0
  82. package/dist-es/IoTFleetWise.js +760 -0
  83. package/dist-es/IoTFleetWiseClient.js +39 -0
  84. package/dist-es/commands/AssociateVehicleFleetCommand.js +39 -0
  85. package/dist-es/commands/BatchCreateVehicleCommand.js +39 -0
  86. package/dist-es/commands/BatchUpdateVehicleCommand.js +39 -0
  87. package/dist-es/commands/CreateCampaignCommand.js +39 -0
  88. package/dist-es/commands/CreateDecoderManifestCommand.js +39 -0
  89. package/dist-es/commands/CreateFleetCommand.js +39 -0
  90. package/dist-es/commands/CreateModelManifestCommand.js +39 -0
  91. package/dist-es/commands/CreateSignalCatalogCommand.js +39 -0
  92. package/dist-es/commands/CreateVehicleCommand.js +39 -0
  93. package/dist-es/commands/DeleteCampaignCommand.js +39 -0
  94. package/dist-es/commands/DeleteDecoderManifestCommand.js +39 -0
  95. package/dist-es/commands/DeleteFleetCommand.js +39 -0
  96. package/dist-es/commands/DeleteModelManifestCommand.js +39 -0
  97. package/dist-es/commands/DeleteSignalCatalogCommand.js +39 -0
  98. package/dist-es/commands/DeleteVehicleCommand.js +39 -0
  99. package/dist-es/commands/DisassociateVehicleFleetCommand.js +39 -0
  100. package/dist-es/commands/GetCampaignCommand.js +39 -0
  101. package/dist-es/commands/GetDecoderManifestCommand.js +39 -0
  102. package/dist-es/commands/GetFleetCommand.js +39 -0
  103. package/dist-es/commands/GetLoggingOptionsCommand.js +39 -0
  104. package/dist-es/commands/GetModelManifestCommand.js +39 -0
  105. package/dist-es/commands/GetRegisterAccountStatusCommand.js +39 -0
  106. package/dist-es/commands/GetSignalCatalogCommand.js +39 -0
  107. package/dist-es/commands/GetVehicleCommand.js +39 -0
  108. package/dist-es/commands/GetVehicleStatusCommand.js +39 -0
  109. package/dist-es/commands/ImportDecoderManifestCommand.js +39 -0
  110. package/dist-es/commands/ImportSignalCatalogCommand.js +39 -0
  111. package/dist-es/commands/ListCampaignsCommand.js +39 -0
  112. package/dist-es/commands/ListDecoderManifestNetworkInterfacesCommand.js +39 -0
  113. package/dist-es/commands/ListDecoderManifestSignalsCommand.js +39 -0
  114. package/dist-es/commands/ListDecoderManifestsCommand.js +39 -0
  115. package/dist-es/commands/ListFleetsCommand.js +39 -0
  116. package/dist-es/commands/ListFleetsForVehicleCommand.js +39 -0
  117. package/dist-es/commands/ListModelManifestNodesCommand.js +39 -0
  118. package/dist-es/commands/ListModelManifestsCommand.js +39 -0
  119. package/dist-es/commands/ListSignalCatalogNodesCommand.js +39 -0
  120. package/dist-es/commands/ListSignalCatalogsCommand.js +39 -0
  121. package/dist-es/commands/ListTagsForResourceCommand.js +39 -0
  122. package/dist-es/commands/ListVehiclesCommand.js +39 -0
  123. package/dist-es/commands/ListVehiclesInFleetCommand.js +39 -0
  124. package/dist-es/commands/PutLoggingOptionsCommand.js +39 -0
  125. package/dist-es/commands/RegisterAccountCommand.js +39 -0
  126. package/dist-es/commands/TagResourceCommand.js +39 -0
  127. package/dist-es/commands/UntagResourceCommand.js +39 -0
  128. package/dist-es/commands/UpdateCampaignCommand.js +39 -0
  129. package/dist-es/commands/UpdateDecoderManifestCommand.js +39 -0
  130. package/dist-es/commands/UpdateFleetCommand.js +39 -0
  131. package/dist-es/commands/UpdateModelManifestCommand.js +39 -0
  132. package/dist-es/commands/UpdateSignalCatalogCommand.js +39 -0
  133. package/dist-es/commands/UpdateVehicleCommand.js +39 -0
  134. package/dist-es/commands/index.js +50 -0
  135. package/dist-es/endpoints.js +128 -0
  136. package/dist-es/index.js +6 -0
  137. package/dist-es/models/IoTFleetWiseServiceException.js +12 -0
  138. package/dist-es/models/index.js +1 -0
  139. package/dist-es/models/models_0.js +493 -0
  140. package/dist-es/pagination/GetVehicleStatusPaginator.js +75 -0
  141. package/dist-es/pagination/Interfaces.js +1 -0
  142. package/dist-es/pagination/ListCampaignsPaginator.js +75 -0
  143. package/dist-es/pagination/ListDecoderManifestNetworkInterfacesPaginator.js +75 -0
  144. package/dist-es/pagination/ListDecoderManifestSignalsPaginator.js +75 -0
  145. package/dist-es/pagination/ListDecoderManifestsPaginator.js +75 -0
  146. package/dist-es/pagination/ListFleetsForVehiclePaginator.js +75 -0
  147. package/dist-es/pagination/ListFleetsPaginator.js +75 -0
  148. package/dist-es/pagination/ListModelManifestNodesPaginator.js +75 -0
  149. package/dist-es/pagination/ListModelManifestsPaginator.js +75 -0
  150. package/dist-es/pagination/ListSignalCatalogNodesPaginator.js +75 -0
  151. package/dist-es/pagination/ListSignalCatalogsPaginator.js +75 -0
  152. package/dist-es/pagination/ListVehiclesInFleetPaginator.js +75 -0
  153. package/dist-es/pagination/ListVehiclesPaginator.js +75 -0
  154. package/dist-es/pagination/index.js +14 -0
  155. package/dist-es/protocols/Aws_json1_0.js +5660 -0
  156. package/dist-es/runtimeConfig.browser.js +26 -0
  157. package/dist-es/runtimeConfig.js +30 -0
  158. package/dist-es/runtimeConfig.native.js +8 -0
  159. package/dist-es/runtimeConfig.shared.js +13 -0
  160. package/dist-types/IoTFleetWise.d.ts +516 -0
  161. package/dist-types/IoTFleetWiseClient.d.ts +208 -0
  162. package/dist-types/commands/AssociateVehicleFleetCommand.d.ts +35 -0
  163. package/dist-types/commands/BatchCreateVehicleCommand.d.ts +41 -0
  164. package/dist-types/commands/BatchUpdateVehicleCommand.d.ts +41 -0
  165. package/dist-types/commands/CreateCampaignCommand.d.ts +40 -0
  166. package/dist-types/commands/CreateDecoderManifestCommand.d.ts +50 -0
  167. package/dist-types/commands/CreateFleetCommand.d.ts +42 -0
  168. package/dist-types/commands/CreateModelManifestCommand.d.ts +38 -0
  169. package/dist-types/commands/CreateSignalCatalogCommand.d.ts +36 -0
  170. package/dist-types/commands/CreateVehicleCommand.d.ts +43 -0
  171. package/dist-types/commands/DeleteCampaignCommand.d.ts +36 -0
  172. package/dist-types/commands/DeleteDecoderManifestCommand.d.ts +40 -0
  173. package/dist-types/commands/DeleteFleetCommand.d.ts +41 -0
  174. package/dist-types/commands/DeleteModelManifestCommand.d.ts +39 -0
  175. package/dist-types/commands/DeleteSignalCatalogCommand.d.ts +39 -0
  176. package/dist-types/commands/DeleteVehicleCommand.d.ts +39 -0
  177. package/dist-types/commands/DisassociateVehicleFleetCommand.d.ts +40 -0
  178. package/dist-types/commands/GetCampaignCommand.d.ts +35 -0
  179. package/dist-types/commands/GetDecoderManifestCommand.d.ts +35 -0
  180. package/dist-types/commands/GetFleetCommand.d.ts +35 -0
  181. package/dist-types/commands/GetLoggingOptionsCommand.d.ts +35 -0
  182. package/dist-types/commands/GetModelManifestCommand.d.ts +35 -0
  183. package/dist-types/commands/GetRegisterAccountStatusCommand.d.ts +41 -0
  184. package/dist-types/commands/GetSignalCatalogCommand.d.ts +35 -0
  185. package/dist-types/commands/GetVehicleCommand.d.ts +35 -0
  186. package/dist-types/commands/GetVehicleStatusCommand.d.ts +36 -0
  187. package/dist-types/commands/ImportDecoderManifestCommand.d.ts +36 -0
  188. package/dist-types/commands/ImportSignalCatalogCommand.d.ts +36 -0
  189. package/dist-types/commands/ListCampaignsCommand.d.ts +38 -0
  190. package/dist-types/commands/ListDecoderManifestNetworkInterfacesCommand.d.ts +38 -0
  191. package/dist-types/commands/ListDecoderManifestSignalsCommand.d.ts +38 -0
  192. package/dist-types/commands/ListDecoderManifestsCommand.d.ts +38 -0
  193. package/dist-types/commands/ListFleetsCommand.d.ts +38 -0
  194. package/dist-types/commands/ListFleetsForVehicleCommand.d.ts +38 -0
  195. package/dist-types/commands/ListModelManifestNodesCommand.d.ts +38 -0
  196. package/dist-types/commands/ListModelManifestsCommand.d.ts +38 -0
  197. package/dist-types/commands/ListSignalCatalogNodesCommand.d.ts +38 -0
  198. package/dist-types/commands/ListSignalCatalogsCommand.d.ts +40 -0
  199. package/dist-types/commands/ListTagsForResourceCommand.d.ts +35 -0
  200. package/dist-types/commands/ListVehiclesCommand.d.ts +38 -0
  201. package/dist-types/commands/ListVehiclesInFleetCommand.d.ts +38 -0
  202. package/dist-types/commands/PutLoggingOptionsCommand.d.ts +35 -0
  203. package/dist-types/commands/RegisterAccountCommand.d.ts +45 -0
  204. package/dist-types/commands/TagResourceCommand.d.ts +36 -0
  205. package/dist-types/commands/UntagResourceCommand.d.ts +35 -0
  206. package/dist-types/commands/UpdateCampaignCommand.d.ts +35 -0
  207. package/dist-types/commands/UpdateDecoderManifestCommand.d.ts +37 -0
  208. package/dist-types/commands/UpdateFleetCommand.d.ts +39 -0
  209. package/dist-types/commands/UpdateModelManifestCommand.d.ts +36 -0
  210. package/dist-types/commands/UpdateSignalCatalogCommand.d.ts +35 -0
  211. package/dist-types/commands/UpdateVehicleCommand.d.ts +35 -0
  212. package/dist-types/commands/index.d.ts +50 -0
  213. package/dist-types/endpoints.d.ts +2 -0
  214. package/dist-types/index.d.ts +6 -0
  215. package/dist-types/models/IoTFleetWiseServiceException.d.ts +10 -0
  216. package/dist-types/models/index.d.ts +1 -0
  217. package/dist-types/models/models_0.d.ts +3487 -0
  218. package/dist-types/pagination/GetVehicleStatusPaginator.d.ts +4 -0
  219. package/dist-types/pagination/Interfaces.d.ts +6 -0
  220. package/dist-types/pagination/ListCampaignsPaginator.d.ts +4 -0
  221. package/dist-types/pagination/ListDecoderManifestNetworkInterfacesPaginator.d.ts +4 -0
  222. package/dist-types/pagination/ListDecoderManifestSignalsPaginator.d.ts +4 -0
  223. package/dist-types/pagination/ListDecoderManifestsPaginator.d.ts +4 -0
  224. package/dist-types/pagination/ListFleetsForVehiclePaginator.d.ts +4 -0
  225. package/dist-types/pagination/ListFleetsPaginator.d.ts +4 -0
  226. package/dist-types/pagination/ListModelManifestNodesPaginator.d.ts +4 -0
  227. package/dist-types/pagination/ListModelManifestsPaginator.d.ts +4 -0
  228. package/dist-types/pagination/ListSignalCatalogNodesPaginator.d.ts +4 -0
  229. package/dist-types/pagination/ListSignalCatalogsPaginator.d.ts +4 -0
  230. package/dist-types/pagination/ListVehiclesInFleetPaginator.d.ts +4 -0
  231. package/dist-types/pagination/ListVehiclesPaginator.d.ts +4 -0
  232. package/dist-types/pagination/index.d.ts +14 -0
  233. package/dist-types/protocols/Aws_json1_0.d.ts +152 -0
  234. package/dist-types/runtimeConfig.browser.d.ts +40 -0
  235. package/dist-types/runtimeConfig.d.ts +40 -0
  236. package/dist-types/runtimeConfig.native.d.ts +39 -0
  237. package/dist-types/runtimeConfig.shared.d.ts +13 -0
  238. package/dist-types/ts3.4/IoTFleetWise.d.ts +860 -0
  239. package/dist-types/ts3.4/IoTFleetWiseClient.d.ts +405 -0
  240. package/dist-types/ts3.4/commands/AssociateVehicleFleetCommand.d.ts +39 -0
  241. package/dist-types/ts3.4/commands/BatchCreateVehicleCommand.d.ts +36 -0
  242. package/dist-types/ts3.4/commands/BatchUpdateVehicleCommand.d.ts +36 -0
  243. package/dist-types/ts3.4/commands/CreateCampaignCommand.d.ts +35 -0
  244. package/dist-types/ts3.4/commands/CreateDecoderManifestCommand.d.ts +39 -0
  245. package/dist-types/ts3.4/commands/CreateFleetCommand.d.ts +32 -0
  246. package/dist-types/ts3.4/commands/CreateModelManifestCommand.d.ts +36 -0
  247. package/dist-types/ts3.4/commands/CreateSignalCatalogCommand.d.ts +36 -0
  248. package/dist-types/ts3.4/commands/CreateVehicleCommand.d.ts +35 -0
  249. package/dist-types/ts3.4/commands/DeleteCampaignCommand.d.ts +35 -0
  250. package/dist-types/ts3.4/commands/DeleteDecoderManifestCommand.d.ts +39 -0
  251. package/dist-types/ts3.4/commands/DeleteFleetCommand.d.ts +32 -0
  252. package/dist-types/ts3.4/commands/DeleteModelManifestCommand.d.ts +36 -0
  253. package/dist-types/ts3.4/commands/DeleteSignalCatalogCommand.d.ts +36 -0
  254. package/dist-types/ts3.4/commands/DeleteVehicleCommand.d.ts +35 -0
  255. package/dist-types/ts3.4/commands/DisassociateVehicleFleetCommand.d.ts +39 -0
  256. package/dist-types/ts3.4/commands/GetCampaignCommand.d.ts +32 -0
  257. package/dist-types/ts3.4/commands/GetDecoderManifestCommand.d.ts +36 -0
  258. package/dist-types/ts3.4/commands/GetFleetCommand.d.ts +32 -0
  259. package/dist-types/ts3.4/commands/GetLoggingOptionsCommand.d.ts +36 -0
  260. package/dist-types/ts3.4/commands/GetModelManifestCommand.d.ts +35 -0
  261. package/dist-types/ts3.4/commands/GetRegisterAccountStatusCommand.d.ts +39 -0
  262. package/dist-types/ts3.4/commands/GetSignalCatalogCommand.d.ts +35 -0
  263. package/dist-types/ts3.4/commands/GetVehicleCommand.d.ts +32 -0
  264. package/dist-types/ts3.4/commands/GetVehicleStatusCommand.d.ts +35 -0
  265. package/dist-types/ts3.4/commands/ImportDecoderManifestCommand.d.ts +39 -0
  266. package/dist-types/ts3.4/commands/ImportSignalCatalogCommand.d.ts +36 -0
  267. package/dist-types/ts3.4/commands/ListCampaignsCommand.d.ts +35 -0
  268. package/dist-types/ts3.4/commands/ListDecoderManifestNetworkInterfacesCommand.d.ts +39 -0
  269. package/dist-types/ts3.4/commands/ListDecoderManifestSignalsCommand.d.ts +39 -0
  270. package/dist-types/ts3.4/commands/ListDecoderManifestsCommand.d.ts +39 -0
  271. package/dist-types/ts3.4/commands/ListFleetsCommand.d.ts +32 -0
  272. package/dist-types/ts3.4/commands/ListFleetsForVehicleCommand.d.ts +39 -0
  273. package/dist-types/ts3.4/commands/ListModelManifestNodesCommand.d.ts +39 -0
  274. package/dist-types/ts3.4/commands/ListModelManifestsCommand.d.ts +36 -0
  275. package/dist-types/ts3.4/commands/ListSignalCatalogNodesCommand.d.ts +39 -0
  276. package/dist-types/ts3.4/commands/ListSignalCatalogsCommand.d.ts +36 -0
  277. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +36 -0
  278. package/dist-types/ts3.4/commands/ListVehiclesCommand.d.ts +32 -0
  279. package/dist-types/ts3.4/commands/ListVehiclesInFleetCommand.d.ts +36 -0
  280. package/dist-types/ts3.4/commands/PutLoggingOptionsCommand.d.ts +36 -0
  281. package/dist-types/ts3.4/commands/RegisterAccountCommand.d.ts +35 -0
  282. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +32 -0
  283. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +35 -0
  284. package/dist-types/ts3.4/commands/UpdateCampaignCommand.d.ts +35 -0
  285. package/dist-types/ts3.4/commands/UpdateDecoderManifestCommand.d.ts +39 -0
  286. package/dist-types/ts3.4/commands/UpdateFleetCommand.d.ts +32 -0
  287. package/dist-types/ts3.4/commands/UpdateModelManifestCommand.d.ts +36 -0
  288. package/dist-types/ts3.4/commands/UpdateSignalCatalogCommand.d.ts +36 -0
  289. package/dist-types/ts3.4/commands/UpdateVehicleCommand.d.ts +35 -0
  290. package/dist-types/ts3.4/commands/index.d.ts +50 -0
  291. package/dist-types/ts3.4/endpoints.d.ts +2 -0
  292. package/dist-types/ts3.4/index.d.ts +6 -0
  293. package/dist-types/ts3.4/models/IoTFleetWiseServiceException.d.ts +7 -0
  294. package/dist-types/ts3.4/models/index.d.ts +1 -0
  295. package/dist-types/ts3.4/models/models_0.d.ts +1431 -0
  296. package/dist-types/ts3.4/pagination/GetVehicleStatusPaginator.d.ts +11 -0
  297. package/dist-types/ts3.4/pagination/Interfaces.d.ts +7 -0
  298. package/dist-types/ts3.4/pagination/ListCampaignsPaginator.d.ts +11 -0
  299. package/dist-types/ts3.4/pagination/ListDecoderManifestNetworkInterfacesPaginator.d.ts +11 -0
  300. package/dist-types/ts3.4/pagination/ListDecoderManifestSignalsPaginator.d.ts +11 -0
  301. package/dist-types/ts3.4/pagination/ListDecoderManifestsPaginator.d.ts +11 -0
  302. package/dist-types/ts3.4/pagination/ListFleetsForVehiclePaginator.d.ts +11 -0
  303. package/dist-types/ts3.4/pagination/ListFleetsPaginator.d.ts +11 -0
  304. package/dist-types/ts3.4/pagination/ListModelManifestNodesPaginator.d.ts +11 -0
  305. package/dist-types/ts3.4/pagination/ListModelManifestsPaginator.d.ts +11 -0
  306. package/dist-types/ts3.4/pagination/ListSignalCatalogNodesPaginator.d.ts +11 -0
  307. package/dist-types/ts3.4/pagination/ListSignalCatalogsPaginator.d.ts +11 -0
  308. package/dist-types/ts3.4/pagination/ListVehiclesInFleetPaginator.d.ts +11 -0
  309. package/dist-types/ts3.4/pagination/ListVehiclesPaginator.d.ts +11 -0
  310. package/dist-types/ts3.4/pagination/index.d.ts +14 -0
  311. package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +605 -0
  312. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +67 -0
  313. package/dist-types/ts3.4/runtimeConfig.d.ts +67 -0
  314. package/dist-types/ts3.4/runtimeConfig.native.d.ts +68 -0
  315. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +10 -0
  316. package/package.json +100 -0
@@ -0,0 +1,4827 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.serializeAws_json1_0UpdateVehicleCommand = exports.serializeAws_json1_0UpdateSignalCatalogCommand = exports.serializeAws_json1_0UpdateModelManifestCommand = exports.serializeAws_json1_0UpdateFleetCommand = exports.serializeAws_json1_0UpdateDecoderManifestCommand = exports.serializeAws_json1_0UpdateCampaignCommand = exports.serializeAws_json1_0UntagResourceCommand = exports.serializeAws_json1_0TagResourceCommand = exports.serializeAws_json1_0RegisterAccountCommand = exports.serializeAws_json1_0PutLoggingOptionsCommand = exports.serializeAws_json1_0ListVehiclesInFleetCommand = exports.serializeAws_json1_0ListVehiclesCommand = exports.serializeAws_json1_0ListTagsForResourceCommand = exports.serializeAws_json1_0ListSignalCatalogsCommand = exports.serializeAws_json1_0ListSignalCatalogNodesCommand = exports.serializeAws_json1_0ListModelManifestsCommand = exports.serializeAws_json1_0ListModelManifestNodesCommand = exports.serializeAws_json1_0ListFleetsForVehicleCommand = exports.serializeAws_json1_0ListFleetsCommand = exports.serializeAws_json1_0ListDecoderManifestSignalsCommand = exports.serializeAws_json1_0ListDecoderManifestsCommand = exports.serializeAws_json1_0ListDecoderManifestNetworkInterfacesCommand = exports.serializeAws_json1_0ListCampaignsCommand = exports.serializeAws_json1_0ImportSignalCatalogCommand = exports.serializeAws_json1_0ImportDecoderManifestCommand = exports.serializeAws_json1_0GetVehicleStatusCommand = exports.serializeAws_json1_0GetVehicleCommand = exports.serializeAws_json1_0GetSignalCatalogCommand = exports.serializeAws_json1_0GetRegisterAccountStatusCommand = exports.serializeAws_json1_0GetModelManifestCommand = exports.serializeAws_json1_0GetLoggingOptionsCommand = exports.serializeAws_json1_0GetFleetCommand = exports.serializeAws_json1_0GetDecoderManifestCommand = exports.serializeAws_json1_0GetCampaignCommand = exports.serializeAws_json1_0DisassociateVehicleFleetCommand = exports.serializeAws_json1_0DeleteVehicleCommand = exports.serializeAws_json1_0DeleteSignalCatalogCommand = exports.serializeAws_json1_0DeleteModelManifestCommand = exports.serializeAws_json1_0DeleteFleetCommand = exports.serializeAws_json1_0DeleteDecoderManifestCommand = exports.serializeAws_json1_0DeleteCampaignCommand = exports.serializeAws_json1_0CreateVehicleCommand = exports.serializeAws_json1_0CreateSignalCatalogCommand = exports.serializeAws_json1_0CreateModelManifestCommand = exports.serializeAws_json1_0CreateFleetCommand = exports.serializeAws_json1_0CreateDecoderManifestCommand = exports.serializeAws_json1_0CreateCampaignCommand = exports.serializeAws_json1_0BatchUpdateVehicleCommand = exports.serializeAws_json1_0BatchCreateVehicleCommand = exports.serializeAws_json1_0AssociateVehicleFleetCommand = void 0;
4
+ exports.deserializeAws_json1_0UpdateVehicleCommand = exports.deserializeAws_json1_0UpdateSignalCatalogCommand = exports.deserializeAws_json1_0UpdateModelManifestCommand = exports.deserializeAws_json1_0UpdateFleetCommand = exports.deserializeAws_json1_0UpdateDecoderManifestCommand = exports.deserializeAws_json1_0UpdateCampaignCommand = exports.deserializeAws_json1_0UntagResourceCommand = exports.deserializeAws_json1_0TagResourceCommand = exports.deserializeAws_json1_0RegisterAccountCommand = exports.deserializeAws_json1_0PutLoggingOptionsCommand = exports.deserializeAws_json1_0ListVehiclesInFleetCommand = exports.deserializeAws_json1_0ListVehiclesCommand = exports.deserializeAws_json1_0ListTagsForResourceCommand = exports.deserializeAws_json1_0ListSignalCatalogsCommand = exports.deserializeAws_json1_0ListSignalCatalogNodesCommand = exports.deserializeAws_json1_0ListModelManifestsCommand = exports.deserializeAws_json1_0ListModelManifestNodesCommand = exports.deserializeAws_json1_0ListFleetsForVehicleCommand = exports.deserializeAws_json1_0ListFleetsCommand = exports.deserializeAws_json1_0ListDecoderManifestSignalsCommand = exports.deserializeAws_json1_0ListDecoderManifestsCommand = exports.deserializeAws_json1_0ListDecoderManifestNetworkInterfacesCommand = exports.deserializeAws_json1_0ListCampaignsCommand = exports.deserializeAws_json1_0ImportSignalCatalogCommand = exports.deserializeAws_json1_0ImportDecoderManifestCommand = exports.deserializeAws_json1_0GetVehicleStatusCommand = exports.deserializeAws_json1_0GetVehicleCommand = exports.deserializeAws_json1_0GetSignalCatalogCommand = exports.deserializeAws_json1_0GetRegisterAccountStatusCommand = exports.deserializeAws_json1_0GetModelManifestCommand = exports.deserializeAws_json1_0GetLoggingOptionsCommand = exports.deserializeAws_json1_0GetFleetCommand = exports.deserializeAws_json1_0GetDecoderManifestCommand = exports.deserializeAws_json1_0GetCampaignCommand = exports.deserializeAws_json1_0DisassociateVehicleFleetCommand = exports.deserializeAws_json1_0DeleteVehicleCommand = exports.deserializeAws_json1_0DeleteSignalCatalogCommand = exports.deserializeAws_json1_0DeleteModelManifestCommand = exports.deserializeAws_json1_0DeleteFleetCommand = exports.deserializeAws_json1_0DeleteDecoderManifestCommand = exports.deserializeAws_json1_0DeleteCampaignCommand = exports.deserializeAws_json1_0CreateVehicleCommand = exports.deserializeAws_json1_0CreateSignalCatalogCommand = exports.deserializeAws_json1_0CreateModelManifestCommand = exports.deserializeAws_json1_0CreateFleetCommand = exports.deserializeAws_json1_0CreateDecoderManifestCommand = exports.deserializeAws_json1_0CreateCampaignCommand = exports.deserializeAws_json1_0BatchUpdateVehicleCommand = exports.deserializeAws_json1_0BatchCreateVehicleCommand = exports.deserializeAws_json1_0AssociateVehicleFleetCommand = void 0;
5
+ const protocol_http_1 = require("@aws-sdk/protocol-http");
6
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ const IoTFleetWiseServiceException_1 = require("../models/IoTFleetWiseServiceException");
8
+ const models_0_1 = require("../models/models_0");
9
+ const serializeAws_json1_0AssociateVehicleFleetCommand = async (input, context) => {
10
+ const headers = {
11
+ "content-type": "application/x-amz-json-1.0",
12
+ "x-amz-target": "IoTAutobahnControlPlane.AssociateVehicleFleet",
13
+ };
14
+ let body;
15
+ body = JSON.stringify(serializeAws_json1_0AssociateVehicleFleetRequest(input, context));
16
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
17
+ };
18
+ exports.serializeAws_json1_0AssociateVehicleFleetCommand = serializeAws_json1_0AssociateVehicleFleetCommand;
19
+ const serializeAws_json1_0BatchCreateVehicleCommand = async (input, context) => {
20
+ const headers = {
21
+ "content-type": "application/x-amz-json-1.0",
22
+ "x-amz-target": "IoTAutobahnControlPlane.BatchCreateVehicle",
23
+ };
24
+ let body;
25
+ body = JSON.stringify(serializeAws_json1_0BatchCreateVehicleRequest(input, context));
26
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
27
+ };
28
+ exports.serializeAws_json1_0BatchCreateVehicleCommand = serializeAws_json1_0BatchCreateVehicleCommand;
29
+ const serializeAws_json1_0BatchUpdateVehicleCommand = async (input, context) => {
30
+ const headers = {
31
+ "content-type": "application/x-amz-json-1.0",
32
+ "x-amz-target": "IoTAutobahnControlPlane.BatchUpdateVehicle",
33
+ };
34
+ let body;
35
+ body = JSON.stringify(serializeAws_json1_0BatchUpdateVehicleRequest(input, context));
36
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
37
+ };
38
+ exports.serializeAws_json1_0BatchUpdateVehicleCommand = serializeAws_json1_0BatchUpdateVehicleCommand;
39
+ const serializeAws_json1_0CreateCampaignCommand = async (input, context) => {
40
+ const headers = {
41
+ "content-type": "application/x-amz-json-1.0",
42
+ "x-amz-target": "IoTAutobahnControlPlane.CreateCampaign",
43
+ };
44
+ let body;
45
+ body = JSON.stringify(serializeAws_json1_0CreateCampaignRequest(input, context));
46
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
47
+ };
48
+ exports.serializeAws_json1_0CreateCampaignCommand = serializeAws_json1_0CreateCampaignCommand;
49
+ const serializeAws_json1_0CreateDecoderManifestCommand = async (input, context) => {
50
+ const headers = {
51
+ "content-type": "application/x-amz-json-1.0",
52
+ "x-amz-target": "IoTAutobahnControlPlane.CreateDecoderManifest",
53
+ };
54
+ let body;
55
+ body = JSON.stringify(serializeAws_json1_0CreateDecoderManifestRequest(input, context));
56
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
57
+ };
58
+ exports.serializeAws_json1_0CreateDecoderManifestCommand = serializeAws_json1_0CreateDecoderManifestCommand;
59
+ const serializeAws_json1_0CreateFleetCommand = async (input, context) => {
60
+ const headers = {
61
+ "content-type": "application/x-amz-json-1.0",
62
+ "x-amz-target": "IoTAutobahnControlPlane.CreateFleet",
63
+ };
64
+ let body;
65
+ body = JSON.stringify(serializeAws_json1_0CreateFleetRequest(input, context));
66
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
67
+ };
68
+ exports.serializeAws_json1_0CreateFleetCommand = serializeAws_json1_0CreateFleetCommand;
69
+ const serializeAws_json1_0CreateModelManifestCommand = async (input, context) => {
70
+ const headers = {
71
+ "content-type": "application/x-amz-json-1.0",
72
+ "x-amz-target": "IoTAutobahnControlPlane.CreateModelManifest",
73
+ };
74
+ let body;
75
+ body = JSON.stringify(serializeAws_json1_0CreateModelManifestRequest(input, context));
76
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
77
+ };
78
+ exports.serializeAws_json1_0CreateModelManifestCommand = serializeAws_json1_0CreateModelManifestCommand;
79
+ const serializeAws_json1_0CreateSignalCatalogCommand = async (input, context) => {
80
+ const headers = {
81
+ "content-type": "application/x-amz-json-1.0",
82
+ "x-amz-target": "IoTAutobahnControlPlane.CreateSignalCatalog",
83
+ };
84
+ let body;
85
+ body = JSON.stringify(serializeAws_json1_0CreateSignalCatalogRequest(input, context));
86
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
87
+ };
88
+ exports.serializeAws_json1_0CreateSignalCatalogCommand = serializeAws_json1_0CreateSignalCatalogCommand;
89
+ const serializeAws_json1_0CreateVehicleCommand = async (input, context) => {
90
+ const headers = {
91
+ "content-type": "application/x-amz-json-1.0",
92
+ "x-amz-target": "IoTAutobahnControlPlane.CreateVehicle",
93
+ };
94
+ let body;
95
+ body = JSON.stringify(serializeAws_json1_0CreateVehicleRequest(input, context));
96
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
97
+ };
98
+ exports.serializeAws_json1_0CreateVehicleCommand = serializeAws_json1_0CreateVehicleCommand;
99
+ const serializeAws_json1_0DeleteCampaignCommand = async (input, context) => {
100
+ const headers = {
101
+ "content-type": "application/x-amz-json-1.0",
102
+ "x-amz-target": "IoTAutobahnControlPlane.DeleteCampaign",
103
+ };
104
+ let body;
105
+ body = JSON.stringify(serializeAws_json1_0DeleteCampaignRequest(input, context));
106
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
107
+ };
108
+ exports.serializeAws_json1_0DeleteCampaignCommand = serializeAws_json1_0DeleteCampaignCommand;
109
+ const serializeAws_json1_0DeleteDecoderManifestCommand = async (input, context) => {
110
+ const headers = {
111
+ "content-type": "application/x-amz-json-1.0",
112
+ "x-amz-target": "IoTAutobahnControlPlane.DeleteDecoderManifest",
113
+ };
114
+ let body;
115
+ body = JSON.stringify(serializeAws_json1_0DeleteDecoderManifestRequest(input, context));
116
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
117
+ };
118
+ exports.serializeAws_json1_0DeleteDecoderManifestCommand = serializeAws_json1_0DeleteDecoderManifestCommand;
119
+ const serializeAws_json1_0DeleteFleetCommand = async (input, context) => {
120
+ const headers = {
121
+ "content-type": "application/x-amz-json-1.0",
122
+ "x-amz-target": "IoTAutobahnControlPlane.DeleteFleet",
123
+ };
124
+ let body;
125
+ body = JSON.stringify(serializeAws_json1_0DeleteFleetRequest(input, context));
126
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
127
+ };
128
+ exports.serializeAws_json1_0DeleteFleetCommand = serializeAws_json1_0DeleteFleetCommand;
129
+ const serializeAws_json1_0DeleteModelManifestCommand = async (input, context) => {
130
+ const headers = {
131
+ "content-type": "application/x-amz-json-1.0",
132
+ "x-amz-target": "IoTAutobahnControlPlane.DeleteModelManifest",
133
+ };
134
+ let body;
135
+ body = JSON.stringify(serializeAws_json1_0DeleteModelManifestRequest(input, context));
136
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
137
+ };
138
+ exports.serializeAws_json1_0DeleteModelManifestCommand = serializeAws_json1_0DeleteModelManifestCommand;
139
+ const serializeAws_json1_0DeleteSignalCatalogCommand = async (input, context) => {
140
+ const headers = {
141
+ "content-type": "application/x-amz-json-1.0",
142
+ "x-amz-target": "IoTAutobahnControlPlane.DeleteSignalCatalog",
143
+ };
144
+ let body;
145
+ body = JSON.stringify(serializeAws_json1_0DeleteSignalCatalogRequest(input, context));
146
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
147
+ };
148
+ exports.serializeAws_json1_0DeleteSignalCatalogCommand = serializeAws_json1_0DeleteSignalCatalogCommand;
149
+ const serializeAws_json1_0DeleteVehicleCommand = async (input, context) => {
150
+ const headers = {
151
+ "content-type": "application/x-amz-json-1.0",
152
+ "x-amz-target": "IoTAutobahnControlPlane.DeleteVehicle",
153
+ };
154
+ let body;
155
+ body = JSON.stringify(serializeAws_json1_0DeleteVehicleRequest(input, context));
156
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
157
+ };
158
+ exports.serializeAws_json1_0DeleteVehicleCommand = serializeAws_json1_0DeleteVehicleCommand;
159
+ const serializeAws_json1_0DisassociateVehicleFleetCommand = async (input, context) => {
160
+ const headers = {
161
+ "content-type": "application/x-amz-json-1.0",
162
+ "x-amz-target": "IoTAutobahnControlPlane.DisassociateVehicleFleet",
163
+ };
164
+ let body;
165
+ body = JSON.stringify(serializeAws_json1_0DisassociateVehicleFleetRequest(input, context));
166
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
167
+ };
168
+ exports.serializeAws_json1_0DisassociateVehicleFleetCommand = serializeAws_json1_0DisassociateVehicleFleetCommand;
169
+ const serializeAws_json1_0GetCampaignCommand = async (input, context) => {
170
+ const headers = {
171
+ "content-type": "application/x-amz-json-1.0",
172
+ "x-amz-target": "IoTAutobahnControlPlane.GetCampaign",
173
+ };
174
+ let body;
175
+ body = JSON.stringify(serializeAws_json1_0GetCampaignRequest(input, context));
176
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
177
+ };
178
+ exports.serializeAws_json1_0GetCampaignCommand = serializeAws_json1_0GetCampaignCommand;
179
+ const serializeAws_json1_0GetDecoderManifestCommand = async (input, context) => {
180
+ const headers = {
181
+ "content-type": "application/x-amz-json-1.0",
182
+ "x-amz-target": "IoTAutobahnControlPlane.GetDecoderManifest",
183
+ };
184
+ let body;
185
+ body = JSON.stringify(serializeAws_json1_0GetDecoderManifestRequest(input, context));
186
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
187
+ };
188
+ exports.serializeAws_json1_0GetDecoderManifestCommand = serializeAws_json1_0GetDecoderManifestCommand;
189
+ const serializeAws_json1_0GetFleetCommand = async (input, context) => {
190
+ const headers = {
191
+ "content-type": "application/x-amz-json-1.0",
192
+ "x-amz-target": "IoTAutobahnControlPlane.GetFleet",
193
+ };
194
+ let body;
195
+ body = JSON.stringify(serializeAws_json1_0GetFleetRequest(input, context));
196
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
197
+ };
198
+ exports.serializeAws_json1_0GetFleetCommand = serializeAws_json1_0GetFleetCommand;
199
+ const serializeAws_json1_0GetLoggingOptionsCommand = async (input, context) => {
200
+ const headers = {
201
+ "content-type": "application/x-amz-json-1.0",
202
+ "x-amz-target": "IoTAutobahnControlPlane.GetLoggingOptions",
203
+ };
204
+ let body;
205
+ body = JSON.stringify(serializeAws_json1_0GetLoggingOptionsRequest(input, context));
206
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
207
+ };
208
+ exports.serializeAws_json1_0GetLoggingOptionsCommand = serializeAws_json1_0GetLoggingOptionsCommand;
209
+ const serializeAws_json1_0GetModelManifestCommand = async (input, context) => {
210
+ const headers = {
211
+ "content-type": "application/x-amz-json-1.0",
212
+ "x-amz-target": "IoTAutobahnControlPlane.GetModelManifest",
213
+ };
214
+ let body;
215
+ body = JSON.stringify(serializeAws_json1_0GetModelManifestRequest(input, context));
216
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
217
+ };
218
+ exports.serializeAws_json1_0GetModelManifestCommand = serializeAws_json1_0GetModelManifestCommand;
219
+ const serializeAws_json1_0GetRegisterAccountStatusCommand = async (input, context) => {
220
+ const headers = {
221
+ "content-type": "application/x-amz-json-1.0",
222
+ "x-amz-target": "IoTAutobahnControlPlane.GetRegisterAccountStatus",
223
+ };
224
+ let body;
225
+ body = JSON.stringify(serializeAws_json1_0GetRegisterAccountStatusRequest(input, context));
226
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
227
+ };
228
+ exports.serializeAws_json1_0GetRegisterAccountStatusCommand = serializeAws_json1_0GetRegisterAccountStatusCommand;
229
+ const serializeAws_json1_0GetSignalCatalogCommand = async (input, context) => {
230
+ const headers = {
231
+ "content-type": "application/x-amz-json-1.0",
232
+ "x-amz-target": "IoTAutobahnControlPlane.GetSignalCatalog",
233
+ };
234
+ let body;
235
+ body = JSON.stringify(serializeAws_json1_0GetSignalCatalogRequest(input, context));
236
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
237
+ };
238
+ exports.serializeAws_json1_0GetSignalCatalogCommand = serializeAws_json1_0GetSignalCatalogCommand;
239
+ const serializeAws_json1_0GetVehicleCommand = async (input, context) => {
240
+ const headers = {
241
+ "content-type": "application/x-amz-json-1.0",
242
+ "x-amz-target": "IoTAutobahnControlPlane.GetVehicle",
243
+ };
244
+ let body;
245
+ body = JSON.stringify(serializeAws_json1_0GetVehicleRequest(input, context));
246
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
247
+ };
248
+ exports.serializeAws_json1_0GetVehicleCommand = serializeAws_json1_0GetVehicleCommand;
249
+ const serializeAws_json1_0GetVehicleStatusCommand = async (input, context) => {
250
+ const headers = {
251
+ "content-type": "application/x-amz-json-1.0",
252
+ "x-amz-target": "IoTAutobahnControlPlane.GetVehicleStatus",
253
+ };
254
+ let body;
255
+ body = JSON.stringify(serializeAws_json1_0GetVehicleStatusRequest(input, context));
256
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
257
+ };
258
+ exports.serializeAws_json1_0GetVehicleStatusCommand = serializeAws_json1_0GetVehicleStatusCommand;
259
+ const serializeAws_json1_0ImportDecoderManifestCommand = async (input, context) => {
260
+ const headers = {
261
+ "content-type": "application/x-amz-json-1.0",
262
+ "x-amz-target": "IoTAutobahnControlPlane.ImportDecoderManifest",
263
+ };
264
+ let body;
265
+ body = JSON.stringify(serializeAws_json1_0ImportDecoderManifestRequest(input, context));
266
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
267
+ };
268
+ exports.serializeAws_json1_0ImportDecoderManifestCommand = serializeAws_json1_0ImportDecoderManifestCommand;
269
+ const serializeAws_json1_0ImportSignalCatalogCommand = async (input, context) => {
270
+ const headers = {
271
+ "content-type": "application/x-amz-json-1.0",
272
+ "x-amz-target": "IoTAutobahnControlPlane.ImportSignalCatalog",
273
+ };
274
+ let body;
275
+ body = JSON.stringify(serializeAws_json1_0ImportSignalCatalogRequest(input, context));
276
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
277
+ };
278
+ exports.serializeAws_json1_0ImportSignalCatalogCommand = serializeAws_json1_0ImportSignalCatalogCommand;
279
+ const serializeAws_json1_0ListCampaignsCommand = async (input, context) => {
280
+ const headers = {
281
+ "content-type": "application/x-amz-json-1.0",
282
+ "x-amz-target": "IoTAutobahnControlPlane.ListCampaigns",
283
+ };
284
+ let body;
285
+ body = JSON.stringify(serializeAws_json1_0ListCampaignsRequest(input, context));
286
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
287
+ };
288
+ exports.serializeAws_json1_0ListCampaignsCommand = serializeAws_json1_0ListCampaignsCommand;
289
+ const serializeAws_json1_0ListDecoderManifestNetworkInterfacesCommand = async (input, context) => {
290
+ const headers = {
291
+ "content-type": "application/x-amz-json-1.0",
292
+ "x-amz-target": "IoTAutobahnControlPlane.ListDecoderManifestNetworkInterfaces",
293
+ };
294
+ let body;
295
+ body = JSON.stringify(serializeAws_json1_0ListDecoderManifestNetworkInterfacesRequest(input, context));
296
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
297
+ };
298
+ exports.serializeAws_json1_0ListDecoderManifestNetworkInterfacesCommand = serializeAws_json1_0ListDecoderManifestNetworkInterfacesCommand;
299
+ const serializeAws_json1_0ListDecoderManifestsCommand = async (input, context) => {
300
+ const headers = {
301
+ "content-type": "application/x-amz-json-1.0",
302
+ "x-amz-target": "IoTAutobahnControlPlane.ListDecoderManifests",
303
+ };
304
+ let body;
305
+ body = JSON.stringify(serializeAws_json1_0ListDecoderManifestsRequest(input, context));
306
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
307
+ };
308
+ exports.serializeAws_json1_0ListDecoderManifestsCommand = serializeAws_json1_0ListDecoderManifestsCommand;
309
+ const serializeAws_json1_0ListDecoderManifestSignalsCommand = async (input, context) => {
310
+ const headers = {
311
+ "content-type": "application/x-amz-json-1.0",
312
+ "x-amz-target": "IoTAutobahnControlPlane.ListDecoderManifestSignals",
313
+ };
314
+ let body;
315
+ body = JSON.stringify(serializeAws_json1_0ListDecoderManifestSignalsRequest(input, context));
316
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
317
+ };
318
+ exports.serializeAws_json1_0ListDecoderManifestSignalsCommand = serializeAws_json1_0ListDecoderManifestSignalsCommand;
319
+ const serializeAws_json1_0ListFleetsCommand = async (input, context) => {
320
+ const headers = {
321
+ "content-type": "application/x-amz-json-1.0",
322
+ "x-amz-target": "IoTAutobahnControlPlane.ListFleets",
323
+ };
324
+ let body;
325
+ body = JSON.stringify(serializeAws_json1_0ListFleetsRequest(input, context));
326
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
327
+ };
328
+ exports.serializeAws_json1_0ListFleetsCommand = serializeAws_json1_0ListFleetsCommand;
329
+ const serializeAws_json1_0ListFleetsForVehicleCommand = async (input, context) => {
330
+ const headers = {
331
+ "content-type": "application/x-amz-json-1.0",
332
+ "x-amz-target": "IoTAutobahnControlPlane.ListFleetsForVehicle",
333
+ };
334
+ let body;
335
+ body = JSON.stringify(serializeAws_json1_0ListFleetsForVehicleRequest(input, context));
336
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
337
+ };
338
+ exports.serializeAws_json1_0ListFleetsForVehicleCommand = serializeAws_json1_0ListFleetsForVehicleCommand;
339
+ const serializeAws_json1_0ListModelManifestNodesCommand = async (input, context) => {
340
+ const headers = {
341
+ "content-type": "application/x-amz-json-1.0",
342
+ "x-amz-target": "IoTAutobahnControlPlane.ListModelManifestNodes",
343
+ };
344
+ let body;
345
+ body = JSON.stringify(serializeAws_json1_0ListModelManifestNodesRequest(input, context));
346
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
347
+ };
348
+ exports.serializeAws_json1_0ListModelManifestNodesCommand = serializeAws_json1_0ListModelManifestNodesCommand;
349
+ const serializeAws_json1_0ListModelManifestsCommand = async (input, context) => {
350
+ const headers = {
351
+ "content-type": "application/x-amz-json-1.0",
352
+ "x-amz-target": "IoTAutobahnControlPlane.ListModelManifests",
353
+ };
354
+ let body;
355
+ body = JSON.stringify(serializeAws_json1_0ListModelManifestsRequest(input, context));
356
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
357
+ };
358
+ exports.serializeAws_json1_0ListModelManifestsCommand = serializeAws_json1_0ListModelManifestsCommand;
359
+ const serializeAws_json1_0ListSignalCatalogNodesCommand = async (input, context) => {
360
+ const headers = {
361
+ "content-type": "application/x-amz-json-1.0",
362
+ "x-amz-target": "IoTAutobahnControlPlane.ListSignalCatalogNodes",
363
+ };
364
+ let body;
365
+ body = JSON.stringify(serializeAws_json1_0ListSignalCatalogNodesRequest(input, context));
366
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
367
+ };
368
+ exports.serializeAws_json1_0ListSignalCatalogNodesCommand = serializeAws_json1_0ListSignalCatalogNodesCommand;
369
+ const serializeAws_json1_0ListSignalCatalogsCommand = async (input, context) => {
370
+ const headers = {
371
+ "content-type": "application/x-amz-json-1.0",
372
+ "x-amz-target": "IoTAutobahnControlPlane.ListSignalCatalogs",
373
+ };
374
+ let body;
375
+ body = JSON.stringify(serializeAws_json1_0ListSignalCatalogsRequest(input, context));
376
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
377
+ };
378
+ exports.serializeAws_json1_0ListSignalCatalogsCommand = serializeAws_json1_0ListSignalCatalogsCommand;
379
+ const serializeAws_json1_0ListTagsForResourceCommand = async (input, context) => {
380
+ const headers = {
381
+ "content-type": "application/x-amz-json-1.0",
382
+ "x-amz-target": "IoTAutobahnControlPlane.ListTagsForResource",
383
+ };
384
+ let body;
385
+ body = JSON.stringify(serializeAws_json1_0ListTagsForResourceRequest(input, context));
386
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
387
+ };
388
+ exports.serializeAws_json1_0ListTagsForResourceCommand = serializeAws_json1_0ListTagsForResourceCommand;
389
+ const serializeAws_json1_0ListVehiclesCommand = async (input, context) => {
390
+ const headers = {
391
+ "content-type": "application/x-amz-json-1.0",
392
+ "x-amz-target": "IoTAutobahnControlPlane.ListVehicles",
393
+ };
394
+ let body;
395
+ body = JSON.stringify(serializeAws_json1_0ListVehiclesRequest(input, context));
396
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
397
+ };
398
+ exports.serializeAws_json1_0ListVehiclesCommand = serializeAws_json1_0ListVehiclesCommand;
399
+ const serializeAws_json1_0ListVehiclesInFleetCommand = async (input, context) => {
400
+ const headers = {
401
+ "content-type": "application/x-amz-json-1.0",
402
+ "x-amz-target": "IoTAutobahnControlPlane.ListVehiclesInFleet",
403
+ };
404
+ let body;
405
+ body = JSON.stringify(serializeAws_json1_0ListVehiclesInFleetRequest(input, context));
406
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
407
+ };
408
+ exports.serializeAws_json1_0ListVehiclesInFleetCommand = serializeAws_json1_0ListVehiclesInFleetCommand;
409
+ const serializeAws_json1_0PutLoggingOptionsCommand = async (input, context) => {
410
+ const headers = {
411
+ "content-type": "application/x-amz-json-1.0",
412
+ "x-amz-target": "IoTAutobahnControlPlane.PutLoggingOptions",
413
+ };
414
+ let body;
415
+ body = JSON.stringify(serializeAws_json1_0PutLoggingOptionsRequest(input, context));
416
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
417
+ };
418
+ exports.serializeAws_json1_0PutLoggingOptionsCommand = serializeAws_json1_0PutLoggingOptionsCommand;
419
+ const serializeAws_json1_0RegisterAccountCommand = async (input, context) => {
420
+ const headers = {
421
+ "content-type": "application/x-amz-json-1.0",
422
+ "x-amz-target": "IoTAutobahnControlPlane.RegisterAccount",
423
+ };
424
+ let body;
425
+ body = JSON.stringify(serializeAws_json1_0RegisterAccountRequest(input, context));
426
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
427
+ };
428
+ exports.serializeAws_json1_0RegisterAccountCommand = serializeAws_json1_0RegisterAccountCommand;
429
+ const serializeAws_json1_0TagResourceCommand = async (input, context) => {
430
+ const headers = {
431
+ "content-type": "application/x-amz-json-1.0",
432
+ "x-amz-target": "IoTAutobahnControlPlane.TagResource",
433
+ };
434
+ let body;
435
+ body = JSON.stringify(serializeAws_json1_0TagResourceRequest(input, context));
436
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
437
+ };
438
+ exports.serializeAws_json1_0TagResourceCommand = serializeAws_json1_0TagResourceCommand;
439
+ const serializeAws_json1_0UntagResourceCommand = async (input, context) => {
440
+ const headers = {
441
+ "content-type": "application/x-amz-json-1.0",
442
+ "x-amz-target": "IoTAutobahnControlPlane.UntagResource",
443
+ };
444
+ let body;
445
+ body = JSON.stringify(serializeAws_json1_0UntagResourceRequest(input, context));
446
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
447
+ };
448
+ exports.serializeAws_json1_0UntagResourceCommand = serializeAws_json1_0UntagResourceCommand;
449
+ const serializeAws_json1_0UpdateCampaignCommand = async (input, context) => {
450
+ const headers = {
451
+ "content-type": "application/x-amz-json-1.0",
452
+ "x-amz-target": "IoTAutobahnControlPlane.UpdateCampaign",
453
+ };
454
+ let body;
455
+ body = JSON.stringify(serializeAws_json1_0UpdateCampaignRequest(input, context));
456
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
457
+ };
458
+ exports.serializeAws_json1_0UpdateCampaignCommand = serializeAws_json1_0UpdateCampaignCommand;
459
+ const serializeAws_json1_0UpdateDecoderManifestCommand = async (input, context) => {
460
+ const headers = {
461
+ "content-type": "application/x-amz-json-1.0",
462
+ "x-amz-target": "IoTAutobahnControlPlane.UpdateDecoderManifest",
463
+ };
464
+ let body;
465
+ body = JSON.stringify(serializeAws_json1_0UpdateDecoderManifestRequest(input, context));
466
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
467
+ };
468
+ exports.serializeAws_json1_0UpdateDecoderManifestCommand = serializeAws_json1_0UpdateDecoderManifestCommand;
469
+ const serializeAws_json1_0UpdateFleetCommand = async (input, context) => {
470
+ const headers = {
471
+ "content-type": "application/x-amz-json-1.0",
472
+ "x-amz-target": "IoTAutobahnControlPlane.UpdateFleet",
473
+ };
474
+ let body;
475
+ body = JSON.stringify(serializeAws_json1_0UpdateFleetRequest(input, context));
476
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
477
+ };
478
+ exports.serializeAws_json1_0UpdateFleetCommand = serializeAws_json1_0UpdateFleetCommand;
479
+ const serializeAws_json1_0UpdateModelManifestCommand = async (input, context) => {
480
+ const headers = {
481
+ "content-type": "application/x-amz-json-1.0",
482
+ "x-amz-target": "IoTAutobahnControlPlane.UpdateModelManifest",
483
+ };
484
+ let body;
485
+ body = JSON.stringify(serializeAws_json1_0UpdateModelManifestRequest(input, context));
486
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
487
+ };
488
+ exports.serializeAws_json1_0UpdateModelManifestCommand = serializeAws_json1_0UpdateModelManifestCommand;
489
+ const serializeAws_json1_0UpdateSignalCatalogCommand = async (input, context) => {
490
+ const headers = {
491
+ "content-type": "application/x-amz-json-1.0",
492
+ "x-amz-target": "IoTAutobahnControlPlane.UpdateSignalCatalog",
493
+ };
494
+ let body;
495
+ body = JSON.stringify(serializeAws_json1_0UpdateSignalCatalogRequest(input, context));
496
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
497
+ };
498
+ exports.serializeAws_json1_0UpdateSignalCatalogCommand = serializeAws_json1_0UpdateSignalCatalogCommand;
499
+ const serializeAws_json1_0UpdateVehicleCommand = async (input, context) => {
500
+ const headers = {
501
+ "content-type": "application/x-amz-json-1.0",
502
+ "x-amz-target": "IoTAutobahnControlPlane.UpdateVehicle",
503
+ };
504
+ let body;
505
+ body = JSON.stringify(serializeAws_json1_0UpdateVehicleRequest(input, context));
506
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
507
+ };
508
+ exports.serializeAws_json1_0UpdateVehicleCommand = serializeAws_json1_0UpdateVehicleCommand;
509
+ const deserializeAws_json1_0AssociateVehicleFleetCommand = async (output, context) => {
510
+ if (output.statusCode >= 300) {
511
+ return deserializeAws_json1_0AssociateVehicleFleetCommandError(output, context);
512
+ }
513
+ const data = await parseBody(output.body, context);
514
+ let contents = {};
515
+ contents = deserializeAws_json1_0AssociateVehicleFleetResponse(data, context);
516
+ const response = {
517
+ $metadata: deserializeMetadata(output),
518
+ ...contents,
519
+ };
520
+ return Promise.resolve(response);
521
+ };
522
+ exports.deserializeAws_json1_0AssociateVehicleFleetCommand = deserializeAws_json1_0AssociateVehicleFleetCommand;
523
+ const deserializeAws_json1_0AssociateVehicleFleetCommandError = async (output, context) => {
524
+ const parsedOutput = {
525
+ ...output,
526
+ body: await parseBody(output.body, context),
527
+ };
528
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
529
+ switch (errorCode) {
530
+ case "AccessDeniedException":
531
+ case "com.amazonaws.iotfleetwise#AccessDeniedException":
532
+ throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
533
+ case "InternalServerException":
534
+ case "com.amazonaws.iotfleetwise#InternalServerException":
535
+ throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
536
+ case "ResourceNotFoundException":
537
+ case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
538
+ throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
539
+ case "ThrottlingException":
540
+ case "com.amazonaws.iotfleetwise#ThrottlingException":
541
+ throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
542
+ case "ValidationException":
543
+ case "com.amazonaws.iotfleetwise#ValidationException":
544
+ throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
545
+ default:
546
+ const parsedBody = parsedOutput.body;
547
+ (0, smithy_client_1.throwDefaultError)({
548
+ output,
549
+ parsedBody,
550
+ exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
551
+ errorCode,
552
+ });
553
+ }
554
+ };
555
+ const deserializeAws_json1_0BatchCreateVehicleCommand = async (output, context) => {
556
+ if (output.statusCode >= 300) {
557
+ return deserializeAws_json1_0BatchCreateVehicleCommandError(output, context);
558
+ }
559
+ const data = await parseBody(output.body, context);
560
+ let contents = {};
561
+ contents = deserializeAws_json1_0BatchCreateVehicleResponse(data, context);
562
+ const response = {
563
+ $metadata: deserializeMetadata(output),
564
+ ...contents,
565
+ };
566
+ return Promise.resolve(response);
567
+ };
568
+ exports.deserializeAws_json1_0BatchCreateVehicleCommand = deserializeAws_json1_0BatchCreateVehicleCommand;
569
+ const deserializeAws_json1_0BatchCreateVehicleCommandError = async (output, context) => {
570
+ const parsedOutput = {
571
+ ...output,
572
+ body: await parseBody(output.body, context),
573
+ };
574
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
575
+ switch (errorCode) {
576
+ case "AccessDeniedException":
577
+ case "com.amazonaws.iotfleetwise#AccessDeniedException":
578
+ throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
579
+ case "InternalServerException":
580
+ case "com.amazonaws.iotfleetwise#InternalServerException":
581
+ throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
582
+ case "LimitExceededException":
583
+ case "com.amazonaws.iotfleetwise#LimitExceededException":
584
+ throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context);
585
+ case "ThrottlingException":
586
+ case "com.amazonaws.iotfleetwise#ThrottlingException":
587
+ throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
588
+ case "ValidationException":
589
+ case "com.amazonaws.iotfleetwise#ValidationException":
590
+ throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
591
+ default:
592
+ const parsedBody = parsedOutput.body;
593
+ (0, smithy_client_1.throwDefaultError)({
594
+ output,
595
+ parsedBody,
596
+ exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
597
+ errorCode,
598
+ });
599
+ }
600
+ };
601
+ const deserializeAws_json1_0BatchUpdateVehicleCommand = async (output, context) => {
602
+ if (output.statusCode >= 300) {
603
+ return deserializeAws_json1_0BatchUpdateVehicleCommandError(output, context);
604
+ }
605
+ const data = await parseBody(output.body, context);
606
+ let contents = {};
607
+ contents = deserializeAws_json1_0BatchUpdateVehicleResponse(data, context);
608
+ const response = {
609
+ $metadata: deserializeMetadata(output),
610
+ ...contents,
611
+ };
612
+ return Promise.resolve(response);
613
+ };
614
+ exports.deserializeAws_json1_0BatchUpdateVehicleCommand = deserializeAws_json1_0BatchUpdateVehicleCommand;
615
+ const deserializeAws_json1_0BatchUpdateVehicleCommandError = async (output, context) => {
616
+ const parsedOutput = {
617
+ ...output,
618
+ body: await parseBody(output.body, context),
619
+ };
620
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
621
+ switch (errorCode) {
622
+ case "AccessDeniedException":
623
+ case "com.amazonaws.iotfleetwise#AccessDeniedException":
624
+ throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
625
+ case "InternalServerException":
626
+ case "com.amazonaws.iotfleetwise#InternalServerException":
627
+ throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
628
+ case "ThrottlingException":
629
+ case "com.amazonaws.iotfleetwise#ThrottlingException":
630
+ throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
631
+ case "ValidationException":
632
+ case "com.amazonaws.iotfleetwise#ValidationException":
633
+ throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
634
+ default:
635
+ const parsedBody = parsedOutput.body;
636
+ (0, smithy_client_1.throwDefaultError)({
637
+ output,
638
+ parsedBody,
639
+ exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
640
+ errorCode,
641
+ });
642
+ }
643
+ };
644
+ const deserializeAws_json1_0CreateCampaignCommand = async (output, context) => {
645
+ if (output.statusCode >= 300) {
646
+ return deserializeAws_json1_0CreateCampaignCommandError(output, context);
647
+ }
648
+ const data = await parseBody(output.body, context);
649
+ let contents = {};
650
+ contents = deserializeAws_json1_0CreateCampaignResponse(data, context);
651
+ const response = {
652
+ $metadata: deserializeMetadata(output),
653
+ ...contents,
654
+ };
655
+ return Promise.resolve(response);
656
+ };
657
+ exports.deserializeAws_json1_0CreateCampaignCommand = deserializeAws_json1_0CreateCampaignCommand;
658
+ const deserializeAws_json1_0CreateCampaignCommandError = async (output, context) => {
659
+ const parsedOutput = {
660
+ ...output,
661
+ body: await parseBody(output.body, context),
662
+ };
663
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
664
+ switch (errorCode) {
665
+ case "AccessDeniedException":
666
+ case "com.amazonaws.iotfleetwise#AccessDeniedException":
667
+ throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
668
+ case "ConflictException":
669
+ case "com.amazonaws.iotfleetwise#ConflictException":
670
+ throw await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context);
671
+ case "InternalServerException":
672
+ case "com.amazonaws.iotfleetwise#InternalServerException":
673
+ throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
674
+ case "LimitExceededException":
675
+ case "com.amazonaws.iotfleetwise#LimitExceededException":
676
+ throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context);
677
+ case "ResourceNotFoundException":
678
+ case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
679
+ throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
680
+ case "ThrottlingException":
681
+ case "com.amazonaws.iotfleetwise#ThrottlingException":
682
+ throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
683
+ case "ValidationException":
684
+ case "com.amazonaws.iotfleetwise#ValidationException":
685
+ throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
686
+ default:
687
+ const parsedBody = parsedOutput.body;
688
+ (0, smithy_client_1.throwDefaultError)({
689
+ output,
690
+ parsedBody,
691
+ exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
692
+ errorCode,
693
+ });
694
+ }
695
+ };
696
+ const deserializeAws_json1_0CreateDecoderManifestCommand = async (output, context) => {
697
+ if (output.statusCode >= 300) {
698
+ return deserializeAws_json1_0CreateDecoderManifestCommandError(output, context);
699
+ }
700
+ const data = await parseBody(output.body, context);
701
+ let contents = {};
702
+ contents = deserializeAws_json1_0CreateDecoderManifestResponse(data, context);
703
+ const response = {
704
+ $metadata: deserializeMetadata(output),
705
+ ...contents,
706
+ };
707
+ return Promise.resolve(response);
708
+ };
709
+ exports.deserializeAws_json1_0CreateDecoderManifestCommand = deserializeAws_json1_0CreateDecoderManifestCommand;
710
+ const deserializeAws_json1_0CreateDecoderManifestCommandError = async (output, context) => {
711
+ const parsedOutput = {
712
+ ...output,
713
+ body: await parseBody(output.body, context),
714
+ };
715
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
716
+ switch (errorCode) {
717
+ case "AccessDeniedException":
718
+ case "com.amazonaws.iotfleetwise#AccessDeniedException":
719
+ throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
720
+ case "ConflictException":
721
+ case "com.amazonaws.iotfleetwise#ConflictException":
722
+ throw await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context);
723
+ case "DecoderManifestValidationException":
724
+ case "com.amazonaws.iotfleetwise#DecoderManifestValidationException":
725
+ throw await deserializeAws_json1_0DecoderManifestValidationExceptionResponse(parsedOutput, context);
726
+ case "InternalServerException":
727
+ case "com.amazonaws.iotfleetwise#InternalServerException":
728
+ throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
729
+ case "LimitExceededException":
730
+ case "com.amazonaws.iotfleetwise#LimitExceededException":
731
+ throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context);
732
+ case "ResourceNotFoundException":
733
+ case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
734
+ throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
735
+ case "ThrottlingException":
736
+ case "com.amazonaws.iotfleetwise#ThrottlingException":
737
+ throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
738
+ case "ValidationException":
739
+ case "com.amazonaws.iotfleetwise#ValidationException":
740
+ throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
741
+ default:
742
+ const parsedBody = parsedOutput.body;
743
+ (0, smithy_client_1.throwDefaultError)({
744
+ output,
745
+ parsedBody,
746
+ exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
747
+ errorCode,
748
+ });
749
+ }
750
+ };
751
+ const deserializeAws_json1_0CreateFleetCommand = async (output, context) => {
752
+ if (output.statusCode >= 300) {
753
+ return deserializeAws_json1_0CreateFleetCommandError(output, context);
754
+ }
755
+ const data = await parseBody(output.body, context);
756
+ let contents = {};
757
+ contents = deserializeAws_json1_0CreateFleetResponse(data, context);
758
+ const response = {
759
+ $metadata: deserializeMetadata(output),
760
+ ...contents,
761
+ };
762
+ return Promise.resolve(response);
763
+ };
764
+ exports.deserializeAws_json1_0CreateFleetCommand = deserializeAws_json1_0CreateFleetCommand;
765
+ const deserializeAws_json1_0CreateFleetCommandError = async (output, context) => {
766
+ const parsedOutput = {
767
+ ...output,
768
+ body: await parseBody(output.body, context),
769
+ };
770
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
771
+ switch (errorCode) {
772
+ case "AccessDeniedException":
773
+ case "com.amazonaws.iotfleetwise#AccessDeniedException":
774
+ throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
775
+ case "ConflictException":
776
+ case "com.amazonaws.iotfleetwise#ConflictException":
777
+ throw await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context);
778
+ case "InternalServerException":
779
+ case "com.amazonaws.iotfleetwise#InternalServerException":
780
+ throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
781
+ case "LimitExceededException":
782
+ case "com.amazonaws.iotfleetwise#LimitExceededException":
783
+ throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context);
784
+ case "ResourceNotFoundException":
785
+ case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
786
+ throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
787
+ case "ThrottlingException":
788
+ case "com.amazonaws.iotfleetwise#ThrottlingException":
789
+ throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
790
+ case "ValidationException":
791
+ case "com.amazonaws.iotfleetwise#ValidationException":
792
+ throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
793
+ default:
794
+ const parsedBody = parsedOutput.body;
795
+ (0, smithy_client_1.throwDefaultError)({
796
+ output,
797
+ parsedBody,
798
+ exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
799
+ errorCode,
800
+ });
801
+ }
802
+ };
803
+ const deserializeAws_json1_0CreateModelManifestCommand = async (output, context) => {
804
+ if (output.statusCode >= 300) {
805
+ return deserializeAws_json1_0CreateModelManifestCommandError(output, context);
806
+ }
807
+ const data = await parseBody(output.body, context);
808
+ let contents = {};
809
+ contents = deserializeAws_json1_0CreateModelManifestResponse(data, context);
810
+ const response = {
811
+ $metadata: deserializeMetadata(output),
812
+ ...contents,
813
+ };
814
+ return Promise.resolve(response);
815
+ };
816
+ exports.deserializeAws_json1_0CreateModelManifestCommand = deserializeAws_json1_0CreateModelManifestCommand;
817
+ const deserializeAws_json1_0CreateModelManifestCommandError = async (output, context) => {
818
+ const parsedOutput = {
819
+ ...output,
820
+ body: await parseBody(output.body, context),
821
+ };
822
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
823
+ switch (errorCode) {
824
+ case "AccessDeniedException":
825
+ case "com.amazonaws.iotfleetwise#AccessDeniedException":
826
+ throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
827
+ case "ConflictException":
828
+ case "com.amazonaws.iotfleetwise#ConflictException":
829
+ throw await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context);
830
+ case "InternalServerException":
831
+ case "com.amazonaws.iotfleetwise#InternalServerException":
832
+ throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
833
+ case "InvalidSignalsException":
834
+ case "com.amazonaws.iotfleetwise#InvalidSignalsException":
835
+ throw await deserializeAws_json1_0InvalidSignalsExceptionResponse(parsedOutput, context);
836
+ case "LimitExceededException":
837
+ case "com.amazonaws.iotfleetwise#LimitExceededException":
838
+ throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context);
839
+ case "ResourceNotFoundException":
840
+ case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
841
+ throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
842
+ case "ThrottlingException":
843
+ case "com.amazonaws.iotfleetwise#ThrottlingException":
844
+ throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
845
+ case "ValidationException":
846
+ case "com.amazonaws.iotfleetwise#ValidationException":
847
+ throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
848
+ default:
849
+ const parsedBody = parsedOutput.body;
850
+ (0, smithy_client_1.throwDefaultError)({
851
+ output,
852
+ parsedBody,
853
+ exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
854
+ errorCode,
855
+ });
856
+ }
857
+ };
858
+ const deserializeAws_json1_0CreateSignalCatalogCommand = async (output, context) => {
859
+ if (output.statusCode >= 300) {
860
+ return deserializeAws_json1_0CreateSignalCatalogCommandError(output, context);
861
+ }
862
+ const data = await parseBody(output.body, context);
863
+ let contents = {};
864
+ contents = deserializeAws_json1_0CreateSignalCatalogResponse(data, context);
865
+ const response = {
866
+ $metadata: deserializeMetadata(output),
867
+ ...contents,
868
+ };
869
+ return Promise.resolve(response);
870
+ };
871
+ exports.deserializeAws_json1_0CreateSignalCatalogCommand = deserializeAws_json1_0CreateSignalCatalogCommand;
872
+ const deserializeAws_json1_0CreateSignalCatalogCommandError = async (output, context) => {
873
+ const parsedOutput = {
874
+ ...output,
875
+ body: await parseBody(output.body, context),
876
+ };
877
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
878
+ switch (errorCode) {
879
+ case "AccessDeniedException":
880
+ case "com.amazonaws.iotfleetwise#AccessDeniedException":
881
+ throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
882
+ case "ConflictException":
883
+ case "com.amazonaws.iotfleetwise#ConflictException":
884
+ throw await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context);
885
+ case "InternalServerException":
886
+ case "com.amazonaws.iotfleetwise#InternalServerException":
887
+ throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
888
+ case "InvalidNodeException":
889
+ case "com.amazonaws.iotfleetwise#InvalidNodeException":
890
+ throw await deserializeAws_json1_0InvalidNodeExceptionResponse(parsedOutput, context);
891
+ case "InvalidSignalsException":
892
+ case "com.amazonaws.iotfleetwise#InvalidSignalsException":
893
+ throw await deserializeAws_json1_0InvalidSignalsExceptionResponse(parsedOutput, context);
894
+ case "LimitExceededException":
895
+ case "com.amazonaws.iotfleetwise#LimitExceededException":
896
+ throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context);
897
+ case "ThrottlingException":
898
+ case "com.amazonaws.iotfleetwise#ThrottlingException":
899
+ throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
900
+ case "ValidationException":
901
+ case "com.amazonaws.iotfleetwise#ValidationException":
902
+ throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
903
+ default:
904
+ const parsedBody = parsedOutput.body;
905
+ (0, smithy_client_1.throwDefaultError)({
906
+ output,
907
+ parsedBody,
908
+ exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
909
+ errorCode,
910
+ });
911
+ }
912
+ };
913
+ const deserializeAws_json1_0CreateVehicleCommand = async (output, context) => {
914
+ if (output.statusCode >= 300) {
915
+ return deserializeAws_json1_0CreateVehicleCommandError(output, context);
916
+ }
917
+ const data = await parseBody(output.body, context);
918
+ let contents = {};
919
+ contents = deserializeAws_json1_0CreateVehicleResponse(data, context);
920
+ const response = {
921
+ $metadata: deserializeMetadata(output),
922
+ ...contents,
923
+ };
924
+ return Promise.resolve(response);
925
+ };
926
+ exports.deserializeAws_json1_0CreateVehicleCommand = deserializeAws_json1_0CreateVehicleCommand;
927
+ const deserializeAws_json1_0CreateVehicleCommandError = async (output, context) => {
928
+ const parsedOutput = {
929
+ ...output,
930
+ body: await parseBody(output.body, context),
931
+ };
932
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
933
+ switch (errorCode) {
934
+ case "AccessDeniedException":
935
+ case "com.amazonaws.iotfleetwise#AccessDeniedException":
936
+ throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
937
+ case "ConflictException":
938
+ case "com.amazonaws.iotfleetwise#ConflictException":
939
+ throw await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context);
940
+ case "InternalServerException":
941
+ case "com.amazonaws.iotfleetwise#InternalServerException":
942
+ throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
943
+ case "LimitExceededException":
944
+ case "com.amazonaws.iotfleetwise#LimitExceededException":
945
+ throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context);
946
+ case "ResourceNotFoundException":
947
+ case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
948
+ throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
949
+ case "ThrottlingException":
950
+ case "com.amazonaws.iotfleetwise#ThrottlingException":
951
+ throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
952
+ case "ValidationException":
953
+ case "com.amazonaws.iotfleetwise#ValidationException":
954
+ throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
955
+ default:
956
+ const parsedBody = parsedOutput.body;
957
+ (0, smithy_client_1.throwDefaultError)({
958
+ output,
959
+ parsedBody,
960
+ exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
961
+ errorCode,
962
+ });
963
+ }
964
+ };
965
+ const deserializeAws_json1_0DeleteCampaignCommand = async (output, context) => {
966
+ if (output.statusCode >= 300) {
967
+ return deserializeAws_json1_0DeleteCampaignCommandError(output, context);
968
+ }
969
+ const data = await parseBody(output.body, context);
970
+ let contents = {};
971
+ contents = deserializeAws_json1_0DeleteCampaignResponse(data, context);
972
+ const response = {
973
+ $metadata: deserializeMetadata(output),
974
+ ...contents,
975
+ };
976
+ return Promise.resolve(response);
977
+ };
978
+ exports.deserializeAws_json1_0DeleteCampaignCommand = deserializeAws_json1_0DeleteCampaignCommand;
979
+ const deserializeAws_json1_0DeleteCampaignCommandError = async (output, context) => {
980
+ const parsedOutput = {
981
+ ...output,
982
+ body: await parseBody(output.body, context),
983
+ };
984
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
985
+ switch (errorCode) {
986
+ case "AccessDeniedException":
987
+ case "com.amazonaws.iotfleetwise#AccessDeniedException":
988
+ throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
989
+ case "InternalServerException":
990
+ case "com.amazonaws.iotfleetwise#InternalServerException":
991
+ throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
992
+ case "ResourceNotFoundException":
993
+ case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
994
+ throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
995
+ case "ThrottlingException":
996
+ case "com.amazonaws.iotfleetwise#ThrottlingException":
997
+ throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
998
+ case "ValidationException":
999
+ case "com.amazonaws.iotfleetwise#ValidationException":
1000
+ throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
1001
+ default:
1002
+ const parsedBody = parsedOutput.body;
1003
+ (0, smithy_client_1.throwDefaultError)({
1004
+ output,
1005
+ parsedBody,
1006
+ exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
1007
+ errorCode,
1008
+ });
1009
+ }
1010
+ };
1011
+ const deserializeAws_json1_0DeleteDecoderManifestCommand = async (output, context) => {
1012
+ if (output.statusCode >= 300) {
1013
+ return deserializeAws_json1_0DeleteDecoderManifestCommandError(output, context);
1014
+ }
1015
+ const data = await parseBody(output.body, context);
1016
+ let contents = {};
1017
+ contents = deserializeAws_json1_0DeleteDecoderManifestResponse(data, context);
1018
+ const response = {
1019
+ $metadata: deserializeMetadata(output),
1020
+ ...contents,
1021
+ };
1022
+ return Promise.resolve(response);
1023
+ };
1024
+ exports.deserializeAws_json1_0DeleteDecoderManifestCommand = deserializeAws_json1_0DeleteDecoderManifestCommand;
1025
+ const deserializeAws_json1_0DeleteDecoderManifestCommandError = async (output, context) => {
1026
+ const parsedOutput = {
1027
+ ...output,
1028
+ body: await parseBody(output.body, context),
1029
+ };
1030
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1031
+ switch (errorCode) {
1032
+ case "AccessDeniedException":
1033
+ case "com.amazonaws.iotfleetwise#AccessDeniedException":
1034
+ throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
1035
+ case "ConflictException":
1036
+ case "com.amazonaws.iotfleetwise#ConflictException":
1037
+ throw await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context);
1038
+ case "InternalServerException":
1039
+ case "com.amazonaws.iotfleetwise#InternalServerException":
1040
+ throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
1041
+ case "ThrottlingException":
1042
+ case "com.amazonaws.iotfleetwise#ThrottlingException":
1043
+ throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
1044
+ case "ValidationException":
1045
+ case "com.amazonaws.iotfleetwise#ValidationException":
1046
+ throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
1047
+ default:
1048
+ const parsedBody = parsedOutput.body;
1049
+ (0, smithy_client_1.throwDefaultError)({
1050
+ output,
1051
+ parsedBody,
1052
+ exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
1053
+ errorCode,
1054
+ });
1055
+ }
1056
+ };
1057
+ const deserializeAws_json1_0DeleteFleetCommand = async (output, context) => {
1058
+ if (output.statusCode >= 300) {
1059
+ return deserializeAws_json1_0DeleteFleetCommandError(output, context);
1060
+ }
1061
+ const data = await parseBody(output.body, context);
1062
+ let contents = {};
1063
+ contents = deserializeAws_json1_0DeleteFleetResponse(data, context);
1064
+ const response = {
1065
+ $metadata: deserializeMetadata(output),
1066
+ ...contents,
1067
+ };
1068
+ return Promise.resolve(response);
1069
+ };
1070
+ exports.deserializeAws_json1_0DeleteFleetCommand = deserializeAws_json1_0DeleteFleetCommand;
1071
+ const deserializeAws_json1_0DeleteFleetCommandError = async (output, context) => {
1072
+ const parsedOutput = {
1073
+ ...output,
1074
+ body: await parseBody(output.body, context),
1075
+ };
1076
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1077
+ switch (errorCode) {
1078
+ case "AccessDeniedException":
1079
+ case "com.amazonaws.iotfleetwise#AccessDeniedException":
1080
+ throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
1081
+ case "InternalServerException":
1082
+ case "com.amazonaws.iotfleetwise#InternalServerException":
1083
+ throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
1084
+ case "ThrottlingException":
1085
+ case "com.amazonaws.iotfleetwise#ThrottlingException":
1086
+ throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
1087
+ case "ValidationException":
1088
+ case "com.amazonaws.iotfleetwise#ValidationException":
1089
+ throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
1090
+ default:
1091
+ const parsedBody = parsedOutput.body;
1092
+ (0, smithy_client_1.throwDefaultError)({
1093
+ output,
1094
+ parsedBody,
1095
+ exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
1096
+ errorCode,
1097
+ });
1098
+ }
1099
+ };
1100
+ const deserializeAws_json1_0DeleteModelManifestCommand = async (output, context) => {
1101
+ if (output.statusCode >= 300) {
1102
+ return deserializeAws_json1_0DeleteModelManifestCommandError(output, context);
1103
+ }
1104
+ const data = await parseBody(output.body, context);
1105
+ let contents = {};
1106
+ contents = deserializeAws_json1_0DeleteModelManifestResponse(data, context);
1107
+ const response = {
1108
+ $metadata: deserializeMetadata(output),
1109
+ ...contents,
1110
+ };
1111
+ return Promise.resolve(response);
1112
+ };
1113
+ exports.deserializeAws_json1_0DeleteModelManifestCommand = deserializeAws_json1_0DeleteModelManifestCommand;
1114
+ const deserializeAws_json1_0DeleteModelManifestCommandError = async (output, context) => {
1115
+ const parsedOutput = {
1116
+ ...output,
1117
+ body: await parseBody(output.body, context),
1118
+ };
1119
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1120
+ switch (errorCode) {
1121
+ case "AccessDeniedException":
1122
+ case "com.amazonaws.iotfleetwise#AccessDeniedException":
1123
+ throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
1124
+ case "ConflictException":
1125
+ case "com.amazonaws.iotfleetwise#ConflictException":
1126
+ throw await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context);
1127
+ case "InternalServerException":
1128
+ case "com.amazonaws.iotfleetwise#InternalServerException":
1129
+ throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
1130
+ case "ThrottlingException":
1131
+ case "com.amazonaws.iotfleetwise#ThrottlingException":
1132
+ throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
1133
+ case "ValidationException":
1134
+ case "com.amazonaws.iotfleetwise#ValidationException":
1135
+ throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
1136
+ default:
1137
+ const parsedBody = parsedOutput.body;
1138
+ (0, smithy_client_1.throwDefaultError)({
1139
+ output,
1140
+ parsedBody,
1141
+ exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
1142
+ errorCode,
1143
+ });
1144
+ }
1145
+ };
1146
+ const deserializeAws_json1_0DeleteSignalCatalogCommand = async (output, context) => {
1147
+ if (output.statusCode >= 300) {
1148
+ return deserializeAws_json1_0DeleteSignalCatalogCommandError(output, context);
1149
+ }
1150
+ const data = await parseBody(output.body, context);
1151
+ let contents = {};
1152
+ contents = deserializeAws_json1_0DeleteSignalCatalogResponse(data, context);
1153
+ const response = {
1154
+ $metadata: deserializeMetadata(output),
1155
+ ...contents,
1156
+ };
1157
+ return Promise.resolve(response);
1158
+ };
1159
+ exports.deserializeAws_json1_0DeleteSignalCatalogCommand = deserializeAws_json1_0DeleteSignalCatalogCommand;
1160
+ const deserializeAws_json1_0DeleteSignalCatalogCommandError = async (output, context) => {
1161
+ const parsedOutput = {
1162
+ ...output,
1163
+ body: await parseBody(output.body, context),
1164
+ };
1165
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1166
+ switch (errorCode) {
1167
+ case "AccessDeniedException":
1168
+ case "com.amazonaws.iotfleetwise#AccessDeniedException":
1169
+ throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
1170
+ case "ConflictException":
1171
+ case "com.amazonaws.iotfleetwise#ConflictException":
1172
+ throw await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context);
1173
+ case "InternalServerException":
1174
+ case "com.amazonaws.iotfleetwise#InternalServerException":
1175
+ throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
1176
+ case "ThrottlingException":
1177
+ case "com.amazonaws.iotfleetwise#ThrottlingException":
1178
+ throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
1179
+ case "ValidationException":
1180
+ case "com.amazonaws.iotfleetwise#ValidationException":
1181
+ throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
1182
+ default:
1183
+ const parsedBody = parsedOutput.body;
1184
+ (0, smithy_client_1.throwDefaultError)({
1185
+ output,
1186
+ parsedBody,
1187
+ exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
1188
+ errorCode,
1189
+ });
1190
+ }
1191
+ };
1192
+ const deserializeAws_json1_0DeleteVehicleCommand = async (output, context) => {
1193
+ if (output.statusCode >= 300) {
1194
+ return deserializeAws_json1_0DeleteVehicleCommandError(output, context);
1195
+ }
1196
+ const data = await parseBody(output.body, context);
1197
+ let contents = {};
1198
+ contents = deserializeAws_json1_0DeleteVehicleResponse(data, context);
1199
+ const response = {
1200
+ $metadata: deserializeMetadata(output),
1201
+ ...contents,
1202
+ };
1203
+ return Promise.resolve(response);
1204
+ };
1205
+ exports.deserializeAws_json1_0DeleteVehicleCommand = deserializeAws_json1_0DeleteVehicleCommand;
1206
+ const deserializeAws_json1_0DeleteVehicleCommandError = async (output, context) => {
1207
+ const parsedOutput = {
1208
+ ...output,
1209
+ body: await parseBody(output.body, context),
1210
+ };
1211
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1212
+ switch (errorCode) {
1213
+ case "AccessDeniedException":
1214
+ case "com.amazonaws.iotfleetwise#AccessDeniedException":
1215
+ throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
1216
+ case "InternalServerException":
1217
+ case "com.amazonaws.iotfleetwise#InternalServerException":
1218
+ throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
1219
+ case "ThrottlingException":
1220
+ case "com.amazonaws.iotfleetwise#ThrottlingException":
1221
+ throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
1222
+ case "ValidationException":
1223
+ case "com.amazonaws.iotfleetwise#ValidationException":
1224
+ throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
1225
+ default:
1226
+ const parsedBody = parsedOutput.body;
1227
+ (0, smithy_client_1.throwDefaultError)({
1228
+ output,
1229
+ parsedBody,
1230
+ exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
1231
+ errorCode,
1232
+ });
1233
+ }
1234
+ };
1235
+ const deserializeAws_json1_0DisassociateVehicleFleetCommand = async (output, context) => {
1236
+ if (output.statusCode >= 300) {
1237
+ return deserializeAws_json1_0DisassociateVehicleFleetCommandError(output, context);
1238
+ }
1239
+ const data = await parseBody(output.body, context);
1240
+ let contents = {};
1241
+ contents = deserializeAws_json1_0DisassociateVehicleFleetResponse(data, context);
1242
+ const response = {
1243
+ $metadata: deserializeMetadata(output),
1244
+ ...contents,
1245
+ };
1246
+ return Promise.resolve(response);
1247
+ };
1248
+ exports.deserializeAws_json1_0DisassociateVehicleFleetCommand = deserializeAws_json1_0DisassociateVehicleFleetCommand;
1249
+ const deserializeAws_json1_0DisassociateVehicleFleetCommandError = async (output, context) => {
1250
+ const parsedOutput = {
1251
+ ...output,
1252
+ body: await parseBody(output.body, context),
1253
+ };
1254
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1255
+ switch (errorCode) {
1256
+ case "AccessDeniedException":
1257
+ case "com.amazonaws.iotfleetwise#AccessDeniedException":
1258
+ throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
1259
+ case "InternalServerException":
1260
+ case "com.amazonaws.iotfleetwise#InternalServerException":
1261
+ throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
1262
+ case "ResourceNotFoundException":
1263
+ case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
1264
+ throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
1265
+ case "ThrottlingException":
1266
+ case "com.amazonaws.iotfleetwise#ThrottlingException":
1267
+ throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
1268
+ case "ValidationException":
1269
+ case "com.amazonaws.iotfleetwise#ValidationException":
1270
+ throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
1271
+ default:
1272
+ const parsedBody = parsedOutput.body;
1273
+ (0, smithy_client_1.throwDefaultError)({
1274
+ output,
1275
+ parsedBody,
1276
+ exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
1277
+ errorCode,
1278
+ });
1279
+ }
1280
+ };
1281
+ const deserializeAws_json1_0GetCampaignCommand = async (output, context) => {
1282
+ if (output.statusCode >= 300) {
1283
+ return deserializeAws_json1_0GetCampaignCommandError(output, context);
1284
+ }
1285
+ const data = await parseBody(output.body, context);
1286
+ let contents = {};
1287
+ contents = deserializeAws_json1_0GetCampaignResponse(data, context);
1288
+ const response = {
1289
+ $metadata: deserializeMetadata(output),
1290
+ ...contents,
1291
+ };
1292
+ return Promise.resolve(response);
1293
+ };
1294
+ exports.deserializeAws_json1_0GetCampaignCommand = deserializeAws_json1_0GetCampaignCommand;
1295
+ const deserializeAws_json1_0GetCampaignCommandError = async (output, context) => {
1296
+ const parsedOutput = {
1297
+ ...output,
1298
+ body: await parseBody(output.body, context),
1299
+ };
1300
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1301
+ switch (errorCode) {
1302
+ case "AccessDeniedException":
1303
+ case "com.amazonaws.iotfleetwise#AccessDeniedException":
1304
+ throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
1305
+ case "InternalServerException":
1306
+ case "com.amazonaws.iotfleetwise#InternalServerException":
1307
+ throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
1308
+ case "ResourceNotFoundException":
1309
+ case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
1310
+ throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
1311
+ case "ThrottlingException":
1312
+ case "com.amazonaws.iotfleetwise#ThrottlingException":
1313
+ throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
1314
+ case "ValidationException":
1315
+ case "com.amazonaws.iotfleetwise#ValidationException":
1316
+ throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
1317
+ default:
1318
+ const parsedBody = parsedOutput.body;
1319
+ (0, smithy_client_1.throwDefaultError)({
1320
+ output,
1321
+ parsedBody,
1322
+ exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
1323
+ errorCode,
1324
+ });
1325
+ }
1326
+ };
1327
+ const deserializeAws_json1_0GetDecoderManifestCommand = async (output, context) => {
1328
+ if (output.statusCode >= 300) {
1329
+ return deserializeAws_json1_0GetDecoderManifestCommandError(output, context);
1330
+ }
1331
+ const data = await parseBody(output.body, context);
1332
+ let contents = {};
1333
+ contents = deserializeAws_json1_0GetDecoderManifestResponse(data, context);
1334
+ const response = {
1335
+ $metadata: deserializeMetadata(output),
1336
+ ...contents,
1337
+ };
1338
+ return Promise.resolve(response);
1339
+ };
1340
+ exports.deserializeAws_json1_0GetDecoderManifestCommand = deserializeAws_json1_0GetDecoderManifestCommand;
1341
+ const deserializeAws_json1_0GetDecoderManifestCommandError = async (output, context) => {
1342
+ const parsedOutput = {
1343
+ ...output,
1344
+ body: await parseBody(output.body, context),
1345
+ };
1346
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1347
+ switch (errorCode) {
1348
+ case "AccessDeniedException":
1349
+ case "com.amazonaws.iotfleetwise#AccessDeniedException":
1350
+ throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
1351
+ case "InternalServerException":
1352
+ case "com.amazonaws.iotfleetwise#InternalServerException":
1353
+ throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
1354
+ case "ResourceNotFoundException":
1355
+ case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
1356
+ throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
1357
+ case "ThrottlingException":
1358
+ case "com.amazonaws.iotfleetwise#ThrottlingException":
1359
+ throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
1360
+ case "ValidationException":
1361
+ case "com.amazonaws.iotfleetwise#ValidationException":
1362
+ throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
1363
+ default:
1364
+ const parsedBody = parsedOutput.body;
1365
+ (0, smithy_client_1.throwDefaultError)({
1366
+ output,
1367
+ parsedBody,
1368
+ exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
1369
+ errorCode,
1370
+ });
1371
+ }
1372
+ };
1373
+ const deserializeAws_json1_0GetFleetCommand = async (output, context) => {
1374
+ if (output.statusCode >= 300) {
1375
+ return deserializeAws_json1_0GetFleetCommandError(output, context);
1376
+ }
1377
+ const data = await parseBody(output.body, context);
1378
+ let contents = {};
1379
+ contents = deserializeAws_json1_0GetFleetResponse(data, context);
1380
+ const response = {
1381
+ $metadata: deserializeMetadata(output),
1382
+ ...contents,
1383
+ };
1384
+ return Promise.resolve(response);
1385
+ };
1386
+ exports.deserializeAws_json1_0GetFleetCommand = deserializeAws_json1_0GetFleetCommand;
1387
+ const deserializeAws_json1_0GetFleetCommandError = async (output, context) => {
1388
+ const parsedOutput = {
1389
+ ...output,
1390
+ body: await parseBody(output.body, context),
1391
+ };
1392
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1393
+ switch (errorCode) {
1394
+ case "AccessDeniedException":
1395
+ case "com.amazonaws.iotfleetwise#AccessDeniedException":
1396
+ throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
1397
+ case "InternalServerException":
1398
+ case "com.amazonaws.iotfleetwise#InternalServerException":
1399
+ throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
1400
+ case "ResourceNotFoundException":
1401
+ case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
1402
+ throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
1403
+ case "ThrottlingException":
1404
+ case "com.amazonaws.iotfleetwise#ThrottlingException":
1405
+ throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
1406
+ case "ValidationException":
1407
+ case "com.amazonaws.iotfleetwise#ValidationException":
1408
+ throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
1409
+ default:
1410
+ const parsedBody = parsedOutput.body;
1411
+ (0, smithy_client_1.throwDefaultError)({
1412
+ output,
1413
+ parsedBody,
1414
+ exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
1415
+ errorCode,
1416
+ });
1417
+ }
1418
+ };
1419
+ const deserializeAws_json1_0GetLoggingOptionsCommand = async (output, context) => {
1420
+ if (output.statusCode >= 300) {
1421
+ return deserializeAws_json1_0GetLoggingOptionsCommandError(output, context);
1422
+ }
1423
+ const data = await parseBody(output.body, context);
1424
+ let contents = {};
1425
+ contents = deserializeAws_json1_0GetLoggingOptionsResponse(data, context);
1426
+ const response = {
1427
+ $metadata: deserializeMetadata(output),
1428
+ ...contents,
1429
+ };
1430
+ return Promise.resolve(response);
1431
+ };
1432
+ exports.deserializeAws_json1_0GetLoggingOptionsCommand = deserializeAws_json1_0GetLoggingOptionsCommand;
1433
+ const deserializeAws_json1_0GetLoggingOptionsCommandError = async (output, context) => {
1434
+ const parsedOutput = {
1435
+ ...output,
1436
+ body: await parseBody(output.body, context),
1437
+ };
1438
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1439
+ switch (errorCode) {
1440
+ case "AccessDeniedException":
1441
+ case "com.amazonaws.iotfleetwise#AccessDeniedException":
1442
+ throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
1443
+ case "InternalServerException":
1444
+ case "com.amazonaws.iotfleetwise#InternalServerException":
1445
+ throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
1446
+ case "ThrottlingException":
1447
+ case "com.amazonaws.iotfleetwise#ThrottlingException":
1448
+ throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
1449
+ default:
1450
+ const parsedBody = parsedOutput.body;
1451
+ (0, smithy_client_1.throwDefaultError)({
1452
+ output,
1453
+ parsedBody,
1454
+ exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
1455
+ errorCode,
1456
+ });
1457
+ }
1458
+ };
1459
+ const deserializeAws_json1_0GetModelManifestCommand = async (output, context) => {
1460
+ if (output.statusCode >= 300) {
1461
+ return deserializeAws_json1_0GetModelManifestCommandError(output, context);
1462
+ }
1463
+ const data = await parseBody(output.body, context);
1464
+ let contents = {};
1465
+ contents = deserializeAws_json1_0GetModelManifestResponse(data, context);
1466
+ const response = {
1467
+ $metadata: deserializeMetadata(output),
1468
+ ...contents,
1469
+ };
1470
+ return Promise.resolve(response);
1471
+ };
1472
+ exports.deserializeAws_json1_0GetModelManifestCommand = deserializeAws_json1_0GetModelManifestCommand;
1473
+ const deserializeAws_json1_0GetModelManifestCommandError = async (output, context) => {
1474
+ const parsedOutput = {
1475
+ ...output,
1476
+ body: await parseBody(output.body, context),
1477
+ };
1478
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1479
+ switch (errorCode) {
1480
+ case "AccessDeniedException":
1481
+ case "com.amazonaws.iotfleetwise#AccessDeniedException":
1482
+ throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
1483
+ case "InternalServerException":
1484
+ case "com.amazonaws.iotfleetwise#InternalServerException":
1485
+ throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
1486
+ case "ResourceNotFoundException":
1487
+ case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
1488
+ throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
1489
+ case "ThrottlingException":
1490
+ case "com.amazonaws.iotfleetwise#ThrottlingException":
1491
+ throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
1492
+ default:
1493
+ const parsedBody = parsedOutput.body;
1494
+ (0, smithy_client_1.throwDefaultError)({
1495
+ output,
1496
+ parsedBody,
1497
+ exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
1498
+ errorCode,
1499
+ });
1500
+ }
1501
+ };
1502
+ const deserializeAws_json1_0GetRegisterAccountStatusCommand = async (output, context) => {
1503
+ if (output.statusCode >= 300) {
1504
+ return deserializeAws_json1_0GetRegisterAccountStatusCommandError(output, context);
1505
+ }
1506
+ const data = await parseBody(output.body, context);
1507
+ let contents = {};
1508
+ contents = deserializeAws_json1_0GetRegisterAccountStatusResponse(data, context);
1509
+ const response = {
1510
+ $metadata: deserializeMetadata(output),
1511
+ ...contents,
1512
+ };
1513
+ return Promise.resolve(response);
1514
+ };
1515
+ exports.deserializeAws_json1_0GetRegisterAccountStatusCommand = deserializeAws_json1_0GetRegisterAccountStatusCommand;
1516
+ const deserializeAws_json1_0GetRegisterAccountStatusCommandError = async (output, context) => {
1517
+ const parsedOutput = {
1518
+ ...output,
1519
+ body: await parseBody(output.body, context),
1520
+ };
1521
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1522
+ switch (errorCode) {
1523
+ case "AccessDeniedException":
1524
+ case "com.amazonaws.iotfleetwise#AccessDeniedException":
1525
+ throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
1526
+ case "InternalServerException":
1527
+ case "com.amazonaws.iotfleetwise#InternalServerException":
1528
+ throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
1529
+ case "ResourceNotFoundException":
1530
+ case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
1531
+ throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
1532
+ case "ThrottlingException":
1533
+ case "com.amazonaws.iotfleetwise#ThrottlingException":
1534
+ throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
1535
+ case "ValidationException":
1536
+ case "com.amazonaws.iotfleetwise#ValidationException":
1537
+ throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
1538
+ default:
1539
+ const parsedBody = parsedOutput.body;
1540
+ (0, smithy_client_1.throwDefaultError)({
1541
+ output,
1542
+ parsedBody,
1543
+ exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
1544
+ errorCode,
1545
+ });
1546
+ }
1547
+ };
1548
+ const deserializeAws_json1_0GetSignalCatalogCommand = async (output, context) => {
1549
+ if (output.statusCode >= 300) {
1550
+ return deserializeAws_json1_0GetSignalCatalogCommandError(output, context);
1551
+ }
1552
+ const data = await parseBody(output.body, context);
1553
+ let contents = {};
1554
+ contents = deserializeAws_json1_0GetSignalCatalogResponse(data, context);
1555
+ const response = {
1556
+ $metadata: deserializeMetadata(output),
1557
+ ...contents,
1558
+ };
1559
+ return Promise.resolve(response);
1560
+ };
1561
+ exports.deserializeAws_json1_0GetSignalCatalogCommand = deserializeAws_json1_0GetSignalCatalogCommand;
1562
+ const deserializeAws_json1_0GetSignalCatalogCommandError = async (output, context) => {
1563
+ const parsedOutput = {
1564
+ ...output,
1565
+ body: await parseBody(output.body, context),
1566
+ };
1567
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1568
+ switch (errorCode) {
1569
+ case "AccessDeniedException":
1570
+ case "com.amazonaws.iotfleetwise#AccessDeniedException":
1571
+ throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
1572
+ case "InternalServerException":
1573
+ case "com.amazonaws.iotfleetwise#InternalServerException":
1574
+ throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
1575
+ case "ResourceNotFoundException":
1576
+ case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
1577
+ throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
1578
+ case "ThrottlingException":
1579
+ case "com.amazonaws.iotfleetwise#ThrottlingException":
1580
+ throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
1581
+ case "ValidationException":
1582
+ case "com.amazonaws.iotfleetwise#ValidationException":
1583
+ throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
1584
+ default:
1585
+ const parsedBody = parsedOutput.body;
1586
+ (0, smithy_client_1.throwDefaultError)({
1587
+ output,
1588
+ parsedBody,
1589
+ exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
1590
+ errorCode,
1591
+ });
1592
+ }
1593
+ };
1594
+ const deserializeAws_json1_0GetVehicleCommand = async (output, context) => {
1595
+ if (output.statusCode >= 300) {
1596
+ return deserializeAws_json1_0GetVehicleCommandError(output, context);
1597
+ }
1598
+ const data = await parseBody(output.body, context);
1599
+ let contents = {};
1600
+ contents = deserializeAws_json1_0GetVehicleResponse(data, context);
1601
+ const response = {
1602
+ $metadata: deserializeMetadata(output),
1603
+ ...contents,
1604
+ };
1605
+ return Promise.resolve(response);
1606
+ };
1607
+ exports.deserializeAws_json1_0GetVehicleCommand = deserializeAws_json1_0GetVehicleCommand;
1608
+ const deserializeAws_json1_0GetVehicleCommandError = async (output, context) => {
1609
+ const parsedOutput = {
1610
+ ...output,
1611
+ body: await parseBody(output.body, context),
1612
+ };
1613
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1614
+ switch (errorCode) {
1615
+ case "AccessDeniedException":
1616
+ case "com.amazonaws.iotfleetwise#AccessDeniedException":
1617
+ throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
1618
+ case "InternalServerException":
1619
+ case "com.amazonaws.iotfleetwise#InternalServerException":
1620
+ throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
1621
+ case "ResourceNotFoundException":
1622
+ case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
1623
+ throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
1624
+ case "ThrottlingException":
1625
+ case "com.amazonaws.iotfleetwise#ThrottlingException":
1626
+ throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
1627
+ case "ValidationException":
1628
+ case "com.amazonaws.iotfleetwise#ValidationException":
1629
+ throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
1630
+ default:
1631
+ const parsedBody = parsedOutput.body;
1632
+ (0, smithy_client_1.throwDefaultError)({
1633
+ output,
1634
+ parsedBody,
1635
+ exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
1636
+ errorCode,
1637
+ });
1638
+ }
1639
+ };
1640
+ const deserializeAws_json1_0GetVehicleStatusCommand = async (output, context) => {
1641
+ if (output.statusCode >= 300) {
1642
+ return deserializeAws_json1_0GetVehicleStatusCommandError(output, context);
1643
+ }
1644
+ const data = await parseBody(output.body, context);
1645
+ let contents = {};
1646
+ contents = deserializeAws_json1_0GetVehicleStatusResponse(data, context);
1647
+ const response = {
1648
+ $metadata: deserializeMetadata(output),
1649
+ ...contents,
1650
+ };
1651
+ return Promise.resolve(response);
1652
+ };
1653
+ exports.deserializeAws_json1_0GetVehicleStatusCommand = deserializeAws_json1_0GetVehicleStatusCommand;
1654
+ const deserializeAws_json1_0GetVehicleStatusCommandError = async (output, context) => {
1655
+ const parsedOutput = {
1656
+ ...output,
1657
+ body: await parseBody(output.body, context),
1658
+ };
1659
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1660
+ switch (errorCode) {
1661
+ case "AccessDeniedException":
1662
+ case "com.amazonaws.iotfleetwise#AccessDeniedException":
1663
+ throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
1664
+ case "InternalServerException":
1665
+ case "com.amazonaws.iotfleetwise#InternalServerException":
1666
+ throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
1667
+ case "ResourceNotFoundException":
1668
+ case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
1669
+ throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
1670
+ case "ThrottlingException":
1671
+ case "com.amazonaws.iotfleetwise#ThrottlingException":
1672
+ throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
1673
+ case "ValidationException":
1674
+ case "com.amazonaws.iotfleetwise#ValidationException":
1675
+ throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
1676
+ default:
1677
+ const parsedBody = parsedOutput.body;
1678
+ (0, smithy_client_1.throwDefaultError)({
1679
+ output,
1680
+ parsedBody,
1681
+ exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
1682
+ errorCode,
1683
+ });
1684
+ }
1685
+ };
1686
+ const deserializeAws_json1_0ImportDecoderManifestCommand = async (output, context) => {
1687
+ if (output.statusCode >= 300) {
1688
+ return deserializeAws_json1_0ImportDecoderManifestCommandError(output, context);
1689
+ }
1690
+ const data = await parseBody(output.body, context);
1691
+ let contents = {};
1692
+ contents = deserializeAws_json1_0ImportDecoderManifestResponse(data, context);
1693
+ const response = {
1694
+ $metadata: deserializeMetadata(output),
1695
+ ...contents,
1696
+ };
1697
+ return Promise.resolve(response);
1698
+ };
1699
+ exports.deserializeAws_json1_0ImportDecoderManifestCommand = deserializeAws_json1_0ImportDecoderManifestCommand;
1700
+ const deserializeAws_json1_0ImportDecoderManifestCommandError = async (output, context) => {
1701
+ const parsedOutput = {
1702
+ ...output,
1703
+ body: await parseBody(output.body, context),
1704
+ };
1705
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1706
+ switch (errorCode) {
1707
+ case "AccessDeniedException":
1708
+ case "com.amazonaws.iotfleetwise#AccessDeniedException":
1709
+ throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
1710
+ case "ConflictException":
1711
+ case "com.amazonaws.iotfleetwise#ConflictException":
1712
+ throw await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context);
1713
+ case "DecoderManifestValidationException":
1714
+ case "com.amazonaws.iotfleetwise#DecoderManifestValidationException":
1715
+ throw await deserializeAws_json1_0DecoderManifestValidationExceptionResponse(parsedOutput, context);
1716
+ case "InternalServerException":
1717
+ case "com.amazonaws.iotfleetwise#InternalServerException":
1718
+ throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
1719
+ case "InvalidSignalsException":
1720
+ case "com.amazonaws.iotfleetwise#InvalidSignalsException":
1721
+ throw await deserializeAws_json1_0InvalidSignalsExceptionResponse(parsedOutput, context);
1722
+ case "ResourceNotFoundException":
1723
+ case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
1724
+ throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
1725
+ case "ThrottlingException":
1726
+ case "com.amazonaws.iotfleetwise#ThrottlingException":
1727
+ throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
1728
+ case "ValidationException":
1729
+ case "com.amazonaws.iotfleetwise#ValidationException":
1730
+ throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
1731
+ default:
1732
+ const parsedBody = parsedOutput.body;
1733
+ (0, smithy_client_1.throwDefaultError)({
1734
+ output,
1735
+ parsedBody,
1736
+ exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
1737
+ errorCode,
1738
+ });
1739
+ }
1740
+ };
1741
+ const deserializeAws_json1_0ImportSignalCatalogCommand = async (output, context) => {
1742
+ if (output.statusCode >= 300) {
1743
+ return deserializeAws_json1_0ImportSignalCatalogCommandError(output, context);
1744
+ }
1745
+ const data = await parseBody(output.body, context);
1746
+ let contents = {};
1747
+ contents = deserializeAws_json1_0ImportSignalCatalogResponse(data, context);
1748
+ const response = {
1749
+ $metadata: deserializeMetadata(output),
1750
+ ...contents,
1751
+ };
1752
+ return Promise.resolve(response);
1753
+ };
1754
+ exports.deserializeAws_json1_0ImportSignalCatalogCommand = deserializeAws_json1_0ImportSignalCatalogCommand;
1755
+ const deserializeAws_json1_0ImportSignalCatalogCommandError = async (output, context) => {
1756
+ const parsedOutput = {
1757
+ ...output,
1758
+ body: await parseBody(output.body, context),
1759
+ };
1760
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1761
+ switch (errorCode) {
1762
+ case "AccessDeniedException":
1763
+ case "com.amazonaws.iotfleetwise#AccessDeniedException":
1764
+ throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
1765
+ case "ConflictException":
1766
+ case "com.amazonaws.iotfleetwise#ConflictException":
1767
+ throw await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context);
1768
+ case "InternalServerException":
1769
+ case "com.amazonaws.iotfleetwise#InternalServerException":
1770
+ throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
1771
+ case "InvalidSignalsException":
1772
+ case "com.amazonaws.iotfleetwise#InvalidSignalsException":
1773
+ throw await deserializeAws_json1_0InvalidSignalsExceptionResponse(parsedOutput, context);
1774
+ case "LimitExceededException":
1775
+ case "com.amazonaws.iotfleetwise#LimitExceededException":
1776
+ throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context);
1777
+ case "ResourceNotFoundException":
1778
+ case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
1779
+ throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
1780
+ case "ThrottlingException":
1781
+ case "com.amazonaws.iotfleetwise#ThrottlingException":
1782
+ throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
1783
+ case "ValidationException":
1784
+ case "com.amazonaws.iotfleetwise#ValidationException":
1785
+ throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
1786
+ default:
1787
+ const parsedBody = parsedOutput.body;
1788
+ (0, smithy_client_1.throwDefaultError)({
1789
+ output,
1790
+ parsedBody,
1791
+ exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
1792
+ errorCode,
1793
+ });
1794
+ }
1795
+ };
1796
+ const deserializeAws_json1_0ListCampaignsCommand = async (output, context) => {
1797
+ if (output.statusCode >= 300) {
1798
+ return deserializeAws_json1_0ListCampaignsCommandError(output, context);
1799
+ }
1800
+ const data = await parseBody(output.body, context);
1801
+ let contents = {};
1802
+ contents = deserializeAws_json1_0ListCampaignsResponse(data, context);
1803
+ const response = {
1804
+ $metadata: deserializeMetadata(output),
1805
+ ...contents,
1806
+ };
1807
+ return Promise.resolve(response);
1808
+ };
1809
+ exports.deserializeAws_json1_0ListCampaignsCommand = deserializeAws_json1_0ListCampaignsCommand;
1810
+ const deserializeAws_json1_0ListCampaignsCommandError = async (output, context) => {
1811
+ const parsedOutput = {
1812
+ ...output,
1813
+ body: await parseBody(output.body, context),
1814
+ };
1815
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1816
+ switch (errorCode) {
1817
+ case "AccessDeniedException":
1818
+ case "com.amazonaws.iotfleetwise#AccessDeniedException":
1819
+ throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
1820
+ case "InternalServerException":
1821
+ case "com.amazonaws.iotfleetwise#InternalServerException":
1822
+ throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
1823
+ case "ThrottlingException":
1824
+ case "com.amazonaws.iotfleetwise#ThrottlingException":
1825
+ throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
1826
+ case "ValidationException":
1827
+ case "com.amazonaws.iotfleetwise#ValidationException":
1828
+ throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
1829
+ default:
1830
+ const parsedBody = parsedOutput.body;
1831
+ (0, smithy_client_1.throwDefaultError)({
1832
+ output,
1833
+ parsedBody,
1834
+ exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
1835
+ errorCode,
1836
+ });
1837
+ }
1838
+ };
1839
+ const deserializeAws_json1_0ListDecoderManifestNetworkInterfacesCommand = async (output, context) => {
1840
+ if (output.statusCode >= 300) {
1841
+ return deserializeAws_json1_0ListDecoderManifestNetworkInterfacesCommandError(output, context);
1842
+ }
1843
+ const data = await parseBody(output.body, context);
1844
+ let contents = {};
1845
+ contents = deserializeAws_json1_0ListDecoderManifestNetworkInterfacesResponse(data, context);
1846
+ const response = {
1847
+ $metadata: deserializeMetadata(output),
1848
+ ...contents,
1849
+ };
1850
+ return Promise.resolve(response);
1851
+ };
1852
+ exports.deserializeAws_json1_0ListDecoderManifestNetworkInterfacesCommand = deserializeAws_json1_0ListDecoderManifestNetworkInterfacesCommand;
1853
+ const deserializeAws_json1_0ListDecoderManifestNetworkInterfacesCommandError = async (output, context) => {
1854
+ const parsedOutput = {
1855
+ ...output,
1856
+ body: await parseBody(output.body, context),
1857
+ };
1858
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1859
+ switch (errorCode) {
1860
+ case "AccessDeniedException":
1861
+ case "com.amazonaws.iotfleetwise#AccessDeniedException":
1862
+ throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
1863
+ case "InternalServerException":
1864
+ case "com.amazonaws.iotfleetwise#InternalServerException":
1865
+ throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
1866
+ case "ResourceNotFoundException":
1867
+ case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
1868
+ throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
1869
+ case "ThrottlingException":
1870
+ case "com.amazonaws.iotfleetwise#ThrottlingException":
1871
+ throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
1872
+ case "ValidationException":
1873
+ case "com.amazonaws.iotfleetwise#ValidationException":
1874
+ throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
1875
+ default:
1876
+ const parsedBody = parsedOutput.body;
1877
+ (0, smithy_client_1.throwDefaultError)({
1878
+ output,
1879
+ parsedBody,
1880
+ exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
1881
+ errorCode,
1882
+ });
1883
+ }
1884
+ };
1885
+ const deserializeAws_json1_0ListDecoderManifestsCommand = async (output, context) => {
1886
+ if (output.statusCode >= 300) {
1887
+ return deserializeAws_json1_0ListDecoderManifestsCommandError(output, context);
1888
+ }
1889
+ const data = await parseBody(output.body, context);
1890
+ let contents = {};
1891
+ contents = deserializeAws_json1_0ListDecoderManifestsResponse(data, context);
1892
+ const response = {
1893
+ $metadata: deserializeMetadata(output),
1894
+ ...contents,
1895
+ };
1896
+ return Promise.resolve(response);
1897
+ };
1898
+ exports.deserializeAws_json1_0ListDecoderManifestsCommand = deserializeAws_json1_0ListDecoderManifestsCommand;
1899
+ const deserializeAws_json1_0ListDecoderManifestsCommandError = async (output, context) => {
1900
+ const parsedOutput = {
1901
+ ...output,
1902
+ body: await parseBody(output.body, context),
1903
+ };
1904
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1905
+ switch (errorCode) {
1906
+ case "AccessDeniedException":
1907
+ case "com.amazonaws.iotfleetwise#AccessDeniedException":
1908
+ throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
1909
+ case "InternalServerException":
1910
+ case "com.amazonaws.iotfleetwise#InternalServerException":
1911
+ throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
1912
+ case "ThrottlingException":
1913
+ case "com.amazonaws.iotfleetwise#ThrottlingException":
1914
+ throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
1915
+ case "ValidationException":
1916
+ case "com.amazonaws.iotfleetwise#ValidationException":
1917
+ throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
1918
+ default:
1919
+ const parsedBody = parsedOutput.body;
1920
+ (0, smithy_client_1.throwDefaultError)({
1921
+ output,
1922
+ parsedBody,
1923
+ exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
1924
+ errorCode,
1925
+ });
1926
+ }
1927
+ };
1928
+ const deserializeAws_json1_0ListDecoderManifestSignalsCommand = async (output, context) => {
1929
+ if (output.statusCode >= 300) {
1930
+ return deserializeAws_json1_0ListDecoderManifestSignalsCommandError(output, context);
1931
+ }
1932
+ const data = await parseBody(output.body, context);
1933
+ let contents = {};
1934
+ contents = deserializeAws_json1_0ListDecoderManifestSignalsResponse(data, context);
1935
+ const response = {
1936
+ $metadata: deserializeMetadata(output),
1937
+ ...contents,
1938
+ };
1939
+ return Promise.resolve(response);
1940
+ };
1941
+ exports.deserializeAws_json1_0ListDecoderManifestSignalsCommand = deserializeAws_json1_0ListDecoderManifestSignalsCommand;
1942
+ const deserializeAws_json1_0ListDecoderManifestSignalsCommandError = async (output, context) => {
1943
+ const parsedOutput = {
1944
+ ...output,
1945
+ body: await parseBody(output.body, context),
1946
+ };
1947
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1948
+ switch (errorCode) {
1949
+ case "AccessDeniedException":
1950
+ case "com.amazonaws.iotfleetwise#AccessDeniedException":
1951
+ throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
1952
+ case "InternalServerException":
1953
+ case "com.amazonaws.iotfleetwise#InternalServerException":
1954
+ throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
1955
+ case "ResourceNotFoundException":
1956
+ case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
1957
+ throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
1958
+ case "ThrottlingException":
1959
+ case "com.amazonaws.iotfleetwise#ThrottlingException":
1960
+ throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
1961
+ case "ValidationException":
1962
+ case "com.amazonaws.iotfleetwise#ValidationException":
1963
+ throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
1964
+ default:
1965
+ const parsedBody = parsedOutput.body;
1966
+ (0, smithy_client_1.throwDefaultError)({
1967
+ output,
1968
+ parsedBody,
1969
+ exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
1970
+ errorCode,
1971
+ });
1972
+ }
1973
+ };
1974
+ const deserializeAws_json1_0ListFleetsCommand = async (output, context) => {
1975
+ if (output.statusCode >= 300) {
1976
+ return deserializeAws_json1_0ListFleetsCommandError(output, context);
1977
+ }
1978
+ const data = await parseBody(output.body, context);
1979
+ let contents = {};
1980
+ contents = deserializeAws_json1_0ListFleetsResponse(data, context);
1981
+ const response = {
1982
+ $metadata: deserializeMetadata(output),
1983
+ ...contents,
1984
+ };
1985
+ return Promise.resolve(response);
1986
+ };
1987
+ exports.deserializeAws_json1_0ListFleetsCommand = deserializeAws_json1_0ListFleetsCommand;
1988
+ const deserializeAws_json1_0ListFleetsCommandError = async (output, context) => {
1989
+ const parsedOutput = {
1990
+ ...output,
1991
+ body: await parseBody(output.body, context),
1992
+ };
1993
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1994
+ switch (errorCode) {
1995
+ case "AccessDeniedException":
1996
+ case "com.amazonaws.iotfleetwise#AccessDeniedException":
1997
+ throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
1998
+ case "InternalServerException":
1999
+ case "com.amazonaws.iotfleetwise#InternalServerException":
2000
+ throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
2001
+ case "ResourceNotFoundException":
2002
+ case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
2003
+ throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
2004
+ case "ThrottlingException":
2005
+ case "com.amazonaws.iotfleetwise#ThrottlingException":
2006
+ throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
2007
+ case "ValidationException":
2008
+ case "com.amazonaws.iotfleetwise#ValidationException":
2009
+ throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
2010
+ default:
2011
+ const parsedBody = parsedOutput.body;
2012
+ (0, smithy_client_1.throwDefaultError)({
2013
+ output,
2014
+ parsedBody,
2015
+ exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
2016
+ errorCode,
2017
+ });
2018
+ }
2019
+ };
2020
+ const deserializeAws_json1_0ListFleetsForVehicleCommand = async (output, context) => {
2021
+ if (output.statusCode >= 300) {
2022
+ return deserializeAws_json1_0ListFleetsForVehicleCommandError(output, context);
2023
+ }
2024
+ const data = await parseBody(output.body, context);
2025
+ let contents = {};
2026
+ contents = deserializeAws_json1_0ListFleetsForVehicleResponse(data, context);
2027
+ const response = {
2028
+ $metadata: deserializeMetadata(output),
2029
+ ...contents,
2030
+ };
2031
+ return Promise.resolve(response);
2032
+ };
2033
+ exports.deserializeAws_json1_0ListFleetsForVehicleCommand = deserializeAws_json1_0ListFleetsForVehicleCommand;
2034
+ const deserializeAws_json1_0ListFleetsForVehicleCommandError = async (output, context) => {
2035
+ const parsedOutput = {
2036
+ ...output,
2037
+ body: await parseBody(output.body, context),
2038
+ };
2039
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2040
+ switch (errorCode) {
2041
+ case "AccessDeniedException":
2042
+ case "com.amazonaws.iotfleetwise#AccessDeniedException":
2043
+ throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
2044
+ case "InternalServerException":
2045
+ case "com.amazonaws.iotfleetwise#InternalServerException":
2046
+ throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
2047
+ case "ResourceNotFoundException":
2048
+ case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
2049
+ throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
2050
+ case "ThrottlingException":
2051
+ case "com.amazonaws.iotfleetwise#ThrottlingException":
2052
+ throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
2053
+ case "ValidationException":
2054
+ case "com.amazonaws.iotfleetwise#ValidationException":
2055
+ throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
2056
+ default:
2057
+ const parsedBody = parsedOutput.body;
2058
+ (0, smithy_client_1.throwDefaultError)({
2059
+ output,
2060
+ parsedBody,
2061
+ exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
2062
+ errorCode,
2063
+ });
2064
+ }
2065
+ };
2066
+ const deserializeAws_json1_0ListModelManifestNodesCommand = async (output, context) => {
2067
+ if (output.statusCode >= 300) {
2068
+ return deserializeAws_json1_0ListModelManifestNodesCommandError(output, context);
2069
+ }
2070
+ const data = await parseBody(output.body, context);
2071
+ let contents = {};
2072
+ contents = deserializeAws_json1_0ListModelManifestNodesResponse(data, context);
2073
+ const response = {
2074
+ $metadata: deserializeMetadata(output),
2075
+ ...contents,
2076
+ };
2077
+ return Promise.resolve(response);
2078
+ };
2079
+ exports.deserializeAws_json1_0ListModelManifestNodesCommand = deserializeAws_json1_0ListModelManifestNodesCommand;
2080
+ const deserializeAws_json1_0ListModelManifestNodesCommandError = async (output, context) => {
2081
+ const parsedOutput = {
2082
+ ...output,
2083
+ body: await parseBody(output.body, context),
2084
+ };
2085
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2086
+ switch (errorCode) {
2087
+ case "AccessDeniedException":
2088
+ case "com.amazonaws.iotfleetwise#AccessDeniedException":
2089
+ throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
2090
+ case "InternalServerException":
2091
+ case "com.amazonaws.iotfleetwise#InternalServerException":
2092
+ throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
2093
+ case "LimitExceededException":
2094
+ case "com.amazonaws.iotfleetwise#LimitExceededException":
2095
+ throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context);
2096
+ case "ResourceNotFoundException":
2097
+ case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
2098
+ throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
2099
+ case "ThrottlingException":
2100
+ case "com.amazonaws.iotfleetwise#ThrottlingException":
2101
+ throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
2102
+ case "ValidationException":
2103
+ case "com.amazonaws.iotfleetwise#ValidationException":
2104
+ throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
2105
+ default:
2106
+ const parsedBody = parsedOutput.body;
2107
+ (0, smithy_client_1.throwDefaultError)({
2108
+ output,
2109
+ parsedBody,
2110
+ exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
2111
+ errorCode,
2112
+ });
2113
+ }
2114
+ };
2115
+ const deserializeAws_json1_0ListModelManifestsCommand = async (output, context) => {
2116
+ if (output.statusCode >= 300) {
2117
+ return deserializeAws_json1_0ListModelManifestsCommandError(output, context);
2118
+ }
2119
+ const data = await parseBody(output.body, context);
2120
+ let contents = {};
2121
+ contents = deserializeAws_json1_0ListModelManifestsResponse(data, context);
2122
+ const response = {
2123
+ $metadata: deserializeMetadata(output),
2124
+ ...contents,
2125
+ };
2126
+ return Promise.resolve(response);
2127
+ };
2128
+ exports.deserializeAws_json1_0ListModelManifestsCommand = deserializeAws_json1_0ListModelManifestsCommand;
2129
+ const deserializeAws_json1_0ListModelManifestsCommandError = async (output, context) => {
2130
+ const parsedOutput = {
2131
+ ...output,
2132
+ body: await parseBody(output.body, context),
2133
+ };
2134
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2135
+ switch (errorCode) {
2136
+ case "AccessDeniedException":
2137
+ case "com.amazonaws.iotfleetwise#AccessDeniedException":
2138
+ throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
2139
+ case "InternalServerException":
2140
+ case "com.amazonaws.iotfleetwise#InternalServerException":
2141
+ throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
2142
+ case "ThrottlingException":
2143
+ case "com.amazonaws.iotfleetwise#ThrottlingException":
2144
+ throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
2145
+ case "ValidationException":
2146
+ case "com.amazonaws.iotfleetwise#ValidationException":
2147
+ throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
2148
+ default:
2149
+ const parsedBody = parsedOutput.body;
2150
+ (0, smithy_client_1.throwDefaultError)({
2151
+ output,
2152
+ parsedBody,
2153
+ exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
2154
+ errorCode,
2155
+ });
2156
+ }
2157
+ };
2158
+ const deserializeAws_json1_0ListSignalCatalogNodesCommand = async (output, context) => {
2159
+ if (output.statusCode >= 300) {
2160
+ return deserializeAws_json1_0ListSignalCatalogNodesCommandError(output, context);
2161
+ }
2162
+ const data = await parseBody(output.body, context);
2163
+ let contents = {};
2164
+ contents = deserializeAws_json1_0ListSignalCatalogNodesResponse(data, context);
2165
+ const response = {
2166
+ $metadata: deserializeMetadata(output),
2167
+ ...contents,
2168
+ };
2169
+ return Promise.resolve(response);
2170
+ };
2171
+ exports.deserializeAws_json1_0ListSignalCatalogNodesCommand = deserializeAws_json1_0ListSignalCatalogNodesCommand;
2172
+ const deserializeAws_json1_0ListSignalCatalogNodesCommandError = async (output, context) => {
2173
+ const parsedOutput = {
2174
+ ...output,
2175
+ body: await parseBody(output.body, context),
2176
+ };
2177
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2178
+ switch (errorCode) {
2179
+ case "AccessDeniedException":
2180
+ case "com.amazonaws.iotfleetwise#AccessDeniedException":
2181
+ throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
2182
+ case "InternalServerException":
2183
+ case "com.amazonaws.iotfleetwise#InternalServerException":
2184
+ throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
2185
+ case "LimitExceededException":
2186
+ case "com.amazonaws.iotfleetwise#LimitExceededException":
2187
+ throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context);
2188
+ case "ResourceNotFoundException":
2189
+ case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
2190
+ throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
2191
+ case "ThrottlingException":
2192
+ case "com.amazonaws.iotfleetwise#ThrottlingException":
2193
+ throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
2194
+ case "ValidationException":
2195
+ case "com.amazonaws.iotfleetwise#ValidationException":
2196
+ throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
2197
+ default:
2198
+ const parsedBody = parsedOutput.body;
2199
+ (0, smithy_client_1.throwDefaultError)({
2200
+ output,
2201
+ parsedBody,
2202
+ exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
2203
+ errorCode,
2204
+ });
2205
+ }
2206
+ };
2207
+ const deserializeAws_json1_0ListSignalCatalogsCommand = async (output, context) => {
2208
+ if (output.statusCode >= 300) {
2209
+ return deserializeAws_json1_0ListSignalCatalogsCommandError(output, context);
2210
+ }
2211
+ const data = await parseBody(output.body, context);
2212
+ let contents = {};
2213
+ contents = deserializeAws_json1_0ListSignalCatalogsResponse(data, context);
2214
+ const response = {
2215
+ $metadata: deserializeMetadata(output),
2216
+ ...contents,
2217
+ };
2218
+ return Promise.resolve(response);
2219
+ };
2220
+ exports.deserializeAws_json1_0ListSignalCatalogsCommand = deserializeAws_json1_0ListSignalCatalogsCommand;
2221
+ const deserializeAws_json1_0ListSignalCatalogsCommandError = async (output, context) => {
2222
+ const parsedOutput = {
2223
+ ...output,
2224
+ body: await parseBody(output.body, context),
2225
+ };
2226
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2227
+ switch (errorCode) {
2228
+ case "AccessDeniedException":
2229
+ case "com.amazonaws.iotfleetwise#AccessDeniedException":
2230
+ throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
2231
+ case "InternalServerException":
2232
+ case "com.amazonaws.iotfleetwise#InternalServerException":
2233
+ throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
2234
+ case "ThrottlingException":
2235
+ case "com.amazonaws.iotfleetwise#ThrottlingException":
2236
+ throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
2237
+ case "ValidationException":
2238
+ case "com.amazonaws.iotfleetwise#ValidationException":
2239
+ throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
2240
+ default:
2241
+ const parsedBody = parsedOutput.body;
2242
+ (0, smithy_client_1.throwDefaultError)({
2243
+ output,
2244
+ parsedBody,
2245
+ exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
2246
+ errorCode,
2247
+ });
2248
+ }
2249
+ };
2250
+ const deserializeAws_json1_0ListTagsForResourceCommand = async (output, context) => {
2251
+ if (output.statusCode >= 300) {
2252
+ return deserializeAws_json1_0ListTagsForResourceCommandError(output, context);
2253
+ }
2254
+ const data = await parseBody(output.body, context);
2255
+ let contents = {};
2256
+ contents = deserializeAws_json1_0ListTagsForResourceResponse(data, context);
2257
+ const response = {
2258
+ $metadata: deserializeMetadata(output),
2259
+ ...contents,
2260
+ };
2261
+ return Promise.resolve(response);
2262
+ };
2263
+ exports.deserializeAws_json1_0ListTagsForResourceCommand = deserializeAws_json1_0ListTagsForResourceCommand;
2264
+ const deserializeAws_json1_0ListTagsForResourceCommandError = async (output, context) => {
2265
+ const parsedOutput = {
2266
+ ...output,
2267
+ body: await parseBody(output.body, context),
2268
+ };
2269
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2270
+ switch (errorCode) {
2271
+ case "AccessDeniedException":
2272
+ case "com.amazonaws.iotfleetwise#AccessDeniedException":
2273
+ throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
2274
+ case "InternalServerException":
2275
+ case "com.amazonaws.iotfleetwise#InternalServerException":
2276
+ throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
2277
+ case "ResourceNotFoundException":
2278
+ case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
2279
+ throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
2280
+ case "ThrottlingException":
2281
+ case "com.amazonaws.iotfleetwise#ThrottlingException":
2282
+ throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
2283
+ case "ValidationException":
2284
+ case "com.amazonaws.iotfleetwise#ValidationException":
2285
+ throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
2286
+ default:
2287
+ const parsedBody = parsedOutput.body;
2288
+ (0, smithy_client_1.throwDefaultError)({
2289
+ output,
2290
+ parsedBody,
2291
+ exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
2292
+ errorCode,
2293
+ });
2294
+ }
2295
+ };
2296
+ const deserializeAws_json1_0ListVehiclesCommand = async (output, context) => {
2297
+ if (output.statusCode >= 300) {
2298
+ return deserializeAws_json1_0ListVehiclesCommandError(output, context);
2299
+ }
2300
+ const data = await parseBody(output.body, context);
2301
+ let contents = {};
2302
+ contents = deserializeAws_json1_0ListVehiclesResponse(data, context);
2303
+ const response = {
2304
+ $metadata: deserializeMetadata(output),
2305
+ ...contents,
2306
+ };
2307
+ return Promise.resolve(response);
2308
+ };
2309
+ exports.deserializeAws_json1_0ListVehiclesCommand = deserializeAws_json1_0ListVehiclesCommand;
2310
+ const deserializeAws_json1_0ListVehiclesCommandError = async (output, context) => {
2311
+ const parsedOutput = {
2312
+ ...output,
2313
+ body: await parseBody(output.body, context),
2314
+ };
2315
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2316
+ switch (errorCode) {
2317
+ case "AccessDeniedException":
2318
+ case "com.amazonaws.iotfleetwise#AccessDeniedException":
2319
+ throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
2320
+ case "InternalServerException":
2321
+ case "com.amazonaws.iotfleetwise#InternalServerException":
2322
+ throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
2323
+ case "ThrottlingException":
2324
+ case "com.amazonaws.iotfleetwise#ThrottlingException":
2325
+ throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
2326
+ case "ValidationException":
2327
+ case "com.amazonaws.iotfleetwise#ValidationException":
2328
+ throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
2329
+ default:
2330
+ const parsedBody = parsedOutput.body;
2331
+ (0, smithy_client_1.throwDefaultError)({
2332
+ output,
2333
+ parsedBody,
2334
+ exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
2335
+ errorCode,
2336
+ });
2337
+ }
2338
+ };
2339
+ const deserializeAws_json1_0ListVehiclesInFleetCommand = async (output, context) => {
2340
+ if (output.statusCode >= 300) {
2341
+ return deserializeAws_json1_0ListVehiclesInFleetCommandError(output, context);
2342
+ }
2343
+ const data = await parseBody(output.body, context);
2344
+ let contents = {};
2345
+ contents = deserializeAws_json1_0ListVehiclesInFleetResponse(data, context);
2346
+ const response = {
2347
+ $metadata: deserializeMetadata(output),
2348
+ ...contents,
2349
+ };
2350
+ return Promise.resolve(response);
2351
+ };
2352
+ exports.deserializeAws_json1_0ListVehiclesInFleetCommand = deserializeAws_json1_0ListVehiclesInFleetCommand;
2353
+ const deserializeAws_json1_0ListVehiclesInFleetCommandError = async (output, context) => {
2354
+ const parsedOutput = {
2355
+ ...output,
2356
+ body: await parseBody(output.body, context),
2357
+ };
2358
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2359
+ switch (errorCode) {
2360
+ case "AccessDeniedException":
2361
+ case "com.amazonaws.iotfleetwise#AccessDeniedException":
2362
+ throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
2363
+ case "InternalServerException":
2364
+ case "com.amazonaws.iotfleetwise#InternalServerException":
2365
+ throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
2366
+ case "ResourceNotFoundException":
2367
+ case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
2368
+ throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
2369
+ case "ThrottlingException":
2370
+ case "com.amazonaws.iotfleetwise#ThrottlingException":
2371
+ throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
2372
+ case "ValidationException":
2373
+ case "com.amazonaws.iotfleetwise#ValidationException":
2374
+ throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
2375
+ default:
2376
+ const parsedBody = parsedOutput.body;
2377
+ (0, smithy_client_1.throwDefaultError)({
2378
+ output,
2379
+ parsedBody,
2380
+ exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
2381
+ errorCode,
2382
+ });
2383
+ }
2384
+ };
2385
+ const deserializeAws_json1_0PutLoggingOptionsCommand = async (output, context) => {
2386
+ if (output.statusCode >= 300) {
2387
+ return deserializeAws_json1_0PutLoggingOptionsCommandError(output, context);
2388
+ }
2389
+ const data = await parseBody(output.body, context);
2390
+ let contents = {};
2391
+ contents = deserializeAws_json1_0PutLoggingOptionsResponse(data, context);
2392
+ const response = {
2393
+ $metadata: deserializeMetadata(output),
2394
+ ...contents,
2395
+ };
2396
+ return Promise.resolve(response);
2397
+ };
2398
+ exports.deserializeAws_json1_0PutLoggingOptionsCommand = deserializeAws_json1_0PutLoggingOptionsCommand;
2399
+ const deserializeAws_json1_0PutLoggingOptionsCommandError = async (output, context) => {
2400
+ const parsedOutput = {
2401
+ ...output,
2402
+ body: await parseBody(output.body, context),
2403
+ };
2404
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2405
+ switch (errorCode) {
2406
+ case "AccessDeniedException":
2407
+ case "com.amazonaws.iotfleetwise#AccessDeniedException":
2408
+ throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
2409
+ case "ConflictException":
2410
+ case "com.amazonaws.iotfleetwise#ConflictException":
2411
+ throw await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context);
2412
+ case "InternalServerException":
2413
+ case "com.amazonaws.iotfleetwise#InternalServerException":
2414
+ throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
2415
+ case "ResourceNotFoundException":
2416
+ case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
2417
+ throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
2418
+ case "ThrottlingException":
2419
+ case "com.amazonaws.iotfleetwise#ThrottlingException":
2420
+ throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
2421
+ case "ValidationException":
2422
+ case "com.amazonaws.iotfleetwise#ValidationException":
2423
+ throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
2424
+ default:
2425
+ const parsedBody = parsedOutput.body;
2426
+ (0, smithy_client_1.throwDefaultError)({
2427
+ output,
2428
+ parsedBody,
2429
+ exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
2430
+ errorCode,
2431
+ });
2432
+ }
2433
+ };
2434
+ const deserializeAws_json1_0RegisterAccountCommand = async (output, context) => {
2435
+ if (output.statusCode >= 300) {
2436
+ return deserializeAws_json1_0RegisterAccountCommandError(output, context);
2437
+ }
2438
+ const data = await parseBody(output.body, context);
2439
+ let contents = {};
2440
+ contents = deserializeAws_json1_0RegisterAccountResponse(data, context);
2441
+ const response = {
2442
+ $metadata: deserializeMetadata(output),
2443
+ ...contents,
2444
+ };
2445
+ return Promise.resolve(response);
2446
+ };
2447
+ exports.deserializeAws_json1_0RegisterAccountCommand = deserializeAws_json1_0RegisterAccountCommand;
2448
+ const deserializeAws_json1_0RegisterAccountCommandError = async (output, context) => {
2449
+ const parsedOutput = {
2450
+ ...output,
2451
+ body: await parseBody(output.body, context),
2452
+ };
2453
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2454
+ switch (errorCode) {
2455
+ case "AccessDeniedException":
2456
+ case "com.amazonaws.iotfleetwise#AccessDeniedException":
2457
+ throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
2458
+ case "ConflictException":
2459
+ case "com.amazonaws.iotfleetwise#ConflictException":
2460
+ throw await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context);
2461
+ case "InternalServerException":
2462
+ case "com.amazonaws.iotfleetwise#InternalServerException":
2463
+ throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
2464
+ case "ResourceNotFoundException":
2465
+ case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
2466
+ throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
2467
+ case "ThrottlingException":
2468
+ case "com.amazonaws.iotfleetwise#ThrottlingException":
2469
+ throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
2470
+ case "ValidationException":
2471
+ case "com.amazonaws.iotfleetwise#ValidationException":
2472
+ throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
2473
+ default:
2474
+ const parsedBody = parsedOutput.body;
2475
+ (0, smithy_client_1.throwDefaultError)({
2476
+ output,
2477
+ parsedBody,
2478
+ exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
2479
+ errorCode,
2480
+ });
2481
+ }
2482
+ };
2483
+ const deserializeAws_json1_0TagResourceCommand = async (output, context) => {
2484
+ if (output.statusCode >= 300) {
2485
+ return deserializeAws_json1_0TagResourceCommandError(output, context);
2486
+ }
2487
+ const data = await parseBody(output.body, context);
2488
+ let contents = {};
2489
+ contents = deserializeAws_json1_0TagResourceResponse(data, context);
2490
+ const response = {
2491
+ $metadata: deserializeMetadata(output),
2492
+ ...contents,
2493
+ };
2494
+ return Promise.resolve(response);
2495
+ };
2496
+ exports.deserializeAws_json1_0TagResourceCommand = deserializeAws_json1_0TagResourceCommand;
2497
+ const deserializeAws_json1_0TagResourceCommandError = async (output, context) => {
2498
+ const parsedOutput = {
2499
+ ...output,
2500
+ body: await parseBody(output.body, context),
2501
+ };
2502
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2503
+ switch (errorCode) {
2504
+ case "AccessDeniedException":
2505
+ case "com.amazonaws.iotfleetwise#AccessDeniedException":
2506
+ throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
2507
+ case "InternalServerException":
2508
+ case "com.amazonaws.iotfleetwise#InternalServerException":
2509
+ throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
2510
+ case "ResourceNotFoundException":
2511
+ case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
2512
+ throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
2513
+ case "ThrottlingException":
2514
+ case "com.amazonaws.iotfleetwise#ThrottlingException":
2515
+ throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
2516
+ case "ValidationException":
2517
+ case "com.amazonaws.iotfleetwise#ValidationException":
2518
+ throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
2519
+ default:
2520
+ const parsedBody = parsedOutput.body;
2521
+ (0, smithy_client_1.throwDefaultError)({
2522
+ output,
2523
+ parsedBody,
2524
+ exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
2525
+ errorCode,
2526
+ });
2527
+ }
2528
+ };
2529
+ const deserializeAws_json1_0UntagResourceCommand = async (output, context) => {
2530
+ if (output.statusCode >= 300) {
2531
+ return deserializeAws_json1_0UntagResourceCommandError(output, context);
2532
+ }
2533
+ const data = await parseBody(output.body, context);
2534
+ let contents = {};
2535
+ contents = deserializeAws_json1_0UntagResourceResponse(data, context);
2536
+ const response = {
2537
+ $metadata: deserializeMetadata(output),
2538
+ ...contents,
2539
+ };
2540
+ return Promise.resolve(response);
2541
+ };
2542
+ exports.deserializeAws_json1_0UntagResourceCommand = deserializeAws_json1_0UntagResourceCommand;
2543
+ const deserializeAws_json1_0UntagResourceCommandError = async (output, context) => {
2544
+ const parsedOutput = {
2545
+ ...output,
2546
+ body: await parseBody(output.body, context),
2547
+ };
2548
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2549
+ switch (errorCode) {
2550
+ case "AccessDeniedException":
2551
+ case "com.amazonaws.iotfleetwise#AccessDeniedException":
2552
+ throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
2553
+ case "InternalServerException":
2554
+ case "com.amazonaws.iotfleetwise#InternalServerException":
2555
+ throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
2556
+ case "ResourceNotFoundException":
2557
+ case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
2558
+ throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
2559
+ case "ThrottlingException":
2560
+ case "com.amazonaws.iotfleetwise#ThrottlingException":
2561
+ throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
2562
+ case "ValidationException":
2563
+ case "com.amazonaws.iotfleetwise#ValidationException":
2564
+ throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
2565
+ default:
2566
+ const parsedBody = parsedOutput.body;
2567
+ (0, smithy_client_1.throwDefaultError)({
2568
+ output,
2569
+ parsedBody,
2570
+ exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
2571
+ errorCode,
2572
+ });
2573
+ }
2574
+ };
2575
+ const deserializeAws_json1_0UpdateCampaignCommand = async (output, context) => {
2576
+ if (output.statusCode >= 300) {
2577
+ return deserializeAws_json1_0UpdateCampaignCommandError(output, context);
2578
+ }
2579
+ const data = await parseBody(output.body, context);
2580
+ let contents = {};
2581
+ contents = deserializeAws_json1_0UpdateCampaignResponse(data, context);
2582
+ const response = {
2583
+ $metadata: deserializeMetadata(output),
2584
+ ...contents,
2585
+ };
2586
+ return Promise.resolve(response);
2587
+ };
2588
+ exports.deserializeAws_json1_0UpdateCampaignCommand = deserializeAws_json1_0UpdateCampaignCommand;
2589
+ const deserializeAws_json1_0UpdateCampaignCommandError = async (output, context) => {
2590
+ const parsedOutput = {
2591
+ ...output,
2592
+ body: await parseBody(output.body, context),
2593
+ };
2594
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2595
+ switch (errorCode) {
2596
+ case "AccessDeniedException":
2597
+ case "com.amazonaws.iotfleetwise#AccessDeniedException":
2598
+ throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
2599
+ case "ConflictException":
2600
+ case "com.amazonaws.iotfleetwise#ConflictException":
2601
+ throw await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context);
2602
+ case "InternalServerException":
2603
+ case "com.amazonaws.iotfleetwise#InternalServerException":
2604
+ throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
2605
+ case "ResourceNotFoundException":
2606
+ case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
2607
+ throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
2608
+ case "ThrottlingException":
2609
+ case "com.amazonaws.iotfleetwise#ThrottlingException":
2610
+ throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
2611
+ case "ValidationException":
2612
+ case "com.amazonaws.iotfleetwise#ValidationException":
2613
+ throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
2614
+ default:
2615
+ const parsedBody = parsedOutput.body;
2616
+ (0, smithy_client_1.throwDefaultError)({
2617
+ output,
2618
+ parsedBody,
2619
+ exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
2620
+ errorCode,
2621
+ });
2622
+ }
2623
+ };
2624
+ const deserializeAws_json1_0UpdateDecoderManifestCommand = async (output, context) => {
2625
+ if (output.statusCode >= 300) {
2626
+ return deserializeAws_json1_0UpdateDecoderManifestCommandError(output, context);
2627
+ }
2628
+ const data = await parseBody(output.body, context);
2629
+ let contents = {};
2630
+ contents = deserializeAws_json1_0UpdateDecoderManifestResponse(data, context);
2631
+ const response = {
2632
+ $metadata: deserializeMetadata(output),
2633
+ ...contents,
2634
+ };
2635
+ return Promise.resolve(response);
2636
+ };
2637
+ exports.deserializeAws_json1_0UpdateDecoderManifestCommand = deserializeAws_json1_0UpdateDecoderManifestCommand;
2638
+ const deserializeAws_json1_0UpdateDecoderManifestCommandError = async (output, context) => {
2639
+ const parsedOutput = {
2640
+ ...output,
2641
+ body: await parseBody(output.body, context),
2642
+ };
2643
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2644
+ switch (errorCode) {
2645
+ case "AccessDeniedException":
2646
+ case "com.amazonaws.iotfleetwise#AccessDeniedException":
2647
+ throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
2648
+ case "ConflictException":
2649
+ case "com.amazonaws.iotfleetwise#ConflictException":
2650
+ throw await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context);
2651
+ case "DecoderManifestValidationException":
2652
+ case "com.amazonaws.iotfleetwise#DecoderManifestValidationException":
2653
+ throw await deserializeAws_json1_0DecoderManifestValidationExceptionResponse(parsedOutput, context);
2654
+ case "InternalServerException":
2655
+ case "com.amazonaws.iotfleetwise#InternalServerException":
2656
+ throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
2657
+ case "LimitExceededException":
2658
+ case "com.amazonaws.iotfleetwise#LimitExceededException":
2659
+ throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context);
2660
+ case "ResourceNotFoundException":
2661
+ case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
2662
+ throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
2663
+ case "ThrottlingException":
2664
+ case "com.amazonaws.iotfleetwise#ThrottlingException":
2665
+ throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
2666
+ case "ValidationException":
2667
+ case "com.amazonaws.iotfleetwise#ValidationException":
2668
+ throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
2669
+ default:
2670
+ const parsedBody = parsedOutput.body;
2671
+ (0, smithy_client_1.throwDefaultError)({
2672
+ output,
2673
+ parsedBody,
2674
+ exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
2675
+ errorCode,
2676
+ });
2677
+ }
2678
+ };
2679
+ const deserializeAws_json1_0UpdateFleetCommand = async (output, context) => {
2680
+ if (output.statusCode >= 300) {
2681
+ return deserializeAws_json1_0UpdateFleetCommandError(output, context);
2682
+ }
2683
+ const data = await parseBody(output.body, context);
2684
+ let contents = {};
2685
+ contents = deserializeAws_json1_0UpdateFleetResponse(data, context);
2686
+ const response = {
2687
+ $metadata: deserializeMetadata(output),
2688
+ ...contents,
2689
+ };
2690
+ return Promise.resolve(response);
2691
+ };
2692
+ exports.deserializeAws_json1_0UpdateFleetCommand = deserializeAws_json1_0UpdateFleetCommand;
2693
+ const deserializeAws_json1_0UpdateFleetCommandError = async (output, context) => {
2694
+ const parsedOutput = {
2695
+ ...output,
2696
+ body: await parseBody(output.body, context),
2697
+ };
2698
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2699
+ switch (errorCode) {
2700
+ case "AccessDeniedException":
2701
+ case "com.amazonaws.iotfleetwise#AccessDeniedException":
2702
+ throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
2703
+ case "ConflictException":
2704
+ case "com.amazonaws.iotfleetwise#ConflictException":
2705
+ throw await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context);
2706
+ case "InternalServerException":
2707
+ case "com.amazonaws.iotfleetwise#InternalServerException":
2708
+ throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
2709
+ case "ResourceNotFoundException":
2710
+ case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
2711
+ throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
2712
+ case "ThrottlingException":
2713
+ case "com.amazonaws.iotfleetwise#ThrottlingException":
2714
+ throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
2715
+ case "ValidationException":
2716
+ case "com.amazonaws.iotfleetwise#ValidationException":
2717
+ throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
2718
+ default:
2719
+ const parsedBody = parsedOutput.body;
2720
+ (0, smithy_client_1.throwDefaultError)({
2721
+ output,
2722
+ parsedBody,
2723
+ exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
2724
+ errorCode,
2725
+ });
2726
+ }
2727
+ };
2728
+ const deserializeAws_json1_0UpdateModelManifestCommand = async (output, context) => {
2729
+ if (output.statusCode >= 300) {
2730
+ return deserializeAws_json1_0UpdateModelManifestCommandError(output, context);
2731
+ }
2732
+ const data = await parseBody(output.body, context);
2733
+ let contents = {};
2734
+ contents = deserializeAws_json1_0UpdateModelManifestResponse(data, context);
2735
+ const response = {
2736
+ $metadata: deserializeMetadata(output),
2737
+ ...contents,
2738
+ };
2739
+ return Promise.resolve(response);
2740
+ };
2741
+ exports.deserializeAws_json1_0UpdateModelManifestCommand = deserializeAws_json1_0UpdateModelManifestCommand;
2742
+ const deserializeAws_json1_0UpdateModelManifestCommandError = async (output, context) => {
2743
+ const parsedOutput = {
2744
+ ...output,
2745
+ body: await parseBody(output.body, context),
2746
+ };
2747
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2748
+ switch (errorCode) {
2749
+ case "AccessDeniedException":
2750
+ case "com.amazonaws.iotfleetwise#AccessDeniedException":
2751
+ throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
2752
+ case "ConflictException":
2753
+ case "com.amazonaws.iotfleetwise#ConflictException":
2754
+ throw await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context);
2755
+ case "InternalServerException":
2756
+ case "com.amazonaws.iotfleetwise#InternalServerException":
2757
+ throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
2758
+ case "InvalidSignalsException":
2759
+ case "com.amazonaws.iotfleetwise#InvalidSignalsException":
2760
+ throw await deserializeAws_json1_0InvalidSignalsExceptionResponse(parsedOutput, context);
2761
+ case "ResourceNotFoundException":
2762
+ case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
2763
+ throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
2764
+ case "ThrottlingException":
2765
+ case "com.amazonaws.iotfleetwise#ThrottlingException":
2766
+ throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
2767
+ case "ValidationException":
2768
+ case "com.amazonaws.iotfleetwise#ValidationException":
2769
+ throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
2770
+ default:
2771
+ const parsedBody = parsedOutput.body;
2772
+ (0, smithy_client_1.throwDefaultError)({
2773
+ output,
2774
+ parsedBody,
2775
+ exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
2776
+ errorCode,
2777
+ });
2778
+ }
2779
+ };
2780
+ const deserializeAws_json1_0UpdateSignalCatalogCommand = async (output, context) => {
2781
+ if (output.statusCode >= 300) {
2782
+ return deserializeAws_json1_0UpdateSignalCatalogCommandError(output, context);
2783
+ }
2784
+ const data = await parseBody(output.body, context);
2785
+ let contents = {};
2786
+ contents = deserializeAws_json1_0UpdateSignalCatalogResponse(data, context);
2787
+ const response = {
2788
+ $metadata: deserializeMetadata(output),
2789
+ ...contents,
2790
+ };
2791
+ return Promise.resolve(response);
2792
+ };
2793
+ exports.deserializeAws_json1_0UpdateSignalCatalogCommand = deserializeAws_json1_0UpdateSignalCatalogCommand;
2794
+ const deserializeAws_json1_0UpdateSignalCatalogCommandError = async (output, context) => {
2795
+ const parsedOutput = {
2796
+ ...output,
2797
+ body: await parseBody(output.body, context),
2798
+ };
2799
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2800
+ switch (errorCode) {
2801
+ case "AccessDeniedException":
2802
+ case "com.amazonaws.iotfleetwise#AccessDeniedException":
2803
+ throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
2804
+ case "ConflictException":
2805
+ case "com.amazonaws.iotfleetwise#ConflictException":
2806
+ throw await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context);
2807
+ case "InternalServerException":
2808
+ case "com.amazonaws.iotfleetwise#InternalServerException":
2809
+ throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
2810
+ case "InvalidNodeException":
2811
+ case "com.amazonaws.iotfleetwise#InvalidNodeException":
2812
+ throw await deserializeAws_json1_0InvalidNodeExceptionResponse(parsedOutput, context);
2813
+ case "InvalidSignalsException":
2814
+ case "com.amazonaws.iotfleetwise#InvalidSignalsException":
2815
+ throw await deserializeAws_json1_0InvalidSignalsExceptionResponse(parsedOutput, context);
2816
+ case "LimitExceededException":
2817
+ case "com.amazonaws.iotfleetwise#LimitExceededException":
2818
+ throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context);
2819
+ case "ResourceNotFoundException":
2820
+ case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
2821
+ throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
2822
+ case "ThrottlingException":
2823
+ case "com.amazonaws.iotfleetwise#ThrottlingException":
2824
+ throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
2825
+ default:
2826
+ const parsedBody = parsedOutput.body;
2827
+ (0, smithy_client_1.throwDefaultError)({
2828
+ output,
2829
+ parsedBody,
2830
+ exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
2831
+ errorCode,
2832
+ });
2833
+ }
2834
+ };
2835
+ const deserializeAws_json1_0UpdateVehicleCommand = async (output, context) => {
2836
+ if (output.statusCode >= 300) {
2837
+ return deserializeAws_json1_0UpdateVehicleCommandError(output, context);
2838
+ }
2839
+ const data = await parseBody(output.body, context);
2840
+ let contents = {};
2841
+ contents = deserializeAws_json1_0UpdateVehicleResponse(data, context);
2842
+ const response = {
2843
+ $metadata: deserializeMetadata(output),
2844
+ ...contents,
2845
+ };
2846
+ return Promise.resolve(response);
2847
+ };
2848
+ exports.deserializeAws_json1_0UpdateVehicleCommand = deserializeAws_json1_0UpdateVehicleCommand;
2849
+ const deserializeAws_json1_0UpdateVehicleCommandError = async (output, context) => {
2850
+ const parsedOutput = {
2851
+ ...output,
2852
+ body: await parseBody(output.body, context),
2853
+ };
2854
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2855
+ switch (errorCode) {
2856
+ case "AccessDeniedException":
2857
+ case "com.amazonaws.iotfleetwise#AccessDeniedException":
2858
+ throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
2859
+ case "ConflictException":
2860
+ case "com.amazonaws.iotfleetwise#ConflictException":
2861
+ throw await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context);
2862
+ case "InternalServerException":
2863
+ case "com.amazonaws.iotfleetwise#InternalServerException":
2864
+ throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
2865
+ case "ResourceNotFoundException":
2866
+ case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
2867
+ throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
2868
+ case "ThrottlingException":
2869
+ case "com.amazonaws.iotfleetwise#ThrottlingException":
2870
+ throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
2871
+ case "ValidationException":
2872
+ case "com.amazonaws.iotfleetwise#ValidationException":
2873
+ throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
2874
+ default:
2875
+ const parsedBody = parsedOutput.body;
2876
+ (0, smithy_client_1.throwDefaultError)({
2877
+ output,
2878
+ parsedBody,
2879
+ exceptionCtor: IoTFleetWiseServiceException_1.IoTFleetWiseServiceException,
2880
+ errorCode,
2881
+ });
2882
+ }
2883
+ };
2884
+ const deserializeAws_json1_0AccessDeniedExceptionResponse = async (parsedOutput, context) => {
2885
+ const body = parsedOutput.body;
2886
+ const deserialized = deserializeAws_json1_0AccessDeniedException(body, context);
2887
+ const exception = new models_0_1.AccessDeniedException({
2888
+ $metadata: deserializeMetadata(parsedOutput),
2889
+ ...deserialized,
2890
+ });
2891
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
2892
+ };
2893
+ const deserializeAws_json1_0ConflictExceptionResponse = async (parsedOutput, context) => {
2894
+ const body = parsedOutput.body;
2895
+ const deserialized = deserializeAws_json1_0ConflictException(body, context);
2896
+ const exception = new models_0_1.ConflictException({
2897
+ $metadata: deserializeMetadata(parsedOutput),
2898
+ ...deserialized,
2899
+ });
2900
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
2901
+ };
2902
+ const deserializeAws_json1_0DecoderManifestValidationExceptionResponse = async (parsedOutput, context) => {
2903
+ const body = parsedOutput.body;
2904
+ const deserialized = deserializeAws_json1_0DecoderManifestValidationException(body, context);
2905
+ const exception = new models_0_1.DecoderManifestValidationException({
2906
+ $metadata: deserializeMetadata(parsedOutput),
2907
+ ...deserialized,
2908
+ });
2909
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
2910
+ };
2911
+ const deserializeAws_json1_0InternalServerExceptionResponse = async (parsedOutput, context) => {
2912
+ const body = parsedOutput.body;
2913
+ const deserialized = deserializeAws_json1_0InternalServerException(body, context);
2914
+ const exception = new models_0_1.InternalServerException({
2915
+ $metadata: deserializeMetadata(parsedOutput),
2916
+ ...deserialized,
2917
+ });
2918
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
2919
+ };
2920
+ const deserializeAws_json1_0InvalidNodeExceptionResponse = async (parsedOutput, context) => {
2921
+ const body = parsedOutput.body;
2922
+ const deserialized = deserializeAws_json1_0InvalidNodeException(body, context);
2923
+ const exception = new models_0_1.InvalidNodeException({
2924
+ $metadata: deserializeMetadata(parsedOutput),
2925
+ ...deserialized,
2926
+ });
2927
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
2928
+ };
2929
+ const deserializeAws_json1_0InvalidSignalsExceptionResponse = async (parsedOutput, context) => {
2930
+ const body = parsedOutput.body;
2931
+ const deserialized = deserializeAws_json1_0InvalidSignalsException(body, context);
2932
+ const exception = new models_0_1.InvalidSignalsException({
2933
+ $metadata: deserializeMetadata(parsedOutput),
2934
+ ...deserialized,
2935
+ });
2936
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
2937
+ };
2938
+ const deserializeAws_json1_0LimitExceededExceptionResponse = async (parsedOutput, context) => {
2939
+ const body = parsedOutput.body;
2940
+ const deserialized = deserializeAws_json1_0LimitExceededException(body, context);
2941
+ const exception = new models_0_1.LimitExceededException({
2942
+ $metadata: deserializeMetadata(parsedOutput),
2943
+ ...deserialized,
2944
+ });
2945
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
2946
+ };
2947
+ const deserializeAws_json1_0ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
2948
+ const body = parsedOutput.body;
2949
+ const deserialized = deserializeAws_json1_0ResourceNotFoundException(body, context);
2950
+ const exception = new models_0_1.ResourceNotFoundException({
2951
+ $metadata: deserializeMetadata(parsedOutput),
2952
+ ...deserialized,
2953
+ });
2954
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
2955
+ };
2956
+ const deserializeAws_json1_0ThrottlingExceptionResponse = async (parsedOutput, context) => {
2957
+ const body = parsedOutput.body;
2958
+ const deserialized = deserializeAws_json1_0ThrottlingException(body, context);
2959
+ const exception = new models_0_1.ThrottlingException({
2960
+ $metadata: deserializeMetadata(parsedOutput),
2961
+ ...deserialized,
2962
+ });
2963
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
2964
+ };
2965
+ const deserializeAws_json1_0ValidationExceptionResponse = async (parsedOutput, context) => {
2966
+ const body = parsedOutput.body;
2967
+ const deserialized = deserializeAws_json1_0ValidationException(body, context);
2968
+ const exception = new models_0_1.ValidationException({
2969
+ $metadata: deserializeMetadata(parsedOutput),
2970
+ ...deserialized,
2971
+ });
2972
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
2973
+ };
2974
+ const serializeAws_json1_0Actuator = (input, context) => {
2975
+ return {
2976
+ ...(input.allowedValues != null && {
2977
+ allowedValues: serializeAws_json1_0listOfStrings(input.allowedValues, context),
2978
+ }),
2979
+ ...(input.assignedValue != null && { assignedValue: input.assignedValue }),
2980
+ ...(input.dataType != null && { dataType: input.dataType }),
2981
+ ...(input.description != null && { description: input.description }),
2982
+ ...(input.fullyQualifiedName != null && { fullyQualifiedName: input.fullyQualifiedName }),
2983
+ ...(input.max != null && { max: (0, smithy_client_1.serializeFloat)(input.max) }),
2984
+ ...(input.min != null && { min: (0, smithy_client_1.serializeFloat)(input.min) }),
2985
+ ...(input.unit != null && { unit: input.unit }),
2986
+ };
2987
+ };
2988
+ const serializeAws_json1_0AssociateVehicleFleetRequest = (input, context) => {
2989
+ return {
2990
+ ...(input.fleetId != null && { fleetId: input.fleetId }),
2991
+ ...(input.vehicleName != null && { vehicleName: input.vehicleName }),
2992
+ };
2993
+ };
2994
+ const serializeAws_json1_0Attribute = (input, context) => {
2995
+ return {
2996
+ ...(input.allowedValues != null && {
2997
+ allowedValues: serializeAws_json1_0listOfStrings(input.allowedValues, context),
2998
+ }),
2999
+ ...(input.assignedValue != null && { assignedValue: input.assignedValue }),
3000
+ ...(input.dataType != null && { dataType: input.dataType }),
3001
+ ...(input.defaultValue != null && { defaultValue: input.defaultValue }),
3002
+ ...(input.description != null && { description: input.description }),
3003
+ ...(input.fullyQualifiedName != null && { fullyQualifiedName: input.fullyQualifiedName }),
3004
+ ...(input.max != null && { max: (0, smithy_client_1.serializeFloat)(input.max) }),
3005
+ ...(input.min != null && { min: (0, smithy_client_1.serializeFloat)(input.min) }),
3006
+ ...(input.unit != null && { unit: input.unit }),
3007
+ };
3008
+ };
3009
+ const serializeAws_json1_0attributesMap = (input, context) => {
3010
+ return Object.entries(input).reduce((acc, [key, value]) => {
3011
+ if (value === null) {
3012
+ return acc;
3013
+ }
3014
+ return {
3015
+ ...acc,
3016
+ [key]: value,
3017
+ };
3018
+ }, {});
3019
+ };
3020
+ const serializeAws_json1_0BatchCreateVehicleRequest = (input, context) => {
3021
+ return {
3022
+ ...(input.vehicles != null && { vehicles: serializeAws_json1_0createVehicleRequestItems(input.vehicles, context) }),
3023
+ };
3024
+ };
3025
+ const serializeAws_json1_0BatchUpdateVehicleRequest = (input, context) => {
3026
+ return {
3027
+ ...(input.vehicles != null && { vehicles: serializeAws_json1_0updateVehicleRequestItems(input.vehicles, context) }),
3028
+ };
3029
+ };
3030
+ const serializeAws_json1_0Branch = (input, context) => {
3031
+ return {
3032
+ ...(input.description != null && { description: input.description }),
3033
+ ...(input.fullyQualifiedName != null && { fullyQualifiedName: input.fullyQualifiedName }),
3034
+ };
3035
+ };
3036
+ const serializeAws_json1_0CanDbcDefinition = (input, context) => {
3037
+ return {
3038
+ ...(input.canDbcFiles != null && { canDbcFiles: serializeAws_json1_0NetworkFilesList(input.canDbcFiles, context) }),
3039
+ ...(input.networkInterface != null && { networkInterface: input.networkInterface }),
3040
+ ...(input.signalsMap != null && { signalsMap: serializeAws_json1_0ModelSignalsMap(input.signalsMap, context) }),
3041
+ };
3042
+ };
3043
+ const serializeAws_json1_0CanInterface = (input, context) => {
3044
+ return {
3045
+ ...(input.name != null && { name: input.name }),
3046
+ ...(input.protocolName != null && { protocolName: input.protocolName }),
3047
+ ...(input.protocolVersion != null && { protocolVersion: input.protocolVersion }),
3048
+ };
3049
+ };
3050
+ const serializeAws_json1_0CanSignal = (input, context) => {
3051
+ return {
3052
+ ...(input.factor != null && { factor: (0, smithy_client_1.serializeFloat)(input.factor) }),
3053
+ ...(input.isBigEndian != null && { isBigEndian: input.isBigEndian }),
3054
+ ...(input.isSigned != null && { isSigned: input.isSigned }),
3055
+ ...(input.length != null && { length: input.length }),
3056
+ ...(input.messageId != null && { messageId: input.messageId }),
3057
+ ...(input.name != null && { name: input.name }),
3058
+ ...(input.offset != null && { offset: (0, smithy_client_1.serializeFloat)(input.offset) }),
3059
+ ...(input.startBit != null && { startBit: input.startBit }),
3060
+ };
3061
+ };
3062
+ const serializeAws_json1_0CloudWatchLogDeliveryOptions = (input, context) => {
3063
+ return {
3064
+ ...(input.logGroupName != null && { logGroupName: input.logGroupName }),
3065
+ ...(input.logType != null && { logType: input.logType }),
3066
+ };
3067
+ };
3068
+ const serializeAws_json1_0CollectionScheme = (input, context) => {
3069
+ return models_0_1.CollectionScheme.visit(input, {
3070
+ conditionBasedCollectionScheme: (value) => ({
3071
+ conditionBasedCollectionScheme: serializeAws_json1_0ConditionBasedCollectionScheme(value, context),
3072
+ }),
3073
+ timeBasedCollectionScheme: (value) => ({
3074
+ timeBasedCollectionScheme: serializeAws_json1_0TimeBasedCollectionScheme(value, context),
3075
+ }),
3076
+ _: (name, value) => ({ name: value }),
3077
+ });
3078
+ };
3079
+ const serializeAws_json1_0ConditionBasedCollectionScheme = (input, context) => {
3080
+ return {
3081
+ ...(input.conditionLanguageVersion != null && { conditionLanguageVersion: input.conditionLanguageVersion }),
3082
+ ...(input.expression != null && { expression: input.expression }),
3083
+ ...(input.minimumTriggerIntervalMs != null && { minimumTriggerIntervalMs: input.minimumTriggerIntervalMs }),
3084
+ ...(input.triggerMode != null && { triggerMode: input.triggerMode }),
3085
+ };
3086
+ };
3087
+ const serializeAws_json1_0CreateCampaignRequest = (input, context) => {
3088
+ return {
3089
+ ...(input.collectionScheme != null && {
3090
+ collectionScheme: serializeAws_json1_0CollectionScheme(input.collectionScheme, context),
3091
+ }),
3092
+ ...(input.compression != null && { compression: input.compression }),
3093
+ ...(input.dataExtraDimensions != null && {
3094
+ dataExtraDimensions: serializeAws_json1_0DataExtraDimensionNodePathList(input.dataExtraDimensions, context),
3095
+ }),
3096
+ ...(input.description != null && { description: input.description }),
3097
+ ...(input.diagnosticsMode != null && { diagnosticsMode: input.diagnosticsMode }),
3098
+ ...(input.expiryTime != null && { expiryTime: Math.round(input.expiryTime.getTime() / 1000) }),
3099
+ ...(input.name != null && { name: input.name }),
3100
+ ...(input.postTriggerCollectionDuration != null && {
3101
+ postTriggerCollectionDuration: input.postTriggerCollectionDuration,
3102
+ }),
3103
+ ...(input.priority != null && { priority: input.priority }),
3104
+ ...(input.signalCatalogArn != null && { signalCatalogArn: input.signalCatalogArn }),
3105
+ ...(input.signalsToCollect != null && {
3106
+ signalsToCollect: serializeAws_json1_0SignalInformationList(input.signalsToCollect, context),
3107
+ }),
3108
+ ...(input.spoolingMode != null && { spoolingMode: input.spoolingMode }),
3109
+ ...(input.startTime != null && { startTime: Math.round(input.startTime.getTime() / 1000) }),
3110
+ ...(input.tags != null && { tags: serializeAws_json1_0TagList(input.tags, context) }),
3111
+ ...(input.targetArn != null && { targetArn: input.targetArn }),
3112
+ };
3113
+ };
3114
+ const serializeAws_json1_0CreateDecoderManifestRequest = (input, context) => {
3115
+ return {
3116
+ ...(input.description != null && { description: input.description }),
3117
+ ...(input.modelManifestArn != null && { modelManifestArn: input.modelManifestArn }),
3118
+ ...(input.name != null && { name: input.name }),
3119
+ ...(input.networkInterfaces != null && {
3120
+ networkInterfaces: serializeAws_json1_0NetworkInterfaces(input.networkInterfaces, context),
3121
+ }),
3122
+ ...(input.signalDecoders != null && {
3123
+ signalDecoders: serializeAws_json1_0SignalDecoders(input.signalDecoders, context),
3124
+ }),
3125
+ ...(input.tags != null && { tags: serializeAws_json1_0TagList(input.tags, context) }),
3126
+ };
3127
+ };
3128
+ const serializeAws_json1_0CreateFleetRequest = (input, context) => {
3129
+ return {
3130
+ ...(input.description != null && { description: input.description }),
3131
+ ...(input.fleetId != null && { fleetId: input.fleetId }),
3132
+ ...(input.signalCatalogArn != null && { signalCatalogArn: input.signalCatalogArn }),
3133
+ ...(input.tags != null && { tags: serializeAws_json1_0TagList(input.tags, context) }),
3134
+ };
3135
+ };
3136
+ const serializeAws_json1_0CreateModelManifestRequest = (input, context) => {
3137
+ return {
3138
+ ...(input.description != null && { description: input.description }),
3139
+ ...(input.name != null && { name: input.name }),
3140
+ ...(input.nodes != null && { nodes: serializeAws_json1_0listOfStrings(input.nodes, context) }),
3141
+ ...(input.signalCatalogArn != null && { signalCatalogArn: input.signalCatalogArn }),
3142
+ ...(input.tags != null && { tags: serializeAws_json1_0TagList(input.tags, context) }),
3143
+ };
3144
+ };
3145
+ const serializeAws_json1_0CreateSignalCatalogRequest = (input, context) => {
3146
+ return {
3147
+ ...(input.description != null && { description: input.description }),
3148
+ ...(input.name != null && { name: input.name }),
3149
+ ...(input.nodes != null && { nodes: serializeAws_json1_0Nodes(input.nodes, context) }),
3150
+ ...(input.tags != null && { tags: serializeAws_json1_0TagList(input.tags, context) }),
3151
+ };
3152
+ };
3153
+ const serializeAws_json1_0CreateVehicleRequest = (input, context) => {
3154
+ return {
3155
+ ...(input.associationBehavior != null && { associationBehavior: input.associationBehavior }),
3156
+ ...(input.attributes != null && { attributes: serializeAws_json1_0attributesMap(input.attributes, context) }),
3157
+ ...(input.decoderManifestArn != null && { decoderManifestArn: input.decoderManifestArn }),
3158
+ ...(input.modelManifestArn != null && { modelManifestArn: input.modelManifestArn }),
3159
+ ...(input.tags != null && { tags: serializeAws_json1_0TagList(input.tags, context) }),
3160
+ ...(input.vehicleName != null && { vehicleName: input.vehicleName }),
3161
+ };
3162
+ };
3163
+ const serializeAws_json1_0CreateVehicleRequestItem = (input, context) => {
3164
+ return {
3165
+ ...(input.associationBehavior != null && { associationBehavior: input.associationBehavior }),
3166
+ ...(input.attributes != null && { attributes: serializeAws_json1_0attributesMap(input.attributes, context) }),
3167
+ ...(input.decoderManifestArn != null && { decoderManifestArn: input.decoderManifestArn }),
3168
+ ...(input.modelManifestArn != null && { modelManifestArn: input.modelManifestArn }),
3169
+ ...(input.tags != null && { tags: serializeAws_json1_0TagList(input.tags, context) }),
3170
+ ...(input.vehicleName != null && { vehicleName: input.vehicleName }),
3171
+ };
3172
+ };
3173
+ const serializeAws_json1_0createVehicleRequestItems = (input, context) => {
3174
+ return input
3175
+ .filter((e) => e != null)
3176
+ .map((entry) => {
3177
+ return serializeAws_json1_0CreateVehicleRequestItem(entry, context);
3178
+ });
3179
+ };
3180
+ const serializeAws_json1_0DataExtraDimensionNodePathList = (input, context) => {
3181
+ return input
3182
+ .filter((e) => e != null)
3183
+ .map((entry) => {
3184
+ return entry;
3185
+ });
3186
+ };
3187
+ const serializeAws_json1_0DeleteCampaignRequest = (input, context) => {
3188
+ return {
3189
+ ...(input.name != null && { name: input.name }),
3190
+ };
3191
+ };
3192
+ const serializeAws_json1_0DeleteDecoderManifestRequest = (input, context) => {
3193
+ return {
3194
+ ...(input.name != null && { name: input.name }),
3195
+ };
3196
+ };
3197
+ const serializeAws_json1_0DeleteFleetRequest = (input, context) => {
3198
+ return {
3199
+ ...(input.fleetId != null && { fleetId: input.fleetId }),
3200
+ };
3201
+ };
3202
+ const serializeAws_json1_0DeleteModelManifestRequest = (input, context) => {
3203
+ return {
3204
+ ...(input.name != null && { name: input.name }),
3205
+ };
3206
+ };
3207
+ const serializeAws_json1_0DeleteSignalCatalogRequest = (input, context) => {
3208
+ return {
3209
+ ...(input.name != null && { name: input.name }),
3210
+ };
3211
+ };
3212
+ const serializeAws_json1_0DeleteVehicleRequest = (input, context) => {
3213
+ return {
3214
+ ...(input.vehicleName != null && { vehicleName: input.vehicleName }),
3215
+ };
3216
+ };
3217
+ const serializeAws_json1_0DisassociateVehicleFleetRequest = (input, context) => {
3218
+ return {
3219
+ ...(input.fleetId != null && { fleetId: input.fleetId }),
3220
+ ...(input.vehicleName != null && { vehicleName: input.vehicleName }),
3221
+ };
3222
+ };
3223
+ const serializeAws_json1_0FormattedVss = (input, context) => {
3224
+ return models_0_1.FormattedVss.visit(input, {
3225
+ vssJson: (value) => ({ vssJson: value }),
3226
+ _: (name, value) => ({ name: value }),
3227
+ });
3228
+ };
3229
+ const serializeAws_json1_0Fqns = (input, context) => {
3230
+ return input
3231
+ .filter((e) => e != null)
3232
+ .map((entry) => {
3233
+ return entry;
3234
+ });
3235
+ };
3236
+ const serializeAws_json1_0GetCampaignRequest = (input, context) => {
3237
+ return {
3238
+ ...(input.name != null && { name: input.name }),
3239
+ };
3240
+ };
3241
+ const serializeAws_json1_0GetDecoderManifestRequest = (input, context) => {
3242
+ return {
3243
+ ...(input.name != null && { name: input.name }),
3244
+ };
3245
+ };
3246
+ const serializeAws_json1_0GetFleetRequest = (input, context) => {
3247
+ return {
3248
+ ...(input.fleetId != null && { fleetId: input.fleetId }),
3249
+ };
3250
+ };
3251
+ const serializeAws_json1_0GetLoggingOptionsRequest = (input, context) => {
3252
+ return {};
3253
+ };
3254
+ const serializeAws_json1_0GetModelManifestRequest = (input, context) => {
3255
+ return {
3256
+ ...(input.name != null && { name: input.name }),
3257
+ };
3258
+ };
3259
+ const serializeAws_json1_0GetRegisterAccountStatusRequest = (input, context) => {
3260
+ return {};
3261
+ };
3262
+ const serializeAws_json1_0GetSignalCatalogRequest = (input, context) => {
3263
+ return {
3264
+ ...(input.name != null && { name: input.name }),
3265
+ };
3266
+ };
3267
+ const serializeAws_json1_0GetVehicleRequest = (input, context) => {
3268
+ return {
3269
+ ...(input.vehicleName != null && { vehicleName: input.vehicleName }),
3270
+ };
3271
+ };
3272
+ const serializeAws_json1_0GetVehicleStatusRequest = (input, context) => {
3273
+ return {
3274
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
3275
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
3276
+ ...(input.vehicleName != null && { vehicleName: input.vehicleName }),
3277
+ };
3278
+ };
3279
+ const serializeAws_json1_0IamResources = (input, context) => {
3280
+ return {
3281
+ ...(input.roleArn != null && { roleArn: input.roleArn }),
3282
+ };
3283
+ };
3284
+ const serializeAws_json1_0ImportDecoderManifestRequest = (input, context) => {
3285
+ return {
3286
+ ...(input.name != null && { name: input.name }),
3287
+ ...(input.networkFileDefinitions != null && {
3288
+ networkFileDefinitions: serializeAws_json1_0NetworkFileDefinitions(input.networkFileDefinitions, context),
3289
+ }),
3290
+ };
3291
+ };
3292
+ const serializeAws_json1_0ImportSignalCatalogRequest = (input, context) => {
3293
+ return {
3294
+ ...(input.description != null && { description: input.description }),
3295
+ ...(input.name != null && { name: input.name }),
3296
+ ...(input.tags != null && { tags: serializeAws_json1_0TagList(input.tags, context) }),
3297
+ ...(input.vss != null && { vss: serializeAws_json1_0FormattedVss(input.vss, context) }),
3298
+ };
3299
+ };
3300
+ const serializeAws_json1_0InterfaceIds = (input, context) => {
3301
+ return input
3302
+ .filter((e) => e != null)
3303
+ .map((entry) => {
3304
+ return entry;
3305
+ });
3306
+ };
3307
+ const serializeAws_json1_0ListCampaignsRequest = (input, context) => {
3308
+ return {
3309
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
3310
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
3311
+ ...(input.status != null && { status: input.status }),
3312
+ };
3313
+ };
3314
+ const serializeAws_json1_0ListDecoderManifestNetworkInterfacesRequest = (input, context) => {
3315
+ return {
3316
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
3317
+ ...(input.name != null && { name: input.name }),
3318
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
3319
+ };
3320
+ };
3321
+ const serializeAws_json1_0ListDecoderManifestSignalsRequest = (input, context) => {
3322
+ return {
3323
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
3324
+ ...(input.name != null && { name: input.name }),
3325
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
3326
+ };
3327
+ };
3328
+ const serializeAws_json1_0ListDecoderManifestsRequest = (input, context) => {
3329
+ return {
3330
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
3331
+ ...(input.modelManifestArn != null && { modelManifestArn: input.modelManifestArn }),
3332
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
3333
+ };
3334
+ };
3335
+ const serializeAws_json1_0ListFleetsForVehicleRequest = (input, context) => {
3336
+ return {
3337
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
3338
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
3339
+ ...(input.vehicleName != null && { vehicleName: input.vehicleName }),
3340
+ };
3341
+ };
3342
+ const serializeAws_json1_0ListFleetsRequest = (input, context) => {
3343
+ return {
3344
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
3345
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
3346
+ };
3347
+ };
3348
+ const serializeAws_json1_0ListModelManifestNodesRequest = (input, context) => {
3349
+ return {
3350
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
3351
+ ...(input.name != null && { name: input.name }),
3352
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
3353
+ };
3354
+ };
3355
+ const serializeAws_json1_0ListModelManifestsRequest = (input, context) => {
3356
+ return {
3357
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
3358
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
3359
+ ...(input.signalCatalogArn != null && { signalCatalogArn: input.signalCatalogArn }),
3360
+ };
3361
+ };
3362
+ const serializeAws_json1_0listOfStrings = (input, context) => {
3363
+ return input
3364
+ .filter((e) => e != null)
3365
+ .map((entry) => {
3366
+ return entry;
3367
+ });
3368
+ };
3369
+ const serializeAws_json1_0ListSignalCatalogNodesRequest = (input, context) => {
3370
+ return {
3371
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
3372
+ ...(input.name != null && { name: input.name }),
3373
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
3374
+ };
3375
+ };
3376
+ const serializeAws_json1_0ListSignalCatalogsRequest = (input, context) => {
3377
+ return {
3378
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
3379
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
3380
+ };
3381
+ };
3382
+ const serializeAws_json1_0ListTagsForResourceRequest = (input, context) => {
3383
+ return {
3384
+ ...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
3385
+ };
3386
+ };
3387
+ const serializeAws_json1_0ListVehiclesInFleetRequest = (input, context) => {
3388
+ return {
3389
+ ...(input.fleetId != null && { fleetId: input.fleetId }),
3390
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
3391
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
3392
+ };
3393
+ };
3394
+ const serializeAws_json1_0ListVehiclesRequest = (input, context) => {
3395
+ return {
3396
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
3397
+ ...(input.modelManifestArn != null && { modelManifestArn: input.modelManifestArn }),
3398
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
3399
+ };
3400
+ };
3401
+ const serializeAws_json1_0ModelSignalsMap = (input, context) => {
3402
+ return Object.entries(input).reduce((acc, [key, value]) => {
3403
+ if (value === null) {
3404
+ return acc;
3405
+ }
3406
+ return {
3407
+ ...acc,
3408
+ [key]: value,
3409
+ };
3410
+ }, {});
3411
+ };
3412
+ const serializeAws_json1_0NetworkFileDefinition = (input, context) => {
3413
+ return models_0_1.NetworkFileDefinition.visit(input, {
3414
+ canDbc: (value) => ({ canDbc: serializeAws_json1_0CanDbcDefinition(value, context) }),
3415
+ _: (name, value) => ({ name: value }),
3416
+ });
3417
+ };
3418
+ const serializeAws_json1_0NetworkFileDefinitions = (input, context) => {
3419
+ return input
3420
+ .filter((e) => e != null)
3421
+ .map((entry) => {
3422
+ return serializeAws_json1_0NetworkFileDefinition(entry, context);
3423
+ });
3424
+ };
3425
+ const serializeAws_json1_0NetworkFilesList = (input, context) => {
3426
+ return input
3427
+ .filter((e) => e != null)
3428
+ .map((entry) => {
3429
+ return context.base64Encoder(entry);
3430
+ });
3431
+ };
3432
+ const serializeAws_json1_0NetworkInterface = (input, context) => {
3433
+ return {
3434
+ ...(input.canInterface != null && { canInterface: serializeAws_json1_0CanInterface(input.canInterface, context) }),
3435
+ ...(input.interfaceId != null && { interfaceId: input.interfaceId }),
3436
+ ...(input.obdInterface != null && { obdInterface: serializeAws_json1_0ObdInterface(input.obdInterface, context) }),
3437
+ ...(input.type != null && { type: input.type }),
3438
+ };
3439
+ };
3440
+ const serializeAws_json1_0NetworkInterfaces = (input, context) => {
3441
+ return input
3442
+ .filter((e) => e != null)
3443
+ .map((entry) => {
3444
+ return serializeAws_json1_0NetworkInterface(entry, context);
3445
+ });
3446
+ };
3447
+ const serializeAws_json1_0Node = (input, context) => {
3448
+ return models_0_1.Node.visit(input, {
3449
+ actuator: (value) => ({ actuator: serializeAws_json1_0Actuator(value, context) }),
3450
+ attribute: (value) => ({ attribute: serializeAws_json1_0Attribute(value, context) }),
3451
+ branch: (value) => ({ branch: serializeAws_json1_0Branch(value, context) }),
3452
+ sensor: (value) => ({ sensor: serializeAws_json1_0Sensor(value, context) }),
3453
+ _: (name, value) => ({ name: value }),
3454
+ });
3455
+ };
3456
+ const serializeAws_json1_0NodePaths = (input, context) => {
3457
+ return input
3458
+ .filter((e) => e != null)
3459
+ .map((entry) => {
3460
+ return entry;
3461
+ });
3462
+ };
3463
+ const serializeAws_json1_0Nodes = (input, context) => {
3464
+ return input
3465
+ .filter((e) => e != null)
3466
+ .map((entry) => {
3467
+ return serializeAws_json1_0Node(entry, context);
3468
+ });
3469
+ };
3470
+ const serializeAws_json1_0ObdInterface = (input, context) => {
3471
+ return {
3472
+ ...(input.dtcRequestIntervalSeconds != null && { dtcRequestIntervalSeconds: input.dtcRequestIntervalSeconds }),
3473
+ ...(input.hasTransmissionEcu != null && { hasTransmissionEcu: input.hasTransmissionEcu }),
3474
+ ...(input.name != null && { name: input.name }),
3475
+ ...(input.obdStandard != null && { obdStandard: input.obdStandard }),
3476
+ ...(input.pidRequestIntervalSeconds != null && { pidRequestIntervalSeconds: input.pidRequestIntervalSeconds }),
3477
+ ...(input.requestMessageId != null && { requestMessageId: input.requestMessageId }),
3478
+ ...(input.useExtendedIds != null && { useExtendedIds: input.useExtendedIds }),
3479
+ };
3480
+ };
3481
+ const serializeAws_json1_0ObdSignal = (input, context) => {
3482
+ return {
3483
+ ...(input.bitMaskLength != null && { bitMaskLength: input.bitMaskLength }),
3484
+ ...(input.bitRightShift != null && { bitRightShift: input.bitRightShift }),
3485
+ ...(input.byteLength != null && { byteLength: input.byteLength }),
3486
+ ...(input.offset != null && { offset: (0, smithy_client_1.serializeFloat)(input.offset) }),
3487
+ ...(input.pid != null && { pid: input.pid }),
3488
+ ...(input.pidResponseLength != null && { pidResponseLength: input.pidResponseLength }),
3489
+ ...(input.scaling != null && { scaling: (0, smithy_client_1.serializeFloat)(input.scaling) }),
3490
+ ...(input.serviceMode != null && { serviceMode: input.serviceMode }),
3491
+ ...(input.startByte != null && { startByte: input.startByte }),
3492
+ };
3493
+ };
3494
+ const serializeAws_json1_0PutLoggingOptionsRequest = (input, context) => {
3495
+ return {
3496
+ ...(input.cloudWatchLogDelivery != null && {
3497
+ cloudWatchLogDelivery: serializeAws_json1_0CloudWatchLogDeliveryOptions(input.cloudWatchLogDelivery, context),
3498
+ }),
3499
+ };
3500
+ };
3501
+ const serializeAws_json1_0RegisterAccountRequest = (input, context) => {
3502
+ return {
3503
+ ...(input.iamResources != null && { iamResources: serializeAws_json1_0IamResources(input.iamResources, context) }),
3504
+ ...(input.timestreamResources != null && {
3505
+ timestreamResources: serializeAws_json1_0TimestreamResources(input.timestreamResources, context),
3506
+ }),
3507
+ };
3508
+ };
3509
+ const serializeAws_json1_0Sensor = (input, context) => {
3510
+ return {
3511
+ ...(input.allowedValues != null && {
3512
+ allowedValues: serializeAws_json1_0listOfStrings(input.allowedValues, context),
3513
+ }),
3514
+ ...(input.dataType != null && { dataType: input.dataType }),
3515
+ ...(input.description != null && { description: input.description }),
3516
+ ...(input.fullyQualifiedName != null && { fullyQualifiedName: input.fullyQualifiedName }),
3517
+ ...(input.max != null && { max: (0, smithy_client_1.serializeFloat)(input.max) }),
3518
+ ...(input.min != null && { min: (0, smithy_client_1.serializeFloat)(input.min) }),
3519
+ ...(input.unit != null && { unit: input.unit }),
3520
+ };
3521
+ };
3522
+ const serializeAws_json1_0SignalDecoder = (input, context) => {
3523
+ return {
3524
+ ...(input.canSignal != null && { canSignal: serializeAws_json1_0CanSignal(input.canSignal, context) }),
3525
+ ...(input.fullyQualifiedName != null && { fullyQualifiedName: input.fullyQualifiedName }),
3526
+ ...(input.interfaceId != null && { interfaceId: input.interfaceId }),
3527
+ ...(input.obdSignal != null && { obdSignal: serializeAws_json1_0ObdSignal(input.obdSignal, context) }),
3528
+ ...(input.type != null && { type: input.type }),
3529
+ };
3530
+ };
3531
+ const serializeAws_json1_0SignalDecoders = (input, context) => {
3532
+ return input
3533
+ .filter((e) => e != null)
3534
+ .map((entry) => {
3535
+ return serializeAws_json1_0SignalDecoder(entry, context);
3536
+ });
3537
+ };
3538
+ const serializeAws_json1_0SignalInformation = (input, context) => {
3539
+ return {
3540
+ ...(input.maxSampleCount != null && { maxSampleCount: input.maxSampleCount }),
3541
+ ...(input.minimumSamplingIntervalMs != null && { minimumSamplingIntervalMs: input.minimumSamplingIntervalMs }),
3542
+ ...(input.name != null && { name: input.name }),
3543
+ };
3544
+ };
3545
+ const serializeAws_json1_0SignalInformationList = (input, context) => {
3546
+ return input
3547
+ .filter((e) => e != null)
3548
+ .map((entry) => {
3549
+ return serializeAws_json1_0SignalInformation(entry, context);
3550
+ });
3551
+ };
3552
+ const serializeAws_json1_0Tag = (input, context) => {
3553
+ return {
3554
+ ...(input.Key != null && { Key: input.Key }),
3555
+ ...(input.Value != null && { Value: input.Value }),
3556
+ };
3557
+ };
3558
+ const serializeAws_json1_0TagKeyList = (input, context) => {
3559
+ return input
3560
+ .filter((e) => e != null)
3561
+ .map((entry) => {
3562
+ return entry;
3563
+ });
3564
+ };
3565
+ const serializeAws_json1_0TagList = (input, context) => {
3566
+ return input
3567
+ .filter((e) => e != null)
3568
+ .map((entry) => {
3569
+ return serializeAws_json1_0Tag(entry, context);
3570
+ });
3571
+ };
3572
+ const serializeAws_json1_0TagResourceRequest = (input, context) => {
3573
+ return {
3574
+ ...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
3575
+ ...(input.Tags != null && { Tags: serializeAws_json1_0TagList(input.Tags, context) }),
3576
+ };
3577
+ };
3578
+ const serializeAws_json1_0TimeBasedCollectionScheme = (input, context) => {
3579
+ return {
3580
+ ...(input.periodMs != null && { periodMs: input.periodMs }),
3581
+ };
3582
+ };
3583
+ const serializeAws_json1_0TimestreamResources = (input, context) => {
3584
+ return {
3585
+ ...(input.timestreamDatabaseName != null && { timestreamDatabaseName: input.timestreamDatabaseName }),
3586
+ ...(input.timestreamTableName != null && { timestreamTableName: input.timestreamTableName }),
3587
+ };
3588
+ };
3589
+ const serializeAws_json1_0UntagResourceRequest = (input, context) => {
3590
+ return {
3591
+ ...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
3592
+ ...(input.TagKeys != null && { TagKeys: serializeAws_json1_0TagKeyList(input.TagKeys, context) }),
3593
+ };
3594
+ };
3595
+ const serializeAws_json1_0UpdateCampaignRequest = (input, context) => {
3596
+ return {
3597
+ ...(input.action != null && { action: input.action }),
3598
+ ...(input.dataExtraDimensions != null && {
3599
+ dataExtraDimensions: serializeAws_json1_0DataExtraDimensionNodePathList(input.dataExtraDimensions, context),
3600
+ }),
3601
+ ...(input.description != null && { description: input.description }),
3602
+ ...(input.name != null && { name: input.name }),
3603
+ };
3604
+ };
3605
+ const serializeAws_json1_0UpdateDecoderManifestRequest = (input, context) => {
3606
+ return {
3607
+ ...(input.description != null && { description: input.description }),
3608
+ ...(input.name != null && { name: input.name }),
3609
+ ...(input.networkInterfacesToAdd != null && {
3610
+ networkInterfacesToAdd: serializeAws_json1_0NetworkInterfaces(input.networkInterfacesToAdd, context),
3611
+ }),
3612
+ ...(input.networkInterfacesToRemove != null && {
3613
+ networkInterfacesToRemove: serializeAws_json1_0InterfaceIds(input.networkInterfacesToRemove, context),
3614
+ }),
3615
+ ...(input.networkInterfacesToUpdate != null && {
3616
+ networkInterfacesToUpdate: serializeAws_json1_0NetworkInterfaces(input.networkInterfacesToUpdate, context),
3617
+ }),
3618
+ ...(input.signalDecodersToAdd != null && {
3619
+ signalDecodersToAdd: serializeAws_json1_0SignalDecoders(input.signalDecodersToAdd, context),
3620
+ }),
3621
+ ...(input.signalDecodersToRemove != null && {
3622
+ signalDecodersToRemove: serializeAws_json1_0Fqns(input.signalDecodersToRemove, context),
3623
+ }),
3624
+ ...(input.signalDecodersToUpdate != null && {
3625
+ signalDecodersToUpdate: serializeAws_json1_0SignalDecoders(input.signalDecodersToUpdate, context),
3626
+ }),
3627
+ ...(input.status != null && { status: input.status }),
3628
+ };
3629
+ };
3630
+ const serializeAws_json1_0UpdateFleetRequest = (input, context) => {
3631
+ return {
3632
+ ...(input.description != null && { description: input.description }),
3633
+ ...(input.fleetId != null && { fleetId: input.fleetId }),
3634
+ };
3635
+ };
3636
+ const serializeAws_json1_0UpdateModelManifestRequest = (input, context) => {
3637
+ return {
3638
+ ...(input.description != null && { description: input.description }),
3639
+ ...(input.name != null && { name: input.name }),
3640
+ ...(input.nodesToAdd != null && { nodesToAdd: serializeAws_json1_0NodePaths(input.nodesToAdd, context) }),
3641
+ ...(input.nodesToRemove != null && { nodesToRemove: serializeAws_json1_0NodePaths(input.nodesToRemove, context) }),
3642
+ ...(input.status != null && { status: input.status }),
3643
+ };
3644
+ };
3645
+ const serializeAws_json1_0UpdateSignalCatalogRequest = (input, context) => {
3646
+ return {
3647
+ ...(input.description != null && { description: input.description }),
3648
+ ...(input.name != null && { name: input.name }),
3649
+ ...(input.nodesToAdd != null && { nodesToAdd: serializeAws_json1_0Nodes(input.nodesToAdd, context) }),
3650
+ ...(input.nodesToRemove != null && { nodesToRemove: serializeAws_json1_0NodePaths(input.nodesToRemove, context) }),
3651
+ ...(input.nodesToUpdate != null && { nodesToUpdate: serializeAws_json1_0Nodes(input.nodesToUpdate, context) }),
3652
+ };
3653
+ };
3654
+ const serializeAws_json1_0UpdateVehicleRequest = (input, context) => {
3655
+ return {
3656
+ ...(input.attributeUpdateMode != null && { attributeUpdateMode: input.attributeUpdateMode }),
3657
+ ...(input.attributes != null && { attributes: serializeAws_json1_0attributesMap(input.attributes, context) }),
3658
+ ...(input.decoderManifestArn != null && { decoderManifestArn: input.decoderManifestArn }),
3659
+ ...(input.modelManifestArn != null && { modelManifestArn: input.modelManifestArn }),
3660
+ ...(input.vehicleName != null && { vehicleName: input.vehicleName }),
3661
+ };
3662
+ };
3663
+ const serializeAws_json1_0UpdateVehicleRequestItem = (input, context) => {
3664
+ return {
3665
+ ...(input.attributeUpdateMode != null && { attributeUpdateMode: input.attributeUpdateMode }),
3666
+ ...(input.attributes != null && { attributes: serializeAws_json1_0attributesMap(input.attributes, context) }),
3667
+ ...(input.decoderManifestArn != null && { decoderManifestArn: input.decoderManifestArn }),
3668
+ ...(input.modelManifestArn != null && { modelManifestArn: input.modelManifestArn }),
3669
+ ...(input.vehicleName != null && { vehicleName: input.vehicleName }),
3670
+ };
3671
+ };
3672
+ const serializeAws_json1_0updateVehicleRequestItems = (input, context) => {
3673
+ return input
3674
+ .filter((e) => e != null)
3675
+ .map((entry) => {
3676
+ return serializeAws_json1_0UpdateVehicleRequestItem(entry, context);
3677
+ });
3678
+ };
3679
+ const deserializeAws_json1_0AccessDeniedException = (output, context) => {
3680
+ return {
3681
+ message: (0, smithy_client_1.expectString)(output.message),
3682
+ };
3683
+ };
3684
+ const deserializeAws_json1_0Actuator = (output, context) => {
3685
+ return {
3686
+ allowedValues: output.allowedValues != null ? deserializeAws_json1_0listOfStrings(output.allowedValues, context) : undefined,
3687
+ assignedValue: (0, smithy_client_1.expectString)(output.assignedValue),
3688
+ dataType: (0, smithy_client_1.expectString)(output.dataType),
3689
+ description: (0, smithy_client_1.expectString)(output.description),
3690
+ fullyQualifiedName: (0, smithy_client_1.expectString)(output.fullyQualifiedName),
3691
+ max: (0, smithy_client_1.limitedParseDouble)(output.max),
3692
+ min: (0, smithy_client_1.limitedParseDouble)(output.min),
3693
+ unit: (0, smithy_client_1.expectString)(output.unit),
3694
+ };
3695
+ };
3696
+ const deserializeAws_json1_0AssociateVehicleFleetResponse = (output, context) => {
3697
+ return {};
3698
+ };
3699
+ const deserializeAws_json1_0Attribute = (output, context) => {
3700
+ return {
3701
+ allowedValues: output.allowedValues != null ? deserializeAws_json1_0listOfStrings(output.allowedValues, context) : undefined,
3702
+ assignedValue: (0, smithy_client_1.expectString)(output.assignedValue),
3703
+ dataType: (0, smithy_client_1.expectString)(output.dataType),
3704
+ defaultValue: (0, smithy_client_1.expectString)(output.defaultValue),
3705
+ description: (0, smithy_client_1.expectString)(output.description),
3706
+ fullyQualifiedName: (0, smithy_client_1.expectString)(output.fullyQualifiedName),
3707
+ max: (0, smithy_client_1.limitedParseDouble)(output.max),
3708
+ min: (0, smithy_client_1.limitedParseDouble)(output.min),
3709
+ unit: (0, smithy_client_1.expectString)(output.unit),
3710
+ };
3711
+ };
3712
+ const deserializeAws_json1_0attributesMap = (output, context) => {
3713
+ return Object.entries(output).reduce((acc, [key, value]) => {
3714
+ if (value === null) {
3715
+ return acc;
3716
+ }
3717
+ return {
3718
+ ...acc,
3719
+ [key]: (0, smithy_client_1.expectString)(value),
3720
+ };
3721
+ }, {});
3722
+ };
3723
+ const deserializeAws_json1_0BatchCreateVehicleResponse = (output, context) => {
3724
+ return {
3725
+ errors: output.errors != null ? deserializeAws_json1_0createVehicleErrors(output.errors, context) : undefined,
3726
+ vehicles: output.vehicles != null ? deserializeAws_json1_0createVehicleResponses(output.vehicles, context) : undefined,
3727
+ };
3728
+ };
3729
+ const deserializeAws_json1_0BatchUpdateVehicleResponse = (output, context) => {
3730
+ return {
3731
+ errors: output.errors != null ? deserializeAws_json1_0updateVehicleErrors(output.errors, context) : undefined,
3732
+ vehicles: output.vehicles != null ? deserializeAws_json1_0updateVehicleResponseItems(output.vehicles, context) : undefined,
3733
+ };
3734
+ };
3735
+ const deserializeAws_json1_0Branch = (output, context) => {
3736
+ return {
3737
+ description: (0, smithy_client_1.expectString)(output.description),
3738
+ fullyQualifiedName: (0, smithy_client_1.expectString)(output.fullyQualifiedName),
3739
+ };
3740
+ };
3741
+ const deserializeAws_json1_0campaignSummaries = (output, context) => {
3742
+ const retVal = (output || [])
3743
+ .filter((e) => e != null)
3744
+ .map((entry) => {
3745
+ if (entry === null) {
3746
+ return null;
3747
+ }
3748
+ return deserializeAws_json1_0CampaignSummary(entry, context);
3749
+ });
3750
+ return retVal;
3751
+ };
3752
+ const deserializeAws_json1_0CampaignSummary = (output, context) => {
3753
+ return {
3754
+ arn: (0, smithy_client_1.expectString)(output.arn),
3755
+ creationTime: output.creationTime != null
3756
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
3757
+ : undefined,
3758
+ description: (0, smithy_client_1.expectString)(output.description),
3759
+ lastModificationTime: output.lastModificationTime != null
3760
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastModificationTime)))
3761
+ : undefined,
3762
+ name: (0, smithy_client_1.expectString)(output.name),
3763
+ signalCatalogArn: (0, smithy_client_1.expectString)(output.signalCatalogArn),
3764
+ status: (0, smithy_client_1.expectString)(output.status),
3765
+ targetArn: (0, smithy_client_1.expectString)(output.targetArn),
3766
+ };
3767
+ };
3768
+ const deserializeAws_json1_0CanInterface = (output, context) => {
3769
+ return {
3770
+ name: (0, smithy_client_1.expectString)(output.name),
3771
+ protocolName: (0, smithy_client_1.expectString)(output.protocolName),
3772
+ protocolVersion: (0, smithy_client_1.expectString)(output.protocolVersion),
3773
+ };
3774
+ };
3775
+ const deserializeAws_json1_0CanSignal = (output, context) => {
3776
+ return {
3777
+ factor: (0, smithy_client_1.limitedParseDouble)(output.factor),
3778
+ isBigEndian: (0, smithy_client_1.expectBoolean)(output.isBigEndian),
3779
+ isSigned: (0, smithy_client_1.expectBoolean)(output.isSigned),
3780
+ length: (0, smithy_client_1.expectInt32)(output.length),
3781
+ messageId: (0, smithy_client_1.expectInt32)(output.messageId),
3782
+ name: (0, smithy_client_1.expectString)(output.name),
3783
+ offset: (0, smithy_client_1.limitedParseDouble)(output.offset),
3784
+ startBit: (0, smithy_client_1.expectInt32)(output.startBit),
3785
+ };
3786
+ };
3787
+ const deserializeAws_json1_0CloudWatchLogDeliveryOptions = (output, context) => {
3788
+ return {
3789
+ logGroupName: (0, smithy_client_1.expectString)(output.logGroupName),
3790
+ logType: (0, smithy_client_1.expectString)(output.logType),
3791
+ };
3792
+ };
3793
+ const deserializeAws_json1_0CollectionScheme = (output, context) => {
3794
+ if (output.conditionBasedCollectionScheme != null) {
3795
+ return {
3796
+ conditionBasedCollectionScheme: deserializeAws_json1_0ConditionBasedCollectionScheme(output.conditionBasedCollectionScheme, context),
3797
+ };
3798
+ }
3799
+ if (output.timeBasedCollectionScheme != null) {
3800
+ return {
3801
+ timeBasedCollectionScheme: deserializeAws_json1_0TimeBasedCollectionScheme(output.timeBasedCollectionScheme, context),
3802
+ };
3803
+ }
3804
+ return { $unknown: Object.entries(output)[0] };
3805
+ };
3806
+ const deserializeAws_json1_0ConditionBasedCollectionScheme = (output, context) => {
3807
+ return {
3808
+ conditionLanguageVersion: (0, smithy_client_1.expectInt32)(output.conditionLanguageVersion),
3809
+ expression: (0, smithy_client_1.expectString)(output.expression),
3810
+ minimumTriggerIntervalMs: (0, smithy_client_1.expectLong)(output.minimumTriggerIntervalMs),
3811
+ triggerMode: (0, smithy_client_1.expectString)(output.triggerMode),
3812
+ };
3813
+ };
3814
+ const deserializeAws_json1_0ConflictException = (output, context) => {
3815
+ return {
3816
+ message: (0, smithy_client_1.expectString)(output.message),
3817
+ resource: (0, smithy_client_1.expectString)(output.resource),
3818
+ resourceType: (0, smithy_client_1.expectString)(output.resourceType),
3819
+ };
3820
+ };
3821
+ const deserializeAws_json1_0CreateCampaignResponse = (output, context) => {
3822
+ return {
3823
+ arn: (0, smithy_client_1.expectString)(output.arn),
3824
+ name: (0, smithy_client_1.expectString)(output.name),
3825
+ };
3826
+ };
3827
+ const deserializeAws_json1_0CreateDecoderManifestResponse = (output, context) => {
3828
+ return {
3829
+ arn: (0, smithy_client_1.expectString)(output.arn),
3830
+ name: (0, smithy_client_1.expectString)(output.name),
3831
+ };
3832
+ };
3833
+ const deserializeAws_json1_0CreateFleetResponse = (output, context) => {
3834
+ return {
3835
+ arn: (0, smithy_client_1.expectString)(output.arn),
3836
+ id: (0, smithy_client_1.expectString)(output.id),
3837
+ };
3838
+ };
3839
+ const deserializeAws_json1_0CreateModelManifestResponse = (output, context) => {
3840
+ return {
3841
+ arn: (0, smithy_client_1.expectString)(output.arn),
3842
+ name: (0, smithy_client_1.expectString)(output.name),
3843
+ };
3844
+ };
3845
+ const deserializeAws_json1_0CreateSignalCatalogResponse = (output, context) => {
3846
+ return {
3847
+ arn: (0, smithy_client_1.expectString)(output.arn),
3848
+ name: (0, smithy_client_1.expectString)(output.name),
3849
+ };
3850
+ };
3851
+ const deserializeAws_json1_0CreateVehicleError = (output, context) => {
3852
+ return {
3853
+ code: (0, smithy_client_1.expectString)(output.code),
3854
+ message: (0, smithy_client_1.expectString)(output.message),
3855
+ vehicleName: (0, smithy_client_1.expectString)(output.vehicleName),
3856
+ };
3857
+ };
3858
+ const deserializeAws_json1_0createVehicleErrors = (output, context) => {
3859
+ const retVal = (output || [])
3860
+ .filter((e) => e != null)
3861
+ .map((entry) => {
3862
+ if (entry === null) {
3863
+ return null;
3864
+ }
3865
+ return deserializeAws_json1_0CreateVehicleError(entry, context);
3866
+ });
3867
+ return retVal;
3868
+ };
3869
+ const deserializeAws_json1_0CreateVehicleResponse = (output, context) => {
3870
+ return {
3871
+ arn: (0, smithy_client_1.expectString)(output.arn),
3872
+ thingArn: (0, smithy_client_1.expectString)(output.thingArn),
3873
+ vehicleName: (0, smithy_client_1.expectString)(output.vehicleName),
3874
+ };
3875
+ };
3876
+ const deserializeAws_json1_0CreateVehicleResponseItem = (output, context) => {
3877
+ return {
3878
+ arn: (0, smithy_client_1.expectString)(output.arn),
3879
+ thingArn: (0, smithy_client_1.expectString)(output.thingArn),
3880
+ vehicleName: (0, smithy_client_1.expectString)(output.vehicleName),
3881
+ };
3882
+ };
3883
+ const deserializeAws_json1_0createVehicleResponses = (output, context) => {
3884
+ const retVal = (output || [])
3885
+ .filter((e) => e != null)
3886
+ .map((entry) => {
3887
+ if (entry === null) {
3888
+ return null;
3889
+ }
3890
+ return deserializeAws_json1_0CreateVehicleResponseItem(entry, context);
3891
+ });
3892
+ return retVal;
3893
+ };
3894
+ const deserializeAws_json1_0DataExtraDimensionNodePathList = (output, context) => {
3895
+ const retVal = (output || [])
3896
+ .filter((e) => e != null)
3897
+ .map((entry) => {
3898
+ if (entry === null) {
3899
+ return null;
3900
+ }
3901
+ return (0, smithy_client_1.expectString)(entry);
3902
+ });
3903
+ return retVal;
3904
+ };
3905
+ const deserializeAws_json1_0decoderManifestSummaries = (output, context) => {
3906
+ const retVal = (output || [])
3907
+ .filter((e) => e != null)
3908
+ .map((entry) => {
3909
+ if (entry === null) {
3910
+ return null;
3911
+ }
3912
+ return deserializeAws_json1_0DecoderManifestSummary(entry, context);
3913
+ });
3914
+ return retVal;
3915
+ };
3916
+ const deserializeAws_json1_0DecoderManifestSummary = (output, context) => {
3917
+ return {
3918
+ arn: (0, smithy_client_1.expectString)(output.arn),
3919
+ creationTime: output.creationTime != null
3920
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
3921
+ : undefined,
3922
+ description: (0, smithy_client_1.expectString)(output.description),
3923
+ lastModificationTime: output.lastModificationTime != null
3924
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastModificationTime)))
3925
+ : undefined,
3926
+ modelManifestArn: (0, smithy_client_1.expectString)(output.modelManifestArn),
3927
+ name: (0, smithy_client_1.expectString)(output.name),
3928
+ status: (0, smithy_client_1.expectString)(output.status),
3929
+ };
3930
+ };
3931
+ const deserializeAws_json1_0DecoderManifestValidationException = (output, context) => {
3932
+ return {
3933
+ invalidNetworkInterfaces: output.invalidNetworkInterfaces != null
3934
+ ? deserializeAws_json1_0InvalidNetworkInterfaces(output.invalidNetworkInterfaces, context)
3935
+ : undefined,
3936
+ invalidSignals: output.invalidSignals != null
3937
+ ? deserializeAws_json1_0InvalidSignalDecoders(output.invalidSignals, context)
3938
+ : undefined,
3939
+ };
3940
+ };
3941
+ const deserializeAws_json1_0DeleteCampaignResponse = (output, context) => {
3942
+ return {
3943
+ arn: (0, smithy_client_1.expectString)(output.arn),
3944
+ name: (0, smithy_client_1.expectString)(output.name),
3945
+ };
3946
+ };
3947
+ const deserializeAws_json1_0DeleteDecoderManifestResponse = (output, context) => {
3948
+ return {
3949
+ arn: (0, smithy_client_1.expectString)(output.arn),
3950
+ name: (0, smithy_client_1.expectString)(output.name),
3951
+ };
3952
+ };
3953
+ const deserializeAws_json1_0DeleteFleetResponse = (output, context) => {
3954
+ return {
3955
+ arn: (0, smithy_client_1.expectString)(output.arn),
3956
+ id: (0, smithy_client_1.expectString)(output.id),
3957
+ };
3958
+ };
3959
+ const deserializeAws_json1_0DeleteModelManifestResponse = (output, context) => {
3960
+ return {
3961
+ arn: (0, smithy_client_1.expectString)(output.arn),
3962
+ name: (0, smithy_client_1.expectString)(output.name),
3963
+ };
3964
+ };
3965
+ const deserializeAws_json1_0DeleteSignalCatalogResponse = (output, context) => {
3966
+ return {
3967
+ arn: (0, smithy_client_1.expectString)(output.arn),
3968
+ name: (0, smithy_client_1.expectString)(output.name),
3969
+ };
3970
+ };
3971
+ const deserializeAws_json1_0DeleteVehicleResponse = (output, context) => {
3972
+ return {
3973
+ arn: (0, smithy_client_1.expectString)(output.arn),
3974
+ vehicleName: (0, smithy_client_1.expectString)(output.vehicleName),
3975
+ };
3976
+ };
3977
+ const deserializeAws_json1_0DisassociateVehicleFleetResponse = (output, context) => {
3978
+ return {};
3979
+ };
3980
+ const deserializeAws_json1_0fleets = (output, context) => {
3981
+ const retVal = (output || [])
3982
+ .filter((e) => e != null)
3983
+ .map((entry) => {
3984
+ if (entry === null) {
3985
+ return null;
3986
+ }
3987
+ return (0, smithy_client_1.expectString)(entry);
3988
+ });
3989
+ return retVal;
3990
+ };
3991
+ const deserializeAws_json1_0fleetSummaries = (output, context) => {
3992
+ const retVal = (output || [])
3993
+ .filter((e) => e != null)
3994
+ .map((entry) => {
3995
+ if (entry === null) {
3996
+ return null;
3997
+ }
3998
+ return deserializeAws_json1_0FleetSummary(entry, context);
3999
+ });
4000
+ return retVal;
4001
+ };
4002
+ const deserializeAws_json1_0FleetSummary = (output, context) => {
4003
+ return {
4004
+ arn: (0, smithy_client_1.expectString)(output.arn),
4005
+ creationTime: output.creationTime != null
4006
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
4007
+ : undefined,
4008
+ description: (0, smithy_client_1.expectString)(output.description),
4009
+ id: (0, smithy_client_1.expectString)(output.id),
4010
+ lastModificationTime: output.lastModificationTime != null
4011
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastModificationTime)))
4012
+ : undefined,
4013
+ signalCatalogArn: (0, smithy_client_1.expectString)(output.signalCatalogArn),
4014
+ };
4015
+ };
4016
+ const deserializeAws_json1_0GetCampaignResponse = (output, context) => {
4017
+ return {
4018
+ arn: (0, smithy_client_1.expectString)(output.arn),
4019
+ collectionScheme: output.collectionScheme != null
4020
+ ? deserializeAws_json1_0CollectionScheme((0, smithy_client_1.expectUnion)(output.collectionScheme), context)
4021
+ : undefined,
4022
+ compression: (0, smithy_client_1.expectString)(output.compression),
4023
+ creationTime: output.creationTime != null
4024
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
4025
+ : undefined,
4026
+ dataExtraDimensions: output.dataExtraDimensions != null
4027
+ ? deserializeAws_json1_0DataExtraDimensionNodePathList(output.dataExtraDimensions, context)
4028
+ : undefined,
4029
+ description: (0, smithy_client_1.expectString)(output.description),
4030
+ diagnosticsMode: (0, smithy_client_1.expectString)(output.diagnosticsMode),
4031
+ expiryTime: output.expiryTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.expiryTime))) : undefined,
4032
+ lastModificationTime: output.lastModificationTime != null
4033
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastModificationTime)))
4034
+ : undefined,
4035
+ name: (0, smithy_client_1.expectString)(output.name),
4036
+ postTriggerCollectionDuration: (0, smithy_client_1.expectLong)(output.postTriggerCollectionDuration),
4037
+ priority: (0, smithy_client_1.expectInt32)(output.priority),
4038
+ signalCatalogArn: (0, smithy_client_1.expectString)(output.signalCatalogArn),
4039
+ signalsToCollect: output.signalsToCollect != null
4040
+ ? deserializeAws_json1_0SignalInformationList(output.signalsToCollect, context)
4041
+ : undefined,
4042
+ spoolingMode: (0, smithy_client_1.expectString)(output.spoolingMode),
4043
+ startTime: output.startTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime))) : undefined,
4044
+ status: (0, smithy_client_1.expectString)(output.status),
4045
+ targetArn: (0, smithy_client_1.expectString)(output.targetArn),
4046
+ };
4047
+ };
4048
+ const deserializeAws_json1_0GetDecoderManifestResponse = (output, context) => {
4049
+ return {
4050
+ arn: (0, smithy_client_1.expectString)(output.arn),
4051
+ creationTime: output.creationTime != null
4052
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
4053
+ : undefined,
4054
+ description: (0, smithy_client_1.expectString)(output.description),
4055
+ lastModificationTime: output.lastModificationTime != null
4056
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastModificationTime)))
4057
+ : undefined,
4058
+ modelManifestArn: (0, smithy_client_1.expectString)(output.modelManifestArn),
4059
+ name: (0, smithy_client_1.expectString)(output.name),
4060
+ status: (0, smithy_client_1.expectString)(output.status),
4061
+ };
4062
+ };
4063
+ const deserializeAws_json1_0GetFleetResponse = (output, context) => {
4064
+ return {
4065
+ arn: (0, smithy_client_1.expectString)(output.arn),
4066
+ creationTime: output.creationTime != null
4067
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
4068
+ : undefined,
4069
+ description: (0, smithy_client_1.expectString)(output.description),
4070
+ id: (0, smithy_client_1.expectString)(output.id),
4071
+ lastModificationTime: output.lastModificationTime != null
4072
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastModificationTime)))
4073
+ : undefined,
4074
+ signalCatalogArn: (0, smithy_client_1.expectString)(output.signalCatalogArn),
4075
+ };
4076
+ };
4077
+ const deserializeAws_json1_0GetLoggingOptionsResponse = (output, context) => {
4078
+ return {
4079
+ cloudWatchLogDelivery: output.cloudWatchLogDelivery != null
4080
+ ? deserializeAws_json1_0CloudWatchLogDeliveryOptions(output.cloudWatchLogDelivery, context)
4081
+ : undefined,
4082
+ };
4083
+ };
4084
+ const deserializeAws_json1_0GetModelManifestResponse = (output, context) => {
4085
+ return {
4086
+ arn: (0, smithy_client_1.expectString)(output.arn),
4087
+ creationTime: output.creationTime != null
4088
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
4089
+ : undefined,
4090
+ description: (0, smithy_client_1.expectString)(output.description),
4091
+ lastModificationTime: output.lastModificationTime != null
4092
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastModificationTime)))
4093
+ : undefined,
4094
+ name: (0, smithy_client_1.expectString)(output.name),
4095
+ signalCatalogArn: (0, smithy_client_1.expectString)(output.signalCatalogArn),
4096
+ status: (0, smithy_client_1.expectString)(output.status),
4097
+ };
4098
+ };
4099
+ const deserializeAws_json1_0GetRegisterAccountStatusResponse = (output, context) => {
4100
+ return {
4101
+ accountStatus: (0, smithy_client_1.expectString)(output.accountStatus),
4102
+ creationTime: output.creationTime != null
4103
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
4104
+ : undefined,
4105
+ customerAccountId: (0, smithy_client_1.expectString)(output.customerAccountId),
4106
+ iamRegistrationResponse: output.iamRegistrationResponse != null
4107
+ ? deserializeAws_json1_0IamRegistrationResponse(output.iamRegistrationResponse, context)
4108
+ : undefined,
4109
+ lastModificationTime: output.lastModificationTime != null
4110
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastModificationTime)))
4111
+ : undefined,
4112
+ timestreamRegistrationResponse: output.timestreamRegistrationResponse != null
4113
+ ? deserializeAws_json1_0TimestreamRegistrationResponse(output.timestreamRegistrationResponse, context)
4114
+ : undefined,
4115
+ };
4116
+ };
4117
+ const deserializeAws_json1_0GetSignalCatalogResponse = (output, context) => {
4118
+ return {
4119
+ arn: (0, smithy_client_1.expectString)(output.arn),
4120
+ creationTime: output.creationTime != null
4121
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
4122
+ : undefined,
4123
+ description: (0, smithy_client_1.expectString)(output.description),
4124
+ lastModificationTime: output.lastModificationTime != null
4125
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastModificationTime)))
4126
+ : undefined,
4127
+ name: (0, smithy_client_1.expectString)(output.name),
4128
+ nodeCounts: output.nodeCounts != null ? deserializeAws_json1_0NodeCounts(output.nodeCounts, context) : undefined,
4129
+ };
4130
+ };
4131
+ const deserializeAws_json1_0GetVehicleResponse = (output, context) => {
4132
+ return {
4133
+ arn: (0, smithy_client_1.expectString)(output.arn),
4134
+ attributes: output.attributes != null ? deserializeAws_json1_0attributesMap(output.attributes, context) : undefined,
4135
+ creationTime: output.creationTime != null
4136
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
4137
+ : undefined,
4138
+ decoderManifestArn: (0, smithy_client_1.expectString)(output.decoderManifestArn),
4139
+ lastModificationTime: output.lastModificationTime != null
4140
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastModificationTime)))
4141
+ : undefined,
4142
+ modelManifestArn: (0, smithy_client_1.expectString)(output.modelManifestArn),
4143
+ vehicleName: (0, smithy_client_1.expectString)(output.vehicleName),
4144
+ };
4145
+ };
4146
+ const deserializeAws_json1_0GetVehicleStatusResponse = (output, context) => {
4147
+ return {
4148
+ campaigns: output.campaigns != null ? deserializeAws_json1_0VehicleStatusList(output.campaigns, context) : undefined,
4149
+ nextToken: (0, smithy_client_1.expectString)(output.nextToken),
4150
+ };
4151
+ };
4152
+ const deserializeAws_json1_0IamRegistrationResponse = (output, context) => {
4153
+ return {
4154
+ errorMessage: (0, smithy_client_1.expectString)(output.errorMessage),
4155
+ registrationStatus: (0, smithy_client_1.expectString)(output.registrationStatus),
4156
+ roleArn: (0, smithy_client_1.expectString)(output.roleArn),
4157
+ };
4158
+ };
4159
+ const deserializeAws_json1_0IamResources = (output, context) => {
4160
+ return {
4161
+ roleArn: (0, smithy_client_1.expectString)(output.roleArn),
4162
+ };
4163
+ };
4164
+ const deserializeAws_json1_0ImportDecoderManifestResponse = (output, context) => {
4165
+ return {
4166
+ arn: (0, smithy_client_1.expectString)(output.arn),
4167
+ name: (0, smithy_client_1.expectString)(output.name),
4168
+ };
4169
+ };
4170
+ const deserializeAws_json1_0ImportSignalCatalogResponse = (output, context) => {
4171
+ return {
4172
+ arn: (0, smithy_client_1.expectString)(output.arn),
4173
+ name: (0, smithy_client_1.expectString)(output.name),
4174
+ };
4175
+ };
4176
+ const deserializeAws_json1_0InternalServerException = (output, context) => {
4177
+ return {
4178
+ message: (0, smithy_client_1.expectString)(output.message),
4179
+ retryAfterSeconds: (0, smithy_client_1.expectInt32)(output.retryAfterSeconds),
4180
+ };
4181
+ };
4182
+ const deserializeAws_json1_0InvalidNetworkInterface = (output, context) => {
4183
+ return {
4184
+ interfaceId: (0, smithy_client_1.expectString)(output.interfaceId),
4185
+ reason: (0, smithy_client_1.expectString)(output.reason),
4186
+ };
4187
+ };
4188
+ const deserializeAws_json1_0InvalidNetworkInterfaces = (output, context) => {
4189
+ const retVal = (output || [])
4190
+ .filter((e) => e != null)
4191
+ .map((entry) => {
4192
+ if (entry === null) {
4193
+ return null;
4194
+ }
4195
+ return deserializeAws_json1_0InvalidNetworkInterface(entry, context);
4196
+ });
4197
+ return retVal;
4198
+ };
4199
+ const deserializeAws_json1_0InvalidNodeException = (output, context) => {
4200
+ return {
4201
+ invalidNodes: output.invalidNodes != null ? deserializeAws_json1_0Nodes(output.invalidNodes, context) : undefined,
4202
+ reason: (0, smithy_client_1.expectString)(output.reason),
4203
+ };
4204
+ };
4205
+ const deserializeAws_json1_0InvalidSignal = (output, context) => {
4206
+ return {
4207
+ name: (0, smithy_client_1.expectString)(output.name),
4208
+ reason: (0, smithy_client_1.expectString)(output.reason),
4209
+ };
4210
+ };
4211
+ const deserializeAws_json1_0InvalidSignalDecoder = (output, context) => {
4212
+ return {
4213
+ name: (0, smithy_client_1.expectString)(output.name),
4214
+ reason: (0, smithy_client_1.expectString)(output.reason),
4215
+ };
4216
+ };
4217
+ const deserializeAws_json1_0InvalidSignalDecoders = (output, context) => {
4218
+ const retVal = (output || [])
4219
+ .filter((e) => e != null)
4220
+ .map((entry) => {
4221
+ if (entry === null) {
4222
+ return null;
4223
+ }
4224
+ return deserializeAws_json1_0InvalidSignalDecoder(entry, context);
4225
+ });
4226
+ return retVal;
4227
+ };
4228
+ const deserializeAws_json1_0InvalidSignals = (output, context) => {
4229
+ const retVal = (output || [])
4230
+ .filter((e) => e != null)
4231
+ .map((entry) => {
4232
+ if (entry === null) {
4233
+ return null;
4234
+ }
4235
+ return deserializeAws_json1_0InvalidSignal(entry, context);
4236
+ });
4237
+ return retVal;
4238
+ };
4239
+ const deserializeAws_json1_0InvalidSignalsException = (output, context) => {
4240
+ return {
4241
+ invalidSignals: output.invalidSignals != null ? deserializeAws_json1_0InvalidSignals(output.invalidSignals, context) : undefined,
4242
+ message: (0, smithy_client_1.expectString)(output.message),
4243
+ };
4244
+ };
4245
+ const deserializeAws_json1_0LimitExceededException = (output, context) => {
4246
+ return {
4247
+ message: (0, smithy_client_1.expectString)(output.message),
4248
+ resourceId: (0, smithy_client_1.expectString)(output.resourceId),
4249
+ resourceType: (0, smithy_client_1.expectString)(output.resourceType),
4250
+ };
4251
+ };
4252
+ const deserializeAws_json1_0ListCampaignsResponse = (output, context) => {
4253
+ return {
4254
+ campaignSummaries: output.campaignSummaries != null
4255
+ ? deserializeAws_json1_0campaignSummaries(output.campaignSummaries, context)
4256
+ : undefined,
4257
+ nextToken: (0, smithy_client_1.expectString)(output.nextToken),
4258
+ };
4259
+ };
4260
+ const deserializeAws_json1_0ListDecoderManifestNetworkInterfacesResponse = (output, context) => {
4261
+ return {
4262
+ networkInterfaces: output.networkInterfaces != null
4263
+ ? deserializeAws_json1_0NetworkInterfaces(output.networkInterfaces, context)
4264
+ : undefined,
4265
+ nextToken: (0, smithy_client_1.expectString)(output.nextToken),
4266
+ };
4267
+ };
4268
+ const deserializeAws_json1_0ListDecoderManifestSignalsResponse = (output, context) => {
4269
+ return {
4270
+ nextToken: (0, smithy_client_1.expectString)(output.nextToken),
4271
+ signalDecoders: output.signalDecoders != null ? deserializeAws_json1_0SignalDecoders(output.signalDecoders, context) : undefined,
4272
+ };
4273
+ };
4274
+ const deserializeAws_json1_0ListDecoderManifestsResponse = (output, context) => {
4275
+ return {
4276
+ nextToken: (0, smithy_client_1.expectString)(output.nextToken),
4277
+ summaries: output.summaries != null ? deserializeAws_json1_0decoderManifestSummaries(output.summaries, context) : undefined,
4278
+ };
4279
+ };
4280
+ const deserializeAws_json1_0ListFleetsForVehicleResponse = (output, context) => {
4281
+ return {
4282
+ fleets: output.fleets != null ? deserializeAws_json1_0fleets(output.fleets, context) : undefined,
4283
+ nextToken: (0, smithy_client_1.expectString)(output.nextToken),
4284
+ };
4285
+ };
4286
+ const deserializeAws_json1_0ListFleetsResponse = (output, context) => {
4287
+ return {
4288
+ fleetSummaries: output.fleetSummaries != null ? deserializeAws_json1_0fleetSummaries(output.fleetSummaries, context) : undefined,
4289
+ nextToken: (0, smithy_client_1.expectString)(output.nextToken),
4290
+ };
4291
+ };
4292
+ const deserializeAws_json1_0ListModelManifestNodesResponse = (output, context) => {
4293
+ return {
4294
+ nextToken: (0, smithy_client_1.expectString)(output.nextToken),
4295
+ nodes: output.nodes != null ? deserializeAws_json1_0Nodes(output.nodes, context) : undefined,
4296
+ };
4297
+ };
4298
+ const deserializeAws_json1_0ListModelManifestsResponse = (output, context) => {
4299
+ return {
4300
+ nextToken: (0, smithy_client_1.expectString)(output.nextToken),
4301
+ summaries: output.summaries != null ? deserializeAws_json1_0modelManifestSummaries(output.summaries, context) : undefined,
4302
+ };
4303
+ };
4304
+ const deserializeAws_json1_0listOfStrings = (output, context) => {
4305
+ const retVal = (output || [])
4306
+ .filter((e) => e != null)
4307
+ .map((entry) => {
4308
+ if (entry === null) {
4309
+ return null;
4310
+ }
4311
+ return (0, smithy_client_1.expectString)(entry);
4312
+ });
4313
+ return retVal;
4314
+ };
4315
+ const deserializeAws_json1_0ListSignalCatalogNodesResponse = (output, context) => {
4316
+ return {
4317
+ nextToken: (0, smithy_client_1.expectString)(output.nextToken),
4318
+ nodes: output.nodes != null ? deserializeAws_json1_0Nodes(output.nodes, context) : undefined,
4319
+ };
4320
+ };
4321
+ const deserializeAws_json1_0ListSignalCatalogsResponse = (output, context) => {
4322
+ return {
4323
+ nextToken: (0, smithy_client_1.expectString)(output.nextToken),
4324
+ summaries: output.summaries != null ? deserializeAws_json1_0signalCatalogSummaries(output.summaries, context) : undefined,
4325
+ };
4326
+ };
4327
+ const deserializeAws_json1_0ListTagsForResourceResponse = (output, context) => {
4328
+ return {
4329
+ Tags: output.Tags != null ? deserializeAws_json1_0TagList(output.Tags, context) : undefined,
4330
+ };
4331
+ };
4332
+ const deserializeAws_json1_0ListVehiclesInFleetResponse = (output, context) => {
4333
+ return {
4334
+ nextToken: (0, smithy_client_1.expectString)(output.nextToken),
4335
+ vehicles: output.vehicles != null ? deserializeAws_json1_0vehicles(output.vehicles, context) : undefined,
4336
+ };
4337
+ };
4338
+ const deserializeAws_json1_0ListVehiclesResponse = (output, context) => {
4339
+ return {
4340
+ nextToken: (0, smithy_client_1.expectString)(output.nextToken),
4341
+ vehicleSummaries: output.vehicleSummaries != null
4342
+ ? deserializeAws_json1_0vehicleSummaries(output.vehicleSummaries, context)
4343
+ : undefined,
4344
+ };
4345
+ };
4346
+ const deserializeAws_json1_0modelManifestSummaries = (output, context) => {
4347
+ const retVal = (output || [])
4348
+ .filter((e) => e != null)
4349
+ .map((entry) => {
4350
+ if (entry === null) {
4351
+ return null;
4352
+ }
4353
+ return deserializeAws_json1_0ModelManifestSummary(entry, context);
4354
+ });
4355
+ return retVal;
4356
+ };
4357
+ const deserializeAws_json1_0ModelManifestSummary = (output, context) => {
4358
+ return {
4359
+ arn: (0, smithy_client_1.expectString)(output.arn),
4360
+ creationTime: output.creationTime != null
4361
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
4362
+ : undefined,
4363
+ description: (0, smithy_client_1.expectString)(output.description),
4364
+ lastModificationTime: output.lastModificationTime != null
4365
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastModificationTime)))
4366
+ : undefined,
4367
+ name: (0, smithy_client_1.expectString)(output.name),
4368
+ signalCatalogArn: (0, smithy_client_1.expectString)(output.signalCatalogArn),
4369
+ status: (0, smithy_client_1.expectString)(output.status),
4370
+ };
4371
+ };
4372
+ const deserializeAws_json1_0NetworkInterface = (output, context) => {
4373
+ return {
4374
+ canInterface: output.canInterface != null ? deserializeAws_json1_0CanInterface(output.canInterface, context) : undefined,
4375
+ interfaceId: (0, smithy_client_1.expectString)(output.interfaceId),
4376
+ obdInterface: output.obdInterface != null ? deserializeAws_json1_0ObdInterface(output.obdInterface, context) : undefined,
4377
+ type: (0, smithy_client_1.expectString)(output.type),
4378
+ };
4379
+ };
4380
+ const deserializeAws_json1_0NetworkInterfaces = (output, context) => {
4381
+ const retVal = (output || [])
4382
+ .filter((e) => e != null)
4383
+ .map((entry) => {
4384
+ if (entry === null) {
4385
+ return null;
4386
+ }
4387
+ return deserializeAws_json1_0NetworkInterface(entry, context);
4388
+ });
4389
+ return retVal;
4390
+ };
4391
+ const deserializeAws_json1_0Node = (output, context) => {
4392
+ if (output.actuator != null) {
4393
+ return {
4394
+ actuator: deserializeAws_json1_0Actuator(output.actuator, context),
4395
+ };
4396
+ }
4397
+ if (output.attribute != null) {
4398
+ return {
4399
+ attribute: deserializeAws_json1_0Attribute(output.attribute, context),
4400
+ };
4401
+ }
4402
+ if (output.branch != null) {
4403
+ return {
4404
+ branch: deserializeAws_json1_0Branch(output.branch, context),
4405
+ };
4406
+ }
4407
+ if (output.sensor != null) {
4408
+ return {
4409
+ sensor: deserializeAws_json1_0Sensor(output.sensor, context),
4410
+ };
4411
+ }
4412
+ return { $unknown: Object.entries(output)[0] };
4413
+ };
4414
+ const deserializeAws_json1_0NodeCounts = (output, context) => {
4415
+ return {
4416
+ totalActuators: (0, smithy_client_1.expectInt32)(output.totalActuators),
4417
+ totalAttributes: (0, smithy_client_1.expectInt32)(output.totalAttributes),
4418
+ totalBranches: (0, smithy_client_1.expectInt32)(output.totalBranches),
4419
+ totalNodes: (0, smithy_client_1.expectInt32)(output.totalNodes),
4420
+ totalSensors: (0, smithy_client_1.expectInt32)(output.totalSensors),
4421
+ };
4422
+ };
4423
+ const deserializeAws_json1_0Nodes = (output, context) => {
4424
+ const retVal = (output || [])
4425
+ .filter((e) => e != null)
4426
+ .map((entry) => {
4427
+ if (entry === null) {
4428
+ return null;
4429
+ }
4430
+ return deserializeAws_json1_0Node((0, smithy_client_1.expectUnion)(entry), context);
4431
+ });
4432
+ return retVal;
4433
+ };
4434
+ const deserializeAws_json1_0ObdInterface = (output, context) => {
4435
+ return {
4436
+ dtcRequestIntervalSeconds: (0, smithy_client_1.expectInt32)(output.dtcRequestIntervalSeconds),
4437
+ hasTransmissionEcu: (0, smithy_client_1.expectBoolean)(output.hasTransmissionEcu),
4438
+ name: (0, smithy_client_1.expectString)(output.name),
4439
+ obdStandard: (0, smithy_client_1.expectString)(output.obdStandard),
4440
+ pidRequestIntervalSeconds: (0, smithy_client_1.expectInt32)(output.pidRequestIntervalSeconds),
4441
+ requestMessageId: (0, smithy_client_1.expectInt32)(output.requestMessageId),
4442
+ useExtendedIds: (0, smithy_client_1.expectBoolean)(output.useExtendedIds),
4443
+ };
4444
+ };
4445
+ const deserializeAws_json1_0ObdSignal = (output, context) => {
4446
+ return {
4447
+ bitMaskLength: (0, smithy_client_1.expectInt32)(output.bitMaskLength),
4448
+ bitRightShift: (0, smithy_client_1.expectInt32)(output.bitRightShift),
4449
+ byteLength: (0, smithy_client_1.expectInt32)(output.byteLength),
4450
+ offset: (0, smithy_client_1.limitedParseDouble)(output.offset),
4451
+ pid: (0, smithy_client_1.expectInt32)(output.pid),
4452
+ pidResponseLength: (0, smithy_client_1.expectInt32)(output.pidResponseLength),
4453
+ scaling: (0, smithy_client_1.limitedParseDouble)(output.scaling),
4454
+ serviceMode: (0, smithy_client_1.expectInt32)(output.serviceMode),
4455
+ startByte: (0, smithy_client_1.expectInt32)(output.startByte),
4456
+ };
4457
+ };
4458
+ const deserializeAws_json1_0PutLoggingOptionsResponse = (output, context) => {
4459
+ return {};
4460
+ };
4461
+ const deserializeAws_json1_0RegisterAccountResponse = (output, context) => {
4462
+ return {
4463
+ creationTime: output.creationTime != null
4464
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
4465
+ : undefined,
4466
+ iamResources: output.iamResources != null ? deserializeAws_json1_0IamResources(output.iamResources, context) : undefined,
4467
+ lastModificationTime: output.lastModificationTime != null
4468
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastModificationTime)))
4469
+ : undefined,
4470
+ registerAccountStatus: (0, smithy_client_1.expectString)(output.registerAccountStatus),
4471
+ timestreamResources: output.timestreamResources != null
4472
+ ? deserializeAws_json1_0TimestreamResources(output.timestreamResources, context)
4473
+ : undefined,
4474
+ };
4475
+ };
4476
+ const deserializeAws_json1_0ResourceNotFoundException = (output, context) => {
4477
+ return {
4478
+ message: (0, smithy_client_1.expectString)(output.message),
4479
+ resourceId: (0, smithy_client_1.expectString)(output.resourceId),
4480
+ resourceType: (0, smithy_client_1.expectString)(output.resourceType),
4481
+ };
4482
+ };
4483
+ const deserializeAws_json1_0Sensor = (output, context) => {
4484
+ return {
4485
+ allowedValues: output.allowedValues != null ? deserializeAws_json1_0listOfStrings(output.allowedValues, context) : undefined,
4486
+ dataType: (0, smithy_client_1.expectString)(output.dataType),
4487
+ description: (0, smithy_client_1.expectString)(output.description),
4488
+ fullyQualifiedName: (0, smithy_client_1.expectString)(output.fullyQualifiedName),
4489
+ max: (0, smithy_client_1.limitedParseDouble)(output.max),
4490
+ min: (0, smithy_client_1.limitedParseDouble)(output.min),
4491
+ unit: (0, smithy_client_1.expectString)(output.unit),
4492
+ };
4493
+ };
4494
+ const deserializeAws_json1_0signalCatalogSummaries = (output, context) => {
4495
+ const retVal = (output || [])
4496
+ .filter((e) => e != null)
4497
+ .map((entry) => {
4498
+ if (entry === null) {
4499
+ return null;
4500
+ }
4501
+ return deserializeAws_json1_0SignalCatalogSummary(entry, context);
4502
+ });
4503
+ return retVal;
4504
+ };
4505
+ const deserializeAws_json1_0SignalCatalogSummary = (output, context) => {
4506
+ return {
4507
+ arn: (0, smithy_client_1.expectString)(output.arn),
4508
+ creationTime: output.creationTime != null
4509
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
4510
+ : undefined,
4511
+ lastModificationTime: output.lastModificationTime != null
4512
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastModificationTime)))
4513
+ : undefined,
4514
+ name: (0, smithy_client_1.expectString)(output.name),
4515
+ };
4516
+ };
4517
+ const deserializeAws_json1_0SignalDecoder = (output, context) => {
4518
+ return {
4519
+ canSignal: output.canSignal != null ? deserializeAws_json1_0CanSignal(output.canSignal, context) : undefined,
4520
+ fullyQualifiedName: (0, smithy_client_1.expectString)(output.fullyQualifiedName),
4521
+ interfaceId: (0, smithy_client_1.expectString)(output.interfaceId),
4522
+ obdSignal: output.obdSignal != null ? deserializeAws_json1_0ObdSignal(output.obdSignal, context) : undefined,
4523
+ type: (0, smithy_client_1.expectString)(output.type),
4524
+ };
4525
+ };
4526
+ const deserializeAws_json1_0SignalDecoders = (output, context) => {
4527
+ const retVal = (output || [])
4528
+ .filter((e) => e != null)
4529
+ .map((entry) => {
4530
+ if (entry === null) {
4531
+ return null;
4532
+ }
4533
+ return deserializeAws_json1_0SignalDecoder(entry, context);
4534
+ });
4535
+ return retVal;
4536
+ };
4537
+ const deserializeAws_json1_0SignalInformation = (output, context) => {
4538
+ return {
4539
+ maxSampleCount: (0, smithy_client_1.expectLong)(output.maxSampleCount),
4540
+ minimumSamplingIntervalMs: (0, smithy_client_1.expectLong)(output.minimumSamplingIntervalMs),
4541
+ name: (0, smithy_client_1.expectString)(output.name),
4542
+ };
4543
+ };
4544
+ const deserializeAws_json1_0SignalInformationList = (output, context) => {
4545
+ const retVal = (output || [])
4546
+ .filter((e) => e != null)
4547
+ .map((entry) => {
4548
+ if (entry === null) {
4549
+ return null;
4550
+ }
4551
+ return deserializeAws_json1_0SignalInformation(entry, context);
4552
+ });
4553
+ return retVal;
4554
+ };
4555
+ const deserializeAws_json1_0Tag = (output, context) => {
4556
+ return {
4557
+ Key: (0, smithy_client_1.expectString)(output.Key),
4558
+ Value: (0, smithy_client_1.expectString)(output.Value),
4559
+ };
4560
+ };
4561
+ const deserializeAws_json1_0TagList = (output, context) => {
4562
+ const retVal = (output || [])
4563
+ .filter((e) => e != null)
4564
+ .map((entry) => {
4565
+ if (entry === null) {
4566
+ return null;
4567
+ }
4568
+ return deserializeAws_json1_0Tag(entry, context);
4569
+ });
4570
+ return retVal;
4571
+ };
4572
+ const deserializeAws_json1_0TagResourceResponse = (output, context) => {
4573
+ return {};
4574
+ };
4575
+ const deserializeAws_json1_0ThrottlingException = (output, context) => {
4576
+ return {
4577
+ message: (0, smithy_client_1.expectString)(output.message),
4578
+ quotaCode: (0, smithy_client_1.expectString)(output.quotaCode),
4579
+ retryAfterSeconds: (0, smithy_client_1.expectInt32)(output.retryAfterSeconds),
4580
+ serviceCode: (0, smithy_client_1.expectString)(output.serviceCode),
4581
+ };
4582
+ };
4583
+ const deserializeAws_json1_0TimeBasedCollectionScheme = (output, context) => {
4584
+ return {
4585
+ periodMs: (0, smithy_client_1.expectLong)(output.periodMs),
4586
+ };
4587
+ };
4588
+ const deserializeAws_json1_0TimestreamRegistrationResponse = (output, context) => {
4589
+ return {
4590
+ errorMessage: (0, smithy_client_1.expectString)(output.errorMessage),
4591
+ registrationStatus: (0, smithy_client_1.expectString)(output.registrationStatus),
4592
+ timestreamDatabaseArn: (0, smithy_client_1.expectString)(output.timestreamDatabaseArn),
4593
+ timestreamDatabaseName: (0, smithy_client_1.expectString)(output.timestreamDatabaseName),
4594
+ timestreamTableArn: (0, smithy_client_1.expectString)(output.timestreamTableArn),
4595
+ timestreamTableName: (0, smithy_client_1.expectString)(output.timestreamTableName),
4596
+ };
4597
+ };
4598
+ const deserializeAws_json1_0TimestreamResources = (output, context) => {
4599
+ return {
4600
+ timestreamDatabaseName: (0, smithy_client_1.expectString)(output.timestreamDatabaseName),
4601
+ timestreamTableName: (0, smithy_client_1.expectString)(output.timestreamTableName),
4602
+ };
4603
+ };
4604
+ const deserializeAws_json1_0UntagResourceResponse = (output, context) => {
4605
+ return {};
4606
+ };
4607
+ const deserializeAws_json1_0UpdateCampaignResponse = (output, context) => {
4608
+ return {
4609
+ arn: (0, smithy_client_1.expectString)(output.arn),
4610
+ name: (0, smithy_client_1.expectString)(output.name),
4611
+ status: (0, smithy_client_1.expectString)(output.status),
4612
+ };
4613
+ };
4614
+ const deserializeAws_json1_0UpdateDecoderManifestResponse = (output, context) => {
4615
+ return {
4616
+ arn: (0, smithy_client_1.expectString)(output.arn),
4617
+ name: (0, smithy_client_1.expectString)(output.name),
4618
+ };
4619
+ };
4620
+ const deserializeAws_json1_0UpdateFleetResponse = (output, context) => {
4621
+ return {
4622
+ arn: (0, smithy_client_1.expectString)(output.arn),
4623
+ id: (0, smithy_client_1.expectString)(output.id),
4624
+ };
4625
+ };
4626
+ const deserializeAws_json1_0UpdateModelManifestResponse = (output, context) => {
4627
+ return {
4628
+ arn: (0, smithy_client_1.expectString)(output.arn),
4629
+ name: (0, smithy_client_1.expectString)(output.name),
4630
+ };
4631
+ };
4632
+ const deserializeAws_json1_0UpdateSignalCatalogResponse = (output, context) => {
4633
+ return {
4634
+ arn: (0, smithy_client_1.expectString)(output.arn),
4635
+ name: (0, smithy_client_1.expectString)(output.name),
4636
+ };
4637
+ };
4638
+ const deserializeAws_json1_0UpdateVehicleError = (output, context) => {
4639
+ return {
4640
+ code: (0, smithy_client_1.expectInt32)(output.code),
4641
+ message: (0, smithy_client_1.expectString)(output.message),
4642
+ vehicleName: (0, smithy_client_1.expectString)(output.vehicleName),
4643
+ };
4644
+ };
4645
+ const deserializeAws_json1_0updateVehicleErrors = (output, context) => {
4646
+ const retVal = (output || [])
4647
+ .filter((e) => e != null)
4648
+ .map((entry) => {
4649
+ if (entry === null) {
4650
+ return null;
4651
+ }
4652
+ return deserializeAws_json1_0UpdateVehicleError(entry, context);
4653
+ });
4654
+ return retVal;
4655
+ };
4656
+ const deserializeAws_json1_0UpdateVehicleResponse = (output, context) => {
4657
+ return {
4658
+ arn: (0, smithy_client_1.expectString)(output.arn),
4659
+ vehicleName: (0, smithy_client_1.expectString)(output.vehicleName),
4660
+ };
4661
+ };
4662
+ const deserializeAws_json1_0UpdateVehicleResponseItem = (output, context) => {
4663
+ return {
4664
+ arn: (0, smithy_client_1.expectString)(output.arn),
4665
+ vehicleName: (0, smithy_client_1.expectString)(output.vehicleName),
4666
+ };
4667
+ };
4668
+ const deserializeAws_json1_0updateVehicleResponseItems = (output, context) => {
4669
+ const retVal = (output || [])
4670
+ .filter((e) => e != null)
4671
+ .map((entry) => {
4672
+ if (entry === null) {
4673
+ return null;
4674
+ }
4675
+ return deserializeAws_json1_0UpdateVehicleResponseItem(entry, context);
4676
+ });
4677
+ return retVal;
4678
+ };
4679
+ const deserializeAws_json1_0ValidationException = (output, context) => {
4680
+ return {
4681
+ fieldList: output.fieldList != null
4682
+ ? deserializeAws_json1_0ValidationExceptionFieldList(output.fieldList, context)
4683
+ : undefined,
4684
+ message: (0, smithy_client_1.expectString)(output.message),
4685
+ reason: (0, smithy_client_1.expectString)(output.reason),
4686
+ };
4687
+ };
4688
+ const deserializeAws_json1_0ValidationExceptionField = (output, context) => {
4689
+ return {
4690
+ message: (0, smithy_client_1.expectString)(output.message),
4691
+ name: (0, smithy_client_1.expectString)(output.name),
4692
+ };
4693
+ };
4694
+ const deserializeAws_json1_0ValidationExceptionFieldList = (output, context) => {
4695
+ const retVal = (output || [])
4696
+ .filter((e) => e != null)
4697
+ .map((entry) => {
4698
+ if (entry === null) {
4699
+ return null;
4700
+ }
4701
+ return deserializeAws_json1_0ValidationExceptionField(entry, context);
4702
+ });
4703
+ return retVal;
4704
+ };
4705
+ const deserializeAws_json1_0vehicles = (output, context) => {
4706
+ const retVal = (output || [])
4707
+ .filter((e) => e != null)
4708
+ .map((entry) => {
4709
+ if (entry === null) {
4710
+ return null;
4711
+ }
4712
+ return (0, smithy_client_1.expectString)(entry);
4713
+ });
4714
+ return retVal;
4715
+ };
4716
+ const deserializeAws_json1_0VehicleStatus = (output, context) => {
4717
+ return {
4718
+ campaignName: (0, smithy_client_1.expectString)(output.campaignName),
4719
+ status: (0, smithy_client_1.expectString)(output.status),
4720
+ vehicleName: (0, smithy_client_1.expectString)(output.vehicleName),
4721
+ };
4722
+ };
4723
+ const deserializeAws_json1_0VehicleStatusList = (output, context) => {
4724
+ const retVal = (output || [])
4725
+ .filter((e) => e != null)
4726
+ .map((entry) => {
4727
+ if (entry === null) {
4728
+ return null;
4729
+ }
4730
+ return deserializeAws_json1_0VehicleStatus(entry, context);
4731
+ });
4732
+ return retVal;
4733
+ };
4734
+ const deserializeAws_json1_0vehicleSummaries = (output, context) => {
4735
+ const retVal = (output || [])
4736
+ .filter((e) => e != null)
4737
+ .map((entry) => {
4738
+ if (entry === null) {
4739
+ return null;
4740
+ }
4741
+ return deserializeAws_json1_0VehicleSummary(entry, context);
4742
+ });
4743
+ return retVal;
4744
+ };
4745
+ const deserializeAws_json1_0VehicleSummary = (output, context) => {
4746
+ return {
4747
+ arn: (0, smithy_client_1.expectString)(output.arn),
4748
+ creationTime: output.creationTime != null
4749
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
4750
+ : undefined,
4751
+ decoderManifestArn: (0, smithy_client_1.expectString)(output.decoderManifestArn),
4752
+ lastModificationTime: output.lastModificationTime != null
4753
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastModificationTime)))
4754
+ : undefined,
4755
+ modelManifestArn: (0, smithy_client_1.expectString)(output.modelManifestArn),
4756
+ vehicleName: (0, smithy_client_1.expectString)(output.vehicleName),
4757
+ };
4758
+ };
4759
+ const deserializeMetadata = (output) => {
4760
+ var _a;
4761
+ return ({
4762
+ httpStatusCode: output.statusCode,
4763
+ requestId: (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"],
4764
+ extendedRequestId: output.headers["x-amz-id-2"],
4765
+ cfId: output.headers["x-amz-cf-id"],
4766
+ });
4767
+ };
4768
+ const collectBody = (streamBody = new Uint8Array(), context) => {
4769
+ if (streamBody instanceof Uint8Array) {
4770
+ return Promise.resolve(streamBody);
4771
+ }
4772
+ return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
4773
+ };
4774
+ const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
4775
+ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
4776
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
4777
+ const contents = {
4778
+ protocol,
4779
+ hostname,
4780
+ port,
4781
+ method: "POST",
4782
+ path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
4783
+ headers,
4784
+ };
4785
+ if (resolvedHostname !== undefined) {
4786
+ contents.hostname = resolvedHostname;
4787
+ }
4788
+ if (body !== undefined) {
4789
+ contents.body = body;
4790
+ }
4791
+ return new protocol_http_1.HttpRequest(contents);
4792
+ };
4793
+ const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
4794
+ if (encoded.length) {
4795
+ return JSON.parse(encoded);
4796
+ }
4797
+ return {};
4798
+ });
4799
+ const loadRestJsonErrorCode = (output, data) => {
4800
+ const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
4801
+ const sanitizeErrorCode = (rawValue) => {
4802
+ let cleanValue = rawValue;
4803
+ if (typeof cleanValue === "number") {
4804
+ cleanValue = cleanValue.toString();
4805
+ }
4806
+ if (cleanValue.indexOf(",") >= 0) {
4807
+ cleanValue = cleanValue.split(",")[0];
4808
+ }
4809
+ if (cleanValue.indexOf(":") >= 0) {
4810
+ cleanValue = cleanValue.split(":")[0];
4811
+ }
4812
+ if (cleanValue.indexOf("#") >= 0) {
4813
+ cleanValue = cleanValue.split("#")[1];
4814
+ }
4815
+ return cleanValue;
4816
+ };
4817
+ const headerKey = findKey(output.headers, "x-amzn-errortype");
4818
+ if (headerKey !== undefined) {
4819
+ return sanitizeErrorCode(output.headers[headerKey]);
4820
+ }
4821
+ if (data.code !== undefined) {
4822
+ return sanitizeErrorCode(data.code);
4823
+ }
4824
+ if (data["__type"] !== undefined) {
4825
+ return sanitizeErrorCode(data["__type"]);
4826
+ }
4827
+ };