@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.
- package/CHANGELOG.md +47 -0
- package/dist-cjs/LookoutEquipment.js +0 -5
- package/dist-cjs/LookoutEquipmentClient.js +0 -10
- package/dist-cjs/commands/CreateDatasetCommand.js +0 -28
- package/dist-cjs/commands/CreateInferenceSchedulerCommand.js +0 -29
- package/dist-cjs/commands/CreateModelCommand.js +0 -33
- package/dist-cjs/commands/DeleteDatasetCommand.js +0 -29
- package/dist-cjs/commands/DeleteInferenceSchedulerCommand.js +0 -26
- package/dist-cjs/commands/DeleteModelCommand.js +0 -26
- package/dist-cjs/commands/DescribeDataIngestionJobCommand.js +0 -26
- package/dist-cjs/commands/DescribeDatasetCommand.js +0 -25
- package/dist-cjs/commands/DescribeInferenceSchedulerCommand.js +0 -26
- package/dist-cjs/commands/DescribeModelCommand.js +0 -26
- package/dist-cjs/commands/ListDataIngestionJobsCommand.js +0 -26
- package/dist-cjs/commands/ListDatasetsCommand.js +0 -26
- package/dist-cjs/commands/ListInferenceExecutionsCommand.js +0 -26
- package/dist-cjs/commands/ListInferenceSchedulersCommand.js +0 -26
- package/dist-cjs/commands/ListModelsCommand.js +0 -26
- package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -25
- package/dist-cjs/commands/StartDataIngestionJobCommand.js +0 -25
- package/dist-cjs/commands/StartInferenceSchedulerCommand.js +0 -25
- package/dist-cjs/commands/StopInferenceSchedulerCommand.js +0 -25
- package/dist-cjs/commands/TagResourceCommand.js +0 -29
- package/dist-cjs/commands/UntagResourceCommand.js +0 -25
- package/dist-cjs/commands/UpdateInferenceSchedulerCommand.js +0 -25
- package/dist-cjs/commands/index.js +25 -0
- package/dist-cjs/endpoints.js +1 -2
- package/dist-cjs/index.js +4 -31
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +0 -196
- package/dist-cjs/pagination/Interfaces.js +0 -1
- package/dist-cjs/pagination/ListDataIngestionJobsPaginator.js +0 -11
- package/dist-cjs/pagination/ListDatasetsPaginator.js +0 -11
- package/dist-cjs/pagination/ListInferenceExecutionsPaginator.js +0 -11
- package/dist-cjs/pagination/ListInferenceSchedulersPaginator.js +0 -11
- package/dist-cjs/pagination/ListModelsPaginator.js +0 -11
- package/dist-cjs/pagination/index.js +9 -0
- package/dist-cjs/protocols/Aws_json1_0.js +0 -6
- package/dist-cjs/runtimeConfig.browser.js +1 -6
- package/dist-cjs/runtimeConfig.js +2 -7
- package/dist-cjs/runtimeConfig.native.js +0 -4
- package/dist-cjs/runtimeConfig.shared.js +0 -4
- package/dist-es/LookoutEquipment.js +0 -1
- package/dist-es/LookoutEquipmentClient.js +0 -1
- package/dist-es/commands/CreateDatasetCommand.js +0 -1
- package/dist-es/commands/CreateInferenceSchedulerCommand.js +0 -1
- package/dist-es/commands/CreateModelCommand.js +0 -1
- package/dist-es/commands/DeleteDatasetCommand.js +0 -1
- package/dist-es/commands/DeleteInferenceSchedulerCommand.js +0 -1
- package/dist-es/commands/DeleteModelCommand.js +0 -1
- package/dist-es/commands/DescribeDataIngestionJobCommand.js +0 -1
- package/dist-es/commands/DescribeDatasetCommand.js +0 -1
- package/dist-es/commands/DescribeInferenceSchedulerCommand.js +0 -1
- package/dist-es/commands/DescribeModelCommand.js +0 -1
- package/dist-es/commands/ListDataIngestionJobsCommand.js +0 -1
- package/dist-es/commands/ListDatasetsCommand.js +0 -1
- package/dist-es/commands/ListInferenceExecutionsCommand.js +0 -1
- package/dist-es/commands/ListInferenceSchedulersCommand.js +0 -1
- package/dist-es/commands/ListModelsCommand.js +0 -1
- package/dist-es/commands/ListTagsForResourceCommand.js +0 -1
- package/dist-es/commands/StartDataIngestionJobCommand.js +0 -1
- package/dist-es/commands/StartInferenceSchedulerCommand.js +0 -1
- package/dist-es/commands/StopInferenceSchedulerCommand.js +0 -1
- package/dist-es/commands/TagResourceCommand.js +0 -1
- package/dist-es/commands/UntagResourceCommand.js +0 -1
- package/dist-es/commands/UpdateInferenceSchedulerCommand.js +0 -1
- package/dist-es/commands/index.js +22 -0
- package/dist-es/endpoints.js +1 -2
- package/dist-es/index.js +4 -31
- package/dist-es/models/index.js +0 -1
- package/dist-es/models/models_0.js +0 -1
- package/dist-es/pagination/Interfaces.js +0 -1
- package/dist-es/pagination/ListDataIngestionJobsPaginator.js +0 -1
- package/dist-es/pagination/ListDatasetsPaginator.js +0 -1
- package/dist-es/pagination/ListInferenceExecutionsPaginator.js +0 -1
- package/dist-es/pagination/ListInferenceSchedulersPaginator.js +0 -1
- package/dist-es/pagination/ListModelsPaginator.js +0 -1
- package/dist-es/pagination/index.js +6 -0
- package/dist-es/protocols/Aws_json1_0.js +0 -1
- package/dist-es/runtimeConfig.browser.js +1 -2
- package/dist-es/runtimeConfig.js +2 -3
- package/dist-es/runtimeConfig.native.js +0 -1
- package/dist-es/runtimeConfig.shared.js +0 -1
- package/dist-types/commands/index.d.ts +22 -0
- package/dist-types/index.d.ts +4 -30
- package/dist-types/pagination/index.d.ts +6 -0
- package/dist-types/ts3.4/LookoutEquipment.d.ts +23 -103
- package/dist-types/ts3.4/LookoutEquipmentClient.d.ts +24 -90
- package/dist-types/ts3.4/commands/CreateDatasetCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/CreateInferenceSchedulerCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/CreateModelCommand.d.ts +2 -28
- package/dist-types/ts3.4/commands/DeleteDatasetCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/DeleteInferenceSchedulerCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DeleteModelCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DescribeDataIngestionJobCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DescribeDatasetCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DescribeInferenceSchedulerCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DescribeModelCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/ListDataIngestionJobsCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/ListDatasetsCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/ListInferenceExecutionsCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/ListInferenceSchedulersCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/ListModelsCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/StartDataIngestionJobCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/StartInferenceSchedulerCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/StopInferenceSchedulerCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/UpdateInferenceSchedulerCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/index.d.ts +22 -0
- package/dist-types/ts3.4/index.d.ts +4 -30
- package/dist-types/ts3.4/models/models_0.d.ts +302 -1080
- package/dist-types/ts3.4/pagination/index.d.ts +6 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/package.json +33 -30
- package/dist-cjs/LookoutEquipment.js.map +0 -1
- package/dist-cjs/LookoutEquipmentClient.js.map +0 -1
- package/dist-cjs/commands/CreateDatasetCommand.js.map +0 -1
- package/dist-cjs/commands/CreateInferenceSchedulerCommand.js.map +0 -1
- package/dist-cjs/commands/CreateModelCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteDatasetCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteInferenceSchedulerCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteModelCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeDataIngestionJobCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeDatasetCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeInferenceSchedulerCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeModelCommand.js.map +0 -1
- package/dist-cjs/commands/ListDataIngestionJobsCommand.js.map +0 -1
- package/dist-cjs/commands/ListDatasetsCommand.js.map +0 -1
- package/dist-cjs/commands/ListInferenceExecutionsCommand.js.map +0 -1
- package/dist-cjs/commands/ListInferenceSchedulersCommand.js.map +0 -1
- package/dist-cjs/commands/ListModelsCommand.js.map +0 -1
- package/dist-cjs/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist-cjs/commands/StartDataIngestionJobCommand.js.map +0 -1
- package/dist-cjs/commands/StartInferenceSchedulerCommand.js.map +0 -1
- package/dist-cjs/commands/StopInferenceSchedulerCommand.js.map +0 -1
- package/dist-cjs/commands/TagResourceCommand.js.map +0 -1
- package/dist-cjs/commands/UntagResourceCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateInferenceSchedulerCommand.js.map +0 -1
- package/dist-cjs/endpoints.js.map +0 -1
- package/dist-cjs/index.js.map +0 -1
- package/dist-cjs/models/index.js.map +0 -1
- package/dist-cjs/models/models_0.js.map +0 -1
- package/dist-cjs/pagination/Interfaces.js.map +0 -1
- package/dist-cjs/pagination/ListDataIngestionJobsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListDatasetsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListInferenceExecutionsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListInferenceSchedulersPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListModelsPaginator.js.map +0 -1
- package/dist-cjs/protocols/Aws_json1_0.js.map +0 -1
- package/dist-cjs/runtimeConfig.browser.js.map +0 -1
- package/dist-cjs/runtimeConfig.js.map +0 -1
- package/dist-cjs/runtimeConfig.native.js.map +0 -1
- package/dist-cjs/runtimeConfig.shared.js.map +0 -1
- package/dist-es/LookoutEquipment.js.map +0 -1
- package/dist-es/LookoutEquipmentClient.js.map +0 -1
- package/dist-es/commands/CreateDatasetCommand.js.map +0 -1
- package/dist-es/commands/CreateInferenceSchedulerCommand.js.map +0 -1
- package/dist-es/commands/CreateModelCommand.js.map +0 -1
- package/dist-es/commands/DeleteDatasetCommand.js.map +0 -1
- package/dist-es/commands/DeleteInferenceSchedulerCommand.js.map +0 -1
- package/dist-es/commands/DeleteModelCommand.js.map +0 -1
- package/dist-es/commands/DescribeDataIngestionJobCommand.js.map +0 -1
- package/dist-es/commands/DescribeDatasetCommand.js.map +0 -1
- package/dist-es/commands/DescribeInferenceSchedulerCommand.js.map +0 -1
- package/dist-es/commands/DescribeModelCommand.js.map +0 -1
- package/dist-es/commands/ListDataIngestionJobsCommand.js.map +0 -1
- package/dist-es/commands/ListDatasetsCommand.js.map +0 -1
- package/dist-es/commands/ListInferenceExecutionsCommand.js.map +0 -1
- package/dist-es/commands/ListInferenceSchedulersCommand.js.map +0 -1
- package/dist-es/commands/ListModelsCommand.js.map +0 -1
- package/dist-es/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist-es/commands/StartDataIngestionJobCommand.js.map +0 -1
- package/dist-es/commands/StartInferenceSchedulerCommand.js.map +0 -1
- package/dist-es/commands/StopInferenceSchedulerCommand.js.map +0 -1
- package/dist-es/commands/TagResourceCommand.js.map +0 -1
- package/dist-es/commands/UntagResourceCommand.js.map +0 -1
- package/dist-es/commands/UpdateInferenceSchedulerCommand.js.map +0 -1
- package/dist-es/endpoints.js.map +0 -1
- package/dist-es/index.js.map +0 -1
- package/dist-es/models/index.js.map +0 -1
- package/dist-es/models/models_0.js.map +0 -1
- package/dist-es/pagination/Interfaces.js.map +0 -1
- package/dist-es/pagination/ListDataIngestionJobsPaginator.js.map +0 -1
- package/dist-es/pagination/ListDatasetsPaginator.js.map +0 -1
- package/dist-es/pagination/ListInferenceExecutionsPaginator.js.map +0 -1
- package/dist-es/pagination/ListInferenceSchedulersPaginator.js.map +0 -1
- package/dist-es/pagination/ListModelsPaginator.js.map +0 -1
- package/dist-es/protocols/Aws_json1_0.js.map +0 -1
- package/dist-es/runtimeConfig.browser.js.map +0 -1
- package/dist-es/runtimeConfig.js.map +0 -1
- package/dist-es/runtimeConfig.native.js.map +0 -1
- package/dist-es/runtimeConfig.shared.js.map +0 -1
- package/jest.config.js +0 -4
- package/src/LookoutEquipment.ts +0 -813
- package/src/LookoutEquipmentClient.ts +0 -339
- package/src/commands/CreateDatasetCommand.ts +0 -98
- package/src/commands/CreateInferenceSchedulerCommand.ts +0 -99
- package/src/commands/CreateModelCommand.ts +0 -103
- package/src/commands/DeleteDatasetCommand.ts +0 -99
- package/src/commands/DeleteInferenceSchedulerCommand.ts +0 -96
- package/src/commands/DeleteModelCommand.ts +0 -96
- package/src/commands/DescribeDataIngestionJobCommand.ts +0 -96
- package/src/commands/DescribeDatasetCommand.ts +0 -95
- package/src/commands/DescribeInferenceSchedulerCommand.ts +0 -99
- package/src/commands/DescribeModelCommand.ts +0 -96
- package/src/commands/ListDataIngestionJobsCommand.ts +0 -96
- package/src/commands/ListDatasetsCommand.ts +0 -96
- package/src/commands/ListInferenceExecutionsCommand.ts +0 -96
- package/src/commands/ListInferenceSchedulersCommand.ts +0 -96
- package/src/commands/ListModelsCommand.ts +0 -96
- package/src/commands/ListTagsForResourceCommand.ts +0 -95
- package/src/commands/StartDataIngestionJobCommand.ts +0 -95
- package/src/commands/StartInferenceSchedulerCommand.ts +0 -95
- package/src/commands/StopInferenceSchedulerCommand.ts +0 -95
- package/src/commands/TagResourceCommand.ts +0 -99
- package/src/commands/UntagResourceCommand.ts +0 -95
- package/src/commands/UpdateInferenceSchedulerCommand.ts +0 -95
- package/src/endpoints.ts +0 -57
- package/src/index.ts +0 -31
- package/src/models/index.ts +0 -1
- package/src/models/models_0.ts +0 -2107
- package/src/pagination/Interfaces.ts +0 -8
- package/src/pagination/ListDataIngestionJobsPaginator.ts +0 -59
- package/src/pagination/ListDatasetsPaginator.ts +0 -59
- package/src/pagination/ListInferenceExecutionsPaginator.ts +0 -59
- package/src/pagination/ListInferenceSchedulersPaginator.ts +0 -59
- package/src/pagination/ListModelsPaginator.ts +0 -55
- package/src/protocols/Aws_json1_0.ts +0 -3644
- package/src/runtimeConfig.browser.ts +0 -41
- package/src/runtimeConfig.native.ts +0 -17
- package/src/runtimeConfig.shared.ts +0 -17
- package/src/runtimeConfig.ts +0 -46
- package/tsconfig.es.json +0 -10
- package/tsconfig.json +0 -33
- 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
|
-
}
|