@aws-sdk/client-iotthingsgraph 3.32.0 → 3.36.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 (411) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/{dist/cjs → dist-cjs}/IoTThingsGraph.js +1 -2
  3. package/{dist/cjs → dist-cjs}/IoTThingsGraphClient.js +8 -9
  4. package/{dist/cjs → dist-cjs}/commands/AssociateEntityToThingCommand.js +2 -3
  5. package/{dist/cjs → dist-cjs}/commands/CreateFlowTemplateCommand.js +2 -3
  6. package/{dist/cjs → dist-cjs}/commands/CreateSystemInstanceCommand.js +2 -3
  7. package/{dist/cjs → dist-cjs}/commands/CreateSystemTemplateCommand.js +2 -3
  8. package/{dist/cjs → dist-cjs}/commands/DeleteFlowTemplateCommand.js +2 -3
  9. package/{dist/cjs → dist-cjs}/commands/DeleteNamespaceCommand.js +2 -3
  10. package/{dist/cjs → dist-cjs}/commands/DeleteSystemInstanceCommand.js +2 -3
  11. package/{dist/cjs → dist-cjs}/commands/DeleteSystemTemplateCommand.js +2 -3
  12. package/{dist/cjs → dist-cjs}/commands/DeploySystemInstanceCommand.js +2 -3
  13. package/{dist/cjs → dist-cjs}/commands/DeprecateFlowTemplateCommand.js +2 -3
  14. package/{dist/cjs → dist-cjs}/commands/DeprecateSystemTemplateCommand.js +2 -3
  15. package/{dist/cjs → dist-cjs}/commands/DescribeNamespaceCommand.js +2 -3
  16. package/{dist/cjs → dist-cjs}/commands/DissociateEntityFromThingCommand.js +2 -3
  17. package/{dist/cjs → dist-cjs}/commands/GetEntitiesCommand.js +2 -3
  18. package/{dist/cjs → dist-cjs}/commands/GetFlowTemplateCommand.js +2 -3
  19. package/{dist/cjs → dist-cjs}/commands/GetFlowTemplateRevisionsCommand.js +2 -3
  20. package/{dist/cjs → dist-cjs}/commands/GetNamespaceDeletionStatusCommand.js +2 -3
  21. package/{dist/cjs → dist-cjs}/commands/GetSystemInstanceCommand.js +2 -3
  22. package/{dist/cjs → dist-cjs}/commands/GetSystemTemplateCommand.js +2 -3
  23. package/{dist/cjs → dist-cjs}/commands/GetSystemTemplateRevisionsCommand.js +2 -3
  24. package/{dist/cjs → dist-cjs}/commands/GetUploadStatusCommand.js +2 -3
  25. package/{dist/cjs → dist-cjs}/commands/ListFlowExecutionMessagesCommand.js +2 -3
  26. package/{dist/cjs → dist-cjs}/commands/ListTagsForResourceCommand.js +2 -3
  27. package/{dist/cjs → dist-cjs}/commands/SearchEntitiesCommand.js +2 -3
  28. package/{dist/cjs → dist-cjs}/commands/SearchFlowExecutionsCommand.js +2 -3
  29. package/{dist/cjs → dist-cjs}/commands/SearchFlowTemplatesCommand.js +2 -3
  30. package/{dist/cjs → dist-cjs}/commands/SearchSystemInstancesCommand.js +2 -3
  31. package/{dist/cjs → dist-cjs}/commands/SearchSystemTemplatesCommand.js +2 -3
  32. package/{dist/cjs → dist-cjs}/commands/SearchThingsCommand.js +2 -3
  33. package/{dist/cjs → dist-cjs}/commands/TagResourceCommand.js +2 -3
  34. package/{dist/cjs → dist-cjs}/commands/UndeploySystemInstanceCommand.js +2 -3
  35. package/{dist/cjs → dist-cjs}/commands/UntagResourceCommand.js +2 -3
  36. package/{dist/cjs → dist-cjs}/commands/UpdateFlowTemplateCommand.js +2 -3
  37. package/{dist/cjs → dist-cjs}/commands/UpdateSystemTemplateCommand.js +2 -3
  38. package/{dist/cjs → dist-cjs}/commands/UploadEntityDefinitionsCommand.js +2 -3
  39. package/{dist/cjs → dist-cjs}/endpoints.js +0 -1
  40. package/{dist/cjs → dist-cjs}/index.js +0 -1
  41. package/{dist/cjs → dist-cjs}/models/index.js +0 -1
  42. package/{dist/cjs → dist-cjs}/models/models_0.js +0 -1
  43. package/{dist/cjs → dist-cjs}/pagination/GetFlowTemplateRevisionsPaginator.js +1 -2
  44. package/{dist/cjs → dist-cjs}/pagination/GetSystemTemplateRevisionsPaginator.js +1 -2
  45. package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -1
  46. package/{dist/cjs → dist-cjs}/pagination/ListFlowExecutionMessagesPaginator.js +1 -2
  47. package/{dist/cjs → dist-cjs}/pagination/ListTagsForResourcePaginator.js +1 -2
  48. package/{dist/cjs → dist-cjs}/pagination/SearchEntitiesPaginator.js +1 -2
  49. package/{dist/cjs → dist-cjs}/pagination/SearchFlowExecutionsPaginator.js +1 -2
  50. package/{dist/cjs → dist-cjs}/pagination/SearchFlowTemplatesPaginator.js +1 -2
  51. package/{dist/cjs → dist-cjs}/pagination/SearchSystemInstancesPaginator.js +1 -2
  52. package/{dist/cjs → dist-cjs}/pagination/SearchSystemTemplatesPaginator.js +1 -2
  53. package/{dist/cjs → dist-cjs}/pagination/SearchThingsPaginator.js +1 -2
  54. package/{dist/cjs → dist-cjs}/protocols/Aws_json1_1.js +0 -1
  55. package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +2 -2
  56. package/{dist/cjs → dist-cjs}/runtimeConfig.js +2 -2
  57. package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -1
  58. package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -2
  59. package/{dist/es → dist-es}/IoTThingsGraph.js +2 -10
  60. package/{dist/es → dist-es}/IoTThingsGraphClient.js +2 -15
  61. package/{dist/es → dist-es}/commands/AssociateEntityToThingCommand.js +4 -31
  62. package/{dist/es → dist-es}/commands/CreateFlowTemplateCommand.js +4 -32
  63. package/dist-es/commands/CreateSystemInstanceCommand.js +39 -0
  64. package/{dist/es → dist-es}/commands/CreateSystemTemplateCommand.js +4 -31
  65. package/{dist/es → dist-es}/commands/DeleteFlowTemplateCommand.js +4 -31
  66. package/{dist/es → dist-es}/commands/DeleteNamespaceCommand.js +4 -30
  67. package/{dist/es → dist-es}/commands/DeleteSystemInstanceCommand.js +4 -32
  68. package/{dist/es → dist-es}/commands/DeleteSystemTemplateCommand.js +4 -31
  69. package/dist-es/commands/DeploySystemInstanceCommand.js +39 -0
  70. package/{dist/es → dist-es}/commands/DeprecateFlowTemplateCommand.js +4 -30
  71. package/{dist/es → dist-es}/commands/DeprecateSystemTemplateCommand.js +4 -30
  72. package/{dist/es → dist-es}/commands/DescribeNamespaceCommand.js +4 -30
  73. package/{dist/es → dist-es}/commands/DissociateEntityFromThingCommand.js +4 -31
  74. package/dist-es/commands/GetEntitiesCommand.js +39 -0
  75. package/{dist/es → dist-es}/commands/GetFlowTemplateCommand.js +4 -30
  76. package/{dist/es → dist-es}/commands/GetFlowTemplateRevisionsCommand.js +4 -31
  77. package/{dist/es → dist-es}/commands/GetNamespaceDeletionStatusCommand.js +4 -30
  78. package/{dist/es → dist-es}/commands/GetSystemInstanceCommand.js +4 -30
  79. package/{dist/es → dist-es}/commands/GetSystemTemplateCommand.js +4 -30
  80. package/{dist/es → dist-es}/commands/GetSystemTemplateRevisionsCommand.js +4 -31
  81. package/{dist/es → dist-es}/commands/GetUploadStatusCommand.js +4 -30
  82. package/{dist/es → dist-es}/commands/ListFlowExecutionMessagesCommand.js +4 -30
  83. package/{dist/es → dist-es}/commands/ListTagsForResourceCommand.js +4 -30
  84. package/{dist/es → dist-es}/commands/SearchEntitiesCommand.js +4 -30
  85. package/{dist/es → dist-es}/commands/SearchFlowExecutionsCommand.js +4 -30
  86. package/{dist/es → dist-es}/commands/SearchFlowTemplatesCommand.js +4 -30
  87. package/{dist/es → dist-es}/commands/SearchSystemInstancesCommand.js +4 -30
  88. package/{dist/es → dist-es}/commands/SearchSystemTemplatesCommand.js +4 -30
  89. package/{dist/es → dist-es}/commands/SearchThingsCommand.js +4 -33
  90. package/{dist/es → dist-es}/commands/TagResourceCommand.js +4 -30
  91. package/{dist/es → dist-es}/commands/UndeploySystemInstanceCommand.js +4 -30
  92. package/{dist/es → dist-es}/commands/UntagResourceCommand.js +4 -30
  93. package/{dist/es → dist-es}/commands/UpdateFlowTemplateCommand.js +4 -31
  94. package/{dist/es → dist-es}/commands/UpdateSystemTemplateCommand.js +4 -30
  95. package/dist-es/commands/UploadEntityDefinitionsCommand.js +39 -0
  96. package/{dist/es → dist-es}/endpoints.js +1 -2
  97. package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
  98. package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
  99. package/{dist/es → dist-es}/models/models_0.js +0 -286
  100. package/{dist/es → dist-es}/pagination/GetFlowTemplateRevisionsPaginator.js +17 -30
  101. package/{dist/es → dist-es}/pagination/GetSystemTemplateRevisionsPaginator.js +17 -30
  102. package/dist-es/pagination/Interfaces.js +1 -0
  103. package/{dist/es → dist-es}/pagination/ListFlowExecutionMessagesPaginator.js +17 -30
  104. package/{dist/es → dist-es}/pagination/ListTagsForResourcePaginator.js +17 -30
  105. package/{dist/es → dist-es}/pagination/SearchEntitiesPaginator.js +17 -30
  106. package/{dist/es → dist-es}/pagination/SearchFlowExecutionsPaginator.js +17 -30
  107. package/{dist/es → dist-es}/pagination/SearchFlowTemplatesPaginator.js +17 -30
  108. package/{dist/es → dist-es}/pagination/SearchSystemInstancesPaginator.js +17 -30
  109. package/{dist/es → dist-es}/pagination/SearchSystemTemplatesPaginator.js +17 -30
  110. package/{dist/es → dist-es}/pagination/SearchThingsPaginator.js +17 -30
  111. package/{dist/es → dist-es}/protocols/Aws_json1_1.js +832 -838
  112. package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -5
  113. package/{dist/es → dist-es}/runtimeConfig.js +1 -5
  114. package/{dist/es → dist-es}/runtimeConfig.native.js +0 -4
  115. package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -5
  116. package/{dist/types → dist-types}/IoTThingsGraph.d.ts +2 -2
  117. package/{dist/types → dist-types}/IoTThingsGraphClient.d.ts +8 -8
  118. package/{dist/types → dist-types}/commands/AssociateEntityToThingCommand.d.ts +2 -2
  119. package/{dist/types → dist-types}/commands/CreateFlowTemplateCommand.d.ts +2 -2
  120. package/{dist/types → dist-types}/commands/CreateSystemInstanceCommand.d.ts +2 -2
  121. package/{dist/types → dist-types}/commands/CreateSystemTemplateCommand.d.ts +2 -2
  122. package/{dist/types → dist-types}/commands/DeleteFlowTemplateCommand.d.ts +2 -2
  123. package/{dist/types → dist-types}/commands/DeleteNamespaceCommand.d.ts +2 -2
  124. package/{dist/types → dist-types}/commands/DeleteSystemInstanceCommand.d.ts +2 -2
  125. package/{dist/types → dist-types}/commands/DeleteSystemTemplateCommand.d.ts +2 -2
  126. package/{dist/types → dist-types}/commands/DeploySystemInstanceCommand.d.ts +2 -2
  127. package/{dist/types → dist-types}/commands/DeprecateFlowTemplateCommand.d.ts +2 -2
  128. package/{dist/types → dist-types}/commands/DeprecateSystemTemplateCommand.d.ts +2 -2
  129. package/{dist/types → dist-types}/commands/DescribeNamespaceCommand.d.ts +2 -2
  130. package/{dist/types → dist-types}/commands/DissociateEntityFromThingCommand.d.ts +2 -2
  131. package/{dist/types → dist-types}/commands/GetEntitiesCommand.d.ts +2 -2
  132. package/{dist/types → dist-types}/commands/GetFlowTemplateCommand.d.ts +2 -2
  133. package/{dist/types → dist-types}/commands/GetFlowTemplateRevisionsCommand.d.ts +2 -2
  134. package/{dist/types → dist-types}/commands/GetNamespaceDeletionStatusCommand.d.ts +2 -2
  135. package/{dist/types → dist-types}/commands/GetSystemInstanceCommand.d.ts +2 -2
  136. package/{dist/types → dist-types}/commands/GetSystemTemplateCommand.d.ts +2 -2
  137. package/{dist/types → dist-types}/commands/GetSystemTemplateRevisionsCommand.d.ts +2 -2
  138. package/{dist/types → dist-types}/commands/GetUploadStatusCommand.d.ts +2 -2
  139. package/{dist/types → dist-types}/commands/ListFlowExecutionMessagesCommand.d.ts +2 -2
  140. package/{dist/types → dist-types}/commands/ListTagsForResourceCommand.d.ts +2 -2
  141. package/{dist/types → dist-types}/commands/SearchEntitiesCommand.d.ts +2 -2
  142. package/{dist/types → dist-types}/commands/SearchFlowExecutionsCommand.d.ts +2 -2
  143. package/{dist/types → dist-types}/commands/SearchFlowTemplatesCommand.d.ts +2 -2
  144. package/{dist/types → dist-types}/commands/SearchSystemInstancesCommand.d.ts +2 -2
  145. package/{dist/types → dist-types}/commands/SearchSystemTemplatesCommand.d.ts +2 -2
  146. package/{dist/types → dist-types}/commands/SearchThingsCommand.d.ts +2 -2
  147. package/{dist/types → dist-types}/commands/TagResourceCommand.d.ts +2 -2
  148. package/{dist/types → dist-types}/commands/UndeploySystemInstanceCommand.d.ts +2 -2
  149. package/{dist/types → dist-types}/commands/UntagResourceCommand.d.ts +2 -2
  150. package/{dist/types → dist-types}/commands/UpdateFlowTemplateCommand.d.ts +2 -2
  151. package/{dist/types → dist-types}/commands/UpdateSystemTemplateCommand.d.ts +2 -2
  152. package/{dist/types → dist-types}/commands/UploadEntityDefinitionsCommand.d.ts +2 -2
  153. package/{dist/types → dist-types}/endpoints.d.ts +0 -0
  154. package/{index.ts → dist-types/index.d.ts} +0 -0
  155. package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
  156. package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
  157. package/{dist/types → dist-types}/pagination/GetFlowTemplateRevisionsPaginator.d.ts +1 -1
  158. package/{dist/types → dist-types}/pagination/GetSystemTemplateRevisionsPaginator.d.ts +1 -1
  159. package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
  160. package/{dist/types → dist-types}/pagination/ListFlowExecutionMessagesPaginator.d.ts +1 -1
  161. package/{dist/types → dist-types}/pagination/ListTagsForResourcePaginator.d.ts +1 -1
  162. package/{dist/types → dist-types}/pagination/SearchEntitiesPaginator.d.ts +1 -1
  163. package/{dist/types → dist-types}/pagination/SearchFlowExecutionsPaginator.d.ts +1 -1
  164. package/{dist/types → dist-types}/pagination/SearchFlowTemplatesPaginator.d.ts +1 -1
  165. package/{dist/types → dist-types}/pagination/SearchSystemInstancesPaginator.d.ts +1 -1
  166. package/{dist/types → dist-types}/pagination/SearchSystemTemplatesPaginator.d.ts +1 -1
  167. package/{dist/types → dist-types}/pagination/SearchThingsPaginator.d.ts +1 -1
  168. package/{dist/types → dist-types}/protocols/Aws_json1_1.d.ts +2 -2
  169. package/{dist/types/ts3.4 → dist-types}/runtimeConfig.browser.d.ts +37 -36
  170. package/{dist/types/ts3.4 → dist-types}/runtimeConfig.d.ts +37 -36
  171. package/{dist/types → dist-types}/runtimeConfig.native.d.ts +1 -0
  172. package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
  173. package/{dist/types → dist-types}/ts3.4/IoTThingsGraph.d.ts +2 -2
  174. package/{dist/types → dist-types}/ts3.4/IoTThingsGraphClient.d.ts +8 -8
  175. package/{dist/types → dist-types}/ts3.4/commands/AssociateEntityToThingCommand.d.ts +2 -2
  176. package/{dist/types → dist-types}/ts3.4/commands/CreateFlowTemplateCommand.d.ts +2 -2
  177. package/{dist/types → dist-types}/ts3.4/commands/CreateSystemInstanceCommand.d.ts +2 -2
  178. package/{dist/types → dist-types}/ts3.4/commands/CreateSystemTemplateCommand.d.ts +2 -2
  179. package/{dist/types → dist-types}/ts3.4/commands/DeleteFlowTemplateCommand.d.ts +2 -2
  180. package/{dist/types → dist-types}/ts3.4/commands/DeleteNamespaceCommand.d.ts +2 -2
  181. package/{dist/types → dist-types}/ts3.4/commands/DeleteSystemInstanceCommand.d.ts +2 -2
  182. package/{dist/types → dist-types}/ts3.4/commands/DeleteSystemTemplateCommand.d.ts +2 -2
  183. package/{dist/types → dist-types}/ts3.4/commands/DeploySystemInstanceCommand.d.ts +2 -2
  184. package/{dist/types → dist-types}/ts3.4/commands/DeprecateFlowTemplateCommand.d.ts +2 -2
  185. package/{dist/types → dist-types}/ts3.4/commands/DeprecateSystemTemplateCommand.d.ts +2 -2
  186. package/{dist/types → dist-types}/ts3.4/commands/DescribeNamespaceCommand.d.ts +2 -2
  187. package/{dist/types → dist-types}/ts3.4/commands/DissociateEntityFromThingCommand.d.ts +2 -2
  188. package/{dist/types → dist-types}/ts3.4/commands/GetEntitiesCommand.d.ts +2 -2
  189. package/{dist/types → dist-types}/ts3.4/commands/GetFlowTemplateCommand.d.ts +2 -2
  190. package/{dist/types → dist-types}/ts3.4/commands/GetFlowTemplateRevisionsCommand.d.ts +2 -2
  191. package/{dist/types → dist-types}/ts3.4/commands/GetNamespaceDeletionStatusCommand.d.ts +2 -2
  192. package/{dist/types → dist-types}/ts3.4/commands/GetSystemInstanceCommand.d.ts +2 -2
  193. package/{dist/types → dist-types}/ts3.4/commands/GetSystemTemplateCommand.d.ts +2 -2
  194. package/{dist/types → dist-types}/ts3.4/commands/GetSystemTemplateRevisionsCommand.d.ts +2 -2
  195. package/{dist/types → dist-types}/ts3.4/commands/GetUploadStatusCommand.d.ts +2 -2
  196. package/{dist/types → dist-types}/ts3.4/commands/ListFlowExecutionMessagesCommand.d.ts +2 -2
  197. package/{dist/types → dist-types}/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -2
  198. package/{dist/types → dist-types}/ts3.4/commands/SearchEntitiesCommand.d.ts +2 -2
  199. package/{dist/types → dist-types}/ts3.4/commands/SearchFlowExecutionsCommand.d.ts +2 -2
  200. package/{dist/types → dist-types}/ts3.4/commands/SearchFlowTemplatesCommand.d.ts +2 -2
  201. package/{dist/types → dist-types}/ts3.4/commands/SearchSystemInstancesCommand.d.ts +2 -2
  202. package/{dist/types → dist-types}/ts3.4/commands/SearchSystemTemplatesCommand.d.ts +2 -2
  203. package/{dist/types → dist-types}/ts3.4/commands/SearchThingsCommand.d.ts +2 -2
  204. package/{dist/types → dist-types}/ts3.4/commands/TagResourceCommand.d.ts +2 -2
  205. package/{dist/types → dist-types}/ts3.4/commands/UndeploySystemInstanceCommand.d.ts +2 -2
  206. package/{dist/types → dist-types}/ts3.4/commands/UntagResourceCommand.d.ts +2 -2
  207. package/{dist/types → dist-types}/ts3.4/commands/UpdateFlowTemplateCommand.d.ts +2 -2
  208. package/{dist/types → dist-types}/ts3.4/commands/UpdateSystemTemplateCommand.d.ts +2 -2
  209. package/{dist/types → dist-types}/ts3.4/commands/UploadEntityDefinitionsCommand.d.ts +2 -2
  210. package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
  211. package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
  212. package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
  213. package/{dist/types → dist-types}/ts3.4/models/models_0.d.ts +0 -0
  214. package/{dist/types → dist-types}/ts3.4/pagination/GetFlowTemplateRevisionsPaginator.d.ts +1 -1
  215. package/{dist/types → dist-types}/ts3.4/pagination/GetSystemTemplateRevisionsPaginator.d.ts +1 -1
  216. package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
  217. package/{dist/types → dist-types}/ts3.4/pagination/ListFlowExecutionMessagesPaginator.d.ts +1 -1
  218. package/{dist/types → dist-types}/ts3.4/pagination/ListTagsForResourcePaginator.d.ts +1 -1
  219. package/{dist/types → dist-types}/ts3.4/pagination/SearchEntitiesPaginator.d.ts +1 -1
  220. package/{dist/types → dist-types}/ts3.4/pagination/SearchFlowExecutionsPaginator.d.ts +1 -1
  221. package/{dist/types → dist-types}/ts3.4/pagination/SearchFlowTemplatesPaginator.d.ts +1 -1
  222. package/{dist/types → dist-types}/ts3.4/pagination/SearchSystemInstancesPaginator.d.ts +1 -1
  223. package/{dist/types → dist-types}/ts3.4/pagination/SearchSystemTemplatesPaginator.d.ts +1 -1
  224. package/{dist/types → dist-types}/ts3.4/pagination/SearchThingsPaginator.d.ts +1 -1
  225. package/{dist/types → dist-types}/ts3.4/protocols/Aws_json1_1.d.ts +2 -2
  226. package/{dist/types → dist-types/ts3.4}/runtimeConfig.browser.d.ts +37 -36
  227. package/{dist/types → dist-types/ts3.4}/runtimeConfig.d.ts +37 -36
  228. package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -0
  229. package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +0 -0
  230. package/package.json +52 -49
  231. package/IoTThingsGraph.ts +0 -1358
  232. package/IoTThingsGraphClient.ts +0 -407
  233. package/commands/AssociateEntityToThingCommand.ts +0 -95
  234. package/commands/CreateFlowTemplateCommand.ts +0 -96
  235. package/commands/CreateSystemInstanceCommand.ts +0 -102
  236. package/commands/CreateSystemTemplateCommand.ts +0 -95
  237. package/commands/DeleteFlowTemplateCommand.ts +0 -95
  238. package/commands/DeleteNamespaceCommand.ts +0 -94
  239. package/commands/DeleteSystemInstanceCommand.ts +0 -96
  240. package/commands/DeleteSystemTemplateCommand.ts +0 -95
  241. package/commands/DeploySystemInstanceCommand.ts +0 -105
  242. package/commands/DeprecateFlowTemplateCommand.ts +0 -94
  243. package/commands/DeprecateSystemTemplateCommand.ts +0 -94
  244. package/commands/DescribeNamespaceCommand.ts +0 -94
  245. package/commands/DissociateEntityFromThingCommand.ts +0 -98
  246. package/commands/GetEntitiesCommand.ts +0 -125
  247. package/commands/GetFlowTemplateCommand.ts +0 -94
  248. package/commands/GetFlowTemplateRevisionsCommand.ts +0 -95
  249. package/commands/GetNamespaceDeletionStatusCommand.ts +0 -97
  250. package/commands/GetSystemInstanceCommand.ts +0 -94
  251. package/commands/GetSystemTemplateCommand.ts +0 -94
  252. package/commands/GetSystemTemplateRevisionsCommand.ts +0 -98
  253. package/commands/GetUploadStatusCommand.ts +0 -94
  254. package/commands/ListFlowExecutionMessagesCommand.ts +0 -97
  255. package/commands/ListTagsForResourceCommand.ts +0 -94
  256. package/commands/SearchEntitiesCommand.ts +0 -94
  257. package/commands/SearchFlowExecutionsCommand.ts +0 -94
  258. package/commands/SearchFlowTemplatesCommand.ts +0 -94
  259. package/commands/SearchSystemInstancesCommand.ts +0 -94
  260. package/commands/SearchSystemTemplatesCommand.ts +0 -94
  261. package/commands/SearchThingsCommand.ts +0 -97
  262. package/commands/TagResourceCommand.ts +0 -94
  263. package/commands/UndeploySystemInstanceCommand.ts +0 -94
  264. package/commands/UntagResourceCommand.ts +0 -94
  265. package/commands/UpdateFlowTemplateCommand.ts +0 -95
  266. package/commands/UpdateSystemTemplateCommand.ts +0 -94
  267. package/commands/UploadEntityDefinitionsCommand.ts +0 -104
  268. package/dist/cjs/IoTThingsGraph.js.map +0 -1
  269. package/dist/cjs/IoTThingsGraphClient.js.map +0 -1
  270. package/dist/cjs/commands/AssociateEntityToThingCommand.js.map +0 -1
  271. package/dist/cjs/commands/CreateFlowTemplateCommand.js.map +0 -1
  272. package/dist/cjs/commands/CreateSystemInstanceCommand.js.map +0 -1
  273. package/dist/cjs/commands/CreateSystemTemplateCommand.js.map +0 -1
  274. package/dist/cjs/commands/DeleteFlowTemplateCommand.js.map +0 -1
  275. package/dist/cjs/commands/DeleteNamespaceCommand.js.map +0 -1
  276. package/dist/cjs/commands/DeleteSystemInstanceCommand.js.map +0 -1
  277. package/dist/cjs/commands/DeleteSystemTemplateCommand.js.map +0 -1
  278. package/dist/cjs/commands/DeploySystemInstanceCommand.js.map +0 -1
  279. package/dist/cjs/commands/DeprecateFlowTemplateCommand.js.map +0 -1
  280. package/dist/cjs/commands/DeprecateSystemTemplateCommand.js.map +0 -1
  281. package/dist/cjs/commands/DescribeNamespaceCommand.js.map +0 -1
  282. package/dist/cjs/commands/DissociateEntityFromThingCommand.js.map +0 -1
  283. package/dist/cjs/commands/GetEntitiesCommand.js.map +0 -1
  284. package/dist/cjs/commands/GetFlowTemplateCommand.js.map +0 -1
  285. package/dist/cjs/commands/GetFlowTemplateRevisionsCommand.js.map +0 -1
  286. package/dist/cjs/commands/GetNamespaceDeletionStatusCommand.js.map +0 -1
  287. package/dist/cjs/commands/GetSystemInstanceCommand.js.map +0 -1
  288. package/dist/cjs/commands/GetSystemTemplateCommand.js.map +0 -1
  289. package/dist/cjs/commands/GetSystemTemplateRevisionsCommand.js.map +0 -1
  290. package/dist/cjs/commands/GetUploadStatusCommand.js.map +0 -1
  291. package/dist/cjs/commands/ListFlowExecutionMessagesCommand.js.map +0 -1
  292. package/dist/cjs/commands/ListTagsForResourceCommand.js.map +0 -1
  293. package/dist/cjs/commands/SearchEntitiesCommand.js.map +0 -1
  294. package/dist/cjs/commands/SearchFlowExecutionsCommand.js.map +0 -1
  295. package/dist/cjs/commands/SearchFlowTemplatesCommand.js.map +0 -1
  296. package/dist/cjs/commands/SearchSystemInstancesCommand.js.map +0 -1
  297. package/dist/cjs/commands/SearchSystemTemplatesCommand.js.map +0 -1
  298. package/dist/cjs/commands/SearchThingsCommand.js.map +0 -1
  299. package/dist/cjs/commands/TagResourceCommand.js.map +0 -1
  300. package/dist/cjs/commands/UndeploySystemInstanceCommand.js.map +0 -1
  301. package/dist/cjs/commands/UntagResourceCommand.js.map +0 -1
  302. package/dist/cjs/commands/UpdateFlowTemplateCommand.js.map +0 -1
  303. package/dist/cjs/commands/UpdateSystemTemplateCommand.js.map +0 -1
  304. package/dist/cjs/commands/UploadEntityDefinitionsCommand.js.map +0 -1
  305. package/dist/cjs/endpoints.js.map +0 -1
  306. package/dist/cjs/index.js.map +0 -1
  307. package/dist/cjs/models/index.js.map +0 -1
  308. package/dist/cjs/models/models_0.js.map +0 -1
  309. package/dist/cjs/package.json +0 -91
  310. package/dist/cjs/pagination/GetFlowTemplateRevisionsPaginator.js.map +0 -1
  311. package/dist/cjs/pagination/GetSystemTemplateRevisionsPaginator.js.map +0 -1
  312. package/dist/cjs/pagination/Interfaces.js.map +0 -1
  313. package/dist/cjs/pagination/ListFlowExecutionMessagesPaginator.js.map +0 -1
  314. package/dist/cjs/pagination/ListTagsForResourcePaginator.js.map +0 -1
  315. package/dist/cjs/pagination/SearchEntitiesPaginator.js.map +0 -1
  316. package/dist/cjs/pagination/SearchFlowExecutionsPaginator.js.map +0 -1
  317. package/dist/cjs/pagination/SearchFlowTemplatesPaginator.js.map +0 -1
  318. package/dist/cjs/pagination/SearchSystemInstancesPaginator.js.map +0 -1
  319. package/dist/cjs/pagination/SearchSystemTemplatesPaginator.js.map +0 -1
  320. package/dist/cjs/pagination/SearchThingsPaginator.js.map +0 -1
  321. package/dist/cjs/protocols/Aws_json1_1.js.map +0 -1
  322. package/dist/cjs/runtimeConfig.browser.js.map +0 -1
  323. package/dist/cjs/runtimeConfig.js.map +0 -1
  324. package/dist/cjs/runtimeConfig.native.js.map +0 -1
  325. package/dist/cjs/runtimeConfig.shared.js.map +0 -1
  326. package/dist/es/IoTThingsGraph.js.map +0 -1
  327. package/dist/es/IoTThingsGraphClient.js.map +0 -1
  328. package/dist/es/commands/AssociateEntityToThingCommand.js.map +0 -1
  329. package/dist/es/commands/CreateFlowTemplateCommand.js.map +0 -1
  330. package/dist/es/commands/CreateSystemInstanceCommand.js +0 -73
  331. package/dist/es/commands/CreateSystemInstanceCommand.js.map +0 -1
  332. package/dist/es/commands/CreateSystemTemplateCommand.js.map +0 -1
  333. package/dist/es/commands/DeleteFlowTemplateCommand.js.map +0 -1
  334. package/dist/es/commands/DeleteNamespaceCommand.js.map +0 -1
  335. package/dist/es/commands/DeleteSystemInstanceCommand.js.map +0 -1
  336. package/dist/es/commands/DeleteSystemTemplateCommand.js.map +0 -1
  337. package/dist/es/commands/DeploySystemInstanceCommand.js +0 -76
  338. package/dist/es/commands/DeploySystemInstanceCommand.js.map +0 -1
  339. package/dist/es/commands/DeprecateFlowTemplateCommand.js.map +0 -1
  340. package/dist/es/commands/DeprecateSystemTemplateCommand.js.map +0 -1
  341. package/dist/es/commands/DescribeNamespaceCommand.js.map +0 -1
  342. package/dist/es/commands/DissociateEntityFromThingCommand.js.map +0 -1
  343. package/dist/es/commands/GetEntitiesCommand.js +0 -96
  344. package/dist/es/commands/GetEntitiesCommand.js.map +0 -1
  345. package/dist/es/commands/GetFlowTemplateCommand.js.map +0 -1
  346. package/dist/es/commands/GetFlowTemplateRevisionsCommand.js.map +0 -1
  347. package/dist/es/commands/GetNamespaceDeletionStatusCommand.js.map +0 -1
  348. package/dist/es/commands/GetSystemInstanceCommand.js.map +0 -1
  349. package/dist/es/commands/GetSystemTemplateCommand.js.map +0 -1
  350. package/dist/es/commands/GetSystemTemplateRevisionsCommand.js.map +0 -1
  351. package/dist/es/commands/GetUploadStatusCommand.js.map +0 -1
  352. package/dist/es/commands/ListFlowExecutionMessagesCommand.js.map +0 -1
  353. package/dist/es/commands/ListTagsForResourceCommand.js.map +0 -1
  354. package/dist/es/commands/SearchEntitiesCommand.js.map +0 -1
  355. package/dist/es/commands/SearchFlowExecutionsCommand.js.map +0 -1
  356. package/dist/es/commands/SearchFlowTemplatesCommand.js.map +0 -1
  357. package/dist/es/commands/SearchSystemInstancesCommand.js.map +0 -1
  358. package/dist/es/commands/SearchSystemTemplatesCommand.js.map +0 -1
  359. package/dist/es/commands/SearchThingsCommand.js.map +0 -1
  360. package/dist/es/commands/TagResourceCommand.js.map +0 -1
  361. package/dist/es/commands/UndeploySystemInstanceCommand.js.map +0 -1
  362. package/dist/es/commands/UntagResourceCommand.js.map +0 -1
  363. package/dist/es/commands/UpdateFlowTemplateCommand.js.map +0 -1
  364. package/dist/es/commands/UpdateSystemTemplateCommand.js.map +0 -1
  365. package/dist/es/commands/UploadEntityDefinitionsCommand.js +0 -75
  366. package/dist/es/commands/UploadEntityDefinitionsCommand.js.map +0 -1
  367. package/dist/es/endpoints.js.map +0 -1
  368. package/dist/es/index.js +0 -50
  369. package/dist/es/index.js.map +0 -1
  370. package/dist/es/models/index.js +0 -2
  371. package/dist/es/models/index.js.map +0 -1
  372. package/dist/es/models/models_0.js.map +0 -1
  373. package/dist/es/package.json +0 -91
  374. package/dist/es/pagination/GetFlowTemplateRevisionsPaginator.js.map +0 -1
  375. package/dist/es/pagination/GetSystemTemplateRevisionsPaginator.js.map +0 -1
  376. package/dist/es/pagination/Interfaces.js +0 -2
  377. package/dist/es/pagination/Interfaces.js.map +0 -1
  378. package/dist/es/pagination/ListFlowExecutionMessagesPaginator.js.map +0 -1
  379. package/dist/es/pagination/ListTagsForResourcePaginator.js.map +0 -1
  380. package/dist/es/pagination/SearchEntitiesPaginator.js.map +0 -1
  381. package/dist/es/pagination/SearchFlowExecutionsPaginator.js.map +0 -1
  382. package/dist/es/pagination/SearchFlowTemplatesPaginator.js.map +0 -1
  383. package/dist/es/pagination/SearchSystemInstancesPaginator.js.map +0 -1
  384. package/dist/es/pagination/SearchSystemTemplatesPaginator.js.map +0 -1
  385. package/dist/es/pagination/SearchThingsPaginator.js.map +0 -1
  386. package/dist/es/protocols/Aws_json1_1.js.map +0 -1
  387. package/dist/es/runtimeConfig.browser.js.map +0 -1
  388. package/dist/es/runtimeConfig.js.map +0 -1
  389. package/dist/es/runtimeConfig.native.js.map +0 -1
  390. package/dist/es/runtimeConfig.shared.js.map +0 -1
  391. package/endpoints.ts +0 -57
  392. package/jest.config.js +0 -4
  393. package/models/models_0.ts +0 -2312
  394. package/pagination/GetFlowTemplateRevisionsPaginator.ts +0 -58
  395. package/pagination/GetSystemTemplateRevisionsPaginator.ts +0 -58
  396. package/pagination/Interfaces.ts +0 -7
  397. package/pagination/ListFlowExecutionMessagesPaginator.ts +0 -58
  398. package/pagination/ListTagsForResourcePaginator.ts +0 -58
  399. package/pagination/SearchEntitiesPaginator.ts +0 -58
  400. package/pagination/SearchFlowExecutionsPaginator.ts +0 -58
  401. package/pagination/SearchFlowTemplatesPaginator.ts +0 -58
  402. package/pagination/SearchSystemInstancesPaginator.ts +0 -58
  403. package/pagination/SearchSystemTemplatesPaginator.ts +0 -58
  404. package/pagination/SearchThingsPaginator.ts +0 -58
  405. package/protocols/Aws_json1_1.ts +0 -4844
  406. package/runtimeConfig.browser.ts +0 -40
  407. package/runtimeConfig.native.ts +0 -16
  408. package/runtimeConfig.shared.ts +0 -16
  409. package/runtimeConfig.ts +0 -45
  410. package/tsconfig.es.json +0 -12
  411. package/tsconfig.json +0 -32
@@ -9,7 +9,7 @@ export var serializeAws_json1_1AssociateEntityToThingCommand = function (input,
9
9
  "x-amz-target": "IotThingsGraphFrontEndService.AssociateEntityToThing",
10
10
  };
11
11
  body = JSON.stringify(serializeAws_json1_1AssociateEntityToThingRequest(input, context));
12
- return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
12
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
13
13
  });
14
14
  }); };
15
15
  export var serializeAws_json1_1CreateFlowTemplateCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -20,7 +20,7 @@ export var serializeAws_json1_1CreateFlowTemplateCommand = function (input, cont
20
20
  "x-amz-target": "IotThingsGraphFrontEndService.CreateFlowTemplate",
21
21
  };
22
22
  body = JSON.stringify(serializeAws_json1_1CreateFlowTemplateRequest(input, context));
23
- return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
23
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
24
24
  });
25
25
  }); };
26
26
  export var serializeAws_json1_1CreateSystemInstanceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -31,7 +31,7 @@ export var serializeAws_json1_1CreateSystemInstanceCommand = function (input, co
31
31
  "x-amz-target": "IotThingsGraphFrontEndService.CreateSystemInstance",
32
32
  };
33
33
  body = JSON.stringify(serializeAws_json1_1CreateSystemInstanceRequest(input, context));
34
- return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
34
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
35
35
  });
36
36
  }); };
37
37
  export var serializeAws_json1_1CreateSystemTemplateCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -42,7 +42,7 @@ export var serializeAws_json1_1CreateSystemTemplateCommand = function (input, co
42
42
  "x-amz-target": "IotThingsGraphFrontEndService.CreateSystemTemplate",
43
43
  };
44
44
  body = JSON.stringify(serializeAws_json1_1CreateSystemTemplateRequest(input, context));
45
- return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
45
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
46
46
  });
47
47
  }); };
48
48
  export var serializeAws_json1_1DeleteFlowTemplateCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -53,7 +53,7 @@ export var serializeAws_json1_1DeleteFlowTemplateCommand = function (input, cont
53
53
  "x-amz-target": "IotThingsGraphFrontEndService.DeleteFlowTemplate",
54
54
  };
55
55
  body = JSON.stringify(serializeAws_json1_1DeleteFlowTemplateRequest(input, context));
56
- return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
56
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
57
57
  });
58
58
  }); };
59
59
  export var serializeAws_json1_1DeleteNamespaceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -64,7 +64,7 @@ export var serializeAws_json1_1DeleteNamespaceCommand = function (input, context
64
64
  "x-amz-target": "IotThingsGraphFrontEndService.DeleteNamespace",
65
65
  };
66
66
  body = JSON.stringify(serializeAws_json1_1DeleteNamespaceRequest(input, context));
67
- return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
67
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
68
68
  });
69
69
  }); };
70
70
  export var serializeAws_json1_1DeleteSystemInstanceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -75,7 +75,7 @@ export var serializeAws_json1_1DeleteSystemInstanceCommand = function (input, co
75
75
  "x-amz-target": "IotThingsGraphFrontEndService.DeleteSystemInstance",
76
76
  };
77
77
  body = JSON.stringify(serializeAws_json1_1DeleteSystemInstanceRequest(input, context));
78
- return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
78
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
79
79
  });
80
80
  }); };
81
81
  export var serializeAws_json1_1DeleteSystemTemplateCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -86,7 +86,7 @@ export var serializeAws_json1_1DeleteSystemTemplateCommand = function (input, co
86
86
  "x-amz-target": "IotThingsGraphFrontEndService.DeleteSystemTemplate",
87
87
  };
88
88
  body = JSON.stringify(serializeAws_json1_1DeleteSystemTemplateRequest(input, context));
89
- return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
89
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
90
90
  });
91
91
  }); };
92
92
  export var serializeAws_json1_1DeploySystemInstanceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -97,7 +97,7 @@ export var serializeAws_json1_1DeploySystemInstanceCommand = function (input, co
97
97
  "x-amz-target": "IotThingsGraphFrontEndService.DeploySystemInstance",
98
98
  };
99
99
  body = JSON.stringify(serializeAws_json1_1DeploySystemInstanceRequest(input, context));
100
- return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
100
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
101
101
  });
102
102
  }); };
103
103
  export var serializeAws_json1_1DeprecateFlowTemplateCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -108,7 +108,7 @@ export var serializeAws_json1_1DeprecateFlowTemplateCommand = function (input, c
108
108
  "x-amz-target": "IotThingsGraphFrontEndService.DeprecateFlowTemplate",
109
109
  };
110
110
  body = JSON.stringify(serializeAws_json1_1DeprecateFlowTemplateRequest(input, context));
111
- return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
111
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
112
112
  });
113
113
  }); };
114
114
  export var serializeAws_json1_1DeprecateSystemTemplateCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -119,7 +119,7 @@ export var serializeAws_json1_1DeprecateSystemTemplateCommand = function (input,
119
119
  "x-amz-target": "IotThingsGraphFrontEndService.DeprecateSystemTemplate",
120
120
  };
121
121
  body = JSON.stringify(serializeAws_json1_1DeprecateSystemTemplateRequest(input, context));
122
- return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
122
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
123
123
  });
124
124
  }); };
125
125
  export var serializeAws_json1_1DescribeNamespaceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -130,7 +130,7 @@ export var serializeAws_json1_1DescribeNamespaceCommand = function (input, conte
130
130
  "x-amz-target": "IotThingsGraphFrontEndService.DescribeNamespace",
131
131
  };
132
132
  body = JSON.stringify(serializeAws_json1_1DescribeNamespaceRequest(input, context));
133
- return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
133
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
134
134
  });
135
135
  }); };
136
136
  export var serializeAws_json1_1DissociateEntityFromThingCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -141,7 +141,7 @@ export var serializeAws_json1_1DissociateEntityFromThingCommand = function (inpu
141
141
  "x-amz-target": "IotThingsGraphFrontEndService.DissociateEntityFromThing",
142
142
  };
143
143
  body = JSON.stringify(serializeAws_json1_1DissociateEntityFromThingRequest(input, context));
144
- return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
144
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
145
145
  });
146
146
  }); };
147
147
  export var serializeAws_json1_1GetEntitiesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -152,7 +152,7 @@ export var serializeAws_json1_1GetEntitiesCommand = function (input, context) {
152
152
  "x-amz-target": "IotThingsGraphFrontEndService.GetEntities",
153
153
  };
154
154
  body = JSON.stringify(serializeAws_json1_1GetEntitiesRequest(input, context));
155
- return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
155
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
156
156
  });
157
157
  }); };
158
158
  export var serializeAws_json1_1GetFlowTemplateCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -163,7 +163,7 @@ export var serializeAws_json1_1GetFlowTemplateCommand = function (input, context
163
163
  "x-amz-target": "IotThingsGraphFrontEndService.GetFlowTemplate",
164
164
  };
165
165
  body = JSON.stringify(serializeAws_json1_1GetFlowTemplateRequest(input, context));
166
- return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
166
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
167
167
  });
168
168
  }); };
169
169
  export var serializeAws_json1_1GetFlowTemplateRevisionsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -174,7 +174,7 @@ export var serializeAws_json1_1GetFlowTemplateRevisionsCommand = function (input
174
174
  "x-amz-target": "IotThingsGraphFrontEndService.GetFlowTemplateRevisions",
175
175
  };
176
176
  body = JSON.stringify(serializeAws_json1_1GetFlowTemplateRevisionsRequest(input, context));
177
- return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
177
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
178
178
  });
179
179
  }); };
180
180
  export var serializeAws_json1_1GetNamespaceDeletionStatusCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -185,7 +185,7 @@ export var serializeAws_json1_1GetNamespaceDeletionStatusCommand = function (inp
185
185
  "x-amz-target": "IotThingsGraphFrontEndService.GetNamespaceDeletionStatus",
186
186
  };
187
187
  body = JSON.stringify(serializeAws_json1_1GetNamespaceDeletionStatusRequest(input, context));
188
- return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
188
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
189
189
  });
190
190
  }); };
191
191
  export var serializeAws_json1_1GetSystemInstanceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -196,7 +196,7 @@ export var serializeAws_json1_1GetSystemInstanceCommand = function (input, conte
196
196
  "x-amz-target": "IotThingsGraphFrontEndService.GetSystemInstance",
197
197
  };
198
198
  body = JSON.stringify(serializeAws_json1_1GetSystemInstanceRequest(input, context));
199
- return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
199
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
200
200
  });
201
201
  }); };
202
202
  export var serializeAws_json1_1GetSystemTemplateCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -207,7 +207,7 @@ export var serializeAws_json1_1GetSystemTemplateCommand = function (input, conte
207
207
  "x-amz-target": "IotThingsGraphFrontEndService.GetSystemTemplate",
208
208
  };
209
209
  body = JSON.stringify(serializeAws_json1_1GetSystemTemplateRequest(input, context));
210
- return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
210
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
211
211
  });
212
212
  }); };
213
213
  export var serializeAws_json1_1GetSystemTemplateRevisionsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -218,7 +218,7 @@ export var serializeAws_json1_1GetSystemTemplateRevisionsCommand = function (inp
218
218
  "x-amz-target": "IotThingsGraphFrontEndService.GetSystemTemplateRevisions",
219
219
  };
220
220
  body = JSON.stringify(serializeAws_json1_1GetSystemTemplateRevisionsRequest(input, context));
221
- return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
221
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
222
222
  });
223
223
  }); };
224
224
  export var serializeAws_json1_1GetUploadStatusCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -229,7 +229,7 @@ export var serializeAws_json1_1GetUploadStatusCommand = function (input, context
229
229
  "x-amz-target": "IotThingsGraphFrontEndService.GetUploadStatus",
230
230
  };
231
231
  body = JSON.stringify(serializeAws_json1_1GetUploadStatusRequest(input, context));
232
- return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
232
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
233
233
  });
234
234
  }); };
235
235
  export var serializeAws_json1_1ListFlowExecutionMessagesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -240,7 +240,7 @@ export var serializeAws_json1_1ListFlowExecutionMessagesCommand = function (inpu
240
240
  "x-amz-target": "IotThingsGraphFrontEndService.ListFlowExecutionMessages",
241
241
  };
242
242
  body = JSON.stringify(serializeAws_json1_1ListFlowExecutionMessagesRequest(input, context));
243
- return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
243
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
244
244
  });
245
245
  }); };
246
246
  export var serializeAws_json1_1ListTagsForResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -251,7 +251,7 @@ export var serializeAws_json1_1ListTagsForResourceCommand = function (input, con
251
251
  "x-amz-target": "IotThingsGraphFrontEndService.ListTagsForResource",
252
252
  };
253
253
  body = JSON.stringify(serializeAws_json1_1ListTagsForResourceRequest(input, context));
254
- return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
254
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
255
255
  });
256
256
  }); };
257
257
  export var serializeAws_json1_1SearchEntitiesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -262,7 +262,7 @@ export var serializeAws_json1_1SearchEntitiesCommand = function (input, context)
262
262
  "x-amz-target": "IotThingsGraphFrontEndService.SearchEntities",
263
263
  };
264
264
  body = JSON.stringify(serializeAws_json1_1SearchEntitiesRequest(input, context));
265
- return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
265
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
266
266
  });
267
267
  }); };
268
268
  export var serializeAws_json1_1SearchFlowExecutionsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -273,7 +273,7 @@ export var serializeAws_json1_1SearchFlowExecutionsCommand = function (input, co
273
273
  "x-amz-target": "IotThingsGraphFrontEndService.SearchFlowExecutions",
274
274
  };
275
275
  body = JSON.stringify(serializeAws_json1_1SearchFlowExecutionsRequest(input, context));
276
- return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
276
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
277
277
  });
278
278
  }); };
279
279
  export var serializeAws_json1_1SearchFlowTemplatesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -284,7 +284,7 @@ export var serializeAws_json1_1SearchFlowTemplatesCommand = function (input, con
284
284
  "x-amz-target": "IotThingsGraphFrontEndService.SearchFlowTemplates",
285
285
  };
286
286
  body = JSON.stringify(serializeAws_json1_1SearchFlowTemplatesRequest(input, context));
287
- return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
287
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
288
288
  });
289
289
  }); };
290
290
  export var serializeAws_json1_1SearchSystemInstancesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -295,7 +295,7 @@ export var serializeAws_json1_1SearchSystemInstancesCommand = function (input, c
295
295
  "x-amz-target": "IotThingsGraphFrontEndService.SearchSystemInstances",
296
296
  };
297
297
  body = JSON.stringify(serializeAws_json1_1SearchSystemInstancesRequest(input, context));
298
- return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
298
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
299
299
  });
300
300
  }); };
301
301
  export var serializeAws_json1_1SearchSystemTemplatesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -306,7 +306,7 @@ export var serializeAws_json1_1SearchSystemTemplatesCommand = function (input, c
306
306
  "x-amz-target": "IotThingsGraphFrontEndService.SearchSystemTemplates",
307
307
  };
308
308
  body = JSON.stringify(serializeAws_json1_1SearchSystemTemplatesRequest(input, context));
309
- return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
309
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
310
310
  });
311
311
  }); };
312
312
  export var serializeAws_json1_1SearchThingsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -317,7 +317,7 @@ export var serializeAws_json1_1SearchThingsCommand = function (input, context) {
317
317
  "x-amz-target": "IotThingsGraphFrontEndService.SearchThings",
318
318
  };
319
319
  body = JSON.stringify(serializeAws_json1_1SearchThingsRequest(input, context));
320
- return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
320
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
321
321
  });
322
322
  }); };
323
323
  export var serializeAws_json1_1TagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -328,7 +328,7 @@ export var serializeAws_json1_1TagResourceCommand = function (input, context) {
328
328
  "x-amz-target": "IotThingsGraphFrontEndService.TagResource",
329
329
  };
330
330
  body = JSON.stringify(serializeAws_json1_1TagResourceRequest(input, context));
331
- return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
331
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
332
332
  });
333
333
  }); };
334
334
  export var serializeAws_json1_1UndeploySystemInstanceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -339,7 +339,7 @@ export var serializeAws_json1_1UndeploySystemInstanceCommand = function (input,
339
339
  "x-amz-target": "IotThingsGraphFrontEndService.UndeploySystemInstance",
340
340
  };
341
341
  body = JSON.stringify(serializeAws_json1_1UndeploySystemInstanceRequest(input, context));
342
- return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
342
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
343
343
  });
344
344
  }); };
345
345
  export var serializeAws_json1_1UntagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -350,7 +350,7 @@ export var serializeAws_json1_1UntagResourceCommand = function (input, context)
350
350
  "x-amz-target": "IotThingsGraphFrontEndService.UntagResource",
351
351
  };
352
352
  body = JSON.stringify(serializeAws_json1_1UntagResourceRequest(input, context));
353
- return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
353
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
354
354
  });
355
355
  }); };
356
356
  export var serializeAws_json1_1UpdateFlowTemplateCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -361,7 +361,7 @@ export var serializeAws_json1_1UpdateFlowTemplateCommand = function (input, cont
361
361
  "x-amz-target": "IotThingsGraphFrontEndService.UpdateFlowTemplate",
362
362
  };
363
363
  body = JSON.stringify(serializeAws_json1_1UpdateFlowTemplateRequest(input, context));
364
- return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
364
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
365
365
  });
366
366
  }); };
367
367
  export var serializeAws_json1_1UpdateSystemTemplateCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -372,7 +372,7 @@ export var serializeAws_json1_1UpdateSystemTemplateCommand = function (input, co
372
372
  "x-amz-target": "IotThingsGraphFrontEndService.UpdateSystemTemplate",
373
373
  };
374
374
  body = JSON.stringify(serializeAws_json1_1UpdateSystemTemplateRequest(input, context));
375
- return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
375
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
376
376
  });
377
377
  }); };
378
378
  export var serializeAws_json1_1UploadEntityDefinitionsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -383,7 +383,7 @@ export var serializeAws_json1_1UploadEntityDefinitionsCommand = function (input,
383
383
  "x-amz-target": "IotThingsGraphFrontEndService.UploadEntityDefinitions",
384
384
  };
385
385
  body = JSON.stringify(serializeAws_json1_1UploadEntityDefinitionsRequest(input, context));
386
- return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
386
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
387
387
  });
388
388
  }); };
389
389
  export var deserializeAws_json1_1AssociateEntityToThingCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -392,15 +392,15 @@ export var deserializeAws_json1_1AssociateEntityToThingCommand = function (outpu
392
392
  switch (_a.label) {
393
393
  case 0:
394
394
  if (output.statusCode >= 300) {
395
- return [2 /*return*/, deserializeAws_json1_1AssociateEntityToThingCommandError(output, context)];
395
+ return [2, deserializeAws_json1_1AssociateEntityToThingCommandError(output, context)];
396
396
  }
397
- return [4 /*yield*/, parseBody(output.body, context)];
397
+ return [4, parseBody(output.body, context)];
398
398
  case 1:
399
399
  data = _a.sent();
400
400
  contents = {};
401
401
  contents = deserializeAws_json1_1AssociateEntityToThingResponse(data, context);
402
402
  response = __assign({ $metadata: deserializeMetadata(output) }, contents);
403
- return [2 /*return*/, Promise.resolve(response)];
403
+ return [2, Promise.resolve(response)];
404
404
  }
405
405
  });
406
406
  }); };
@@ -412,47 +412,47 @@ var deserializeAws_json1_1AssociateEntityToThingCommandError = function (output,
412
412
  case 0:
413
413
  _a = [__assign({}, output)];
414
414
  _g = {};
415
- return [4 /*yield*/, parseBody(output.body, context)];
415
+ return [4, parseBody(output.body, context)];
416
416
  case 1:
417
417
  parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
418
418
  errorCode = "UnknownError";
419
419
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
420
420
  _b = errorCode;
421
421
  switch (_b) {
422
- case "InternalFailureException": return [3 /*break*/, 2];
423
- case "com.amazonaws.iotthingsgraph#InternalFailureException": return [3 /*break*/, 2];
424
- case "InvalidRequestException": return [3 /*break*/, 4];
425
- case "com.amazonaws.iotthingsgraph#InvalidRequestException": return [3 /*break*/, 4];
426
- case "ResourceNotFoundException": return [3 /*break*/, 6];
427
- case "com.amazonaws.iotthingsgraph#ResourceNotFoundException": return [3 /*break*/, 6];
428
- case "ThrottlingException": return [3 /*break*/, 8];
429
- case "com.amazonaws.iotthingsgraph#ThrottlingException": return [3 /*break*/, 8];
430
- }
431
- return [3 /*break*/, 10];
422
+ case "InternalFailureException": return [3, 2];
423
+ case "com.amazonaws.iotthingsgraph#InternalFailureException": return [3, 2];
424
+ case "InvalidRequestException": return [3, 4];
425
+ case "com.amazonaws.iotthingsgraph#InvalidRequestException": return [3, 4];
426
+ case "ResourceNotFoundException": return [3, 6];
427
+ case "com.amazonaws.iotthingsgraph#ResourceNotFoundException": return [3, 6];
428
+ case "ThrottlingException": return [3, 8];
429
+ case "com.amazonaws.iotthingsgraph#ThrottlingException": return [3, 8];
430
+ }
431
+ return [3, 10];
432
432
  case 2:
433
433
  _c = [{}];
434
- return [4 /*yield*/, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
434
+ return [4, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
435
435
  case 3:
436
436
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
437
- return [3 /*break*/, 11];
437
+ return [3, 11];
438
438
  case 4:
439
439
  _d = [{}];
440
- return [4 /*yield*/, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
440
+ return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
441
441
  case 5:
442
442
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
443
- return [3 /*break*/, 11];
443
+ return [3, 11];
444
444
  case 6:
445
445
  _e = [{}];
446
- return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
446
+ return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
447
447
  case 7:
448
448
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
449
- return [3 /*break*/, 11];
449
+ return [3, 11];
450
450
  case 8:
451
451
  _f = [{}];
452
- return [4 /*yield*/, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
452
+ return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
453
453
  case 9:
454
454
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
455
- return [3 /*break*/, 11];
455
+ return [3, 11];
456
456
  case 10:
457
457
  parsedBody = parsedOutput.body;
458
458
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -462,7 +462,7 @@ var deserializeAws_json1_1AssociateEntityToThingCommandError = function (output,
462
462
  message = response.message || response.Message || errorCode;
463
463
  response.message = message;
464
464
  delete response.Message;
465
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
465
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
466
466
  }
467
467
  });
468
468
  }); };
@@ -472,15 +472,15 @@ export var deserializeAws_json1_1CreateFlowTemplateCommand = function (output, c
472
472
  switch (_a.label) {
473
473
  case 0:
474
474
  if (output.statusCode >= 300) {
475
- return [2 /*return*/, deserializeAws_json1_1CreateFlowTemplateCommandError(output, context)];
475
+ return [2, deserializeAws_json1_1CreateFlowTemplateCommandError(output, context)];
476
476
  }
477
- return [4 /*yield*/, parseBody(output.body, context)];
477
+ return [4, parseBody(output.body, context)];
478
478
  case 1:
479
479
  data = _a.sent();
480
480
  contents = {};
481
481
  contents = deserializeAws_json1_1CreateFlowTemplateResponse(data, context);
482
482
  response = __assign({ $metadata: deserializeMetadata(output) }, contents);
483
- return [2 /*return*/, Promise.resolve(response)];
483
+ return [2, Promise.resolve(response)];
484
484
  }
485
485
  });
486
486
  }); };
@@ -492,55 +492,55 @@ var deserializeAws_json1_1CreateFlowTemplateCommandError = function (output, con
492
492
  case 0:
493
493
  _a = [__assign({}, output)];
494
494
  _h = {};
495
- return [4 /*yield*/, parseBody(output.body, context)];
495
+ return [4, parseBody(output.body, context)];
496
496
  case 1:
497
497
  parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
498
498
  errorCode = "UnknownError";
499
499
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
500
500
  _b = errorCode;
501
501
  switch (_b) {
502
- case "InternalFailureException": return [3 /*break*/, 2];
503
- case "com.amazonaws.iotthingsgraph#InternalFailureException": return [3 /*break*/, 2];
504
- case "InvalidRequestException": return [3 /*break*/, 4];
505
- case "com.amazonaws.iotthingsgraph#InvalidRequestException": return [3 /*break*/, 4];
506
- case "LimitExceededException": return [3 /*break*/, 6];
507
- case "com.amazonaws.iotthingsgraph#LimitExceededException": return [3 /*break*/, 6];
508
- case "ResourceAlreadyExistsException": return [3 /*break*/, 8];
509
- case "com.amazonaws.iotthingsgraph#ResourceAlreadyExistsException": return [3 /*break*/, 8];
510
- case "ThrottlingException": return [3 /*break*/, 10];
511
- case "com.amazonaws.iotthingsgraph#ThrottlingException": return [3 /*break*/, 10];
512
- }
513
- return [3 /*break*/, 12];
502
+ case "InternalFailureException": return [3, 2];
503
+ case "com.amazonaws.iotthingsgraph#InternalFailureException": return [3, 2];
504
+ case "InvalidRequestException": return [3, 4];
505
+ case "com.amazonaws.iotthingsgraph#InvalidRequestException": return [3, 4];
506
+ case "LimitExceededException": return [3, 6];
507
+ case "com.amazonaws.iotthingsgraph#LimitExceededException": return [3, 6];
508
+ case "ResourceAlreadyExistsException": return [3, 8];
509
+ case "com.amazonaws.iotthingsgraph#ResourceAlreadyExistsException": return [3, 8];
510
+ case "ThrottlingException": return [3, 10];
511
+ case "com.amazonaws.iotthingsgraph#ThrottlingException": return [3, 10];
512
+ }
513
+ return [3, 12];
514
514
  case 2:
515
515
  _c = [{}];
516
- return [4 /*yield*/, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
516
+ return [4, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
517
517
  case 3:
518
518
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
519
- return [3 /*break*/, 13];
519
+ return [3, 13];
520
520
  case 4:
521
521
  _d = [{}];
522
- return [4 /*yield*/, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
522
+ return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
523
523
  case 5:
524
524
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
525
- return [3 /*break*/, 13];
525
+ return [3, 13];
526
526
  case 6:
527
527
  _e = [{}];
528
- return [4 /*yield*/, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
528
+ return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
529
529
  case 7:
530
530
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
531
- return [3 /*break*/, 13];
531
+ return [3, 13];
532
532
  case 8:
533
533
  _f = [{}];
534
- return [4 /*yield*/, deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)];
534
+ return [4, deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)];
535
535
  case 9:
536
536
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
537
- return [3 /*break*/, 13];
537
+ return [3, 13];
538
538
  case 10:
539
539
  _g = [{}];
540
- return [4 /*yield*/, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
540
+ return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
541
541
  case 11:
542
542
  response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
543
- return [3 /*break*/, 13];
543
+ return [3, 13];
544
544
  case 12:
545
545
  parsedBody = parsedOutput.body;
546
546
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -550,7 +550,7 @@ var deserializeAws_json1_1CreateFlowTemplateCommandError = function (output, con
550
550
  message = response.message || response.Message || errorCode;
551
551
  response.message = message;
552
552
  delete response.Message;
553
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
553
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
554
554
  }
555
555
  });
556
556
  }); };
@@ -560,15 +560,15 @@ export var deserializeAws_json1_1CreateSystemInstanceCommand = function (output,
560
560
  switch (_a.label) {
561
561
  case 0:
562
562
  if (output.statusCode >= 300) {
563
- return [2 /*return*/, deserializeAws_json1_1CreateSystemInstanceCommandError(output, context)];
563
+ return [2, deserializeAws_json1_1CreateSystemInstanceCommandError(output, context)];
564
564
  }
565
- return [4 /*yield*/, parseBody(output.body, context)];
565
+ return [4, parseBody(output.body, context)];
566
566
  case 1:
567
567
  data = _a.sent();
568
568
  contents = {};
569
569
  contents = deserializeAws_json1_1CreateSystemInstanceResponse(data, context);
570
570
  response = __assign({ $metadata: deserializeMetadata(output) }, contents);
571
- return [2 /*return*/, Promise.resolve(response)];
571
+ return [2, Promise.resolve(response)];
572
572
  }
573
573
  });
574
574
  }); };
@@ -580,55 +580,55 @@ var deserializeAws_json1_1CreateSystemInstanceCommandError = function (output, c
580
580
  case 0:
581
581
  _a = [__assign({}, output)];
582
582
  _h = {};
583
- return [4 /*yield*/, parseBody(output.body, context)];
583
+ return [4, parseBody(output.body, context)];
584
584
  case 1:
585
585
  parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
586
586
  errorCode = "UnknownError";
587
587
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
588
588
  _b = errorCode;
589
589
  switch (_b) {
590
- case "InternalFailureException": return [3 /*break*/, 2];
591
- case "com.amazonaws.iotthingsgraph#InternalFailureException": return [3 /*break*/, 2];
592
- case "InvalidRequestException": return [3 /*break*/, 4];
593
- case "com.amazonaws.iotthingsgraph#InvalidRequestException": return [3 /*break*/, 4];
594
- case "LimitExceededException": return [3 /*break*/, 6];
595
- case "com.amazonaws.iotthingsgraph#LimitExceededException": return [3 /*break*/, 6];
596
- case "ResourceAlreadyExistsException": return [3 /*break*/, 8];
597
- case "com.amazonaws.iotthingsgraph#ResourceAlreadyExistsException": return [3 /*break*/, 8];
598
- case "ThrottlingException": return [3 /*break*/, 10];
599
- case "com.amazonaws.iotthingsgraph#ThrottlingException": return [3 /*break*/, 10];
600
- }
601
- return [3 /*break*/, 12];
590
+ case "InternalFailureException": return [3, 2];
591
+ case "com.amazonaws.iotthingsgraph#InternalFailureException": return [3, 2];
592
+ case "InvalidRequestException": return [3, 4];
593
+ case "com.amazonaws.iotthingsgraph#InvalidRequestException": return [3, 4];
594
+ case "LimitExceededException": return [3, 6];
595
+ case "com.amazonaws.iotthingsgraph#LimitExceededException": return [3, 6];
596
+ case "ResourceAlreadyExistsException": return [3, 8];
597
+ case "com.amazonaws.iotthingsgraph#ResourceAlreadyExistsException": return [3, 8];
598
+ case "ThrottlingException": return [3, 10];
599
+ case "com.amazonaws.iotthingsgraph#ThrottlingException": return [3, 10];
600
+ }
601
+ return [3, 12];
602
602
  case 2:
603
603
  _c = [{}];
604
- return [4 /*yield*/, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
604
+ return [4, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
605
605
  case 3:
606
606
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
607
- return [3 /*break*/, 13];
607
+ return [3, 13];
608
608
  case 4:
609
609
  _d = [{}];
610
- return [4 /*yield*/, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
610
+ return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
611
611
  case 5:
612
612
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
613
- return [3 /*break*/, 13];
613
+ return [3, 13];
614
614
  case 6:
615
615
  _e = [{}];
616
- return [4 /*yield*/, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
616
+ return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
617
617
  case 7:
618
618
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
619
- return [3 /*break*/, 13];
619
+ return [3, 13];
620
620
  case 8:
621
621
  _f = [{}];
622
- return [4 /*yield*/, deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)];
622
+ return [4, deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)];
623
623
  case 9:
624
624
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
625
- return [3 /*break*/, 13];
625
+ return [3, 13];
626
626
  case 10:
627
627
  _g = [{}];
628
- return [4 /*yield*/, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
628
+ return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
629
629
  case 11:
630
630
  response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
631
- return [3 /*break*/, 13];
631
+ return [3, 13];
632
632
  case 12:
633
633
  parsedBody = parsedOutput.body;
634
634
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -638,7 +638,7 @@ var deserializeAws_json1_1CreateSystemInstanceCommandError = function (output, c
638
638
  message = response.message || response.Message || errorCode;
639
639
  response.message = message;
640
640
  delete response.Message;
641
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
641
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
642
642
  }
643
643
  });
644
644
  }); };
@@ -648,15 +648,15 @@ export var deserializeAws_json1_1CreateSystemTemplateCommand = function (output,
648
648
  switch (_a.label) {
649
649
  case 0:
650
650
  if (output.statusCode >= 300) {
651
- return [2 /*return*/, deserializeAws_json1_1CreateSystemTemplateCommandError(output, context)];
651
+ return [2, deserializeAws_json1_1CreateSystemTemplateCommandError(output, context)];
652
652
  }
653
- return [4 /*yield*/, parseBody(output.body, context)];
653
+ return [4, parseBody(output.body, context)];
654
654
  case 1:
655
655
  data = _a.sent();
656
656
  contents = {};
657
657
  contents = deserializeAws_json1_1CreateSystemTemplateResponse(data, context);
658
658
  response = __assign({ $metadata: deserializeMetadata(output) }, contents);
659
- return [2 /*return*/, Promise.resolve(response)];
659
+ return [2, Promise.resolve(response)];
660
660
  }
661
661
  });
662
662
  }); };
@@ -668,47 +668,47 @@ var deserializeAws_json1_1CreateSystemTemplateCommandError = function (output, c
668
668
  case 0:
669
669
  _a = [__assign({}, output)];
670
670
  _g = {};
671
- return [4 /*yield*/, parseBody(output.body, context)];
671
+ return [4, parseBody(output.body, context)];
672
672
  case 1:
673
673
  parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
674
674
  errorCode = "UnknownError";
675
675
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
676
676
  _b = errorCode;
677
677
  switch (_b) {
678
- case "InternalFailureException": return [3 /*break*/, 2];
679
- case "com.amazonaws.iotthingsgraph#InternalFailureException": return [3 /*break*/, 2];
680
- case "InvalidRequestException": return [3 /*break*/, 4];
681
- case "com.amazonaws.iotthingsgraph#InvalidRequestException": return [3 /*break*/, 4];
682
- case "ResourceAlreadyExistsException": return [3 /*break*/, 6];
683
- case "com.amazonaws.iotthingsgraph#ResourceAlreadyExistsException": return [3 /*break*/, 6];
684
- case "ThrottlingException": return [3 /*break*/, 8];
685
- case "com.amazonaws.iotthingsgraph#ThrottlingException": return [3 /*break*/, 8];
686
- }
687
- return [3 /*break*/, 10];
678
+ case "InternalFailureException": return [3, 2];
679
+ case "com.amazonaws.iotthingsgraph#InternalFailureException": return [3, 2];
680
+ case "InvalidRequestException": return [3, 4];
681
+ case "com.amazonaws.iotthingsgraph#InvalidRequestException": return [3, 4];
682
+ case "ResourceAlreadyExistsException": return [3, 6];
683
+ case "com.amazonaws.iotthingsgraph#ResourceAlreadyExistsException": return [3, 6];
684
+ case "ThrottlingException": return [3, 8];
685
+ case "com.amazonaws.iotthingsgraph#ThrottlingException": return [3, 8];
686
+ }
687
+ return [3, 10];
688
688
  case 2:
689
689
  _c = [{}];
690
- return [4 /*yield*/, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
690
+ return [4, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
691
691
  case 3:
692
692
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
693
- return [3 /*break*/, 11];
693
+ return [3, 11];
694
694
  case 4:
695
695
  _d = [{}];
696
- return [4 /*yield*/, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
696
+ return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
697
697
  case 5:
698
698
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
699
- return [3 /*break*/, 11];
699
+ return [3, 11];
700
700
  case 6:
701
701
  _e = [{}];
702
- return [4 /*yield*/, deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)];
702
+ return [4, deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)];
703
703
  case 7:
704
704
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
705
- return [3 /*break*/, 11];
705
+ return [3, 11];
706
706
  case 8:
707
707
  _f = [{}];
708
- return [4 /*yield*/, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
708
+ return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
709
709
  case 9:
710
710
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
711
- return [3 /*break*/, 11];
711
+ return [3, 11];
712
712
  case 10:
713
713
  parsedBody = parsedOutput.body;
714
714
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -718,7 +718,7 @@ var deserializeAws_json1_1CreateSystemTemplateCommandError = function (output, c
718
718
  message = response.message || response.Message || errorCode;
719
719
  response.message = message;
720
720
  delete response.Message;
721
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
721
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
722
722
  }
723
723
  });
724
724
  }); };
@@ -728,15 +728,15 @@ export var deserializeAws_json1_1DeleteFlowTemplateCommand = function (output, c
728
728
  switch (_a.label) {
729
729
  case 0:
730
730
  if (output.statusCode >= 300) {
731
- return [2 /*return*/, deserializeAws_json1_1DeleteFlowTemplateCommandError(output, context)];
731
+ return [2, deserializeAws_json1_1DeleteFlowTemplateCommandError(output, context)];
732
732
  }
733
- return [4 /*yield*/, parseBody(output.body, context)];
733
+ return [4, parseBody(output.body, context)];
734
734
  case 1:
735
735
  data = _a.sent();
736
736
  contents = {};
737
737
  contents = deserializeAws_json1_1DeleteFlowTemplateResponse(data, context);
738
738
  response = __assign({ $metadata: deserializeMetadata(output) }, contents);
739
- return [2 /*return*/, Promise.resolve(response)];
739
+ return [2, Promise.resolve(response)];
740
740
  }
741
741
  });
742
742
  }); };
@@ -748,47 +748,47 @@ var deserializeAws_json1_1DeleteFlowTemplateCommandError = function (output, con
748
748
  case 0:
749
749
  _a = [__assign({}, output)];
750
750
  _g = {};
751
- return [4 /*yield*/, parseBody(output.body, context)];
751
+ return [4, parseBody(output.body, context)];
752
752
  case 1:
753
753
  parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
754
754
  errorCode = "UnknownError";
755
755
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
756
756
  _b = errorCode;
757
757
  switch (_b) {
758
- case "InternalFailureException": return [3 /*break*/, 2];
759
- case "com.amazonaws.iotthingsgraph#InternalFailureException": return [3 /*break*/, 2];
760
- case "InvalidRequestException": return [3 /*break*/, 4];
761
- case "com.amazonaws.iotthingsgraph#InvalidRequestException": return [3 /*break*/, 4];
762
- case "ResourceInUseException": return [3 /*break*/, 6];
763
- case "com.amazonaws.iotthingsgraph#ResourceInUseException": return [3 /*break*/, 6];
764
- case "ThrottlingException": return [3 /*break*/, 8];
765
- case "com.amazonaws.iotthingsgraph#ThrottlingException": return [3 /*break*/, 8];
766
- }
767
- return [3 /*break*/, 10];
758
+ case "InternalFailureException": return [3, 2];
759
+ case "com.amazonaws.iotthingsgraph#InternalFailureException": return [3, 2];
760
+ case "InvalidRequestException": return [3, 4];
761
+ case "com.amazonaws.iotthingsgraph#InvalidRequestException": return [3, 4];
762
+ case "ResourceInUseException": return [3, 6];
763
+ case "com.amazonaws.iotthingsgraph#ResourceInUseException": return [3, 6];
764
+ case "ThrottlingException": return [3, 8];
765
+ case "com.amazonaws.iotthingsgraph#ThrottlingException": return [3, 8];
766
+ }
767
+ return [3, 10];
768
768
  case 2:
769
769
  _c = [{}];
770
- return [4 /*yield*/, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
770
+ return [4, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
771
771
  case 3:
772
772
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
773
- return [3 /*break*/, 11];
773
+ return [3, 11];
774
774
  case 4:
775
775
  _d = [{}];
776
- return [4 /*yield*/, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
776
+ return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
777
777
  case 5:
778
778
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
779
- return [3 /*break*/, 11];
779
+ return [3, 11];
780
780
  case 6:
781
781
  _e = [{}];
782
- return [4 /*yield*/, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
782
+ return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
783
783
  case 7:
784
784
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
785
- return [3 /*break*/, 11];
785
+ return [3, 11];
786
786
  case 8:
787
787
  _f = [{}];
788
- return [4 /*yield*/, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
788
+ return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
789
789
  case 9:
790
790
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
791
- return [3 /*break*/, 11];
791
+ return [3, 11];
792
792
  case 10:
793
793
  parsedBody = parsedOutput.body;
794
794
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -798,7 +798,7 @@ var deserializeAws_json1_1DeleteFlowTemplateCommandError = function (output, con
798
798
  message = response.message || response.Message || errorCode;
799
799
  response.message = message;
800
800
  delete response.Message;
801
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
801
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
802
802
  }
803
803
  });
804
804
  }); };
@@ -808,15 +808,15 @@ export var deserializeAws_json1_1DeleteNamespaceCommand = function (output, cont
808
808
  switch (_a.label) {
809
809
  case 0:
810
810
  if (output.statusCode >= 300) {
811
- return [2 /*return*/, deserializeAws_json1_1DeleteNamespaceCommandError(output, context)];
811
+ return [2, deserializeAws_json1_1DeleteNamespaceCommandError(output, context)];
812
812
  }
813
- return [4 /*yield*/, parseBody(output.body, context)];
813
+ return [4, parseBody(output.body, context)];
814
814
  case 1:
815
815
  data = _a.sent();
816
816
  contents = {};
817
817
  contents = deserializeAws_json1_1DeleteNamespaceResponse(data, context);
818
818
  response = __assign({ $metadata: deserializeMetadata(output) }, contents);
819
- return [2 /*return*/, Promise.resolve(response)];
819
+ return [2, Promise.resolve(response)];
820
820
  }
821
821
  });
822
822
  }); };
@@ -828,31 +828,31 @@ var deserializeAws_json1_1DeleteNamespaceCommandError = function (output, contex
828
828
  case 0:
829
829
  _a = [__assign({}, output)];
830
830
  _e = {};
831
- return [4 /*yield*/, parseBody(output.body, context)];
831
+ return [4, parseBody(output.body, context)];
832
832
  case 1:
833
833
  parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
834
834
  errorCode = "UnknownError";
835
835
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
836
836
  _b = errorCode;
837
837
  switch (_b) {
838
- case "InternalFailureException": return [3 /*break*/, 2];
839
- case "com.amazonaws.iotthingsgraph#InternalFailureException": return [3 /*break*/, 2];
840
- case "ThrottlingException": return [3 /*break*/, 4];
841
- case "com.amazonaws.iotthingsgraph#ThrottlingException": return [3 /*break*/, 4];
838
+ case "InternalFailureException": return [3, 2];
839
+ case "com.amazonaws.iotthingsgraph#InternalFailureException": return [3, 2];
840
+ case "ThrottlingException": return [3, 4];
841
+ case "com.amazonaws.iotthingsgraph#ThrottlingException": return [3, 4];
842
842
  }
843
- return [3 /*break*/, 6];
843
+ return [3, 6];
844
844
  case 2:
845
845
  _c = [{}];
846
- return [4 /*yield*/, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
846
+ return [4, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
847
847
  case 3:
848
848
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
849
- return [3 /*break*/, 7];
849
+ return [3, 7];
850
850
  case 4:
851
851
  _d = [{}];
852
- return [4 /*yield*/, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
852
+ return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
853
853
  case 5:
854
854
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
855
- return [3 /*break*/, 7];
855
+ return [3, 7];
856
856
  case 6:
857
857
  parsedBody = parsedOutput.body;
858
858
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -862,7 +862,7 @@ var deserializeAws_json1_1DeleteNamespaceCommandError = function (output, contex
862
862
  message = response.message || response.Message || errorCode;
863
863
  response.message = message;
864
864
  delete response.Message;
865
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
865
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
866
866
  }
867
867
  });
868
868
  }); };
@@ -872,15 +872,15 @@ export var deserializeAws_json1_1DeleteSystemInstanceCommand = function (output,
872
872
  switch (_a.label) {
873
873
  case 0:
874
874
  if (output.statusCode >= 300) {
875
- return [2 /*return*/, deserializeAws_json1_1DeleteSystemInstanceCommandError(output, context)];
875
+ return [2, deserializeAws_json1_1DeleteSystemInstanceCommandError(output, context)];
876
876
  }
877
- return [4 /*yield*/, parseBody(output.body, context)];
877
+ return [4, parseBody(output.body, context)];
878
878
  case 1:
879
879
  data = _a.sent();
880
880
  contents = {};
881
881
  contents = deserializeAws_json1_1DeleteSystemInstanceResponse(data, context);
882
882
  response = __assign({ $metadata: deserializeMetadata(output) }, contents);
883
- return [2 /*return*/, Promise.resolve(response)];
883
+ return [2, Promise.resolve(response)];
884
884
  }
885
885
  });
886
886
  }); };
@@ -892,47 +892,47 @@ var deserializeAws_json1_1DeleteSystemInstanceCommandError = function (output, c
892
892
  case 0:
893
893
  _a = [__assign({}, output)];
894
894
  _g = {};
895
- return [4 /*yield*/, parseBody(output.body, context)];
895
+ return [4, parseBody(output.body, context)];
896
896
  case 1:
897
897
  parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
898
898
  errorCode = "UnknownError";
899
899
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
900
900
  _b = errorCode;
901
901
  switch (_b) {
902
- case "InternalFailureException": return [3 /*break*/, 2];
903
- case "com.amazonaws.iotthingsgraph#InternalFailureException": return [3 /*break*/, 2];
904
- case "InvalidRequestException": return [3 /*break*/, 4];
905
- case "com.amazonaws.iotthingsgraph#InvalidRequestException": return [3 /*break*/, 4];
906
- case "ResourceInUseException": return [3 /*break*/, 6];
907
- case "com.amazonaws.iotthingsgraph#ResourceInUseException": return [3 /*break*/, 6];
908
- case "ThrottlingException": return [3 /*break*/, 8];
909
- case "com.amazonaws.iotthingsgraph#ThrottlingException": return [3 /*break*/, 8];
910
- }
911
- return [3 /*break*/, 10];
902
+ case "InternalFailureException": return [3, 2];
903
+ case "com.amazonaws.iotthingsgraph#InternalFailureException": return [3, 2];
904
+ case "InvalidRequestException": return [3, 4];
905
+ case "com.amazonaws.iotthingsgraph#InvalidRequestException": return [3, 4];
906
+ case "ResourceInUseException": return [3, 6];
907
+ case "com.amazonaws.iotthingsgraph#ResourceInUseException": return [3, 6];
908
+ case "ThrottlingException": return [3, 8];
909
+ case "com.amazonaws.iotthingsgraph#ThrottlingException": return [3, 8];
910
+ }
911
+ return [3, 10];
912
912
  case 2:
913
913
  _c = [{}];
914
- return [4 /*yield*/, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
914
+ return [4, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
915
915
  case 3:
916
916
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
917
- return [3 /*break*/, 11];
917
+ return [3, 11];
918
918
  case 4:
919
919
  _d = [{}];
920
- return [4 /*yield*/, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
920
+ return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
921
921
  case 5:
922
922
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
923
- return [3 /*break*/, 11];
923
+ return [3, 11];
924
924
  case 6:
925
925
  _e = [{}];
926
- return [4 /*yield*/, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
926
+ return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
927
927
  case 7:
928
928
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
929
- return [3 /*break*/, 11];
929
+ return [3, 11];
930
930
  case 8:
931
931
  _f = [{}];
932
- return [4 /*yield*/, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
932
+ return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
933
933
  case 9:
934
934
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
935
- return [3 /*break*/, 11];
935
+ return [3, 11];
936
936
  case 10:
937
937
  parsedBody = parsedOutput.body;
938
938
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -942,7 +942,7 @@ var deserializeAws_json1_1DeleteSystemInstanceCommandError = function (output, c
942
942
  message = response.message || response.Message || errorCode;
943
943
  response.message = message;
944
944
  delete response.Message;
945
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
945
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
946
946
  }
947
947
  });
948
948
  }); };
@@ -952,15 +952,15 @@ export var deserializeAws_json1_1DeleteSystemTemplateCommand = function (output,
952
952
  switch (_a.label) {
953
953
  case 0:
954
954
  if (output.statusCode >= 300) {
955
- return [2 /*return*/, deserializeAws_json1_1DeleteSystemTemplateCommandError(output, context)];
955
+ return [2, deserializeAws_json1_1DeleteSystemTemplateCommandError(output, context)];
956
956
  }
957
- return [4 /*yield*/, parseBody(output.body, context)];
957
+ return [4, parseBody(output.body, context)];
958
958
  case 1:
959
959
  data = _a.sent();
960
960
  contents = {};
961
961
  contents = deserializeAws_json1_1DeleteSystemTemplateResponse(data, context);
962
962
  response = __assign({ $metadata: deserializeMetadata(output) }, contents);
963
- return [2 /*return*/, Promise.resolve(response)];
963
+ return [2, Promise.resolve(response)];
964
964
  }
965
965
  });
966
966
  }); };
@@ -972,47 +972,47 @@ var deserializeAws_json1_1DeleteSystemTemplateCommandError = function (output, c
972
972
  case 0:
973
973
  _a = [__assign({}, output)];
974
974
  _g = {};
975
- return [4 /*yield*/, parseBody(output.body, context)];
975
+ return [4, parseBody(output.body, context)];
976
976
  case 1:
977
977
  parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
978
978
  errorCode = "UnknownError";
979
979
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
980
980
  _b = errorCode;
981
981
  switch (_b) {
982
- case "InternalFailureException": return [3 /*break*/, 2];
983
- case "com.amazonaws.iotthingsgraph#InternalFailureException": return [3 /*break*/, 2];
984
- case "InvalidRequestException": return [3 /*break*/, 4];
985
- case "com.amazonaws.iotthingsgraph#InvalidRequestException": return [3 /*break*/, 4];
986
- case "ResourceInUseException": return [3 /*break*/, 6];
987
- case "com.amazonaws.iotthingsgraph#ResourceInUseException": return [3 /*break*/, 6];
988
- case "ThrottlingException": return [3 /*break*/, 8];
989
- case "com.amazonaws.iotthingsgraph#ThrottlingException": return [3 /*break*/, 8];
990
- }
991
- return [3 /*break*/, 10];
982
+ case "InternalFailureException": return [3, 2];
983
+ case "com.amazonaws.iotthingsgraph#InternalFailureException": return [3, 2];
984
+ case "InvalidRequestException": return [3, 4];
985
+ case "com.amazonaws.iotthingsgraph#InvalidRequestException": return [3, 4];
986
+ case "ResourceInUseException": return [3, 6];
987
+ case "com.amazonaws.iotthingsgraph#ResourceInUseException": return [3, 6];
988
+ case "ThrottlingException": return [3, 8];
989
+ case "com.amazonaws.iotthingsgraph#ThrottlingException": return [3, 8];
990
+ }
991
+ return [3, 10];
992
992
  case 2:
993
993
  _c = [{}];
994
- return [4 /*yield*/, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
994
+ return [4, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
995
995
  case 3:
996
996
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
997
- return [3 /*break*/, 11];
997
+ return [3, 11];
998
998
  case 4:
999
999
  _d = [{}];
1000
- return [4 /*yield*/, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
1000
+ return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
1001
1001
  case 5:
1002
1002
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1003
- return [3 /*break*/, 11];
1003
+ return [3, 11];
1004
1004
  case 6:
1005
1005
  _e = [{}];
1006
- return [4 /*yield*/, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
1006
+ return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
1007
1007
  case 7:
1008
1008
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1009
- return [3 /*break*/, 11];
1009
+ return [3, 11];
1010
1010
  case 8:
1011
1011
  _f = [{}];
1012
- return [4 /*yield*/, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
1012
+ return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
1013
1013
  case 9:
1014
1014
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1015
- return [3 /*break*/, 11];
1015
+ return [3, 11];
1016
1016
  case 10:
1017
1017
  parsedBody = parsedOutput.body;
1018
1018
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -1022,7 +1022,7 @@ var deserializeAws_json1_1DeleteSystemTemplateCommandError = function (output, c
1022
1022
  message = response.message || response.Message || errorCode;
1023
1023
  response.message = message;
1024
1024
  delete response.Message;
1025
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
1025
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1026
1026
  }
1027
1027
  });
1028
1028
  }); };
@@ -1032,15 +1032,15 @@ export var deserializeAws_json1_1DeploySystemInstanceCommand = function (output,
1032
1032
  switch (_a.label) {
1033
1033
  case 0:
1034
1034
  if (output.statusCode >= 300) {
1035
- return [2 /*return*/, deserializeAws_json1_1DeploySystemInstanceCommandError(output, context)];
1035
+ return [2, deserializeAws_json1_1DeploySystemInstanceCommandError(output, context)];
1036
1036
  }
1037
- return [4 /*yield*/, parseBody(output.body, context)];
1037
+ return [4, parseBody(output.body, context)];
1038
1038
  case 1:
1039
1039
  data = _a.sent();
1040
1040
  contents = {};
1041
1041
  contents = deserializeAws_json1_1DeploySystemInstanceResponse(data, context);
1042
1042
  response = __assign({ $metadata: deserializeMetadata(output) }, contents);
1043
- return [2 /*return*/, Promise.resolve(response)];
1043
+ return [2, Promise.resolve(response)];
1044
1044
  }
1045
1045
  });
1046
1046
  }); };
@@ -1052,55 +1052,55 @@ var deserializeAws_json1_1DeploySystemInstanceCommandError = function (output, c
1052
1052
  case 0:
1053
1053
  _a = [__assign({}, output)];
1054
1054
  _h = {};
1055
- return [4 /*yield*/, parseBody(output.body, context)];
1055
+ return [4, parseBody(output.body, context)];
1056
1056
  case 1:
1057
1057
  parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
1058
1058
  errorCode = "UnknownError";
1059
1059
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1060
1060
  _b = errorCode;
1061
1061
  switch (_b) {
1062
- case "InternalFailureException": return [3 /*break*/, 2];
1063
- case "com.amazonaws.iotthingsgraph#InternalFailureException": return [3 /*break*/, 2];
1064
- case "InvalidRequestException": return [3 /*break*/, 4];
1065
- case "com.amazonaws.iotthingsgraph#InvalidRequestException": return [3 /*break*/, 4];
1066
- case "ResourceInUseException": return [3 /*break*/, 6];
1067
- case "com.amazonaws.iotthingsgraph#ResourceInUseException": return [3 /*break*/, 6];
1068
- case "ResourceNotFoundException": return [3 /*break*/, 8];
1069
- case "com.amazonaws.iotthingsgraph#ResourceNotFoundException": return [3 /*break*/, 8];
1070
- case "ThrottlingException": return [3 /*break*/, 10];
1071
- case "com.amazonaws.iotthingsgraph#ThrottlingException": return [3 /*break*/, 10];
1072
- }
1073
- return [3 /*break*/, 12];
1062
+ case "InternalFailureException": return [3, 2];
1063
+ case "com.amazonaws.iotthingsgraph#InternalFailureException": return [3, 2];
1064
+ case "InvalidRequestException": return [3, 4];
1065
+ case "com.amazonaws.iotthingsgraph#InvalidRequestException": return [3, 4];
1066
+ case "ResourceInUseException": return [3, 6];
1067
+ case "com.amazonaws.iotthingsgraph#ResourceInUseException": return [3, 6];
1068
+ case "ResourceNotFoundException": return [3, 8];
1069
+ case "com.amazonaws.iotthingsgraph#ResourceNotFoundException": return [3, 8];
1070
+ case "ThrottlingException": return [3, 10];
1071
+ case "com.amazonaws.iotthingsgraph#ThrottlingException": return [3, 10];
1072
+ }
1073
+ return [3, 12];
1074
1074
  case 2:
1075
1075
  _c = [{}];
1076
- return [4 /*yield*/, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
1076
+ return [4, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
1077
1077
  case 3:
1078
1078
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1079
- return [3 /*break*/, 13];
1079
+ return [3, 13];
1080
1080
  case 4:
1081
1081
  _d = [{}];
1082
- return [4 /*yield*/, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
1082
+ return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
1083
1083
  case 5:
1084
1084
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1085
- return [3 /*break*/, 13];
1085
+ return [3, 13];
1086
1086
  case 6:
1087
1087
  _e = [{}];
1088
- return [4 /*yield*/, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
1088
+ return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
1089
1089
  case 7:
1090
1090
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1091
- return [3 /*break*/, 13];
1091
+ return [3, 13];
1092
1092
  case 8:
1093
1093
  _f = [{}];
1094
- return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1094
+ return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1095
1095
  case 9:
1096
1096
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1097
- return [3 /*break*/, 13];
1097
+ return [3, 13];
1098
1098
  case 10:
1099
1099
  _g = [{}];
1100
- return [4 /*yield*/, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
1100
+ return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
1101
1101
  case 11:
1102
1102
  response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1103
- return [3 /*break*/, 13];
1103
+ return [3, 13];
1104
1104
  case 12:
1105
1105
  parsedBody = parsedOutput.body;
1106
1106
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -1110,7 +1110,7 @@ var deserializeAws_json1_1DeploySystemInstanceCommandError = function (output, c
1110
1110
  message = response.message || response.Message || errorCode;
1111
1111
  response.message = message;
1112
1112
  delete response.Message;
1113
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
1113
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1114
1114
  }
1115
1115
  });
1116
1116
  }); };
@@ -1120,15 +1120,15 @@ export var deserializeAws_json1_1DeprecateFlowTemplateCommand = function (output
1120
1120
  switch (_a.label) {
1121
1121
  case 0:
1122
1122
  if (output.statusCode >= 300) {
1123
- return [2 /*return*/, deserializeAws_json1_1DeprecateFlowTemplateCommandError(output, context)];
1123
+ return [2, deserializeAws_json1_1DeprecateFlowTemplateCommandError(output, context)];
1124
1124
  }
1125
- return [4 /*yield*/, parseBody(output.body, context)];
1125
+ return [4, parseBody(output.body, context)];
1126
1126
  case 1:
1127
1127
  data = _a.sent();
1128
1128
  contents = {};
1129
1129
  contents = deserializeAws_json1_1DeprecateFlowTemplateResponse(data, context);
1130
1130
  response = __assign({ $metadata: deserializeMetadata(output) }, contents);
1131
- return [2 /*return*/, Promise.resolve(response)];
1131
+ return [2, Promise.resolve(response)];
1132
1132
  }
1133
1133
  });
1134
1134
  }); };
@@ -1140,47 +1140,47 @@ var deserializeAws_json1_1DeprecateFlowTemplateCommandError = function (output,
1140
1140
  case 0:
1141
1141
  _a = [__assign({}, output)];
1142
1142
  _g = {};
1143
- return [4 /*yield*/, parseBody(output.body, context)];
1143
+ return [4, parseBody(output.body, context)];
1144
1144
  case 1:
1145
1145
  parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
1146
1146
  errorCode = "UnknownError";
1147
1147
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1148
1148
  _b = errorCode;
1149
1149
  switch (_b) {
1150
- case "InternalFailureException": return [3 /*break*/, 2];
1151
- case "com.amazonaws.iotthingsgraph#InternalFailureException": return [3 /*break*/, 2];
1152
- case "InvalidRequestException": return [3 /*break*/, 4];
1153
- case "com.amazonaws.iotthingsgraph#InvalidRequestException": return [3 /*break*/, 4];
1154
- case "ResourceNotFoundException": return [3 /*break*/, 6];
1155
- case "com.amazonaws.iotthingsgraph#ResourceNotFoundException": return [3 /*break*/, 6];
1156
- case "ThrottlingException": return [3 /*break*/, 8];
1157
- case "com.amazonaws.iotthingsgraph#ThrottlingException": return [3 /*break*/, 8];
1158
- }
1159
- return [3 /*break*/, 10];
1150
+ case "InternalFailureException": return [3, 2];
1151
+ case "com.amazonaws.iotthingsgraph#InternalFailureException": return [3, 2];
1152
+ case "InvalidRequestException": return [3, 4];
1153
+ case "com.amazonaws.iotthingsgraph#InvalidRequestException": return [3, 4];
1154
+ case "ResourceNotFoundException": return [3, 6];
1155
+ case "com.amazonaws.iotthingsgraph#ResourceNotFoundException": return [3, 6];
1156
+ case "ThrottlingException": return [3, 8];
1157
+ case "com.amazonaws.iotthingsgraph#ThrottlingException": return [3, 8];
1158
+ }
1159
+ return [3, 10];
1160
1160
  case 2:
1161
1161
  _c = [{}];
1162
- return [4 /*yield*/, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
1162
+ return [4, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
1163
1163
  case 3:
1164
1164
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1165
- return [3 /*break*/, 11];
1165
+ return [3, 11];
1166
1166
  case 4:
1167
1167
  _d = [{}];
1168
- return [4 /*yield*/, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
1168
+ return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
1169
1169
  case 5:
1170
1170
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1171
- return [3 /*break*/, 11];
1171
+ return [3, 11];
1172
1172
  case 6:
1173
1173
  _e = [{}];
1174
- return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1174
+ return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1175
1175
  case 7:
1176
1176
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1177
- return [3 /*break*/, 11];
1177
+ return [3, 11];
1178
1178
  case 8:
1179
1179
  _f = [{}];
1180
- return [4 /*yield*/, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
1180
+ return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
1181
1181
  case 9:
1182
1182
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1183
- return [3 /*break*/, 11];
1183
+ return [3, 11];
1184
1184
  case 10:
1185
1185
  parsedBody = parsedOutput.body;
1186
1186
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -1190,7 +1190,7 @@ var deserializeAws_json1_1DeprecateFlowTemplateCommandError = function (output,
1190
1190
  message = response.message || response.Message || errorCode;
1191
1191
  response.message = message;
1192
1192
  delete response.Message;
1193
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
1193
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1194
1194
  }
1195
1195
  });
1196
1196
  }); };
@@ -1200,15 +1200,15 @@ export var deserializeAws_json1_1DeprecateSystemTemplateCommand = function (outp
1200
1200
  switch (_a.label) {
1201
1201
  case 0:
1202
1202
  if (output.statusCode >= 300) {
1203
- return [2 /*return*/, deserializeAws_json1_1DeprecateSystemTemplateCommandError(output, context)];
1203
+ return [2, deserializeAws_json1_1DeprecateSystemTemplateCommandError(output, context)];
1204
1204
  }
1205
- return [4 /*yield*/, parseBody(output.body, context)];
1205
+ return [4, parseBody(output.body, context)];
1206
1206
  case 1:
1207
1207
  data = _a.sent();
1208
1208
  contents = {};
1209
1209
  contents = deserializeAws_json1_1DeprecateSystemTemplateResponse(data, context);
1210
1210
  response = __assign({ $metadata: deserializeMetadata(output) }, contents);
1211
- return [2 /*return*/, Promise.resolve(response)];
1211
+ return [2, Promise.resolve(response)];
1212
1212
  }
1213
1213
  });
1214
1214
  }); };
@@ -1220,47 +1220,47 @@ var deserializeAws_json1_1DeprecateSystemTemplateCommandError = function (output
1220
1220
  case 0:
1221
1221
  _a = [__assign({}, output)];
1222
1222
  _g = {};
1223
- return [4 /*yield*/, parseBody(output.body, context)];
1223
+ return [4, parseBody(output.body, context)];
1224
1224
  case 1:
1225
1225
  parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
1226
1226
  errorCode = "UnknownError";
1227
1227
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1228
1228
  _b = errorCode;
1229
1229
  switch (_b) {
1230
- case "InternalFailureException": return [3 /*break*/, 2];
1231
- case "com.amazonaws.iotthingsgraph#InternalFailureException": return [3 /*break*/, 2];
1232
- case "InvalidRequestException": return [3 /*break*/, 4];
1233
- case "com.amazonaws.iotthingsgraph#InvalidRequestException": return [3 /*break*/, 4];
1234
- case "ResourceNotFoundException": return [3 /*break*/, 6];
1235
- case "com.amazonaws.iotthingsgraph#ResourceNotFoundException": return [3 /*break*/, 6];
1236
- case "ThrottlingException": return [3 /*break*/, 8];
1237
- case "com.amazonaws.iotthingsgraph#ThrottlingException": return [3 /*break*/, 8];
1238
- }
1239
- return [3 /*break*/, 10];
1230
+ case "InternalFailureException": return [3, 2];
1231
+ case "com.amazonaws.iotthingsgraph#InternalFailureException": return [3, 2];
1232
+ case "InvalidRequestException": return [3, 4];
1233
+ case "com.amazonaws.iotthingsgraph#InvalidRequestException": return [3, 4];
1234
+ case "ResourceNotFoundException": return [3, 6];
1235
+ case "com.amazonaws.iotthingsgraph#ResourceNotFoundException": return [3, 6];
1236
+ case "ThrottlingException": return [3, 8];
1237
+ case "com.amazonaws.iotthingsgraph#ThrottlingException": return [3, 8];
1238
+ }
1239
+ return [3, 10];
1240
1240
  case 2:
1241
1241
  _c = [{}];
1242
- return [4 /*yield*/, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
1242
+ return [4, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
1243
1243
  case 3:
1244
1244
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1245
- return [3 /*break*/, 11];
1245
+ return [3, 11];
1246
1246
  case 4:
1247
1247
  _d = [{}];
1248
- return [4 /*yield*/, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
1248
+ return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
1249
1249
  case 5:
1250
1250
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1251
- return [3 /*break*/, 11];
1251
+ return [3, 11];
1252
1252
  case 6:
1253
1253
  _e = [{}];
1254
- return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1254
+ return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1255
1255
  case 7:
1256
1256
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1257
- return [3 /*break*/, 11];
1257
+ return [3, 11];
1258
1258
  case 8:
1259
1259
  _f = [{}];
1260
- return [4 /*yield*/, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
1260
+ return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
1261
1261
  case 9:
1262
1262
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1263
- return [3 /*break*/, 11];
1263
+ return [3, 11];
1264
1264
  case 10:
1265
1265
  parsedBody = parsedOutput.body;
1266
1266
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -1270,7 +1270,7 @@ var deserializeAws_json1_1DeprecateSystemTemplateCommandError = function (output
1270
1270
  message = response.message || response.Message || errorCode;
1271
1271
  response.message = message;
1272
1272
  delete response.Message;
1273
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
1273
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1274
1274
  }
1275
1275
  });
1276
1276
  }); };
@@ -1280,15 +1280,15 @@ export var deserializeAws_json1_1DescribeNamespaceCommand = function (output, co
1280
1280
  switch (_a.label) {
1281
1281
  case 0:
1282
1282
  if (output.statusCode >= 300) {
1283
- return [2 /*return*/, deserializeAws_json1_1DescribeNamespaceCommandError(output, context)];
1283
+ return [2, deserializeAws_json1_1DescribeNamespaceCommandError(output, context)];
1284
1284
  }
1285
- return [4 /*yield*/, parseBody(output.body, context)];
1285
+ return [4, parseBody(output.body, context)];
1286
1286
  case 1:
1287
1287
  data = _a.sent();
1288
1288
  contents = {};
1289
1289
  contents = deserializeAws_json1_1DescribeNamespaceResponse(data, context);
1290
1290
  response = __assign({ $metadata: deserializeMetadata(output) }, contents);
1291
- return [2 /*return*/, Promise.resolve(response)];
1291
+ return [2, Promise.resolve(response)];
1292
1292
  }
1293
1293
  });
1294
1294
  }); };
@@ -1300,47 +1300,47 @@ var deserializeAws_json1_1DescribeNamespaceCommandError = function (output, cont
1300
1300
  case 0:
1301
1301
  _a = [__assign({}, output)];
1302
1302
  _g = {};
1303
- return [4 /*yield*/, parseBody(output.body, context)];
1303
+ return [4, parseBody(output.body, context)];
1304
1304
  case 1:
1305
1305
  parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
1306
1306
  errorCode = "UnknownError";
1307
1307
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1308
1308
  _b = errorCode;
1309
1309
  switch (_b) {
1310
- case "InternalFailureException": return [3 /*break*/, 2];
1311
- case "com.amazonaws.iotthingsgraph#InternalFailureException": return [3 /*break*/, 2];
1312
- case "InvalidRequestException": return [3 /*break*/, 4];
1313
- case "com.amazonaws.iotthingsgraph#InvalidRequestException": return [3 /*break*/, 4];
1314
- case "ResourceNotFoundException": return [3 /*break*/, 6];
1315
- case "com.amazonaws.iotthingsgraph#ResourceNotFoundException": return [3 /*break*/, 6];
1316
- case "ThrottlingException": return [3 /*break*/, 8];
1317
- case "com.amazonaws.iotthingsgraph#ThrottlingException": return [3 /*break*/, 8];
1318
- }
1319
- return [3 /*break*/, 10];
1310
+ case "InternalFailureException": return [3, 2];
1311
+ case "com.amazonaws.iotthingsgraph#InternalFailureException": return [3, 2];
1312
+ case "InvalidRequestException": return [3, 4];
1313
+ case "com.amazonaws.iotthingsgraph#InvalidRequestException": return [3, 4];
1314
+ case "ResourceNotFoundException": return [3, 6];
1315
+ case "com.amazonaws.iotthingsgraph#ResourceNotFoundException": return [3, 6];
1316
+ case "ThrottlingException": return [3, 8];
1317
+ case "com.amazonaws.iotthingsgraph#ThrottlingException": return [3, 8];
1318
+ }
1319
+ return [3, 10];
1320
1320
  case 2:
1321
1321
  _c = [{}];
1322
- return [4 /*yield*/, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
1322
+ return [4, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
1323
1323
  case 3:
1324
1324
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1325
- return [3 /*break*/, 11];
1325
+ return [3, 11];
1326
1326
  case 4:
1327
1327
  _d = [{}];
1328
- return [4 /*yield*/, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
1328
+ return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
1329
1329
  case 5:
1330
1330
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1331
- return [3 /*break*/, 11];
1331
+ return [3, 11];
1332
1332
  case 6:
1333
1333
  _e = [{}];
1334
- return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1334
+ return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1335
1335
  case 7:
1336
1336
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1337
- return [3 /*break*/, 11];
1337
+ return [3, 11];
1338
1338
  case 8:
1339
1339
  _f = [{}];
1340
- return [4 /*yield*/, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
1340
+ return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
1341
1341
  case 9:
1342
1342
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1343
- return [3 /*break*/, 11];
1343
+ return [3, 11];
1344
1344
  case 10:
1345
1345
  parsedBody = parsedOutput.body;
1346
1346
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -1350,7 +1350,7 @@ var deserializeAws_json1_1DescribeNamespaceCommandError = function (output, cont
1350
1350
  message = response.message || response.Message || errorCode;
1351
1351
  response.message = message;
1352
1352
  delete response.Message;
1353
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
1353
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1354
1354
  }
1355
1355
  });
1356
1356
  }); };
@@ -1360,15 +1360,15 @@ export var deserializeAws_json1_1DissociateEntityFromThingCommand = function (ou
1360
1360
  switch (_a.label) {
1361
1361
  case 0:
1362
1362
  if (output.statusCode >= 300) {
1363
- return [2 /*return*/, deserializeAws_json1_1DissociateEntityFromThingCommandError(output, context)];
1363
+ return [2, deserializeAws_json1_1DissociateEntityFromThingCommandError(output, context)];
1364
1364
  }
1365
- return [4 /*yield*/, parseBody(output.body, context)];
1365
+ return [4, parseBody(output.body, context)];
1366
1366
  case 1:
1367
1367
  data = _a.sent();
1368
1368
  contents = {};
1369
1369
  contents = deserializeAws_json1_1DissociateEntityFromThingResponse(data, context);
1370
1370
  response = __assign({ $metadata: deserializeMetadata(output) }, contents);
1371
- return [2 /*return*/, Promise.resolve(response)];
1371
+ return [2, Promise.resolve(response)];
1372
1372
  }
1373
1373
  });
1374
1374
  }); };
@@ -1380,47 +1380,47 @@ var deserializeAws_json1_1DissociateEntityFromThingCommandError = function (outp
1380
1380
  case 0:
1381
1381
  _a = [__assign({}, output)];
1382
1382
  _g = {};
1383
- return [4 /*yield*/, parseBody(output.body, context)];
1383
+ return [4, parseBody(output.body, context)];
1384
1384
  case 1:
1385
1385
  parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
1386
1386
  errorCode = "UnknownError";
1387
1387
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1388
1388
  _b = errorCode;
1389
1389
  switch (_b) {
1390
- case "InternalFailureException": return [3 /*break*/, 2];
1391
- case "com.amazonaws.iotthingsgraph#InternalFailureException": return [3 /*break*/, 2];
1392
- case "InvalidRequestException": return [3 /*break*/, 4];
1393
- case "com.amazonaws.iotthingsgraph#InvalidRequestException": return [3 /*break*/, 4];
1394
- case "ResourceNotFoundException": return [3 /*break*/, 6];
1395
- case "com.amazonaws.iotthingsgraph#ResourceNotFoundException": return [3 /*break*/, 6];
1396
- case "ThrottlingException": return [3 /*break*/, 8];
1397
- case "com.amazonaws.iotthingsgraph#ThrottlingException": return [3 /*break*/, 8];
1398
- }
1399
- return [3 /*break*/, 10];
1390
+ case "InternalFailureException": return [3, 2];
1391
+ case "com.amazonaws.iotthingsgraph#InternalFailureException": return [3, 2];
1392
+ case "InvalidRequestException": return [3, 4];
1393
+ case "com.amazonaws.iotthingsgraph#InvalidRequestException": return [3, 4];
1394
+ case "ResourceNotFoundException": return [3, 6];
1395
+ case "com.amazonaws.iotthingsgraph#ResourceNotFoundException": return [3, 6];
1396
+ case "ThrottlingException": return [3, 8];
1397
+ case "com.amazonaws.iotthingsgraph#ThrottlingException": return [3, 8];
1398
+ }
1399
+ return [3, 10];
1400
1400
  case 2:
1401
1401
  _c = [{}];
1402
- return [4 /*yield*/, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
1402
+ return [4, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
1403
1403
  case 3:
1404
1404
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1405
- return [3 /*break*/, 11];
1405
+ return [3, 11];
1406
1406
  case 4:
1407
1407
  _d = [{}];
1408
- return [4 /*yield*/, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
1408
+ return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
1409
1409
  case 5:
1410
1410
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1411
- return [3 /*break*/, 11];
1411
+ return [3, 11];
1412
1412
  case 6:
1413
1413
  _e = [{}];
1414
- return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1414
+ return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1415
1415
  case 7:
1416
1416
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1417
- return [3 /*break*/, 11];
1417
+ return [3, 11];
1418
1418
  case 8:
1419
1419
  _f = [{}];
1420
- return [4 /*yield*/, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
1420
+ return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
1421
1421
  case 9:
1422
1422
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1423
- return [3 /*break*/, 11];
1423
+ return [3, 11];
1424
1424
  case 10:
1425
1425
  parsedBody = parsedOutput.body;
1426
1426
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -1430,7 +1430,7 @@ var deserializeAws_json1_1DissociateEntityFromThingCommandError = function (outp
1430
1430
  message = response.message || response.Message || errorCode;
1431
1431
  response.message = message;
1432
1432
  delete response.Message;
1433
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
1433
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1434
1434
  }
1435
1435
  });
1436
1436
  }); };
@@ -1440,15 +1440,15 @@ export var deserializeAws_json1_1GetEntitiesCommand = function (output, context)
1440
1440
  switch (_a.label) {
1441
1441
  case 0:
1442
1442
  if (output.statusCode >= 300) {
1443
- return [2 /*return*/, deserializeAws_json1_1GetEntitiesCommandError(output, context)];
1443
+ return [2, deserializeAws_json1_1GetEntitiesCommandError(output, context)];
1444
1444
  }
1445
- return [4 /*yield*/, parseBody(output.body, context)];
1445
+ return [4, parseBody(output.body, context)];
1446
1446
  case 1:
1447
1447
  data = _a.sent();
1448
1448
  contents = {};
1449
1449
  contents = deserializeAws_json1_1GetEntitiesResponse(data, context);
1450
1450
  response = __assign({ $metadata: deserializeMetadata(output) }, contents);
1451
- return [2 /*return*/, Promise.resolve(response)];
1451
+ return [2, Promise.resolve(response)];
1452
1452
  }
1453
1453
  });
1454
1454
  }); };
@@ -1460,47 +1460,47 @@ var deserializeAws_json1_1GetEntitiesCommandError = function (output, context) {
1460
1460
  case 0:
1461
1461
  _a = [__assign({}, output)];
1462
1462
  _g = {};
1463
- return [4 /*yield*/, parseBody(output.body, context)];
1463
+ return [4, parseBody(output.body, context)];
1464
1464
  case 1:
1465
1465
  parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
1466
1466
  errorCode = "UnknownError";
1467
1467
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1468
1468
  _b = errorCode;
1469
1469
  switch (_b) {
1470
- case "InternalFailureException": return [3 /*break*/, 2];
1471
- case "com.amazonaws.iotthingsgraph#InternalFailureException": return [3 /*break*/, 2];
1472
- case "InvalidRequestException": return [3 /*break*/, 4];
1473
- case "com.amazonaws.iotthingsgraph#InvalidRequestException": return [3 /*break*/, 4];
1474
- case "ResourceNotFoundException": return [3 /*break*/, 6];
1475
- case "com.amazonaws.iotthingsgraph#ResourceNotFoundException": return [3 /*break*/, 6];
1476
- case "ThrottlingException": return [3 /*break*/, 8];
1477
- case "com.amazonaws.iotthingsgraph#ThrottlingException": return [3 /*break*/, 8];
1478
- }
1479
- return [3 /*break*/, 10];
1470
+ case "InternalFailureException": return [3, 2];
1471
+ case "com.amazonaws.iotthingsgraph#InternalFailureException": return [3, 2];
1472
+ case "InvalidRequestException": return [3, 4];
1473
+ case "com.amazonaws.iotthingsgraph#InvalidRequestException": return [3, 4];
1474
+ case "ResourceNotFoundException": return [3, 6];
1475
+ case "com.amazonaws.iotthingsgraph#ResourceNotFoundException": return [3, 6];
1476
+ case "ThrottlingException": return [3, 8];
1477
+ case "com.amazonaws.iotthingsgraph#ThrottlingException": return [3, 8];
1478
+ }
1479
+ return [3, 10];
1480
1480
  case 2:
1481
1481
  _c = [{}];
1482
- return [4 /*yield*/, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
1482
+ return [4, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
1483
1483
  case 3:
1484
1484
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1485
- return [3 /*break*/, 11];
1485
+ return [3, 11];
1486
1486
  case 4:
1487
1487
  _d = [{}];
1488
- return [4 /*yield*/, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
1488
+ return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
1489
1489
  case 5:
1490
1490
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1491
- return [3 /*break*/, 11];
1491
+ return [3, 11];
1492
1492
  case 6:
1493
1493
  _e = [{}];
1494
- return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1494
+ return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1495
1495
  case 7:
1496
1496
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1497
- return [3 /*break*/, 11];
1497
+ return [3, 11];
1498
1498
  case 8:
1499
1499
  _f = [{}];
1500
- return [4 /*yield*/, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
1500
+ return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
1501
1501
  case 9:
1502
1502
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1503
- return [3 /*break*/, 11];
1503
+ return [3, 11];
1504
1504
  case 10:
1505
1505
  parsedBody = parsedOutput.body;
1506
1506
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -1510,7 +1510,7 @@ var deserializeAws_json1_1GetEntitiesCommandError = function (output, context) {
1510
1510
  message = response.message || response.Message || errorCode;
1511
1511
  response.message = message;
1512
1512
  delete response.Message;
1513
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
1513
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1514
1514
  }
1515
1515
  });
1516
1516
  }); };
@@ -1520,15 +1520,15 @@ export var deserializeAws_json1_1GetFlowTemplateCommand = function (output, cont
1520
1520
  switch (_a.label) {
1521
1521
  case 0:
1522
1522
  if (output.statusCode >= 300) {
1523
- return [2 /*return*/, deserializeAws_json1_1GetFlowTemplateCommandError(output, context)];
1523
+ return [2, deserializeAws_json1_1GetFlowTemplateCommandError(output, context)];
1524
1524
  }
1525
- return [4 /*yield*/, parseBody(output.body, context)];
1525
+ return [4, parseBody(output.body, context)];
1526
1526
  case 1:
1527
1527
  data = _a.sent();
1528
1528
  contents = {};
1529
1529
  contents = deserializeAws_json1_1GetFlowTemplateResponse(data, context);
1530
1530
  response = __assign({ $metadata: deserializeMetadata(output) }, contents);
1531
- return [2 /*return*/, Promise.resolve(response)];
1531
+ return [2, Promise.resolve(response)];
1532
1532
  }
1533
1533
  });
1534
1534
  }); };
@@ -1540,47 +1540,47 @@ var deserializeAws_json1_1GetFlowTemplateCommandError = function (output, contex
1540
1540
  case 0:
1541
1541
  _a = [__assign({}, output)];
1542
1542
  _g = {};
1543
- return [4 /*yield*/, parseBody(output.body, context)];
1543
+ return [4, parseBody(output.body, context)];
1544
1544
  case 1:
1545
1545
  parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
1546
1546
  errorCode = "UnknownError";
1547
1547
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1548
1548
  _b = errorCode;
1549
1549
  switch (_b) {
1550
- case "InternalFailureException": return [3 /*break*/, 2];
1551
- case "com.amazonaws.iotthingsgraph#InternalFailureException": return [3 /*break*/, 2];
1552
- case "InvalidRequestException": return [3 /*break*/, 4];
1553
- case "com.amazonaws.iotthingsgraph#InvalidRequestException": return [3 /*break*/, 4];
1554
- case "ResourceNotFoundException": return [3 /*break*/, 6];
1555
- case "com.amazonaws.iotthingsgraph#ResourceNotFoundException": return [3 /*break*/, 6];
1556
- case "ThrottlingException": return [3 /*break*/, 8];
1557
- case "com.amazonaws.iotthingsgraph#ThrottlingException": return [3 /*break*/, 8];
1558
- }
1559
- return [3 /*break*/, 10];
1550
+ case "InternalFailureException": return [3, 2];
1551
+ case "com.amazonaws.iotthingsgraph#InternalFailureException": return [3, 2];
1552
+ case "InvalidRequestException": return [3, 4];
1553
+ case "com.amazonaws.iotthingsgraph#InvalidRequestException": return [3, 4];
1554
+ case "ResourceNotFoundException": return [3, 6];
1555
+ case "com.amazonaws.iotthingsgraph#ResourceNotFoundException": return [3, 6];
1556
+ case "ThrottlingException": return [3, 8];
1557
+ case "com.amazonaws.iotthingsgraph#ThrottlingException": return [3, 8];
1558
+ }
1559
+ return [3, 10];
1560
1560
  case 2:
1561
1561
  _c = [{}];
1562
- return [4 /*yield*/, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
1562
+ return [4, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
1563
1563
  case 3:
1564
1564
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1565
- return [3 /*break*/, 11];
1565
+ return [3, 11];
1566
1566
  case 4:
1567
1567
  _d = [{}];
1568
- return [4 /*yield*/, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
1568
+ return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
1569
1569
  case 5:
1570
1570
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1571
- return [3 /*break*/, 11];
1571
+ return [3, 11];
1572
1572
  case 6:
1573
1573
  _e = [{}];
1574
- return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1574
+ return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1575
1575
  case 7:
1576
1576
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1577
- return [3 /*break*/, 11];
1577
+ return [3, 11];
1578
1578
  case 8:
1579
1579
  _f = [{}];
1580
- return [4 /*yield*/, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
1580
+ return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
1581
1581
  case 9:
1582
1582
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1583
- return [3 /*break*/, 11];
1583
+ return [3, 11];
1584
1584
  case 10:
1585
1585
  parsedBody = parsedOutput.body;
1586
1586
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -1590,7 +1590,7 @@ var deserializeAws_json1_1GetFlowTemplateCommandError = function (output, contex
1590
1590
  message = response.message || response.Message || errorCode;
1591
1591
  response.message = message;
1592
1592
  delete response.Message;
1593
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
1593
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1594
1594
  }
1595
1595
  });
1596
1596
  }); };
@@ -1600,15 +1600,15 @@ export var deserializeAws_json1_1GetFlowTemplateRevisionsCommand = function (out
1600
1600
  switch (_a.label) {
1601
1601
  case 0:
1602
1602
  if (output.statusCode >= 300) {
1603
- return [2 /*return*/, deserializeAws_json1_1GetFlowTemplateRevisionsCommandError(output, context)];
1603
+ return [2, deserializeAws_json1_1GetFlowTemplateRevisionsCommandError(output, context)];
1604
1604
  }
1605
- return [4 /*yield*/, parseBody(output.body, context)];
1605
+ return [4, parseBody(output.body, context)];
1606
1606
  case 1:
1607
1607
  data = _a.sent();
1608
1608
  contents = {};
1609
1609
  contents = deserializeAws_json1_1GetFlowTemplateRevisionsResponse(data, context);
1610
1610
  response = __assign({ $metadata: deserializeMetadata(output) }, contents);
1611
- return [2 /*return*/, Promise.resolve(response)];
1611
+ return [2, Promise.resolve(response)];
1612
1612
  }
1613
1613
  });
1614
1614
  }); };
@@ -1620,47 +1620,47 @@ var deserializeAws_json1_1GetFlowTemplateRevisionsCommandError = function (outpu
1620
1620
  case 0:
1621
1621
  _a = [__assign({}, output)];
1622
1622
  _g = {};
1623
- return [4 /*yield*/, parseBody(output.body, context)];
1623
+ return [4, parseBody(output.body, context)];
1624
1624
  case 1:
1625
1625
  parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
1626
1626
  errorCode = "UnknownError";
1627
1627
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1628
1628
  _b = errorCode;
1629
1629
  switch (_b) {
1630
- case "InternalFailureException": return [3 /*break*/, 2];
1631
- case "com.amazonaws.iotthingsgraph#InternalFailureException": return [3 /*break*/, 2];
1632
- case "InvalidRequestException": return [3 /*break*/, 4];
1633
- case "com.amazonaws.iotthingsgraph#InvalidRequestException": return [3 /*break*/, 4];
1634
- case "ResourceNotFoundException": return [3 /*break*/, 6];
1635
- case "com.amazonaws.iotthingsgraph#ResourceNotFoundException": return [3 /*break*/, 6];
1636
- case "ThrottlingException": return [3 /*break*/, 8];
1637
- case "com.amazonaws.iotthingsgraph#ThrottlingException": return [3 /*break*/, 8];
1638
- }
1639
- return [3 /*break*/, 10];
1630
+ case "InternalFailureException": return [3, 2];
1631
+ case "com.amazonaws.iotthingsgraph#InternalFailureException": return [3, 2];
1632
+ case "InvalidRequestException": return [3, 4];
1633
+ case "com.amazonaws.iotthingsgraph#InvalidRequestException": return [3, 4];
1634
+ case "ResourceNotFoundException": return [3, 6];
1635
+ case "com.amazonaws.iotthingsgraph#ResourceNotFoundException": return [3, 6];
1636
+ case "ThrottlingException": return [3, 8];
1637
+ case "com.amazonaws.iotthingsgraph#ThrottlingException": return [3, 8];
1638
+ }
1639
+ return [3, 10];
1640
1640
  case 2:
1641
1641
  _c = [{}];
1642
- return [4 /*yield*/, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
1642
+ return [4, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
1643
1643
  case 3:
1644
1644
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1645
- return [3 /*break*/, 11];
1645
+ return [3, 11];
1646
1646
  case 4:
1647
1647
  _d = [{}];
1648
- return [4 /*yield*/, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
1648
+ return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
1649
1649
  case 5:
1650
1650
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1651
- return [3 /*break*/, 11];
1651
+ return [3, 11];
1652
1652
  case 6:
1653
1653
  _e = [{}];
1654
- return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1654
+ return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1655
1655
  case 7:
1656
1656
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1657
- return [3 /*break*/, 11];
1657
+ return [3, 11];
1658
1658
  case 8:
1659
1659
  _f = [{}];
1660
- return [4 /*yield*/, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
1660
+ return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
1661
1661
  case 9:
1662
1662
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1663
- return [3 /*break*/, 11];
1663
+ return [3, 11];
1664
1664
  case 10:
1665
1665
  parsedBody = parsedOutput.body;
1666
1666
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -1670,7 +1670,7 @@ var deserializeAws_json1_1GetFlowTemplateRevisionsCommandError = function (outpu
1670
1670
  message = response.message || response.Message || errorCode;
1671
1671
  response.message = message;
1672
1672
  delete response.Message;
1673
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
1673
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1674
1674
  }
1675
1675
  });
1676
1676
  }); };
@@ -1680,15 +1680,15 @@ export var deserializeAws_json1_1GetNamespaceDeletionStatusCommand = function (o
1680
1680
  switch (_a.label) {
1681
1681
  case 0:
1682
1682
  if (output.statusCode >= 300) {
1683
- return [2 /*return*/, deserializeAws_json1_1GetNamespaceDeletionStatusCommandError(output, context)];
1683
+ return [2, deserializeAws_json1_1GetNamespaceDeletionStatusCommandError(output, context)];
1684
1684
  }
1685
- return [4 /*yield*/, parseBody(output.body, context)];
1685
+ return [4, parseBody(output.body, context)];
1686
1686
  case 1:
1687
1687
  data = _a.sent();
1688
1688
  contents = {};
1689
1689
  contents = deserializeAws_json1_1GetNamespaceDeletionStatusResponse(data, context);
1690
1690
  response = __assign({ $metadata: deserializeMetadata(output) }, contents);
1691
- return [2 /*return*/, Promise.resolve(response)];
1691
+ return [2, Promise.resolve(response)];
1692
1692
  }
1693
1693
  });
1694
1694
  }); };
@@ -1700,39 +1700,39 @@ var deserializeAws_json1_1GetNamespaceDeletionStatusCommandError = function (out
1700
1700
  case 0:
1701
1701
  _a = [__assign({}, output)];
1702
1702
  _f = {};
1703
- return [4 /*yield*/, parseBody(output.body, context)];
1703
+ return [4, parseBody(output.body, context)];
1704
1704
  case 1:
1705
1705
  parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
1706
1706
  errorCode = "UnknownError";
1707
1707
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1708
1708
  _b = errorCode;
1709
1709
  switch (_b) {
1710
- case "InternalFailureException": return [3 /*break*/, 2];
1711
- case "com.amazonaws.iotthingsgraph#InternalFailureException": return [3 /*break*/, 2];
1712
- case "InvalidRequestException": return [3 /*break*/, 4];
1713
- case "com.amazonaws.iotthingsgraph#InvalidRequestException": return [3 /*break*/, 4];
1714
- case "ThrottlingException": return [3 /*break*/, 6];
1715
- case "com.amazonaws.iotthingsgraph#ThrottlingException": return [3 /*break*/, 6];
1716
- }
1717
- return [3 /*break*/, 8];
1710
+ case "InternalFailureException": return [3, 2];
1711
+ case "com.amazonaws.iotthingsgraph#InternalFailureException": return [3, 2];
1712
+ case "InvalidRequestException": return [3, 4];
1713
+ case "com.amazonaws.iotthingsgraph#InvalidRequestException": return [3, 4];
1714
+ case "ThrottlingException": return [3, 6];
1715
+ case "com.amazonaws.iotthingsgraph#ThrottlingException": return [3, 6];
1716
+ }
1717
+ return [3, 8];
1718
1718
  case 2:
1719
1719
  _c = [{}];
1720
- return [4 /*yield*/, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
1720
+ return [4, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
1721
1721
  case 3:
1722
1722
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1723
- return [3 /*break*/, 9];
1723
+ return [3, 9];
1724
1724
  case 4:
1725
1725
  _d = [{}];
1726
- return [4 /*yield*/, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
1726
+ return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
1727
1727
  case 5:
1728
1728
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1729
- return [3 /*break*/, 9];
1729
+ return [3, 9];
1730
1730
  case 6:
1731
1731
  _e = [{}];
1732
- return [4 /*yield*/, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
1732
+ return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
1733
1733
  case 7:
1734
1734
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1735
- return [3 /*break*/, 9];
1735
+ return [3, 9];
1736
1736
  case 8:
1737
1737
  parsedBody = parsedOutput.body;
1738
1738
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -1742,7 +1742,7 @@ var deserializeAws_json1_1GetNamespaceDeletionStatusCommandError = function (out
1742
1742
  message = response.message || response.Message || errorCode;
1743
1743
  response.message = message;
1744
1744
  delete response.Message;
1745
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
1745
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1746
1746
  }
1747
1747
  });
1748
1748
  }); };
@@ -1752,15 +1752,15 @@ export var deserializeAws_json1_1GetSystemInstanceCommand = function (output, co
1752
1752
  switch (_a.label) {
1753
1753
  case 0:
1754
1754
  if (output.statusCode >= 300) {
1755
- return [2 /*return*/, deserializeAws_json1_1GetSystemInstanceCommandError(output, context)];
1755
+ return [2, deserializeAws_json1_1GetSystemInstanceCommandError(output, context)];
1756
1756
  }
1757
- return [4 /*yield*/, parseBody(output.body, context)];
1757
+ return [4, parseBody(output.body, context)];
1758
1758
  case 1:
1759
1759
  data = _a.sent();
1760
1760
  contents = {};
1761
1761
  contents = deserializeAws_json1_1GetSystemInstanceResponse(data, context);
1762
1762
  response = __assign({ $metadata: deserializeMetadata(output) }, contents);
1763
- return [2 /*return*/, Promise.resolve(response)];
1763
+ return [2, Promise.resolve(response)];
1764
1764
  }
1765
1765
  });
1766
1766
  }); };
@@ -1772,47 +1772,47 @@ var deserializeAws_json1_1GetSystemInstanceCommandError = function (output, cont
1772
1772
  case 0:
1773
1773
  _a = [__assign({}, output)];
1774
1774
  _g = {};
1775
- return [4 /*yield*/, parseBody(output.body, context)];
1775
+ return [4, parseBody(output.body, context)];
1776
1776
  case 1:
1777
1777
  parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
1778
1778
  errorCode = "UnknownError";
1779
1779
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1780
1780
  _b = errorCode;
1781
1781
  switch (_b) {
1782
- case "InternalFailureException": return [3 /*break*/, 2];
1783
- case "com.amazonaws.iotthingsgraph#InternalFailureException": return [3 /*break*/, 2];
1784
- case "InvalidRequestException": return [3 /*break*/, 4];
1785
- case "com.amazonaws.iotthingsgraph#InvalidRequestException": return [3 /*break*/, 4];
1786
- case "ResourceNotFoundException": return [3 /*break*/, 6];
1787
- case "com.amazonaws.iotthingsgraph#ResourceNotFoundException": return [3 /*break*/, 6];
1788
- case "ThrottlingException": return [3 /*break*/, 8];
1789
- case "com.amazonaws.iotthingsgraph#ThrottlingException": return [3 /*break*/, 8];
1790
- }
1791
- return [3 /*break*/, 10];
1782
+ case "InternalFailureException": return [3, 2];
1783
+ case "com.amazonaws.iotthingsgraph#InternalFailureException": return [3, 2];
1784
+ case "InvalidRequestException": return [3, 4];
1785
+ case "com.amazonaws.iotthingsgraph#InvalidRequestException": return [3, 4];
1786
+ case "ResourceNotFoundException": return [3, 6];
1787
+ case "com.amazonaws.iotthingsgraph#ResourceNotFoundException": return [3, 6];
1788
+ case "ThrottlingException": return [3, 8];
1789
+ case "com.amazonaws.iotthingsgraph#ThrottlingException": return [3, 8];
1790
+ }
1791
+ return [3, 10];
1792
1792
  case 2:
1793
1793
  _c = [{}];
1794
- return [4 /*yield*/, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
1794
+ return [4, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
1795
1795
  case 3:
1796
1796
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1797
- return [3 /*break*/, 11];
1797
+ return [3, 11];
1798
1798
  case 4:
1799
1799
  _d = [{}];
1800
- return [4 /*yield*/, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
1800
+ return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
1801
1801
  case 5:
1802
1802
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1803
- return [3 /*break*/, 11];
1803
+ return [3, 11];
1804
1804
  case 6:
1805
1805
  _e = [{}];
1806
- return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1806
+ return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1807
1807
  case 7:
1808
1808
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1809
- return [3 /*break*/, 11];
1809
+ return [3, 11];
1810
1810
  case 8:
1811
1811
  _f = [{}];
1812
- return [4 /*yield*/, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
1812
+ return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
1813
1813
  case 9:
1814
1814
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1815
- return [3 /*break*/, 11];
1815
+ return [3, 11];
1816
1816
  case 10:
1817
1817
  parsedBody = parsedOutput.body;
1818
1818
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -1822,7 +1822,7 @@ var deserializeAws_json1_1GetSystemInstanceCommandError = function (output, cont
1822
1822
  message = response.message || response.Message || errorCode;
1823
1823
  response.message = message;
1824
1824
  delete response.Message;
1825
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
1825
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1826
1826
  }
1827
1827
  });
1828
1828
  }); };
@@ -1832,15 +1832,15 @@ export var deserializeAws_json1_1GetSystemTemplateCommand = function (output, co
1832
1832
  switch (_a.label) {
1833
1833
  case 0:
1834
1834
  if (output.statusCode >= 300) {
1835
- return [2 /*return*/, deserializeAws_json1_1GetSystemTemplateCommandError(output, context)];
1835
+ return [2, deserializeAws_json1_1GetSystemTemplateCommandError(output, context)];
1836
1836
  }
1837
- return [4 /*yield*/, parseBody(output.body, context)];
1837
+ return [4, parseBody(output.body, context)];
1838
1838
  case 1:
1839
1839
  data = _a.sent();
1840
1840
  contents = {};
1841
1841
  contents = deserializeAws_json1_1GetSystemTemplateResponse(data, context);
1842
1842
  response = __assign({ $metadata: deserializeMetadata(output) }, contents);
1843
- return [2 /*return*/, Promise.resolve(response)];
1843
+ return [2, Promise.resolve(response)];
1844
1844
  }
1845
1845
  });
1846
1846
  }); };
@@ -1852,47 +1852,47 @@ var deserializeAws_json1_1GetSystemTemplateCommandError = function (output, cont
1852
1852
  case 0:
1853
1853
  _a = [__assign({}, output)];
1854
1854
  _g = {};
1855
- return [4 /*yield*/, parseBody(output.body, context)];
1855
+ return [4, parseBody(output.body, context)];
1856
1856
  case 1:
1857
1857
  parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
1858
1858
  errorCode = "UnknownError";
1859
1859
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1860
1860
  _b = errorCode;
1861
1861
  switch (_b) {
1862
- case "InternalFailureException": return [3 /*break*/, 2];
1863
- case "com.amazonaws.iotthingsgraph#InternalFailureException": return [3 /*break*/, 2];
1864
- case "InvalidRequestException": return [3 /*break*/, 4];
1865
- case "com.amazonaws.iotthingsgraph#InvalidRequestException": return [3 /*break*/, 4];
1866
- case "ResourceNotFoundException": return [3 /*break*/, 6];
1867
- case "com.amazonaws.iotthingsgraph#ResourceNotFoundException": return [3 /*break*/, 6];
1868
- case "ThrottlingException": return [3 /*break*/, 8];
1869
- case "com.amazonaws.iotthingsgraph#ThrottlingException": return [3 /*break*/, 8];
1870
- }
1871
- return [3 /*break*/, 10];
1862
+ case "InternalFailureException": return [3, 2];
1863
+ case "com.amazonaws.iotthingsgraph#InternalFailureException": return [3, 2];
1864
+ case "InvalidRequestException": return [3, 4];
1865
+ case "com.amazonaws.iotthingsgraph#InvalidRequestException": return [3, 4];
1866
+ case "ResourceNotFoundException": return [3, 6];
1867
+ case "com.amazonaws.iotthingsgraph#ResourceNotFoundException": return [3, 6];
1868
+ case "ThrottlingException": return [3, 8];
1869
+ case "com.amazonaws.iotthingsgraph#ThrottlingException": return [3, 8];
1870
+ }
1871
+ return [3, 10];
1872
1872
  case 2:
1873
1873
  _c = [{}];
1874
- return [4 /*yield*/, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
1874
+ return [4, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
1875
1875
  case 3:
1876
1876
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1877
- return [3 /*break*/, 11];
1877
+ return [3, 11];
1878
1878
  case 4:
1879
1879
  _d = [{}];
1880
- return [4 /*yield*/, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
1880
+ return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
1881
1881
  case 5:
1882
1882
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1883
- return [3 /*break*/, 11];
1883
+ return [3, 11];
1884
1884
  case 6:
1885
1885
  _e = [{}];
1886
- return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1886
+ return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1887
1887
  case 7:
1888
1888
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1889
- return [3 /*break*/, 11];
1889
+ return [3, 11];
1890
1890
  case 8:
1891
1891
  _f = [{}];
1892
- return [4 /*yield*/, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
1892
+ return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
1893
1893
  case 9:
1894
1894
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1895
- return [3 /*break*/, 11];
1895
+ return [3, 11];
1896
1896
  case 10:
1897
1897
  parsedBody = parsedOutput.body;
1898
1898
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -1902,7 +1902,7 @@ var deserializeAws_json1_1GetSystemTemplateCommandError = function (output, cont
1902
1902
  message = response.message || response.Message || errorCode;
1903
1903
  response.message = message;
1904
1904
  delete response.Message;
1905
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
1905
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1906
1906
  }
1907
1907
  });
1908
1908
  }); };
@@ -1912,15 +1912,15 @@ export var deserializeAws_json1_1GetSystemTemplateRevisionsCommand = function (o
1912
1912
  switch (_a.label) {
1913
1913
  case 0:
1914
1914
  if (output.statusCode >= 300) {
1915
- return [2 /*return*/, deserializeAws_json1_1GetSystemTemplateRevisionsCommandError(output, context)];
1915
+ return [2, deserializeAws_json1_1GetSystemTemplateRevisionsCommandError(output, context)];
1916
1916
  }
1917
- return [4 /*yield*/, parseBody(output.body, context)];
1917
+ return [4, parseBody(output.body, context)];
1918
1918
  case 1:
1919
1919
  data = _a.sent();
1920
1920
  contents = {};
1921
1921
  contents = deserializeAws_json1_1GetSystemTemplateRevisionsResponse(data, context);
1922
1922
  response = __assign({ $metadata: deserializeMetadata(output) }, contents);
1923
- return [2 /*return*/, Promise.resolve(response)];
1923
+ return [2, Promise.resolve(response)];
1924
1924
  }
1925
1925
  });
1926
1926
  }); };
@@ -1932,47 +1932,47 @@ var deserializeAws_json1_1GetSystemTemplateRevisionsCommandError = function (out
1932
1932
  case 0:
1933
1933
  _a = [__assign({}, output)];
1934
1934
  _g = {};
1935
- return [4 /*yield*/, parseBody(output.body, context)];
1935
+ return [4, parseBody(output.body, context)];
1936
1936
  case 1:
1937
1937
  parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
1938
1938
  errorCode = "UnknownError";
1939
1939
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1940
1940
  _b = errorCode;
1941
1941
  switch (_b) {
1942
- case "InternalFailureException": return [3 /*break*/, 2];
1943
- case "com.amazonaws.iotthingsgraph#InternalFailureException": return [3 /*break*/, 2];
1944
- case "InvalidRequestException": return [3 /*break*/, 4];
1945
- case "com.amazonaws.iotthingsgraph#InvalidRequestException": return [3 /*break*/, 4];
1946
- case "ResourceNotFoundException": return [3 /*break*/, 6];
1947
- case "com.amazonaws.iotthingsgraph#ResourceNotFoundException": return [3 /*break*/, 6];
1948
- case "ThrottlingException": return [3 /*break*/, 8];
1949
- case "com.amazonaws.iotthingsgraph#ThrottlingException": return [3 /*break*/, 8];
1950
- }
1951
- return [3 /*break*/, 10];
1942
+ case "InternalFailureException": return [3, 2];
1943
+ case "com.amazonaws.iotthingsgraph#InternalFailureException": return [3, 2];
1944
+ case "InvalidRequestException": return [3, 4];
1945
+ case "com.amazonaws.iotthingsgraph#InvalidRequestException": return [3, 4];
1946
+ case "ResourceNotFoundException": return [3, 6];
1947
+ case "com.amazonaws.iotthingsgraph#ResourceNotFoundException": return [3, 6];
1948
+ case "ThrottlingException": return [3, 8];
1949
+ case "com.amazonaws.iotthingsgraph#ThrottlingException": return [3, 8];
1950
+ }
1951
+ return [3, 10];
1952
1952
  case 2:
1953
1953
  _c = [{}];
1954
- return [4 /*yield*/, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
1954
+ return [4, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
1955
1955
  case 3:
1956
1956
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1957
- return [3 /*break*/, 11];
1957
+ return [3, 11];
1958
1958
  case 4:
1959
1959
  _d = [{}];
1960
- return [4 /*yield*/, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
1960
+ return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
1961
1961
  case 5:
1962
1962
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1963
- return [3 /*break*/, 11];
1963
+ return [3, 11];
1964
1964
  case 6:
1965
1965
  _e = [{}];
1966
- return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1966
+ return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1967
1967
  case 7:
1968
1968
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1969
- return [3 /*break*/, 11];
1969
+ return [3, 11];
1970
1970
  case 8:
1971
1971
  _f = [{}];
1972
- return [4 /*yield*/, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
1972
+ return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
1973
1973
  case 9:
1974
1974
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1975
- return [3 /*break*/, 11];
1975
+ return [3, 11];
1976
1976
  case 10:
1977
1977
  parsedBody = parsedOutput.body;
1978
1978
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -1982,7 +1982,7 @@ var deserializeAws_json1_1GetSystemTemplateRevisionsCommandError = function (out
1982
1982
  message = response.message || response.Message || errorCode;
1983
1983
  response.message = message;
1984
1984
  delete response.Message;
1985
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
1985
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1986
1986
  }
1987
1987
  });
1988
1988
  }); };
@@ -1992,15 +1992,15 @@ export var deserializeAws_json1_1GetUploadStatusCommand = function (output, cont
1992
1992
  switch (_a.label) {
1993
1993
  case 0:
1994
1994
  if (output.statusCode >= 300) {
1995
- return [2 /*return*/, deserializeAws_json1_1GetUploadStatusCommandError(output, context)];
1995
+ return [2, deserializeAws_json1_1GetUploadStatusCommandError(output, context)];
1996
1996
  }
1997
- return [4 /*yield*/, parseBody(output.body, context)];
1997
+ return [4, parseBody(output.body, context)];
1998
1998
  case 1:
1999
1999
  data = _a.sent();
2000
2000
  contents = {};
2001
2001
  contents = deserializeAws_json1_1GetUploadStatusResponse(data, context);
2002
2002
  response = __assign({ $metadata: deserializeMetadata(output) }, contents);
2003
- return [2 /*return*/, Promise.resolve(response)];
2003
+ return [2, Promise.resolve(response)];
2004
2004
  }
2005
2005
  });
2006
2006
  }); };
@@ -2012,47 +2012,47 @@ var deserializeAws_json1_1GetUploadStatusCommandError = function (output, contex
2012
2012
  case 0:
2013
2013
  _a = [__assign({}, output)];
2014
2014
  _g = {};
2015
- return [4 /*yield*/, parseBody(output.body, context)];
2015
+ return [4, parseBody(output.body, context)];
2016
2016
  case 1:
2017
2017
  parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
2018
2018
  errorCode = "UnknownError";
2019
2019
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2020
2020
  _b = errorCode;
2021
2021
  switch (_b) {
2022
- case "InternalFailureException": return [3 /*break*/, 2];
2023
- case "com.amazonaws.iotthingsgraph#InternalFailureException": return [3 /*break*/, 2];
2024
- case "InvalidRequestException": return [3 /*break*/, 4];
2025
- case "com.amazonaws.iotthingsgraph#InvalidRequestException": return [3 /*break*/, 4];
2026
- case "ResourceNotFoundException": return [3 /*break*/, 6];
2027
- case "com.amazonaws.iotthingsgraph#ResourceNotFoundException": return [3 /*break*/, 6];
2028
- case "ThrottlingException": return [3 /*break*/, 8];
2029
- case "com.amazonaws.iotthingsgraph#ThrottlingException": return [3 /*break*/, 8];
2030
- }
2031
- return [3 /*break*/, 10];
2022
+ case "InternalFailureException": return [3, 2];
2023
+ case "com.amazonaws.iotthingsgraph#InternalFailureException": return [3, 2];
2024
+ case "InvalidRequestException": return [3, 4];
2025
+ case "com.amazonaws.iotthingsgraph#InvalidRequestException": return [3, 4];
2026
+ case "ResourceNotFoundException": return [3, 6];
2027
+ case "com.amazonaws.iotthingsgraph#ResourceNotFoundException": return [3, 6];
2028
+ case "ThrottlingException": return [3, 8];
2029
+ case "com.amazonaws.iotthingsgraph#ThrottlingException": return [3, 8];
2030
+ }
2031
+ return [3, 10];
2032
2032
  case 2:
2033
2033
  _c = [{}];
2034
- return [4 /*yield*/, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
2034
+ return [4, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
2035
2035
  case 3:
2036
2036
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2037
- return [3 /*break*/, 11];
2037
+ return [3, 11];
2038
2038
  case 4:
2039
2039
  _d = [{}];
2040
- return [4 /*yield*/, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
2040
+ return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
2041
2041
  case 5:
2042
2042
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2043
- return [3 /*break*/, 11];
2043
+ return [3, 11];
2044
2044
  case 6:
2045
2045
  _e = [{}];
2046
- return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2046
+ return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2047
2047
  case 7:
2048
2048
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2049
- return [3 /*break*/, 11];
2049
+ return [3, 11];
2050
2050
  case 8:
2051
2051
  _f = [{}];
2052
- return [4 /*yield*/, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
2052
+ return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
2053
2053
  case 9:
2054
2054
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2055
- return [3 /*break*/, 11];
2055
+ return [3, 11];
2056
2056
  case 10:
2057
2057
  parsedBody = parsedOutput.body;
2058
2058
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -2062,7 +2062,7 @@ var deserializeAws_json1_1GetUploadStatusCommandError = function (output, contex
2062
2062
  message = response.message || response.Message || errorCode;
2063
2063
  response.message = message;
2064
2064
  delete response.Message;
2065
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
2065
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2066
2066
  }
2067
2067
  });
2068
2068
  }); };
@@ -2072,15 +2072,15 @@ export var deserializeAws_json1_1ListFlowExecutionMessagesCommand = function (ou
2072
2072
  switch (_a.label) {
2073
2073
  case 0:
2074
2074
  if (output.statusCode >= 300) {
2075
- return [2 /*return*/, deserializeAws_json1_1ListFlowExecutionMessagesCommandError(output, context)];
2075
+ return [2, deserializeAws_json1_1ListFlowExecutionMessagesCommandError(output, context)];
2076
2076
  }
2077
- return [4 /*yield*/, parseBody(output.body, context)];
2077
+ return [4, parseBody(output.body, context)];
2078
2078
  case 1:
2079
2079
  data = _a.sent();
2080
2080
  contents = {};
2081
2081
  contents = deserializeAws_json1_1ListFlowExecutionMessagesResponse(data, context);
2082
2082
  response = __assign({ $metadata: deserializeMetadata(output) }, contents);
2083
- return [2 /*return*/, Promise.resolve(response)];
2083
+ return [2, Promise.resolve(response)];
2084
2084
  }
2085
2085
  });
2086
2086
  }); };
@@ -2092,47 +2092,47 @@ var deserializeAws_json1_1ListFlowExecutionMessagesCommandError = function (outp
2092
2092
  case 0:
2093
2093
  _a = [__assign({}, output)];
2094
2094
  _g = {};
2095
- return [4 /*yield*/, parseBody(output.body, context)];
2095
+ return [4, parseBody(output.body, context)];
2096
2096
  case 1:
2097
2097
  parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
2098
2098
  errorCode = "UnknownError";
2099
2099
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2100
2100
  _b = errorCode;
2101
2101
  switch (_b) {
2102
- case "InternalFailureException": return [3 /*break*/, 2];
2103
- case "com.amazonaws.iotthingsgraph#InternalFailureException": return [3 /*break*/, 2];
2104
- case "InvalidRequestException": return [3 /*break*/, 4];
2105
- case "com.amazonaws.iotthingsgraph#InvalidRequestException": return [3 /*break*/, 4];
2106
- case "ResourceNotFoundException": return [3 /*break*/, 6];
2107
- case "com.amazonaws.iotthingsgraph#ResourceNotFoundException": return [3 /*break*/, 6];
2108
- case "ThrottlingException": return [3 /*break*/, 8];
2109
- case "com.amazonaws.iotthingsgraph#ThrottlingException": return [3 /*break*/, 8];
2110
- }
2111
- return [3 /*break*/, 10];
2102
+ case "InternalFailureException": return [3, 2];
2103
+ case "com.amazonaws.iotthingsgraph#InternalFailureException": return [3, 2];
2104
+ case "InvalidRequestException": return [3, 4];
2105
+ case "com.amazonaws.iotthingsgraph#InvalidRequestException": return [3, 4];
2106
+ case "ResourceNotFoundException": return [3, 6];
2107
+ case "com.amazonaws.iotthingsgraph#ResourceNotFoundException": return [3, 6];
2108
+ case "ThrottlingException": return [3, 8];
2109
+ case "com.amazonaws.iotthingsgraph#ThrottlingException": return [3, 8];
2110
+ }
2111
+ return [3, 10];
2112
2112
  case 2:
2113
2113
  _c = [{}];
2114
- return [4 /*yield*/, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
2114
+ return [4, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
2115
2115
  case 3:
2116
2116
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2117
- return [3 /*break*/, 11];
2117
+ return [3, 11];
2118
2118
  case 4:
2119
2119
  _d = [{}];
2120
- return [4 /*yield*/, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
2120
+ return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
2121
2121
  case 5:
2122
2122
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2123
- return [3 /*break*/, 11];
2123
+ return [3, 11];
2124
2124
  case 6:
2125
2125
  _e = [{}];
2126
- return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2126
+ return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2127
2127
  case 7:
2128
2128
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2129
- return [3 /*break*/, 11];
2129
+ return [3, 11];
2130
2130
  case 8:
2131
2131
  _f = [{}];
2132
- return [4 /*yield*/, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
2132
+ return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
2133
2133
  case 9:
2134
2134
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2135
- return [3 /*break*/, 11];
2135
+ return [3, 11];
2136
2136
  case 10:
2137
2137
  parsedBody = parsedOutput.body;
2138
2138
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -2142,7 +2142,7 @@ var deserializeAws_json1_1ListFlowExecutionMessagesCommandError = function (outp
2142
2142
  message = response.message || response.Message || errorCode;
2143
2143
  response.message = message;
2144
2144
  delete response.Message;
2145
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
2145
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2146
2146
  }
2147
2147
  });
2148
2148
  }); };
@@ -2152,15 +2152,15 @@ export var deserializeAws_json1_1ListTagsForResourceCommand = function (output,
2152
2152
  switch (_a.label) {
2153
2153
  case 0:
2154
2154
  if (output.statusCode >= 300) {
2155
- return [2 /*return*/, deserializeAws_json1_1ListTagsForResourceCommandError(output, context)];
2155
+ return [2, deserializeAws_json1_1ListTagsForResourceCommandError(output, context)];
2156
2156
  }
2157
- return [4 /*yield*/, parseBody(output.body, context)];
2157
+ return [4, parseBody(output.body, context)];
2158
2158
  case 1:
2159
2159
  data = _a.sent();
2160
2160
  contents = {};
2161
2161
  contents = deserializeAws_json1_1ListTagsForResourceResponse(data, context);
2162
2162
  response = __assign({ $metadata: deserializeMetadata(output) }, contents);
2163
- return [2 /*return*/, Promise.resolve(response)];
2163
+ return [2, Promise.resolve(response)];
2164
2164
  }
2165
2165
  });
2166
2166
  }); };
@@ -2172,47 +2172,47 @@ var deserializeAws_json1_1ListTagsForResourceCommandError = function (output, co
2172
2172
  case 0:
2173
2173
  _a = [__assign({}, output)];
2174
2174
  _g = {};
2175
- return [4 /*yield*/, parseBody(output.body, context)];
2175
+ return [4, parseBody(output.body, context)];
2176
2176
  case 1:
2177
2177
  parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
2178
2178
  errorCode = "UnknownError";
2179
2179
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2180
2180
  _b = errorCode;
2181
2181
  switch (_b) {
2182
- case "InternalFailureException": return [3 /*break*/, 2];
2183
- case "com.amazonaws.iotthingsgraph#InternalFailureException": return [3 /*break*/, 2];
2184
- case "InvalidRequestException": return [3 /*break*/, 4];
2185
- case "com.amazonaws.iotthingsgraph#InvalidRequestException": return [3 /*break*/, 4];
2186
- case "ResourceAlreadyExistsException": return [3 /*break*/, 6];
2187
- case "com.amazonaws.iotthingsgraph#ResourceAlreadyExistsException": return [3 /*break*/, 6];
2188
- case "ThrottlingException": return [3 /*break*/, 8];
2189
- case "com.amazonaws.iotthingsgraph#ThrottlingException": return [3 /*break*/, 8];
2190
- }
2191
- return [3 /*break*/, 10];
2182
+ case "InternalFailureException": return [3, 2];
2183
+ case "com.amazonaws.iotthingsgraph#InternalFailureException": return [3, 2];
2184
+ case "InvalidRequestException": return [3, 4];
2185
+ case "com.amazonaws.iotthingsgraph#InvalidRequestException": return [3, 4];
2186
+ case "ResourceAlreadyExistsException": return [3, 6];
2187
+ case "com.amazonaws.iotthingsgraph#ResourceAlreadyExistsException": return [3, 6];
2188
+ case "ThrottlingException": return [3, 8];
2189
+ case "com.amazonaws.iotthingsgraph#ThrottlingException": return [3, 8];
2190
+ }
2191
+ return [3, 10];
2192
2192
  case 2:
2193
2193
  _c = [{}];
2194
- return [4 /*yield*/, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
2194
+ return [4, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
2195
2195
  case 3:
2196
2196
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2197
- return [3 /*break*/, 11];
2197
+ return [3, 11];
2198
2198
  case 4:
2199
2199
  _d = [{}];
2200
- return [4 /*yield*/, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
2200
+ return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
2201
2201
  case 5:
2202
2202
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2203
- return [3 /*break*/, 11];
2203
+ return [3, 11];
2204
2204
  case 6:
2205
2205
  _e = [{}];
2206
- return [4 /*yield*/, deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)];
2206
+ return [4, deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)];
2207
2207
  case 7:
2208
2208
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2209
- return [3 /*break*/, 11];
2209
+ return [3, 11];
2210
2210
  case 8:
2211
2211
  _f = [{}];
2212
- return [4 /*yield*/, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
2212
+ return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
2213
2213
  case 9:
2214
2214
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2215
- return [3 /*break*/, 11];
2215
+ return [3, 11];
2216
2216
  case 10:
2217
2217
  parsedBody = parsedOutput.body;
2218
2218
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -2222,7 +2222,7 @@ var deserializeAws_json1_1ListTagsForResourceCommandError = function (output, co
2222
2222
  message = response.message || response.Message || errorCode;
2223
2223
  response.message = message;
2224
2224
  delete response.Message;
2225
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
2225
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2226
2226
  }
2227
2227
  });
2228
2228
  }); };
@@ -2232,15 +2232,15 @@ export var deserializeAws_json1_1SearchEntitiesCommand = function (output, conte
2232
2232
  switch (_a.label) {
2233
2233
  case 0:
2234
2234
  if (output.statusCode >= 300) {
2235
- return [2 /*return*/, deserializeAws_json1_1SearchEntitiesCommandError(output, context)];
2235
+ return [2, deserializeAws_json1_1SearchEntitiesCommandError(output, context)];
2236
2236
  }
2237
- return [4 /*yield*/, parseBody(output.body, context)];
2237
+ return [4, parseBody(output.body, context)];
2238
2238
  case 1:
2239
2239
  data = _a.sent();
2240
2240
  contents = {};
2241
2241
  contents = deserializeAws_json1_1SearchEntitiesResponse(data, context);
2242
2242
  response = __assign({ $metadata: deserializeMetadata(output) }, contents);
2243
- return [2 /*return*/, Promise.resolve(response)];
2243
+ return [2, Promise.resolve(response)];
2244
2244
  }
2245
2245
  });
2246
2246
  }); };
@@ -2252,39 +2252,39 @@ var deserializeAws_json1_1SearchEntitiesCommandError = function (output, context
2252
2252
  case 0:
2253
2253
  _a = [__assign({}, output)];
2254
2254
  _f = {};
2255
- return [4 /*yield*/, parseBody(output.body, context)];
2255
+ return [4, parseBody(output.body, context)];
2256
2256
  case 1:
2257
2257
  parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
2258
2258
  errorCode = "UnknownError";
2259
2259
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2260
2260
  _b = errorCode;
2261
2261
  switch (_b) {
2262
- case "InternalFailureException": return [3 /*break*/, 2];
2263
- case "com.amazonaws.iotthingsgraph#InternalFailureException": return [3 /*break*/, 2];
2264
- case "InvalidRequestException": return [3 /*break*/, 4];
2265
- case "com.amazonaws.iotthingsgraph#InvalidRequestException": return [3 /*break*/, 4];
2266
- case "ThrottlingException": return [3 /*break*/, 6];
2267
- case "com.amazonaws.iotthingsgraph#ThrottlingException": return [3 /*break*/, 6];
2268
- }
2269
- return [3 /*break*/, 8];
2262
+ case "InternalFailureException": return [3, 2];
2263
+ case "com.amazonaws.iotthingsgraph#InternalFailureException": return [3, 2];
2264
+ case "InvalidRequestException": return [3, 4];
2265
+ case "com.amazonaws.iotthingsgraph#InvalidRequestException": return [3, 4];
2266
+ case "ThrottlingException": return [3, 6];
2267
+ case "com.amazonaws.iotthingsgraph#ThrottlingException": return [3, 6];
2268
+ }
2269
+ return [3, 8];
2270
2270
  case 2:
2271
2271
  _c = [{}];
2272
- return [4 /*yield*/, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
2272
+ return [4, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
2273
2273
  case 3:
2274
2274
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2275
- return [3 /*break*/, 9];
2275
+ return [3, 9];
2276
2276
  case 4:
2277
2277
  _d = [{}];
2278
- return [4 /*yield*/, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
2278
+ return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
2279
2279
  case 5:
2280
2280
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2281
- return [3 /*break*/, 9];
2281
+ return [3, 9];
2282
2282
  case 6:
2283
2283
  _e = [{}];
2284
- return [4 /*yield*/, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
2284
+ return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
2285
2285
  case 7:
2286
2286
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2287
- return [3 /*break*/, 9];
2287
+ return [3, 9];
2288
2288
  case 8:
2289
2289
  parsedBody = parsedOutput.body;
2290
2290
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -2294,7 +2294,7 @@ var deserializeAws_json1_1SearchEntitiesCommandError = function (output, context
2294
2294
  message = response.message || response.Message || errorCode;
2295
2295
  response.message = message;
2296
2296
  delete response.Message;
2297
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
2297
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2298
2298
  }
2299
2299
  });
2300
2300
  }); };
@@ -2304,15 +2304,15 @@ export var deserializeAws_json1_1SearchFlowExecutionsCommand = function (output,
2304
2304
  switch (_a.label) {
2305
2305
  case 0:
2306
2306
  if (output.statusCode >= 300) {
2307
- return [2 /*return*/, deserializeAws_json1_1SearchFlowExecutionsCommandError(output, context)];
2307
+ return [2, deserializeAws_json1_1SearchFlowExecutionsCommandError(output, context)];
2308
2308
  }
2309
- return [4 /*yield*/, parseBody(output.body, context)];
2309
+ return [4, parseBody(output.body, context)];
2310
2310
  case 1:
2311
2311
  data = _a.sent();
2312
2312
  contents = {};
2313
2313
  contents = deserializeAws_json1_1SearchFlowExecutionsResponse(data, context);
2314
2314
  response = __assign({ $metadata: deserializeMetadata(output) }, contents);
2315
- return [2 /*return*/, Promise.resolve(response)];
2315
+ return [2, Promise.resolve(response)];
2316
2316
  }
2317
2317
  });
2318
2318
  }); };
@@ -2324,47 +2324,47 @@ var deserializeAws_json1_1SearchFlowExecutionsCommandError = function (output, c
2324
2324
  case 0:
2325
2325
  _a = [__assign({}, output)];
2326
2326
  _g = {};
2327
- return [4 /*yield*/, parseBody(output.body, context)];
2327
+ return [4, parseBody(output.body, context)];
2328
2328
  case 1:
2329
2329
  parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
2330
2330
  errorCode = "UnknownError";
2331
2331
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2332
2332
  _b = errorCode;
2333
2333
  switch (_b) {
2334
- case "InternalFailureException": return [3 /*break*/, 2];
2335
- case "com.amazonaws.iotthingsgraph#InternalFailureException": return [3 /*break*/, 2];
2336
- case "InvalidRequestException": return [3 /*break*/, 4];
2337
- case "com.amazonaws.iotthingsgraph#InvalidRequestException": return [3 /*break*/, 4];
2338
- case "ResourceNotFoundException": return [3 /*break*/, 6];
2339
- case "com.amazonaws.iotthingsgraph#ResourceNotFoundException": return [3 /*break*/, 6];
2340
- case "ThrottlingException": return [3 /*break*/, 8];
2341
- case "com.amazonaws.iotthingsgraph#ThrottlingException": return [3 /*break*/, 8];
2342
- }
2343
- return [3 /*break*/, 10];
2334
+ case "InternalFailureException": return [3, 2];
2335
+ case "com.amazonaws.iotthingsgraph#InternalFailureException": return [3, 2];
2336
+ case "InvalidRequestException": return [3, 4];
2337
+ case "com.amazonaws.iotthingsgraph#InvalidRequestException": return [3, 4];
2338
+ case "ResourceNotFoundException": return [3, 6];
2339
+ case "com.amazonaws.iotthingsgraph#ResourceNotFoundException": return [3, 6];
2340
+ case "ThrottlingException": return [3, 8];
2341
+ case "com.amazonaws.iotthingsgraph#ThrottlingException": return [3, 8];
2342
+ }
2343
+ return [3, 10];
2344
2344
  case 2:
2345
2345
  _c = [{}];
2346
- return [4 /*yield*/, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
2346
+ return [4, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
2347
2347
  case 3:
2348
2348
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2349
- return [3 /*break*/, 11];
2349
+ return [3, 11];
2350
2350
  case 4:
2351
2351
  _d = [{}];
2352
- return [4 /*yield*/, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
2352
+ return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
2353
2353
  case 5:
2354
2354
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2355
- return [3 /*break*/, 11];
2355
+ return [3, 11];
2356
2356
  case 6:
2357
2357
  _e = [{}];
2358
- return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2358
+ return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2359
2359
  case 7:
2360
2360
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2361
- return [3 /*break*/, 11];
2361
+ return [3, 11];
2362
2362
  case 8:
2363
2363
  _f = [{}];
2364
- return [4 /*yield*/, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
2364
+ return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
2365
2365
  case 9:
2366
2366
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2367
- return [3 /*break*/, 11];
2367
+ return [3, 11];
2368
2368
  case 10:
2369
2369
  parsedBody = parsedOutput.body;
2370
2370
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -2374,7 +2374,7 @@ var deserializeAws_json1_1SearchFlowExecutionsCommandError = function (output, c
2374
2374
  message = response.message || response.Message || errorCode;
2375
2375
  response.message = message;
2376
2376
  delete response.Message;
2377
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
2377
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2378
2378
  }
2379
2379
  });
2380
2380
  }); };
@@ -2384,15 +2384,15 @@ export var deserializeAws_json1_1SearchFlowTemplatesCommand = function (output,
2384
2384
  switch (_a.label) {
2385
2385
  case 0:
2386
2386
  if (output.statusCode >= 300) {
2387
- return [2 /*return*/, deserializeAws_json1_1SearchFlowTemplatesCommandError(output, context)];
2387
+ return [2, deserializeAws_json1_1SearchFlowTemplatesCommandError(output, context)];
2388
2388
  }
2389
- return [4 /*yield*/, parseBody(output.body, context)];
2389
+ return [4, parseBody(output.body, context)];
2390
2390
  case 1:
2391
2391
  data = _a.sent();
2392
2392
  contents = {};
2393
2393
  contents = deserializeAws_json1_1SearchFlowTemplatesResponse(data, context);
2394
2394
  response = __assign({ $metadata: deserializeMetadata(output) }, contents);
2395
- return [2 /*return*/, Promise.resolve(response)];
2395
+ return [2, Promise.resolve(response)];
2396
2396
  }
2397
2397
  });
2398
2398
  }); };
@@ -2404,39 +2404,39 @@ var deserializeAws_json1_1SearchFlowTemplatesCommandError = function (output, co
2404
2404
  case 0:
2405
2405
  _a = [__assign({}, output)];
2406
2406
  _f = {};
2407
- return [4 /*yield*/, parseBody(output.body, context)];
2407
+ return [4, parseBody(output.body, context)];
2408
2408
  case 1:
2409
2409
  parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
2410
2410
  errorCode = "UnknownError";
2411
2411
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2412
2412
  _b = errorCode;
2413
2413
  switch (_b) {
2414
- case "InternalFailureException": return [3 /*break*/, 2];
2415
- case "com.amazonaws.iotthingsgraph#InternalFailureException": return [3 /*break*/, 2];
2416
- case "InvalidRequestException": return [3 /*break*/, 4];
2417
- case "com.amazonaws.iotthingsgraph#InvalidRequestException": return [3 /*break*/, 4];
2418
- case "ThrottlingException": return [3 /*break*/, 6];
2419
- case "com.amazonaws.iotthingsgraph#ThrottlingException": return [3 /*break*/, 6];
2420
- }
2421
- return [3 /*break*/, 8];
2414
+ case "InternalFailureException": return [3, 2];
2415
+ case "com.amazonaws.iotthingsgraph#InternalFailureException": return [3, 2];
2416
+ case "InvalidRequestException": return [3, 4];
2417
+ case "com.amazonaws.iotthingsgraph#InvalidRequestException": return [3, 4];
2418
+ case "ThrottlingException": return [3, 6];
2419
+ case "com.amazonaws.iotthingsgraph#ThrottlingException": return [3, 6];
2420
+ }
2421
+ return [3, 8];
2422
2422
  case 2:
2423
2423
  _c = [{}];
2424
- return [4 /*yield*/, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
2424
+ return [4, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
2425
2425
  case 3:
2426
2426
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2427
- return [3 /*break*/, 9];
2427
+ return [3, 9];
2428
2428
  case 4:
2429
2429
  _d = [{}];
2430
- return [4 /*yield*/, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
2430
+ return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
2431
2431
  case 5:
2432
2432
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2433
- return [3 /*break*/, 9];
2433
+ return [3, 9];
2434
2434
  case 6:
2435
2435
  _e = [{}];
2436
- return [4 /*yield*/, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
2436
+ return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
2437
2437
  case 7:
2438
2438
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2439
- return [3 /*break*/, 9];
2439
+ return [3, 9];
2440
2440
  case 8:
2441
2441
  parsedBody = parsedOutput.body;
2442
2442
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -2446,7 +2446,7 @@ var deserializeAws_json1_1SearchFlowTemplatesCommandError = function (output, co
2446
2446
  message = response.message || response.Message || errorCode;
2447
2447
  response.message = message;
2448
2448
  delete response.Message;
2449
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
2449
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2450
2450
  }
2451
2451
  });
2452
2452
  }); };
@@ -2456,15 +2456,15 @@ export var deserializeAws_json1_1SearchSystemInstancesCommand = function (output
2456
2456
  switch (_a.label) {
2457
2457
  case 0:
2458
2458
  if (output.statusCode >= 300) {
2459
- return [2 /*return*/, deserializeAws_json1_1SearchSystemInstancesCommandError(output, context)];
2459
+ return [2, deserializeAws_json1_1SearchSystemInstancesCommandError(output, context)];
2460
2460
  }
2461
- return [4 /*yield*/, parseBody(output.body, context)];
2461
+ return [4, parseBody(output.body, context)];
2462
2462
  case 1:
2463
2463
  data = _a.sent();
2464
2464
  contents = {};
2465
2465
  contents = deserializeAws_json1_1SearchSystemInstancesResponse(data, context);
2466
2466
  response = __assign({ $metadata: deserializeMetadata(output) }, contents);
2467
- return [2 /*return*/, Promise.resolve(response)];
2467
+ return [2, Promise.resolve(response)];
2468
2468
  }
2469
2469
  });
2470
2470
  }); };
@@ -2476,39 +2476,39 @@ var deserializeAws_json1_1SearchSystemInstancesCommandError = function (output,
2476
2476
  case 0:
2477
2477
  _a = [__assign({}, output)];
2478
2478
  _f = {};
2479
- return [4 /*yield*/, parseBody(output.body, context)];
2479
+ return [4, parseBody(output.body, context)];
2480
2480
  case 1:
2481
2481
  parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
2482
2482
  errorCode = "UnknownError";
2483
2483
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2484
2484
  _b = errorCode;
2485
2485
  switch (_b) {
2486
- case "InternalFailureException": return [3 /*break*/, 2];
2487
- case "com.amazonaws.iotthingsgraph#InternalFailureException": return [3 /*break*/, 2];
2488
- case "InvalidRequestException": return [3 /*break*/, 4];
2489
- case "com.amazonaws.iotthingsgraph#InvalidRequestException": return [3 /*break*/, 4];
2490
- case "ThrottlingException": return [3 /*break*/, 6];
2491
- case "com.amazonaws.iotthingsgraph#ThrottlingException": return [3 /*break*/, 6];
2492
- }
2493
- return [3 /*break*/, 8];
2486
+ case "InternalFailureException": return [3, 2];
2487
+ case "com.amazonaws.iotthingsgraph#InternalFailureException": return [3, 2];
2488
+ case "InvalidRequestException": return [3, 4];
2489
+ case "com.amazonaws.iotthingsgraph#InvalidRequestException": return [3, 4];
2490
+ case "ThrottlingException": return [3, 6];
2491
+ case "com.amazonaws.iotthingsgraph#ThrottlingException": return [3, 6];
2492
+ }
2493
+ return [3, 8];
2494
2494
  case 2:
2495
2495
  _c = [{}];
2496
- return [4 /*yield*/, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
2496
+ return [4, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
2497
2497
  case 3:
2498
2498
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2499
- return [3 /*break*/, 9];
2499
+ return [3, 9];
2500
2500
  case 4:
2501
2501
  _d = [{}];
2502
- return [4 /*yield*/, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
2502
+ return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
2503
2503
  case 5:
2504
2504
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2505
- return [3 /*break*/, 9];
2505
+ return [3, 9];
2506
2506
  case 6:
2507
2507
  _e = [{}];
2508
- return [4 /*yield*/, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
2508
+ return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
2509
2509
  case 7:
2510
2510
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2511
- return [3 /*break*/, 9];
2511
+ return [3, 9];
2512
2512
  case 8:
2513
2513
  parsedBody = parsedOutput.body;
2514
2514
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -2518,7 +2518,7 @@ var deserializeAws_json1_1SearchSystemInstancesCommandError = function (output,
2518
2518
  message = response.message || response.Message || errorCode;
2519
2519
  response.message = message;
2520
2520
  delete response.Message;
2521
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
2521
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2522
2522
  }
2523
2523
  });
2524
2524
  }); };
@@ -2528,15 +2528,15 @@ export var deserializeAws_json1_1SearchSystemTemplatesCommand = function (output
2528
2528
  switch (_a.label) {
2529
2529
  case 0:
2530
2530
  if (output.statusCode >= 300) {
2531
- return [2 /*return*/, deserializeAws_json1_1SearchSystemTemplatesCommandError(output, context)];
2531
+ return [2, deserializeAws_json1_1SearchSystemTemplatesCommandError(output, context)];
2532
2532
  }
2533
- return [4 /*yield*/, parseBody(output.body, context)];
2533
+ return [4, parseBody(output.body, context)];
2534
2534
  case 1:
2535
2535
  data = _a.sent();
2536
2536
  contents = {};
2537
2537
  contents = deserializeAws_json1_1SearchSystemTemplatesResponse(data, context);
2538
2538
  response = __assign({ $metadata: deserializeMetadata(output) }, contents);
2539
- return [2 /*return*/, Promise.resolve(response)];
2539
+ return [2, Promise.resolve(response)];
2540
2540
  }
2541
2541
  });
2542
2542
  }); };
@@ -2548,39 +2548,39 @@ var deserializeAws_json1_1SearchSystemTemplatesCommandError = function (output,
2548
2548
  case 0:
2549
2549
  _a = [__assign({}, output)];
2550
2550
  _f = {};
2551
- return [4 /*yield*/, parseBody(output.body, context)];
2551
+ return [4, parseBody(output.body, context)];
2552
2552
  case 1:
2553
2553
  parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
2554
2554
  errorCode = "UnknownError";
2555
2555
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2556
2556
  _b = errorCode;
2557
2557
  switch (_b) {
2558
- case "InternalFailureException": return [3 /*break*/, 2];
2559
- case "com.amazonaws.iotthingsgraph#InternalFailureException": return [3 /*break*/, 2];
2560
- case "InvalidRequestException": return [3 /*break*/, 4];
2561
- case "com.amazonaws.iotthingsgraph#InvalidRequestException": return [3 /*break*/, 4];
2562
- case "ThrottlingException": return [3 /*break*/, 6];
2563
- case "com.amazonaws.iotthingsgraph#ThrottlingException": return [3 /*break*/, 6];
2564
- }
2565
- return [3 /*break*/, 8];
2558
+ case "InternalFailureException": return [3, 2];
2559
+ case "com.amazonaws.iotthingsgraph#InternalFailureException": return [3, 2];
2560
+ case "InvalidRequestException": return [3, 4];
2561
+ case "com.amazonaws.iotthingsgraph#InvalidRequestException": return [3, 4];
2562
+ case "ThrottlingException": return [3, 6];
2563
+ case "com.amazonaws.iotthingsgraph#ThrottlingException": return [3, 6];
2564
+ }
2565
+ return [3, 8];
2566
2566
  case 2:
2567
2567
  _c = [{}];
2568
- return [4 /*yield*/, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
2568
+ return [4, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
2569
2569
  case 3:
2570
2570
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2571
- return [3 /*break*/, 9];
2571
+ return [3, 9];
2572
2572
  case 4:
2573
2573
  _d = [{}];
2574
- return [4 /*yield*/, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
2574
+ return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
2575
2575
  case 5:
2576
2576
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2577
- return [3 /*break*/, 9];
2577
+ return [3, 9];
2578
2578
  case 6:
2579
2579
  _e = [{}];
2580
- return [4 /*yield*/, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
2580
+ return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
2581
2581
  case 7:
2582
2582
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2583
- return [3 /*break*/, 9];
2583
+ return [3, 9];
2584
2584
  case 8:
2585
2585
  parsedBody = parsedOutput.body;
2586
2586
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -2590,7 +2590,7 @@ var deserializeAws_json1_1SearchSystemTemplatesCommandError = function (output,
2590
2590
  message = response.message || response.Message || errorCode;
2591
2591
  response.message = message;
2592
2592
  delete response.Message;
2593
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
2593
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2594
2594
  }
2595
2595
  });
2596
2596
  }); };
@@ -2600,15 +2600,15 @@ export var deserializeAws_json1_1SearchThingsCommand = function (output, context
2600
2600
  switch (_a.label) {
2601
2601
  case 0:
2602
2602
  if (output.statusCode >= 300) {
2603
- return [2 /*return*/, deserializeAws_json1_1SearchThingsCommandError(output, context)];
2603
+ return [2, deserializeAws_json1_1SearchThingsCommandError(output, context)];
2604
2604
  }
2605
- return [4 /*yield*/, parseBody(output.body, context)];
2605
+ return [4, parseBody(output.body, context)];
2606
2606
  case 1:
2607
2607
  data = _a.sent();
2608
2608
  contents = {};
2609
2609
  contents = deserializeAws_json1_1SearchThingsResponse(data, context);
2610
2610
  response = __assign({ $metadata: deserializeMetadata(output) }, contents);
2611
- return [2 /*return*/, Promise.resolve(response)];
2611
+ return [2, Promise.resolve(response)];
2612
2612
  }
2613
2613
  });
2614
2614
  }); };
@@ -2620,47 +2620,47 @@ var deserializeAws_json1_1SearchThingsCommandError = function (output, context)
2620
2620
  case 0:
2621
2621
  _a = [__assign({}, output)];
2622
2622
  _g = {};
2623
- return [4 /*yield*/, parseBody(output.body, context)];
2623
+ return [4, parseBody(output.body, context)];
2624
2624
  case 1:
2625
2625
  parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
2626
2626
  errorCode = "UnknownError";
2627
2627
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2628
2628
  _b = errorCode;
2629
2629
  switch (_b) {
2630
- case "InternalFailureException": return [3 /*break*/, 2];
2631
- case "com.amazonaws.iotthingsgraph#InternalFailureException": return [3 /*break*/, 2];
2632
- case "InvalidRequestException": return [3 /*break*/, 4];
2633
- case "com.amazonaws.iotthingsgraph#InvalidRequestException": return [3 /*break*/, 4];
2634
- case "ResourceNotFoundException": return [3 /*break*/, 6];
2635
- case "com.amazonaws.iotthingsgraph#ResourceNotFoundException": return [3 /*break*/, 6];
2636
- case "ThrottlingException": return [3 /*break*/, 8];
2637
- case "com.amazonaws.iotthingsgraph#ThrottlingException": return [3 /*break*/, 8];
2638
- }
2639
- return [3 /*break*/, 10];
2630
+ case "InternalFailureException": return [3, 2];
2631
+ case "com.amazonaws.iotthingsgraph#InternalFailureException": return [3, 2];
2632
+ case "InvalidRequestException": return [3, 4];
2633
+ case "com.amazonaws.iotthingsgraph#InvalidRequestException": return [3, 4];
2634
+ case "ResourceNotFoundException": return [3, 6];
2635
+ case "com.amazonaws.iotthingsgraph#ResourceNotFoundException": return [3, 6];
2636
+ case "ThrottlingException": return [3, 8];
2637
+ case "com.amazonaws.iotthingsgraph#ThrottlingException": return [3, 8];
2638
+ }
2639
+ return [3, 10];
2640
2640
  case 2:
2641
2641
  _c = [{}];
2642
- return [4 /*yield*/, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
2642
+ return [4, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
2643
2643
  case 3:
2644
2644
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2645
- return [3 /*break*/, 11];
2645
+ return [3, 11];
2646
2646
  case 4:
2647
2647
  _d = [{}];
2648
- return [4 /*yield*/, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
2648
+ return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
2649
2649
  case 5:
2650
2650
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2651
- return [3 /*break*/, 11];
2651
+ return [3, 11];
2652
2652
  case 6:
2653
2653
  _e = [{}];
2654
- return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2654
+ return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2655
2655
  case 7:
2656
2656
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2657
- return [3 /*break*/, 11];
2657
+ return [3, 11];
2658
2658
  case 8:
2659
2659
  _f = [{}];
2660
- return [4 /*yield*/, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
2660
+ return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
2661
2661
  case 9:
2662
2662
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2663
- return [3 /*break*/, 11];
2663
+ return [3, 11];
2664
2664
  case 10:
2665
2665
  parsedBody = parsedOutput.body;
2666
2666
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -2670,7 +2670,7 @@ var deserializeAws_json1_1SearchThingsCommandError = function (output, context)
2670
2670
  message = response.message || response.Message || errorCode;
2671
2671
  response.message = message;
2672
2672
  delete response.Message;
2673
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
2673
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2674
2674
  }
2675
2675
  });
2676
2676
  }); };
@@ -2680,15 +2680,15 @@ export var deserializeAws_json1_1TagResourceCommand = function (output, context)
2680
2680
  switch (_a.label) {
2681
2681
  case 0:
2682
2682
  if (output.statusCode >= 300) {
2683
- return [2 /*return*/, deserializeAws_json1_1TagResourceCommandError(output, context)];
2683
+ return [2, deserializeAws_json1_1TagResourceCommandError(output, context)];
2684
2684
  }
2685
- return [4 /*yield*/, parseBody(output.body, context)];
2685
+ return [4, parseBody(output.body, context)];
2686
2686
  case 1:
2687
2687
  data = _a.sent();
2688
2688
  contents = {};
2689
2689
  contents = deserializeAws_json1_1TagResourceResponse(data, context);
2690
2690
  response = __assign({ $metadata: deserializeMetadata(output) }, contents);
2691
- return [2 /*return*/, Promise.resolve(response)];
2691
+ return [2, Promise.resolve(response)];
2692
2692
  }
2693
2693
  });
2694
2694
  }); };
@@ -2700,47 +2700,47 @@ var deserializeAws_json1_1TagResourceCommandError = function (output, context) {
2700
2700
  case 0:
2701
2701
  _a = [__assign({}, output)];
2702
2702
  _g = {};
2703
- return [4 /*yield*/, parseBody(output.body, context)];
2703
+ return [4, parseBody(output.body, context)];
2704
2704
  case 1:
2705
2705
  parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
2706
2706
  errorCode = "UnknownError";
2707
2707
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2708
2708
  _b = errorCode;
2709
2709
  switch (_b) {
2710
- case "InternalFailureException": return [3 /*break*/, 2];
2711
- case "com.amazonaws.iotthingsgraph#InternalFailureException": return [3 /*break*/, 2];
2712
- case "InvalidRequestException": return [3 /*break*/, 4];
2713
- case "com.amazonaws.iotthingsgraph#InvalidRequestException": return [3 /*break*/, 4];
2714
- case "ResourceAlreadyExistsException": return [3 /*break*/, 6];
2715
- case "com.amazonaws.iotthingsgraph#ResourceAlreadyExistsException": return [3 /*break*/, 6];
2716
- case "ThrottlingException": return [3 /*break*/, 8];
2717
- case "com.amazonaws.iotthingsgraph#ThrottlingException": return [3 /*break*/, 8];
2718
- }
2719
- return [3 /*break*/, 10];
2710
+ case "InternalFailureException": return [3, 2];
2711
+ case "com.amazonaws.iotthingsgraph#InternalFailureException": return [3, 2];
2712
+ case "InvalidRequestException": return [3, 4];
2713
+ case "com.amazonaws.iotthingsgraph#InvalidRequestException": return [3, 4];
2714
+ case "ResourceAlreadyExistsException": return [3, 6];
2715
+ case "com.amazonaws.iotthingsgraph#ResourceAlreadyExistsException": return [3, 6];
2716
+ case "ThrottlingException": return [3, 8];
2717
+ case "com.amazonaws.iotthingsgraph#ThrottlingException": return [3, 8];
2718
+ }
2719
+ return [3, 10];
2720
2720
  case 2:
2721
2721
  _c = [{}];
2722
- return [4 /*yield*/, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
2722
+ return [4, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
2723
2723
  case 3:
2724
2724
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2725
- return [3 /*break*/, 11];
2725
+ return [3, 11];
2726
2726
  case 4:
2727
2727
  _d = [{}];
2728
- return [4 /*yield*/, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
2728
+ return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
2729
2729
  case 5:
2730
2730
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2731
- return [3 /*break*/, 11];
2731
+ return [3, 11];
2732
2732
  case 6:
2733
2733
  _e = [{}];
2734
- return [4 /*yield*/, deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)];
2734
+ return [4, deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)];
2735
2735
  case 7:
2736
2736
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2737
- return [3 /*break*/, 11];
2737
+ return [3, 11];
2738
2738
  case 8:
2739
2739
  _f = [{}];
2740
- return [4 /*yield*/, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
2740
+ return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
2741
2741
  case 9:
2742
2742
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2743
- return [3 /*break*/, 11];
2743
+ return [3, 11];
2744
2744
  case 10:
2745
2745
  parsedBody = parsedOutput.body;
2746
2746
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -2750,7 +2750,7 @@ var deserializeAws_json1_1TagResourceCommandError = function (output, context) {
2750
2750
  message = response.message || response.Message || errorCode;
2751
2751
  response.message = message;
2752
2752
  delete response.Message;
2753
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
2753
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2754
2754
  }
2755
2755
  });
2756
2756
  }); };
@@ -2760,15 +2760,15 @@ export var deserializeAws_json1_1UndeploySystemInstanceCommand = function (outpu
2760
2760
  switch (_a.label) {
2761
2761
  case 0:
2762
2762
  if (output.statusCode >= 300) {
2763
- return [2 /*return*/, deserializeAws_json1_1UndeploySystemInstanceCommandError(output, context)];
2763
+ return [2, deserializeAws_json1_1UndeploySystemInstanceCommandError(output, context)];
2764
2764
  }
2765
- return [4 /*yield*/, parseBody(output.body, context)];
2765
+ return [4, parseBody(output.body, context)];
2766
2766
  case 1:
2767
2767
  data = _a.sent();
2768
2768
  contents = {};
2769
2769
  contents = deserializeAws_json1_1UndeploySystemInstanceResponse(data, context);
2770
2770
  response = __assign({ $metadata: deserializeMetadata(output) }, contents);
2771
- return [2 /*return*/, Promise.resolve(response)];
2771
+ return [2, Promise.resolve(response)];
2772
2772
  }
2773
2773
  });
2774
2774
  }); };
@@ -2780,55 +2780,55 @@ var deserializeAws_json1_1UndeploySystemInstanceCommandError = function (output,
2780
2780
  case 0:
2781
2781
  _a = [__assign({}, output)];
2782
2782
  _h = {};
2783
- return [4 /*yield*/, parseBody(output.body, context)];
2783
+ return [4, parseBody(output.body, context)];
2784
2784
  case 1:
2785
2785
  parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
2786
2786
  errorCode = "UnknownError";
2787
2787
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2788
2788
  _b = errorCode;
2789
2789
  switch (_b) {
2790
- case "InternalFailureException": return [3 /*break*/, 2];
2791
- case "com.amazonaws.iotthingsgraph#InternalFailureException": return [3 /*break*/, 2];
2792
- case "InvalidRequestException": return [3 /*break*/, 4];
2793
- case "com.amazonaws.iotthingsgraph#InvalidRequestException": return [3 /*break*/, 4];
2794
- case "ResourceInUseException": return [3 /*break*/, 6];
2795
- case "com.amazonaws.iotthingsgraph#ResourceInUseException": return [3 /*break*/, 6];
2796
- case "ResourceNotFoundException": return [3 /*break*/, 8];
2797
- case "com.amazonaws.iotthingsgraph#ResourceNotFoundException": return [3 /*break*/, 8];
2798
- case "ThrottlingException": return [3 /*break*/, 10];
2799
- case "com.amazonaws.iotthingsgraph#ThrottlingException": return [3 /*break*/, 10];
2800
- }
2801
- return [3 /*break*/, 12];
2790
+ case "InternalFailureException": return [3, 2];
2791
+ case "com.amazonaws.iotthingsgraph#InternalFailureException": return [3, 2];
2792
+ case "InvalidRequestException": return [3, 4];
2793
+ case "com.amazonaws.iotthingsgraph#InvalidRequestException": return [3, 4];
2794
+ case "ResourceInUseException": return [3, 6];
2795
+ case "com.amazonaws.iotthingsgraph#ResourceInUseException": return [3, 6];
2796
+ case "ResourceNotFoundException": return [3, 8];
2797
+ case "com.amazonaws.iotthingsgraph#ResourceNotFoundException": return [3, 8];
2798
+ case "ThrottlingException": return [3, 10];
2799
+ case "com.amazonaws.iotthingsgraph#ThrottlingException": return [3, 10];
2800
+ }
2801
+ return [3, 12];
2802
2802
  case 2:
2803
2803
  _c = [{}];
2804
- return [4 /*yield*/, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
2804
+ return [4, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
2805
2805
  case 3:
2806
2806
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2807
- return [3 /*break*/, 13];
2807
+ return [3, 13];
2808
2808
  case 4:
2809
2809
  _d = [{}];
2810
- return [4 /*yield*/, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
2810
+ return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
2811
2811
  case 5:
2812
2812
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2813
- return [3 /*break*/, 13];
2813
+ return [3, 13];
2814
2814
  case 6:
2815
2815
  _e = [{}];
2816
- return [4 /*yield*/, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
2816
+ return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
2817
2817
  case 7:
2818
2818
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2819
- return [3 /*break*/, 13];
2819
+ return [3, 13];
2820
2820
  case 8:
2821
2821
  _f = [{}];
2822
- return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2822
+ return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2823
2823
  case 9:
2824
2824
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2825
- return [3 /*break*/, 13];
2825
+ return [3, 13];
2826
2826
  case 10:
2827
2827
  _g = [{}];
2828
- return [4 /*yield*/, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
2828
+ return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
2829
2829
  case 11:
2830
2830
  response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2831
- return [3 /*break*/, 13];
2831
+ return [3, 13];
2832
2832
  case 12:
2833
2833
  parsedBody = parsedOutput.body;
2834
2834
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -2838,7 +2838,7 @@ var deserializeAws_json1_1UndeploySystemInstanceCommandError = function (output,
2838
2838
  message = response.message || response.Message || errorCode;
2839
2839
  response.message = message;
2840
2840
  delete response.Message;
2841
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
2841
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2842
2842
  }
2843
2843
  });
2844
2844
  }); };
@@ -2848,15 +2848,15 @@ export var deserializeAws_json1_1UntagResourceCommand = function (output, contex
2848
2848
  switch (_a.label) {
2849
2849
  case 0:
2850
2850
  if (output.statusCode >= 300) {
2851
- return [2 /*return*/, deserializeAws_json1_1UntagResourceCommandError(output, context)];
2851
+ return [2, deserializeAws_json1_1UntagResourceCommandError(output, context)];
2852
2852
  }
2853
- return [4 /*yield*/, parseBody(output.body, context)];
2853
+ return [4, parseBody(output.body, context)];
2854
2854
  case 1:
2855
2855
  data = _a.sent();
2856
2856
  contents = {};
2857
2857
  contents = deserializeAws_json1_1UntagResourceResponse(data, context);
2858
2858
  response = __assign({ $metadata: deserializeMetadata(output) }, contents);
2859
- return [2 /*return*/, Promise.resolve(response)];
2859
+ return [2, Promise.resolve(response)];
2860
2860
  }
2861
2861
  });
2862
2862
  }); };
@@ -2868,47 +2868,47 @@ var deserializeAws_json1_1UntagResourceCommandError = function (output, context)
2868
2868
  case 0:
2869
2869
  _a = [__assign({}, output)];
2870
2870
  _g = {};
2871
- return [4 /*yield*/, parseBody(output.body, context)];
2871
+ return [4, parseBody(output.body, context)];
2872
2872
  case 1:
2873
2873
  parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
2874
2874
  errorCode = "UnknownError";
2875
2875
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2876
2876
  _b = errorCode;
2877
2877
  switch (_b) {
2878
- case "InternalFailureException": return [3 /*break*/, 2];
2879
- case "com.amazonaws.iotthingsgraph#InternalFailureException": return [3 /*break*/, 2];
2880
- case "InvalidRequestException": return [3 /*break*/, 4];
2881
- case "com.amazonaws.iotthingsgraph#InvalidRequestException": return [3 /*break*/, 4];
2882
- case "ResourceAlreadyExistsException": return [3 /*break*/, 6];
2883
- case "com.amazonaws.iotthingsgraph#ResourceAlreadyExistsException": return [3 /*break*/, 6];
2884
- case "ThrottlingException": return [3 /*break*/, 8];
2885
- case "com.amazonaws.iotthingsgraph#ThrottlingException": return [3 /*break*/, 8];
2886
- }
2887
- return [3 /*break*/, 10];
2878
+ case "InternalFailureException": return [3, 2];
2879
+ case "com.amazonaws.iotthingsgraph#InternalFailureException": return [3, 2];
2880
+ case "InvalidRequestException": return [3, 4];
2881
+ case "com.amazonaws.iotthingsgraph#InvalidRequestException": return [3, 4];
2882
+ case "ResourceAlreadyExistsException": return [3, 6];
2883
+ case "com.amazonaws.iotthingsgraph#ResourceAlreadyExistsException": return [3, 6];
2884
+ case "ThrottlingException": return [3, 8];
2885
+ case "com.amazonaws.iotthingsgraph#ThrottlingException": return [3, 8];
2886
+ }
2887
+ return [3, 10];
2888
2888
  case 2:
2889
2889
  _c = [{}];
2890
- return [4 /*yield*/, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
2890
+ return [4, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
2891
2891
  case 3:
2892
2892
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2893
- return [3 /*break*/, 11];
2893
+ return [3, 11];
2894
2894
  case 4:
2895
2895
  _d = [{}];
2896
- return [4 /*yield*/, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
2896
+ return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
2897
2897
  case 5:
2898
2898
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2899
- return [3 /*break*/, 11];
2899
+ return [3, 11];
2900
2900
  case 6:
2901
2901
  _e = [{}];
2902
- return [4 /*yield*/, deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)];
2902
+ return [4, deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)];
2903
2903
  case 7:
2904
2904
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2905
- return [3 /*break*/, 11];
2905
+ return [3, 11];
2906
2906
  case 8:
2907
2907
  _f = [{}];
2908
- return [4 /*yield*/, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
2908
+ return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
2909
2909
  case 9:
2910
2910
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2911
- return [3 /*break*/, 11];
2911
+ return [3, 11];
2912
2912
  case 10:
2913
2913
  parsedBody = parsedOutput.body;
2914
2914
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -2918,7 +2918,7 @@ var deserializeAws_json1_1UntagResourceCommandError = function (output, context)
2918
2918
  message = response.message || response.Message || errorCode;
2919
2919
  response.message = message;
2920
2920
  delete response.Message;
2921
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
2921
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2922
2922
  }
2923
2923
  });
2924
2924
  }); };
@@ -2928,15 +2928,15 @@ export var deserializeAws_json1_1UpdateFlowTemplateCommand = function (output, c
2928
2928
  switch (_a.label) {
2929
2929
  case 0:
2930
2930
  if (output.statusCode >= 300) {
2931
- return [2 /*return*/, deserializeAws_json1_1UpdateFlowTemplateCommandError(output, context)];
2931
+ return [2, deserializeAws_json1_1UpdateFlowTemplateCommandError(output, context)];
2932
2932
  }
2933
- return [4 /*yield*/, parseBody(output.body, context)];
2933
+ return [4, parseBody(output.body, context)];
2934
2934
  case 1:
2935
2935
  data = _a.sent();
2936
2936
  contents = {};
2937
2937
  contents = deserializeAws_json1_1UpdateFlowTemplateResponse(data, context);
2938
2938
  response = __assign({ $metadata: deserializeMetadata(output) }, contents);
2939
- return [2 /*return*/, Promise.resolve(response)];
2939
+ return [2, Promise.resolve(response)];
2940
2940
  }
2941
2941
  });
2942
2942
  }); };
@@ -2948,47 +2948,47 @@ var deserializeAws_json1_1UpdateFlowTemplateCommandError = function (output, con
2948
2948
  case 0:
2949
2949
  _a = [__assign({}, output)];
2950
2950
  _g = {};
2951
- return [4 /*yield*/, parseBody(output.body, context)];
2951
+ return [4, parseBody(output.body, context)];
2952
2952
  case 1:
2953
2953
  parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
2954
2954
  errorCode = "UnknownError";
2955
2955
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2956
2956
  _b = errorCode;
2957
2957
  switch (_b) {
2958
- case "InternalFailureException": return [3 /*break*/, 2];
2959
- case "com.amazonaws.iotthingsgraph#InternalFailureException": return [3 /*break*/, 2];
2960
- case "InvalidRequestException": return [3 /*break*/, 4];
2961
- case "com.amazonaws.iotthingsgraph#InvalidRequestException": return [3 /*break*/, 4];
2962
- case "ResourceNotFoundException": return [3 /*break*/, 6];
2963
- case "com.amazonaws.iotthingsgraph#ResourceNotFoundException": return [3 /*break*/, 6];
2964
- case "ThrottlingException": return [3 /*break*/, 8];
2965
- case "com.amazonaws.iotthingsgraph#ThrottlingException": return [3 /*break*/, 8];
2966
- }
2967
- return [3 /*break*/, 10];
2958
+ case "InternalFailureException": return [3, 2];
2959
+ case "com.amazonaws.iotthingsgraph#InternalFailureException": return [3, 2];
2960
+ case "InvalidRequestException": return [3, 4];
2961
+ case "com.amazonaws.iotthingsgraph#InvalidRequestException": return [3, 4];
2962
+ case "ResourceNotFoundException": return [3, 6];
2963
+ case "com.amazonaws.iotthingsgraph#ResourceNotFoundException": return [3, 6];
2964
+ case "ThrottlingException": return [3, 8];
2965
+ case "com.amazonaws.iotthingsgraph#ThrottlingException": return [3, 8];
2966
+ }
2967
+ return [3, 10];
2968
2968
  case 2:
2969
2969
  _c = [{}];
2970
- return [4 /*yield*/, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
2970
+ return [4, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
2971
2971
  case 3:
2972
2972
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2973
- return [3 /*break*/, 11];
2973
+ return [3, 11];
2974
2974
  case 4:
2975
2975
  _d = [{}];
2976
- return [4 /*yield*/, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
2976
+ return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
2977
2977
  case 5:
2978
2978
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2979
- return [3 /*break*/, 11];
2979
+ return [3, 11];
2980
2980
  case 6:
2981
2981
  _e = [{}];
2982
- return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2982
+ return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2983
2983
  case 7:
2984
2984
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2985
- return [3 /*break*/, 11];
2985
+ return [3, 11];
2986
2986
  case 8:
2987
2987
  _f = [{}];
2988
- return [4 /*yield*/, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
2988
+ return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
2989
2989
  case 9:
2990
2990
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2991
- return [3 /*break*/, 11];
2991
+ return [3, 11];
2992
2992
  case 10:
2993
2993
  parsedBody = parsedOutput.body;
2994
2994
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -2998,7 +2998,7 @@ var deserializeAws_json1_1UpdateFlowTemplateCommandError = function (output, con
2998
2998
  message = response.message || response.Message || errorCode;
2999
2999
  response.message = message;
3000
3000
  delete response.Message;
3001
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
3001
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
3002
3002
  }
3003
3003
  });
3004
3004
  }); };
@@ -3008,15 +3008,15 @@ export var deserializeAws_json1_1UpdateSystemTemplateCommand = function (output,
3008
3008
  switch (_a.label) {
3009
3009
  case 0:
3010
3010
  if (output.statusCode >= 300) {
3011
- return [2 /*return*/, deserializeAws_json1_1UpdateSystemTemplateCommandError(output, context)];
3011
+ return [2, deserializeAws_json1_1UpdateSystemTemplateCommandError(output, context)];
3012
3012
  }
3013
- return [4 /*yield*/, parseBody(output.body, context)];
3013
+ return [4, parseBody(output.body, context)];
3014
3014
  case 1:
3015
3015
  data = _a.sent();
3016
3016
  contents = {};
3017
3017
  contents = deserializeAws_json1_1UpdateSystemTemplateResponse(data, context);
3018
3018
  response = __assign({ $metadata: deserializeMetadata(output) }, contents);
3019
- return [2 /*return*/, Promise.resolve(response)];
3019
+ return [2, Promise.resolve(response)];
3020
3020
  }
3021
3021
  });
3022
3022
  }); };
@@ -3028,47 +3028,47 @@ var deserializeAws_json1_1UpdateSystemTemplateCommandError = function (output, c
3028
3028
  case 0:
3029
3029
  _a = [__assign({}, output)];
3030
3030
  _g = {};
3031
- return [4 /*yield*/, parseBody(output.body, context)];
3031
+ return [4, parseBody(output.body, context)];
3032
3032
  case 1:
3033
3033
  parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
3034
3034
  errorCode = "UnknownError";
3035
3035
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3036
3036
  _b = errorCode;
3037
3037
  switch (_b) {
3038
- case "InternalFailureException": return [3 /*break*/, 2];
3039
- case "com.amazonaws.iotthingsgraph#InternalFailureException": return [3 /*break*/, 2];
3040
- case "InvalidRequestException": return [3 /*break*/, 4];
3041
- case "com.amazonaws.iotthingsgraph#InvalidRequestException": return [3 /*break*/, 4];
3042
- case "ResourceNotFoundException": return [3 /*break*/, 6];
3043
- case "com.amazonaws.iotthingsgraph#ResourceNotFoundException": return [3 /*break*/, 6];
3044
- case "ThrottlingException": return [3 /*break*/, 8];
3045
- case "com.amazonaws.iotthingsgraph#ThrottlingException": return [3 /*break*/, 8];
3046
- }
3047
- return [3 /*break*/, 10];
3038
+ case "InternalFailureException": return [3, 2];
3039
+ case "com.amazonaws.iotthingsgraph#InternalFailureException": return [3, 2];
3040
+ case "InvalidRequestException": return [3, 4];
3041
+ case "com.amazonaws.iotthingsgraph#InvalidRequestException": return [3, 4];
3042
+ case "ResourceNotFoundException": return [3, 6];
3043
+ case "com.amazonaws.iotthingsgraph#ResourceNotFoundException": return [3, 6];
3044
+ case "ThrottlingException": return [3, 8];
3045
+ case "com.amazonaws.iotthingsgraph#ThrottlingException": return [3, 8];
3046
+ }
3047
+ return [3, 10];
3048
3048
  case 2:
3049
3049
  _c = [{}];
3050
- return [4 /*yield*/, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
3050
+ return [4, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
3051
3051
  case 3:
3052
3052
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3053
- return [3 /*break*/, 11];
3053
+ return [3, 11];
3054
3054
  case 4:
3055
3055
  _d = [{}];
3056
- return [4 /*yield*/, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
3056
+ return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
3057
3057
  case 5:
3058
3058
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3059
- return [3 /*break*/, 11];
3059
+ return [3, 11];
3060
3060
  case 6:
3061
3061
  _e = [{}];
3062
- return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
3062
+ return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
3063
3063
  case 7:
3064
3064
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3065
- return [3 /*break*/, 11];
3065
+ return [3, 11];
3066
3066
  case 8:
3067
3067
  _f = [{}];
3068
- return [4 /*yield*/, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
3068
+ return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
3069
3069
  case 9:
3070
3070
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3071
- return [3 /*break*/, 11];
3071
+ return [3, 11];
3072
3072
  case 10:
3073
3073
  parsedBody = parsedOutput.body;
3074
3074
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -3078,7 +3078,7 @@ var deserializeAws_json1_1UpdateSystemTemplateCommandError = function (output, c
3078
3078
  message = response.message || response.Message || errorCode;
3079
3079
  response.message = message;
3080
3080
  delete response.Message;
3081
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
3081
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
3082
3082
  }
3083
3083
  });
3084
3084
  }); };
@@ -3088,15 +3088,15 @@ export var deserializeAws_json1_1UploadEntityDefinitionsCommand = function (outp
3088
3088
  switch (_a.label) {
3089
3089
  case 0:
3090
3090
  if (output.statusCode >= 300) {
3091
- return [2 /*return*/, deserializeAws_json1_1UploadEntityDefinitionsCommandError(output, context)];
3091
+ return [2, deserializeAws_json1_1UploadEntityDefinitionsCommandError(output, context)];
3092
3092
  }
3093
- return [4 /*yield*/, parseBody(output.body, context)];
3093
+ return [4, parseBody(output.body, context)];
3094
3094
  case 1:
3095
3095
  data = _a.sent();
3096
3096
  contents = {};
3097
3097
  contents = deserializeAws_json1_1UploadEntityDefinitionsResponse(data, context);
3098
3098
  response = __assign({ $metadata: deserializeMetadata(output) }, contents);
3099
- return [2 /*return*/, Promise.resolve(response)];
3099
+ return [2, Promise.resolve(response)];
3100
3100
  }
3101
3101
  });
3102
3102
  }); };
@@ -3108,39 +3108,39 @@ var deserializeAws_json1_1UploadEntityDefinitionsCommandError = function (output
3108
3108
  case 0:
3109
3109
  _a = [__assign({}, output)];
3110
3110
  _f = {};
3111
- return [4 /*yield*/, parseBody(output.body, context)];
3111
+ return [4, parseBody(output.body, context)];
3112
3112
  case 1:
3113
3113
  parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
3114
3114
  errorCode = "UnknownError";
3115
3115
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3116
3116
  _b = errorCode;
3117
3117
  switch (_b) {
3118
- case "InternalFailureException": return [3 /*break*/, 2];
3119
- case "com.amazonaws.iotthingsgraph#InternalFailureException": return [3 /*break*/, 2];
3120
- case "InvalidRequestException": return [3 /*break*/, 4];
3121
- case "com.amazonaws.iotthingsgraph#InvalidRequestException": return [3 /*break*/, 4];
3122
- case "ThrottlingException": return [3 /*break*/, 6];
3123
- case "com.amazonaws.iotthingsgraph#ThrottlingException": return [3 /*break*/, 6];
3124
- }
3125
- return [3 /*break*/, 8];
3118
+ case "InternalFailureException": return [3, 2];
3119
+ case "com.amazonaws.iotthingsgraph#InternalFailureException": return [3, 2];
3120
+ case "InvalidRequestException": return [3, 4];
3121
+ case "com.amazonaws.iotthingsgraph#InvalidRequestException": return [3, 4];
3122
+ case "ThrottlingException": return [3, 6];
3123
+ case "com.amazonaws.iotthingsgraph#ThrottlingException": return [3, 6];
3124
+ }
3125
+ return [3, 8];
3126
3126
  case 2:
3127
3127
  _c = [{}];
3128
- return [4 /*yield*/, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
3128
+ return [4, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
3129
3129
  case 3:
3130
3130
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3131
- return [3 /*break*/, 9];
3131
+ return [3, 9];
3132
3132
  case 4:
3133
3133
  _d = [{}];
3134
- return [4 /*yield*/, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
3134
+ return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
3135
3135
  case 5:
3136
3136
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3137
- return [3 /*break*/, 9];
3137
+ return [3, 9];
3138
3138
  case 6:
3139
3139
  _e = [{}];
3140
- return [4 /*yield*/, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
3140
+ return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
3141
3141
  case 7:
3142
3142
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3143
- return [3 /*break*/, 9];
3143
+ return [3, 9];
3144
3144
  case 8:
3145
3145
  parsedBody = parsedOutput.body;
3146
3146
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -3150,7 +3150,7 @@ var deserializeAws_json1_1UploadEntityDefinitionsCommandError = function (output
3150
3150
  message = response.message || response.Message || errorCode;
3151
3151
  response.message = message;
3152
3152
  delete response.Message;
3153
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
3153
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
3154
3154
  }
3155
3155
  });
3156
3156
  }); };
@@ -3160,7 +3160,7 @@ var deserializeAws_json1_1InternalFailureExceptionResponse = function (parsedOut
3160
3160
  body = parsedOutput.body;
3161
3161
  deserialized = deserializeAws_json1_1InternalFailureException(body, context);
3162
3162
  contents = __assign({ name: "InternalFailureException", $fault: "server", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
3163
- return [2 /*return*/, contents];
3163
+ return [2, contents];
3164
3164
  });
3165
3165
  }); };
3166
3166
  var deserializeAws_json1_1InvalidRequestExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -3169,7 +3169,7 @@ var deserializeAws_json1_1InvalidRequestExceptionResponse = function (parsedOutp
3169
3169
  body = parsedOutput.body;
3170
3170
  deserialized = deserializeAws_json1_1InvalidRequestException(body, context);
3171
3171
  contents = __assign({ name: "InvalidRequestException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
3172
- return [2 /*return*/, contents];
3172
+ return [2, contents];
3173
3173
  });
3174
3174
  }); };
3175
3175
  var deserializeAws_json1_1LimitExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -3178,7 +3178,7 @@ var deserializeAws_json1_1LimitExceededExceptionResponse = function (parsedOutpu
3178
3178
  body = parsedOutput.body;
3179
3179
  deserialized = deserializeAws_json1_1LimitExceededException(body, context);
3180
3180
  contents = __assign({ name: "LimitExceededException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
3181
- return [2 /*return*/, contents];
3181
+ return [2, contents];
3182
3182
  });
3183
3183
  }); };
3184
3184
  var deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -3187,7 +3187,7 @@ var deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse = function (par
3187
3187
  body = parsedOutput.body;
3188
3188
  deserialized = deserializeAws_json1_1ResourceAlreadyExistsException(body, context);
3189
3189
  contents = __assign({ name: "ResourceAlreadyExistsException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
3190
- return [2 /*return*/, contents];
3190
+ return [2, contents];
3191
3191
  });
3192
3192
  }); };
3193
3193
  var deserializeAws_json1_1ResourceInUseExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -3196,7 +3196,7 @@ var deserializeAws_json1_1ResourceInUseExceptionResponse = function (parsedOutpu
3196
3196
  body = parsedOutput.body;
3197
3197
  deserialized = deserializeAws_json1_1ResourceInUseException(body, context);
3198
3198
  contents = __assign({ name: "ResourceInUseException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
3199
- return [2 /*return*/, contents];
3199
+ return [2, contents];
3200
3200
  });
3201
3201
  }); };
3202
3202
  var deserializeAws_json1_1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -3205,7 +3205,7 @@ var deserializeAws_json1_1ResourceNotFoundExceptionResponse = function (parsedOu
3205
3205
  body = parsedOutput.body;
3206
3206
  deserialized = deserializeAws_json1_1ResourceNotFoundException(body, context);
3207
3207
  contents = __assign({ name: "ResourceNotFoundException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
3208
- return [2 /*return*/, contents];
3208
+ return [2, contents];
3209
3209
  });
3210
3210
  }); };
3211
3211
  var deserializeAws_json1_1ThrottlingExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -3214,7 +3214,7 @@ var deserializeAws_json1_1ThrottlingExceptionResponse = function (parsedOutput,
3214
3214
  body = parsedOutput.body;
3215
3215
  deserialized = deserializeAws_json1_1ThrottlingException(body, context);
3216
3216
  contents = __assign({ name: "ThrottlingException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
3217
- return [2 /*return*/, contents];
3217
+ return [2, contents];
3218
3218
  });
3219
3219
  }); };
3220
3220
  var serializeAws_json1_1AssociateEntityToThingRequest = function (input, context) {
@@ -4021,7 +4021,6 @@ var deserializeMetadata = function (output) {
4021
4021
  cfId: output.headers["x-amz-cf-id"],
4022
4022
  });
4023
4023
  };
4024
- // Collect low-level response body stream to Uint8Array.
4025
4024
  var collectBody = function (streamBody, context) {
4026
4025
  if (streamBody === void 0) { streamBody = new Uint8Array(); }
4027
4026
  if (streamBody instanceof Uint8Array) {
@@ -4029,7 +4028,6 @@ var collectBody = function (streamBody, context) {
4029
4028
  }
4030
4029
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
4031
4030
  };
4032
- // Encode Uint8Array data into string with utf-8.
4033
4031
  var collectBodyString = function (streamBody, context) {
4034
4032
  return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
4035
4033
  };
@@ -4037,7 +4035,7 @@ var buildHttpRpcRequest = function (context, headers, path, resolvedHostname, bo
4037
4035
  var _a, hostname, _b, protocol, port, basePath, contents;
4038
4036
  return __generator(this, function (_c) {
4039
4037
  switch (_c.label) {
4040
- case 0: return [4 /*yield*/, context.endpoint()];
4038
+ case 0: return [4, context.endpoint()];
4041
4039
  case 1:
4042
4040
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
4043
4041
  contents = {
@@ -4054,7 +4052,7 @@ var buildHttpRpcRequest = function (context, headers, path, resolvedHostname, bo
4054
4052
  if (body !== undefined) {
4055
4053
  contents.body = body;
4056
4054
  }
4057
- return [2 /*return*/, new __HttpRequest(contents)];
4055
+ return [2, new __HttpRequest(contents)];
4058
4056
  }
4059
4057
  });
4060
4058
  }); };
@@ -4066,9 +4064,6 @@ var parseBody = function (streamBody, context) {
4066
4064
  return {};
4067
4065
  });
4068
4066
  };
4069
- /**
4070
- * Load an error code for the aws.rest-json-1.1 protocol.
4071
- */
4072
4067
  var loadRestJsonErrorCode = function (output, data) {
4073
4068
  var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
4074
4069
  var sanitizeErrorCode = function (rawValue) {
@@ -4093,4 +4088,3 @@ var loadRestJsonErrorCode = function (output, data) {
4093
4088
  }
4094
4089
  return "";
4095
4090
  };
4096
- //# sourceMappingURL=Aws_json1_1.js.map