@aws-sdk/client-forecast 3.477.0 → 3.481.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 (313) hide show
  1. package/dist-cjs/commands/CreateAutoPredictorCommand.js +18 -41
  2. package/dist-cjs/commands/CreateDatasetCommand.js +18 -41
  3. package/dist-cjs/commands/CreateDatasetGroupCommand.js +18 -41
  4. package/dist-cjs/commands/CreateDatasetImportJobCommand.js +18 -41
  5. package/dist-cjs/commands/CreateExplainabilityCommand.js +18 -41
  6. package/dist-cjs/commands/CreateExplainabilityExportCommand.js +18 -41
  7. package/dist-cjs/commands/CreateForecastCommand.js +18 -41
  8. package/dist-cjs/commands/CreateForecastExportJobCommand.js +18 -41
  9. package/dist-cjs/commands/CreateMonitorCommand.js +18 -41
  10. package/dist-cjs/commands/CreatePredictorBacktestExportJobCommand.js +18 -41
  11. package/dist-cjs/commands/CreatePredictorCommand.js +18 -41
  12. package/dist-cjs/commands/CreateWhatIfAnalysisCommand.js +18 -41
  13. package/dist-cjs/commands/CreateWhatIfForecastCommand.js +18 -41
  14. package/dist-cjs/commands/CreateWhatIfForecastExportCommand.js +18 -41
  15. package/dist-cjs/commands/DeleteDatasetCommand.js +18 -41
  16. package/dist-cjs/commands/DeleteDatasetGroupCommand.js +18 -41
  17. package/dist-cjs/commands/DeleteDatasetImportJobCommand.js +18 -41
  18. package/dist-cjs/commands/DeleteExplainabilityCommand.js +18 -41
  19. package/dist-cjs/commands/DeleteExplainabilityExportCommand.js +18 -41
  20. package/dist-cjs/commands/DeleteForecastCommand.js +18 -41
  21. package/dist-cjs/commands/DeleteForecastExportJobCommand.js +18 -41
  22. package/dist-cjs/commands/DeleteMonitorCommand.js +18 -41
  23. package/dist-cjs/commands/DeletePredictorBacktestExportJobCommand.js +18 -41
  24. package/dist-cjs/commands/DeletePredictorCommand.js +18 -41
  25. package/dist-cjs/commands/DeleteResourceTreeCommand.js +18 -41
  26. package/dist-cjs/commands/DeleteWhatIfAnalysisCommand.js +18 -41
  27. package/dist-cjs/commands/DeleteWhatIfForecastCommand.js +18 -41
  28. package/dist-cjs/commands/DeleteWhatIfForecastExportCommand.js +18 -41
  29. package/dist-cjs/commands/DescribeAutoPredictorCommand.js +18 -41
  30. package/dist-cjs/commands/DescribeDatasetCommand.js +18 -41
  31. package/dist-cjs/commands/DescribeDatasetGroupCommand.js +18 -41
  32. package/dist-cjs/commands/DescribeDatasetImportJobCommand.js +18 -41
  33. package/dist-cjs/commands/DescribeExplainabilityCommand.js +18 -41
  34. package/dist-cjs/commands/DescribeExplainabilityExportCommand.js +18 -41
  35. package/dist-cjs/commands/DescribeForecastCommand.js +18 -41
  36. package/dist-cjs/commands/DescribeForecastExportJobCommand.js +18 -41
  37. package/dist-cjs/commands/DescribeMonitorCommand.js +18 -41
  38. package/dist-cjs/commands/DescribePredictorBacktestExportJobCommand.js +18 -41
  39. package/dist-cjs/commands/DescribePredictorCommand.js +18 -41
  40. package/dist-cjs/commands/DescribeWhatIfAnalysisCommand.js +18 -41
  41. package/dist-cjs/commands/DescribeWhatIfForecastCommand.js +18 -41
  42. package/dist-cjs/commands/DescribeWhatIfForecastExportCommand.js +18 -41
  43. package/dist-cjs/commands/GetAccuracyMetricsCommand.js +18 -41
  44. package/dist-cjs/commands/ListDatasetGroupsCommand.js +18 -41
  45. package/dist-cjs/commands/ListDatasetImportJobsCommand.js +18 -41
  46. package/dist-cjs/commands/ListDatasetsCommand.js +18 -41
  47. package/dist-cjs/commands/ListExplainabilitiesCommand.js +18 -41
  48. package/dist-cjs/commands/ListExplainabilityExportsCommand.js +18 -41
  49. package/dist-cjs/commands/ListForecastExportJobsCommand.js +18 -41
  50. package/dist-cjs/commands/ListForecastsCommand.js +18 -41
  51. package/dist-cjs/commands/ListMonitorEvaluationsCommand.js +18 -41
  52. package/dist-cjs/commands/ListMonitorsCommand.js +18 -41
  53. package/dist-cjs/commands/ListPredictorBacktestExportJobsCommand.js +18 -41
  54. package/dist-cjs/commands/ListPredictorsCommand.js +18 -41
  55. package/dist-cjs/commands/ListTagsForResourceCommand.js +18 -41
  56. package/dist-cjs/commands/ListWhatIfAnalysesCommand.js +18 -41
  57. package/dist-cjs/commands/ListWhatIfForecastExportsCommand.js +18 -41
  58. package/dist-cjs/commands/ListWhatIfForecastsCommand.js +18 -41
  59. package/dist-cjs/commands/ResumeResourceCommand.js +18 -41
  60. package/dist-cjs/commands/StopResourceCommand.js +18 -41
  61. package/dist-cjs/commands/TagResourceCommand.js +18 -41
  62. package/dist-cjs/commands/UntagResourceCommand.js +18 -41
  63. package/dist-cjs/commands/UpdateDatasetGroupCommand.js +18 -41
  64. package/dist-cjs/endpoint/EndpointParameters.js +7 -1
  65. package/dist-cjs/pagination/ListDatasetGroupsPaginator.js +2 -24
  66. package/dist-cjs/pagination/ListDatasetImportJobsPaginator.js +2 -24
  67. package/dist-cjs/pagination/ListDatasetsPaginator.js +2 -24
  68. package/dist-cjs/pagination/ListExplainabilitiesPaginator.js +2 -24
  69. package/dist-cjs/pagination/ListExplainabilityExportsPaginator.js +2 -24
  70. package/dist-cjs/pagination/ListForecastExportJobsPaginator.js +2 -24
  71. package/dist-cjs/pagination/ListForecastsPaginator.js +2 -24
  72. package/dist-cjs/pagination/ListMonitorEvaluationsPaginator.js +2 -24
  73. package/dist-cjs/pagination/ListMonitorsPaginator.js +2 -24
  74. package/dist-cjs/pagination/ListPredictorBacktestExportJobsPaginator.js +2 -24
  75. package/dist-cjs/pagination/ListPredictorsPaginator.js +2 -24
  76. package/dist-cjs/pagination/ListWhatIfAnalysesPaginator.js +2 -24
  77. package/dist-cjs/pagination/ListWhatIfForecastExportsPaginator.js +2 -24
  78. package/dist-cjs/pagination/ListWhatIfForecastsPaginator.js +2 -24
  79. package/dist-es/commands/CreateAutoPredictorCommand.js +18 -41
  80. package/dist-es/commands/CreateDatasetCommand.js +18 -41
  81. package/dist-es/commands/CreateDatasetGroupCommand.js +18 -41
  82. package/dist-es/commands/CreateDatasetImportJobCommand.js +18 -41
  83. package/dist-es/commands/CreateExplainabilityCommand.js +18 -41
  84. package/dist-es/commands/CreateExplainabilityExportCommand.js +18 -41
  85. package/dist-es/commands/CreateForecastCommand.js +18 -41
  86. package/dist-es/commands/CreateForecastExportJobCommand.js +18 -41
  87. package/dist-es/commands/CreateMonitorCommand.js +18 -41
  88. package/dist-es/commands/CreatePredictorBacktestExportJobCommand.js +18 -41
  89. package/dist-es/commands/CreatePredictorCommand.js +18 -41
  90. package/dist-es/commands/CreateWhatIfAnalysisCommand.js +18 -41
  91. package/dist-es/commands/CreateWhatIfForecastCommand.js +18 -41
  92. package/dist-es/commands/CreateWhatIfForecastExportCommand.js +18 -41
  93. package/dist-es/commands/DeleteDatasetCommand.js +18 -41
  94. package/dist-es/commands/DeleteDatasetGroupCommand.js +18 -41
  95. package/dist-es/commands/DeleteDatasetImportJobCommand.js +18 -41
  96. package/dist-es/commands/DeleteExplainabilityCommand.js +18 -41
  97. package/dist-es/commands/DeleteExplainabilityExportCommand.js +18 -41
  98. package/dist-es/commands/DeleteForecastCommand.js +18 -41
  99. package/dist-es/commands/DeleteForecastExportJobCommand.js +18 -41
  100. package/dist-es/commands/DeleteMonitorCommand.js +18 -41
  101. package/dist-es/commands/DeletePredictorBacktestExportJobCommand.js +18 -41
  102. package/dist-es/commands/DeletePredictorCommand.js +18 -41
  103. package/dist-es/commands/DeleteResourceTreeCommand.js +18 -41
  104. package/dist-es/commands/DeleteWhatIfAnalysisCommand.js +18 -41
  105. package/dist-es/commands/DeleteWhatIfForecastCommand.js +18 -41
  106. package/dist-es/commands/DeleteWhatIfForecastExportCommand.js +18 -41
  107. package/dist-es/commands/DescribeAutoPredictorCommand.js +18 -41
  108. package/dist-es/commands/DescribeDatasetCommand.js +18 -41
  109. package/dist-es/commands/DescribeDatasetGroupCommand.js +18 -41
  110. package/dist-es/commands/DescribeDatasetImportJobCommand.js +18 -41
  111. package/dist-es/commands/DescribeExplainabilityCommand.js +18 -41
  112. package/dist-es/commands/DescribeExplainabilityExportCommand.js +18 -41
  113. package/dist-es/commands/DescribeForecastCommand.js +18 -41
  114. package/dist-es/commands/DescribeForecastExportJobCommand.js +18 -41
  115. package/dist-es/commands/DescribeMonitorCommand.js +18 -41
  116. package/dist-es/commands/DescribePredictorBacktestExportJobCommand.js +18 -41
  117. package/dist-es/commands/DescribePredictorCommand.js +18 -41
  118. package/dist-es/commands/DescribeWhatIfAnalysisCommand.js +18 -41
  119. package/dist-es/commands/DescribeWhatIfForecastCommand.js +18 -41
  120. package/dist-es/commands/DescribeWhatIfForecastExportCommand.js +18 -41
  121. package/dist-es/commands/GetAccuracyMetricsCommand.js +18 -41
  122. package/dist-es/commands/ListDatasetGroupsCommand.js +18 -41
  123. package/dist-es/commands/ListDatasetImportJobsCommand.js +18 -41
  124. package/dist-es/commands/ListDatasetsCommand.js +18 -41
  125. package/dist-es/commands/ListExplainabilitiesCommand.js +18 -41
  126. package/dist-es/commands/ListExplainabilityExportsCommand.js +18 -41
  127. package/dist-es/commands/ListForecastExportJobsCommand.js +18 -41
  128. package/dist-es/commands/ListForecastsCommand.js +18 -41
  129. package/dist-es/commands/ListMonitorEvaluationsCommand.js +18 -41
  130. package/dist-es/commands/ListMonitorsCommand.js +18 -41
  131. package/dist-es/commands/ListPredictorBacktestExportJobsCommand.js +18 -41
  132. package/dist-es/commands/ListPredictorsCommand.js +18 -41
  133. package/dist-es/commands/ListTagsForResourceCommand.js +18 -41
  134. package/dist-es/commands/ListWhatIfAnalysesCommand.js +18 -41
  135. package/dist-es/commands/ListWhatIfForecastExportsCommand.js +18 -41
  136. package/dist-es/commands/ListWhatIfForecastsCommand.js +18 -41
  137. package/dist-es/commands/ResumeResourceCommand.js +18 -41
  138. package/dist-es/commands/StopResourceCommand.js +18 -41
  139. package/dist-es/commands/TagResourceCommand.js +18 -41
  140. package/dist-es/commands/UntagResourceCommand.js +18 -41
  141. package/dist-es/commands/UpdateDatasetGroupCommand.js +18 -41
  142. package/dist-es/endpoint/EndpointParameters.js +6 -0
  143. package/dist-es/pagination/ListDatasetGroupsPaginator.js +2 -23
  144. package/dist-es/pagination/ListDatasetImportJobsPaginator.js +2 -23
  145. package/dist-es/pagination/ListDatasetsPaginator.js +2 -23
  146. package/dist-es/pagination/ListExplainabilitiesPaginator.js +2 -23
  147. package/dist-es/pagination/ListExplainabilityExportsPaginator.js +2 -23
  148. package/dist-es/pagination/ListForecastExportJobsPaginator.js +2 -23
  149. package/dist-es/pagination/ListForecastsPaginator.js +2 -23
  150. package/dist-es/pagination/ListMonitorEvaluationsPaginator.js +2 -23
  151. package/dist-es/pagination/ListMonitorsPaginator.js +2 -23
  152. package/dist-es/pagination/ListPredictorBacktestExportJobsPaginator.js +2 -23
  153. package/dist-es/pagination/ListPredictorsPaginator.js +2 -23
  154. package/dist-es/pagination/ListWhatIfAnalysesPaginator.js +2 -23
  155. package/dist-es/pagination/ListWhatIfForecastExportsPaginator.js +2 -23
  156. package/dist-es/pagination/ListWhatIfForecastsPaginator.js +2 -23
  157. package/dist-types/commands/CreateAutoPredictorCommand.d.ts +6 -21
  158. package/dist-types/commands/CreateDatasetCommand.d.ts +6 -21
  159. package/dist-types/commands/CreateDatasetGroupCommand.d.ts +6 -21
  160. package/dist-types/commands/CreateDatasetImportJobCommand.d.ts +6 -21
  161. package/dist-types/commands/CreateExplainabilityCommand.d.ts +6 -21
  162. package/dist-types/commands/CreateExplainabilityExportCommand.d.ts +6 -21
  163. package/dist-types/commands/CreateForecastCommand.d.ts +6 -21
  164. package/dist-types/commands/CreateForecastExportJobCommand.d.ts +6 -21
  165. package/dist-types/commands/CreateMonitorCommand.d.ts +6 -21
  166. package/dist-types/commands/CreatePredictorBacktestExportJobCommand.d.ts +6 -21
  167. package/dist-types/commands/CreatePredictorCommand.d.ts +6 -21
  168. package/dist-types/commands/CreateWhatIfAnalysisCommand.d.ts +6 -21
  169. package/dist-types/commands/CreateWhatIfForecastCommand.d.ts +6 -21
  170. package/dist-types/commands/CreateWhatIfForecastExportCommand.d.ts +6 -21
  171. package/dist-types/commands/DeleteDatasetCommand.d.ts +6 -21
  172. package/dist-types/commands/DeleteDatasetGroupCommand.d.ts +6 -21
  173. package/dist-types/commands/DeleteDatasetImportJobCommand.d.ts +6 -21
  174. package/dist-types/commands/DeleteExplainabilityCommand.d.ts +6 -21
  175. package/dist-types/commands/DeleteExplainabilityExportCommand.d.ts +6 -21
  176. package/dist-types/commands/DeleteForecastCommand.d.ts +6 -21
  177. package/dist-types/commands/DeleteForecastExportJobCommand.d.ts +6 -21
  178. package/dist-types/commands/DeleteMonitorCommand.d.ts +6 -21
  179. package/dist-types/commands/DeletePredictorBacktestExportJobCommand.d.ts +6 -21
  180. package/dist-types/commands/DeletePredictorCommand.d.ts +6 -21
  181. package/dist-types/commands/DeleteResourceTreeCommand.d.ts +6 -21
  182. package/dist-types/commands/DeleteWhatIfAnalysisCommand.d.ts +6 -21
  183. package/dist-types/commands/DeleteWhatIfForecastCommand.d.ts +6 -21
  184. package/dist-types/commands/DeleteWhatIfForecastExportCommand.d.ts +6 -21
  185. package/dist-types/commands/DescribeAutoPredictorCommand.d.ts +6 -21
  186. package/dist-types/commands/DescribeDatasetCommand.d.ts +6 -21
  187. package/dist-types/commands/DescribeDatasetGroupCommand.d.ts +6 -21
  188. package/dist-types/commands/DescribeDatasetImportJobCommand.d.ts +6 -21
  189. package/dist-types/commands/DescribeExplainabilityCommand.d.ts +6 -21
  190. package/dist-types/commands/DescribeExplainabilityExportCommand.d.ts +6 -21
  191. package/dist-types/commands/DescribeForecastCommand.d.ts +6 -21
  192. package/dist-types/commands/DescribeForecastExportJobCommand.d.ts +6 -21
  193. package/dist-types/commands/DescribeMonitorCommand.d.ts +6 -21
  194. package/dist-types/commands/DescribePredictorBacktestExportJobCommand.d.ts +6 -21
  195. package/dist-types/commands/DescribePredictorCommand.d.ts +6 -21
  196. package/dist-types/commands/DescribeWhatIfAnalysisCommand.d.ts +6 -21
  197. package/dist-types/commands/DescribeWhatIfForecastCommand.d.ts +6 -21
  198. package/dist-types/commands/DescribeWhatIfForecastExportCommand.d.ts +6 -21
  199. package/dist-types/commands/GetAccuracyMetricsCommand.d.ts +6 -21
  200. package/dist-types/commands/ListDatasetGroupsCommand.d.ts +6 -21
  201. package/dist-types/commands/ListDatasetImportJobsCommand.d.ts +6 -21
  202. package/dist-types/commands/ListDatasetsCommand.d.ts +6 -21
  203. package/dist-types/commands/ListExplainabilitiesCommand.d.ts +6 -21
  204. package/dist-types/commands/ListExplainabilityExportsCommand.d.ts +6 -21
  205. package/dist-types/commands/ListForecastExportJobsCommand.d.ts +6 -21
  206. package/dist-types/commands/ListForecastsCommand.d.ts +6 -21
  207. package/dist-types/commands/ListMonitorEvaluationsCommand.d.ts +6 -21
  208. package/dist-types/commands/ListMonitorsCommand.d.ts +6 -21
  209. package/dist-types/commands/ListPredictorBacktestExportJobsCommand.d.ts +6 -21
  210. package/dist-types/commands/ListPredictorsCommand.d.ts +6 -21
  211. package/dist-types/commands/ListTagsForResourceCommand.d.ts +6 -21
  212. package/dist-types/commands/ListWhatIfAnalysesCommand.d.ts +6 -21
  213. package/dist-types/commands/ListWhatIfForecastExportsCommand.d.ts +6 -21
  214. package/dist-types/commands/ListWhatIfForecastsCommand.d.ts +6 -21
  215. package/dist-types/commands/ResumeResourceCommand.d.ts +6 -21
  216. package/dist-types/commands/StopResourceCommand.d.ts +6 -21
  217. package/dist-types/commands/TagResourceCommand.d.ts +6 -21
  218. package/dist-types/commands/UntagResourceCommand.d.ts +6 -21
  219. package/dist-types/commands/UpdateDatasetGroupCommand.d.ts +6 -21
  220. package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
  221. package/dist-types/pagination/ListDatasetGroupsPaginator.d.ts +1 -1
  222. package/dist-types/pagination/ListDatasetImportJobsPaginator.d.ts +1 -1
  223. package/dist-types/pagination/ListDatasetsPaginator.d.ts +1 -1
  224. package/dist-types/pagination/ListExplainabilitiesPaginator.d.ts +1 -1
  225. package/dist-types/pagination/ListExplainabilityExportsPaginator.d.ts +1 -1
  226. package/dist-types/pagination/ListForecastExportJobsPaginator.d.ts +1 -1
  227. package/dist-types/pagination/ListForecastsPaginator.d.ts +1 -1
  228. package/dist-types/pagination/ListMonitorEvaluationsPaginator.d.ts +1 -1
  229. package/dist-types/pagination/ListMonitorsPaginator.d.ts +1 -1
  230. package/dist-types/pagination/ListPredictorBacktestExportJobsPaginator.d.ts +1 -1
  231. package/dist-types/pagination/ListPredictorsPaginator.d.ts +1 -1
  232. package/dist-types/pagination/ListWhatIfAnalysesPaginator.d.ts +1 -1
  233. package/dist-types/pagination/ListWhatIfForecastExportsPaginator.d.ts +1 -1
  234. package/dist-types/pagination/ListWhatIfForecastsPaginator.d.ts +1 -1
  235. package/dist-types/ts3.4/commands/CreateAutoPredictorCommand.d.ts +14 -23
  236. package/dist-types/ts3.4/commands/CreateDatasetCommand.d.ts +14 -23
  237. package/dist-types/ts3.4/commands/CreateDatasetGroupCommand.d.ts +14 -23
  238. package/dist-types/ts3.4/commands/CreateDatasetImportJobCommand.d.ts +12 -24
  239. package/dist-types/ts3.4/commands/CreateExplainabilityCommand.d.ts +12 -24
  240. package/dist-types/ts3.4/commands/CreateExplainabilityExportCommand.d.ts +12 -24
  241. package/dist-types/ts3.4/commands/CreateForecastCommand.d.ts +14 -23
  242. package/dist-types/ts3.4/commands/CreateForecastExportJobCommand.d.ts +12 -24
  243. package/dist-types/ts3.4/commands/CreateMonitorCommand.d.ts +14 -23
  244. package/dist-types/ts3.4/commands/CreatePredictorBacktestExportJobCommand.d.ts +12 -24
  245. package/dist-types/ts3.4/commands/CreatePredictorCommand.d.ts +14 -23
  246. package/dist-types/ts3.4/commands/CreateWhatIfAnalysisCommand.d.ts +12 -24
  247. package/dist-types/ts3.4/commands/CreateWhatIfForecastCommand.d.ts +12 -24
  248. package/dist-types/ts3.4/commands/CreateWhatIfForecastExportCommand.d.ts +12 -24
  249. package/dist-types/ts3.4/commands/DeleteDatasetCommand.d.ts +14 -23
  250. package/dist-types/ts3.4/commands/DeleteDatasetGroupCommand.d.ts +14 -23
  251. package/dist-types/ts3.4/commands/DeleteDatasetImportJobCommand.d.ts +12 -24
  252. package/dist-types/ts3.4/commands/DeleteExplainabilityCommand.d.ts +12 -24
  253. package/dist-types/ts3.4/commands/DeleteExplainabilityExportCommand.d.ts +12 -24
  254. package/dist-types/ts3.4/commands/DeleteForecastCommand.d.ts +14 -23
  255. package/dist-types/ts3.4/commands/DeleteForecastExportJobCommand.d.ts +12 -24
  256. package/dist-types/ts3.4/commands/DeleteMonitorCommand.d.ts +14 -23
  257. package/dist-types/ts3.4/commands/DeletePredictorBacktestExportJobCommand.d.ts +12 -24
  258. package/dist-types/ts3.4/commands/DeletePredictorCommand.d.ts +14 -23
  259. package/dist-types/ts3.4/commands/DeleteResourceTreeCommand.d.ts +14 -23
  260. package/dist-types/ts3.4/commands/DeleteWhatIfAnalysisCommand.d.ts +12 -24
  261. package/dist-types/ts3.4/commands/DeleteWhatIfForecastCommand.d.ts +12 -24
  262. package/dist-types/ts3.4/commands/DeleteWhatIfForecastExportCommand.d.ts +12 -24
  263. package/dist-types/ts3.4/commands/DescribeAutoPredictorCommand.d.ts +12 -24
  264. package/dist-types/ts3.4/commands/DescribeDatasetCommand.d.ts +14 -23
  265. package/dist-types/ts3.4/commands/DescribeDatasetGroupCommand.d.ts +12 -24
  266. package/dist-types/ts3.4/commands/DescribeDatasetImportJobCommand.d.ts +12 -24
  267. package/dist-types/ts3.4/commands/DescribeExplainabilityCommand.d.ts +12 -24
  268. package/dist-types/ts3.4/commands/DescribeExplainabilityExportCommand.d.ts +12 -24
  269. package/dist-types/ts3.4/commands/DescribeForecastCommand.d.ts +14 -23
  270. package/dist-types/ts3.4/commands/DescribeForecastExportJobCommand.d.ts +12 -24
  271. package/dist-types/ts3.4/commands/DescribeMonitorCommand.d.ts +14 -23
  272. package/dist-types/ts3.4/commands/DescribePredictorBacktestExportJobCommand.d.ts +12 -24
  273. package/dist-types/ts3.4/commands/DescribePredictorCommand.d.ts +14 -23
  274. package/dist-types/ts3.4/commands/DescribeWhatIfAnalysisCommand.d.ts +12 -24
  275. package/dist-types/ts3.4/commands/DescribeWhatIfForecastCommand.d.ts +12 -24
  276. package/dist-types/ts3.4/commands/DescribeWhatIfForecastExportCommand.d.ts +12 -24
  277. package/dist-types/ts3.4/commands/GetAccuracyMetricsCommand.d.ts +14 -23
  278. package/dist-types/ts3.4/commands/ListDatasetGroupsCommand.d.ts +14 -23
  279. package/dist-types/ts3.4/commands/ListDatasetImportJobsCommand.d.ts +12 -24
  280. package/dist-types/ts3.4/commands/ListDatasetsCommand.d.ts +14 -23
  281. package/dist-types/ts3.4/commands/ListExplainabilitiesCommand.d.ts +12 -24
  282. package/dist-types/ts3.4/commands/ListExplainabilityExportsCommand.d.ts +12 -24
  283. package/dist-types/ts3.4/commands/ListForecastExportJobsCommand.d.ts +12 -24
  284. package/dist-types/ts3.4/commands/ListForecastsCommand.d.ts +14 -23
  285. package/dist-types/ts3.4/commands/ListMonitorEvaluationsCommand.d.ts +12 -24
  286. package/dist-types/ts3.4/commands/ListMonitorsCommand.d.ts +14 -23
  287. package/dist-types/ts3.4/commands/ListPredictorBacktestExportJobsCommand.d.ts +12 -24
  288. package/dist-types/ts3.4/commands/ListPredictorsCommand.d.ts +14 -23
  289. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +14 -23
  290. package/dist-types/ts3.4/commands/ListWhatIfAnalysesCommand.d.ts +14 -23
  291. package/dist-types/ts3.4/commands/ListWhatIfForecastExportsCommand.d.ts +12 -24
  292. package/dist-types/ts3.4/commands/ListWhatIfForecastsCommand.d.ts +14 -23
  293. package/dist-types/ts3.4/commands/ResumeResourceCommand.d.ts +14 -23
  294. package/dist-types/ts3.4/commands/StopResourceCommand.d.ts +14 -23
  295. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +14 -23
  296. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +14 -23
  297. package/dist-types/ts3.4/commands/UpdateDatasetGroupCommand.d.ts +14 -23
  298. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
  299. package/dist-types/ts3.4/pagination/ListDatasetGroupsPaginator.d.ts +3 -3
  300. package/dist-types/ts3.4/pagination/ListDatasetImportJobsPaginator.d.ts +3 -3
  301. package/dist-types/ts3.4/pagination/ListDatasetsPaginator.d.ts +3 -3
  302. package/dist-types/ts3.4/pagination/ListExplainabilitiesPaginator.d.ts +3 -3
  303. package/dist-types/ts3.4/pagination/ListExplainabilityExportsPaginator.d.ts +3 -3
  304. package/dist-types/ts3.4/pagination/ListForecastExportJobsPaginator.d.ts +3 -3
  305. package/dist-types/ts3.4/pagination/ListForecastsPaginator.d.ts +3 -3
  306. package/dist-types/ts3.4/pagination/ListMonitorEvaluationsPaginator.d.ts +3 -3
  307. package/dist-types/ts3.4/pagination/ListMonitorsPaginator.d.ts +3 -3
  308. package/dist-types/ts3.4/pagination/ListPredictorBacktestExportJobsPaginator.d.ts +3 -3
  309. package/dist-types/ts3.4/pagination/ListPredictorsPaginator.d.ts +3 -3
  310. package/dist-types/ts3.4/pagination/ListWhatIfAnalysesPaginator.d.ts +3 -3
  311. package/dist-types/ts3.4/pagination/ListWhatIfForecastExportsPaginator.d.ts +3 -3
  312. package/dist-types/ts3.4/pagination/ListWhatIfForecastsPaginator.d.ts +3 -3
  313. package/package.json +11 -10
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListDatasetGroups = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListDatasetGroupsCommand_1 = require("../commands/ListDatasetGroupsCommand");
5
6
  const ForecastClient_1 = require("../ForecastClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListDatasetGroupsCommand_1.ListDatasetGroupsCommand(input), ...args);
8
- };
9
- async function* paginateListDatasetGroups(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof ForecastClient_1.ForecastClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Forecast | ForecastClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListDatasetGroups = paginateListDatasetGroups;
7
+ exports.paginateListDatasetGroups = (0, core_1.createPaginator)(ForecastClient_1.ForecastClient, ListDatasetGroupsCommand_1.ListDatasetGroupsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListDatasetImportJobs = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListDatasetImportJobsCommand_1 = require("../commands/ListDatasetImportJobsCommand");
5
6
  const ForecastClient_1 = require("../ForecastClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListDatasetImportJobsCommand_1.ListDatasetImportJobsCommand(input), ...args);
8
- };
9
- async function* paginateListDatasetImportJobs(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof ForecastClient_1.ForecastClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Forecast | ForecastClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListDatasetImportJobs = paginateListDatasetImportJobs;
7
+ exports.paginateListDatasetImportJobs = (0, core_1.createPaginator)(ForecastClient_1.ForecastClient, ListDatasetImportJobsCommand_1.ListDatasetImportJobsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListDatasets = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListDatasetsCommand_1 = require("../commands/ListDatasetsCommand");
5
6
  const ForecastClient_1 = require("../ForecastClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListDatasetsCommand_1.ListDatasetsCommand(input), ...args);
8
- };
9
- async function* paginateListDatasets(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof ForecastClient_1.ForecastClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Forecast | ForecastClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListDatasets = paginateListDatasets;
7
+ exports.paginateListDatasets = (0, core_1.createPaginator)(ForecastClient_1.ForecastClient, ListDatasetsCommand_1.ListDatasetsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListExplainabilities = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListExplainabilitiesCommand_1 = require("../commands/ListExplainabilitiesCommand");
5
6
  const ForecastClient_1 = require("../ForecastClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListExplainabilitiesCommand_1.ListExplainabilitiesCommand(input), ...args);
8
- };
9
- async function* paginateListExplainabilities(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof ForecastClient_1.ForecastClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Forecast | ForecastClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListExplainabilities = paginateListExplainabilities;
7
+ exports.paginateListExplainabilities = (0, core_1.createPaginator)(ForecastClient_1.ForecastClient, ListExplainabilitiesCommand_1.ListExplainabilitiesCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListExplainabilityExports = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListExplainabilityExportsCommand_1 = require("../commands/ListExplainabilityExportsCommand");
5
6
  const ForecastClient_1 = require("../ForecastClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListExplainabilityExportsCommand_1.ListExplainabilityExportsCommand(input), ...args);
8
- };
9
- async function* paginateListExplainabilityExports(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof ForecastClient_1.ForecastClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Forecast | ForecastClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListExplainabilityExports = paginateListExplainabilityExports;
7
+ exports.paginateListExplainabilityExports = (0, core_1.createPaginator)(ForecastClient_1.ForecastClient, ListExplainabilityExportsCommand_1.ListExplainabilityExportsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListForecastExportJobs = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListForecastExportJobsCommand_1 = require("../commands/ListForecastExportJobsCommand");
5
6
  const ForecastClient_1 = require("../ForecastClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListForecastExportJobsCommand_1.ListForecastExportJobsCommand(input), ...args);
8
- };
9
- async function* paginateListForecastExportJobs(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof ForecastClient_1.ForecastClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Forecast | ForecastClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListForecastExportJobs = paginateListForecastExportJobs;
7
+ exports.paginateListForecastExportJobs = (0, core_1.createPaginator)(ForecastClient_1.ForecastClient, ListForecastExportJobsCommand_1.ListForecastExportJobsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListForecasts = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListForecastsCommand_1 = require("../commands/ListForecastsCommand");
5
6
  const ForecastClient_1 = require("../ForecastClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListForecastsCommand_1.ListForecastsCommand(input), ...args);
8
- };
9
- async function* paginateListForecasts(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof ForecastClient_1.ForecastClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Forecast | ForecastClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListForecasts = paginateListForecasts;
7
+ exports.paginateListForecasts = (0, core_1.createPaginator)(ForecastClient_1.ForecastClient, ListForecastsCommand_1.ListForecastsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListMonitorEvaluations = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListMonitorEvaluationsCommand_1 = require("../commands/ListMonitorEvaluationsCommand");
5
6
  const ForecastClient_1 = require("../ForecastClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListMonitorEvaluationsCommand_1.ListMonitorEvaluationsCommand(input), ...args);
8
- };
9
- async function* paginateListMonitorEvaluations(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof ForecastClient_1.ForecastClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Forecast | ForecastClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListMonitorEvaluations = paginateListMonitorEvaluations;
7
+ exports.paginateListMonitorEvaluations = (0, core_1.createPaginator)(ForecastClient_1.ForecastClient, ListMonitorEvaluationsCommand_1.ListMonitorEvaluationsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListMonitors = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListMonitorsCommand_1 = require("../commands/ListMonitorsCommand");
5
6
  const ForecastClient_1 = require("../ForecastClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListMonitorsCommand_1.ListMonitorsCommand(input), ...args);
8
- };
9
- async function* paginateListMonitors(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof ForecastClient_1.ForecastClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Forecast | ForecastClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListMonitors = paginateListMonitors;
7
+ exports.paginateListMonitors = (0, core_1.createPaginator)(ForecastClient_1.ForecastClient, ListMonitorsCommand_1.ListMonitorsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListPredictorBacktestExportJobs = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListPredictorBacktestExportJobsCommand_1 = require("../commands/ListPredictorBacktestExportJobsCommand");
5
6
  const ForecastClient_1 = require("../ForecastClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListPredictorBacktestExportJobsCommand_1.ListPredictorBacktestExportJobsCommand(input), ...args);
8
- };
9
- async function* paginateListPredictorBacktestExportJobs(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof ForecastClient_1.ForecastClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Forecast | ForecastClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListPredictorBacktestExportJobs = paginateListPredictorBacktestExportJobs;
7
+ exports.paginateListPredictorBacktestExportJobs = (0, core_1.createPaginator)(ForecastClient_1.ForecastClient, ListPredictorBacktestExportJobsCommand_1.ListPredictorBacktestExportJobsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListPredictors = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListPredictorsCommand_1 = require("../commands/ListPredictorsCommand");
5
6
  const ForecastClient_1 = require("../ForecastClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListPredictorsCommand_1.ListPredictorsCommand(input), ...args);
8
- };
9
- async function* paginateListPredictors(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof ForecastClient_1.ForecastClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Forecast | ForecastClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListPredictors = paginateListPredictors;
7
+ exports.paginateListPredictors = (0, core_1.createPaginator)(ForecastClient_1.ForecastClient, ListPredictorsCommand_1.ListPredictorsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListWhatIfAnalyses = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListWhatIfAnalysesCommand_1 = require("../commands/ListWhatIfAnalysesCommand");
5
6
  const ForecastClient_1 = require("../ForecastClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListWhatIfAnalysesCommand_1.ListWhatIfAnalysesCommand(input), ...args);
8
- };
9
- async function* paginateListWhatIfAnalyses(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof ForecastClient_1.ForecastClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Forecast | ForecastClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListWhatIfAnalyses = paginateListWhatIfAnalyses;
7
+ exports.paginateListWhatIfAnalyses = (0, core_1.createPaginator)(ForecastClient_1.ForecastClient, ListWhatIfAnalysesCommand_1.ListWhatIfAnalysesCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListWhatIfForecastExports = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListWhatIfForecastExportsCommand_1 = require("../commands/ListWhatIfForecastExportsCommand");
5
6
  const ForecastClient_1 = require("../ForecastClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListWhatIfForecastExportsCommand_1.ListWhatIfForecastExportsCommand(input), ...args);
8
- };
9
- async function* paginateListWhatIfForecastExports(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof ForecastClient_1.ForecastClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Forecast | ForecastClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListWhatIfForecastExports = paginateListWhatIfForecastExports;
7
+ exports.paginateListWhatIfForecastExports = (0, core_1.createPaginator)(ForecastClient_1.ForecastClient, ListWhatIfForecastExportsCommand_1.ListWhatIfForecastExportsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListWhatIfForecasts = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListWhatIfForecastsCommand_1 = require("../commands/ListWhatIfForecastsCommand");
5
6
  const ForecastClient_1 = require("../ForecastClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListWhatIfForecastsCommand_1.ListWhatIfForecastsCommand(input), ...args);
8
- };
9
- async function* paginateListWhatIfForecasts(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof ForecastClient_1.ForecastClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Forecast | ForecastClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListWhatIfForecasts = paginateListWhatIfForecasts;
7
+ exports.paginateListWhatIfForecasts = (0, core_1.createPaginator)(ForecastClient_1.ForecastClient, ListWhatIfForecastsCommand_1.ListWhatIfForecastsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,48 +1,25 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { CreateAutoPredictorRequestFilterSensitiveLog, } from "../models/models_0";
6
6
  import { de_CreateAutoPredictorCommand, se_CreateAutoPredictorCommand } from "../protocols/Aws_json1_1";
7
7
  export { $Command };
8
- export class CreateAutoPredictorCommand extends $Command {
9
- static getEndpointParameterInstructions() {
10
- return {
11
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
- Endpoint: { type: "builtInParams", name: "endpoint" },
13
- Region: { type: "builtInParams", name: "region" },
14
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
15
- };
16
- }
17
- constructor(input) {
18
- super();
19
- this.input = input;
20
- }
21
- resolveMiddleware(clientStack, configuration, options) {
22
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
23
- this.middlewareStack.use(getEndpointPlugin(configuration, CreateAutoPredictorCommand.getEndpointParameterInstructions()));
24
- const stack = clientStack.concat(this.middlewareStack);
25
- const { logger } = configuration;
26
- const clientName = "ForecastClient";
27
- const commandName = "CreateAutoPredictorCommand";
28
- const handlerExecutionContext = {
29
- logger,
30
- clientName,
31
- commandName,
32
- inputFilterSensitiveLog: CreateAutoPredictorRequestFilterSensitiveLog,
33
- outputFilterSensitiveLog: (_) => _,
34
- [SMITHY_CONTEXT_KEY]: {
35
- service: "AmazonForecast",
36
- operation: "CreateAutoPredictor",
37
- },
38
- };
39
- const { requestHandler } = configuration;
40
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
41
- }
42
- serialize(input, context) {
43
- return se_CreateAutoPredictorCommand(input, context);
44
- }
45
- deserialize(output, context) {
46
- return de_CreateAutoPredictorCommand(output, context);
47
- }
8
+ export class CreateAutoPredictorCommand extends $Command
9
+ .classBuilder()
10
+ .ep({
11
+ ...commonParams,
12
+ })
13
+ .m(function (Command, cs, config, o) {
14
+ return [
15
+ getSerdePlugin(config, this.serialize, this.deserialize),
16
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
17
+ ];
18
+ })
19
+ .s("AmazonForecast", "CreateAutoPredictor", {})
20
+ .n("ForecastClient", "CreateAutoPredictorCommand")
21
+ .f(CreateAutoPredictorRequestFilterSensitiveLog, void 0)
22
+ .ser(se_CreateAutoPredictorCommand)
23
+ .de(de_CreateAutoPredictorCommand)
24
+ .build() {
48
25
  }
@@ -1,48 +1,25 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { CreateDatasetRequestFilterSensitiveLog, } from "../models/models_0";
6
6
  import { de_CreateDatasetCommand, se_CreateDatasetCommand } from "../protocols/Aws_json1_1";
7
7
  export { $Command };
8
- export class CreateDatasetCommand extends $Command {
9
- static getEndpointParameterInstructions() {
10
- return {
11
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
- Endpoint: { type: "builtInParams", name: "endpoint" },
13
- Region: { type: "builtInParams", name: "region" },
14
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
15
- };
16
- }
17
- constructor(input) {
18
- super();
19
- this.input = input;
20
- }
21
- resolveMiddleware(clientStack, configuration, options) {
22
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
23
- this.middlewareStack.use(getEndpointPlugin(configuration, CreateDatasetCommand.getEndpointParameterInstructions()));
24
- const stack = clientStack.concat(this.middlewareStack);
25
- const { logger } = configuration;
26
- const clientName = "ForecastClient";
27
- const commandName = "CreateDatasetCommand";
28
- const handlerExecutionContext = {
29
- logger,
30
- clientName,
31
- commandName,
32
- inputFilterSensitiveLog: CreateDatasetRequestFilterSensitiveLog,
33
- outputFilterSensitiveLog: (_) => _,
34
- [SMITHY_CONTEXT_KEY]: {
35
- service: "AmazonForecast",
36
- operation: "CreateDataset",
37
- },
38
- };
39
- const { requestHandler } = configuration;
40
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
41
- }
42
- serialize(input, context) {
43
- return se_CreateDatasetCommand(input, context);
44
- }
45
- deserialize(output, context) {
46
- return de_CreateDatasetCommand(output, context);
47
- }
8
+ export class CreateDatasetCommand extends $Command
9
+ .classBuilder()
10
+ .ep({
11
+ ...commonParams,
12
+ })
13
+ .m(function (Command, cs, config, o) {
14
+ return [
15
+ getSerdePlugin(config, this.serialize, this.deserialize),
16
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
17
+ ];
18
+ })
19
+ .s("AmazonForecast", "CreateDataset", {})
20
+ .n("ForecastClient", "CreateDatasetCommand")
21
+ .f(CreateDatasetRequestFilterSensitiveLog, void 0)
22
+ .ser(se_CreateDatasetCommand)
23
+ .de(de_CreateDatasetCommand)
24
+ .build() {
48
25
  }