@aws-sdk/client-bcm-pricing-calculator 3.699.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 (271) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +504 -0
  3. package/dist-cjs/BCMPricingCalculator.js +83 -0
  4. package/dist-cjs/BCMPricingCalculatorClient.js +50 -0
  5. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
  6. package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
  7. package/dist-cjs/commands/BatchCreateBillScenarioCommitmentModificationCommand.js +26 -0
  8. package/dist-cjs/commands/BatchCreateBillScenarioUsageModificationCommand.js +26 -0
  9. package/dist-cjs/commands/BatchCreateWorkloadEstimateUsageCommand.js +26 -0
  10. package/dist-cjs/commands/BatchDeleteBillScenarioCommitmentModificationCommand.js +26 -0
  11. package/dist-cjs/commands/BatchDeleteBillScenarioUsageModificationCommand.js +26 -0
  12. package/dist-cjs/commands/BatchDeleteWorkloadEstimateUsageCommand.js +26 -0
  13. package/dist-cjs/commands/BatchUpdateBillScenarioCommitmentModificationCommand.js +26 -0
  14. package/dist-cjs/commands/BatchUpdateBillScenarioUsageModificationCommand.js +26 -0
  15. package/dist-cjs/commands/BatchUpdateWorkloadEstimateUsageCommand.js +26 -0
  16. package/dist-cjs/commands/CreateBillEstimateCommand.js +26 -0
  17. package/dist-cjs/commands/CreateBillScenarioCommand.js +26 -0
  18. package/dist-cjs/commands/CreateWorkloadEstimateCommand.js +26 -0
  19. package/dist-cjs/commands/DeleteBillEstimateCommand.js +26 -0
  20. package/dist-cjs/commands/DeleteBillScenarioCommand.js +26 -0
  21. package/dist-cjs/commands/DeleteWorkloadEstimateCommand.js +26 -0
  22. package/dist-cjs/commands/GetBillEstimateCommand.js +26 -0
  23. package/dist-cjs/commands/GetBillScenarioCommand.js +26 -0
  24. package/dist-cjs/commands/GetPreferencesCommand.js +26 -0
  25. package/dist-cjs/commands/GetWorkloadEstimateCommand.js +26 -0
  26. package/dist-cjs/commands/ListBillEstimateCommitmentsCommand.js +26 -0
  27. package/dist-cjs/commands/ListBillEstimateInputCommitmentModificationsCommand.js +26 -0
  28. package/dist-cjs/commands/ListBillEstimateInputUsageModificationsCommand.js +26 -0
  29. package/dist-cjs/commands/ListBillEstimateLineItemsCommand.js +26 -0
  30. package/dist-cjs/commands/ListBillEstimatesCommand.js +26 -0
  31. package/dist-cjs/commands/ListBillScenarioCommitmentModificationsCommand.js +26 -0
  32. package/dist-cjs/commands/ListBillScenarioUsageModificationsCommand.js +26 -0
  33. package/dist-cjs/commands/ListBillScenariosCommand.js +26 -0
  34. package/dist-cjs/commands/ListTagsForResourceCommand.js +26 -0
  35. package/dist-cjs/commands/ListWorkloadEstimateUsageCommand.js +26 -0
  36. package/dist-cjs/commands/ListWorkloadEstimatesCommand.js +26 -0
  37. package/dist-cjs/commands/TagResourceCommand.js +26 -0
  38. package/dist-cjs/commands/UntagResourceCommand.js +26 -0
  39. package/dist-cjs/commands/UpdateBillEstimateCommand.js +26 -0
  40. package/dist-cjs/commands/UpdateBillScenarioCommand.js +26 -0
  41. package/dist-cjs/commands/UpdatePreferencesCommand.js +26 -0
  42. package/dist-cjs/commands/UpdateWorkloadEstimateCommand.js +26 -0
  43. package/dist-cjs/commands/index.js +39 -0
  44. package/dist-cjs/endpoint/EndpointParameters.js +16 -0
  45. package/dist-cjs/endpoint/endpointResolver.js +18 -0
  46. package/dist-cjs/endpoint/ruleset.js +7 -0
  47. package/dist-cjs/extensionConfiguration.js +2 -0
  48. package/dist-cjs/index.js +11 -0
  49. package/dist-cjs/models/BCMPricingCalculatorServiceException.js +12 -0
  50. package/dist-cjs/models/index.js +4 -0
  51. package/dist-cjs/models/models_0.js +263 -0
  52. package/dist-cjs/pagination/Interfaces.js +2 -0
  53. package/dist-cjs/pagination/ListBillEstimateCommitmentsPaginator.js +7 -0
  54. package/dist-cjs/pagination/ListBillEstimateInputCommitmentModificationsPaginator.js +7 -0
  55. package/dist-cjs/pagination/ListBillEstimateInputUsageModificationsPaginator.js +7 -0
  56. package/dist-cjs/pagination/ListBillEstimateLineItemsPaginator.js +7 -0
  57. package/dist-cjs/pagination/ListBillEstimatesPaginator.js +7 -0
  58. package/dist-cjs/pagination/ListBillScenarioCommitmentModificationsPaginator.js +7 -0
  59. package/dist-cjs/pagination/ListBillScenarioUsageModificationsPaginator.js +7 -0
  60. package/dist-cjs/pagination/ListBillScenariosPaginator.js +7 -0
  61. package/dist-cjs/pagination/ListWorkloadEstimateUsagePaginator.js +7 -0
  62. package/dist-cjs/pagination/ListWorkloadEstimatesPaginator.js +7 -0
  63. package/dist-cjs/pagination/index.js +14 -0
  64. package/dist-cjs/protocols/Aws_json1_0.js +1761 -0
  65. package/dist-cjs/runtimeConfig.browser.js +39 -0
  66. package/dist-cjs/runtimeConfig.js +50 -0
  67. package/dist-cjs/runtimeConfig.native.js +15 -0
  68. package/dist-cjs/runtimeConfig.shared.js +34 -0
  69. package/dist-cjs/runtimeExtensions.js +25 -0
  70. package/dist-es/BCMPricingCalculator.js +79 -0
  71. package/dist-es/BCMPricingCalculatorClient.js +46 -0
  72. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  73. package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
  74. package/dist-es/commands/BatchCreateBillScenarioCommitmentModificationCommand.js +22 -0
  75. package/dist-es/commands/BatchCreateBillScenarioUsageModificationCommand.js +22 -0
  76. package/dist-es/commands/BatchCreateWorkloadEstimateUsageCommand.js +22 -0
  77. package/dist-es/commands/BatchDeleteBillScenarioCommitmentModificationCommand.js +22 -0
  78. package/dist-es/commands/BatchDeleteBillScenarioUsageModificationCommand.js +22 -0
  79. package/dist-es/commands/BatchDeleteWorkloadEstimateUsageCommand.js +22 -0
  80. package/dist-es/commands/BatchUpdateBillScenarioCommitmentModificationCommand.js +22 -0
  81. package/dist-es/commands/BatchUpdateBillScenarioUsageModificationCommand.js +22 -0
  82. package/dist-es/commands/BatchUpdateWorkloadEstimateUsageCommand.js +22 -0
  83. package/dist-es/commands/CreateBillEstimateCommand.js +22 -0
  84. package/dist-es/commands/CreateBillScenarioCommand.js +22 -0
  85. package/dist-es/commands/CreateWorkloadEstimateCommand.js +22 -0
  86. package/dist-es/commands/DeleteBillEstimateCommand.js +22 -0
  87. package/dist-es/commands/DeleteBillScenarioCommand.js +22 -0
  88. package/dist-es/commands/DeleteWorkloadEstimateCommand.js +22 -0
  89. package/dist-es/commands/GetBillEstimateCommand.js +22 -0
  90. package/dist-es/commands/GetBillScenarioCommand.js +22 -0
  91. package/dist-es/commands/GetPreferencesCommand.js +22 -0
  92. package/dist-es/commands/GetWorkloadEstimateCommand.js +22 -0
  93. package/dist-es/commands/ListBillEstimateCommitmentsCommand.js +22 -0
  94. package/dist-es/commands/ListBillEstimateInputCommitmentModificationsCommand.js +22 -0
  95. package/dist-es/commands/ListBillEstimateInputUsageModificationsCommand.js +22 -0
  96. package/dist-es/commands/ListBillEstimateLineItemsCommand.js +22 -0
  97. package/dist-es/commands/ListBillEstimatesCommand.js +22 -0
  98. package/dist-es/commands/ListBillScenarioCommitmentModificationsCommand.js +22 -0
  99. package/dist-es/commands/ListBillScenarioUsageModificationsCommand.js +22 -0
  100. package/dist-es/commands/ListBillScenariosCommand.js +22 -0
  101. package/dist-es/commands/ListTagsForResourceCommand.js +22 -0
  102. package/dist-es/commands/ListWorkloadEstimateUsageCommand.js +22 -0
  103. package/dist-es/commands/ListWorkloadEstimatesCommand.js +22 -0
  104. package/dist-es/commands/TagResourceCommand.js +22 -0
  105. package/dist-es/commands/UntagResourceCommand.js +22 -0
  106. package/dist-es/commands/UpdateBillEstimateCommand.js +22 -0
  107. package/dist-es/commands/UpdateBillScenarioCommand.js +22 -0
  108. package/dist-es/commands/UpdatePreferencesCommand.js +22 -0
  109. package/dist-es/commands/UpdateWorkloadEstimateCommand.js +22 -0
  110. package/dist-es/commands/index.js +36 -0
  111. package/dist-es/endpoint/EndpointParameters.js +12 -0
  112. package/dist-es/endpoint/endpointResolver.js +14 -0
  113. package/dist-es/endpoint/ruleset.js +4 -0
  114. package/dist-es/extensionConfiguration.js +1 -0
  115. package/dist-es/index.js +6 -0
  116. package/dist-es/models/BCMPricingCalculatorServiceException.js +8 -0
  117. package/dist-es/models/index.js +1 -0
  118. package/dist-es/models/models_0.js +252 -0
  119. package/dist-es/pagination/Interfaces.js +1 -0
  120. package/dist-es/pagination/ListBillEstimateCommitmentsPaginator.js +4 -0
  121. package/dist-es/pagination/ListBillEstimateInputCommitmentModificationsPaginator.js +4 -0
  122. package/dist-es/pagination/ListBillEstimateInputUsageModificationsPaginator.js +4 -0
  123. package/dist-es/pagination/ListBillEstimateLineItemsPaginator.js +4 -0
  124. package/dist-es/pagination/ListBillEstimatesPaginator.js +4 -0
  125. package/dist-es/pagination/ListBillScenarioCommitmentModificationsPaginator.js +4 -0
  126. package/dist-es/pagination/ListBillScenarioUsageModificationsPaginator.js +4 -0
  127. package/dist-es/pagination/ListBillScenariosPaginator.js +4 -0
  128. package/dist-es/pagination/ListWorkloadEstimateUsagePaginator.js +4 -0
  129. package/dist-es/pagination/ListWorkloadEstimatesPaginator.js +4 -0
  130. package/dist-es/pagination/index.js +11 -0
  131. package/dist-es/protocols/Aws_json1_0.js +1685 -0
  132. package/dist-es/runtimeConfig.browser.js +34 -0
  133. package/dist-es/runtimeConfig.js +45 -0
  134. package/dist-es/runtimeConfig.native.js +11 -0
  135. package/dist-es/runtimeConfig.shared.js +30 -0
  136. package/dist-es/runtimeExtensions.js +21 -0
  137. package/dist-types/BCMPricingCalculator.d.ts +278 -0
  138. package/dist-types/BCMPricingCalculatorClient.d.ts +216 -0
  139. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  140. package/dist-types/auth/httpAuthSchemeProvider.d.ts +61 -0
  141. package/dist-types/commands/BatchCreateBillScenarioCommitmentModificationCommand.d.ts +162 -0
  142. package/dist-types/commands/BatchCreateBillScenarioUsageModificationCommand.d.ts +285 -0
  143. package/dist-types/commands/BatchCreateWorkloadEstimateUsageCommand.d.ts +278 -0
  144. package/dist-types/commands/BatchDeleteBillScenarioCommitmentModificationCommand.d.ts +117 -0
  145. package/dist-types/commands/BatchDeleteBillScenarioUsageModificationCommand.d.ts +120 -0
  146. package/dist-types/commands/BatchDeleteWorkloadEstimateUsageCommand.d.ts +120 -0
  147. package/dist-types/commands/BatchUpdateBillScenarioCommitmentModificationCommand.d.ts +138 -0
  148. package/dist-types/commands/BatchUpdateBillScenarioUsageModificationCommand.d.ts +209 -0
  149. package/dist-types/commands/BatchUpdateWorkloadEstimateUsageCommand.d.ts +203 -0
  150. package/dist-types/commands/CreateBillEstimateCommand.d.ts +146 -0
  151. package/dist-types/commands/CreateBillScenarioCommand.d.ts +121 -0
  152. package/dist-types/commands/CreateWorkloadEstimateCommand.d.ts +122 -0
  153. package/dist-types/commands/DeleteBillEstimateCommand.d.ts +96 -0
  154. package/dist-types/commands/DeleteBillScenarioCommand.d.ts +96 -0
  155. package/dist-types/commands/DeleteWorkloadEstimateCommand.d.ts +96 -0
  156. package/dist-types/commands/GetBillEstimateCommand.d.ts +136 -0
  157. package/dist-types/commands/GetBillScenarioCommand.d.ts +112 -0
  158. package/dist-types/commands/GetPreferencesCommand.d.ts +101 -0
  159. package/dist-types/commands/GetWorkloadEstimateCommand.d.ts +112 -0
  160. package/dist-types/commands/ListBillEstimateCommitmentsCommand.d.ts +124 -0
  161. package/dist-types/commands/ListBillEstimateInputCommitmentModificationsCommand.d.ts +128 -0
  162. package/dist-types/commands/ListBillEstimateInputUsageModificationsCommand.d.ts +197 -0
  163. package/dist-types/commands/ListBillEstimateLineItemsCommand.d.ts +147 -0
  164. package/dist-types/commands/ListBillEstimatesCommand.d.ts +129 -0
  165. package/dist-types/commands/ListBillScenarioCommitmentModificationsCommand.d.ts +128 -0
  166. package/dist-types/commands/ListBillScenarioUsageModificationsCommand.d.ts +197 -0
  167. package/dist-types/commands/ListBillScenariosCommand.d.ts +130 -0
  168. package/dist-types/commands/ListTagsForResourceCommand.d.ts +100 -0
  169. package/dist-types/commands/ListWorkloadEstimateUsageCommand.d.ts +196 -0
  170. package/dist-types/commands/ListWorkloadEstimatesCommand.d.ts +130 -0
  171. package/dist-types/commands/TagResourceCommand.d.ts +104 -0
  172. package/dist-types/commands/UntagResourceCommand.d.ts +99 -0
  173. package/dist-types/commands/UpdateBillEstimateCommand.d.ts +143 -0
  174. package/dist-types/commands/UpdateBillScenarioCommand.d.ts +119 -0
  175. package/dist-types/commands/UpdatePreferencesCommand.d.ts +113 -0
  176. package/dist-types/commands/UpdateWorkloadEstimateCommand.d.ts +119 -0
  177. package/dist-types/commands/index.d.ts +36 -0
  178. package/dist-types/endpoint/EndpointParameters.d.ts +34 -0
  179. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  180. package/dist-types/endpoint/ruleset.d.ts +2 -0
  181. package/dist-types/extensionConfiguration.d.ts +9 -0
  182. package/dist-types/index.d.ts +25 -0
  183. package/dist-types/models/BCMPricingCalculatorServiceException.d.ts +14 -0
  184. package/dist-types/models/index.d.ts +1 -0
  185. package/dist-types/models/models_0.d.ts +4474 -0
  186. package/dist-types/pagination/Interfaces.d.ts +8 -0
  187. package/dist-types/pagination/ListBillEstimateCommitmentsPaginator.d.ts +7 -0
  188. package/dist-types/pagination/ListBillEstimateInputCommitmentModificationsPaginator.d.ts +7 -0
  189. package/dist-types/pagination/ListBillEstimateInputUsageModificationsPaginator.d.ts +7 -0
  190. package/dist-types/pagination/ListBillEstimateLineItemsPaginator.d.ts +7 -0
  191. package/dist-types/pagination/ListBillEstimatesPaginator.d.ts +7 -0
  192. package/dist-types/pagination/ListBillScenarioCommitmentModificationsPaginator.d.ts +7 -0
  193. package/dist-types/pagination/ListBillScenarioUsageModificationsPaginator.d.ts +7 -0
  194. package/dist-types/pagination/ListBillScenariosPaginator.d.ts +7 -0
  195. package/dist-types/pagination/ListWorkloadEstimateUsagePaginator.d.ts +7 -0
  196. package/dist-types/pagination/ListWorkloadEstimatesPaginator.d.ts +7 -0
  197. package/dist-types/pagination/index.d.ts +11 -0
  198. package/dist-types/protocols/Aws_json1_0.d.ts +326 -0
  199. package/dist-types/runtimeConfig.browser.d.ts +48 -0
  200. package/dist-types/runtimeConfig.d.ts +48 -0
  201. package/dist-types/runtimeConfig.native.d.ts +47 -0
  202. package/dist-types/runtimeConfig.shared.d.ts +21 -0
  203. package/dist-types/runtimeExtensions.d.ts +17 -0
  204. package/dist-types/ts3.4/BCMPricingCalculator.d.ts +684 -0
  205. package/dist-types/ts3.4/BCMPricingCalculatorClient.d.ts +337 -0
  206. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
  207. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +44 -0
  208. package/dist-types/ts3.4/commands/BatchCreateBillScenarioCommitmentModificationCommand.d.ts +51 -0
  209. package/dist-types/ts3.4/commands/BatchCreateBillScenarioUsageModificationCommand.d.ts +51 -0
  210. package/dist-types/ts3.4/commands/BatchCreateWorkloadEstimateUsageCommand.d.ts +51 -0
  211. package/dist-types/ts3.4/commands/BatchDeleteBillScenarioCommitmentModificationCommand.d.ts +51 -0
  212. package/dist-types/ts3.4/commands/BatchDeleteBillScenarioUsageModificationCommand.d.ts +51 -0
  213. package/dist-types/ts3.4/commands/BatchDeleteWorkloadEstimateUsageCommand.d.ts +51 -0
  214. package/dist-types/ts3.4/commands/BatchUpdateBillScenarioCommitmentModificationCommand.d.ts +51 -0
  215. package/dist-types/ts3.4/commands/BatchUpdateBillScenarioUsageModificationCommand.d.ts +51 -0
  216. package/dist-types/ts3.4/commands/BatchUpdateWorkloadEstimateUsageCommand.d.ts +51 -0
  217. package/dist-types/ts3.4/commands/CreateBillEstimateCommand.d.ts +51 -0
  218. package/dist-types/ts3.4/commands/CreateBillScenarioCommand.d.ts +51 -0
  219. package/dist-types/ts3.4/commands/CreateWorkloadEstimateCommand.d.ts +51 -0
  220. package/dist-types/ts3.4/commands/DeleteBillEstimateCommand.d.ts +51 -0
  221. package/dist-types/ts3.4/commands/DeleteBillScenarioCommand.d.ts +51 -0
  222. package/dist-types/ts3.4/commands/DeleteWorkloadEstimateCommand.d.ts +51 -0
  223. package/dist-types/ts3.4/commands/GetBillEstimateCommand.d.ts +50 -0
  224. package/dist-types/ts3.4/commands/GetBillScenarioCommand.d.ts +50 -0
  225. package/dist-types/ts3.4/commands/GetPreferencesCommand.d.ts +50 -0
  226. package/dist-types/ts3.4/commands/GetWorkloadEstimateCommand.d.ts +51 -0
  227. package/dist-types/ts3.4/commands/ListBillEstimateCommitmentsCommand.d.ts +51 -0
  228. package/dist-types/ts3.4/commands/ListBillEstimateInputCommitmentModificationsCommand.d.ts +51 -0
  229. package/dist-types/ts3.4/commands/ListBillEstimateInputUsageModificationsCommand.d.ts +51 -0
  230. package/dist-types/ts3.4/commands/ListBillEstimateLineItemsCommand.d.ts +51 -0
  231. package/dist-types/ts3.4/commands/ListBillEstimatesCommand.d.ts +51 -0
  232. package/dist-types/ts3.4/commands/ListBillScenarioCommitmentModificationsCommand.d.ts +51 -0
  233. package/dist-types/ts3.4/commands/ListBillScenarioUsageModificationsCommand.d.ts +51 -0
  234. package/dist-types/ts3.4/commands/ListBillScenariosCommand.d.ts +51 -0
  235. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +51 -0
  236. package/dist-types/ts3.4/commands/ListWorkloadEstimateUsageCommand.d.ts +51 -0
  237. package/dist-types/ts3.4/commands/ListWorkloadEstimatesCommand.d.ts +51 -0
  238. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +47 -0
  239. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +50 -0
  240. package/dist-types/ts3.4/commands/UpdateBillEstimateCommand.d.ts +51 -0
  241. package/dist-types/ts3.4/commands/UpdateBillScenarioCommand.d.ts +51 -0
  242. package/dist-types/ts3.4/commands/UpdatePreferencesCommand.d.ts +51 -0
  243. package/dist-types/ts3.4/commands/UpdateWorkloadEstimateCommand.d.ts +51 -0
  244. package/dist-types/ts3.4/commands/index.d.ts +36 -0
  245. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +45 -0
  246. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  247. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  248. package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
  249. package/dist-types/ts3.4/index.d.ts +9 -0
  250. package/dist-types/ts3.4/models/BCMPricingCalculatorServiceException.d.ts +9 -0
  251. package/dist-types/ts3.4/models/index.d.ts +1 -0
  252. package/dist-types/ts3.4/models/models_0.d.ts +985 -0
  253. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  254. package/dist-types/ts3.4/pagination/ListBillEstimateCommitmentsPaginator.d.ts +11 -0
  255. package/dist-types/ts3.4/pagination/ListBillEstimateInputCommitmentModificationsPaginator.d.ts +11 -0
  256. package/dist-types/ts3.4/pagination/ListBillEstimateInputUsageModificationsPaginator.d.ts +11 -0
  257. package/dist-types/ts3.4/pagination/ListBillEstimateLineItemsPaginator.d.ts +11 -0
  258. package/dist-types/ts3.4/pagination/ListBillEstimatesPaginator.d.ts +11 -0
  259. package/dist-types/ts3.4/pagination/ListBillScenarioCommitmentModificationsPaginator.d.ts +11 -0
  260. package/dist-types/ts3.4/pagination/ListBillScenarioUsageModificationsPaginator.d.ts +11 -0
  261. package/dist-types/ts3.4/pagination/ListBillScenariosPaginator.d.ts +11 -0
  262. package/dist-types/ts3.4/pagination/ListWorkloadEstimateUsagePaginator.d.ts +11 -0
  263. package/dist-types/ts3.4/pagination/ListWorkloadEstimatesPaginator.d.ts +11 -0
  264. package/dist-types/ts3.4/pagination/index.d.ts +11 -0
  265. package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +437 -0
  266. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +95 -0
  267. package/dist-types/ts3.4/runtimeConfig.d.ts +96 -0
  268. package/dist-types/ts3.4/runtimeConfig.native.d.ts +89 -0
  269. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +23 -0
  270. package/dist-types/ts3.4/runtimeExtensions.d.ts +13 -0
  271. package/package.json +103 -0
@@ -0,0 +1,1761 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.de_DeleteBillScenarioCommand = exports.de_DeleteBillEstimateCommand = exports.de_CreateWorkloadEstimateCommand = exports.de_CreateBillScenarioCommand = exports.de_CreateBillEstimateCommand = exports.de_BatchUpdateWorkloadEstimateUsageCommand = exports.de_BatchUpdateBillScenarioUsageModificationCommand = exports.de_BatchUpdateBillScenarioCommitmentModificationCommand = exports.de_BatchDeleteWorkloadEstimateUsageCommand = exports.de_BatchDeleteBillScenarioUsageModificationCommand = exports.de_BatchDeleteBillScenarioCommitmentModificationCommand = exports.de_BatchCreateWorkloadEstimateUsageCommand = exports.de_BatchCreateBillScenarioUsageModificationCommand = exports.de_BatchCreateBillScenarioCommitmentModificationCommand = exports.se_UpdateWorkloadEstimateCommand = exports.se_UpdatePreferencesCommand = exports.se_UpdateBillScenarioCommand = exports.se_UpdateBillEstimateCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_ListWorkloadEstimateUsageCommand = exports.se_ListWorkloadEstimatesCommand = exports.se_ListTagsForResourceCommand = exports.se_ListBillScenarioUsageModificationsCommand = exports.se_ListBillScenariosCommand = exports.se_ListBillScenarioCommitmentModificationsCommand = exports.se_ListBillEstimatesCommand = exports.se_ListBillEstimateLineItemsCommand = exports.se_ListBillEstimateInputUsageModificationsCommand = exports.se_ListBillEstimateInputCommitmentModificationsCommand = exports.se_ListBillEstimateCommitmentsCommand = exports.se_GetWorkloadEstimateCommand = exports.se_GetPreferencesCommand = exports.se_GetBillScenarioCommand = exports.se_GetBillEstimateCommand = exports.se_DeleteWorkloadEstimateCommand = exports.se_DeleteBillScenarioCommand = exports.se_DeleteBillEstimateCommand = exports.se_CreateWorkloadEstimateCommand = exports.se_CreateBillScenarioCommand = exports.se_CreateBillEstimateCommand = exports.se_BatchUpdateWorkloadEstimateUsageCommand = exports.se_BatchUpdateBillScenarioUsageModificationCommand = exports.se_BatchUpdateBillScenarioCommitmentModificationCommand = exports.se_BatchDeleteWorkloadEstimateUsageCommand = exports.se_BatchDeleteBillScenarioUsageModificationCommand = exports.se_BatchDeleteBillScenarioCommitmentModificationCommand = exports.se_BatchCreateWorkloadEstimateUsageCommand = exports.se_BatchCreateBillScenarioUsageModificationCommand = exports.se_BatchCreateBillScenarioCommitmentModificationCommand = void 0;
4
+ exports.de_UpdateWorkloadEstimateCommand = exports.de_UpdatePreferencesCommand = exports.de_UpdateBillScenarioCommand = exports.de_UpdateBillEstimateCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_ListWorkloadEstimateUsageCommand = exports.de_ListWorkloadEstimatesCommand = exports.de_ListTagsForResourceCommand = exports.de_ListBillScenarioUsageModificationsCommand = exports.de_ListBillScenariosCommand = exports.de_ListBillScenarioCommitmentModificationsCommand = exports.de_ListBillEstimatesCommand = exports.de_ListBillEstimateLineItemsCommand = exports.de_ListBillEstimateInputUsageModificationsCommand = exports.de_ListBillEstimateInputCommitmentModificationsCommand = exports.de_ListBillEstimateCommitmentsCommand = exports.de_GetWorkloadEstimateCommand = exports.de_GetPreferencesCommand = exports.de_GetBillScenarioCommand = exports.de_GetBillEstimateCommand = exports.de_DeleteWorkloadEstimateCommand = void 0;
5
+ const core_1 = require("@aws-sdk/core");
6
+ const protocol_http_1 = require("@smithy/protocol-http");
7
+ const smithy_client_1 = require("@smithy/smithy-client");
8
+ const uuid_1 = require("uuid");
9
+ const BCMPricingCalculatorServiceException_1 = require("../models/BCMPricingCalculatorServiceException");
10
+ const models_0_1 = require("../models/models_0");
11
+ const se_BatchCreateBillScenarioCommitmentModificationCommand = async (input, context) => {
12
+ const headers = sharedHeaders("BatchCreateBillScenarioCommitmentModification");
13
+ let body;
14
+ body = JSON.stringify(se_BatchCreateBillScenarioCommitmentModificationRequest(input, context));
15
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
16
+ };
17
+ exports.se_BatchCreateBillScenarioCommitmentModificationCommand = se_BatchCreateBillScenarioCommitmentModificationCommand;
18
+ const se_BatchCreateBillScenarioUsageModificationCommand = async (input, context) => {
19
+ const headers = sharedHeaders("BatchCreateBillScenarioUsageModification");
20
+ let body;
21
+ body = JSON.stringify(se_BatchCreateBillScenarioUsageModificationRequest(input, context));
22
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
23
+ };
24
+ exports.se_BatchCreateBillScenarioUsageModificationCommand = se_BatchCreateBillScenarioUsageModificationCommand;
25
+ const se_BatchCreateWorkloadEstimateUsageCommand = async (input, context) => {
26
+ const headers = sharedHeaders("BatchCreateWorkloadEstimateUsage");
27
+ let body;
28
+ body = JSON.stringify(se_BatchCreateWorkloadEstimateUsageRequest(input, context));
29
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
30
+ };
31
+ exports.se_BatchCreateWorkloadEstimateUsageCommand = se_BatchCreateWorkloadEstimateUsageCommand;
32
+ const se_BatchDeleteBillScenarioCommitmentModificationCommand = async (input, context) => {
33
+ const headers = sharedHeaders("BatchDeleteBillScenarioCommitmentModification");
34
+ let body;
35
+ body = JSON.stringify((0, smithy_client_1._json)(input));
36
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
37
+ };
38
+ exports.se_BatchDeleteBillScenarioCommitmentModificationCommand = se_BatchDeleteBillScenarioCommitmentModificationCommand;
39
+ const se_BatchDeleteBillScenarioUsageModificationCommand = async (input, context) => {
40
+ const headers = sharedHeaders("BatchDeleteBillScenarioUsageModification");
41
+ let body;
42
+ body = JSON.stringify((0, smithy_client_1._json)(input));
43
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
44
+ };
45
+ exports.se_BatchDeleteBillScenarioUsageModificationCommand = se_BatchDeleteBillScenarioUsageModificationCommand;
46
+ const se_BatchDeleteWorkloadEstimateUsageCommand = async (input, context) => {
47
+ const headers = sharedHeaders("BatchDeleteWorkloadEstimateUsage");
48
+ let body;
49
+ body = JSON.stringify((0, smithy_client_1._json)(input));
50
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
51
+ };
52
+ exports.se_BatchDeleteWorkloadEstimateUsageCommand = se_BatchDeleteWorkloadEstimateUsageCommand;
53
+ const se_BatchUpdateBillScenarioCommitmentModificationCommand = async (input, context) => {
54
+ const headers = sharedHeaders("BatchUpdateBillScenarioCommitmentModification");
55
+ let body;
56
+ body = JSON.stringify((0, smithy_client_1._json)(input));
57
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
58
+ };
59
+ exports.se_BatchUpdateBillScenarioCommitmentModificationCommand = se_BatchUpdateBillScenarioCommitmentModificationCommand;
60
+ const se_BatchUpdateBillScenarioUsageModificationCommand = async (input, context) => {
61
+ const headers = sharedHeaders("BatchUpdateBillScenarioUsageModification");
62
+ let body;
63
+ body = JSON.stringify(se_BatchUpdateBillScenarioUsageModificationRequest(input, context));
64
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
65
+ };
66
+ exports.se_BatchUpdateBillScenarioUsageModificationCommand = se_BatchUpdateBillScenarioUsageModificationCommand;
67
+ const se_BatchUpdateWorkloadEstimateUsageCommand = async (input, context) => {
68
+ const headers = sharedHeaders("BatchUpdateWorkloadEstimateUsage");
69
+ let body;
70
+ body = JSON.stringify(se_BatchUpdateWorkloadEstimateUsageRequest(input, context));
71
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
72
+ };
73
+ exports.se_BatchUpdateWorkloadEstimateUsageCommand = se_BatchUpdateWorkloadEstimateUsageCommand;
74
+ const se_CreateBillEstimateCommand = async (input, context) => {
75
+ const headers = sharedHeaders("CreateBillEstimate");
76
+ let body;
77
+ body = JSON.stringify(se_CreateBillEstimateRequest(input, context));
78
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
79
+ };
80
+ exports.se_CreateBillEstimateCommand = se_CreateBillEstimateCommand;
81
+ const se_CreateBillScenarioCommand = async (input, context) => {
82
+ const headers = sharedHeaders("CreateBillScenario");
83
+ let body;
84
+ body = JSON.stringify(se_CreateBillScenarioRequest(input, context));
85
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
86
+ };
87
+ exports.se_CreateBillScenarioCommand = se_CreateBillScenarioCommand;
88
+ const se_CreateWorkloadEstimateCommand = async (input, context) => {
89
+ const headers = sharedHeaders("CreateWorkloadEstimate");
90
+ let body;
91
+ body = JSON.stringify(se_CreateWorkloadEstimateRequest(input, context));
92
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
93
+ };
94
+ exports.se_CreateWorkloadEstimateCommand = se_CreateWorkloadEstimateCommand;
95
+ const se_DeleteBillEstimateCommand = async (input, context) => {
96
+ const headers = sharedHeaders("DeleteBillEstimate");
97
+ let body;
98
+ body = JSON.stringify((0, smithy_client_1._json)(input));
99
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
100
+ };
101
+ exports.se_DeleteBillEstimateCommand = se_DeleteBillEstimateCommand;
102
+ const se_DeleteBillScenarioCommand = async (input, context) => {
103
+ const headers = sharedHeaders("DeleteBillScenario");
104
+ let body;
105
+ body = JSON.stringify((0, smithy_client_1._json)(input));
106
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
107
+ };
108
+ exports.se_DeleteBillScenarioCommand = se_DeleteBillScenarioCommand;
109
+ const se_DeleteWorkloadEstimateCommand = async (input, context) => {
110
+ const headers = sharedHeaders("DeleteWorkloadEstimate");
111
+ let body;
112
+ body = JSON.stringify((0, smithy_client_1._json)(input));
113
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
114
+ };
115
+ exports.se_DeleteWorkloadEstimateCommand = se_DeleteWorkloadEstimateCommand;
116
+ const se_GetBillEstimateCommand = async (input, context) => {
117
+ const headers = sharedHeaders("GetBillEstimate");
118
+ let body;
119
+ body = JSON.stringify((0, smithy_client_1._json)(input));
120
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
121
+ };
122
+ exports.se_GetBillEstimateCommand = se_GetBillEstimateCommand;
123
+ const se_GetBillScenarioCommand = async (input, context) => {
124
+ const headers = sharedHeaders("GetBillScenario");
125
+ let body;
126
+ body = JSON.stringify((0, smithy_client_1._json)(input));
127
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
128
+ };
129
+ exports.se_GetBillScenarioCommand = se_GetBillScenarioCommand;
130
+ const se_GetPreferencesCommand = async (input, context) => {
131
+ const headers = sharedHeaders("GetPreferences");
132
+ let body;
133
+ body = JSON.stringify((0, smithy_client_1._json)(input));
134
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
135
+ };
136
+ exports.se_GetPreferencesCommand = se_GetPreferencesCommand;
137
+ const se_GetWorkloadEstimateCommand = async (input, context) => {
138
+ const headers = sharedHeaders("GetWorkloadEstimate");
139
+ let body;
140
+ body = JSON.stringify((0, smithy_client_1._json)(input));
141
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
142
+ };
143
+ exports.se_GetWorkloadEstimateCommand = se_GetWorkloadEstimateCommand;
144
+ const se_ListBillEstimateCommitmentsCommand = async (input, context) => {
145
+ const headers = sharedHeaders("ListBillEstimateCommitments");
146
+ let body;
147
+ body = JSON.stringify((0, smithy_client_1._json)(input));
148
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
149
+ };
150
+ exports.se_ListBillEstimateCommitmentsCommand = se_ListBillEstimateCommitmentsCommand;
151
+ const se_ListBillEstimateInputCommitmentModificationsCommand = async (input, context) => {
152
+ const headers = sharedHeaders("ListBillEstimateInputCommitmentModifications");
153
+ let body;
154
+ body = JSON.stringify((0, smithy_client_1._json)(input));
155
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
156
+ };
157
+ exports.se_ListBillEstimateInputCommitmentModificationsCommand = se_ListBillEstimateInputCommitmentModificationsCommand;
158
+ const se_ListBillEstimateInputUsageModificationsCommand = async (input, context) => {
159
+ const headers = sharedHeaders("ListBillEstimateInputUsageModifications");
160
+ let body;
161
+ body = JSON.stringify((0, smithy_client_1._json)(input));
162
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
163
+ };
164
+ exports.se_ListBillEstimateInputUsageModificationsCommand = se_ListBillEstimateInputUsageModificationsCommand;
165
+ const se_ListBillEstimateLineItemsCommand = async (input, context) => {
166
+ const headers = sharedHeaders("ListBillEstimateLineItems");
167
+ let body;
168
+ body = JSON.stringify((0, smithy_client_1._json)(input));
169
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
170
+ };
171
+ exports.se_ListBillEstimateLineItemsCommand = se_ListBillEstimateLineItemsCommand;
172
+ const se_ListBillEstimatesCommand = async (input, context) => {
173
+ const headers = sharedHeaders("ListBillEstimates");
174
+ let body;
175
+ body = JSON.stringify(se_ListBillEstimatesRequest(input, context));
176
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
177
+ };
178
+ exports.se_ListBillEstimatesCommand = se_ListBillEstimatesCommand;
179
+ const se_ListBillScenarioCommitmentModificationsCommand = async (input, context) => {
180
+ const headers = sharedHeaders("ListBillScenarioCommitmentModifications");
181
+ let body;
182
+ body = JSON.stringify((0, smithy_client_1._json)(input));
183
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
184
+ };
185
+ exports.se_ListBillScenarioCommitmentModificationsCommand = se_ListBillScenarioCommitmentModificationsCommand;
186
+ const se_ListBillScenariosCommand = async (input, context) => {
187
+ const headers = sharedHeaders("ListBillScenarios");
188
+ let body;
189
+ body = JSON.stringify(se_ListBillScenariosRequest(input, context));
190
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
191
+ };
192
+ exports.se_ListBillScenariosCommand = se_ListBillScenariosCommand;
193
+ const se_ListBillScenarioUsageModificationsCommand = async (input, context) => {
194
+ const headers = sharedHeaders("ListBillScenarioUsageModifications");
195
+ let body;
196
+ body = JSON.stringify((0, smithy_client_1._json)(input));
197
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
198
+ };
199
+ exports.se_ListBillScenarioUsageModificationsCommand = se_ListBillScenarioUsageModificationsCommand;
200
+ const se_ListTagsForResourceCommand = async (input, context) => {
201
+ const headers = sharedHeaders("ListTagsForResource");
202
+ let body;
203
+ body = JSON.stringify((0, smithy_client_1._json)(input));
204
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
205
+ };
206
+ exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
207
+ const se_ListWorkloadEstimatesCommand = async (input, context) => {
208
+ const headers = sharedHeaders("ListWorkloadEstimates");
209
+ let body;
210
+ body = JSON.stringify(se_ListWorkloadEstimatesRequest(input, context));
211
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
212
+ };
213
+ exports.se_ListWorkloadEstimatesCommand = se_ListWorkloadEstimatesCommand;
214
+ const se_ListWorkloadEstimateUsageCommand = async (input, context) => {
215
+ const headers = sharedHeaders("ListWorkloadEstimateUsage");
216
+ let body;
217
+ body = JSON.stringify((0, smithy_client_1._json)(input));
218
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
219
+ };
220
+ exports.se_ListWorkloadEstimateUsageCommand = se_ListWorkloadEstimateUsageCommand;
221
+ const se_TagResourceCommand = async (input, context) => {
222
+ const headers = sharedHeaders("TagResource");
223
+ let body;
224
+ body = JSON.stringify((0, smithy_client_1._json)(input));
225
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
226
+ };
227
+ exports.se_TagResourceCommand = se_TagResourceCommand;
228
+ const se_UntagResourceCommand = async (input, context) => {
229
+ const headers = sharedHeaders("UntagResource");
230
+ let body;
231
+ body = JSON.stringify((0, smithy_client_1._json)(input));
232
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
233
+ };
234
+ exports.se_UntagResourceCommand = se_UntagResourceCommand;
235
+ const se_UpdateBillEstimateCommand = async (input, context) => {
236
+ const headers = sharedHeaders("UpdateBillEstimate");
237
+ let body;
238
+ body = JSON.stringify(se_UpdateBillEstimateRequest(input, context));
239
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
240
+ };
241
+ exports.se_UpdateBillEstimateCommand = se_UpdateBillEstimateCommand;
242
+ const se_UpdateBillScenarioCommand = async (input, context) => {
243
+ const headers = sharedHeaders("UpdateBillScenario");
244
+ let body;
245
+ body = JSON.stringify(se_UpdateBillScenarioRequest(input, context));
246
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
247
+ };
248
+ exports.se_UpdateBillScenarioCommand = se_UpdateBillScenarioCommand;
249
+ const se_UpdatePreferencesCommand = async (input, context) => {
250
+ const headers = sharedHeaders("UpdatePreferences");
251
+ let body;
252
+ body = JSON.stringify((0, smithy_client_1._json)(input));
253
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
254
+ };
255
+ exports.se_UpdatePreferencesCommand = se_UpdatePreferencesCommand;
256
+ const se_UpdateWorkloadEstimateCommand = async (input, context) => {
257
+ const headers = sharedHeaders("UpdateWorkloadEstimate");
258
+ let body;
259
+ body = JSON.stringify(se_UpdateWorkloadEstimateRequest(input, context));
260
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
261
+ };
262
+ exports.se_UpdateWorkloadEstimateCommand = se_UpdateWorkloadEstimateCommand;
263
+ const de_BatchCreateBillScenarioCommitmentModificationCommand = async (output, context) => {
264
+ if (output.statusCode >= 300) {
265
+ return de_CommandError(output, context);
266
+ }
267
+ const data = await (0, core_1.parseJsonBody)(output.body, context);
268
+ let contents = {};
269
+ contents = de_BatchCreateBillScenarioCommitmentModificationResponse(data, context);
270
+ const response = {
271
+ $metadata: deserializeMetadata(output),
272
+ ...contents,
273
+ };
274
+ return response;
275
+ };
276
+ exports.de_BatchCreateBillScenarioCommitmentModificationCommand = de_BatchCreateBillScenarioCommitmentModificationCommand;
277
+ const de_BatchCreateBillScenarioUsageModificationCommand = async (output, context) => {
278
+ if (output.statusCode >= 300) {
279
+ return de_CommandError(output, context);
280
+ }
281
+ const data = await (0, core_1.parseJsonBody)(output.body, context);
282
+ let contents = {};
283
+ contents = de_BatchCreateBillScenarioUsageModificationResponse(data, context);
284
+ const response = {
285
+ $metadata: deserializeMetadata(output),
286
+ ...contents,
287
+ };
288
+ return response;
289
+ };
290
+ exports.de_BatchCreateBillScenarioUsageModificationCommand = de_BatchCreateBillScenarioUsageModificationCommand;
291
+ const de_BatchCreateWorkloadEstimateUsageCommand = async (output, context) => {
292
+ if (output.statusCode >= 300) {
293
+ return de_CommandError(output, context);
294
+ }
295
+ const data = await (0, core_1.parseJsonBody)(output.body, context);
296
+ let contents = {};
297
+ contents = de_BatchCreateWorkloadEstimateUsageResponse(data, context);
298
+ const response = {
299
+ $metadata: deserializeMetadata(output),
300
+ ...contents,
301
+ };
302
+ return response;
303
+ };
304
+ exports.de_BatchCreateWorkloadEstimateUsageCommand = de_BatchCreateWorkloadEstimateUsageCommand;
305
+ const de_BatchDeleteBillScenarioCommitmentModificationCommand = async (output, context) => {
306
+ if (output.statusCode >= 300) {
307
+ return de_CommandError(output, context);
308
+ }
309
+ const data = await (0, core_1.parseJsonBody)(output.body, context);
310
+ let contents = {};
311
+ contents = (0, smithy_client_1._json)(data);
312
+ const response = {
313
+ $metadata: deserializeMetadata(output),
314
+ ...contents,
315
+ };
316
+ return response;
317
+ };
318
+ exports.de_BatchDeleteBillScenarioCommitmentModificationCommand = de_BatchDeleteBillScenarioCommitmentModificationCommand;
319
+ const de_BatchDeleteBillScenarioUsageModificationCommand = async (output, context) => {
320
+ if (output.statusCode >= 300) {
321
+ return de_CommandError(output, context);
322
+ }
323
+ const data = await (0, core_1.parseJsonBody)(output.body, context);
324
+ let contents = {};
325
+ contents = (0, smithy_client_1._json)(data);
326
+ const response = {
327
+ $metadata: deserializeMetadata(output),
328
+ ...contents,
329
+ };
330
+ return response;
331
+ };
332
+ exports.de_BatchDeleteBillScenarioUsageModificationCommand = de_BatchDeleteBillScenarioUsageModificationCommand;
333
+ const de_BatchDeleteWorkloadEstimateUsageCommand = async (output, context) => {
334
+ if (output.statusCode >= 300) {
335
+ return de_CommandError(output, context);
336
+ }
337
+ const data = await (0, core_1.parseJsonBody)(output.body, context);
338
+ let contents = {};
339
+ contents = (0, smithy_client_1._json)(data);
340
+ const response = {
341
+ $metadata: deserializeMetadata(output),
342
+ ...contents,
343
+ };
344
+ return response;
345
+ };
346
+ exports.de_BatchDeleteWorkloadEstimateUsageCommand = de_BatchDeleteWorkloadEstimateUsageCommand;
347
+ const de_BatchUpdateBillScenarioCommitmentModificationCommand = async (output, context) => {
348
+ if (output.statusCode >= 300) {
349
+ return de_CommandError(output, context);
350
+ }
351
+ const data = await (0, core_1.parseJsonBody)(output.body, context);
352
+ let contents = {};
353
+ contents = de_BatchUpdateBillScenarioCommitmentModificationResponse(data, context);
354
+ const response = {
355
+ $metadata: deserializeMetadata(output),
356
+ ...contents,
357
+ };
358
+ return response;
359
+ };
360
+ exports.de_BatchUpdateBillScenarioCommitmentModificationCommand = de_BatchUpdateBillScenarioCommitmentModificationCommand;
361
+ const de_BatchUpdateBillScenarioUsageModificationCommand = async (output, context) => {
362
+ if (output.statusCode >= 300) {
363
+ return de_CommandError(output, context);
364
+ }
365
+ const data = await (0, core_1.parseJsonBody)(output.body, context);
366
+ let contents = {};
367
+ contents = de_BatchUpdateBillScenarioUsageModificationResponse(data, context);
368
+ const response = {
369
+ $metadata: deserializeMetadata(output),
370
+ ...contents,
371
+ };
372
+ return response;
373
+ };
374
+ exports.de_BatchUpdateBillScenarioUsageModificationCommand = de_BatchUpdateBillScenarioUsageModificationCommand;
375
+ const de_BatchUpdateWorkloadEstimateUsageCommand = async (output, context) => {
376
+ if (output.statusCode >= 300) {
377
+ return de_CommandError(output, context);
378
+ }
379
+ const data = await (0, core_1.parseJsonBody)(output.body, context);
380
+ let contents = {};
381
+ contents = de_BatchUpdateWorkloadEstimateUsageResponse(data, context);
382
+ const response = {
383
+ $metadata: deserializeMetadata(output),
384
+ ...contents,
385
+ };
386
+ return response;
387
+ };
388
+ exports.de_BatchUpdateWorkloadEstimateUsageCommand = de_BatchUpdateWorkloadEstimateUsageCommand;
389
+ const de_CreateBillEstimateCommand = async (output, context) => {
390
+ if (output.statusCode >= 300) {
391
+ return de_CommandError(output, context);
392
+ }
393
+ const data = await (0, core_1.parseJsonBody)(output.body, context);
394
+ let contents = {};
395
+ contents = de_CreateBillEstimateResponse(data, context);
396
+ const response = {
397
+ $metadata: deserializeMetadata(output),
398
+ ...contents,
399
+ };
400
+ return response;
401
+ };
402
+ exports.de_CreateBillEstimateCommand = de_CreateBillEstimateCommand;
403
+ const de_CreateBillScenarioCommand = async (output, context) => {
404
+ if (output.statusCode >= 300) {
405
+ return de_CommandError(output, context);
406
+ }
407
+ const data = await (0, core_1.parseJsonBody)(output.body, context);
408
+ let contents = {};
409
+ contents = de_CreateBillScenarioResponse(data, context);
410
+ const response = {
411
+ $metadata: deserializeMetadata(output),
412
+ ...contents,
413
+ };
414
+ return response;
415
+ };
416
+ exports.de_CreateBillScenarioCommand = de_CreateBillScenarioCommand;
417
+ const de_CreateWorkloadEstimateCommand = async (output, context) => {
418
+ if (output.statusCode >= 300) {
419
+ return de_CommandError(output, context);
420
+ }
421
+ const data = await (0, core_1.parseJsonBody)(output.body, context);
422
+ let contents = {};
423
+ contents = de_CreateWorkloadEstimateResponse(data, context);
424
+ const response = {
425
+ $metadata: deserializeMetadata(output),
426
+ ...contents,
427
+ };
428
+ return response;
429
+ };
430
+ exports.de_CreateWorkloadEstimateCommand = de_CreateWorkloadEstimateCommand;
431
+ const de_DeleteBillEstimateCommand = async (output, context) => {
432
+ if (output.statusCode >= 300) {
433
+ return de_CommandError(output, context);
434
+ }
435
+ const data = await (0, core_1.parseJsonBody)(output.body, context);
436
+ let contents = {};
437
+ contents = (0, smithy_client_1._json)(data);
438
+ const response = {
439
+ $metadata: deserializeMetadata(output),
440
+ ...contents,
441
+ };
442
+ return response;
443
+ };
444
+ exports.de_DeleteBillEstimateCommand = de_DeleteBillEstimateCommand;
445
+ const de_DeleteBillScenarioCommand = async (output, context) => {
446
+ if (output.statusCode >= 300) {
447
+ return de_CommandError(output, context);
448
+ }
449
+ const data = await (0, core_1.parseJsonBody)(output.body, context);
450
+ let contents = {};
451
+ contents = (0, smithy_client_1._json)(data);
452
+ const response = {
453
+ $metadata: deserializeMetadata(output),
454
+ ...contents,
455
+ };
456
+ return response;
457
+ };
458
+ exports.de_DeleteBillScenarioCommand = de_DeleteBillScenarioCommand;
459
+ const de_DeleteWorkloadEstimateCommand = async (output, context) => {
460
+ if (output.statusCode >= 300) {
461
+ return de_CommandError(output, context);
462
+ }
463
+ const data = await (0, core_1.parseJsonBody)(output.body, context);
464
+ let contents = {};
465
+ contents = (0, smithy_client_1._json)(data);
466
+ const response = {
467
+ $metadata: deserializeMetadata(output),
468
+ ...contents,
469
+ };
470
+ return response;
471
+ };
472
+ exports.de_DeleteWorkloadEstimateCommand = de_DeleteWorkloadEstimateCommand;
473
+ const de_GetBillEstimateCommand = async (output, context) => {
474
+ if (output.statusCode >= 300) {
475
+ return de_CommandError(output, context);
476
+ }
477
+ const data = await (0, core_1.parseJsonBody)(output.body, context);
478
+ let contents = {};
479
+ contents = de_GetBillEstimateResponse(data, context);
480
+ const response = {
481
+ $metadata: deserializeMetadata(output),
482
+ ...contents,
483
+ };
484
+ return response;
485
+ };
486
+ exports.de_GetBillEstimateCommand = de_GetBillEstimateCommand;
487
+ const de_GetBillScenarioCommand = async (output, context) => {
488
+ if (output.statusCode >= 300) {
489
+ return de_CommandError(output, context);
490
+ }
491
+ const data = await (0, core_1.parseJsonBody)(output.body, context);
492
+ let contents = {};
493
+ contents = de_GetBillScenarioResponse(data, context);
494
+ const response = {
495
+ $metadata: deserializeMetadata(output),
496
+ ...contents,
497
+ };
498
+ return response;
499
+ };
500
+ exports.de_GetBillScenarioCommand = de_GetBillScenarioCommand;
501
+ const de_GetPreferencesCommand = async (output, context) => {
502
+ if (output.statusCode >= 300) {
503
+ return de_CommandError(output, context);
504
+ }
505
+ const data = await (0, core_1.parseJsonBody)(output.body, context);
506
+ let contents = {};
507
+ contents = (0, smithy_client_1._json)(data);
508
+ const response = {
509
+ $metadata: deserializeMetadata(output),
510
+ ...contents,
511
+ };
512
+ return response;
513
+ };
514
+ exports.de_GetPreferencesCommand = de_GetPreferencesCommand;
515
+ const de_GetWorkloadEstimateCommand = async (output, context) => {
516
+ if (output.statusCode >= 300) {
517
+ return de_CommandError(output, context);
518
+ }
519
+ const data = await (0, core_1.parseJsonBody)(output.body, context);
520
+ let contents = {};
521
+ contents = de_GetWorkloadEstimateResponse(data, context);
522
+ const response = {
523
+ $metadata: deserializeMetadata(output),
524
+ ...contents,
525
+ };
526
+ return response;
527
+ };
528
+ exports.de_GetWorkloadEstimateCommand = de_GetWorkloadEstimateCommand;
529
+ const de_ListBillEstimateCommitmentsCommand = async (output, context) => {
530
+ if (output.statusCode >= 300) {
531
+ return de_CommandError(output, context);
532
+ }
533
+ const data = await (0, core_1.parseJsonBody)(output.body, context);
534
+ let contents = {};
535
+ contents = de_ListBillEstimateCommitmentsResponse(data, context);
536
+ const response = {
537
+ $metadata: deserializeMetadata(output),
538
+ ...contents,
539
+ };
540
+ return response;
541
+ };
542
+ exports.de_ListBillEstimateCommitmentsCommand = de_ListBillEstimateCommitmentsCommand;
543
+ const de_ListBillEstimateInputCommitmentModificationsCommand = async (output, context) => {
544
+ if (output.statusCode >= 300) {
545
+ return de_CommandError(output, context);
546
+ }
547
+ const data = await (0, core_1.parseJsonBody)(output.body, context);
548
+ let contents = {};
549
+ contents = de_ListBillEstimateInputCommitmentModificationsResponse(data, context);
550
+ const response = {
551
+ $metadata: deserializeMetadata(output),
552
+ ...contents,
553
+ };
554
+ return response;
555
+ };
556
+ exports.de_ListBillEstimateInputCommitmentModificationsCommand = de_ListBillEstimateInputCommitmentModificationsCommand;
557
+ const de_ListBillEstimateInputUsageModificationsCommand = async (output, context) => {
558
+ if (output.statusCode >= 300) {
559
+ return de_CommandError(output, context);
560
+ }
561
+ const data = await (0, core_1.parseJsonBody)(output.body, context);
562
+ let contents = {};
563
+ contents = de_ListBillEstimateInputUsageModificationsResponse(data, context);
564
+ const response = {
565
+ $metadata: deserializeMetadata(output),
566
+ ...contents,
567
+ };
568
+ return response;
569
+ };
570
+ exports.de_ListBillEstimateInputUsageModificationsCommand = de_ListBillEstimateInputUsageModificationsCommand;
571
+ const de_ListBillEstimateLineItemsCommand = async (output, context) => {
572
+ if (output.statusCode >= 300) {
573
+ return de_CommandError(output, context);
574
+ }
575
+ const data = await (0, core_1.parseJsonBody)(output.body, context);
576
+ let contents = {};
577
+ contents = de_ListBillEstimateLineItemsResponse(data, context);
578
+ const response = {
579
+ $metadata: deserializeMetadata(output),
580
+ ...contents,
581
+ };
582
+ return response;
583
+ };
584
+ exports.de_ListBillEstimateLineItemsCommand = de_ListBillEstimateLineItemsCommand;
585
+ const de_ListBillEstimatesCommand = async (output, context) => {
586
+ if (output.statusCode >= 300) {
587
+ return de_CommandError(output, context);
588
+ }
589
+ const data = await (0, core_1.parseJsonBody)(output.body, context);
590
+ let contents = {};
591
+ contents = de_ListBillEstimatesResponse(data, context);
592
+ const response = {
593
+ $metadata: deserializeMetadata(output),
594
+ ...contents,
595
+ };
596
+ return response;
597
+ };
598
+ exports.de_ListBillEstimatesCommand = de_ListBillEstimatesCommand;
599
+ const de_ListBillScenarioCommitmentModificationsCommand = async (output, context) => {
600
+ if (output.statusCode >= 300) {
601
+ return de_CommandError(output, context);
602
+ }
603
+ const data = await (0, core_1.parseJsonBody)(output.body, context);
604
+ let contents = {};
605
+ contents = de_ListBillScenarioCommitmentModificationsResponse(data, context);
606
+ const response = {
607
+ $metadata: deserializeMetadata(output),
608
+ ...contents,
609
+ };
610
+ return response;
611
+ };
612
+ exports.de_ListBillScenarioCommitmentModificationsCommand = de_ListBillScenarioCommitmentModificationsCommand;
613
+ const de_ListBillScenariosCommand = async (output, context) => {
614
+ if (output.statusCode >= 300) {
615
+ return de_CommandError(output, context);
616
+ }
617
+ const data = await (0, core_1.parseJsonBody)(output.body, context);
618
+ let contents = {};
619
+ contents = de_ListBillScenariosResponse(data, context);
620
+ const response = {
621
+ $metadata: deserializeMetadata(output),
622
+ ...contents,
623
+ };
624
+ return response;
625
+ };
626
+ exports.de_ListBillScenariosCommand = de_ListBillScenariosCommand;
627
+ const de_ListBillScenarioUsageModificationsCommand = async (output, context) => {
628
+ if (output.statusCode >= 300) {
629
+ return de_CommandError(output, context);
630
+ }
631
+ const data = await (0, core_1.parseJsonBody)(output.body, context);
632
+ let contents = {};
633
+ contents = de_ListBillScenarioUsageModificationsResponse(data, context);
634
+ const response = {
635
+ $metadata: deserializeMetadata(output),
636
+ ...contents,
637
+ };
638
+ return response;
639
+ };
640
+ exports.de_ListBillScenarioUsageModificationsCommand = de_ListBillScenarioUsageModificationsCommand;
641
+ const de_ListTagsForResourceCommand = async (output, context) => {
642
+ if (output.statusCode >= 300) {
643
+ return de_CommandError(output, context);
644
+ }
645
+ const data = await (0, core_1.parseJsonBody)(output.body, context);
646
+ let contents = {};
647
+ contents = (0, smithy_client_1._json)(data);
648
+ const response = {
649
+ $metadata: deserializeMetadata(output),
650
+ ...contents,
651
+ };
652
+ return response;
653
+ };
654
+ exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
655
+ const de_ListWorkloadEstimatesCommand = async (output, context) => {
656
+ if (output.statusCode >= 300) {
657
+ return de_CommandError(output, context);
658
+ }
659
+ const data = await (0, core_1.parseJsonBody)(output.body, context);
660
+ let contents = {};
661
+ contents = de_ListWorkloadEstimatesResponse(data, context);
662
+ const response = {
663
+ $metadata: deserializeMetadata(output),
664
+ ...contents,
665
+ };
666
+ return response;
667
+ };
668
+ exports.de_ListWorkloadEstimatesCommand = de_ListWorkloadEstimatesCommand;
669
+ const de_ListWorkloadEstimateUsageCommand = async (output, context) => {
670
+ if (output.statusCode >= 300) {
671
+ return de_CommandError(output, context);
672
+ }
673
+ const data = await (0, core_1.parseJsonBody)(output.body, context);
674
+ let contents = {};
675
+ contents = de_ListWorkloadEstimateUsageResponse(data, context);
676
+ const response = {
677
+ $metadata: deserializeMetadata(output),
678
+ ...contents,
679
+ };
680
+ return response;
681
+ };
682
+ exports.de_ListWorkloadEstimateUsageCommand = de_ListWorkloadEstimateUsageCommand;
683
+ const de_TagResourceCommand = async (output, context) => {
684
+ if (output.statusCode >= 300) {
685
+ return de_CommandError(output, context);
686
+ }
687
+ const data = await (0, core_1.parseJsonBody)(output.body, context);
688
+ let contents = {};
689
+ contents = (0, smithy_client_1._json)(data);
690
+ const response = {
691
+ $metadata: deserializeMetadata(output),
692
+ ...contents,
693
+ };
694
+ return response;
695
+ };
696
+ exports.de_TagResourceCommand = de_TagResourceCommand;
697
+ const de_UntagResourceCommand = async (output, context) => {
698
+ if (output.statusCode >= 300) {
699
+ return de_CommandError(output, context);
700
+ }
701
+ const data = await (0, core_1.parseJsonBody)(output.body, context);
702
+ let contents = {};
703
+ contents = (0, smithy_client_1._json)(data);
704
+ const response = {
705
+ $metadata: deserializeMetadata(output),
706
+ ...contents,
707
+ };
708
+ return response;
709
+ };
710
+ exports.de_UntagResourceCommand = de_UntagResourceCommand;
711
+ const de_UpdateBillEstimateCommand = async (output, context) => {
712
+ if (output.statusCode >= 300) {
713
+ return de_CommandError(output, context);
714
+ }
715
+ const data = await (0, core_1.parseJsonBody)(output.body, context);
716
+ let contents = {};
717
+ contents = de_UpdateBillEstimateResponse(data, context);
718
+ const response = {
719
+ $metadata: deserializeMetadata(output),
720
+ ...contents,
721
+ };
722
+ return response;
723
+ };
724
+ exports.de_UpdateBillEstimateCommand = de_UpdateBillEstimateCommand;
725
+ const de_UpdateBillScenarioCommand = async (output, context) => {
726
+ if (output.statusCode >= 300) {
727
+ return de_CommandError(output, context);
728
+ }
729
+ const data = await (0, core_1.parseJsonBody)(output.body, context);
730
+ let contents = {};
731
+ contents = de_UpdateBillScenarioResponse(data, context);
732
+ const response = {
733
+ $metadata: deserializeMetadata(output),
734
+ ...contents,
735
+ };
736
+ return response;
737
+ };
738
+ exports.de_UpdateBillScenarioCommand = de_UpdateBillScenarioCommand;
739
+ const de_UpdatePreferencesCommand = async (output, context) => {
740
+ if (output.statusCode >= 300) {
741
+ return de_CommandError(output, context);
742
+ }
743
+ const data = await (0, core_1.parseJsonBody)(output.body, context);
744
+ let contents = {};
745
+ contents = (0, smithy_client_1._json)(data);
746
+ const response = {
747
+ $metadata: deserializeMetadata(output),
748
+ ...contents,
749
+ };
750
+ return response;
751
+ };
752
+ exports.de_UpdatePreferencesCommand = de_UpdatePreferencesCommand;
753
+ const de_UpdateWorkloadEstimateCommand = async (output, context) => {
754
+ if (output.statusCode >= 300) {
755
+ return de_CommandError(output, context);
756
+ }
757
+ const data = await (0, core_1.parseJsonBody)(output.body, context);
758
+ let contents = {};
759
+ contents = de_UpdateWorkloadEstimateResponse(data, context);
760
+ const response = {
761
+ $metadata: deserializeMetadata(output),
762
+ ...contents,
763
+ };
764
+ return response;
765
+ };
766
+ exports.de_UpdateWorkloadEstimateCommand = de_UpdateWorkloadEstimateCommand;
767
+ const de_CommandError = async (output, context) => {
768
+ const parsedOutput = {
769
+ ...output,
770
+ body: await (0, core_1.parseJsonErrorBody)(output.body, context),
771
+ };
772
+ const errorCode = (0, core_1.loadRestJsonErrorCode)(output, parsedOutput.body);
773
+ switch (errorCode) {
774
+ case "AccessDeniedException":
775
+ case "com.amazonaws.bcmpricingcalculator#AccessDeniedException":
776
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
777
+ case "ConflictException":
778
+ case "com.amazonaws.bcmpricingcalculator#ConflictException":
779
+ throw await de_ConflictExceptionRes(parsedOutput, context);
780
+ case "DataUnavailableException":
781
+ case "com.amazonaws.bcmpricingcalculator#DataUnavailableException":
782
+ throw await de_DataUnavailableExceptionRes(parsedOutput, context);
783
+ case "InternalServerException":
784
+ case "com.amazonaws.bcmpricingcalculator#InternalServerException":
785
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
786
+ case "ResourceNotFoundException":
787
+ case "com.amazonaws.bcmpricingcalculator#ResourceNotFoundException":
788
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
789
+ case "ThrottlingException":
790
+ case "com.amazonaws.bcmpricingcalculator#ThrottlingException":
791
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
792
+ case "ValidationException":
793
+ case "com.amazonaws.bcmpricingcalculator#ValidationException":
794
+ throw await de_ValidationExceptionRes(parsedOutput, context);
795
+ case "ServiceQuotaExceededException":
796
+ case "com.amazonaws.bcmpricingcalculator#ServiceQuotaExceededException":
797
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
798
+ default:
799
+ const parsedBody = parsedOutput.body;
800
+ return throwDefaultError({
801
+ output,
802
+ parsedBody,
803
+ errorCode,
804
+ });
805
+ }
806
+ };
807
+ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
808
+ const body = parsedOutput.body;
809
+ const deserialized = (0, smithy_client_1._json)(body);
810
+ const exception = new models_0_1.AccessDeniedException({
811
+ $metadata: deserializeMetadata(parsedOutput),
812
+ ...deserialized,
813
+ });
814
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
815
+ };
816
+ const de_ConflictExceptionRes = async (parsedOutput, context) => {
817
+ const body = parsedOutput.body;
818
+ const deserialized = (0, smithy_client_1._json)(body);
819
+ const exception = new models_0_1.ConflictException({
820
+ $metadata: deserializeMetadata(parsedOutput),
821
+ ...deserialized,
822
+ });
823
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
824
+ };
825
+ const de_DataUnavailableExceptionRes = async (parsedOutput, context) => {
826
+ const body = parsedOutput.body;
827
+ const deserialized = (0, smithy_client_1._json)(body);
828
+ const exception = new models_0_1.DataUnavailableException({
829
+ $metadata: deserializeMetadata(parsedOutput),
830
+ ...deserialized,
831
+ });
832
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
833
+ };
834
+ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
835
+ const body = parsedOutput.body;
836
+ const deserialized = (0, smithy_client_1._json)(body);
837
+ const exception = new models_0_1.InternalServerException({
838
+ $metadata: deserializeMetadata(parsedOutput),
839
+ ...deserialized,
840
+ });
841
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
842
+ };
843
+ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
844
+ const body = parsedOutput.body;
845
+ const deserialized = (0, smithy_client_1._json)(body);
846
+ const exception = new models_0_1.ResourceNotFoundException({
847
+ $metadata: deserializeMetadata(parsedOutput),
848
+ ...deserialized,
849
+ });
850
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
851
+ };
852
+ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
853
+ const body = parsedOutput.body;
854
+ const deserialized = (0, smithy_client_1._json)(body);
855
+ const exception = new models_0_1.ServiceQuotaExceededException({
856
+ $metadata: deserializeMetadata(parsedOutput),
857
+ ...deserialized,
858
+ });
859
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
860
+ };
861
+ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
862
+ const body = parsedOutput.body;
863
+ const deserialized = (0, smithy_client_1._json)(body);
864
+ const exception = new models_0_1.ThrottlingException({
865
+ $metadata: deserializeMetadata(parsedOutput),
866
+ ...deserialized,
867
+ });
868
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
869
+ };
870
+ const de_ValidationExceptionRes = async (parsedOutput, context) => {
871
+ const body = parsedOutput.body;
872
+ const deserialized = (0, smithy_client_1._json)(body);
873
+ const exception = new models_0_1.ValidationException({
874
+ $metadata: deserializeMetadata(parsedOutput),
875
+ ...deserialized,
876
+ });
877
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
878
+ };
879
+ const se_AddSavingsPlanAction = (input, context) => {
880
+ return (0, smithy_client_1.take)(input, {
881
+ commitment: smithy_client_1.serializeFloat,
882
+ savingsPlanOfferingId: [],
883
+ });
884
+ };
885
+ const se_BatchCreateBillScenarioCommitmentModificationEntries = (input, context) => {
886
+ return input
887
+ .filter((e) => e != null)
888
+ .map((entry) => {
889
+ return se_BatchCreateBillScenarioCommitmentModificationEntry(entry, context);
890
+ });
891
+ };
892
+ const se_BatchCreateBillScenarioCommitmentModificationEntry = (input, context) => {
893
+ return (0, smithy_client_1.take)(input, {
894
+ commitmentAction: (_) => se_BillScenarioCommitmentModificationAction(_, context),
895
+ group: [],
896
+ key: [],
897
+ usageAccountId: [],
898
+ });
899
+ };
900
+ const se_BatchCreateBillScenarioCommitmentModificationRequest = (input, context) => {
901
+ return (0, smithy_client_1.take)(input, {
902
+ billScenarioId: [],
903
+ clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
904
+ commitmentModifications: (_) => se_BatchCreateBillScenarioCommitmentModificationEntries(_, context),
905
+ });
906
+ };
907
+ const se_BatchCreateBillScenarioUsageModificationEntries = (input, context) => {
908
+ return input
909
+ .filter((e) => e != null)
910
+ .map((entry) => {
911
+ return se_BatchCreateBillScenarioUsageModificationEntry(entry, context);
912
+ });
913
+ };
914
+ const se_BatchCreateBillScenarioUsageModificationEntry = (input, context) => {
915
+ return (0, smithy_client_1.take)(input, {
916
+ amounts: (_) => se_UsageAmounts(_, context),
917
+ availabilityZone: [],
918
+ group: [],
919
+ historicalUsage: (_) => se_HistoricalUsageEntity(_, context),
920
+ key: [],
921
+ operation: [],
922
+ serviceCode: [],
923
+ usageAccountId: [],
924
+ usageType: [],
925
+ });
926
+ };
927
+ const se_BatchCreateBillScenarioUsageModificationRequest = (input, context) => {
928
+ return (0, smithy_client_1.take)(input, {
929
+ billScenarioId: [],
930
+ clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
931
+ usageModifications: (_) => se_BatchCreateBillScenarioUsageModificationEntries(_, context),
932
+ });
933
+ };
934
+ const se_BatchCreateWorkloadEstimateUsageEntries = (input, context) => {
935
+ return input
936
+ .filter((e) => e != null)
937
+ .map((entry) => {
938
+ return se_BatchCreateWorkloadEstimateUsageEntry(entry, context);
939
+ });
940
+ };
941
+ const se_BatchCreateWorkloadEstimateUsageEntry = (input, context) => {
942
+ return (0, smithy_client_1.take)(input, {
943
+ amount: smithy_client_1.serializeFloat,
944
+ group: [],
945
+ historicalUsage: (_) => se_HistoricalUsageEntity(_, context),
946
+ key: [],
947
+ operation: [],
948
+ serviceCode: [],
949
+ usageAccountId: [],
950
+ usageType: [],
951
+ });
952
+ };
953
+ const se_BatchCreateWorkloadEstimateUsageRequest = (input, context) => {
954
+ return (0, smithy_client_1.take)(input, {
955
+ clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
956
+ usage: (_) => se_BatchCreateWorkloadEstimateUsageEntries(_, context),
957
+ workloadEstimateId: [],
958
+ });
959
+ };
960
+ const se_BatchUpdateBillScenarioUsageModificationEntries = (input, context) => {
961
+ return input
962
+ .filter((e) => e != null)
963
+ .map((entry) => {
964
+ return se_BatchUpdateBillScenarioUsageModificationEntry(entry, context);
965
+ });
966
+ };
967
+ const se_BatchUpdateBillScenarioUsageModificationEntry = (input, context) => {
968
+ return (0, smithy_client_1.take)(input, {
969
+ amounts: (_) => se_UsageAmounts(_, context),
970
+ group: [],
971
+ id: [],
972
+ });
973
+ };
974
+ const se_BatchUpdateBillScenarioUsageModificationRequest = (input, context) => {
975
+ return (0, smithy_client_1.take)(input, {
976
+ billScenarioId: [],
977
+ usageModifications: (_) => se_BatchUpdateBillScenarioUsageModificationEntries(_, context),
978
+ });
979
+ };
980
+ const se_BatchUpdateWorkloadEstimateUsageEntries = (input, context) => {
981
+ return input
982
+ .filter((e) => e != null)
983
+ .map((entry) => {
984
+ return se_BatchUpdateWorkloadEstimateUsageEntry(entry, context);
985
+ });
986
+ };
987
+ const se_BatchUpdateWorkloadEstimateUsageEntry = (input, context) => {
988
+ return (0, smithy_client_1.take)(input, {
989
+ amount: smithy_client_1.serializeFloat,
990
+ group: [],
991
+ id: [],
992
+ });
993
+ };
994
+ const se_BatchUpdateWorkloadEstimateUsageRequest = (input, context) => {
995
+ return (0, smithy_client_1.take)(input, {
996
+ usage: (_) => se_BatchUpdateWorkloadEstimateUsageEntries(_, context),
997
+ workloadEstimateId: [],
998
+ });
999
+ };
1000
+ const se_BillInterval = (input, context) => {
1001
+ return (0, smithy_client_1.take)(input, {
1002
+ end: (_) => _.getTime() / 1000,
1003
+ start: (_) => _.getTime() / 1000,
1004
+ });
1005
+ };
1006
+ const se_BillScenarioCommitmentModificationAction = (input, context) => {
1007
+ return models_0_1.BillScenarioCommitmentModificationAction.visit(input, {
1008
+ addReservedInstanceAction: (value) => ({ addReservedInstanceAction: (0, smithy_client_1._json)(value) }),
1009
+ addSavingsPlanAction: (value) => ({ addSavingsPlanAction: se_AddSavingsPlanAction(value, context) }),
1010
+ negateReservedInstanceAction: (value) => ({ negateReservedInstanceAction: (0, smithy_client_1._json)(value) }),
1011
+ negateSavingsPlanAction: (value) => ({ negateSavingsPlanAction: (0, smithy_client_1._json)(value) }),
1012
+ _: (name, value) => ({ name: value }),
1013
+ });
1014
+ };
1015
+ const se_CreateBillEstimateRequest = (input, context) => {
1016
+ return (0, smithy_client_1.take)(input, {
1017
+ billScenarioId: [],
1018
+ clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
1019
+ name: [],
1020
+ tags: smithy_client_1._json,
1021
+ });
1022
+ };
1023
+ const se_CreateBillScenarioRequest = (input, context) => {
1024
+ return (0, smithy_client_1.take)(input, {
1025
+ clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
1026
+ name: [],
1027
+ tags: smithy_client_1._json,
1028
+ });
1029
+ };
1030
+ const se_CreateWorkloadEstimateRequest = (input, context) => {
1031
+ return (0, smithy_client_1.take)(input, {
1032
+ clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
1033
+ name: [],
1034
+ rateType: [],
1035
+ tags: smithy_client_1._json,
1036
+ });
1037
+ };
1038
+ const se_Expression = (input, context) => {
1039
+ return (0, smithy_client_1.take)(input, {
1040
+ and: (_) => se_ExpressionList(_, context),
1041
+ costCategories: smithy_client_1._json,
1042
+ dimensions: smithy_client_1._json,
1043
+ not: (_) => se_Expression(_, context),
1044
+ or: (_) => se_ExpressionList(_, context),
1045
+ tags: smithy_client_1._json,
1046
+ });
1047
+ };
1048
+ const se_ExpressionList = (input, context) => {
1049
+ return input
1050
+ .filter((e) => e != null)
1051
+ .map((entry) => {
1052
+ return se_Expression(entry, context);
1053
+ });
1054
+ };
1055
+ const se_FilterTimestamp = (input, context) => {
1056
+ return (0, smithy_client_1.take)(input, {
1057
+ afterTimestamp: (_) => _.getTime() / 1000,
1058
+ beforeTimestamp: (_) => _.getTime() / 1000,
1059
+ });
1060
+ };
1061
+ const se_HistoricalUsageEntity = (input, context) => {
1062
+ return (0, smithy_client_1.take)(input, {
1063
+ billInterval: (_) => se_BillInterval(_, context),
1064
+ filterExpression: (_) => se_Expression(_, context),
1065
+ location: [],
1066
+ operation: [],
1067
+ serviceCode: [],
1068
+ usageAccountId: [],
1069
+ usageType: [],
1070
+ });
1071
+ };
1072
+ const se_ListBillEstimatesRequest = (input, context) => {
1073
+ return (0, smithy_client_1.take)(input, {
1074
+ createdAtFilter: (_) => se_FilterTimestamp(_, context),
1075
+ expiresAtFilter: (_) => se_FilterTimestamp(_, context),
1076
+ filters: smithy_client_1._json,
1077
+ maxResults: [],
1078
+ nextToken: [],
1079
+ });
1080
+ };
1081
+ const se_ListBillScenariosRequest = (input, context) => {
1082
+ return (0, smithy_client_1.take)(input, {
1083
+ createdAtFilter: (_) => se_FilterTimestamp(_, context),
1084
+ expiresAtFilter: (_) => se_FilterTimestamp(_, context),
1085
+ filters: smithy_client_1._json,
1086
+ maxResults: [],
1087
+ nextToken: [],
1088
+ });
1089
+ };
1090
+ const se_ListWorkloadEstimatesRequest = (input, context) => {
1091
+ return (0, smithy_client_1.take)(input, {
1092
+ createdAtFilter: (_) => se_FilterTimestamp(_, context),
1093
+ expiresAtFilter: (_) => se_FilterTimestamp(_, context),
1094
+ filters: smithy_client_1._json,
1095
+ maxResults: [],
1096
+ nextToken: [],
1097
+ });
1098
+ };
1099
+ const se_UpdateBillEstimateRequest = (input, context) => {
1100
+ return (0, smithy_client_1.take)(input, {
1101
+ expiresAt: (_) => _.getTime() / 1000,
1102
+ identifier: [],
1103
+ name: [],
1104
+ });
1105
+ };
1106
+ const se_UpdateBillScenarioRequest = (input, context) => {
1107
+ return (0, smithy_client_1.take)(input, {
1108
+ expiresAt: (_) => _.getTime() / 1000,
1109
+ identifier: [],
1110
+ name: [],
1111
+ });
1112
+ };
1113
+ const se_UpdateWorkloadEstimateRequest = (input, context) => {
1114
+ return (0, smithy_client_1.take)(input, {
1115
+ expiresAt: (_) => _.getTime() / 1000,
1116
+ identifier: [],
1117
+ name: [],
1118
+ });
1119
+ };
1120
+ const se_UsageAmount = (input, context) => {
1121
+ return (0, smithy_client_1.take)(input, {
1122
+ amount: smithy_client_1.serializeFloat,
1123
+ startHour: (_) => _.getTime() / 1000,
1124
+ });
1125
+ };
1126
+ const se_UsageAmounts = (input, context) => {
1127
+ return input
1128
+ .filter((e) => e != null)
1129
+ .map((entry) => {
1130
+ return se_UsageAmount(entry, context);
1131
+ });
1132
+ };
1133
+ const de_AddSavingsPlanAction = (output, context) => {
1134
+ return (0, smithy_client_1.take)(output, {
1135
+ commitment: smithy_client_1.limitedParseDouble,
1136
+ savingsPlanOfferingId: smithy_client_1.expectString,
1137
+ });
1138
+ };
1139
+ const de_BatchCreateBillScenarioCommitmentModificationItem = (output, context) => {
1140
+ return (0, smithy_client_1.take)(output, {
1141
+ commitmentAction: (_) => de_BillScenarioCommitmentModificationAction((0, core_1.awsExpectUnion)(_), context),
1142
+ group: smithy_client_1.expectString,
1143
+ id: smithy_client_1.expectString,
1144
+ key: smithy_client_1.expectString,
1145
+ usageAccountId: smithy_client_1.expectString,
1146
+ });
1147
+ };
1148
+ const de_BatchCreateBillScenarioCommitmentModificationItems = (output, context) => {
1149
+ const retVal = (output || [])
1150
+ .filter((e) => e != null)
1151
+ .map((entry) => {
1152
+ return de_BatchCreateBillScenarioCommitmentModificationItem(entry, context);
1153
+ });
1154
+ return retVal;
1155
+ };
1156
+ const de_BatchCreateBillScenarioCommitmentModificationResponse = (output, context) => {
1157
+ return (0, smithy_client_1.take)(output, {
1158
+ errors: smithy_client_1._json,
1159
+ items: (_) => de_BatchCreateBillScenarioCommitmentModificationItems(_, context),
1160
+ });
1161
+ };
1162
+ const de_BatchCreateBillScenarioUsageModificationItem = (output, context) => {
1163
+ return (0, smithy_client_1.take)(output, {
1164
+ availabilityZone: smithy_client_1.expectString,
1165
+ group: smithy_client_1.expectString,
1166
+ historicalUsage: (_) => de_HistoricalUsageEntity(_, context),
1167
+ id: smithy_client_1.expectString,
1168
+ key: smithy_client_1.expectString,
1169
+ location: smithy_client_1.expectString,
1170
+ operation: smithy_client_1.expectString,
1171
+ quantities: (_) => de_UsageQuantities(_, context),
1172
+ serviceCode: smithy_client_1.expectString,
1173
+ usageAccountId: smithy_client_1.expectString,
1174
+ usageType: smithy_client_1.expectString,
1175
+ });
1176
+ };
1177
+ const de_BatchCreateBillScenarioUsageModificationItems = (output, context) => {
1178
+ const retVal = (output || [])
1179
+ .filter((e) => e != null)
1180
+ .map((entry) => {
1181
+ return de_BatchCreateBillScenarioUsageModificationItem(entry, context);
1182
+ });
1183
+ return retVal;
1184
+ };
1185
+ const de_BatchCreateBillScenarioUsageModificationResponse = (output, context) => {
1186
+ return (0, smithy_client_1.take)(output, {
1187
+ errors: smithy_client_1._json,
1188
+ items: (_) => de_BatchCreateBillScenarioUsageModificationItems(_, context),
1189
+ });
1190
+ };
1191
+ const de_BatchCreateWorkloadEstimateUsageItem = (output, context) => {
1192
+ return (0, smithy_client_1.take)(output, {
1193
+ cost: smithy_client_1.limitedParseDouble,
1194
+ currency: smithy_client_1.expectString,
1195
+ group: smithy_client_1.expectString,
1196
+ historicalUsage: (_) => de_HistoricalUsageEntity(_, context),
1197
+ id: smithy_client_1.expectString,
1198
+ key: smithy_client_1.expectString,
1199
+ location: smithy_client_1.expectString,
1200
+ operation: smithy_client_1.expectString,
1201
+ quantity: (_) => de_WorkloadEstimateUsageQuantity(_, context),
1202
+ serviceCode: smithy_client_1.expectString,
1203
+ status: smithy_client_1.expectString,
1204
+ usageAccountId: smithy_client_1.expectString,
1205
+ usageType: smithy_client_1.expectString,
1206
+ });
1207
+ };
1208
+ const de_BatchCreateWorkloadEstimateUsageItems = (output, context) => {
1209
+ const retVal = (output || [])
1210
+ .filter((e) => e != null)
1211
+ .map((entry) => {
1212
+ return de_BatchCreateWorkloadEstimateUsageItem(entry, context);
1213
+ });
1214
+ return retVal;
1215
+ };
1216
+ const de_BatchCreateWorkloadEstimateUsageResponse = (output, context) => {
1217
+ return (0, smithy_client_1.take)(output, {
1218
+ errors: smithy_client_1._json,
1219
+ items: (_) => de_BatchCreateWorkloadEstimateUsageItems(_, context),
1220
+ });
1221
+ };
1222
+ const de_BatchUpdateBillScenarioCommitmentModificationResponse = (output, context) => {
1223
+ return (0, smithy_client_1.take)(output, {
1224
+ errors: smithy_client_1._json,
1225
+ items: (_) => de_BillScenarioCommitmentModificationItems(_, context),
1226
+ });
1227
+ };
1228
+ const de_BatchUpdateBillScenarioUsageModificationResponse = (output, context) => {
1229
+ return (0, smithy_client_1.take)(output, {
1230
+ errors: smithy_client_1._json,
1231
+ items: (_) => de_BillScenarioUsageModificationItems(_, context),
1232
+ });
1233
+ };
1234
+ const de_BatchUpdateWorkloadEstimateUsageResponse = (output, context) => {
1235
+ return (0, smithy_client_1.take)(output, {
1236
+ errors: smithy_client_1._json,
1237
+ items: (_) => de_WorkloadEstimateUsageItems(_, context),
1238
+ });
1239
+ };
1240
+ const de_BillEstimateCommitmentSummaries = (output, context) => {
1241
+ const retVal = (output || [])
1242
+ .filter((e) => e != null)
1243
+ .map((entry) => {
1244
+ return de_BillEstimateCommitmentSummary(entry, context);
1245
+ });
1246
+ return retVal;
1247
+ };
1248
+ const de_BillEstimateCommitmentSummary = (output, context) => {
1249
+ return (0, smithy_client_1.take)(output, {
1250
+ id: smithy_client_1.expectString,
1251
+ monthlyPayment: (_) => de_CostAmount(_, context),
1252
+ offeringId: smithy_client_1.expectString,
1253
+ paymentOption: smithy_client_1.expectString,
1254
+ purchaseAgreementType: smithy_client_1.expectString,
1255
+ region: smithy_client_1.expectString,
1256
+ termLength: smithy_client_1.expectString,
1257
+ upfrontPayment: (_) => de_CostAmount(_, context),
1258
+ usageAccountId: smithy_client_1.expectString,
1259
+ });
1260
+ };
1261
+ const de_BillEstimateCostSummary = (output, context) => {
1262
+ return (0, smithy_client_1.take)(output, {
1263
+ serviceCostDifferences: (_) => de_ServiceCostDifferenceMap(_, context),
1264
+ totalCostDifference: (_) => de_CostDifference(_, context),
1265
+ });
1266
+ };
1267
+ const de_BillEstimateInputCommitmentModificationSummaries = (output, context) => {
1268
+ const retVal = (output || [])
1269
+ .filter((e) => e != null)
1270
+ .map((entry) => {
1271
+ return de_BillEstimateInputCommitmentModificationSummary(entry, context);
1272
+ });
1273
+ return retVal;
1274
+ };
1275
+ const de_BillEstimateInputCommitmentModificationSummary = (output, context) => {
1276
+ return (0, smithy_client_1.take)(output, {
1277
+ commitmentAction: (_) => de_BillScenarioCommitmentModificationAction((0, core_1.awsExpectUnion)(_), context),
1278
+ group: smithy_client_1.expectString,
1279
+ id: smithy_client_1.expectString,
1280
+ usageAccountId: smithy_client_1.expectString,
1281
+ });
1282
+ };
1283
+ const de_BillEstimateInputUsageModificationSummaries = (output, context) => {
1284
+ const retVal = (output || [])
1285
+ .filter((e) => e != null)
1286
+ .map((entry) => {
1287
+ return de_BillEstimateInputUsageModificationSummary(entry, context);
1288
+ });
1289
+ return retVal;
1290
+ };
1291
+ const de_BillEstimateInputUsageModificationSummary = (output, context) => {
1292
+ return (0, smithy_client_1.take)(output, {
1293
+ availabilityZone: smithy_client_1.expectString,
1294
+ group: smithy_client_1.expectString,
1295
+ historicalUsage: (_) => de_HistoricalUsageEntity(_, context),
1296
+ id: smithy_client_1.expectString,
1297
+ location: smithy_client_1.expectString,
1298
+ operation: smithy_client_1.expectString,
1299
+ quantities: (_) => de_UsageQuantities(_, context),
1300
+ serviceCode: smithy_client_1.expectString,
1301
+ usageAccountId: smithy_client_1.expectString,
1302
+ usageType: smithy_client_1.expectString,
1303
+ });
1304
+ };
1305
+ const de_BillEstimateLineItemSummaries = (output, context) => {
1306
+ const retVal = (output || [])
1307
+ .filter((e) => e != null)
1308
+ .map((entry) => {
1309
+ return de_BillEstimateLineItemSummary(entry, context);
1310
+ });
1311
+ return retVal;
1312
+ };
1313
+ const de_BillEstimateLineItemSummary = (output, context) => {
1314
+ return (0, smithy_client_1.take)(output, {
1315
+ availabilityZone: smithy_client_1.expectString,
1316
+ estimatedCost: (_) => de_CostAmount(_, context),
1317
+ estimatedUsageQuantity: (_) => de_UsageQuantityResult(_, context),
1318
+ historicalCost: (_) => de_CostAmount(_, context),
1319
+ historicalUsageQuantity: (_) => de_UsageQuantityResult(_, context),
1320
+ id: smithy_client_1.expectString,
1321
+ lineItemId: smithy_client_1.expectString,
1322
+ lineItemType: smithy_client_1.expectString,
1323
+ location: smithy_client_1.expectString,
1324
+ operation: smithy_client_1.expectString,
1325
+ payerAccountId: smithy_client_1.expectString,
1326
+ savingsPlanArns: smithy_client_1._json,
1327
+ serviceCode: smithy_client_1.expectString,
1328
+ usageAccountId: smithy_client_1.expectString,
1329
+ usageType: smithy_client_1.expectString,
1330
+ });
1331
+ };
1332
+ const de_BillEstimateSummaries = (output, context) => {
1333
+ const retVal = (output || [])
1334
+ .filter((e) => e != null)
1335
+ .map((entry) => {
1336
+ return de_BillEstimateSummary(entry, context);
1337
+ });
1338
+ return retVal;
1339
+ };
1340
+ const de_BillEstimateSummary = (output, context) => {
1341
+ return (0, smithy_client_1.take)(output, {
1342
+ billInterval: (_) => de_BillInterval(_, context),
1343
+ createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1344
+ expiresAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1345
+ id: smithy_client_1.expectString,
1346
+ name: smithy_client_1.expectString,
1347
+ status: smithy_client_1.expectString,
1348
+ });
1349
+ };
1350
+ const de_BillInterval = (output, context) => {
1351
+ return (0, smithy_client_1.take)(output, {
1352
+ end: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1353
+ start: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1354
+ });
1355
+ };
1356
+ const de_BillScenarioCommitmentModificationAction = (output, context) => {
1357
+ if (output.addReservedInstanceAction != null) {
1358
+ return {
1359
+ addReservedInstanceAction: (0, smithy_client_1._json)(output.addReservedInstanceAction),
1360
+ };
1361
+ }
1362
+ if (output.addSavingsPlanAction != null) {
1363
+ return {
1364
+ addSavingsPlanAction: de_AddSavingsPlanAction(output.addSavingsPlanAction, context),
1365
+ };
1366
+ }
1367
+ if (output.negateReservedInstanceAction != null) {
1368
+ return {
1369
+ negateReservedInstanceAction: (0, smithy_client_1._json)(output.negateReservedInstanceAction),
1370
+ };
1371
+ }
1372
+ if (output.negateSavingsPlanAction != null) {
1373
+ return {
1374
+ negateSavingsPlanAction: (0, smithy_client_1._json)(output.negateSavingsPlanAction),
1375
+ };
1376
+ }
1377
+ return { $unknown: Object.entries(output)[0] };
1378
+ };
1379
+ const de_BillScenarioCommitmentModificationItem = (output, context) => {
1380
+ return (0, smithy_client_1.take)(output, {
1381
+ commitmentAction: (_) => de_BillScenarioCommitmentModificationAction((0, core_1.awsExpectUnion)(_), context),
1382
+ group: smithy_client_1.expectString,
1383
+ id: smithy_client_1.expectString,
1384
+ usageAccountId: smithy_client_1.expectString,
1385
+ });
1386
+ };
1387
+ const de_BillScenarioCommitmentModificationItems = (output, context) => {
1388
+ const retVal = (output || [])
1389
+ .filter((e) => e != null)
1390
+ .map((entry) => {
1391
+ return de_BillScenarioCommitmentModificationItem(entry, context);
1392
+ });
1393
+ return retVal;
1394
+ };
1395
+ const de_BillScenarioSummaries = (output, context) => {
1396
+ const retVal = (output || [])
1397
+ .filter((e) => e != null)
1398
+ .map((entry) => {
1399
+ return de_BillScenarioSummary(entry, context);
1400
+ });
1401
+ return retVal;
1402
+ };
1403
+ const de_BillScenarioSummary = (output, context) => {
1404
+ return (0, smithy_client_1.take)(output, {
1405
+ billInterval: (_) => de_BillInterval(_, context),
1406
+ createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1407
+ expiresAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1408
+ failureMessage: smithy_client_1.expectString,
1409
+ id: smithy_client_1.expectString,
1410
+ name: smithy_client_1.expectString,
1411
+ status: smithy_client_1.expectString,
1412
+ });
1413
+ };
1414
+ const de_BillScenarioUsageModificationItem = (output, context) => {
1415
+ return (0, smithy_client_1.take)(output, {
1416
+ availabilityZone: smithy_client_1.expectString,
1417
+ group: smithy_client_1.expectString,
1418
+ historicalUsage: (_) => de_HistoricalUsageEntity(_, context),
1419
+ id: smithy_client_1.expectString,
1420
+ location: smithy_client_1.expectString,
1421
+ operation: smithy_client_1.expectString,
1422
+ quantities: (_) => de_UsageQuantities(_, context),
1423
+ serviceCode: smithy_client_1.expectString,
1424
+ usageAccountId: smithy_client_1.expectString,
1425
+ usageType: smithy_client_1.expectString,
1426
+ });
1427
+ };
1428
+ const de_BillScenarioUsageModificationItems = (output, context) => {
1429
+ const retVal = (output || [])
1430
+ .filter((e) => e != null)
1431
+ .map((entry) => {
1432
+ return de_BillScenarioUsageModificationItem(entry, context);
1433
+ });
1434
+ return retVal;
1435
+ };
1436
+ const de_CostAmount = (output, context) => {
1437
+ return (0, smithy_client_1.take)(output, {
1438
+ amount: smithy_client_1.limitedParseDouble,
1439
+ currency: smithy_client_1.expectString,
1440
+ });
1441
+ };
1442
+ const de_CostDifference = (output, context) => {
1443
+ return (0, smithy_client_1.take)(output, {
1444
+ estimatedCost: (_) => de_CostAmount(_, context),
1445
+ historicalCost: (_) => de_CostAmount(_, context),
1446
+ });
1447
+ };
1448
+ const de_CreateBillEstimateResponse = (output, context) => {
1449
+ return (0, smithy_client_1.take)(output, {
1450
+ billInterval: (_) => de_BillInterval(_, context),
1451
+ costSummary: (_) => de_BillEstimateCostSummary(_, context),
1452
+ createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1453
+ expiresAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1454
+ failureMessage: smithy_client_1.expectString,
1455
+ id: smithy_client_1.expectString,
1456
+ name: smithy_client_1.expectString,
1457
+ status: smithy_client_1.expectString,
1458
+ });
1459
+ };
1460
+ const de_CreateBillScenarioResponse = (output, context) => {
1461
+ return (0, smithy_client_1.take)(output, {
1462
+ billInterval: (_) => de_BillInterval(_, context),
1463
+ createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1464
+ expiresAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1465
+ failureMessage: smithy_client_1.expectString,
1466
+ id: smithy_client_1.expectString,
1467
+ name: smithy_client_1.expectString,
1468
+ status: smithy_client_1.expectString,
1469
+ });
1470
+ };
1471
+ const de_CreateWorkloadEstimateResponse = (output, context) => {
1472
+ return (0, smithy_client_1.take)(output, {
1473
+ costCurrency: smithy_client_1.expectString,
1474
+ createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1475
+ expiresAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1476
+ failureMessage: smithy_client_1.expectString,
1477
+ id: smithy_client_1.expectString,
1478
+ name: smithy_client_1.expectString,
1479
+ rateTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1480
+ rateType: smithy_client_1.expectString,
1481
+ status: smithy_client_1.expectString,
1482
+ totalCost: smithy_client_1.limitedParseDouble,
1483
+ });
1484
+ };
1485
+ const de_Expression = (output, context) => {
1486
+ return (0, smithy_client_1.take)(output, {
1487
+ and: (_) => de_ExpressionList(_, context),
1488
+ costCategories: smithy_client_1._json,
1489
+ dimensions: smithy_client_1._json,
1490
+ not: (_) => de_Expression(_, context),
1491
+ or: (_) => de_ExpressionList(_, context),
1492
+ tags: smithy_client_1._json,
1493
+ });
1494
+ };
1495
+ const de_ExpressionList = (output, context) => {
1496
+ const retVal = (output || [])
1497
+ .filter((e) => e != null)
1498
+ .map((entry) => {
1499
+ return de_Expression(entry, context);
1500
+ });
1501
+ return retVal;
1502
+ };
1503
+ const de_GetBillEstimateResponse = (output, context) => {
1504
+ return (0, smithy_client_1.take)(output, {
1505
+ billInterval: (_) => de_BillInterval(_, context),
1506
+ costSummary: (_) => de_BillEstimateCostSummary(_, context),
1507
+ createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1508
+ expiresAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1509
+ failureMessage: smithy_client_1.expectString,
1510
+ id: smithy_client_1.expectString,
1511
+ name: smithy_client_1.expectString,
1512
+ status: smithy_client_1.expectString,
1513
+ });
1514
+ };
1515
+ const de_GetBillScenarioResponse = (output, context) => {
1516
+ return (0, smithy_client_1.take)(output, {
1517
+ billInterval: (_) => de_BillInterval(_, context),
1518
+ createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1519
+ expiresAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1520
+ failureMessage: smithy_client_1.expectString,
1521
+ id: smithy_client_1.expectString,
1522
+ name: smithy_client_1.expectString,
1523
+ status: smithy_client_1.expectString,
1524
+ });
1525
+ };
1526
+ const de_GetWorkloadEstimateResponse = (output, context) => {
1527
+ return (0, smithy_client_1.take)(output, {
1528
+ costCurrency: smithy_client_1.expectString,
1529
+ createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1530
+ expiresAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1531
+ failureMessage: smithy_client_1.expectString,
1532
+ id: smithy_client_1.expectString,
1533
+ name: smithy_client_1.expectString,
1534
+ rateTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1535
+ rateType: smithy_client_1.expectString,
1536
+ status: smithy_client_1.expectString,
1537
+ totalCost: smithy_client_1.limitedParseDouble,
1538
+ });
1539
+ };
1540
+ const de_HistoricalUsageEntity = (output, context) => {
1541
+ return (0, smithy_client_1.take)(output, {
1542
+ billInterval: (_) => de_BillInterval(_, context),
1543
+ filterExpression: (_) => de_Expression(_, context),
1544
+ location: smithy_client_1.expectString,
1545
+ operation: smithy_client_1.expectString,
1546
+ serviceCode: smithy_client_1.expectString,
1547
+ usageAccountId: smithy_client_1.expectString,
1548
+ usageType: smithy_client_1.expectString,
1549
+ });
1550
+ };
1551
+ const de_ListBillEstimateCommitmentsResponse = (output, context) => {
1552
+ return (0, smithy_client_1.take)(output, {
1553
+ items: (_) => de_BillEstimateCommitmentSummaries(_, context),
1554
+ nextToken: smithy_client_1.expectString,
1555
+ });
1556
+ };
1557
+ const de_ListBillEstimateInputCommitmentModificationsResponse = (output, context) => {
1558
+ return (0, smithy_client_1.take)(output, {
1559
+ items: (_) => de_BillEstimateInputCommitmentModificationSummaries(_, context),
1560
+ nextToken: smithy_client_1.expectString,
1561
+ });
1562
+ };
1563
+ const de_ListBillEstimateInputUsageModificationsResponse = (output, context) => {
1564
+ return (0, smithy_client_1.take)(output, {
1565
+ items: (_) => de_BillEstimateInputUsageModificationSummaries(_, context),
1566
+ nextToken: smithy_client_1.expectString,
1567
+ });
1568
+ };
1569
+ const de_ListBillEstimateLineItemsResponse = (output, context) => {
1570
+ return (0, smithy_client_1.take)(output, {
1571
+ items: (_) => de_BillEstimateLineItemSummaries(_, context),
1572
+ nextToken: smithy_client_1.expectString,
1573
+ });
1574
+ };
1575
+ const de_ListBillEstimatesResponse = (output, context) => {
1576
+ return (0, smithy_client_1.take)(output, {
1577
+ items: (_) => de_BillEstimateSummaries(_, context),
1578
+ nextToken: smithy_client_1.expectString,
1579
+ });
1580
+ };
1581
+ const de_ListBillScenarioCommitmentModificationsResponse = (output, context) => {
1582
+ return (0, smithy_client_1.take)(output, {
1583
+ items: (_) => de_BillScenarioCommitmentModificationItems(_, context),
1584
+ nextToken: smithy_client_1.expectString,
1585
+ });
1586
+ };
1587
+ const de_ListBillScenariosResponse = (output, context) => {
1588
+ return (0, smithy_client_1.take)(output, {
1589
+ items: (_) => de_BillScenarioSummaries(_, context),
1590
+ nextToken: smithy_client_1.expectString,
1591
+ });
1592
+ };
1593
+ const de_ListBillScenarioUsageModificationsResponse = (output, context) => {
1594
+ return (0, smithy_client_1.take)(output, {
1595
+ items: (_) => de_BillScenarioUsageModificationItems(_, context),
1596
+ nextToken: smithy_client_1.expectString,
1597
+ });
1598
+ };
1599
+ const de_ListWorkloadEstimatesResponse = (output, context) => {
1600
+ return (0, smithy_client_1.take)(output, {
1601
+ items: (_) => de_WorkloadEstimateSummaries(_, context),
1602
+ nextToken: smithy_client_1.expectString,
1603
+ });
1604
+ };
1605
+ const de_ListWorkloadEstimateUsageResponse = (output, context) => {
1606
+ return (0, smithy_client_1.take)(output, {
1607
+ items: (_) => de_WorkloadEstimateUsageItems(_, context),
1608
+ nextToken: smithy_client_1.expectString,
1609
+ });
1610
+ };
1611
+ const de_ServiceCostDifferenceMap = (output, context) => {
1612
+ return Object.entries(output).reduce((acc, [key, value]) => {
1613
+ if (value === null) {
1614
+ return acc;
1615
+ }
1616
+ acc[key] = de_CostDifference(value, context);
1617
+ return acc;
1618
+ }, {});
1619
+ };
1620
+ const de_UpdateBillEstimateResponse = (output, context) => {
1621
+ return (0, smithy_client_1.take)(output, {
1622
+ billInterval: (_) => de_BillInterval(_, context),
1623
+ costSummary: (_) => de_BillEstimateCostSummary(_, context),
1624
+ createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1625
+ expiresAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1626
+ failureMessage: smithy_client_1.expectString,
1627
+ id: smithy_client_1.expectString,
1628
+ name: smithy_client_1.expectString,
1629
+ status: smithy_client_1.expectString,
1630
+ });
1631
+ };
1632
+ const de_UpdateBillScenarioResponse = (output, context) => {
1633
+ return (0, smithy_client_1.take)(output, {
1634
+ billInterval: (_) => de_BillInterval(_, context),
1635
+ createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1636
+ expiresAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1637
+ failureMessage: smithy_client_1.expectString,
1638
+ id: smithy_client_1.expectString,
1639
+ name: smithy_client_1.expectString,
1640
+ status: smithy_client_1.expectString,
1641
+ });
1642
+ };
1643
+ const de_UpdateWorkloadEstimateResponse = (output, context) => {
1644
+ return (0, smithy_client_1.take)(output, {
1645
+ costCurrency: smithy_client_1.expectString,
1646
+ createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1647
+ expiresAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1648
+ failureMessage: smithy_client_1.expectString,
1649
+ id: smithy_client_1.expectString,
1650
+ name: smithy_client_1.expectString,
1651
+ rateTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1652
+ rateType: smithy_client_1.expectString,
1653
+ status: smithy_client_1.expectString,
1654
+ totalCost: smithy_client_1.limitedParseDouble,
1655
+ });
1656
+ };
1657
+ const de_UsageQuantities = (output, context) => {
1658
+ const retVal = (output || [])
1659
+ .filter((e) => e != null)
1660
+ .map((entry) => {
1661
+ return de_UsageQuantity(entry, context);
1662
+ });
1663
+ return retVal;
1664
+ };
1665
+ const de_UsageQuantity = (output, context) => {
1666
+ return (0, smithy_client_1.take)(output, {
1667
+ amount: smithy_client_1.limitedParseDouble,
1668
+ startHour: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1669
+ unit: smithy_client_1.expectString,
1670
+ });
1671
+ };
1672
+ const de_UsageQuantityResult = (output, context) => {
1673
+ return (0, smithy_client_1.take)(output, {
1674
+ amount: smithy_client_1.limitedParseDouble,
1675
+ unit: smithy_client_1.expectString,
1676
+ });
1677
+ };
1678
+ const de_WorkloadEstimateSummaries = (output, context) => {
1679
+ const retVal = (output || [])
1680
+ .filter((e) => e != null)
1681
+ .map((entry) => {
1682
+ return de_WorkloadEstimateSummary(entry, context);
1683
+ });
1684
+ return retVal;
1685
+ };
1686
+ const de_WorkloadEstimateSummary = (output, context) => {
1687
+ return (0, smithy_client_1.take)(output, {
1688
+ costCurrency: smithy_client_1.expectString,
1689
+ createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1690
+ expiresAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1691
+ failureMessage: smithy_client_1.expectString,
1692
+ id: smithy_client_1.expectString,
1693
+ name: smithy_client_1.expectString,
1694
+ rateTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1695
+ rateType: smithy_client_1.expectString,
1696
+ status: smithy_client_1.expectString,
1697
+ totalCost: smithy_client_1.limitedParseDouble,
1698
+ });
1699
+ };
1700
+ const de_WorkloadEstimateUsageItem = (output, context) => {
1701
+ return (0, smithy_client_1.take)(output, {
1702
+ cost: smithy_client_1.limitedParseDouble,
1703
+ currency: smithy_client_1.expectString,
1704
+ group: smithy_client_1.expectString,
1705
+ historicalUsage: (_) => de_HistoricalUsageEntity(_, context),
1706
+ id: smithy_client_1.expectString,
1707
+ location: smithy_client_1.expectString,
1708
+ operation: smithy_client_1.expectString,
1709
+ quantity: (_) => de_WorkloadEstimateUsageQuantity(_, context),
1710
+ serviceCode: smithy_client_1.expectString,
1711
+ status: smithy_client_1.expectString,
1712
+ usageAccountId: smithy_client_1.expectString,
1713
+ usageType: smithy_client_1.expectString,
1714
+ });
1715
+ };
1716
+ const de_WorkloadEstimateUsageItems = (output, context) => {
1717
+ const retVal = (output || [])
1718
+ .filter((e) => e != null)
1719
+ .map((entry) => {
1720
+ return de_WorkloadEstimateUsageItem(entry, context);
1721
+ });
1722
+ return retVal;
1723
+ };
1724
+ const de_WorkloadEstimateUsageQuantity = (output, context) => {
1725
+ return (0, smithy_client_1.take)(output, {
1726
+ amount: smithy_client_1.limitedParseDouble,
1727
+ unit: smithy_client_1.expectString,
1728
+ });
1729
+ };
1730
+ const deserializeMetadata = (output) => ({
1731
+ httpStatusCode: output.statusCode,
1732
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1733
+ extendedRequestId: output.headers["x-amz-id-2"],
1734
+ cfId: output.headers["x-amz-cf-id"],
1735
+ });
1736
+ const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
1737
+ const throwDefaultError = (0, smithy_client_1.withBaseException)(BCMPricingCalculatorServiceException_1.BCMPricingCalculatorServiceException);
1738
+ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
1739
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1740
+ const contents = {
1741
+ protocol,
1742
+ hostname,
1743
+ port,
1744
+ method: "POST",
1745
+ path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
1746
+ headers,
1747
+ };
1748
+ if (resolvedHostname !== undefined) {
1749
+ contents.hostname = resolvedHostname;
1750
+ }
1751
+ if (body !== undefined) {
1752
+ contents.body = body;
1753
+ }
1754
+ return new protocol_http_1.HttpRequest(contents);
1755
+ };
1756
+ function sharedHeaders(operation) {
1757
+ return {
1758
+ "content-type": "application/x-amz-json-1.0",
1759
+ "x-amz-target": `AWSBCMPricingCalculator.${operation}`,
1760
+ };
1761
+ }