@aws-sdk/client-lookoutequipment 3.35.0 → 3.38.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 (240) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/dist-cjs/LookoutEquipment.js +0 -5
  3. package/dist-cjs/LookoutEquipmentClient.js +0 -10
  4. package/dist-cjs/commands/CreateDatasetCommand.js +0 -28
  5. package/dist-cjs/commands/CreateInferenceSchedulerCommand.js +0 -29
  6. package/dist-cjs/commands/CreateModelCommand.js +0 -33
  7. package/dist-cjs/commands/DeleteDatasetCommand.js +0 -29
  8. package/dist-cjs/commands/DeleteInferenceSchedulerCommand.js +0 -26
  9. package/dist-cjs/commands/DeleteModelCommand.js +0 -26
  10. package/dist-cjs/commands/DescribeDataIngestionJobCommand.js +0 -26
  11. package/dist-cjs/commands/DescribeDatasetCommand.js +0 -25
  12. package/dist-cjs/commands/DescribeInferenceSchedulerCommand.js +0 -26
  13. package/dist-cjs/commands/DescribeModelCommand.js +0 -26
  14. package/dist-cjs/commands/ListDataIngestionJobsCommand.js +0 -26
  15. package/dist-cjs/commands/ListDatasetsCommand.js +0 -26
  16. package/dist-cjs/commands/ListInferenceExecutionsCommand.js +0 -26
  17. package/dist-cjs/commands/ListInferenceSchedulersCommand.js +0 -26
  18. package/dist-cjs/commands/ListModelsCommand.js +0 -26
  19. package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -25
  20. package/dist-cjs/commands/StartDataIngestionJobCommand.js +0 -25
  21. package/dist-cjs/commands/StartInferenceSchedulerCommand.js +0 -25
  22. package/dist-cjs/commands/StopInferenceSchedulerCommand.js +0 -25
  23. package/dist-cjs/commands/TagResourceCommand.js +0 -29
  24. package/dist-cjs/commands/UntagResourceCommand.js +0 -25
  25. package/dist-cjs/commands/UpdateInferenceSchedulerCommand.js +0 -25
  26. package/dist-cjs/commands/index.js +25 -0
  27. package/dist-cjs/endpoints.js +1 -2
  28. package/dist-cjs/index.js +4 -31
  29. package/dist-cjs/models/index.js +0 -1
  30. package/dist-cjs/models/models_0.js +0 -196
  31. package/dist-cjs/pagination/Interfaces.js +0 -1
  32. package/dist-cjs/pagination/ListDataIngestionJobsPaginator.js +0 -11
  33. package/dist-cjs/pagination/ListDatasetsPaginator.js +0 -11
  34. package/dist-cjs/pagination/ListInferenceExecutionsPaginator.js +0 -11
  35. package/dist-cjs/pagination/ListInferenceSchedulersPaginator.js +0 -11
  36. package/dist-cjs/pagination/ListModelsPaginator.js +0 -11
  37. package/dist-cjs/pagination/index.js +9 -0
  38. package/dist-cjs/protocols/Aws_json1_0.js +0 -6
  39. package/dist-cjs/runtimeConfig.browser.js +1 -6
  40. package/dist-cjs/runtimeConfig.js +2 -7
  41. package/dist-cjs/runtimeConfig.native.js +0 -4
  42. package/dist-cjs/runtimeConfig.shared.js +0 -4
  43. package/dist-es/LookoutEquipment.js +0 -1
  44. package/dist-es/LookoutEquipmentClient.js +0 -1
  45. package/dist-es/commands/CreateDatasetCommand.js +0 -1
  46. package/dist-es/commands/CreateInferenceSchedulerCommand.js +0 -1
  47. package/dist-es/commands/CreateModelCommand.js +0 -1
  48. package/dist-es/commands/DeleteDatasetCommand.js +0 -1
  49. package/dist-es/commands/DeleteInferenceSchedulerCommand.js +0 -1
  50. package/dist-es/commands/DeleteModelCommand.js +0 -1
  51. package/dist-es/commands/DescribeDataIngestionJobCommand.js +0 -1
  52. package/dist-es/commands/DescribeDatasetCommand.js +0 -1
  53. package/dist-es/commands/DescribeInferenceSchedulerCommand.js +0 -1
  54. package/dist-es/commands/DescribeModelCommand.js +0 -1
  55. package/dist-es/commands/ListDataIngestionJobsCommand.js +0 -1
  56. package/dist-es/commands/ListDatasetsCommand.js +0 -1
  57. package/dist-es/commands/ListInferenceExecutionsCommand.js +0 -1
  58. package/dist-es/commands/ListInferenceSchedulersCommand.js +0 -1
  59. package/dist-es/commands/ListModelsCommand.js +0 -1
  60. package/dist-es/commands/ListTagsForResourceCommand.js +0 -1
  61. package/dist-es/commands/StartDataIngestionJobCommand.js +0 -1
  62. package/dist-es/commands/StartInferenceSchedulerCommand.js +0 -1
  63. package/dist-es/commands/StopInferenceSchedulerCommand.js +0 -1
  64. package/dist-es/commands/TagResourceCommand.js +0 -1
  65. package/dist-es/commands/UntagResourceCommand.js +0 -1
  66. package/dist-es/commands/UpdateInferenceSchedulerCommand.js +0 -1
  67. package/dist-es/commands/index.js +22 -0
  68. package/dist-es/endpoints.js +1 -2
  69. package/dist-es/index.js +4 -31
  70. package/dist-es/models/index.js +0 -1
  71. package/dist-es/models/models_0.js +0 -1
  72. package/dist-es/pagination/Interfaces.js +0 -1
  73. package/dist-es/pagination/ListDataIngestionJobsPaginator.js +0 -1
  74. package/dist-es/pagination/ListDatasetsPaginator.js +0 -1
  75. package/dist-es/pagination/ListInferenceExecutionsPaginator.js +0 -1
  76. package/dist-es/pagination/ListInferenceSchedulersPaginator.js +0 -1
  77. package/dist-es/pagination/ListModelsPaginator.js +0 -1
  78. package/dist-es/pagination/index.js +6 -0
  79. package/dist-es/protocols/Aws_json1_0.js +0 -1
  80. package/dist-es/runtimeConfig.browser.js +1 -2
  81. package/dist-es/runtimeConfig.js +2 -3
  82. package/dist-es/runtimeConfig.native.js +0 -1
  83. package/dist-es/runtimeConfig.shared.js +0 -1
  84. package/dist-types/commands/index.d.ts +22 -0
  85. package/dist-types/index.d.ts +4 -30
  86. package/dist-types/pagination/index.d.ts +6 -0
  87. package/dist-types/ts3.4/LookoutEquipment.d.ts +23 -103
  88. package/dist-types/ts3.4/LookoutEquipmentClient.d.ts +24 -90
  89. package/dist-types/ts3.4/commands/CreateDatasetCommand.d.ts +2 -23
  90. package/dist-types/ts3.4/commands/CreateInferenceSchedulerCommand.d.ts +2 -24
  91. package/dist-types/ts3.4/commands/CreateModelCommand.d.ts +2 -28
  92. package/dist-types/ts3.4/commands/DeleteDatasetCommand.d.ts +2 -24
  93. package/dist-types/ts3.4/commands/DeleteInferenceSchedulerCommand.d.ts +2 -21
  94. package/dist-types/ts3.4/commands/DeleteModelCommand.d.ts +2 -21
  95. package/dist-types/ts3.4/commands/DescribeDataIngestionJobCommand.d.ts +2 -21
  96. package/dist-types/ts3.4/commands/DescribeDatasetCommand.d.ts +2 -20
  97. package/dist-types/ts3.4/commands/DescribeInferenceSchedulerCommand.d.ts +2 -21
  98. package/dist-types/ts3.4/commands/DescribeModelCommand.d.ts +2 -21
  99. package/dist-types/ts3.4/commands/ListDataIngestionJobsCommand.d.ts +2 -21
  100. package/dist-types/ts3.4/commands/ListDatasetsCommand.d.ts +2 -21
  101. package/dist-types/ts3.4/commands/ListInferenceExecutionsCommand.d.ts +2 -21
  102. package/dist-types/ts3.4/commands/ListInferenceSchedulersCommand.d.ts +2 -21
  103. package/dist-types/ts3.4/commands/ListModelsCommand.d.ts +2 -21
  104. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -20
  105. package/dist-types/ts3.4/commands/StartDataIngestionJobCommand.d.ts +2 -20
  106. package/dist-types/ts3.4/commands/StartInferenceSchedulerCommand.d.ts +2 -20
  107. package/dist-types/ts3.4/commands/StopInferenceSchedulerCommand.d.ts +2 -20
  108. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -24
  109. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -20
  110. package/dist-types/ts3.4/commands/UpdateInferenceSchedulerCommand.d.ts +2 -20
  111. package/dist-types/ts3.4/commands/index.d.ts +22 -0
  112. package/dist-types/ts3.4/index.d.ts +4 -30
  113. package/dist-types/ts3.4/models/models_0.d.ts +302 -1080
  114. package/dist-types/ts3.4/pagination/index.d.ts +6 -0
  115. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
  116. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
  117. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
  118. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
  119. package/package.json +33 -30
  120. package/dist-cjs/LookoutEquipment.js.map +0 -1
  121. package/dist-cjs/LookoutEquipmentClient.js.map +0 -1
  122. package/dist-cjs/commands/CreateDatasetCommand.js.map +0 -1
  123. package/dist-cjs/commands/CreateInferenceSchedulerCommand.js.map +0 -1
  124. package/dist-cjs/commands/CreateModelCommand.js.map +0 -1
  125. package/dist-cjs/commands/DeleteDatasetCommand.js.map +0 -1
  126. package/dist-cjs/commands/DeleteInferenceSchedulerCommand.js.map +0 -1
  127. package/dist-cjs/commands/DeleteModelCommand.js.map +0 -1
  128. package/dist-cjs/commands/DescribeDataIngestionJobCommand.js.map +0 -1
  129. package/dist-cjs/commands/DescribeDatasetCommand.js.map +0 -1
  130. package/dist-cjs/commands/DescribeInferenceSchedulerCommand.js.map +0 -1
  131. package/dist-cjs/commands/DescribeModelCommand.js.map +0 -1
  132. package/dist-cjs/commands/ListDataIngestionJobsCommand.js.map +0 -1
  133. package/dist-cjs/commands/ListDatasetsCommand.js.map +0 -1
  134. package/dist-cjs/commands/ListInferenceExecutionsCommand.js.map +0 -1
  135. package/dist-cjs/commands/ListInferenceSchedulersCommand.js.map +0 -1
  136. package/dist-cjs/commands/ListModelsCommand.js.map +0 -1
  137. package/dist-cjs/commands/ListTagsForResourceCommand.js.map +0 -1
  138. package/dist-cjs/commands/StartDataIngestionJobCommand.js.map +0 -1
  139. package/dist-cjs/commands/StartInferenceSchedulerCommand.js.map +0 -1
  140. package/dist-cjs/commands/StopInferenceSchedulerCommand.js.map +0 -1
  141. package/dist-cjs/commands/TagResourceCommand.js.map +0 -1
  142. package/dist-cjs/commands/UntagResourceCommand.js.map +0 -1
  143. package/dist-cjs/commands/UpdateInferenceSchedulerCommand.js.map +0 -1
  144. package/dist-cjs/endpoints.js.map +0 -1
  145. package/dist-cjs/index.js.map +0 -1
  146. package/dist-cjs/models/index.js.map +0 -1
  147. package/dist-cjs/models/models_0.js.map +0 -1
  148. package/dist-cjs/pagination/Interfaces.js.map +0 -1
  149. package/dist-cjs/pagination/ListDataIngestionJobsPaginator.js.map +0 -1
  150. package/dist-cjs/pagination/ListDatasetsPaginator.js.map +0 -1
  151. package/dist-cjs/pagination/ListInferenceExecutionsPaginator.js.map +0 -1
  152. package/dist-cjs/pagination/ListInferenceSchedulersPaginator.js.map +0 -1
  153. package/dist-cjs/pagination/ListModelsPaginator.js.map +0 -1
  154. package/dist-cjs/protocols/Aws_json1_0.js.map +0 -1
  155. package/dist-cjs/runtimeConfig.browser.js.map +0 -1
  156. package/dist-cjs/runtimeConfig.js.map +0 -1
  157. package/dist-cjs/runtimeConfig.native.js.map +0 -1
  158. package/dist-cjs/runtimeConfig.shared.js.map +0 -1
  159. package/dist-es/LookoutEquipment.js.map +0 -1
  160. package/dist-es/LookoutEquipmentClient.js.map +0 -1
  161. package/dist-es/commands/CreateDatasetCommand.js.map +0 -1
  162. package/dist-es/commands/CreateInferenceSchedulerCommand.js.map +0 -1
  163. package/dist-es/commands/CreateModelCommand.js.map +0 -1
  164. package/dist-es/commands/DeleteDatasetCommand.js.map +0 -1
  165. package/dist-es/commands/DeleteInferenceSchedulerCommand.js.map +0 -1
  166. package/dist-es/commands/DeleteModelCommand.js.map +0 -1
  167. package/dist-es/commands/DescribeDataIngestionJobCommand.js.map +0 -1
  168. package/dist-es/commands/DescribeDatasetCommand.js.map +0 -1
  169. package/dist-es/commands/DescribeInferenceSchedulerCommand.js.map +0 -1
  170. package/dist-es/commands/DescribeModelCommand.js.map +0 -1
  171. package/dist-es/commands/ListDataIngestionJobsCommand.js.map +0 -1
  172. package/dist-es/commands/ListDatasetsCommand.js.map +0 -1
  173. package/dist-es/commands/ListInferenceExecutionsCommand.js.map +0 -1
  174. package/dist-es/commands/ListInferenceSchedulersCommand.js.map +0 -1
  175. package/dist-es/commands/ListModelsCommand.js.map +0 -1
  176. package/dist-es/commands/ListTagsForResourceCommand.js.map +0 -1
  177. package/dist-es/commands/StartDataIngestionJobCommand.js.map +0 -1
  178. package/dist-es/commands/StartInferenceSchedulerCommand.js.map +0 -1
  179. package/dist-es/commands/StopInferenceSchedulerCommand.js.map +0 -1
  180. package/dist-es/commands/TagResourceCommand.js.map +0 -1
  181. package/dist-es/commands/UntagResourceCommand.js.map +0 -1
  182. package/dist-es/commands/UpdateInferenceSchedulerCommand.js.map +0 -1
  183. package/dist-es/endpoints.js.map +0 -1
  184. package/dist-es/index.js.map +0 -1
  185. package/dist-es/models/index.js.map +0 -1
  186. package/dist-es/models/models_0.js.map +0 -1
  187. package/dist-es/pagination/Interfaces.js.map +0 -1
  188. package/dist-es/pagination/ListDataIngestionJobsPaginator.js.map +0 -1
  189. package/dist-es/pagination/ListDatasetsPaginator.js.map +0 -1
  190. package/dist-es/pagination/ListInferenceExecutionsPaginator.js.map +0 -1
  191. package/dist-es/pagination/ListInferenceSchedulersPaginator.js.map +0 -1
  192. package/dist-es/pagination/ListModelsPaginator.js.map +0 -1
  193. package/dist-es/protocols/Aws_json1_0.js.map +0 -1
  194. package/dist-es/runtimeConfig.browser.js.map +0 -1
  195. package/dist-es/runtimeConfig.js.map +0 -1
  196. package/dist-es/runtimeConfig.native.js.map +0 -1
  197. package/dist-es/runtimeConfig.shared.js.map +0 -1
  198. package/jest.config.js +0 -4
  199. package/src/LookoutEquipment.ts +0 -813
  200. package/src/LookoutEquipmentClient.ts +0 -339
  201. package/src/commands/CreateDatasetCommand.ts +0 -98
  202. package/src/commands/CreateInferenceSchedulerCommand.ts +0 -99
  203. package/src/commands/CreateModelCommand.ts +0 -103
  204. package/src/commands/DeleteDatasetCommand.ts +0 -99
  205. package/src/commands/DeleteInferenceSchedulerCommand.ts +0 -96
  206. package/src/commands/DeleteModelCommand.ts +0 -96
  207. package/src/commands/DescribeDataIngestionJobCommand.ts +0 -96
  208. package/src/commands/DescribeDatasetCommand.ts +0 -95
  209. package/src/commands/DescribeInferenceSchedulerCommand.ts +0 -99
  210. package/src/commands/DescribeModelCommand.ts +0 -96
  211. package/src/commands/ListDataIngestionJobsCommand.ts +0 -96
  212. package/src/commands/ListDatasetsCommand.ts +0 -96
  213. package/src/commands/ListInferenceExecutionsCommand.ts +0 -96
  214. package/src/commands/ListInferenceSchedulersCommand.ts +0 -96
  215. package/src/commands/ListModelsCommand.ts +0 -96
  216. package/src/commands/ListTagsForResourceCommand.ts +0 -95
  217. package/src/commands/StartDataIngestionJobCommand.ts +0 -95
  218. package/src/commands/StartInferenceSchedulerCommand.ts +0 -95
  219. package/src/commands/StopInferenceSchedulerCommand.ts +0 -95
  220. package/src/commands/TagResourceCommand.ts +0 -99
  221. package/src/commands/UntagResourceCommand.ts +0 -95
  222. package/src/commands/UpdateInferenceSchedulerCommand.ts +0 -95
  223. package/src/endpoints.ts +0 -57
  224. package/src/index.ts +0 -31
  225. package/src/models/index.ts +0 -1
  226. package/src/models/models_0.ts +0 -2107
  227. package/src/pagination/Interfaces.ts +0 -8
  228. package/src/pagination/ListDataIngestionJobsPaginator.ts +0 -59
  229. package/src/pagination/ListDatasetsPaginator.ts +0 -59
  230. package/src/pagination/ListInferenceExecutionsPaginator.ts +0 -59
  231. package/src/pagination/ListInferenceSchedulersPaginator.ts +0 -59
  232. package/src/pagination/ListModelsPaginator.ts +0 -55
  233. package/src/protocols/Aws_json1_0.ts +0 -3644
  234. package/src/runtimeConfig.browser.ts +0 -41
  235. package/src/runtimeConfig.native.ts +0 -17
  236. package/src/runtimeConfig.shared.ts +0 -17
  237. package/src/runtimeConfig.ts +0 -46
  238. package/tsconfig.es.json +0 -10
  239. package/tsconfig.json +0 -33
  240. package/tsconfig.types.json +0 -9
@@ -1,8 +0,0 @@
1
- import { PaginationConfiguration } from "@aws-sdk/types";
2
-
3
- import { LookoutEquipment } from "../LookoutEquipment";
4
- import { LookoutEquipmentClient } from "../LookoutEquipmentClient";
5
-
6
- export interface LookoutEquipmentPaginationConfiguration extends PaginationConfiguration {
7
- client: LookoutEquipment | LookoutEquipmentClient;
8
- }
@@ -1,59 +0,0 @@
1
- import { Paginator } from "@aws-sdk/types";
2
-
3
- import {
4
- ListDataIngestionJobsCommand,
5
- ListDataIngestionJobsCommandInput,
6
- ListDataIngestionJobsCommandOutput,
7
- } from "../commands/ListDataIngestionJobsCommand";
8
- import { LookoutEquipment } from "../LookoutEquipment";
9
- import { LookoutEquipmentClient } from "../LookoutEquipmentClient";
10
- import { LookoutEquipmentPaginationConfiguration } from "./Interfaces";
11
-
12
- /**
13
- * @private
14
- */
15
- const makePagedClientRequest = async (
16
- client: LookoutEquipmentClient,
17
- input: ListDataIngestionJobsCommandInput,
18
- ...args: any
19
- ): Promise<ListDataIngestionJobsCommandOutput> => {
20
- // @ts-ignore
21
- return await client.send(new ListDataIngestionJobsCommand(input), ...args);
22
- };
23
- /**
24
- * @private
25
- */
26
- const makePagedRequest = async (
27
- client: LookoutEquipment,
28
- input: ListDataIngestionJobsCommandInput,
29
- ...args: any
30
- ): Promise<ListDataIngestionJobsCommandOutput> => {
31
- // @ts-ignore
32
- return await client.listDataIngestionJobs(input, ...args);
33
- };
34
- export async function* paginateListDataIngestionJobs(
35
- config: LookoutEquipmentPaginationConfiguration,
36
- input: ListDataIngestionJobsCommandInput,
37
- ...additionalArguments: any
38
- ): Paginator<ListDataIngestionJobsCommandOutput> {
39
- // ToDo: replace with actual type instead of typeof input.NextToken
40
- let token: typeof input.NextToken | undefined = config.startingToken || undefined;
41
- let hasNext = true;
42
- let page: ListDataIngestionJobsCommandOutput;
43
- while (hasNext) {
44
- input.NextToken = token;
45
- input["MaxResults"] = config.pageSize;
46
- if (config.client instanceof LookoutEquipment) {
47
- page = await makePagedRequest(config.client, input, ...additionalArguments);
48
- } else if (config.client instanceof LookoutEquipmentClient) {
49
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
50
- } else {
51
- throw new Error("Invalid client, expected LookoutEquipment | LookoutEquipmentClient");
52
- }
53
- yield page;
54
- token = page.NextToken;
55
- hasNext = !!token;
56
- }
57
- // @ts-ignore
58
- return undefined;
59
- }
@@ -1,59 +0,0 @@
1
- import { Paginator } from "@aws-sdk/types";
2
-
3
- import {
4
- ListDatasetsCommand,
5
- ListDatasetsCommandInput,
6
- ListDatasetsCommandOutput,
7
- } from "../commands/ListDatasetsCommand";
8
- import { LookoutEquipment } from "../LookoutEquipment";
9
- import { LookoutEquipmentClient } from "../LookoutEquipmentClient";
10
- import { LookoutEquipmentPaginationConfiguration } from "./Interfaces";
11
-
12
- /**
13
- * @private
14
- */
15
- const makePagedClientRequest = async (
16
- client: LookoutEquipmentClient,
17
- input: ListDatasetsCommandInput,
18
- ...args: any
19
- ): Promise<ListDatasetsCommandOutput> => {
20
- // @ts-ignore
21
- return await client.send(new ListDatasetsCommand(input), ...args);
22
- };
23
- /**
24
- * @private
25
- */
26
- const makePagedRequest = async (
27
- client: LookoutEquipment,
28
- input: ListDatasetsCommandInput,
29
- ...args: any
30
- ): Promise<ListDatasetsCommandOutput> => {
31
- // @ts-ignore
32
- return await client.listDatasets(input, ...args);
33
- };
34
- export async function* paginateListDatasets(
35
- config: LookoutEquipmentPaginationConfiguration,
36
- input: ListDatasetsCommandInput,
37
- ...additionalArguments: any
38
- ): Paginator<ListDatasetsCommandOutput> {
39
- // ToDo: replace with actual type instead of typeof input.NextToken
40
- let token: typeof input.NextToken | undefined = config.startingToken || undefined;
41
- let hasNext = true;
42
- let page: ListDatasetsCommandOutput;
43
- while (hasNext) {
44
- input.NextToken = token;
45
- input["MaxResults"] = config.pageSize;
46
- if (config.client instanceof LookoutEquipment) {
47
- page = await makePagedRequest(config.client, input, ...additionalArguments);
48
- } else if (config.client instanceof LookoutEquipmentClient) {
49
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
50
- } else {
51
- throw new Error("Invalid client, expected LookoutEquipment | LookoutEquipmentClient");
52
- }
53
- yield page;
54
- token = page.NextToken;
55
- hasNext = !!token;
56
- }
57
- // @ts-ignore
58
- return undefined;
59
- }
@@ -1,59 +0,0 @@
1
- import { Paginator } from "@aws-sdk/types";
2
-
3
- import {
4
- ListInferenceExecutionsCommand,
5
- ListInferenceExecutionsCommandInput,
6
- ListInferenceExecutionsCommandOutput,
7
- } from "../commands/ListInferenceExecutionsCommand";
8
- import { LookoutEquipment } from "../LookoutEquipment";
9
- import { LookoutEquipmentClient } from "../LookoutEquipmentClient";
10
- import { LookoutEquipmentPaginationConfiguration } from "./Interfaces";
11
-
12
- /**
13
- * @private
14
- */
15
- const makePagedClientRequest = async (
16
- client: LookoutEquipmentClient,
17
- input: ListInferenceExecutionsCommandInput,
18
- ...args: any
19
- ): Promise<ListInferenceExecutionsCommandOutput> => {
20
- // @ts-ignore
21
- return await client.send(new ListInferenceExecutionsCommand(input), ...args);
22
- };
23
- /**
24
- * @private
25
- */
26
- const makePagedRequest = async (
27
- client: LookoutEquipment,
28
- input: ListInferenceExecutionsCommandInput,
29
- ...args: any
30
- ): Promise<ListInferenceExecutionsCommandOutput> => {
31
- // @ts-ignore
32
- return await client.listInferenceExecutions(input, ...args);
33
- };
34
- export async function* paginateListInferenceExecutions(
35
- config: LookoutEquipmentPaginationConfiguration,
36
- input: ListInferenceExecutionsCommandInput,
37
- ...additionalArguments: any
38
- ): Paginator<ListInferenceExecutionsCommandOutput> {
39
- // ToDo: replace with actual type instead of typeof input.NextToken
40
- let token: typeof input.NextToken | undefined = config.startingToken || undefined;
41
- let hasNext = true;
42
- let page: ListInferenceExecutionsCommandOutput;
43
- while (hasNext) {
44
- input.NextToken = token;
45
- input["MaxResults"] = config.pageSize;
46
- if (config.client instanceof LookoutEquipment) {
47
- page = await makePagedRequest(config.client, input, ...additionalArguments);
48
- } else if (config.client instanceof LookoutEquipmentClient) {
49
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
50
- } else {
51
- throw new Error("Invalid client, expected LookoutEquipment | LookoutEquipmentClient");
52
- }
53
- yield page;
54
- token = page.NextToken;
55
- hasNext = !!token;
56
- }
57
- // @ts-ignore
58
- return undefined;
59
- }
@@ -1,59 +0,0 @@
1
- import { Paginator } from "@aws-sdk/types";
2
-
3
- import {
4
- ListInferenceSchedulersCommand,
5
- ListInferenceSchedulersCommandInput,
6
- ListInferenceSchedulersCommandOutput,
7
- } from "../commands/ListInferenceSchedulersCommand";
8
- import { LookoutEquipment } from "../LookoutEquipment";
9
- import { LookoutEquipmentClient } from "../LookoutEquipmentClient";
10
- import { LookoutEquipmentPaginationConfiguration } from "./Interfaces";
11
-
12
- /**
13
- * @private
14
- */
15
- const makePagedClientRequest = async (
16
- client: LookoutEquipmentClient,
17
- input: ListInferenceSchedulersCommandInput,
18
- ...args: any
19
- ): Promise<ListInferenceSchedulersCommandOutput> => {
20
- // @ts-ignore
21
- return await client.send(new ListInferenceSchedulersCommand(input), ...args);
22
- };
23
- /**
24
- * @private
25
- */
26
- const makePagedRequest = async (
27
- client: LookoutEquipment,
28
- input: ListInferenceSchedulersCommandInput,
29
- ...args: any
30
- ): Promise<ListInferenceSchedulersCommandOutput> => {
31
- // @ts-ignore
32
- return await client.listInferenceSchedulers(input, ...args);
33
- };
34
- export async function* paginateListInferenceSchedulers(
35
- config: LookoutEquipmentPaginationConfiguration,
36
- input: ListInferenceSchedulersCommandInput,
37
- ...additionalArguments: any
38
- ): Paginator<ListInferenceSchedulersCommandOutput> {
39
- // ToDo: replace with actual type instead of typeof input.NextToken
40
- let token: typeof input.NextToken | undefined = config.startingToken || undefined;
41
- let hasNext = true;
42
- let page: ListInferenceSchedulersCommandOutput;
43
- while (hasNext) {
44
- input.NextToken = token;
45
- input["MaxResults"] = config.pageSize;
46
- if (config.client instanceof LookoutEquipment) {
47
- page = await makePagedRequest(config.client, input, ...additionalArguments);
48
- } else if (config.client instanceof LookoutEquipmentClient) {
49
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
50
- } else {
51
- throw new Error("Invalid client, expected LookoutEquipment | LookoutEquipmentClient");
52
- }
53
- yield page;
54
- token = page.NextToken;
55
- hasNext = !!token;
56
- }
57
- // @ts-ignore
58
- return undefined;
59
- }
@@ -1,55 +0,0 @@
1
- import { Paginator } from "@aws-sdk/types";
2
-
3
- import { ListModelsCommand, ListModelsCommandInput, ListModelsCommandOutput } from "../commands/ListModelsCommand";
4
- import { LookoutEquipment } from "../LookoutEquipment";
5
- import { LookoutEquipmentClient } from "../LookoutEquipmentClient";
6
- import { LookoutEquipmentPaginationConfiguration } from "./Interfaces";
7
-
8
- /**
9
- * @private
10
- */
11
- const makePagedClientRequest = async (
12
- client: LookoutEquipmentClient,
13
- input: ListModelsCommandInput,
14
- ...args: any
15
- ): Promise<ListModelsCommandOutput> => {
16
- // @ts-ignore
17
- return await client.send(new ListModelsCommand(input), ...args);
18
- };
19
- /**
20
- * @private
21
- */
22
- const makePagedRequest = async (
23
- client: LookoutEquipment,
24
- input: ListModelsCommandInput,
25
- ...args: any
26
- ): Promise<ListModelsCommandOutput> => {
27
- // @ts-ignore
28
- return await client.listModels(input, ...args);
29
- };
30
- export async function* paginateListModels(
31
- config: LookoutEquipmentPaginationConfiguration,
32
- input: ListModelsCommandInput,
33
- ...additionalArguments: any
34
- ): Paginator<ListModelsCommandOutput> {
35
- // ToDo: replace with actual type instead of typeof input.NextToken
36
- let token: typeof input.NextToken | undefined = config.startingToken || undefined;
37
- let hasNext = true;
38
- let page: ListModelsCommandOutput;
39
- while (hasNext) {
40
- input.NextToken = token;
41
- input["MaxResults"] = config.pageSize;
42
- if (config.client instanceof LookoutEquipment) {
43
- page = await makePagedRequest(config.client, input, ...additionalArguments);
44
- } else if (config.client instanceof LookoutEquipmentClient) {
45
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
46
- } else {
47
- throw new Error("Invalid client, expected LookoutEquipment | LookoutEquipmentClient");
48
- }
49
- yield page;
50
- token = page.NextToken;
51
- hasNext = !!token;
52
- }
53
- // @ts-ignore
54
- return undefined;
55
- }