@aws-sdk/client-iot-managed-integrations 3.761.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 (359) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +661 -0
  3. package/dist-cjs/IoTManagedIntegrations.js +125 -0
  4. package/dist-cjs/IoTManagedIntegrationsClient.js +51 -0
  5. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
  6. package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
  7. package/dist-cjs/commands/CreateCredentialLockerCommand.js +27 -0
  8. package/dist-cjs/commands/CreateDestinationCommand.js +27 -0
  9. package/dist-cjs/commands/CreateEventLogConfigurationCommand.js +26 -0
  10. package/dist-cjs/commands/CreateManagedThingCommand.js +27 -0
  11. package/dist-cjs/commands/CreateNotificationConfigurationCommand.js +27 -0
  12. package/dist-cjs/commands/CreateOtaTaskCommand.js +27 -0
  13. package/dist-cjs/commands/CreateOtaTaskConfigurationCommand.js +27 -0
  14. package/dist-cjs/commands/CreateProvisioningProfileCommand.js +27 -0
  15. package/dist-cjs/commands/DeleteCredentialLockerCommand.js +26 -0
  16. package/dist-cjs/commands/DeleteDestinationCommand.js +26 -0
  17. package/dist-cjs/commands/DeleteEventLogConfigurationCommand.js +26 -0
  18. package/dist-cjs/commands/DeleteManagedThingCommand.js +26 -0
  19. package/dist-cjs/commands/DeleteNotificationConfigurationCommand.js +26 -0
  20. package/dist-cjs/commands/DeleteOtaTaskCommand.js +26 -0
  21. package/dist-cjs/commands/DeleteOtaTaskConfigurationCommand.js +26 -0
  22. package/dist-cjs/commands/DeleteProvisioningProfileCommand.js +26 -0
  23. package/dist-cjs/commands/GetCredentialLockerCommand.js +27 -0
  24. package/dist-cjs/commands/GetCustomEndpointCommand.js +26 -0
  25. package/dist-cjs/commands/GetDefaultEncryptionConfigurationCommand.js +26 -0
  26. package/dist-cjs/commands/GetDestinationCommand.js +27 -0
  27. package/dist-cjs/commands/GetDeviceDiscoveryCommand.js +27 -0
  28. package/dist-cjs/commands/GetEventLogConfigurationCommand.js +26 -0
  29. package/dist-cjs/commands/GetHubConfigurationCommand.js +26 -0
  30. package/dist-cjs/commands/GetManagedThingCapabilitiesCommand.js +26 -0
  31. package/dist-cjs/commands/GetManagedThingCommand.js +27 -0
  32. package/dist-cjs/commands/GetManagedThingConnectivityDataCommand.js +26 -0
  33. package/dist-cjs/commands/GetManagedThingMetaDataCommand.js +26 -0
  34. package/dist-cjs/commands/GetManagedThingStateCommand.js +27 -0
  35. package/dist-cjs/commands/GetNotificationConfigurationCommand.js +27 -0
  36. package/dist-cjs/commands/GetOtaTaskCommand.js +26 -0
  37. package/dist-cjs/commands/GetOtaTaskConfigurationCommand.js +27 -0
  38. package/dist-cjs/commands/GetProvisioningProfileCommand.js +27 -0
  39. package/dist-cjs/commands/GetRuntimeLogConfigurationCommand.js +26 -0
  40. package/dist-cjs/commands/GetSchemaVersionCommand.js +26 -0
  41. package/dist-cjs/commands/ListCredentialLockersCommand.js +27 -0
  42. package/dist-cjs/commands/ListDestinationsCommand.js +26 -0
  43. package/dist-cjs/commands/ListEventLogConfigurationsCommand.js +26 -0
  44. package/dist-cjs/commands/ListManagedThingSchemasCommand.js +26 -0
  45. package/dist-cjs/commands/ListManagedThingsCommand.js +27 -0
  46. package/dist-cjs/commands/ListNotificationConfigurationsCommand.js +26 -0
  47. package/dist-cjs/commands/ListOtaTaskConfigurationsCommand.js +27 -0
  48. package/dist-cjs/commands/ListOtaTaskExecutionsCommand.js +26 -0
  49. package/dist-cjs/commands/ListOtaTasksCommand.js +26 -0
  50. package/dist-cjs/commands/ListProvisioningProfilesCommand.js +26 -0
  51. package/dist-cjs/commands/ListSchemaVersionsCommand.js +26 -0
  52. package/dist-cjs/commands/PutDefaultEncryptionConfigurationCommand.js +26 -0
  53. package/dist-cjs/commands/PutHubConfigurationCommand.js +26 -0
  54. package/dist-cjs/commands/PutRuntimeLogConfigurationCommand.js +26 -0
  55. package/dist-cjs/commands/RegisterCustomEndpointCommand.js +26 -0
  56. package/dist-cjs/commands/ResetRuntimeLogConfigurationCommand.js +26 -0
  57. package/dist-cjs/commands/SendManagedThingCommandCommand.js +27 -0
  58. package/dist-cjs/commands/StartDeviceDiscoveryCommand.js +27 -0
  59. package/dist-cjs/commands/UpdateDestinationCommand.js +26 -0
  60. package/dist-cjs/commands/UpdateEventLogConfigurationCommand.js +26 -0
  61. package/dist-cjs/commands/UpdateManagedThingCommand.js +27 -0
  62. package/dist-cjs/commands/UpdateNotificationConfigurationCommand.js +26 -0
  63. package/dist-cjs/commands/UpdateOtaTaskCommand.js +26 -0
  64. package/dist-cjs/commands/index.js +60 -0
  65. package/dist-cjs/endpoint/EndpointParameters.js +16 -0
  66. package/dist-cjs/endpoint/endpointResolver.js +18 -0
  67. package/dist-cjs/endpoint/ruleset.js +7 -0
  68. package/dist-cjs/extensionConfiguration.js +2 -0
  69. package/dist-cjs/index.js +11 -0
  70. package/dist-cjs/models/IoTManagedIntegrationsServiceException.js +12 -0
  71. package/dist-cjs/models/index.js +4 -0
  72. package/dist-cjs/models/models_0.js +484 -0
  73. package/dist-cjs/pagination/Interfaces.js +2 -0
  74. package/dist-cjs/pagination/ListCredentialLockersPaginator.js +7 -0
  75. package/dist-cjs/pagination/ListDestinationsPaginator.js +7 -0
  76. package/dist-cjs/pagination/ListEventLogConfigurationsPaginator.js +7 -0
  77. package/dist-cjs/pagination/ListManagedThingSchemasPaginator.js +7 -0
  78. package/dist-cjs/pagination/ListManagedThingsPaginator.js +7 -0
  79. package/dist-cjs/pagination/ListNotificationConfigurationsPaginator.js +7 -0
  80. package/dist-cjs/pagination/ListOtaTaskConfigurationsPaginator.js +7 -0
  81. package/dist-cjs/pagination/ListOtaTaskExecutionsPaginator.js +7 -0
  82. package/dist-cjs/pagination/ListOtaTasksPaginator.js +7 -0
  83. package/dist-cjs/pagination/ListProvisioningProfilesPaginator.js +7 -0
  84. package/dist-cjs/pagination/ListSchemaVersionsPaginator.js +7 -0
  85. package/dist-cjs/pagination/index.js +15 -0
  86. package/dist-cjs/protocols/Aws_restJson1.js +2179 -0
  87. package/dist-cjs/runtimeConfig.browser.js +39 -0
  88. package/dist-cjs/runtimeConfig.js +52 -0
  89. package/dist-cjs/runtimeConfig.native.js +15 -0
  90. package/dist-cjs/runtimeConfig.shared.js +34 -0
  91. package/dist-cjs/runtimeExtensions.js +25 -0
  92. package/dist-es/IoTManagedIntegrations.js +121 -0
  93. package/dist-es/IoTManagedIntegrationsClient.js +47 -0
  94. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  95. package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
  96. package/dist-es/commands/CreateCredentialLockerCommand.js +23 -0
  97. package/dist-es/commands/CreateDestinationCommand.js +23 -0
  98. package/dist-es/commands/CreateEventLogConfigurationCommand.js +22 -0
  99. package/dist-es/commands/CreateManagedThingCommand.js +23 -0
  100. package/dist-es/commands/CreateNotificationConfigurationCommand.js +23 -0
  101. package/dist-es/commands/CreateOtaTaskCommand.js +23 -0
  102. package/dist-es/commands/CreateOtaTaskConfigurationCommand.js +23 -0
  103. package/dist-es/commands/CreateProvisioningProfileCommand.js +23 -0
  104. package/dist-es/commands/DeleteCredentialLockerCommand.js +22 -0
  105. package/dist-es/commands/DeleteDestinationCommand.js +22 -0
  106. package/dist-es/commands/DeleteEventLogConfigurationCommand.js +22 -0
  107. package/dist-es/commands/DeleteManagedThingCommand.js +22 -0
  108. package/dist-es/commands/DeleteNotificationConfigurationCommand.js +22 -0
  109. package/dist-es/commands/DeleteOtaTaskCommand.js +22 -0
  110. package/dist-es/commands/DeleteOtaTaskConfigurationCommand.js +22 -0
  111. package/dist-es/commands/DeleteProvisioningProfileCommand.js +22 -0
  112. package/dist-es/commands/GetCredentialLockerCommand.js +23 -0
  113. package/dist-es/commands/GetCustomEndpointCommand.js +22 -0
  114. package/dist-es/commands/GetDefaultEncryptionConfigurationCommand.js +22 -0
  115. package/dist-es/commands/GetDestinationCommand.js +23 -0
  116. package/dist-es/commands/GetDeviceDiscoveryCommand.js +23 -0
  117. package/dist-es/commands/GetEventLogConfigurationCommand.js +22 -0
  118. package/dist-es/commands/GetHubConfigurationCommand.js +22 -0
  119. package/dist-es/commands/GetManagedThingCapabilitiesCommand.js +22 -0
  120. package/dist-es/commands/GetManagedThingCommand.js +23 -0
  121. package/dist-es/commands/GetManagedThingConnectivityDataCommand.js +22 -0
  122. package/dist-es/commands/GetManagedThingMetaDataCommand.js +22 -0
  123. package/dist-es/commands/GetManagedThingStateCommand.js +23 -0
  124. package/dist-es/commands/GetNotificationConfigurationCommand.js +23 -0
  125. package/dist-es/commands/GetOtaTaskCommand.js +22 -0
  126. package/dist-es/commands/GetOtaTaskConfigurationCommand.js +23 -0
  127. package/dist-es/commands/GetProvisioningProfileCommand.js +23 -0
  128. package/dist-es/commands/GetRuntimeLogConfigurationCommand.js +22 -0
  129. package/dist-es/commands/GetSchemaVersionCommand.js +22 -0
  130. package/dist-es/commands/ListCredentialLockersCommand.js +23 -0
  131. package/dist-es/commands/ListDestinationsCommand.js +22 -0
  132. package/dist-es/commands/ListEventLogConfigurationsCommand.js +22 -0
  133. package/dist-es/commands/ListManagedThingSchemasCommand.js +22 -0
  134. package/dist-es/commands/ListManagedThingsCommand.js +23 -0
  135. package/dist-es/commands/ListNotificationConfigurationsCommand.js +22 -0
  136. package/dist-es/commands/ListOtaTaskConfigurationsCommand.js +23 -0
  137. package/dist-es/commands/ListOtaTaskExecutionsCommand.js +22 -0
  138. package/dist-es/commands/ListOtaTasksCommand.js +22 -0
  139. package/dist-es/commands/ListProvisioningProfilesCommand.js +22 -0
  140. package/dist-es/commands/ListSchemaVersionsCommand.js +22 -0
  141. package/dist-es/commands/PutDefaultEncryptionConfigurationCommand.js +22 -0
  142. package/dist-es/commands/PutHubConfigurationCommand.js +22 -0
  143. package/dist-es/commands/PutRuntimeLogConfigurationCommand.js +22 -0
  144. package/dist-es/commands/RegisterCustomEndpointCommand.js +22 -0
  145. package/dist-es/commands/ResetRuntimeLogConfigurationCommand.js +22 -0
  146. package/dist-es/commands/SendManagedThingCommandCommand.js +23 -0
  147. package/dist-es/commands/StartDeviceDiscoveryCommand.js +23 -0
  148. package/dist-es/commands/UpdateDestinationCommand.js +22 -0
  149. package/dist-es/commands/UpdateEventLogConfigurationCommand.js +22 -0
  150. package/dist-es/commands/UpdateManagedThingCommand.js +23 -0
  151. package/dist-es/commands/UpdateNotificationConfigurationCommand.js +22 -0
  152. package/dist-es/commands/UpdateOtaTaskCommand.js +22 -0
  153. package/dist-es/commands/index.js +57 -0
  154. package/dist-es/endpoint/EndpointParameters.js +12 -0
  155. package/dist-es/endpoint/endpointResolver.js +14 -0
  156. package/dist-es/endpoint/ruleset.js +4 -0
  157. package/dist-es/extensionConfiguration.js +1 -0
  158. package/dist-es/index.js +6 -0
  159. package/dist-es/models/IoTManagedIntegrationsServiceException.js +8 -0
  160. package/dist-es/models/index.js +1 -0
  161. package/dist-es/models/models_0.js +439 -0
  162. package/dist-es/pagination/Interfaces.js +1 -0
  163. package/dist-es/pagination/ListCredentialLockersPaginator.js +4 -0
  164. package/dist-es/pagination/ListDestinationsPaginator.js +4 -0
  165. package/dist-es/pagination/ListEventLogConfigurationsPaginator.js +4 -0
  166. package/dist-es/pagination/ListManagedThingSchemasPaginator.js +4 -0
  167. package/dist-es/pagination/ListManagedThingsPaginator.js +4 -0
  168. package/dist-es/pagination/ListNotificationConfigurationsPaginator.js +4 -0
  169. package/dist-es/pagination/ListOtaTaskConfigurationsPaginator.js +4 -0
  170. package/dist-es/pagination/ListOtaTaskExecutionsPaginator.js +4 -0
  171. package/dist-es/pagination/ListOtaTasksPaginator.js +4 -0
  172. package/dist-es/pagination/ListProvisioningProfilesPaginator.js +4 -0
  173. package/dist-es/pagination/ListSchemaVersionsPaginator.js +4 -0
  174. package/dist-es/pagination/index.js +12 -0
  175. package/dist-es/protocols/Aws_restJson1.js +2060 -0
  176. package/dist-es/runtimeConfig.browser.js +34 -0
  177. package/dist-es/runtimeConfig.js +47 -0
  178. package/dist-es/runtimeConfig.native.js +11 -0
  179. package/dist-es/runtimeConfig.shared.js +30 -0
  180. package/dist-es/runtimeExtensions.js +21 -0
  181. package/dist-types/IoTManagedIntegrations.d.ts +423 -0
  182. package/dist-types/IoTManagedIntegrationsClient.d.ts +244 -0
  183. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  184. package/dist-types/auth/httpAuthSchemeProvider.d.ts +61 -0
  185. package/dist-types/commands/CreateCredentialLockerCommand.d.ts +100 -0
  186. package/dist-types/commands/CreateDestinationCommand.d.ts +96 -0
  187. package/dist-types/commands/CreateEventLogConfigurationCommand.d.ts +94 -0
  188. package/dist-types/commands/CreateManagedThingCommand.d.ts +144 -0
  189. package/dist-types/commands/CreateNotificationConfigurationCommand.d.ts +93 -0
  190. package/dist-types/commands/CreateOtaTaskCommand.d.ts +121 -0
  191. package/dist-types/commands/CreateOtaTaskConfigurationCommand.d.ts +115 -0
  192. package/dist-types/commands/CreateProvisioningProfileCommand.d.ts +106 -0
  193. package/dist-types/commands/DeleteCredentialLockerCommand.d.ts +92 -0
  194. package/dist-types/commands/DeleteDestinationCommand.d.ts +85 -0
  195. package/dist-types/commands/DeleteEventLogConfigurationCommand.d.ts +85 -0
  196. package/dist-types/commands/DeleteManagedThingCommand.d.ts +97 -0
  197. package/dist-types/commands/DeleteNotificationConfigurationCommand.d.ts +85 -0
  198. package/dist-types/commands/DeleteOtaTaskCommand.d.ts +85 -0
  199. package/dist-types/commands/DeleteOtaTaskConfigurationCommand.d.ts +85 -0
  200. package/dist-types/commands/DeleteProvisioningProfileCommand.d.ts +91 -0
  201. package/dist-types/commands/GetCredentialLockerCommand.d.ts +96 -0
  202. package/dist-types/commands/GetCustomEndpointCommand.d.ts +91 -0
  203. package/dist-types/commands/GetDefaultEncryptionConfigurationCommand.d.ts +100 -0
  204. package/dist-types/commands/GetDestinationCommand.d.ts +96 -0
  205. package/dist-types/commands/GetDeviceDiscoveryCommand.d.ts +103 -0
  206. package/dist-types/commands/GetEventLogConfigurationCommand.d.ts +90 -0
  207. package/dist-types/commands/GetHubConfigurationCommand.d.ts +89 -0
  208. package/dist-types/commands/GetManagedThingCapabilitiesCommand.d.ts +122 -0
  209. package/dist-types/commands/GetManagedThingCommand.d.ts +121 -0
  210. package/dist-types/commands/GetManagedThingConnectivityDataCommand.d.ts +96 -0
  211. package/dist-types/commands/GetManagedThingMetaDataCommand.d.ts +96 -0
  212. package/dist-types/commands/GetManagedThingStateCommand.d.ts +104 -0
  213. package/dist-types/commands/GetNotificationConfigurationCommand.d.ts +93 -0
  214. package/dist-types/commands/GetOtaTaskCommand.d.ts +133 -0
  215. package/dist-types/commands/GetOtaTaskConfigurationCommand.d.ts +116 -0
  216. package/dist-types/commands/GetProvisioningProfileCommand.d.ts +100 -0
  217. package/dist-types/commands/GetRuntimeLogConfigurationCommand.d.ts +98 -0
  218. package/dist-types/commands/GetSchemaVersionCommand.d.ts +101 -0
  219. package/dist-types/commands/ListCredentialLockersCommand.d.ts +96 -0
  220. package/dist-types/commands/ListDestinationsCommand.d.ts +94 -0
  221. package/dist-types/commands/ListEventLogConfigurationsCommand.d.ts +93 -0
  222. package/dist-types/commands/ListManagedThingSchemasCommand.d.ts +104 -0
  223. package/dist-types/commands/ListManagedThingsCommand.d.ts +120 -0
  224. package/dist-types/commands/ListNotificationConfigurationsCommand.d.ts +91 -0
  225. package/dist-types/commands/ListOtaTaskConfigurationsCommand.d.ts +92 -0
  226. package/dist-types/commands/ListOtaTaskExecutionsCommand.d.ts +99 -0
  227. package/dist-types/commands/ListOtaTasksCommand.d.ts +95 -0
  228. package/dist-types/commands/ListProvisioningProfilesCommand.d.ts +99 -0
  229. package/dist-types/commands/ListSchemaVersionsCommand.d.ts +106 -0
  230. package/dist-types/commands/PutDefaultEncryptionConfigurationCommand.d.ts +103 -0
  231. package/dist-types/commands/PutHubConfigurationCommand.d.ts +90 -0
  232. package/dist-types/commands/PutRuntimeLogConfigurationCommand.d.ts +96 -0
  233. package/dist-types/commands/RegisterCustomEndpointCommand.d.ts +92 -0
  234. package/dist-types/commands/ResetRuntimeLogConfigurationCommand.d.ts +86 -0
  235. package/dist-types/commands/SendManagedThingCommandCommand.d.ts +111 -0
  236. package/dist-types/commands/StartDeviceDiscoveryCommand.d.ts +107 -0
  237. package/dist-types/commands/UpdateDestinationCommand.d.ts +89 -0
  238. package/dist-types/commands/UpdateEventLogConfigurationCommand.d.ts +86 -0
  239. package/dist-types/commands/UpdateManagedThingCommand.d.ts +134 -0
  240. package/dist-types/commands/UpdateNotificationConfigurationCommand.d.ts +86 -0
  241. package/dist-types/commands/UpdateOtaTaskCommand.d.ts +87 -0
  242. package/dist-types/commands/index.d.ts +57 -0
  243. package/dist-types/endpoint/EndpointParameters.d.ts +34 -0
  244. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  245. package/dist-types/endpoint/ruleset.d.ts +2 -0
  246. package/dist-types/extensionConfiguration.d.ts +9 -0
  247. package/dist-types/index.d.ts +14 -0
  248. package/dist-types/models/IoTManagedIntegrationsServiceException.d.ts +14 -0
  249. package/dist-types/models/index.d.ts +1 -0
  250. package/dist-types/models/models_0.d.ts +3678 -0
  251. package/dist-types/pagination/Interfaces.d.ts +8 -0
  252. package/dist-types/pagination/ListCredentialLockersPaginator.d.ts +7 -0
  253. package/dist-types/pagination/ListDestinationsPaginator.d.ts +7 -0
  254. package/dist-types/pagination/ListEventLogConfigurationsPaginator.d.ts +7 -0
  255. package/dist-types/pagination/ListManagedThingSchemasPaginator.d.ts +7 -0
  256. package/dist-types/pagination/ListManagedThingsPaginator.d.ts +7 -0
  257. package/dist-types/pagination/ListNotificationConfigurationsPaginator.d.ts +7 -0
  258. package/dist-types/pagination/ListOtaTaskConfigurationsPaginator.d.ts +7 -0
  259. package/dist-types/pagination/ListOtaTaskExecutionsPaginator.d.ts +7 -0
  260. package/dist-types/pagination/ListOtaTasksPaginator.d.ts +7 -0
  261. package/dist-types/pagination/ListProvisioningProfilesPaginator.d.ts +7 -0
  262. package/dist-types/pagination/ListSchemaVersionsPaginator.d.ts +7 -0
  263. package/dist-types/pagination/index.d.ts +12 -0
  264. package/dist-types/protocols/Aws_restJson1.d.ts +515 -0
  265. package/dist-types/runtimeConfig.browser.d.ts +49 -0
  266. package/dist-types/runtimeConfig.d.ts +49 -0
  267. package/dist-types/runtimeConfig.native.d.ts +48 -0
  268. package/dist-types/runtimeConfig.shared.d.ts +21 -0
  269. package/dist-types/runtimeExtensions.d.ts +17 -0
  270. package/dist-types/ts3.4/IoTManagedIntegrations.d.ts +1002 -0
  271. package/dist-types/ts3.4/IoTManagedIntegrationsClient.d.ts +464 -0
  272. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
  273. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +44 -0
  274. package/dist-types/ts3.4/commands/CreateCredentialLockerCommand.d.ts +51 -0
  275. package/dist-types/ts3.4/commands/CreateDestinationCommand.d.ts +51 -0
  276. package/dist-types/ts3.4/commands/CreateEventLogConfigurationCommand.d.ts +51 -0
  277. package/dist-types/ts3.4/commands/CreateManagedThingCommand.d.ts +51 -0
  278. package/dist-types/ts3.4/commands/CreateNotificationConfigurationCommand.d.ts +51 -0
  279. package/dist-types/ts3.4/commands/CreateOtaTaskCommand.d.ts +50 -0
  280. package/dist-types/ts3.4/commands/CreateOtaTaskConfigurationCommand.d.ts +51 -0
  281. package/dist-types/ts3.4/commands/CreateProvisioningProfileCommand.d.ts +51 -0
  282. package/dist-types/ts3.4/commands/DeleteCredentialLockerCommand.d.ts +46 -0
  283. package/dist-types/ts3.4/commands/DeleteDestinationCommand.d.ts +46 -0
  284. package/dist-types/ts3.4/commands/DeleteEventLogConfigurationCommand.d.ts +47 -0
  285. package/dist-types/ts3.4/commands/DeleteManagedThingCommand.d.ts +46 -0
  286. package/dist-types/ts3.4/commands/DeleteNotificationConfigurationCommand.d.ts +47 -0
  287. package/dist-types/ts3.4/commands/DeleteOtaTaskCommand.d.ts +45 -0
  288. package/dist-types/ts3.4/commands/DeleteOtaTaskConfigurationCommand.d.ts +47 -0
  289. package/dist-types/ts3.4/commands/DeleteProvisioningProfileCommand.d.ts +47 -0
  290. package/dist-types/ts3.4/commands/GetCredentialLockerCommand.d.ts +51 -0
  291. package/dist-types/ts3.4/commands/GetCustomEndpointCommand.d.ts +51 -0
  292. package/dist-types/ts3.4/commands/GetDefaultEncryptionConfigurationCommand.d.ts +51 -0
  293. package/dist-types/ts3.4/commands/GetDestinationCommand.d.ts +50 -0
  294. package/dist-types/ts3.4/commands/GetDeviceDiscoveryCommand.d.ts +51 -0
  295. package/dist-types/ts3.4/commands/GetEventLogConfigurationCommand.d.ts +51 -0
  296. package/dist-types/ts3.4/commands/GetHubConfigurationCommand.d.ts +51 -0
  297. package/dist-types/ts3.4/commands/GetManagedThingCapabilitiesCommand.d.ts +51 -0
  298. package/dist-types/ts3.4/commands/GetManagedThingCommand.d.ts +50 -0
  299. package/dist-types/ts3.4/commands/GetManagedThingConnectivityDataCommand.d.ts +51 -0
  300. package/dist-types/ts3.4/commands/GetManagedThingMetaDataCommand.d.ts +51 -0
  301. package/dist-types/ts3.4/commands/GetManagedThingStateCommand.d.ts +51 -0
  302. package/dist-types/ts3.4/commands/GetNotificationConfigurationCommand.d.ts +51 -0
  303. package/dist-types/ts3.4/commands/GetOtaTaskCommand.d.ts +47 -0
  304. package/dist-types/ts3.4/commands/GetOtaTaskConfigurationCommand.d.ts +51 -0
  305. package/dist-types/ts3.4/commands/GetProvisioningProfileCommand.d.ts +51 -0
  306. package/dist-types/ts3.4/commands/GetRuntimeLogConfigurationCommand.d.ts +51 -0
  307. package/dist-types/ts3.4/commands/GetSchemaVersionCommand.d.ts +50 -0
  308. package/dist-types/ts3.4/commands/ListCredentialLockersCommand.d.ts +51 -0
  309. package/dist-types/ts3.4/commands/ListDestinationsCommand.d.ts +50 -0
  310. package/dist-types/ts3.4/commands/ListEventLogConfigurationsCommand.d.ts +51 -0
  311. package/dist-types/ts3.4/commands/ListManagedThingSchemasCommand.d.ts +51 -0
  312. package/dist-types/ts3.4/commands/ListManagedThingsCommand.d.ts +51 -0
  313. package/dist-types/ts3.4/commands/ListNotificationConfigurationsCommand.d.ts +51 -0
  314. package/dist-types/ts3.4/commands/ListOtaTaskConfigurationsCommand.d.ts +51 -0
  315. package/dist-types/ts3.4/commands/ListOtaTaskExecutionsCommand.d.ts +51 -0
  316. package/dist-types/ts3.4/commands/ListOtaTasksCommand.d.ts +47 -0
  317. package/dist-types/ts3.4/commands/ListProvisioningProfilesCommand.d.ts +51 -0
  318. package/dist-types/ts3.4/commands/ListSchemaVersionsCommand.d.ts +51 -0
  319. package/dist-types/ts3.4/commands/PutDefaultEncryptionConfigurationCommand.d.ts +51 -0
  320. package/dist-types/ts3.4/commands/PutHubConfigurationCommand.d.ts +51 -0
  321. package/dist-types/ts3.4/commands/PutRuntimeLogConfigurationCommand.d.ts +47 -0
  322. package/dist-types/ts3.4/commands/RegisterCustomEndpointCommand.d.ts +51 -0
  323. package/dist-types/ts3.4/commands/ResetRuntimeLogConfigurationCommand.d.ts +47 -0
  324. package/dist-types/ts3.4/commands/SendManagedThingCommandCommand.d.ts +51 -0
  325. package/dist-types/ts3.4/commands/StartDeviceDiscoveryCommand.d.ts +51 -0
  326. package/dist-types/ts3.4/commands/UpdateDestinationCommand.d.ts +46 -0
  327. package/dist-types/ts3.4/commands/UpdateEventLogConfigurationCommand.d.ts +47 -0
  328. package/dist-types/ts3.4/commands/UpdateManagedThingCommand.d.ts +46 -0
  329. package/dist-types/ts3.4/commands/UpdateNotificationConfigurationCommand.d.ts +47 -0
  330. package/dist-types/ts3.4/commands/UpdateOtaTaskCommand.d.ts +45 -0
  331. package/dist-types/ts3.4/commands/index.d.ts +57 -0
  332. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +45 -0
  333. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  334. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  335. package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
  336. package/dist-types/ts3.4/index.d.ts +9 -0
  337. package/dist-types/ts3.4/models/IoTManagedIntegrationsServiceException.d.ts +9 -0
  338. package/dist-types/ts3.4/models/index.d.ts +1 -0
  339. package/dist-types/ts3.4/models/models_0.d.ts +1080 -0
  340. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  341. package/dist-types/ts3.4/pagination/ListCredentialLockersPaginator.d.ts +11 -0
  342. package/dist-types/ts3.4/pagination/ListDestinationsPaginator.d.ts +11 -0
  343. package/dist-types/ts3.4/pagination/ListEventLogConfigurationsPaginator.d.ts +11 -0
  344. package/dist-types/ts3.4/pagination/ListManagedThingSchemasPaginator.d.ts +11 -0
  345. package/dist-types/ts3.4/pagination/ListManagedThingsPaginator.d.ts +11 -0
  346. package/dist-types/ts3.4/pagination/ListNotificationConfigurationsPaginator.d.ts +11 -0
  347. package/dist-types/ts3.4/pagination/ListOtaTaskConfigurationsPaginator.d.ts +11 -0
  348. package/dist-types/ts3.4/pagination/ListOtaTaskExecutionsPaginator.d.ts +11 -0
  349. package/dist-types/ts3.4/pagination/ListOtaTasksPaginator.d.ts +11 -0
  350. package/dist-types/ts3.4/pagination/ListProvisioningProfilesPaginator.d.ts +11 -0
  351. package/dist-types/ts3.4/pagination/ListSchemaVersionsPaginator.d.ts +11 -0
  352. package/dist-types/ts3.4/pagination/index.d.ts +12 -0
  353. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +689 -0
  354. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +98 -0
  355. package/dist-types/ts3.4/runtimeConfig.d.ts +99 -0
  356. package/dist-types/ts3.4/runtimeConfig.native.d.ts +102 -0
  357. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +23 -0
  358. package/dist-types/ts3.4/runtimeExtensions.d.ts +13 -0
  359. package/package.json +101 -0
@@ -0,0 +1,2179 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.se_ResetRuntimeLogConfigurationCommand = exports.se_RegisterCustomEndpointCommand = exports.se_PutRuntimeLogConfigurationCommand = exports.se_PutHubConfigurationCommand = exports.se_PutDefaultEncryptionConfigurationCommand = exports.se_ListSchemaVersionsCommand = exports.se_ListProvisioningProfilesCommand = exports.se_ListOtaTasksCommand = exports.se_ListOtaTaskExecutionsCommand = exports.se_ListOtaTaskConfigurationsCommand = exports.se_ListNotificationConfigurationsCommand = exports.se_ListManagedThingSchemasCommand = exports.se_ListManagedThingsCommand = exports.se_ListEventLogConfigurationsCommand = exports.se_ListDestinationsCommand = exports.se_ListCredentialLockersCommand = exports.se_GetSchemaVersionCommand = exports.se_GetRuntimeLogConfigurationCommand = exports.se_GetProvisioningProfileCommand = exports.se_GetOtaTaskConfigurationCommand = exports.se_GetOtaTaskCommand = exports.se_GetNotificationConfigurationCommand = exports.se_GetManagedThingStateCommand = exports.se_GetManagedThingMetaDataCommand = exports.se_GetManagedThingConnectivityDataCommand = exports.se_GetManagedThingCapabilitiesCommand = exports.se_GetManagedThingCommand = exports.se_GetHubConfigurationCommand = exports.se_GetEventLogConfigurationCommand = exports.se_GetDeviceDiscoveryCommand = exports.se_GetDestinationCommand = exports.se_GetDefaultEncryptionConfigurationCommand = exports.se_GetCustomEndpointCommand = exports.se_GetCredentialLockerCommand = exports.se_DeleteProvisioningProfileCommand = exports.se_DeleteOtaTaskConfigurationCommand = exports.se_DeleteOtaTaskCommand = exports.se_DeleteNotificationConfigurationCommand = exports.se_DeleteManagedThingCommand = exports.se_DeleteEventLogConfigurationCommand = exports.se_DeleteDestinationCommand = exports.se_DeleteCredentialLockerCommand = exports.se_CreateProvisioningProfileCommand = exports.se_CreateOtaTaskConfigurationCommand = exports.se_CreateOtaTaskCommand = exports.se_CreateNotificationConfigurationCommand = exports.se_CreateManagedThingCommand = exports.se_CreateEventLogConfigurationCommand = exports.se_CreateDestinationCommand = exports.se_CreateCredentialLockerCommand = void 0;
4
+ exports.de_ListOtaTasksCommand = exports.de_ListOtaTaskExecutionsCommand = exports.de_ListOtaTaskConfigurationsCommand = exports.de_ListNotificationConfigurationsCommand = exports.de_ListManagedThingSchemasCommand = exports.de_ListManagedThingsCommand = exports.de_ListEventLogConfigurationsCommand = exports.de_ListDestinationsCommand = exports.de_ListCredentialLockersCommand = exports.de_GetSchemaVersionCommand = exports.de_GetRuntimeLogConfigurationCommand = exports.de_GetProvisioningProfileCommand = exports.de_GetOtaTaskConfigurationCommand = exports.de_GetOtaTaskCommand = exports.de_GetNotificationConfigurationCommand = exports.de_GetManagedThingStateCommand = exports.de_GetManagedThingMetaDataCommand = exports.de_GetManagedThingConnectivityDataCommand = exports.de_GetManagedThingCapabilitiesCommand = exports.de_GetManagedThingCommand = exports.de_GetHubConfigurationCommand = exports.de_GetEventLogConfigurationCommand = exports.de_GetDeviceDiscoveryCommand = exports.de_GetDestinationCommand = exports.de_GetDefaultEncryptionConfigurationCommand = exports.de_GetCustomEndpointCommand = exports.de_GetCredentialLockerCommand = exports.de_DeleteProvisioningProfileCommand = exports.de_DeleteOtaTaskConfigurationCommand = exports.de_DeleteOtaTaskCommand = exports.de_DeleteNotificationConfigurationCommand = exports.de_DeleteManagedThingCommand = exports.de_DeleteEventLogConfigurationCommand = exports.de_DeleteDestinationCommand = exports.de_DeleteCredentialLockerCommand = exports.de_CreateProvisioningProfileCommand = exports.de_CreateOtaTaskConfigurationCommand = exports.de_CreateOtaTaskCommand = exports.de_CreateNotificationConfigurationCommand = exports.de_CreateManagedThingCommand = exports.de_CreateEventLogConfigurationCommand = exports.de_CreateDestinationCommand = exports.de_CreateCredentialLockerCommand = exports.se_UpdateOtaTaskCommand = exports.se_UpdateNotificationConfigurationCommand = exports.se_UpdateManagedThingCommand = exports.se_UpdateEventLogConfigurationCommand = exports.se_UpdateDestinationCommand = exports.se_StartDeviceDiscoveryCommand = exports.se_SendManagedThingCommandCommand = void 0;
5
+ exports.de_UpdateOtaTaskCommand = exports.de_UpdateNotificationConfigurationCommand = exports.de_UpdateManagedThingCommand = exports.de_UpdateEventLogConfigurationCommand = exports.de_UpdateDestinationCommand = exports.de_StartDeviceDiscoveryCommand = exports.de_SendManagedThingCommandCommand = exports.de_ResetRuntimeLogConfigurationCommand = exports.de_RegisterCustomEndpointCommand = exports.de_PutRuntimeLogConfigurationCommand = exports.de_PutHubConfigurationCommand = exports.de_PutDefaultEncryptionConfigurationCommand = exports.de_ListSchemaVersionsCommand = exports.de_ListProvisioningProfilesCommand = void 0;
6
+ const core_1 = require("@aws-sdk/core");
7
+ const core_2 = require("@smithy/core");
8
+ const smithy_client_1 = require("@smithy/smithy-client");
9
+ const uuid_1 = require("uuid");
10
+ const IoTManagedIntegrationsServiceException_1 = require("../models/IoTManagedIntegrationsServiceException");
11
+ const models_0_1 = require("../models/models_0");
12
+ const se_CreateCredentialLockerCommand = async (input, context) => {
13
+ const b = (0, core_2.requestBuilder)(input, context);
14
+ const headers = {
15
+ "content-type": "application/json",
16
+ };
17
+ b.bp("/credential-lockers");
18
+ let body;
19
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
20
+ ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
21
+ Name: [],
22
+ Tags: (_) => (0, smithy_client_1._json)(_),
23
+ }));
24
+ b.m("POST").h(headers).b(body);
25
+ return b.build();
26
+ };
27
+ exports.se_CreateCredentialLockerCommand = se_CreateCredentialLockerCommand;
28
+ const se_CreateDestinationCommand = async (input, context) => {
29
+ const b = (0, core_2.requestBuilder)(input, context);
30
+ const headers = {
31
+ "content-type": "application/json",
32
+ };
33
+ b.bp("/destinations");
34
+ let body;
35
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
36
+ ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
37
+ DeliveryDestinationArn: [],
38
+ DeliveryDestinationType: [],
39
+ Description: [],
40
+ Name: [],
41
+ RoleArn: [],
42
+ Tags: (_) => (0, smithy_client_1._json)(_),
43
+ }));
44
+ b.m("POST").h(headers).b(body);
45
+ return b.build();
46
+ };
47
+ exports.se_CreateDestinationCommand = se_CreateDestinationCommand;
48
+ const se_CreateEventLogConfigurationCommand = async (input, context) => {
49
+ const b = (0, core_2.requestBuilder)(input, context);
50
+ const headers = {
51
+ "content-type": "application/json",
52
+ };
53
+ b.bp("/event-log-configurations");
54
+ let body;
55
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
56
+ ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
57
+ EventLogLevel: [],
58
+ ResourceId: [],
59
+ ResourceType: [],
60
+ }));
61
+ b.m("POST").h(headers).b(body);
62
+ return b.build();
63
+ };
64
+ exports.se_CreateEventLogConfigurationCommand = se_CreateEventLogConfigurationCommand;
65
+ const se_CreateManagedThingCommand = async (input, context) => {
66
+ const b = (0, core_2.requestBuilder)(input, context);
67
+ const headers = {
68
+ "content-type": "application/json",
69
+ };
70
+ b.bp("/managed-things");
71
+ let body;
72
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
73
+ AuthenticationMaterial: [],
74
+ AuthenticationMaterialType: [],
75
+ Brand: [],
76
+ Capabilities: [],
77
+ CapabilityReport: (_) => (0, smithy_client_1._json)(_),
78
+ Classification: [],
79
+ ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
80
+ CredentialLockerId: [],
81
+ MetaData: (_) => (0, smithy_client_1._json)(_),
82
+ Model: [],
83
+ Name: [],
84
+ Owner: [],
85
+ Role: [],
86
+ SerialNumber: [],
87
+ Tags: (_) => (0, smithy_client_1._json)(_),
88
+ }));
89
+ b.m("POST").h(headers).b(body);
90
+ return b.build();
91
+ };
92
+ exports.se_CreateManagedThingCommand = se_CreateManagedThingCommand;
93
+ const se_CreateNotificationConfigurationCommand = async (input, context) => {
94
+ const b = (0, core_2.requestBuilder)(input, context);
95
+ const headers = {
96
+ "content-type": "application/json",
97
+ };
98
+ b.bp("/notification-configurations");
99
+ let body;
100
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
101
+ ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
102
+ DestinationName: [],
103
+ EventType: [],
104
+ Tags: (_) => (0, smithy_client_1._json)(_),
105
+ }));
106
+ b.m("POST").h(headers).b(body);
107
+ return b.build();
108
+ };
109
+ exports.se_CreateNotificationConfigurationCommand = se_CreateNotificationConfigurationCommand;
110
+ const se_CreateOtaTaskCommand = async (input, context) => {
111
+ const b = (0, core_2.requestBuilder)(input, context);
112
+ const headers = {
113
+ "content-type": "application/json",
114
+ };
115
+ b.bp("/ota-tasks");
116
+ let body;
117
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
118
+ ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
119
+ Description: [],
120
+ OtaMechanism: [],
121
+ OtaSchedulingConfig: (_) => (0, smithy_client_1._json)(_),
122
+ OtaTargetQueryString: [],
123
+ OtaTaskExecutionRetryConfig: (_) => (0, smithy_client_1._json)(_),
124
+ OtaType: [],
125
+ Protocol: [],
126
+ S3Url: [],
127
+ Tags: (_) => (0, smithy_client_1._json)(_),
128
+ Target: (_) => (0, smithy_client_1._json)(_),
129
+ TaskConfigurationId: [],
130
+ }));
131
+ b.m("POST").h(headers).b(body);
132
+ return b.build();
133
+ };
134
+ exports.se_CreateOtaTaskCommand = se_CreateOtaTaskCommand;
135
+ const se_CreateOtaTaskConfigurationCommand = async (input, context) => {
136
+ const b = (0, core_2.requestBuilder)(input, context);
137
+ const headers = {
138
+ "content-type": "application/json",
139
+ };
140
+ b.bp("/ota-task-configurations");
141
+ let body;
142
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
143
+ ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
144
+ Description: [],
145
+ Name: [],
146
+ PushConfig: (_) => se_PushConfig(_, context),
147
+ }));
148
+ b.m("POST").h(headers).b(body);
149
+ return b.build();
150
+ };
151
+ exports.se_CreateOtaTaskConfigurationCommand = se_CreateOtaTaskConfigurationCommand;
152
+ const se_CreateProvisioningProfileCommand = async (input, context) => {
153
+ const b = (0, core_2.requestBuilder)(input, context);
154
+ const headers = {
155
+ "content-type": "application/json",
156
+ };
157
+ b.bp("/provisioning-profiles");
158
+ let body;
159
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
160
+ CaCertificate: [],
161
+ ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
162
+ Name: [],
163
+ ProvisioningType: [],
164
+ Tags: (_) => (0, smithy_client_1._json)(_),
165
+ }));
166
+ b.m("POST").h(headers).b(body);
167
+ return b.build();
168
+ };
169
+ exports.se_CreateProvisioningProfileCommand = se_CreateProvisioningProfileCommand;
170
+ const se_DeleteCredentialLockerCommand = async (input, context) => {
171
+ const b = (0, core_2.requestBuilder)(input, context);
172
+ const headers = {};
173
+ b.bp("/credential-lockers/{Identifier}");
174
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
175
+ let body;
176
+ b.m("DELETE").h(headers).b(body);
177
+ return b.build();
178
+ };
179
+ exports.se_DeleteCredentialLockerCommand = se_DeleteCredentialLockerCommand;
180
+ const se_DeleteDestinationCommand = async (input, context) => {
181
+ const b = (0, core_2.requestBuilder)(input, context);
182
+ const headers = {};
183
+ b.bp("/destinations/{Name}");
184
+ b.p("Name", () => input.Name, "{Name}", false);
185
+ let body;
186
+ b.m("DELETE").h(headers).b(body);
187
+ return b.build();
188
+ };
189
+ exports.se_DeleteDestinationCommand = se_DeleteDestinationCommand;
190
+ const se_DeleteEventLogConfigurationCommand = async (input, context) => {
191
+ const b = (0, core_2.requestBuilder)(input, context);
192
+ const headers = {};
193
+ b.bp("/event-log-configurations/{Id}");
194
+ b.p("Id", () => input.Id, "{Id}", false);
195
+ let body;
196
+ b.m("DELETE").h(headers).b(body);
197
+ return b.build();
198
+ };
199
+ exports.se_DeleteEventLogConfigurationCommand = se_DeleteEventLogConfigurationCommand;
200
+ const se_DeleteManagedThingCommand = async (input, context) => {
201
+ const b = (0, core_2.requestBuilder)(input, context);
202
+ const headers = {};
203
+ b.bp("/managed-things/{Identifier}");
204
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
205
+ const query = (0, smithy_client_1.map)({
206
+ [_F]: [() => input.Force !== void 0, () => input[_F].toString()],
207
+ });
208
+ let body;
209
+ b.m("DELETE").h(headers).q(query).b(body);
210
+ return b.build();
211
+ };
212
+ exports.se_DeleteManagedThingCommand = se_DeleteManagedThingCommand;
213
+ const se_DeleteNotificationConfigurationCommand = async (input, context) => {
214
+ const b = (0, core_2.requestBuilder)(input, context);
215
+ const headers = {};
216
+ b.bp("/notification-configurations/{EventType}");
217
+ b.p("EventType", () => input.EventType, "{EventType}", false);
218
+ let body;
219
+ b.m("DELETE").h(headers).b(body);
220
+ return b.build();
221
+ };
222
+ exports.se_DeleteNotificationConfigurationCommand = se_DeleteNotificationConfigurationCommand;
223
+ const se_DeleteOtaTaskCommand = async (input, context) => {
224
+ const b = (0, core_2.requestBuilder)(input, context);
225
+ const headers = {};
226
+ b.bp("/ota-tasks/{Identifier}");
227
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
228
+ let body;
229
+ b.m("DELETE").h(headers).b(body);
230
+ return b.build();
231
+ };
232
+ exports.se_DeleteOtaTaskCommand = se_DeleteOtaTaskCommand;
233
+ const se_DeleteOtaTaskConfigurationCommand = async (input, context) => {
234
+ const b = (0, core_2.requestBuilder)(input, context);
235
+ const headers = {};
236
+ b.bp("/ota-task-configurations/{Identifier}");
237
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
238
+ let body;
239
+ b.m("DELETE").h(headers).b(body);
240
+ return b.build();
241
+ };
242
+ exports.se_DeleteOtaTaskConfigurationCommand = se_DeleteOtaTaskConfigurationCommand;
243
+ const se_DeleteProvisioningProfileCommand = async (input, context) => {
244
+ const b = (0, core_2.requestBuilder)(input, context);
245
+ const headers = {};
246
+ b.bp("/provisioning-profiles/{Identifier}");
247
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
248
+ let body;
249
+ b.m("DELETE").h(headers).b(body);
250
+ return b.build();
251
+ };
252
+ exports.se_DeleteProvisioningProfileCommand = se_DeleteProvisioningProfileCommand;
253
+ const se_GetCredentialLockerCommand = async (input, context) => {
254
+ const b = (0, core_2.requestBuilder)(input, context);
255
+ const headers = {};
256
+ b.bp("/credential-lockers/{Identifier}");
257
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
258
+ let body;
259
+ b.m("GET").h(headers).b(body);
260
+ return b.build();
261
+ };
262
+ exports.se_GetCredentialLockerCommand = se_GetCredentialLockerCommand;
263
+ const se_GetCustomEndpointCommand = async (input, context) => {
264
+ const b = (0, core_2.requestBuilder)(input, context);
265
+ const headers = {};
266
+ b.bp("/custom-endpoint");
267
+ let body;
268
+ b.m("GET").h(headers).b(body);
269
+ return b.build();
270
+ };
271
+ exports.se_GetCustomEndpointCommand = se_GetCustomEndpointCommand;
272
+ const se_GetDefaultEncryptionConfigurationCommand = async (input, context) => {
273
+ const b = (0, core_2.requestBuilder)(input, context);
274
+ const headers = {};
275
+ b.bp("/configuration/account/encryption");
276
+ let body;
277
+ b.m("GET").h(headers).b(body);
278
+ return b.build();
279
+ };
280
+ exports.se_GetDefaultEncryptionConfigurationCommand = se_GetDefaultEncryptionConfigurationCommand;
281
+ const se_GetDestinationCommand = async (input, context) => {
282
+ const b = (0, core_2.requestBuilder)(input, context);
283
+ const headers = {};
284
+ b.bp("/destinations/{Name}");
285
+ b.p("Name", () => input.Name, "{Name}", false);
286
+ let body;
287
+ b.m("GET").h(headers).b(body);
288
+ return b.build();
289
+ };
290
+ exports.se_GetDestinationCommand = se_GetDestinationCommand;
291
+ const se_GetDeviceDiscoveryCommand = async (input, context) => {
292
+ const b = (0, core_2.requestBuilder)(input, context);
293
+ const headers = {};
294
+ b.bp("/device-discoveries/{Identifier}");
295
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
296
+ let body;
297
+ b.m("GET").h(headers).b(body);
298
+ return b.build();
299
+ };
300
+ exports.se_GetDeviceDiscoveryCommand = se_GetDeviceDiscoveryCommand;
301
+ const se_GetEventLogConfigurationCommand = async (input, context) => {
302
+ const b = (0, core_2.requestBuilder)(input, context);
303
+ const headers = {};
304
+ b.bp("/event-log-configurations/{Id}");
305
+ b.p("Id", () => input.Id, "{Id}", false);
306
+ let body;
307
+ b.m("GET").h(headers).b(body);
308
+ return b.build();
309
+ };
310
+ exports.se_GetEventLogConfigurationCommand = se_GetEventLogConfigurationCommand;
311
+ const se_GetHubConfigurationCommand = async (input, context) => {
312
+ const b = (0, core_2.requestBuilder)(input, context);
313
+ const headers = {};
314
+ b.bp("/hub-configuration");
315
+ let body;
316
+ b.m("GET").h(headers).b(body);
317
+ return b.build();
318
+ };
319
+ exports.se_GetHubConfigurationCommand = se_GetHubConfigurationCommand;
320
+ const se_GetManagedThingCommand = async (input, context) => {
321
+ const b = (0, core_2.requestBuilder)(input, context);
322
+ const headers = {};
323
+ b.bp("/managed-things/{Identifier}");
324
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
325
+ let body;
326
+ b.m("GET").h(headers).b(body);
327
+ return b.build();
328
+ };
329
+ exports.se_GetManagedThingCommand = se_GetManagedThingCommand;
330
+ const se_GetManagedThingCapabilitiesCommand = async (input, context) => {
331
+ const b = (0, core_2.requestBuilder)(input, context);
332
+ const headers = {};
333
+ b.bp("/managed-things-capabilities/{Identifier}");
334
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
335
+ let body;
336
+ b.m("GET").h(headers).b(body);
337
+ return b.build();
338
+ };
339
+ exports.se_GetManagedThingCapabilitiesCommand = se_GetManagedThingCapabilitiesCommand;
340
+ const se_GetManagedThingConnectivityDataCommand = async (input, context) => {
341
+ const b = (0, core_2.requestBuilder)(input, context);
342
+ const headers = {};
343
+ b.bp("/managed-things-connectivity-data/{Identifier}");
344
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
345
+ let body;
346
+ b.m("POST").h(headers).b(body);
347
+ return b.build();
348
+ };
349
+ exports.se_GetManagedThingConnectivityDataCommand = se_GetManagedThingConnectivityDataCommand;
350
+ const se_GetManagedThingMetaDataCommand = async (input, context) => {
351
+ const b = (0, core_2.requestBuilder)(input, context);
352
+ const headers = {};
353
+ b.bp("/managed-things-metadata/{Identifier}");
354
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
355
+ let body;
356
+ b.m("GET").h(headers).b(body);
357
+ return b.build();
358
+ };
359
+ exports.se_GetManagedThingMetaDataCommand = se_GetManagedThingMetaDataCommand;
360
+ const se_GetManagedThingStateCommand = async (input, context) => {
361
+ const b = (0, core_2.requestBuilder)(input, context);
362
+ const headers = {};
363
+ b.bp("/managed-thing-states/{ManagedThingId}");
364
+ b.p("ManagedThingId", () => input.ManagedThingId, "{ManagedThingId}", false);
365
+ let body;
366
+ b.m("GET").h(headers).b(body);
367
+ return b.build();
368
+ };
369
+ exports.se_GetManagedThingStateCommand = se_GetManagedThingStateCommand;
370
+ const se_GetNotificationConfigurationCommand = async (input, context) => {
371
+ const b = (0, core_2.requestBuilder)(input, context);
372
+ const headers = {};
373
+ b.bp("/notification-configurations/{EventType}");
374
+ b.p("EventType", () => input.EventType, "{EventType}", false);
375
+ let body;
376
+ b.m("GET").h(headers).b(body);
377
+ return b.build();
378
+ };
379
+ exports.se_GetNotificationConfigurationCommand = se_GetNotificationConfigurationCommand;
380
+ const se_GetOtaTaskCommand = async (input, context) => {
381
+ const b = (0, core_2.requestBuilder)(input, context);
382
+ const headers = {};
383
+ b.bp("/ota-tasks/{Identifier}");
384
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
385
+ let body;
386
+ b.m("GET").h(headers).b(body);
387
+ return b.build();
388
+ };
389
+ exports.se_GetOtaTaskCommand = se_GetOtaTaskCommand;
390
+ const se_GetOtaTaskConfigurationCommand = async (input, context) => {
391
+ const b = (0, core_2.requestBuilder)(input, context);
392
+ const headers = {};
393
+ b.bp("/ota-task-configurations/{Identifier}");
394
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
395
+ let body;
396
+ b.m("GET").h(headers).b(body);
397
+ return b.build();
398
+ };
399
+ exports.se_GetOtaTaskConfigurationCommand = se_GetOtaTaskConfigurationCommand;
400
+ const se_GetProvisioningProfileCommand = async (input, context) => {
401
+ const b = (0, core_2.requestBuilder)(input, context);
402
+ const headers = {};
403
+ b.bp("/provisioning-profiles/{Identifier}");
404
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
405
+ let body;
406
+ b.m("GET").h(headers).b(body);
407
+ return b.build();
408
+ };
409
+ exports.se_GetProvisioningProfileCommand = se_GetProvisioningProfileCommand;
410
+ const se_GetRuntimeLogConfigurationCommand = async (input, context) => {
411
+ const b = (0, core_2.requestBuilder)(input, context);
412
+ const headers = {};
413
+ b.bp("/runtime-log-configurations/{ManagedThingId}");
414
+ b.p("ManagedThingId", () => input.ManagedThingId, "{ManagedThingId}", false);
415
+ let body;
416
+ b.m("GET").h(headers).b(body);
417
+ return b.build();
418
+ };
419
+ exports.se_GetRuntimeLogConfigurationCommand = se_GetRuntimeLogConfigurationCommand;
420
+ const se_GetSchemaVersionCommand = async (input, context) => {
421
+ const b = (0, core_2.requestBuilder)(input, context);
422
+ const headers = {};
423
+ b.bp("/schema-versions/{Type}/{SchemaVersionedId}");
424
+ b.p("Type", () => input.Type, "{Type}", false);
425
+ b.p("SchemaVersionedId", () => input.SchemaVersionedId, "{SchemaVersionedId}", false);
426
+ const query = (0, smithy_client_1.map)({
427
+ [_Fo]: [, input[_Fo]],
428
+ });
429
+ let body;
430
+ b.m("GET").h(headers).q(query).b(body);
431
+ return b.build();
432
+ };
433
+ exports.se_GetSchemaVersionCommand = se_GetSchemaVersionCommand;
434
+ const se_ListCredentialLockersCommand = async (input, context) => {
435
+ const b = (0, core_2.requestBuilder)(input, context);
436
+ const headers = {};
437
+ b.bp("/credential-lockers");
438
+ const query = (0, smithy_client_1.map)({
439
+ [_NT]: [, input[_NT]],
440
+ [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
441
+ });
442
+ let body;
443
+ b.m("GET").h(headers).q(query).b(body);
444
+ return b.build();
445
+ };
446
+ exports.se_ListCredentialLockersCommand = se_ListCredentialLockersCommand;
447
+ const se_ListDestinationsCommand = async (input, context) => {
448
+ const b = (0, core_2.requestBuilder)(input, context);
449
+ const headers = {};
450
+ b.bp("/destinations");
451
+ const query = (0, smithy_client_1.map)({
452
+ [_NT]: [, input[_NT]],
453
+ [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
454
+ });
455
+ let body;
456
+ b.m("GET").h(headers).q(query).b(body);
457
+ return b.build();
458
+ };
459
+ exports.se_ListDestinationsCommand = se_ListDestinationsCommand;
460
+ const se_ListEventLogConfigurationsCommand = async (input, context) => {
461
+ const b = (0, core_2.requestBuilder)(input, context);
462
+ const headers = {};
463
+ b.bp("/event-log-configurations");
464
+ const query = (0, smithy_client_1.map)({
465
+ [_NT]: [, input[_NT]],
466
+ [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
467
+ });
468
+ let body;
469
+ b.m("GET").h(headers).q(query).b(body);
470
+ return b.build();
471
+ };
472
+ exports.se_ListEventLogConfigurationsCommand = se_ListEventLogConfigurationsCommand;
473
+ const se_ListManagedThingsCommand = async (input, context) => {
474
+ const b = (0, core_2.requestBuilder)(input, context);
475
+ const headers = {};
476
+ b.bp("/managed-things");
477
+ const query = (0, smithy_client_1.map)({
478
+ [_OF]: [, input[_OF]],
479
+ [_CLF]: [, input[_CLF]],
480
+ [_RF]: [, input[_RF]],
481
+ [_PCIF]: [, input[_PCIF]],
482
+ [_CPIF]: [, input[_CPIF]],
483
+ [_SNF]: [, input[_SNF]],
484
+ [_PSF]: [, input[_PSF]],
485
+ [_NT]: [, input[_NT]],
486
+ [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
487
+ });
488
+ let body;
489
+ b.m("GET").h(headers).q(query).b(body);
490
+ return b.build();
491
+ };
492
+ exports.se_ListManagedThingsCommand = se_ListManagedThingsCommand;
493
+ const se_ListManagedThingSchemasCommand = async (input, context) => {
494
+ const b = (0, core_2.requestBuilder)(input, context);
495
+ const headers = {};
496
+ b.bp("/managed-thing-schemas/{Identifier}");
497
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
498
+ const query = (0, smithy_client_1.map)({
499
+ [_EIF]: [, input[_EIF]],
500
+ [_CIF]: [, input[_CIF]],
501
+ [_NT]: [, input[_NT]],
502
+ [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
503
+ });
504
+ let body;
505
+ b.m("GET").h(headers).q(query).b(body);
506
+ return b.build();
507
+ };
508
+ exports.se_ListManagedThingSchemasCommand = se_ListManagedThingSchemasCommand;
509
+ const se_ListNotificationConfigurationsCommand = async (input, context) => {
510
+ const b = (0, core_2.requestBuilder)(input, context);
511
+ const headers = {};
512
+ b.bp("/notification-configurations");
513
+ const query = (0, smithy_client_1.map)({
514
+ [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
515
+ [_NT]: [, input[_NT]],
516
+ });
517
+ let body;
518
+ b.m("GET").h(headers).q(query).b(body);
519
+ return b.build();
520
+ };
521
+ exports.se_ListNotificationConfigurationsCommand = se_ListNotificationConfigurationsCommand;
522
+ const se_ListOtaTaskConfigurationsCommand = async (input, context) => {
523
+ const b = (0, core_2.requestBuilder)(input, context);
524
+ const headers = {};
525
+ b.bp("/ota-task-configurations");
526
+ const query = (0, smithy_client_1.map)({
527
+ [_NT]: [, input[_NT]],
528
+ [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
529
+ });
530
+ let body;
531
+ b.m("GET").h(headers).q(query).b(body);
532
+ return b.build();
533
+ };
534
+ exports.se_ListOtaTaskConfigurationsCommand = se_ListOtaTaskConfigurationsCommand;
535
+ const se_ListOtaTaskExecutionsCommand = async (input, context) => {
536
+ const b = (0, core_2.requestBuilder)(input, context);
537
+ const headers = {};
538
+ b.bp("/ota-tasks/{Identifier}/devices");
539
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
540
+ const query = (0, smithy_client_1.map)({
541
+ [_NT]: [, input[_NT]],
542
+ [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
543
+ });
544
+ let body;
545
+ b.m("GET").h(headers).q(query).b(body);
546
+ return b.build();
547
+ };
548
+ exports.se_ListOtaTaskExecutionsCommand = se_ListOtaTaskExecutionsCommand;
549
+ const se_ListOtaTasksCommand = async (input, context) => {
550
+ const b = (0, core_2.requestBuilder)(input, context);
551
+ const headers = {};
552
+ b.bp("/ota-tasks");
553
+ const query = (0, smithy_client_1.map)({
554
+ [_NT]: [, input[_NT]],
555
+ [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
556
+ });
557
+ let body;
558
+ b.m("GET").h(headers).q(query).b(body);
559
+ return b.build();
560
+ };
561
+ exports.se_ListOtaTasksCommand = se_ListOtaTasksCommand;
562
+ const se_ListProvisioningProfilesCommand = async (input, context) => {
563
+ const b = (0, core_2.requestBuilder)(input, context);
564
+ const headers = {};
565
+ b.bp("/provisioning-profiles");
566
+ const query = (0, smithy_client_1.map)({
567
+ [_NT]: [, input[_NT]],
568
+ [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
569
+ });
570
+ let body;
571
+ b.m("GET").h(headers).q(query).b(body);
572
+ return b.build();
573
+ };
574
+ exports.se_ListProvisioningProfilesCommand = se_ListProvisioningProfilesCommand;
575
+ const se_ListSchemaVersionsCommand = async (input, context) => {
576
+ const b = (0, core_2.requestBuilder)(input, context);
577
+ const headers = {};
578
+ b.bp("/schema-versions/{Type}");
579
+ b.p("Type", () => input.Type, "{Type}", false);
580
+ const query = (0, smithy_client_1.map)({
581
+ [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
582
+ [_NT]: [, input[_NT]],
583
+ [_SIF]: [, input[_SI]],
584
+ [_NF]: [, input[_N]],
585
+ [_VF]: [, input[_V]],
586
+ [_SVF]: [, input[_SV]],
587
+ });
588
+ let body;
589
+ b.m("GET").h(headers).q(query).b(body);
590
+ return b.build();
591
+ };
592
+ exports.se_ListSchemaVersionsCommand = se_ListSchemaVersionsCommand;
593
+ const se_PutDefaultEncryptionConfigurationCommand = async (input, context) => {
594
+ const b = (0, core_2.requestBuilder)(input, context);
595
+ const headers = {
596
+ "content-type": "application/json",
597
+ };
598
+ b.bp("/configuration/account/encryption");
599
+ let body;
600
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
601
+ encryptionType: [],
602
+ kmsKeyArn: [],
603
+ }));
604
+ b.m("POST").h(headers).b(body);
605
+ return b.build();
606
+ };
607
+ exports.se_PutDefaultEncryptionConfigurationCommand = se_PutDefaultEncryptionConfigurationCommand;
608
+ const se_PutHubConfigurationCommand = async (input, context) => {
609
+ const b = (0, core_2.requestBuilder)(input, context);
610
+ const headers = {
611
+ "content-type": "application/json",
612
+ };
613
+ b.bp("/hub-configuration");
614
+ let body;
615
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
616
+ HubTokenTimerExpirySettingInSeconds: [],
617
+ }));
618
+ b.m("PUT").h(headers).b(body);
619
+ return b.build();
620
+ };
621
+ exports.se_PutHubConfigurationCommand = se_PutHubConfigurationCommand;
622
+ const se_PutRuntimeLogConfigurationCommand = async (input, context) => {
623
+ const b = (0, core_2.requestBuilder)(input, context);
624
+ const headers = {
625
+ "content-type": "application/json",
626
+ };
627
+ b.bp("/runtime-log-configurations/{ManagedThingId}");
628
+ b.p("ManagedThingId", () => input.ManagedThingId, "{ManagedThingId}", false);
629
+ let body;
630
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
631
+ RuntimeLogConfigurations: (_) => (0, smithy_client_1._json)(_),
632
+ }));
633
+ b.m("PUT").h(headers).b(body);
634
+ return b.build();
635
+ };
636
+ exports.se_PutRuntimeLogConfigurationCommand = se_PutRuntimeLogConfigurationCommand;
637
+ const se_RegisterCustomEndpointCommand = async (input, context) => {
638
+ const b = (0, core_2.requestBuilder)(input, context);
639
+ const headers = {};
640
+ b.bp("/custom-endpoint");
641
+ let body;
642
+ b.m("POST").h(headers).b(body);
643
+ return b.build();
644
+ };
645
+ exports.se_RegisterCustomEndpointCommand = se_RegisterCustomEndpointCommand;
646
+ const se_ResetRuntimeLogConfigurationCommand = async (input, context) => {
647
+ const b = (0, core_2.requestBuilder)(input, context);
648
+ const headers = {};
649
+ b.bp("/runtime-log-configurations/{ManagedThingId}");
650
+ b.p("ManagedThingId", () => input.ManagedThingId, "{ManagedThingId}", false);
651
+ let body;
652
+ b.m("DELETE").h(headers).b(body);
653
+ return b.build();
654
+ };
655
+ exports.se_ResetRuntimeLogConfigurationCommand = se_ResetRuntimeLogConfigurationCommand;
656
+ const se_SendManagedThingCommandCommand = async (input, context) => {
657
+ const b = (0, core_2.requestBuilder)(input, context);
658
+ const headers = {
659
+ "content-type": "application/json",
660
+ };
661
+ b.bp("/managed-things-command/{ManagedThingId}");
662
+ b.p("ManagedThingId", () => input.ManagedThingId, "{ManagedThingId}", false);
663
+ let body;
664
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
665
+ ConnectorAssociationId: [],
666
+ Endpoints: (_) => se_CommandEndpoints(_, context),
667
+ }));
668
+ b.m("POST").h(headers).b(body);
669
+ return b.build();
670
+ };
671
+ exports.se_SendManagedThingCommandCommand = se_SendManagedThingCommandCommand;
672
+ const se_StartDeviceDiscoveryCommand = async (input, context) => {
673
+ const b = (0, core_2.requestBuilder)(input, context);
674
+ const headers = {
675
+ "content-type": "application/json",
676
+ };
677
+ b.bp("/device-discoveries");
678
+ let body;
679
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
680
+ AuthenticationMaterial: [],
681
+ AuthenticationMaterialType: [],
682
+ ClientToken: [],
683
+ ConnectorAssociationIdentifier: [],
684
+ ControllerIdentifier: [],
685
+ DiscoveryType: [],
686
+ Tags: (_) => (0, smithy_client_1._json)(_),
687
+ }));
688
+ b.m("POST").h(headers).b(body);
689
+ return b.build();
690
+ };
691
+ exports.se_StartDeviceDiscoveryCommand = se_StartDeviceDiscoveryCommand;
692
+ const se_UpdateDestinationCommand = async (input, context) => {
693
+ const b = (0, core_2.requestBuilder)(input, context);
694
+ const headers = {
695
+ "content-type": "application/json",
696
+ };
697
+ b.bp("/destinations/{Name}");
698
+ b.p("Name", () => input.Name, "{Name}", false);
699
+ let body;
700
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
701
+ DeliveryDestinationArn: [],
702
+ DeliveryDestinationType: [],
703
+ Description: [],
704
+ RoleArn: [],
705
+ }));
706
+ b.m("PUT").h(headers).b(body);
707
+ return b.build();
708
+ };
709
+ exports.se_UpdateDestinationCommand = se_UpdateDestinationCommand;
710
+ const se_UpdateEventLogConfigurationCommand = async (input, context) => {
711
+ const b = (0, core_2.requestBuilder)(input, context);
712
+ const headers = {
713
+ "content-type": "application/json",
714
+ };
715
+ b.bp("/event-log-configurations/{Id}");
716
+ b.p("Id", () => input.Id, "{Id}", false);
717
+ let body;
718
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
719
+ EventLogLevel: [],
720
+ }));
721
+ b.m("PATCH").h(headers).b(body);
722
+ return b.build();
723
+ };
724
+ exports.se_UpdateEventLogConfigurationCommand = se_UpdateEventLogConfigurationCommand;
725
+ const se_UpdateManagedThingCommand = async (input, context) => {
726
+ const b = (0, core_2.requestBuilder)(input, context);
727
+ const headers = {
728
+ "content-type": "application/json",
729
+ };
730
+ b.bp("/managed-things/{Identifier}");
731
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
732
+ let body;
733
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
734
+ Brand: [],
735
+ Capabilities: [],
736
+ CapabilityReport: (_) => (0, smithy_client_1._json)(_),
737
+ Classification: [],
738
+ CredentialLockerId: [],
739
+ HubNetworkMode: [],
740
+ MetaData: (_) => (0, smithy_client_1._json)(_),
741
+ Model: [],
742
+ Name: [],
743
+ Owner: [],
744
+ SerialNumber: [],
745
+ }));
746
+ b.m("PUT").h(headers).b(body);
747
+ return b.build();
748
+ };
749
+ exports.se_UpdateManagedThingCommand = se_UpdateManagedThingCommand;
750
+ const se_UpdateNotificationConfigurationCommand = async (input, context) => {
751
+ const b = (0, core_2.requestBuilder)(input, context);
752
+ const headers = {
753
+ "content-type": "application/json",
754
+ };
755
+ b.bp("/notification-configurations/{EventType}");
756
+ b.p("EventType", () => input.EventType, "{EventType}", false);
757
+ let body;
758
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
759
+ DestinationName: [],
760
+ }));
761
+ b.m("PUT").h(headers).b(body);
762
+ return b.build();
763
+ };
764
+ exports.se_UpdateNotificationConfigurationCommand = se_UpdateNotificationConfigurationCommand;
765
+ const se_UpdateOtaTaskCommand = async (input, context) => {
766
+ const b = (0, core_2.requestBuilder)(input, context);
767
+ const headers = {
768
+ "content-type": "application/json",
769
+ };
770
+ b.bp("/ota-tasks/{Identifier}");
771
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
772
+ let body;
773
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
774
+ Description: [],
775
+ TaskConfigurationId: [],
776
+ }));
777
+ b.m("PUT").h(headers).b(body);
778
+ return b.build();
779
+ };
780
+ exports.se_UpdateOtaTaskCommand = se_UpdateOtaTaskCommand;
781
+ const de_CreateCredentialLockerCommand = async (output, context) => {
782
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
783
+ return de_CommandError(output, context);
784
+ }
785
+ const contents = (0, smithy_client_1.map)({
786
+ $metadata: deserializeMetadata(output),
787
+ });
788
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
789
+ const doc = (0, smithy_client_1.take)(data, {
790
+ Arn: smithy_client_1.expectString,
791
+ CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
792
+ Id: smithy_client_1.expectString,
793
+ });
794
+ Object.assign(contents, doc);
795
+ return contents;
796
+ };
797
+ exports.de_CreateCredentialLockerCommand = de_CreateCredentialLockerCommand;
798
+ const de_CreateDestinationCommand = async (output, context) => {
799
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
800
+ return de_CommandError(output, context);
801
+ }
802
+ const contents = (0, smithy_client_1.map)({
803
+ $metadata: deserializeMetadata(output),
804
+ });
805
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
806
+ const doc = (0, smithy_client_1.take)(data, {
807
+ Name: smithy_client_1.expectString,
808
+ });
809
+ Object.assign(contents, doc);
810
+ return contents;
811
+ };
812
+ exports.de_CreateDestinationCommand = de_CreateDestinationCommand;
813
+ const de_CreateEventLogConfigurationCommand = async (output, context) => {
814
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
815
+ return de_CommandError(output, context);
816
+ }
817
+ const contents = (0, smithy_client_1.map)({
818
+ $metadata: deserializeMetadata(output),
819
+ });
820
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
821
+ const doc = (0, smithy_client_1.take)(data, {
822
+ Id: smithy_client_1.expectString,
823
+ });
824
+ Object.assign(contents, doc);
825
+ return contents;
826
+ };
827
+ exports.de_CreateEventLogConfigurationCommand = de_CreateEventLogConfigurationCommand;
828
+ const de_CreateManagedThingCommand = async (output, context) => {
829
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
830
+ return de_CommandError(output, context);
831
+ }
832
+ const contents = (0, smithy_client_1.map)({
833
+ $metadata: deserializeMetadata(output),
834
+ });
835
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
836
+ const doc = (0, smithy_client_1.take)(data, {
837
+ Arn: smithy_client_1.expectString,
838
+ CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
839
+ Id: smithy_client_1.expectString,
840
+ });
841
+ Object.assign(contents, doc);
842
+ return contents;
843
+ };
844
+ exports.de_CreateManagedThingCommand = de_CreateManagedThingCommand;
845
+ const de_CreateNotificationConfigurationCommand = async (output, context) => {
846
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
847
+ return de_CommandError(output, context);
848
+ }
849
+ const contents = (0, smithy_client_1.map)({
850
+ $metadata: deserializeMetadata(output),
851
+ });
852
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
853
+ const doc = (0, smithy_client_1.take)(data, {
854
+ EventType: smithy_client_1.expectString,
855
+ });
856
+ Object.assign(contents, doc);
857
+ return contents;
858
+ };
859
+ exports.de_CreateNotificationConfigurationCommand = de_CreateNotificationConfigurationCommand;
860
+ const de_CreateOtaTaskCommand = async (output, context) => {
861
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
862
+ return de_CommandError(output, context);
863
+ }
864
+ const contents = (0, smithy_client_1.map)({
865
+ $metadata: deserializeMetadata(output),
866
+ });
867
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
868
+ const doc = (0, smithy_client_1.take)(data, {
869
+ Description: smithy_client_1.expectString,
870
+ TaskArn: smithy_client_1.expectString,
871
+ TaskId: smithy_client_1.expectString,
872
+ });
873
+ Object.assign(contents, doc);
874
+ return contents;
875
+ };
876
+ exports.de_CreateOtaTaskCommand = de_CreateOtaTaskCommand;
877
+ const de_CreateOtaTaskConfigurationCommand = async (output, context) => {
878
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
879
+ return de_CommandError(output, context);
880
+ }
881
+ const contents = (0, smithy_client_1.map)({
882
+ $metadata: deserializeMetadata(output),
883
+ });
884
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
885
+ const doc = (0, smithy_client_1.take)(data, {
886
+ TaskConfigurationId: smithy_client_1.expectString,
887
+ });
888
+ Object.assign(contents, doc);
889
+ return contents;
890
+ };
891
+ exports.de_CreateOtaTaskConfigurationCommand = de_CreateOtaTaskConfigurationCommand;
892
+ const de_CreateProvisioningProfileCommand = async (output, context) => {
893
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
894
+ return de_CommandError(output, context);
895
+ }
896
+ const contents = (0, smithy_client_1.map)({
897
+ $metadata: deserializeMetadata(output),
898
+ });
899
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
900
+ const doc = (0, smithy_client_1.take)(data, {
901
+ Arn: smithy_client_1.expectString,
902
+ ClaimCertificate: smithy_client_1.expectString,
903
+ ClaimCertificatePrivateKey: smithy_client_1.expectString,
904
+ Id: smithy_client_1.expectString,
905
+ Name: smithy_client_1.expectString,
906
+ ProvisioningType: smithy_client_1.expectString,
907
+ });
908
+ Object.assign(contents, doc);
909
+ return contents;
910
+ };
911
+ exports.de_CreateProvisioningProfileCommand = de_CreateProvisioningProfileCommand;
912
+ const de_DeleteCredentialLockerCommand = async (output, context) => {
913
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
914
+ return de_CommandError(output, context);
915
+ }
916
+ const contents = (0, smithy_client_1.map)({
917
+ $metadata: deserializeMetadata(output),
918
+ });
919
+ await (0, smithy_client_1.collectBody)(output.body, context);
920
+ return contents;
921
+ };
922
+ exports.de_DeleteCredentialLockerCommand = de_DeleteCredentialLockerCommand;
923
+ const de_DeleteDestinationCommand = async (output, context) => {
924
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
925
+ return de_CommandError(output, context);
926
+ }
927
+ const contents = (0, smithy_client_1.map)({
928
+ $metadata: deserializeMetadata(output),
929
+ });
930
+ await (0, smithy_client_1.collectBody)(output.body, context);
931
+ return contents;
932
+ };
933
+ exports.de_DeleteDestinationCommand = de_DeleteDestinationCommand;
934
+ const de_DeleteEventLogConfigurationCommand = async (output, context) => {
935
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
936
+ return de_CommandError(output, context);
937
+ }
938
+ const contents = (0, smithy_client_1.map)({
939
+ $metadata: deserializeMetadata(output),
940
+ });
941
+ await (0, smithy_client_1.collectBody)(output.body, context);
942
+ return contents;
943
+ };
944
+ exports.de_DeleteEventLogConfigurationCommand = de_DeleteEventLogConfigurationCommand;
945
+ const de_DeleteManagedThingCommand = async (output, context) => {
946
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
947
+ return de_CommandError(output, context);
948
+ }
949
+ const contents = (0, smithy_client_1.map)({
950
+ $metadata: deserializeMetadata(output),
951
+ });
952
+ await (0, smithy_client_1.collectBody)(output.body, context);
953
+ return contents;
954
+ };
955
+ exports.de_DeleteManagedThingCommand = de_DeleteManagedThingCommand;
956
+ const de_DeleteNotificationConfigurationCommand = async (output, context) => {
957
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
958
+ return de_CommandError(output, context);
959
+ }
960
+ const contents = (0, smithy_client_1.map)({
961
+ $metadata: deserializeMetadata(output),
962
+ });
963
+ await (0, smithy_client_1.collectBody)(output.body, context);
964
+ return contents;
965
+ };
966
+ exports.de_DeleteNotificationConfigurationCommand = de_DeleteNotificationConfigurationCommand;
967
+ const de_DeleteOtaTaskCommand = async (output, context) => {
968
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
969
+ return de_CommandError(output, context);
970
+ }
971
+ const contents = (0, smithy_client_1.map)({
972
+ $metadata: deserializeMetadata(output),
973
+ });
974
+ await (0, smithy_client_1.collectBody)(output.body, context);
975
+ return contents;
976
+ };
977
+ exports.de_DeleteOtaTaskCommand = de_DeleteOtaTaskCommand;
978
+ const de_DeleteOtaTaskConfigurationCommand = async (output, context) => {
979
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
980
+ return de_CommandError(output, context);
981
+ }
982
+ const contents = (0, smithy_client_1.map)({
983
+ $metadata: deserializeMetadata(output),
984
+ });
985
+ await (0, smithy_client_1.collectBody)(output.body, context);
986
+ return contents;
987
+ };
988
+ exports.de_DeleteOtaTaskConfigurationCommand = de_DeleteOtaTaskConfigurationCommand;
989
+ const de_DeleteProvisioningProfileCommand = async (output, context) => {
990
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
991
+ return de_CommandError(output, context);
992
+ }
993
+ const contents = (0, smithy_client_1.map)({
994
+ $metadata: deserializeMetadata(output),
995
+ });
996
+ await (0, smithy_client_1.collectBody)(output.body, context);
997
+ return contents;
998
+ };
999
+ exports.de_DeleteProvisioningProfileCommand = de_DeleteProvisioningProfileCommand;
1000
+ const de_GetCredentialLockerCommand = async (output, context) => {
1001
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1002
+ return de_CommandError(output, context);
1003
+ }
1004
+ const contents = (0, smithy_client_1.map)({
1005
+ $metadata: deserializeMetadata(output),
1006
+ });
1007
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1008
+ const doc = (0, smithy_client_1.take)(data, {
1009
+ Arn: smithy_client_1.expectString,
1010
+ CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1011
+ Id: smithy_client_1.expectString,
1012
+ Name: smithy_client_1.expectString,
1013
+ Tags: smithy_client_1._json,
1014
+ });
1015
+ Object.assign(contents, doc);
1016
+ return contents;
1017
+ };
1018
+ exports.de_GetCredentialLockerCommand = de_GetCredentialLockerCommand;
1019
+ const de_GetCustomEndpointCommand = async (output, context) => {
1020
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1021
+ return de_CommandError(output, context);
1022
+ }
1023
+ const contents = (0, smithy_client_1.map)({
1024
+ $metadata: deserializeMetadata(output),
1025
+ });
1026
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1027
+ const doc = (0, smithy_client_1.take)(data, {
1028
+ EndpointAddress: smithy_client_1.expectString,
1029
+ });
1030
+ Object.assign(contents, doc);
1031
+ return contents;
1032
+ };
1033
+ exports.de_GetCustomEndpointCommand = de_GetCustomEndpointCommand;
1034
+ const de_GetDefaultEncryptionConfigurationCommand = async (output, context) => {
1035
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1036
+ return de_CommandError(output, context);
1037
+ }
1038
+ const contents = (0, smithy_client_1.map)({
1039
+ $metadata: deserializeMetadata(output),
1040
+ });
1041
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1042
+ const doc = (0, smithy_client_1.take)(data, {
1043
+ configurationStatus: smithy_client_1._json,
1044
+ encryptionType: smithy_client_1.expectString,
1045
+ kmsKeyArn: smithy_client_1.expectString,
1046
+ });
1047
+ Object.assign(contents, doc);
1048
+ return contents;
1049
+ };
1050
+ exports.de_GetDefaultEncryptionConfigurationCommand = de_GetDefaultEncryptionConfigurationCommand;
1051
+ const de_GetDestinationCommand = async (output, context) => {
1052
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1053
+ return de_CommandError(output, context);
1054
+ }
1055
+ const contents = (0, smithy_client_1.map)({
1056
+ $metadata: deserializeMetadata(output),
1057
+ });
1058
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1059
+ const doc = (0, smithy_client_1.take)(data, {
1060
+ CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1061
+ DeliveryDestinationArn: smithy_client_1.expectString,
1062
+ DeliveryDestinationType: smithy_client_1.expectString,
1063
+ Description: smithy_client_1.expectString,
1064
+ Name: smithy_client_1.expectString,
1065
+ RoleArn: smithy_client_1.expectString,
1066
+ Tags: smithy_client_1._json,
1067
+ UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1068
+ });
1069
+ Object.assign(contents, doc);
1070
+ return contents;
1071
+ };
1072
+ exports.de_GetDestinationCommand = de_GetDestinationCommand;
1073
+ const de_GetDeviceDiscoveryCommand = async (output, context) => {
1074
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1075
+ return de_CommandError(output, context);
1076
+ }
1077
+ const contents = (0, smithy_client_1.map)({
1078
+ $metadata: deserializeMetadata(output),
1079
+ });
1080
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1081
+ const doc = (0, smithy_client_1.take)(data, {
1082
+ Arn: smithy_client_1.expectString,
1083
+ ConnectorAssociationId: smithy_client_1.expectString,
1084
+ ControllerId: smithy_client_1.expectString,
1085
+ DiscoveryType: smithy_client_1.expectString,
1086
+ FinishedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1087
+ Id: smithy_client_1.expectString,
1088
+ StartedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1089
+ Status: smithy_client_1.expectString,
1090
+ Tags: smithy_client_1._json,
1091
+ });
1092
+ Object.assign(contents, doc);
1093
+ return contents;
1094
+ };
1095
+ exports.de_GetDeviceDiscoveryCommand = de_GetDeviceDiscoveryCommand;
1096
+ const de_GetEventLogConfigurationCommand = async (output, context) => {
1097
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1098
+ return de_CommandError(output, context);
1099
+ }
1100
+ const contents = (0, smithy_client_1.map)({
1101
+ $metadata: deserializeMetadata(output),
1102
+ });
1103
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1104
+ const doc = (0, smithy_client_1.take)(data, {
1105
+ EventLogLevel: smithy_client_1.expectString,
1106
+ Id: smithy_client_1.expectString,
1107
+ ResourceId: smithy_client_1.expectString,
1108
+ ResourceType: smithy_client_1.expectString,
1109
+ });
1110
+ Object.assign(contents, doc);
1111
+ return contents;
1112
+ };
1113
+ exports.de_GetEventLogConfigurationCommand = de_GetEventLogConfigurationCommand;
1114
+ const de_GetHubConfigurationCommand = async (output, context) => {
1115
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1116
+ return de_CommandError(output, context);
1117
+ }
1118
+ const contents = (0, smithy_client_1.map)({
1119
+ $metadata: deserializeMetadata(output),
1120
+ });
1121
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1122
+ const doc = (0, smithy_client_1.take)(data, {
1123
+ HubTokenTimerExpirySettingInSeconds: smithy_client_1.expectLong,
1124
+ UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1125
+ });
1126
+ Object.assign(contents, doc);
1127
+ return contents;
1128
+ };
1129
+ exports.de_GetHubConfigurationCommand = de_GetHubConfigurationCommand;
1130
+ const de_GetManagedThingCommand = async (output, context) => {
1131
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1132
+ return de_CommandError(output, context);
1133
+ }
1134
+ const contents = (0, smithy_client_1.map)({
1135
+ $metadata: deserializeMetadata(output),
1136
+ });
1137
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1138
+ const doc = (0, smithy_client_1.take)(data, {
1139
+ ActivatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1140
+ AdvertisedProductId: smithy_client_1.expectString,
1141
+ Arn: smithy_client_1.expectString,
1142
+ Brand: smithy_client_1.expectString,
1143
+ Classification: smithy_client_1.expectString,
1144
+ ConnectorDeviceId: smithy_client_1.expectString,
1145
+ ConnectorPolicyId: smithy_client_1.expectString,
1146
+ CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1147
+ CredentialLockerId: smithy_client_1.expectString,
1148
+ DeviceSpecificKey: smithy_client_1.expectString,
1149
+ HubNetworkMode: smithy_client_1.expectString,
1150
+ Id: smithy_client_1.expectString,
1151
+ InternationalArticleNumber: smithy_client_1.expectString,
1152
+ MacAddress: smithy_client_1.expectString,
1153
+ MetaData: smithy_client_1._json,
1154
+ Model: smithy_client_1.expectString,
1155
+ Name: smithy_client_1.expectString,
1156
+ Owner: smithy_client_1.expectString,
1157
+ ParentControllerId: smithy_client_1.expectString,
1158
+ ProvisioningStatus: smithy_client_1.expectString,
1159
+ Role: smithy_client_1.expectString,
1160
+ SerialNumber: smithy_client_1.expectString,
1161
+ Tags: smithy_client_1._json,
1162
+ UniversalProductCode: smithy_client_1.expectString,
1163
+ UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1164
+ });
1165
+ Object.assign(contents, doc);
1166
+ return contents;
1167
+ };
1168
+ exports.de_GetManagedThingCommand = de_GetManagedThingCommand;
1169
+ const de_GetManagedThingCapabilitiesCommand = async (output, context) => {
1170
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1171
+ return de_CommandError(output, context);
1172
+ }
1173
+ const contents = (0, smithy_client_1.map)({
1174
+ $metadata: deserializeMetadata(output),
1175
+ });
1176
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1177
+ const doc = (0, smithy_client_1.take)(data, {
1178
+ Capabilities: smithy_client_1.expectString,
1179
+ CapabilityReport: smithy_client_1._json,
1180
+ ManagedThingId: smithy_client_1.expectString,
1181
+ });
1182
+ Object.assign(contents, doc);
1183
+ return contents;
1184
+ };
1185
+ exports.de_GetManagedThingCapabilitiesCommand = de_GetManagedThingCapabilitiesCommand;
1186
+ const de_GetManagedThingConnectivityDataCommand = async (output, context) => {
1187
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1188
+ return de_CommandError(output, context);
1189
+ }
1190
+ const contents = (0, smithy_client_1.map)({
1191
+ $metadata: deserializeMetadata(output),
1192
+ });
1193
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1194
+ const doc = (0, smithy_client_1.take)(data, {
1195
+ Connected: smithy_client_1.expectBoolean,
1196
+ DisconnectReason: smithy_client_1.expectString,
1197
+ ManagedThingId: smithy_client_1.expectString,
1198
+ Timestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1199
+ });
1200
+ Object.assign(contents, doc);
1201
+ return contents;
1202
+ };
1203
+ exports.de_GetManagedThingConnectivityDataCommand = de_GetManagedThingConnectivityDataCommand;
1204
+ const de_GetManagedThingMetaDataCommand = async (output, context) => {
1205
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1206
+ return de_CommandError(output, context);
1207
+ }
1208
+ const contents = (0, smithy_client_1.map)({
1209
+ $metadata: deserializeMetadata(output),
1210
+ });
1211
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1212
+ const doc = (0, smithy_client_1.take)(data, {
1213
+ ManagedThingId: smithy_client_1.expectString,
1214
+ MetaData: smithy_client_1._json,
1215
+ });
1216
+ Object.assign(contents, doc);
1217
+ return contents;
1218
+ };
1219
+ exports.de_GetManagedThingMetaDataCommand = de_GetManagedThingMetaDataCommand;
1220
+ const de_GetManagedThingStateCommand = async (output, context) => {
1221
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1222
+ return de_CommandError(output, context);
1223
+ }
1224
+ const contents = (0, smithy_client_1.map)({
1225
+ $metadata: deserializeMetadata(output),
1226
+ });
1227
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1228
+ const doc = (0, smithy_client_1.take)(data, {
1229
+ Endpoints: (_) => de_StateEndpoints(_, context),
1230
+ });
1231
+ Object.assign(contents, doc);
1232
+ return contents;
1233
+ };
1234
+ exports.de_GetManagedThingStateCommand = de_GetManagedThingStateCommand;
1235
+ const de_GetNotificationConfigurationCommand = async (output, context) => {
1236
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1237
+ return de_CommandError(output, context);
1238
+ }
1239
+ const contents = (0, smithy_client_1.map)({
1240
+ $metadata: deserializeMetadata(output),
1241
+ });
1242
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1243
+ const doc = (0, smithy_client_1.take)(data, {
1244
+ CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1245
+ DestinationName: smithy_client_1.expectString,
1246
+ EventType: smithy_client_1.expectString,
1247
+ Tags: smithy_client_1._json,
1248
+ UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1249
+ });
1250
+ Object.assign(contents, doc);
1251
+ return contents;
1252
+ };
1253
+ exports.de_GetNotificationConfigurationCommand = de_GetNotificationConfigurationCommand;
1254
+ const de_GetOtaTaskCommand = async (output, context) => {
1255
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1256
+ return de_CommandError(output, context);
1257
+ }
1258
+ const contents = (0, smithy_client_1.map)({
1259
+ $metadata: deserializeMetadata(output),
1260
+ });
1261
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1262
+ const doc = (0, smithy_client_1.take)(data, {
1263
+ CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1264
+ Description: smithy_client_1.expectString,
1265
+ LastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1266
+ OtaMechanism: smithy_client_1.expectString,
1267
+ OtaSchedulingConfig: smithy_client_1._json,
1268
+ OtaTargetQueryString: smithy_client_1.expectString,
1269
+ OtaTaskExecutionRetryConfig: smithy_client_1._json,
1270
+ OtaType: smithy_client_1.expectString,
1271
+ Protocol: smithy_client_1.expectString,
1272
+ S3Url: smithy_client_1.expectString,
1273
+ Status: smithy_client_1.expectString,
1274
+ Target: smithy_client_1._json,
1275
+ TaskArn: smithy_client_1.expectString,
1276
+ TaskConfigurationId: smithy_client_1.expectString,
1277
+ TaskId: smithy_client_1.expectString,
1278
+ TaskProcessingDetails: smithy_client_1._json,
1279
+ });
1280
+ Object.assign(contents, doc);
1281
+ return contents;
1282
+ };
1283
+ exports.de_GetOtaTaskCommand = de_GetOtaTaskCommand;
1284
+ const de_GetOtaTaskConfigurationCommand = async (output, context) => {
1285
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1286
+ return de_CommandError(output, context);
1287
+ }
1288
+ const contents = (0, smithy_client_1.map)({
1289
+ $metadata: deserializeMetadata(output),
1290
+ });
1291
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1292
+ const doc = (0, smithy_client_1.take)(data, {
1293
+ CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1294
+ Description: smithy_client_1.expectString,
1295
+ Name: smithy_client_1.expectString,
1296
+ PushConfig: (_) => de_PushConfig(_, context),
1297
+ TaskConfigurationId: smithy_client_1.expectString,
1298
+ });
1299
+ Object.assign(contents, doc);
1300
+ return contents;
1301
+ };
1302
+ exports.de_GetOtaTaskConfigurationCommand = de_GetOtaTaskConfigurationCommand;
1303
+ const de_GetProvisioningProfileCommand = async (output, context) => {
1304
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1305
+ return de_CommandError(output, context);
1306
+ }
1307
+ const contents = (0, smithy_client_1.map)({
1308
+ $metadata: deserializeMetadata(output),
1309
+ });
1310
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1311
+ const doc = (0, smithy_client_1.take)(data, {
1312
+ Arn: smithy_client_1.expectString,
1313
+ ClaimCertificate: smithy_client_1.expectString,
1314
+ Id: smithy_client_1.expectString,
1315
+ Name: smithy_client_1.expectString,
1316
+ ProvisioningType: smithy_client_1.expectString,
1317
+ Tags: smithy_client_1._json,
1318
+ });
1319
+ Object.assign(contents, doc);
1320
+ return contents;
1321
+ };
1322
+ exports.de_GetProvisioningProfileCommand = de_GetProvisioningProfileCommand;
1323
+ const de_GetRuntimeLogConfigurationCommand = async (output, context) => {
1324
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1325
+ return de_CommandError(output, context);
1326
+ }
1327
+ const contents = (0, smithy_client_1.map)({
1328
+ $metadata: deserializeMetadata(output),
1329
+ });
1330
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1331
+ const doc = (0, smithy_client_1.take)(data, {
1332
+ ManagedThingId: smithy_client_1.expectString,
1333
+ RuntimeLogConfigurations: smithy_client_1._json,
1334
+ });
1335
+ Object.assign(contents, doc);
1336
+ return contents;
1337
+ };
1338
+ exports.de_GetRuntimeLogConfigurationCommand = de_GetRuntimeLogConfigurationCommand;
1339
+ const de_GetSchemaVersionCommand = async (output, context) => {
1340
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1341
+ return de_CommandError(output, context);
1342
+ }
1343
+ const contents = (0, smithy_client_1.map)({
1344
+ $metadata: deserializeMetadata(output),
1345
+ });
1346
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1347
+ const doc = (0, smithy_client_1.take)(data, {
1348
+ Description: smithy_client_1.expectString,
1349
+ Namespace: smithy_client_1.expectString,
1350
+ Schema: (_) => de_SchemaVersionSchema(_, context),
1351
+ SchemaId: smithy_client_1.expectString,
1352
+ SemanticVersion: smithy_client_1.expectString,
1353
+ Type: smithy_client_1.expectString,
1354
+ Visibility: smithy_client_1.expectString,
1355
+ });
1356
+ Object.assign(contents, doc);
1357
+ return contents;
1358
+ };
1359
+ exports.de_GetSchemaVersionCommand = de_GetSchemaVersionCommand;
1360
+ const de_ListCredentialLockersCommand = async (output, context) => {
1361
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1362
+ return de_CommandError(output, context);
1363
+ }
1364
+ const contents = (0, smithy_client_1.map)({
1365
+ $metadata: deserializeMetadata(output),
1366
+ });
1367
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1368
+ const doc = (0, smithy_client_1.take)(data, {
1369
+ Items: (_) => de_CredentialLockerListDefinition(_, context),
1370
+ NextToken: smithy_client_1.expectString,
1371
+ });
1372
+ Object.assign(contents, doc);
1373
+ return contents;
1374
+ };
1375
+ exports.de_ListCredentialLockersCommand = de_ListCredentialLockersCommand;
1376
+ const de_ListDestinationsCommand = async (output, context) => {
1377
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1378
+ return de_CommandError(output, context);
1379
+ }
1380
+ const contents = (0, smithy_client_1.map)({
1381
+ $metadata: deserializeMetadata(output),
1382
+ });
1383
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1384
+ const doc = (0, smithy_client_1.take)(data, {
1385
+ DestinationList: smithy_client_1._json,
1386
+ NextToken: smithy_client_1.expectString,
1387
+ });
1388
+ Object.assign(contents, doc);
1389
+ return contents;
1390
+ };
1391
+ exports.de_ListDestinationsCommand = de_ListDestinationsCommand;
1392
+ const de_ListEventLogConfigurationsCommand = async (output, context) => {
1393
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1394
+ return de_CommandError(output, context);
1395
+ }
1396
+ const contents = (0, smithy_client_1.map)({
1397
+ $metadata: deserializeMetadata(output),
1398
+ });
1399
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1400
+ const doc = (0, smithy_client_1.take)(data, {
1401
+ EventLogConfigurationList: smithy_client_1._json,
1402
+ NextToken: smithy_client_1.expectString,
1403
+ });
1404
+ Object.assign(contents, doc);
1405
+ return contents;
1406
+ };
1407
+ exports.de_ListEventLogConfigurationsCommand = de_ListEventLogConfigurationsCommand;
1408
+ const de_ListManagedThingsCommand = async (output, context) => {
1409
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1410
+ return de_CommandError(output, context);
1411
+ }
1412
+ const contents = (0, smithy_client_1.map)({
1413
+ $metadata: deserializeMetadata(output),
1414
+ });
1415
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1416
+ const doc = (0, smithy_client_1.take)(data, {
1417
+ Items: (_) => de_ManagedThingListDefinition(_, context),
1418
+ NextToken: smithy_client_1.expectString,
1419
+ });
1420
+ Object.assign(contents, doc);
1421
+ return contents;
1422
+ };
1423
+ exports.de_ListManagedThingsCommand = de_ListManagedThingsCommand;
1424
+ const de_ListManagedThingSchemasCommand = async (output, context) => {
1425
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1426
+ return de_CommandError(output, context);
1427
+ }
1428
+ const contents = (0, smithy_client_1.map)({
1429
+ $metadata: deserializeMetadata(output),
1430
+ });
1431
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1432
+ const doc = (0, smithy_client_1.take)(data, {
1433
+ Items: (_) => de_ManagedThingSchemaListDefinition(_, context),
1434
+ NextToken: smithy_client_1.expectString,
1435
+ });
1436
+ Object.assign(contents, doc);
1437
+ return contents;
1438
+ };
1439
+ exports.de_ListManagedThingSchemasCommand = de_ListManagedThingSchemasCommand;
1440
+ const de_ListNotificationConfigurationsCommand = async (output, context) => {
1441
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1442
+ return de_CommandError(output, context);
1443
+ }
1444
+ const contents = (0, smithy_client_1.map)({
1445
+ $metadata: deserializeMetadata(output),
1446
+ });
1447
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1448
+ const doc = (0, smithy_client_1.take)(data, {
1449
+ NextToken: smithy_client_1.expectString,
1450
+ NotificationConfigurationList: smithy_client_1._json,
1451
+ });
1452
+ Object.assign(contents, doc);
1453
+ return contents;
1454
+ };
1455
+ exports.de_ListNotificationConfigurationsCommand = de_ListNotificationConfigurationsCommand;
1456
+ const de_ListOtaTaskConfigurationsCommand = async (output, context) => {
1457
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1458
+ return de_CommandError(output, context);
1459
+ }
1460
+ const contents = (0, smithy_client_1.map)({
1461
+ $metadata: deserializeMetadata(output),
1462
+ });
1463
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1464
+ const doc = (0, smithy_client_1.take)(data, {
1465
+ Items: (_) => de_OtaTaskConfigurationListDefinition(_, context),
1466
+ NextToken: smithy_client_1.expectString,
1467
+ });
1468
+ Object.assign(contents, doc);
1469
+ return contents;
1470
+ };
1471
+ exports.de_ListOtaTaskConfigurationsCommand = de_ListOtaTaskConfigurationsCommand;
1472
+ const de_ListOtaTaskExecutionsCommand = async (output, context) => {
1473
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1474
+ return de_CommandError(output, context);
1475
+ }
1476
+ const contents = (0, smithy_client_1.map)({
1477
+ $metadata: deserializeMetadata(output),
1478
+ });
1479
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1480
+ const doc = (0, smithy_client_1.take)(data, {
1481
+ ExecutionSummaries: (_) => de_OtaTaskExecutionSummariesListDefinition(_, context),
1482
+ NextToken: smithy_client_1.expectString,
1483
+ });
1484
+ Object.assign(contents, doc);
1485
+ return contents;
1486
+ };
1487
+ exports.de_ListOtaTaskExecutionsCommand = de_ListOtaTaskExecutionsCommand;
1488
+ const de_ListOtaTasksCommand = async (output, context) => {
1489
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1490
+ return de_CommandError(output, context);
1491
+ }
1492
+ const contents = (0, smithy_client_1.map)({
1493
+ $metadata: deserializeMetadata(output),
1494
+ });
1495
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1496
+ const doc = (0, smithy_client_1.take)(data, {
1497
+ NextToken: smithy_client_1.expectString,
1498
+ Tasks: (_) => de_OtaTaskListDefinition(_, context),
1499
+ });
1500
+ Object.assign(contents, doc);
1501
+ return contents;
1502
+ };
1503
+ exports.de_ListOtaTasksCommand = de_ListOtaTasksCommand;
1504
+ const de_ListProvisioningProfilesCommand = async (output, context) => {
1505
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1506
+ return de_CommandError(output, context);
1507
+ }
1508
+ const contents = (0, smithy_client_1.map)({
1509
+ $metadata: deserializeMetadata(output),
1510
+ });
1511
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1512
+ const doc = (0, smithy_client_1.take)(data, {
1513
+ Items: smithy_client_1._json,
1514
+ NextToken: smithy_client_1.expectString,
1515
+ });
1516
+ Object.assign(contents, doc);
1517
+ return contents;
1518
+ };
1519
+ exports.de_ListProvisioningProfilesCommand = de_ListProvisioningProfilesCommand;
1520
+ const de_ListSchemaVersionsCommand = async (output, context) => {
1521
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1522
+ return de_CommandError(output, context);
1523
+ }
1524
+ const contents = (0, smithy_client_1.map)({
1525
+ $metadata: deserializeMetadata(output),
1526
+ });
1527
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1528
+ const doc = (0, smithy_client_1.take)(data, {
1529
+ Items: smithy_client_1._json,
1530
+ NextToken: smithy_client_1.expectString,
1531
+ });
1532
+ Object.assign(contents, doc);
1533
+ return contents;
1534
+ };
1535
+ exports.de_ListSchemaVersionsCommand = de_ListSchemaVersionsCommand;
1536
+ const de_PutDefaultEncryptionConfigurationCommand = async (output, context) => {
1537
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
1538
+ return de_CommandError(output, context);
1539
+ }
1540
+ const contents = (0, smithy_client_1.map)({
1541
+ $metadata: deserializeMetadata(output),
1542
+ });
1543
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1544
+ const doc = (0, smithy_client_1.take)(data, {
1545
+ configurationStatus: smithy_client_1._json,
1546
+ encryptionType: smithy_client_1.expectString,
1547
+ kmsKeyArn: smithy_client_1.expectString,
1548
+ });
1549
+ Object.assign(contents, doc);
1550
+ return contents;
1551
+ };
1552
+ exports.de_PutDefaultEncryptionConfigurationCommand = de_PutDefaultEncryptionConfigurationCommand;
1553
+ const de_PutHubConfigurationCommand = async (output, context) => {
1554
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
1555
+ return de_CommandError(output, context);
1556
+ }
1557
+ const contents = (0, smithy_client_1.map)({
1558
+ $metadata: deserializeMetadata(output),
1559
+ });
1560
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1561
+ const doc = (0, smithy_client_1.take)(data, {
1562
+ HubTokenTimerExpirySettingInSeconds: smithy_client_1.expectLong,
1563
+ });
1564
+ Object.assign(contents, doc);
1565
+ return contents;
1566
+ };
1567
+ exports.de_PutHubConfigurationCommand = de_PutHubConfigurationCommand;
1568
+ const de_PutRuntimeLogConfigurationCommand = async (output, context) => {
1569
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1570
+ return de_CommandError(output, context);
1571
+ }
1572
+ const contents = (0, smithy_client_1.map)({
1573
+ $metadata: deserializeMetadata(output),
1574
+ });
1575
+ await (0, smithy_client_1.collectBody)(output.body, context);
1576
+ return contents;
1577
+ };
1578
+ exports.de_PutRuntimeLogConfigurationCommand = de_PutRuntimeLogConfigurationCommand;
1579
+ const de_RegisterCustomEndpointCommand = async (output, context) => {
1580
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
1581
+ return de_CommandError(output, context);
1582
+ }
1583
+ const contents = (0, smithy_client_1.map)({
1584
+ $metadata: deserializeMetadata(output),
1585
+ });
1586
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1587
+ const doc = (0, smithy_client_1.take)(data, {
1588
+ EndpointAddress: smithy_client_1.expectString,
1589
+ });
1590
+ Object.assign(contents, doc);
1591
+ return contents;
1592
+ };
1593
+ exports.de_RegisterCustomEndpointCommand = de_RegisterCustomEndpointCommand;
1594
+ const de_ResetRuntimeLogConfigurationCommand = async (output, context) => {
1595
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1596
+ return de_CommandError(output, context);
1597
+ }
1598
+ const contents = (0, smithy_client_1.map)({
1599
+ $metadata: deserializeMetadata(output),
1600
+ });
1601
+ await (0, smithy_client_1.collectBody)(output.body, context);
1602
+ return contents;
1603
+ };
1604
+ exports.de_ResetRuntimeLogConfigurationCommand = de_ResetRuntimeLogConfigurationCommand;
1605
+ const de_SendManagedThingCommandCommand = async (output, context) => {
1606
+ if (output.statusCode !== 202 && output.statusCode >= 300) {
1607
+ return de_CommandError(output, context);
1608
+ }
1609
+ const contents = (0, smithy_client_1.map)({
1610
+ $metadata: deserializeMetadata(output),
1611
+ });
1612
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1613
+ const doc = (0, smithy_client_1.take)(data, {
1614
+ TraceId: smithy_client_1.expectString,
1615
+ });
1616
+ Object.assign(contents, doc);
1617
+ return contents;
1618
+ };
1619
+ exports.de_SendManagedThingCommandCommand = de_SendManagedThingCommandCommand;
1620
+ const de_StartDeviceDiscoveryCommand = async (output, context) => {
1621
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
1622
+ return de_CommandError(output, context);
1623
+ }
1624
+ const contents = (0, smithy_client_1.map)({
1625
+ $metadata: deserializeMetadata(output),
1626
+ });
1627
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1628
+ const doc = (0, smithy_client_1.take)(data, {
1629
+ Id: smithy_client_1.expectString,
1630
+ StartedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1631
+ });
1632
+ Object.assign(contents, doc);
1633
+ return contents;
1634
+ };
1635
+ exports.de_StartDeviceDiscoveryCommand = de_StartDeviceDiscoveryCommand;
1636
+ const de_UpdateDestinationCommand = async (output, context) => {
1637
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
1638
+ return de_CommandError(output, context);
1639
+ }
1640
+ const contents = (0, smithy_client_1.map)({
1641
+ $metadata: deserializeMetadata(output),
1642
+ });
1643
+ await (0, smithy_client_1.collectBody)(output.body, context);
1644
+ return contents;
1645
+ };
1646
+ exports.de_UpdateDestinationCommand = de_UpdateDestinationCommand;
1647
+ const de_UpdateEventLogConfigurationCommand = async (output, context) => {
1648
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1649
+ return de_CommandError(output, context);
1650
+ }
1651
+ const contents = (0, smithy_client_1.map)({
1652
+ $metadata: deserializeMetadata(output),
1653
+ });
1654
+ await (0, smithy_client_1.collectBody)(output.body, context);
1655
+ return contents;
1656
+ };
1657
+ exports.de_UpdateEventLogConfigurationCommand = de_UpdateEventLogConfigurationCommand;
1658
+ const de_UpdateManagedThingCommand = async (output, context) => {
1659
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
1660
+ return de_CommandError(output, context);
1661
+ }
1662
+ const contents = (0, smithy_client_1.map)({
1663
+ $metadata: deserializeMetadata(output),
1664
+ });
1665
+ await (0, smithy_client_1.collectBody)(output.body, context);
1666
+ return contents;
1667
+ };
1668
+ exports.de_UpdateManagedThingCommand = de_UpdateManagedThingCommand;
1669
+ const de_UpdateNotificationConfigurationCommand = async (output, context) => {
1670
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
1671
+ return de_CommandError(output, context);
1672
+ }
1673
+ const contents = (0, smithy_client_1.map)({
1674
+ $metadata: deserializeMetadata(output),
1675
+ });
1676
+ await (0, smithy_client_1.collectBody)(output.body, context);
1677
+ return contents;
1678
+ };
1679
+ exports.de_UpdateNotificationConfigurationCommand = de_UpdateNotificationConfigurationCommand;
1680
+ const de_UpdateOtaTaskCommand = async (output, context) => {
1681
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
1682
+ return de_CommandError(output, context);
1683
+ }
1684
+ const contents = (0, smithy_client_1.map)({
1685
+ $metadata: deserializeMetadata(output),
1686
+ });
1687
+ await (0, smithy_client_1.collectBody)(output.body, context);
1688
+ return contents;
1689
+ };
1690
+ exports.de_UpdateOtaTaskCommand = de_UpdateOtaTaskCommand;
1691
+ const de_CommandError = async (output, context) => {
1692
+ const parsedOutput = {
1693
+ ...output,
1694
+ body: await (0, core_1.parseJsonErrorBody)(output.body, context),
1695
+ };
1696
+ const errorCode = (0, core_1.loadRestJsonErrorCode)(output, parsedOutput.body);
1697
+ switch (errorCode) {
1698
+ case "AccessDeniedException":
1699
+ case "com.amazonaws.iotmanagedintegrations#AccessDeniedException":
1700
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1701
+ case "ConflictException":
1702
+ case "com.amazonaws.iotmanagedintegrations#ConflictException":
1703
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1704
+ case "InternalServerException":
1705
+ case "com.amazonaws.iotmanagedintegrations#InternalServerException":
1706
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1707
+ case "ServiceQuotaExceededException":
1708
+ case "com.amazonaws.iotmanagedintegrations#ServiceQuotaExceededException":
1709
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1710
+ case "ServiceUnavailableException":
1711
+ case "com.amazonaws.iotmanagedintegrations#ServiceUnavailableException":
1712
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1713
+ case "ThrottlingException":
1714
+ case "com.amazonaws.iotmanagedintegrations#ThrottlingException":
1715
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1716
+ case "ValidationException":
1717
+ case "com.amazonaws.iotmanagedintegrations#ValidationException":
1718
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1719
+ case "ResourceNotFoundException":
1720
+ case "com.amazonaws.iotmanagedintegrations#ResourceNotFoundException":
1721
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1722
+ case "UnauthorizedException":
1723
+ case "com.amazonaws.iotmanagedintegrations#UnauthorizedException":
1724
+ throw await de_UnauthorizedExceptionRes(parsedOutput, context);
1725
+ case "InternalFailureException":
1726
+ case "com.amazonaws.iotmanagedintegrations#InternalFailureException":
1727
+ throw await de_InternalFailureExceptionRes(parsedOutput, context);
1728
+ default:
1729
+ const parsedBody = parsedOutput.body;
1730
+ return throwDefaultError({
1731
+ output,
1732
+ parsedBody,
1733
+ errorCode,
1734
+ });
1735
+ }
1736
+ };
1737
+ const throwDefaultError = (0, smithy_client_1.withBaseException)(IoTManagedIntegrationsServiceException_1.IoTManagedIntegrationsServiceException);
1738
+ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
1739
+ const contents = (0, smithy_client_1.map)({});
1740
+ const data = parsedOutput.body;
1741
+ const doc = (0, smithy_client_1.take)(data, {
1742
+ Message: smithy_client_1.expectString,
1743
+ });
1744
+ Object.assign(contents, doc);
1745
+ const exception = new models_0_1.AccessDeniedException({
1746
+ $metadata: deserializeMetadata(parsedOutput),
1747
+ ...contents,
1748
+ });
1749
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1750
+ };
1751
+ const de_ConflictExceptionRes = async (parsedOutput, context) => {
1752
+ const contents = (0, smithy_client_1.map)({});
1753
+ const data = parsedOutput.body;
1754
+ const doc = (0, smithy_client_1.take)(data, {
1755
+ Message: smithy_client_1.expectString,
1756
+ });
1757
+ Object.assign(contents, doc);
1758
+ const exception = new models_0_1.ConflictException({
1759
+ $metadata: deserializeMetadata(parsedOutput),
1760
+ ...contents,
1761
+ });
1762
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1763
+ };
1764
+ const de_InternalFailureExceptionRes = async (parsedOutput, context) => {
1765
+ const contents = (0, smithy_client_1.map)({});
1766
+ const data = parsedOutput.body;
1767
+ const doc = (0, smithy_client_1.take)(data, {
1768
+ Message: smithy_client_1.expectString,
1769
+ });
1770
+ Object.assign(contents, doc);
1771
+ const exception = new models_0_1.InternalFailureException({
1772
+ $metadata: deserializeMetadata(parsedOutput),
1773
+ ...contents,
1774
+ });
1775
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1776
+ };
1777
+ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
1778
+ const contents = (0, smithy_client_1.map)({});
1779
+ const data = parsedOutput.body;
1780
+ const doc = (0, smithy_client_1.take)(data, {
1781
+ Message: smithy_client_1.expectString,
1782
+ });
1783
+ Object.assign(contents, doc);
1784
+ const exception = new models_0_1.InternalServerException({
1785
+ $metadata: deserializeMetadata(parsedOutput),
1786
+ ...contents,
1787
+ });
1788
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1789
+ };
1790
+ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1791
+ const contents = (0, smithy_client_1.map)({});
1792
+ const data = parsedOutput.body;
1793
+ const doc = (0, smithy_client_1.take)(data, {
1794
+ Message: smithy_client_1.expectString,
1795
+ });
1796
+ Object.assign(contents, doc);
1797
+ const exception = new models_0_1.ResourceNotFoundException({
1798
+ $metadata: deserializeMetadata(parsedOutput),
1799
+ ...contents,
1800
+ });
1801
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1802
+ };
1803
+ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
1804
+ const contents = (0, smithy_client_1.map)({});
1805
+ const data = parsedOutput.body;
1806
+ const doc = (0, smithy_client_1.take)(data, {
1807
+ Message: smithy_client_1.expectString,
1808
+ });
1809
+ Object.assign(contents, doc);
1810
+ const exception = new models_0_1.ServiceQuotaExceededException({
1811
+ $metadata: deserializeMetadata(parsedOutput),
1812
+ ...contents,
1813
+ });
1814
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1815
+ };
1816
+ const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
1817
+ const contents = (0, smithy_client_1.map)({});
1818
+ const data = parsedOutput.body;
1819
+ const doc = (0, smithy_client_1.take)(data, {
1820
+ Message: smithy_client_1.expectString,
1821
+ });
1822
+ Object.assign(contents, doc);
1823
+ const exception = new models_0_1.ServiceUnavailableException({
1824
+ $metadata: deserializeMetadata(parsedOutput),
1825
+ ...contents,
1826
+ });
1827
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1828
+ };
1829
+ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
1830
+ const contents = (0, smithy_client_1.map)({});
1831
+ const data = parsedOutput.body;
1832
+ const doc = (0, smithy_client_1.take)(data, {
1833
+ Message: smithy_client_1.expectString,
1834
+ });
1835
+ Object.assign(contents, doc);
1836
+ const exception = new models_0_1.ThrottlingException({
1837
+ $metadata: deserializeMetadata(parsedOutput),
1838
+ ...contents,
1839
+ });
1840
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1841
+ };
1842
+ const de_UnauthorizedExceptionRes = async (parsedOutput, context) => {
1843
+ const contents = (0, smithy_client_1.map)({});
1844
+ const data = parsedOutput.body;
1845
+ const doc = (0, smithy_client_1.take)(data, {
1846
+ Message: smithy_client_1.expectString,
1847
+ });
1848
+ Object.assign(contents, doc);
1849
+ const exception = new models_0_1.UnauthorizedException({
1850
+ $metadata: deserializeMetadata(parsedOutput),
1851
+ ...contents,
1852
+ });
1853
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1854
+ };
1855
+ const de_ValidationExceptionRes = async (parsedOutput, context) => {
1856
+ const contents = (0, smithy_client_1.map)({});
1857
+ const data = parsedOutput.body;
1858
+ const doc = (0, smithy_client_1.take)(data, {
1859
+ Message: smithy_client_1.expectString,
1860
+ });
1861
+ Object.assign(contents, doc);
1862
+ const exception = new models_0_1.ValidationException({
1863
+ $metadata: deserializeMetadata(parsedOutput),
1864
+ ...contents,
1865
+ });
1866
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1867
+ };
1868
+ const se_AbortConfigCriteria = (input, context) => {
1869
+ return (0, smithy_client_1.take)(input, {
1870
+ Action: [],
1871
+ FailureType: [],
1872
+ MinNumberOfExecutedThings: [],
1873
+ ThresholdPercentage: smithy_client_1.serializeFloat,
1874
+ });
1875
+ };
1876
+ const se_AbortConfigCriteriaList = (input, context) => {
1877
+ return input
1878
+ .filter((e) => e != null)
1879
+ .map((entry) => {
1880
+ return se_AbortConfigCriteria(entry, context);
1881
+ });
1882
+ };
1883
+ const se_CapabilityAction = (input, context) => {
1884
+ return (0, smithy_client_1.take)(input, {
1885
+ actionTraceId: [],
1886
+ name: [],
1887
+ parameters: (_) => se_CapabilityProperties(_, context),
1888
+ ref: [],
1889
+ });
1890
+ };
1891
+ const se_CapabilityActions = (input, context) => {
1892
+ return input
1893
+ .filter((e) => e != null)
1894
+ .map((entry) => {
1895
+ return se_CapabilityAction(entry, context);
1896
+ });
1897
+ };
1898
+ const se_CapabilityProperties = (input, context) => {
1899
+ return input;
1900
+ };
1901
+ const se_CommandCapabilities = (input, context) => {
1902
+ return input
1903
+ .filter((e) => e != null)
1904
+ .map((entry) => {
1905
+ return se_CommandCapability(entry, context);
1906
+ });
1907
+ };
1908
+ const se_CommandCapability = (input, context) => {
1909
+ return (0, smithy_client_1.take)(input, {
1910
+ actions: (_) => se_CapabilityActions(_, context),
1911
+ id: [],
1912
+ name: [],
1913
+ version: [],
1914
+ });
1915
+ };
1916
+ const se_CommandEndpoint = (input, context) => {
1917
+ return (0, smithy_client_1.take)(input, {
1918
+ capabilities: (_) => se_CommandCapabilities(_, context),
1919
+ endpointId: [],
1920
+ });
1921
+ };
1922
+ const se_CommandEndpoints = (input, context) => {
1923
+ return input
1924
+ .filter((e) => e != null)
1925
+ .map((entry) => {
1926
+ return se_CommandEndpoint(entry, context);
1927
+ });
1928
+ };
1929
+ const se_ExponentialRolloutRate = (input, context) => {
1930
+ return (0, smithy_client_1.take)(input, {
1931
+ BaseRatePerMinute: [],
1932
+ IncrementFactor: smithy_client_1.serializeFloat,
1933
+ RateIncreaseCriteria: smithy_client_1._json,
1934
+ });
1935
+ };
1936
+ const se_OtaTaskAbortConfig = (input, context) => {
1937
+ return (0, smithy_client_1.take)(input, {
1938
+ AbortConfigCriteriaList: (_) => se_AbortConfigCriteriaList(_, context),
1939
+ });
1940
+ };
1941
+ const se_OtaTaskExecutionRolloutConfig = (input, context) => {
1942
+ return (0, smithy_client_1.take)(input, {
1943
+ ExponentialRolloutRate: (_) => se_ExponentialRolloutRate(_, context),
1944
+ MaximumPerMinute: [],
1945
+ });
1946
+ };
1947
+ const se_PushConfig = (input, context) => {
1948
+ return (0, smithy_client_1.take)(input, {
1949
+ AbortConfig: (_) => se_OtaTaskAbortConfig(_, context),
1950
+ RolloutConfig: (_) => se_OtaTaskExecutionRolloutConfig(_, context),
1951
+ TimeoutConfig: smithy_client_1._json,
1952
+ });
1953
+ };
1954
+ const de_AbortConfigCriteria = (output, context) => {
1955
+ return (0, smithy_client_1.take)(output, {
1956
+ Action: smithy_client_1.expectString,
1957
+ FailureType: smithy_client_1.expectString,
1958
+ MinNumberOfExecutedThings: smithy_client_1.expectInt32,
1959
+ ThresholdPercentage: smithy_client_1.limitedParseDouble,
1960
+ });
1961
+ };
1962
+ const de_AbortConfigCriteriaList = (output, context) => {
1963
+ const retVal = (output || [])
1964
+ .filter((e) => e != null)
1965
+ .map((entry) => {
1966
+ return de_AbortConfigCriteria(entry, context);
1967
+ });
1968
+ return retVal;
1969
+ };
1970
+ const de_CapabilityProperties = (output, context) => {
1971
+ return output;
1972
+ };
1973
+ const de_CredentialLockerListDefinition = (output, context) => {
1974
+ const retVal = (output || [])
1975
+ .filter((e) => e != null)
1976
+ .map((entry) => {
1977
+ return de_CredentialLockerSummary(entry, context);
1978
+ });
1979
+ return retVal;
1980
+ };
1981
+ const de_CredentialLockerSummary = (output, context) => {
1982
+ return (0, smithy_client_1.take)(output, {
1983
+ Arn: smithy_client_1.expectString,
1984
+ CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1985
+ Id: smithy_client_1.expectString,
1986
+ Name: smithy_client_1.expectString,
1987
+ });
1988
+ };
1989
+ const de_ExponentialRolloutRate = (output, context) => {
1990
+ return (0, smithy_client_1.take)(output, {
1991
+ BaseRatePerMinute: smithy_client_1.expectInt32,
1992
+ IncrementFactor: smithy_client_1.limitedParseDouble,
1993
+ RateIncreaseCriteria: smithy_client_1._json,
1994
+ });
1995
+ };
1996
+ const de_ManagedThingListDefinition = (output, context) => {
1997
+ const retVal = (output || [])
1998
+ .filter((e) => e != null)
1999
+ .map((entry) => {
2000
+ return de_ManagedThingSummary(entry, context);
2001
+ });
2002
+ return retVal;
2003
+ };
2004
+ const de_ManagedThingSchemaListDefinition = (output, context) => {
2005
+ const retVal = (output || [])
2006
+ .filter((e) => e != null)
2007
+ .map((entry) => {
2008
+ return de_ManagedThingSchemaListItem(entry, context);
2009
+ });
2010
+ return retVal;
2011
+ };
2012
+ const de_ManagedThingSchemaListItem = (output, context) => {
2013
+ return (0, smithy_client_1.take)(output, {
2014
+ CapabilityId: smithy_client_1.expectString,
2015
+ EndpointId: smithy_client_1.expectString,
2016
+ Schema: (_) => de_ValidationSchema(_, context),
2017
+ });
2018
+ };
2019
+ const de_ManagedThingSummary = (output, context) => {
2020
+ return (0, smithy_client_1.take)(output, {
2021
+ ActivatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2022
+ AdvertisedProductId: smithy_client_1.expectString,
2023
+ Arn: smithy_client_1.expectString,
2024
+ Brand: smithy_client_1.expectString,
2025
+ Classification: smithy_client_1.expectString,
2026
+ ConnectorDeviceId: smithy_client_1.expectString,
2027
+ ConnectorPolicyId: smithy_client_1.expectString,
2028
+ CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2029
+ CredentialLockerId: smithy_client_1.expectString,
2030
+ Id: smithy_client_1.expectString,
2031
+ Model: smithy_client_1.expectString,
2032
+ Name: smithy_client_1.expectString,
2033
+ Owner: smithy_client_1.expectString,
2034
+ ParentControllerId: smithy_client_1.expectString,
2035
+ ProvisioningStatus: smithy_client_1.expectString,
2036
+ Role: smithy_client_1.expectString,
2037
+ SerialNumber: smithy_client_1.expectString,
2038
+ UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2039
+ });
2040
+ };
2041
+ const de_OtaTaskAbortConfig = (output, context) => {
2042
+ return (0, smithy_client_1.take)(output, {
2043
+ AbortConfigCriteriaList: (_) => de_AbortConfigCriteriaList(_, context),
2044
+ });
2045
+ };
2046
+ const de_OtaTaskConfigurationListDefinition = (output, context) => {
2047
+ const retVal = (output || [])
2048
+ .filter((e) => e != null)
2049
+ .map((entry) => {
2050
+ return de_OtaTaskConfigurationSummary(entry, context);
2051
+ });
2052
+ return retVal;
2053
+ };
2054
+ const de_OtaTaskConfigurationSummary = (output, context) => {
2055
+ return (0, smithy_client_1.take)(output, {
2056
+ CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2057
+ Name: smithy_client_1.expectString,
2058
+ TaskConfigurationId: smithy_client_1.expectString,
2059
+ });
2060
+ };
2061
+ const de_OtaTaskExecutionRolloutConfig = (output, context) => {
2062
+ return (0, smithy_client_1.take)(output, {
2063
+ ExponentialRolloutRate: (_) => de_ExponentialRolloutRate(_, context),
2064
+ MaximumPerMinute: smithy_client_1.expectInt32,
2065
+ });
2066
+ };
2067
+ const de_OtaTaskExecutionSummaries = (output, context) => {
2068
+ return (0, smithy_client_1.take)(output, {
2069
+ ManagedThingId: smithy_client_1.expectString,
2070
+ TaskExecutionSummary: (_) => de_OtaTaskExecutionSummary(_, context),
2071
+ });
2072
+ };
2073
+ const de_OtaTaskExecutionSummariesListDefinition = (output, context) => {
2074
+ const retVal = (output || [])
2075
+ .filter((e) => e != null)
2076
+ .map((entry) => {
2077
+ return de_OtaTaskExecutionSummaries(entry, context);
2078
+ });
2079
+ return retVal;
2080
+ };
2081
+ const de_OtaTaskExecutionSummary = (output, context) => {
2082
+ return (0, smithy_client_1.take)(output, {
2083
+ ExecutionNumber: smithy_client_1.expectLong,
2084
+ LastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2085
+ QueuedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2086
+ RetryAttempt: smithy_client_1.expectInt32,
2087
+ StartedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2088
+ Status: smithy_client_1.expectString,
2089
+ });
2090
+ };
2091
+ const de_OtaTaskListDefinition = (output, context) => {
2092
+ const retVal = (output || [])
2093
+ .filter((e) => e != null)
2094
+ .map((entry) => {
2095
+ return de_OtaTaskSummary(entry, context);
2096
+ });
2097
+ return retVal;
2098
+ };
2099
+ const de_OtaTaskSummary = (output, context) => {
2100
+ return (0, smithy_client_1.take)(output, {
2101
+ CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2102
+ LastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2103
+ Status: smithy_client_1.expectString,
2104
+ TaskArn: smithy_client_1.expectString,
2105
+ TaskConfigurationId: smithy_client_1.expectString,
2106
+ TaskId: smithy_client_1.expectString,
2107
+ });
2108
+ };
2109
+ const de_PushConfig = (output, context) => {
2110
+ return (0, smithy_client_1.take)(output, {
2111
+ AbortConfig: (_) => de_OtaTaskAbortConfig(_, context),
2112
+ RolloutConfig: (_) => de_OtaTaskExecutionRolloutConfig(_, context),
2113
+ TimeoutConfig: smithy_client_1._json,
2114
+ });
2115
+ };
2116
+ const de_SchemaVersionSchema = (output, context) => {
2117
+ return output;
2118
+ };
2119
+ const de_StateCapabilities = (output, context) => {
2120
+ const retVal = (output || [])
2121
+ .filter((e) => e != null)
2122
+ .map((entry) => {
2123
+ return de_StateCapability(entry, context);
2124
+ });
2125
+ return retVal;
2126
+ };
2127
+ const de_StateCapability = (output, context) => {
2128
+ return (0, smithy_client_1.take)(output, {
2129
+ id: smithy_client_1.expectString,
2130
+ name: smithy_client_1.expectString,
2131
+ properties: (_) => de_CapabilityProperties(_, context),
2132
+ version: smithy_client_1.expectString,
2133
+ });
2134
+ };
2135
+ const de_StateEndpoint = (output, context) => {
2136
+ return (0, smithy_client_1.take)(output, {
2137
+ capabilities: (_) => de_StateCapabilities(_, context),
2138
+ endpointId: smithy_client_1.expectString,
2139
+ });
2140
+ };
2141
+ const de_StateEndpoints = (output, context) => {
2142
+ const retVal = (output || [])
2143
+ .filter((e) => e != null)
2144
+ .map((entry) => {
2145
+ return de_StateEndpoint(entry, context);
2146
+ });
2147
+ return retVal;
2148
+ };
2149
+ const de_ValidationSchema = (output, context) => {
2150
+ return output;
2151
+ };
2152
+ const deserializeMetadata = (output) => ({
2153
+ httpStatusCode: output.statusCode,
2154
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
2155
+ extendedRequestId: output.headers["x-amz-id-2"],
2156
+ cfId: output.headers["x-amz-cf-id"],
2157
+ });
2158
+ const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
2159
+ const _CIF = "CapabilityIdFilter";
2160
+ const _CLF = "CredentialLockerFilter";
2161
+ const _CPIF = "ConnectorPolicyIdFilter";
2162
+ const _EIF = "EndpointIdFilter";
2163
+ const _F = "Force";
2164
+ const _Fo = "Format";
2165
+ const _MR = "MaxResults";
2166
+ const _N = "Namespace";
2167
+ const _NF = "NamespaceFilter";
2168
+ const _NT = "NextToken";
2169
+ const _OF = "OwnerFilter";
2170
+ const _PCIF = "ParentControllerIdentifierFilter";
2171
+ const _PSF = "ProvisioningStatusFilter";
2172
+ const _RF = "RoleFilter";
2173
+ const _SI = "SchemaId";
2174
+ const _SIF = "SchemaIdFilter";
2175
+ const _SNF = "SerialNumberFilter";
2176
+ const _SV = "SemanticVersion";
2177
+ const _SVF = "SemanticVersionFilter";
2178
+ const _V = "Visibility";
2179
+ const _VF = "VisibilityFilter";