@aws-sdk/client-cloudhsm 3.31.0 → 3.35.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 (306) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/{dist/cjs → dist-cjs}/CloudHSM.js +0 -0
  3. package/dist-cjs/CloudHSM.js.map +1 -0
  4. package/{dist/cjs → dist-cjs}/CloudHSMClient.js +14 -14
  5. package/dist-cjs/CloudHSMClient.js.map +1 -0
  6. package/{dist/cjs → dist-cjs}/commands/AddTagsToResourceCommand.js +5 -5
  7. package/dist-cjs/commands/AddTagsToResourceCommand.js.map +1 -0
  8. package/{dist/cjs → dist-cjs}/commands/CreateHapgCommand.js +5 -5
  9. package/dist-cjs/commands/CreateHapgCommand.js.map +1 -0
  10. package/{dist/cjs → dist-cjs}/commands/CreateHsmCommand.js +5 -5
  11. package/dist-cjs/commands/CreateHsmCommand.js.map +1 -0
  12. package/{dist/cjs → dist-cjs}/commands/CreateLunaClientCommand.js +5 -5
  13. package/dist-cjs/commands/CreateLunaClientCommand.js.map +1 -0
  14. package/{dist/cjs → dist-cjs}/commands/DeleteHapgCommand.js +5 -5
  15. package/dist-cjs/commands/DeleteHapgCommand.js.map +1 -0
  16. package/{dist/cjs → dist-cjs}/commands/DeleteHsmCommand.js +5 -5
  17. package/dist-cjs/commands/DeleteHsmCommand.js.map +1 -0
  18. package/{dist/cjs → dist-cjs}/commands/DeleteLunaClientCommand.js +5 -5
  19. package/dist-cjs/commands/DeleteLunaClientCommand.js.map +1 -0
  20. package/{dist/cjs → dist-cjs}/commands/DescribeHapgCommand.js +5 -5
  21. package/dist-cjs/commands/DescribeHapgCommand.js.map +1 -0
  22. package/{dist/cjs → dist-cjs}/commands/DescribeHsmCommand.js +5 -5
  23. package/dist-cjs/commands/DescribeHsmCommand.js.map +1 -0
  24. package/{dist/cjs → dist-cjs}/commands/DescribeLunaClientCommand.js +5 -5
  25. package/dist-cjs/commands/DescribeLunaClientCommand.js.map +1 -0
  26. package/{dist/cjs → dist-cjs}/commands/GetConfigCommand.js +5 -5
  27. package/dist-cjs/commands/GetConfigCommand.js.map +1 -0
  28. package/{dist/cjs → dist-cjs}/commands/ListAvailableZonesCommand.js +5 -5
  29. package/dist-cjs/commands/ListAvailableZonesCommand.js.map +1 -0
  30. package/{dist/cjs → dist-cjs}/commands/ListHapgsCommand.js +5 -5
  31. package/dist-cjs/commands/ListHapgsCommand.js.map +1 -0
  32. package/{dist/cjs → dist-cjs}/commands/ListHsmsCommand.js +5 -5
  33. package/dist-cjs/commands/ListHsmsCommand.js.map +1 -0
  34. package/{dist/cjs → dist-cjs}/commands/ListLunaClientsCommand.js +5 -5
  35. package/dist-cjs/commands/ListLunaClientsCommand.js.map +1 -0
  36. package/{dist/cjs → dist-cjs}/commands/ListTagsForResourceCommand.js +5 -5
  37. package/dist-cjs/commands/ListTagsForResourceCommand.js.map +1 -0
  38. package/{dist/cjs → dist-cjs}/commands/ModifyHapgCommand.js +5 -5
  39. package/dist-cjs/commands/ModifyHapgCommand.js.map +1 -0
  40. package/{dist/cjs → dist-cjs}/commands/ModifyHsmCommand.js +5 -5
  41. package/dist-cjs/commands/ModifyHsmCommand.js.map +1 -0
  42. package/{dist/cjs → dist-cjs}/commands/ModifyLunaClientCommand.js +5 -5
  43. package/dist-cjs/commands/ModifyLunaClientCommand.js.map +1 -0
  44. package/{dist/cjs → dist-cjs}/commands/RemoveTagsFromResourceCommand.js +5 -5
  45. package/dist-cjs/commands/RemoveTagsFromResourceCommand.js.map +1 -0
  46. package/{dist/cjs → dist-cjs}/endpoints.js +1 -1
  47. package/dist-cjs/endpoints.js.map +1 -0
  48. package/dist-cjs/index.js +27 -0
  49. package/dist-cjs/index.js.map +1 -0
  50. package/{dist/cjs → dist-cjs}/models/index.js +1 -1
  51. package/{dist/cjs → dist-cjs}/models/index.js.map +1 -1
  52. package/{dist/cjs → dist-cjs}/models/models_0.js +0 -0
  53. package/dist-cjs/models/models_0.js.map +1 -0
  54. package/{dist/cjs → dist-cjs}/protocols/Aws_json1_1.js +61 -61
  55. package/dist-cjs/protocols/Aws_json1_1.js.map +1 -0
  56. package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +5 -4
  57. package/dist-cjs/runtimeConfig.browser.js.map +1 -0
  58. package/{dist/cjs → dist-cjs}/runtimeConfig.js +10 -9
  59. package/dist-cjs/runtimeConfig.js.map +1 -0
  60. package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +1 -1
  61. package/dist-cjs/runtimeConfig.native.js.map +1 -0
  62. package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -1
  63. package/dist-cjs/runtimeConfig.shared.js.map +1 -0
  64. package/{dist/es → dist-es}/CloudHSM.js +1 -14
  65. package/dist-es/CloudHSM.js.map +1 -0
  66. package/{dist/es → dist-es}/CloudHSMClient.js +2 -20
  67. package/dist-es/CloudHSMClient.js.map +1 -0
  68. package/dist-es/commands/AddTagsToResourceCommand.js +40 -0
  69. package/dist-es/commands/AddTagsToResourceCommand.js.map +1 -0
  70. package/dist-es/commands/CreateHapgCommand.js +40 -0
  71. package/dist-es/commands/CreateHapgCommand.js.map +1 -0
  72. package/dist-es/commands/CreateHsmCommand.js +40 -0
  73. package/dist-es/commands/CreateHsmCommand.js.map +1 -0
  74. package/dist-es/commands/CreateLunaClientCommand.js +40 -0
  75. package/dist-es/commands/CreateLunaClientCommand.js.map +1 -0
  76. package/dist-es/commands/DeleteHapgCommand.js +40 -0
  77. package/dist-es/commands/DeleteHapgCommand.js.map +1 -0
  78. package/dist-es/commands/DeleteHsmCommand.js +40 -0
  79. package/dist-es/commands/DeleteHsmCommand.js.map +1 -0
  80. package/dist-es/commands/DeleteLunaClientCommand.js +40 -0
  81. package/dist-es/commands/DeleteLunaClientCommand.js.map +1 -0
  82. package/dist-es/commands/DescribeHapgCommand.js +40 -0
  83. package/dist-es/commands/DescribeHapgCommand.js.map +1 -0
  84. package/dist-es/commands/DescribeHsmCommand.js +40 -0
  85. package/dist-es/commands/DescribeHsmCommand.js.map +1 -0
  86. package/dist-es/commands/DescribeLunaClientCommand.js +40 -0
  87. package/dist-es/commands/DescribeLunaClientCommand.js.map +1 -0
  88. package/dist-es/commands/GetConfigCommand.js +40 -0
  89. package/dist-es/commands/GetConfigCommand.js.map +1 -0
  90. package/dist-es/commands/ListAvailableZonesCommand.js +40 -0
  91. package/dist-es/commands/ListAvailableZonesCommand.js.map +1 -0
  92. package/dist-es/commands/ListHapgsCommand.js +40 -0
  93. package/dist-es/commands/ListHapgsCommand.js.map +1 -0
  94. package/dist-es/commands/ListHsmsCommand.js +40 -0
  95. package/dist-es/commands/ListHsmsCommand.js.map +1 -0
  96. package/dist-es/commands/ListLunaClientsCommand.js +40 -0
  97. package/dist-es/commands/ListLunaClientsCommand.js.map +1 -0
  98. package/dist-es/commands/ListTagsForResourceCommand.js +40 -0
  99. package/dist-es/commands/ListTagsForResourceCommand.js.map +1 -0
  100. package/dist-es/commands/ModifyHapgCommand.js +40 -0
  101. package/dist-es/commands/ModifyHapgCommand.js.map +1 -0
  102. package/dist-es/commands/ModifyHsmCommand.js +40 -0
  103. package/dist-es/commands/ModifyHsmCommand.js.map +1 -0
  104. package/dist-es/commands/ModifyLunaClientCommand.js +40 -0
  105. package/dist-es/commands/ModifyLunaClientCommand.js.map +1 -0
  106. package/dist-es/commands/RemoveTagsFromResourceCommand.js +40 -0
  107. package/dist-es/commands/RemoveTagsFromResourceCommand.js.map +1 -0
  108. package/{dist/es → dist-es}/endpoints.js +1 -1
  109. package/dist-es/endpoints.js.map +1 -0
  110. package/{dist/es → dist-es}/index.js +0 -0
  111. package/dist-es/index.js.map +1 -0
  112. package/{dist/es → dist-es}/models/index.js +0 -0
  113. package/dist-es/models/index.js.map +1 -0
  114. package/{dist/es → dist-es}/models/models_0.js +0 -132
  115. package/dist-es/models/models_0.js.map +1 -0
  116. package/{dist/es → dist-es}/protocols/Aws_json1_1.js +377 -382
  117. package/dist-es/protocols/Aws_json1_1.js.map +1 -0
  118. package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -4
  119. package/dist-es/runtimeConfig.browser.js.map +1 -0
  120. package/{dist/es → dist-es}/runtimeConfig.js +2 -5
  121. package/dist-es/runtimeConfig.js.map +1 -0
  122. package/{dist/es → dist-es}/runtimeConfig.native.js +0 -3
  123. package/dist-es/runtimeConfig.native.js.map +1 -0
  124. package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -4
  125. package/dist-es/runtimeConfig.shared.js.map +1 -0
  126. package/{dist/types → dist-types}/CloudHSM.d.ts +1 -1
  127. package/{dist/types → dist-types}/CloudHSMClient.d.ts +8 -8
  128. package/{dist/types → dist-types}/commands/AddTagsToResourceCommand.d.ts +2 -2
  129. package/{dist/types → dist-types}/commands/CreateHapgCommand.d.ts +2 -2
  130. package/{dist/types → dist-types}/commands/CreateHsmCommand.d.ts +2 -2
  131. package/{dist/types → dist-types}/commands/CreateLunaClientCommand.d.ts +2 -2
  132. package/{dist/types → dist-types}/commands/DeleteHapgCommand.d.ts +2 -2
  133. package/{dist/types → dist-types}/commands/DeleteHsmCommand.d.ts +2 -2
  134. package/{dist/types → dist-types}/commands/DeleteLunaClientCommand.d.ts +2 -2
  135. package/{dist/types → dist-types}/commands/DescribeHapgCommand.d.ts +2 -2
  136. package/{dist/types → dist-types}/commands/DescribeHsmCommand.d.ts +2 -2
  137. package/{dist/types → dist-types}/commands/DescribeLunaClientCommand.d.ts +2 -2
  138. package/{dist/types → dist-types}/commands/GetConfigCommand.d.ts +2 -2
  139. package/{dist/types → dist-types}/commands/ListAvailableZonesCommand.d.ts +2 -2
  140. package/{dist/types → dist-types}/commands/ListHapgsCommand.d.ts +2 -2
  141. package/{dist/types → dist-types}/commands/ListHsmsCommand.d.ts +2 -2
  142. package/{dist/types → dist-types}/commands/ListLunaClientsCommand.d.ts +2 -2
  143. package/{dist/types → dist-types}/commands/ListTagsForResourceCommand.d.ts +2 -2
  144. package/{dist/types → dist-types}/commands/ModifyHapgCommand.d.ts +2 -2
  145. package/{dist/types → dist-types}/commands/ModifyHsmCommand.d.ts +2 -2
  146. package/{dist/types → dist-types}/commands/ModifyLunaClientCommand.d.ts +2 -2
  147. package/{dist/types → dist-types}/commands/RemoveTagsFromResourceCommand.d.ts +2 -2
  148. package/{dist/types → dist-types}/endpoints.d.ts +0 -0
  149. package/{dist/types → dist-types}/index.d.ts +0 -0
  150. package/{dist/types → dist-types}/models/index.d.ts +0 -0
  151. package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
  152. package/{dist/types → dist-types}/protocols/Aws_json1_1.d.ts +2 -2
  153. package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +1 -0
  154. package/{dist/types/ts3.4 → dist-types}/runtimeConfig.d.ts +37 -36
  155. package/{dist/types/ts3.4 → dist-types}/runtimeConfig.native.d.ts +36 -35
  156. package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
  157. package/{dist/types → dist-types}/ts3.4/CloudHSM.d.ts +1 -1
  158. package/{dist/types → dist-types}/ts3.4/CloudHSMClient.d.ts +8 -8
  159. package/{dist/types → dist-types}/ts3.4/commands/AddTagsToResourceCommand.d.ts +2 -2
  160. package/{dist/types → dist-types}/ts3.4/commands/CreateHapgCommand.d.ts +2 -2
  161. package/{dist/types → dist-types}/ts3.4/commands/CreateHsmCommand.d.ts +2 -2
  162. package/{dist/types → dist-types}/ts3.4/commands/CreateLunaClientCommand.d.ts +2 -2
  163. package/{dist/types → dist-types}/ts3.4/commands/DeleteHapgCommand.d.ts +2 -2
  164. package/{dist/types → dist-types}/ts3.4/commands/DeleteHsmCommand.d.ts +2 -2
  165. package/{dist/types → dist-types}/ts3.4/commands/DeleteLunaClientCommand.d.ts +2 -2
  166. package/{dist/types → dist-types}/ts3.4/commands/DescribeHapgCommand.d.ts +2 -2
  167. package/{dist/types → dist-types}/ts3.4/commands/DescribeHsmCommand.d.ts +2 -2
  168. package/{dist/types → dist-types}/ts3.4/commands/DescribeLunaClientCommand.d.ts +2 -2
  169. package/{dist/types → dist-types}/ts3.4/commands/GetConfigCommand.d.ts +2 -2
  170. package/{dist/types → dist-types}/ts3.4/commands/ListAvailableZonesCommand.d.ts +2 -2
  171. package/{dist/types → dist-types}/ts3.4/commands/ListHapgsCommand.d.ts +2 -2
  172. package/{dist/types → dist-types}/ts3.4/commands/ListHsmsCommand.d.ts +2 -2
  173. package/{dist/types → dist-types}/ts3.4/commands/ListLunaClientsCommand.d.ts +2 -2
  174. package/{dist/types → dist-types}/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -2
  175. package/{dist/types → dist-types}/ts3.4/commands/ModifyHapgCommand.d.ts +2 -2
  176. package/{dist/types → dist-types}/ts3.4/commands/ModifyHsmCommand.d.ts +2 -2
  177. package/{dist/types → dist-types}/ts3.4/commands/ModifyLunaClientCommand.d.ts +2 -2
  178. package/{dist/types → dist-types}/ts3.4/commands/RemoveTagsFromResourceCommand.d.ts +2 -2
  179. package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
  180. package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
  181. package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
  182. package/{dist/types → dist-types}/ts3.4/models/models_0.d.ts +0 -0
  183. package/{dist/types → dist-types}/ts3.4/protocols/Aws_json1_1.d.ts +2 -2
  184. package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -0
  185. package/{dist/types → dist-types/ts3.4}/runtimeConfig.d.ts +37 -36
  186. package/{dist/types → dist-types/ts3.4}/runtimeConfig.native.d.ts +36 -35
  187. package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +0 -0
  188. package/package.json +50 -50
  189. package/{CloudHSM.ts → src/CloudHSM.ts} +2 -1
  190. package/{CloudHSMClient.ts → src/CloudHSMClient.ts} +41 -40
  191. package/{commands → src/commands}/AddTagsToResourceCommand.ts +8 -7
  192. package/{commands → src/commands}/CreateHapgCommand.ts +8 -7
  193. package/{commands → src/commands}/CreateHsmCommand.ts +5 -4
  194. package/{commands → src/commands}/CreateLunaClientCommand.ts +8 -7
  195. package/{commands → src/commands}/DeleteHapgCommand.ts +8 -7
  196. package/{commands → src/commands}/DeleteHsmCommand.ts +5 -4
  197. package/{commands → src/commands}/DeleteLunaClientCommand.ts +8 -7
  198. package/{commands → src/commands}/DescribeHapgCommand.ts +8 -7
  199. package/{commands → src/commands}/DescribeHsmCommand.ts +8 -7
  200. package/{commands → src/commands}/DescribeLunaClientCommand.ts +8 -7
  201. package/{commands → src/commands}/GetConfigCommand.ts +5 -4
  202. package/{commands → src/commands}/ListAvailableZonesCommand.ts +8 -7
  203. package/{commands → src/commands}/ListHapgsCommand.ts +5 -4
  204. package/{commands → src/commands}/ListHsmsCommand.ts +5 -4
  205. package/{commands → src/commands}/ListLunaClientsCommand.ts +8 -7
  206. package/{commands → src/commands}/ListTagsForResourceCommand.ts +8 -7
  207. package/{commands → src/commands}/ModifyHapgCommand.ts +8 -7
  208. package/{commands → src/commands}/ModifyHsmCommand.ts +5 -4
  209. package/{commands → src/commands}/ModifyLunaClientCommand.ts +8 -7
  210. package/{commands → src/commands}/RemoveTagsFromResourceCommand.ts +8 -7
  211. package/{endpoints.ts → src/endpoints.ts} +1 -1
  212. package/{index.ts → src/index.ts} +0 -0
  213. package/{models → src/models}/index.ts +0 -0
  214. package/{models → src/models}/models_0.ts +0 -0
  215. package/{protocols → src/protocols}/Aws_json1_1.ts +31 -30
  216. package/{runtimeConfig.browser.ts → src/runtimeConfig.browser.ts} +3 -2
  217. package/{runtimeConfig.native.ts → src/runtimeConfig.native.ts} +1 -0
  218. package/{runtimeConfig.shared.ts → src/runtimeConfig.shared.ts} +2 -1
  219. package/{runtimeConfig.ts → src/runtimeConfig.ts} +4 -3
  220. package/tsconfig.es.json +1 -3
  221. package/tsconfig.json +7 -7
  222. package/tsconfig.types.json +9 -0
  223. package/dist/cjs/CloudHSM.js.map +0 -1
  224. package/dist/cjs/CloudHSMClient.js.map +0 -1
  225. package/dist/cjs/commands/AddTagsToResourceCommand.js.map +0 -1
  226. package/dist/cjs/commands/CreateHapgCommand.js.map +0 -1
  227. package/dist/cjs/commands/CreateHsmCommand.js.map +0 -1
  228. package/dist/cjs/commands/CreateLunaClientCommand.js.map +0 -1
  229. package/dist/cjs/commands/DeleteHapgCommand.js.map +0 -1
  230. package/dist/cjs/commands/DeleteHsmCommand.js.map +0 -1
  231. package/dist/cjs/commands/DeleteLunaClientCommand.js.map +0 -1
  232. package/dist/cjs/commands/DescribeHapgCommand.js.map +0 -1
  233. package/dist/cjs/commands/DescribeHsmCommand.js.map +0 -1
  234. package/dist/cjs/commands/DescribeLunaClientCommand.js.map +0 -1
  235. package/dist/cjs/commands/GetConfigCommand.js.map +0 -1
  236. package/dist/cjs/commands/ListAvailableZonesCommand.js.map +0 -1
  237. package/dist/cjs/commands/ListHapgsCommand.js.map +0 -1
  238. package/dist/cjs/commands/ListHsmsCommand.js.map +0 -1
  239. package/dist/cjs/commands/ListLunaClientsCommand.js.map +0 -1
  240. package/dist/cjs/commands/ListTagsForResourceCommand.js.map +0 -1
  241. package/dist/cjs/commands/ModifyHapgCommand.js.map +0 -1
  242. package/dist/cjs/commands/ModifyHsmCommand.js.map +0 -1
  243. package/dist/cjs/commands/ModifyLunaClientCommand.js.map +0 -1
  244. package/dist/cjs/commands/RemoveTagsFromResourceCommand.js.map +0 -1
  245. package/dist/cjs/endpoints.js.map +0 -1
  246. package/dist/cjs/index.js +0 -27
  247. package/dist/cjs/index.js.map +0 -1
  248. package/dist/cjs/models/models_0.js.map +0 -1
  249. package/dist/cjs/package.json +0 -91
  250. package/dist/cjs/protocols/Aws_json1_1.js.map +0 -1
  251. package/dist/cjs/runtimeConfig.browser.js.map +0 -1
  252. package/dist/cjs/runtimeConfig.js.map +0 -1
  253. package/dist/cjs/runtimeConfig.native.js.map +0 -1
  254. package/dist/cjs/runtimeConfig.shared.js.map +0 -1
  255. package/dist/es/CloudHSM.js.map +0 -1
  256. package/dist/es/CloudHSMClient.js.map +0 -1
  257. package/dist/es/commands/AddTagsToResourceCommand.js +0 -77
  258. package/dist/es/commands/AddTagsToResourceCommand.js.map +0 -1
  259. package/dist/es/commands/CreateHapgCommand.js +0 -76
  260. package/dist/es/commands/CreateHapgCommand.js.map +0 -1
  261. package/dist/es/commands/CreateHsmCommand.js +0 -84
  262. package/dist/es/commands/CreateHsmCommand.js.map +0 -1
  263. package/dist/es/commands/CreateLunaClientCommand.js +0 -75
  264. package/dist/es/commands/CreateLunaClientCommand.js.map +0 -1
  265. package/dist/es/commands/DeleteHapgCommand.js +0 -75
  266. package/dist/es/commands/DeleteHapgCommand.js.map +0 -1
  267. package/dist/es/commands/DeleteHsmCommand.js +0 -76
  268. package/dist/es/commands/DeleteHsmCommand.js.map +0 -1
  269. package/dist/es/commands/DeleteLunaClientCommand.js +0 -75
  270. package/dist/es/commands/DeleteLunaClientCommand.js.map +0 -1
  271. package/dist/es/commands/DescribeHapgCommand.js +0 -75
  272. package/dist/es/commands/DescribeHapgCommand.js.map +0 -1
  273. package/dist/es/commands/DescribeHsmCommand.js +0 -76
  274. package/dist/es/commands/DescribeHsmCommand.js.map +0 -1
  275. package/dist/es/commands/DescribeLunaClientCommand.js +0 -75
  276. package/dist/es/commands/DescribeLunaClientCommand.js.map +0 -1
  277. package/dist/es/commands/GetConfigCommand.js +0 -76
  278. package/dist/es/commands/GetConfigCommand.js.map +0 -1
  279. package/dist/es/commands/ListAvailableZonesCommand.js +0 -75
  280. package/dist/es/commands/ListAvailableZonesCommand.js.map +0 -1
  281. package/dist/es/commands/ListHapgsCommand.js +0 -79
  282. package/dist/es/commands/ListHapgsCommand.js.map +0 -1
  283. package/dist/es/commands/ListHsmsCommand.js +0 -80
  284. package/dist/es/commands/ListHsmsCommand.js.map +0 -1
  285. package/dist/es/commands/ListLunaClientsCommand.js +0 -79
  286. package/dist/es/commands/ListLunaClientsCommand.js.map +0 -1
  287. package/dist/es/commands/ListTagsForResourceCommand.js +0 -75
  288. package/dist/es/commands/ListTagsForResourceCommand.js.map +0 -1
  289. package/dist/es/commands/ModifyHapgCommand.js +0 -75
  290. package/dist/es/commands/ModifyHapgCommand.js.map +0 -1
  291. package/dist/es/commands/ModifyHsmCommand.js +0 -81
  292. package/dist/es/commands/ModifyHsmCommand.js.map +0 -1
  293. package/dist/es/commands/ModifyLunaClientCommand.js +0 -77
  294. package/dist/es/commands/ModifyLunaClientCommand.js.map +0 -1
  295. package/dist/es/commands/RemoveTagsFromResourceCommand.js +0 -77
  296. package/dist/es/commands/RemoveTagsFromResourceCommand.js.map +0 -1
  297. package/dist/es/endpoints.js.map +0 -1
  298. package/dist/es/index.js.map +0 -1
  299. package/dist/es/models/index.js.map +0 -1
  300. package/dist/es/models/models_0.js.map +0 -1
  301. package/dist/es/package.json +0 -91
  302. package/dist/es/protocols/Aws_json1_1.js.map +0 -1
  303. package/dist/es/runtimeConfig.browser.js.map +0 -1
  304. package/dist/es/runtimeConfig.js.map +0 -1
  305. package/dist/es/runtimeConfig.native.js.map +0 -1
  306. package/dist/es/runtimeConfig.shared.js.map +0 -1
@@ -1,9 +1,3 @@
1
- import { CloudHSMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudHSMClient";
2
- import { DescribeLunaClientRequest, DescribeLunaClientResponse } from "../models/models_0";
3
- import {
4
- deserializeAws_json1_1DescribeLunaClientCommand,
5
- serializeAws_json1_1DescribeLunaClientCommand,
6
- } from "../protocols/Aws_json1_1";
7
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
8
2
  import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
9
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
@@ -11,12 +5,19 @@ import {
11
5
  FinalizeHandlerArguments,
12
6
  Handler,
13
7
  HandlerExecutionContext,
14
- MiddlewareStack,
15
8
  HttpHandlerOptions as __HttpHandlerOptions,
16
9
  MetadataBearer as __MetadataBearer,
10
+ MiddlewareStack,
17
11
  SerdeContext as __SerdeContext,
18
12
  } from "@aws-sdk/types";
19
13
 
14
+ import { CloudHSMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudHSMClient";
15
+ import { DescribeLunaClientRequest, DescribeLunaClientResponse } from "../models/models_0";
16
+ import {
17
+ deserializeAws_json1_1DescribeLunaClientCommand,
18
+ serializeAws_json1_1DescribeLunaClientCommand,
19
+ } from "../protocols/Aws_json1_1";
20
+
20
21
  export interface DescribeLunaClientCommandInput extends DescribeLunaClientRequest {}
21
22
  export interface DescribeLunaClientCommandOutput extends DescribeLunaClientResponse, __MetadataBearer {}
22
23
 
@@ -1,6 +1,3 @@
1
- import { CloudHSMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudHSMClient";
2
- import { GetConfigRequest, GetConfigResponse } from "../models/models_0";
3
- import { deserializeAws_json1_1GetConfigCommand, serializeAws_json1_1GetConfigCommand } from "../protocols/Aws_json1_1";
4
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
5
2
  import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
6
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
@@ -8,12 +5,16 @@ import {
8
5
  FinalizeHandlerArguments,
9
6
  Handler,
10
7
  HandlerExecutionContext,
11
- MiddlewareStack,
12
8
  HttpHandlerOptions as __HttpHandlerOptions,
13
9
  MetadataBearer as __MetadataBearer,
10
+ MiddlewareStack,
14
11
  SerdeContext as __SerdeContext,
15
12
  } from "@aws-sdk/types";
16
13
 
14
+ import { CloudHSMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudHSMClient";
15
+ import { GetConfigRequest, GetConfigResponse } from "../models/models_0";
16
+ import { deserializeAws_json1_1GetConfigCommand, serializeAws_json1_1GetConfigCommand } from "../protocols/Aws_json1_1";
17
+
17
18
  export interface GetConfigCommandInput extends GetConfigRequest {}
18
19
  export interface GetConfigCommandOutput extends GetConfigResponse, __MetadataBearer {}
19
20
 
@@ -1,9 +1,3 @@
1
- import { CloudHSMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudHSMClient";
2
- import { ListAvailableZonesRequest, ListAvailableZonesResponse } from "../models/models_0";
3
- import {
4
- deserializeAws_json1_1ListAvailableZonesCommand,
5
- serializeAws_json1_1ListAvailableZonesCommand,
6
- } from "../protocols/Aws_json1_1";
7
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
8
2
  import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
9
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
@@ -11,12 +5,19 @@ import {
11
5
  FinalizeHandlerArguments,
12
6
  Handler,
13
7
  HandlerExecutionContext,
14
- MiddlewareStack,
15
8
  HttpHandlerOptions as __HttpHandlerOptions,
16
9
  MetadataBearer as __MetadataBearer,
10
+ MiddlewareStack,
17
11
  SerdeContext as __SerdeContext,
18
12
  } from "@aws-sdk/types";
19
13
 
14
+ import { CloudHSMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudHSMClient";
15
+ import { ListAvailableZonesRequest, ListAvailableZonesResponse } from "../models/models_0";
16
+ import {
17
+ deserializeAws_json1_1ListAvailableZonesCommand,
18
+ serializeAws_json1_1ListAvailableZonesCommand,
19
+ } from "../protocols/Aws_json1_1";
20
+
20
21
  export interface ListAvailableZonesCommandInput extends ListAvailableZonesRequest {}
21
22
  export interface ListAvailableZonesCommandOutput extends ListAvailableZonesResponse, __MetadataBearer {}
22
23
 
@@ -1,6 +1,3 @@
1
- import { CloudHSMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudHSMClient";
2
- import { ListHapgsRequest, ListHapgsResponse } from "../models/models_0";
3
- import { deserializeAws_json1_1ListHapgsCommand, serializeAws_json1_1ListHapgsCommand } from "../protocols/Aws_json1_1";
4
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
5
2
  import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
6
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
@@ -8,12 +5,16 @@ import {
8
5
  FinalizeHandlerArguments,
9
6
  Handler,
10
7
  HandlerExecutionContext,
11
- MiddlewareStack,
12
8
  HttpHandlerOptions as __HttpHandlerOptions,
13
9
  MetadataBearer as __MetadataBearer,
10
+ MiddlewareStack,
14
11
  SerdeContext as __SerdeContext,
15
12
  } from "@aws-sdk/types";
16
13
 
14
+ import { CloudHSMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudHSMClient";
15
+ import { ListHapgsRequest, ListHapgsResponse } from "../models/models_0";
16
+ import { deserializeAws_json1_1ListHapgsCommand, serializeAws_json1_1ListHapgsCommand } from "../protocols/Aws_json1_1";
17
+
17
18
  export interface ListHapgsCommandInput extends ListHapgsRequest {}
18
19
  export interface ListHapgsCommandOutput extends ListHapgsResponse, __MetadataBearer {}
19
20
 
@@ -1,6 +1,3 @@
1
- import { CloudHSMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudHSMClient";
2
- import { ListHsmsRequest, ListHsmsResponse } from "../models/models_0";
3
- import { deserializeAws_json1_1ListHsmsCommand, serializeAws_json1_1ListHsmsCommand } from "../protocols/Aws_json1_1";
4
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
5
2
  import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
6
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
@@ -8,12 +5,16 @@ import {
8
5
  FinalizeHandlerArguments,
9
6
  Handler,
10
7
  HandlerExecutionContext,
11
- MiddlewareStack,
12
8
  HttpHandlerOptions as __HttpHandlerOptions,
13
9
  MetadataBearer as __MetadataBearer,
10
+ MiddlewareStack,
14
11
  SerdeContext as __SerdeContext,
15
12
  } from "@aws-sdk/types";
16
13
 
14
+ import { CloudHSMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudHSMClient";
15
+ import { ListHsmsRequest, ListHsmsResponse } from "../models/models_0";
16
+ import { deserializeAws_json1_1ListHsmsCommand, serializeAws_json1_1ListHsmsCommand } from "../protocols/Aws_json1_1";
17
+
17
18
  export interface ListHsmsCommandInput extends ListHsmsRequest {}
18
19
  export interface ListHsmsCommandOutput extends ListHsmsResponse, __MetadataBearer {}
19
20
 
@@ -1,9 +1,3 @@
1
- import { CloudHSMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudHSMClient";
2
- import { ListLunaClientsRequest, ListLunaClientsResponse } from "../models/models_0";
3
- import {
4
- deserializeAws_json1_1ListLunaClientsCommand,
5
- serializeAws_json1_1ListLunaClientsCommand,
6
- } from "../protocols/Aws_json1_1";
7
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
8
2
  import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
9
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
@@ -11,12 +5,19 @@ import {
11
5
  FinalizeHandlerArguments,
12
6
  Handler,
13
7
  HandlerExecutionContext,
14
- MiddlewareStack,
15
8
  HttpHandlerOptions as __HttpHandlerOptions,
16
9
  MetadataBearer as __MetadataBearer,
10
+ MiddlewareStack,
17
11
  SerdeContext as __SerdeContext,
18
12
  } from "@aws-sdk/types";
19
13
 
14
+ import { CloudHSMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudHSMClient";
15
+ import { ListLunaClientsRequest, ListLunaClientsResponse } from "../models/models_0";
16
+ import {
17
+ deserializeAws_json1_1ListLunaClientsCommand,
18
+ serializeAws_json1_1ListLunaClientsCommand,
19
+ } from "../protocols/Aws_json1_1";
20
+
20
21
  export interface ListLunaClientsCommandInput extends ListLunaClientsRequest {}
21
22
  export interface ListLunaClientsCommandOutput extends ListLunaClientsResponse, __MetadataBearer {}
22
23
 
@@ -1,9 +1,3 @@
1
- import { CloudHSMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudHSMClient";
2
- import { ListTagsForResourceRequest, ListTagsForResourceResponse } from "../models/models_0";
3
- import {
4
- deserializeAws_json1_1ListTagsForResourceCommand,
5
- serializeAws_json1_1ListTagsForResourceCommand,
6
- } from "../protocols/Aws_json1_1";
7
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
8
2
  import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
9
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
@@ -11,12 +5,19 @@ import {
11
5
  FinalizeHandlerArguments,
12
6
  Handler,
13
7
  HandlerExecutionContext,
14
- MiddlewareStack,
15
8
  HttpHandlerOptions as __HttpHandlerOptions,
16
9
  MetadataBearer as __MetadataBearer,
10
+ MiddlewareStack,
17
11
  SerdeContext as __SerdeContext,
18
12
  } from "@aws-sdk/types";
19
13
 
14
+ import { CloudHSMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudHSMClient";
15
+ import { ListTagsForResourceRequest, ListTagsForResourceResponse } from "../models/models_0";
16
+ import {
17
+ deserializeAws_json1_1ListTagsForResourceCommand,
18
+ serializeAws_json1_1ListTagsForResourceCommand,
19
+ } from "../protocols/Aws_json1_1";
20
+
20
21
  export interface ListTagsForResourceCommandInput extends ListTagsForResourceRequest {}
21
22
  export interface ListTagsForResourceCommandOutput extends ListTagsForResourceResponse, __MetadataBearer {}
22
23
 
@@ -1,9 +1,3 @@
1
- import { CloudHSMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudHSMClient";
2
- import { ModifyHapgRequest, ModifyHapgResponse } from "../models/models_0";
3
- import {
4
- deserializeAws_json1_1ModifyHapgCommand,
5
- serializeAws_json1_1ModifyHapgCommand,
6
- } from "../protocols/Aws_json1_1";
7
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
8
2
  import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
9
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
@@ -11,12 +5,19 @@ import {
11
5
  FinalizeHandlerArguments,
12
6
  Handler,
13
7
  HandlerExecutionContext,
14
- MiddlewareStack,
15
8
  HttpHandlerOptions as __HttpHandlerOptions,
16
9
  MetadataBearer as __MetadataBearer,
10
+ MiddlewareStack,
17
11
  SerdeContext as __SerdeContext,
18
12
  } from "@aws-sdk/types";
19
13
 
14
+ import { CloudHSMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudHSMClient";
15
+ import { ModifyHapgRequest, ModifyHapgResponse } from "../models/models_0";
16
+ import {
17
+ deserializeAws_json1_1ModifyHapgCommand,
18
+ serializeAws_json1_1ModifyHapgCommand,
19
+ } from "../protocols/Aws_json1_1";
20
+
20
21
  export interface ModifyHapgCommandInput extends ModifyHapgRequest {}
21
22
  export interface ModifyHapgCommandOutput extends ModifyHapgResponse, __MetadataBearer {}
22
23
 
@@ -1,6 +1,3 @@
1
- import { CloudHSMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudHSMClient";
2
- import { ModifyHsmRequest, ModifyHsmResponse } from "../models/models_0";
3
- import { deserializeAws_json1_1ModifyHsmCommand, serializeAws_json1_1ModifyHsmCommand } from "../protocols/Aws_json1_1";
4
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
5
2
  import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
6
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
@@ -8,12 +5,16 @@ import {
8
5
  FinalizeHandlerArguments,
9
6
  Handler,
10
7
  HandlerExecutionContext,
11
- MiddlewareStack,
12
8
  HttpHandlerOptions as __HttpHandlerOptions,
13
9
  MetadataBearer as __MetadataBearer,
10
+ MiddlewareStack,
14
11
  SerdeContext as __SerdeContext,
15
12
  } from "@aws-sdk/types";
16
13
 
14
+ import { CloudHSMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudHSMClient";
15
+ import { ModifyHsmRequest, ModifyHsmResponse } from "../models/models_0";
16
+ import { deserializeAws_json1_1ModifyHsmCommand, serializeAws_json1_1ModifyHsmCommand } from "../protocols/Aws_json1_1";
17
+
17
18
  export interface ModifyHsmCommandInput extends ModifyHsmRequest {}
18
19
  export interface ModifyHsmCommandOutput extends ModifyHsmResponse, __MetadataBearer {}
19
20
 
@@ -1,9 +1,3 @@
1
- import { CloudHSMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudHSMClient";
2
- import { ModifyLunaClientRequest, ModifyLunaClientResponse } from "../models/models_0";
3
- import {
4
- deserializeAws_json1_1ModifyLunaClientCommand,
5
- serializeAws_json1_1ModifyLunaClientCommand,
6
- } from "../protocols/Aws_json1_1";
7
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
8
2
  import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
9
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
@@ -11,12 +5,19 @@ import {
11
5
  FinalizeHandlerArguments,
12
6
  Handler,
13
7
  HandlerExecutionContext,
14
- MiddlewareStack,
15
8
  HttpHandlerOptions as __HttpHandlerOptions,
16
9
  MetadataBearer as __MetadataBearer,
10
+ MiddlewareStack,
17
11
  SerdeContext as __SerdeContext,
18
12
  } from "@aws-sdk/types";
19
13
 
14
+ import { CloudHSMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudHSMClient";
15
+ import { ModifyLunaClientRequest, ModifyLunaClientResponse } from "../models/models_0";
16
+ import {
17
+ deserializeAws_json1_1ModifyLunaClientCommand,
18
+ serializeAws_json1_1ModifyLunaClientCommand,
19
+ } from "../protocols/Aws_json1_1";
20
+
20
21
  export interface ModifyLunaClientCommandInput extends ModifyLunaClientRequest {}
21
22
  export interface ModifyLunaClientCommandOutput extends ModifyLunaClientResponse, __MetadataBearer {}
22
23
 
@@ -1,9 +1,3 @@
1
- import { CloudHSMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudHSMClient";
2
- import { RemoveTagsFromResourceRequest, RemoveTagsFromResourceResponse } from "../models/models_0";
3
- import {
4
- deserializeAws_json1_1RemoveTagsFromResourceCommand,
5
- serializeAws_json1_1RemoveTagsFromResourceCommand,
6
- } from "../protocols/Aws_json1_1";
7
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
8
2
  import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
9
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
@@ -11,12 +5,19 @@ import {
11
5
  FinalizeHandlerArguments,
12
6
  Handler,
13
7
  HandlerExecutionContext,
14
- MiddlewareStack,
15
8
  HttpHandlerOptions as __HttpHandlerOptions,
16
9
  MetadataBearer as __MetadataBearer,
10
+ MiddlewareStack,
17
11
  SerdeContext as __SerdeContext,
18
12
  } from "@aws-sdk/types";
19
13
 
14
+ import { CloudHSMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudHSMClient";
15
+ import { RemoveTagsFromResourceRequest, RemoveTagsFromResourceResponse } from "../models/models_0";
16
+ import {
17
+ deserializeAws_json1_1RemoveTagsFromResourceCommand,
18
+ serializeAws_json1_1RemoveTagsFromResourceCommand,
19
+ } from "../protocols/Aws_json1_1";
20
+
20
21
  export interface RemoveTagsFromResourceCommandInput extends RemoveTagsFromResourceRequest {}
21
22
  export interface RemoveTagsFromResourceCommandOutput extends RemoveTagsFromResourceResponse, __MetadataBearer {}
22
23
 
@@ -1,4 +1,4 @@
1
- import { PartitionHash, RegionHash, getRegionInfo } from "@aws-sdk/config-resolver";
1
+ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver";
2
2
  import { RegionInfoProvider } from "@aws-sdk/types";
3
3
 
4
4
  const regionHash: RegionHash = {};
File without changes
File without changes
File without changes
@@ -1,3 +1,14 @@
1
+ import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
2
+ import { expectBoolean as __expectBoolean, expectString as __expectString } from "@aws-sdk/smithy-client";
3
+ import {
4
+ Endpoint as __Endpoint,
5
+ HeaderBag as __HeaderBag,
6
+ MetadataBearer as __MetadataBearer,
7
+ ResponseMetadata as __ResponseMetadata,
8
+ SerdeContext as __SerdeContext,
9
+ SmithyException as __SmithyException,
10
+ } from "@aws-sdk/types";
11
+
1
12
  import { AddTagsToResourceCommandInput, AddTagsToResourceCommandOutput } from "../commands/AddTagsToResourceCommand";
2
13
  import { CreateHapgCommandInput, CreateHapgCommandOutput } from "../commands/CreateHapgCommand";
3
14
  import { CreateHsmCommandInput, CreateHsmCommandOutput } from "../commands/CreateHsmCommand";
@@ -70,16 +81,6 @@ import {
70
81
  RemoveTagsFromResourceResponse,
71
82
  Tag,
72
83
  } from "../models/models_0";
73
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
74
- import { expectBoolean as __expectBoolean, expectString as __expectString } from "@aws-sdk/smithy-client";
75
- import {
76
- Endpoint as __Endpoint,
77
- HeaderBag as __HeaderBag,
78
- MetadataBearer as __MetadataBearer,
79
- ResponseMetadata as __ResponseMetadata,
80
- SerdeContext as __SerdeContext,
81
- SmithyException as __SmithyException,
82
- } from "@aws-sdk/types";
83
84
 
84
85
  export const serializeAws_json1_1AddTagsToResourceCommand = async (
85
86
  input: AddTagsToResourceCommandInput,
@@ -367,7 +368,7 @@ const deserializeAws_json1_1AddTagsToResourceCommandError = async (
367
368
  body: await parseBody(output.body, context),
368
369
  };
369
370
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
370
- let errorCode: string = "UnknownError";
371
+ let errorCode = "UnknownError";
371
372
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
372
373
  switch (errorCode) {
373
374
  case "CloudHsmInternalException":
@@ -437,7 +438,7 @@ const deserializeAws_json1_1CreateHapgCommandError = async (
437
438
  body: await parseBody(output.body, context),
438
439
  };
439
440
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
440
- let errorCode: string = "UnknownError";
441
+ let errorCode = "UnknownError";
441
442
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
442
443
  switch (errorCode) {
443
444
  case "CloudHsmInternalException":
@@ -507,7 +508,7 @@ const deserializeAws_json1_1CreateHsmCommandError = async (
507
508
  body: await parseBody(output.body, context),
508
509
  };
509
510
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
510
- let errorCode: string = "UnknownError";
511
+ let errorCode = "UnknownError";
511
512
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
512
513
  switch (errorCode) {
513
514
  case "CloudHsmInternalException":
@@ -577,7 +578,7 @@ const deserializeAws_json1_1CreateLunaClientCommandError = async (
577
578
  body: await parseBody(output.body, context),
578
579
  };
579
580
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
580
- let errorCode: string = "UnknownError";
581
+ let errorCode = "UnknownError";
581
582
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
582
583
  switch (errorCode) {
583
584
  case "CloudHsmInternalException":
@@ -647,7 +648,7 @@ const deserializeAws_json1_1DeleteHapgCommandError = async (
647
648
  body: await parseBody(output.body, context),
648
649
  };
649
650
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
650
- let errorCode: string = "UnknownError";
651
+ let errorCode = "UnknownError";
651
652
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
652
653
  switch (errorCode) {
653
654
  case "CloudHsmInternalException":
@@ -717,7 +718,7 @@ const deserializeAws_json1_1DeleteHsmCommandError = async (
717
718
  body: await parseBody(output.body, context),
718
719
  };
719
720
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
720
- let errorCode: string = "UnknownError";
721
+ let errorCode = "UnknownError";
721
722
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
722
723
  switch (errorCode) {
723
724
  case "CloudHsmInternalException":
@@ -787,7 +788,7 @@ const deserializeAws_json1_1DeleteLunaClientCommandError = async (
787
788
  body: await parseBody(output.body, context),
788
789
  };
789
790
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
790
- let errorCode: string = "UnknownError";
791
+ let errorCode = "UnknownError";
791
792
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
792
793
  switch (errorCode) {
793
794
  case "CloudHsmInternalException":
@@ -857,7 +858,7 @@ const deserializeAws_json1_1DescribeHapgCommandError = async (
857
858
  body: await parseBody(output.body, context),
858
859
  };
859
860
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
860
- let errorCode: string = "UnknownError";
861
+ let errorCode = "UnknownError";
861
862
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
862
863
  switch (errorCode) {
863
864
  case "CloudHsmInternalException":
@@ -927,7 +928,7 @@ const deserializeAws_json1_1DescribeHsmCommandError = async (
927
928
  body: await parseBody(output.body, context),
928
929
  };
929
930
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
930
- let errorCode: string = "UnknownError";
931
+ let errorCode = "UnknownError";
931
932
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
932
933
  switch (errorCode) {
933
934
  case "CloudHsmInternalException":
@@ -997,7 +998,7 @@ const deserializeAws_json1_1DescribeLunaClientCommandError = async (
997
998
  body: await parseBody(output.body, context),
998
999
  };
999
1000
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
1000
- let errorCode: string = "UnknownError";
1001
+ let errorCode = "UnknownError";
1001
1002
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1002
1003
  switch (errorCode) {
1003
1004
  case "CloudHsmInternalException":
@@ -1067,7 +1068,7 @@ const deserializeAws_json1_1GetConfigCommandError = async (
1067
1068
  body: await parseBody(output.body, context),
1068
1069
  };
1069
1070
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
1070
- let errorCode: string = "UnknownError";
1071
+ let errorCode = "UnknownError";
1071
1072
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1072
1073
  switch (errorCode) {
1073
1074
  case "CloudHsmInternalException":
@@ -1137,7 +1138,7 @@ const deserializeAws_json1_1ListAvailableZonesCommandError = async (
1137
1138
  body: await parseBody(output.body, context),
1138
1139
  };
1139
1140
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
1140
- let errorCode: string = "UnknownError";
1141
+ let errorCode = "UnknownError";
1141
1142
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1142
1143
  switch (errorCode) {
1143
1144
  case "CloudHsmInternalException":
@@ -1207,7 +1208,7 @@ const deserializeAws_json1_1ListHapgsCommandError = async (
1207
1208
  body: await parseBody(output.body, context),
1208
1209
  };
1209
1210
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
1210
- let errorCode: string = "UnknownError";
1211
+ let errorCode = "UnknownError";
1211
1212
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1212
1213
  switch (errorCode) {
1213
1214
  case "CloudHsmInternalException":
@@ -1277,7 +1278,7 @@ const deserializeAws_json1_1ListHsmsCommandError = async (
1277
1278
  body: await parseBody(output.body, context),
1278
1279
  };
1279
1280
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
1280
- let errorCode: string = "UnknownError";
1281
+ let errorCode = "UnknownError";
1281
1282
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1282
1283
  switch (errorCode) {
1283
1284
  case "CloudHsmInternalException":
@@ -1347,7 +1348,7 @@ const deserializeAws_json1_1ListLunaClientsCommandError = async (
1347
1348
  body: await parseBody(output.body, context),
1348
1349
  };
1349
1350
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
1350
- let errorCode: string = "UnknownError";
1351
+ let errorCode = "UnknownError";
1351
1352
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1352
1353
  switch (errorCode) {
1353
1354
  case "CloudHsmInternalException":
@@ -1417,7 +1418,7 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (
1417
1418
  body: await parseBody(output.body, context),
1418
1419
  };
1419
1420
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
1420
- let errorCode: string = "UnknownError";
1421
+ let errorCode = "UnknownError";
1421
1422
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1422
1423
  switch (errorCode) {
1423
1424
  case "CloudHsmInternalException":
@@ -1487,7 +1488,7 @@ const deserializeAws_json1_1ModifyHapgCommandError = async (
1487
1488
  body: await parseBody(output.body, context),
1488
1489
  };
1489
1490
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
1490
- let errorCode: string = "UnknownError";
1491
+ let errorCode = "UnknownError";
1491
1492
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1492
1493
  switch (errorCode) {
1493
1494
  case "CloudHsmInternalException":
@@ -1557,7 +1558,7 @@ const deserializeAws_json1_1ModifyHsmCommandError = async (
1557
1558
  body: await parseBody(output.body, context),
1558
1559
  };
1559
1560
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
1560
- let errorCode: string = "UnknownError";
1561
+ let errorCode = "UnknownError";
1561
1562
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1562
1563
  switch (errorCode) {
1563
1564
  case "CloudHsmInternalException":
@@ -1627,7 +1628,7 @@ const deserializeAws_json1_1ModifyLunaClientCommandError = async (
1627
1628
  body: await parseBody(output.body, context),
1628
1629
  };
1629
1630
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
1630
- let errorCode: string = "UnknownError";
1631
+ let errorCode = "UnknownError";
1631
1632
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1632
1633
  switch (errorCode) {
1633
1634
  case "CloudHsmServiceException":
@@ -1681,7 +1682,7 @@ const deserializeAws_json1_1RemoveTagsFromResourceCommandError = async (
1681
1682
  body: await parseBody(output.body, context),
1682
1683
  };
1683
1684
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
1684
- let errorCode: string = "UnknownError";
1685
+ let errorCode = "UnknownError";
1685
1686
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1686
1687
  switch (errorCode) {
1687
1688
  case "CloudHsmInternalException":
@@ -1,5 +1,3 @@
1
- import packageInfo from "./package.json";
2
-
3
1
  import { Sha256 } from "@aws-crypto/sha256-browser";
4
2
  import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
5
3
  import { invalidProvider } from "@aws-sdk/invalid-dependency";
@@ -8,6 +6,9 @@ import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
8
6
  import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
9
7
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
10
8
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
9
+
10
+ // @ts-ignore: package.json will be imported from dist folders
11
+ import packageInfo from "../package.json";
11
12
  import { CloudHSMClientConfig } from "./CloudHSMClient";
12
13
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
13
14
 
@@ -1,4 +1,5 @@
1
1
  import { Sha256 } from "@aws-crypto/sha256-js";
2
+
2
3
  import { CloudHSMClientConfig } from "./CloudHSMClient";
3
4
  import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
4
5
 
@@ -1,7 +1,8 @@
1
- import { defaultRegionInfoProvider } from "./endpoints";
2
1
  import { Logger as __Logger } from "@aws-sdk/types";
3
2
  import { parseUrl } from "@aws-sdk/url-parser";
3
+
4
4
  import { CloudHSMClientConfig } from "./CloudHSMClient";
5
+ import { defaultRegionInfoProvider } from "./endpoints";
5
6
 
6
7
  /**
7
8
  * @internal
@@ -1,5 +1,3 @@
1
- import packageInfo from "./package.json";
2
-
3
1
  import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
4
2
  import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS } from "@aws-sdk/config-resolver";
5
3
  import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
@@ -7,13 +5,16 @@ import { Hash } from "@aws-sdk/hash-node";
7
5
  import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
8
6
  import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
9
7
  import { NodeHttpHandler, streamCollector } from "@aws-sdk/node-http-handler";
8
+ import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
10
9
  import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
11
10
  import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
12
11
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
13
12
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
13
+
14
+ // @ts-ignore: package.json will be imported from dist folders
15
+ import packageInfo from "../package.json";
14
16
  import { CloudHSMClientConfig } from "./CloudHSMClient";
15
17
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
16
- import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
17
18
 
18
19
  /**
19
20
  * @internal
package/tsconfig.es.json CHANGED
@@ -4,9 +4,7 @@
4
4
  "target": "es5",
5
5
  "module": "esnext",
6
6
  "moduleResolution": "node",
7
- "declaration": false,
8
- "declarationDir": null,
9
7
  "lib": ["dom", "es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"],
10
- "outDir": "dist/es"
8
+ "outDir": "dist-es"
11
9
  }
12
10
  }
package/tsconfig.json CHANGED
@@ -3,7 +3,6 @@
3
3
  "alwaysStrict": true,
4
4
  "target": "ES2018",
5
5
  "module": "commonjs",
6
- "declaration": true,
7
6
  "strict": true,
8
7
  "sourceMap": true,
9
8
  "downlevelIteration": true,
@@ -12,9 +11,9 @@
12
11
  "incremental": true,
13
12
  "resolveJsonModule": true,
14
13
  "esModuleInterop": true,
15
- "declarationDir": "./dist/types",
16
- "outDir": "dist/cjs",
17
- "useUnknownInCatchVariables": false
14
+ "rootDir": "src",
15
+ "outDir": "dist-cjs",
16
+ "removeComments": true
18
17
  },
19
18
  "typedocOptions": {
20
19
  "exclude": ["**/node_modules/**", "**/*.spec.ts", "**/protocols/*.ts", "**/e2e/*.ts", "**/endpoints.ts"],
@@ -24,10 +23,11 @@
24
23
  "ignoreCompilerErrors": true,
25
24
  "includeDeclarations": true,
26
25
  "stripInternal": true,
27
- "readme": "./README.md",
26
+ "readme": "README.md",
28
27
  "mode": "file",
29
- "out": "./docs",
28
+ "out": "docs",
30
29
  "theme": "minimal",
31
30
  "plugin": ["@aws-sdk/client-documentation-generator"]
32
- }
31
+ },
32
+ "exclude": ["test/**/*"]
33
33
  }