@aws-sdk/client-personalize 3.477.0 → 3.478.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/dist-cjs/pagination/ListBatchInferenceJobsPaginator.js +2 -24
- package/dist-cjs/pagination/ListBatchSegmentJobsPaginator.js +2 -24
- package/dist-cjs/pagination/ListCampaignsPaginator.js +2 -24
- package/dist-cjs/pagination/ListDatasetExportJobsPaginator.js +2 -24
- package/dist-cjs/pagination/ListDatasetGroupsPaginator.js +2 -24
- package/dist-cjs/pagination/ListDatasetImportJobsPaginator.js +2 -24
- package/dist-cjs/pagination/ListDatasetsPaginator.js +2 -24
- package/dist-cjs/pagination/ListEventTrackersPaginator.js +2 -24
- package/dist-cjs/pagination/ListFiltersPaginator.js +2 -24
- package/dist-cjs/pagination/ListMetricAttributionMetricsPaginator.js +2 -24
- package/dist-cjs/pagination/ListMetricAttributionsPaginator.js +2 -24
- package/dist-cjs/pagination/ListRecipesPaginator.js +2 -24
- package/dist-cjs/pagination/ListRecommendersPaginator.js +2 -24
- package/dist-cjs/pagination/ListSchemasPaginator.js +2 -24
- package/dist-cjs/pagination/ListSolutionVersionsPaginator.js +2 -24
- package/dist-cjs/pagination/ListSolutionsPaginator.js +2 -24
- package/dist-es/pagination/ListBatchInferenceJobsPaginator.js +2 -23
- package/dist-es/pagination/ListBatchSegmentJobsPaginator.js +2 -23
- package/dist-es/pagination/ListCampaignsPaginator.js +2 -23
- package/dist-es/pagination/ListDatasetExportJobsPaginator.js +2 -23
- package/dist-es/pagination/ListDatasetGroupsPaginator.js +2 -23
- package/dist-es/pagination/ListDatasetImportJobsPaginator.js +2 -23
- package/dist-es/pagination/ListDatasetsPaginator.js +2 -23
- package/dist-es/pagination/ListEventTrackersPaginator.js +2 -23
- package/dist-es/pagination/ListFiltersPaginator.js +2 -23
- package/dist-es/pagination/ListMetricAttributionMetricsPaginator.js +2 -23
- package/dist-es/pagination/ListMetricAttributionsPaginator.js +2 -23
- package/dist-es/pagination/ListRecipesPaginator.js +2 -23
- package/dist-es/pagination/ListRecommendersPaginator.js +2 -23
- package/dist-es/pagination/ListSchemasPaginator.js +2 -23
- package/dist-es/pagination/ListSolutionVersionsPaginator.js +2 -23
- package/dist-es/pagination/ListSolutionsPaginator.js +2 -23
- package/dist-types/pagination/ListBatchInferenceJobsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListBatchSegmentJobsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListCampaignsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListDatasetExportJobsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListDatasetGroupsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListDatasetImportJobsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListDatasetsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListEventTrackersPaginator.d.ts +1 -1
- package/dist-types/pagination/ListFiltersPaginator.d.ts +1 -1
- package/dist-types/pagination/ListMetricAttributionMetricsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListMetricAttributionsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListRecipesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListRecommendersPaginator.d.ts +1 -1
- package/dist-types/pagination/ListSchemasPaginator.d.ts +1 -1
- package/dist-types/pagination/ListSolutionVersionsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListSolutionsPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/ListBatchInferenceJobsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListBatchSegmentJobsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListCampaignsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListDatasetExportJobsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListDatasetGroupsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListDatasetImportJobsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListDatasetsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListEventTrackersPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListFiltersPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListMetricAttributionMetricsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListMetricAttributionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListRecipesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListRecommendersPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListSchemasPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListSolutionVersionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListSolutionsPaginator.d.ts +3 -3
- package/package.json +6 -5
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListDatasetGroupsCommand, } from "../commands/ListDatasetGroupsCommand";
|
|
2
3
|
import { PersonalizeClient } from "../PersonalizeClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListDatasetGroupsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListDatasetGroups(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
input["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof PersonalizeClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Personalize | PersonalizeClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListDatasetGroups = createPaginator(PersonalizeClient, ListDatasetGroupsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListDatasetImportJobsCommand, } from "../commands/ListDatasetImportJobsCommand";
|
|
2
3
|
import { PersonalizeClient } from "../PersonalizeClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListDatasetImportJobsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListDatasetImportJobs(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
input["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof PersonalizeClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Personalize | PersonalizeClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListDatasetImportJobs = createPaginator(PersonalizeClient, ListDatasetImportJobsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListDatasetsCommand, } from "../commands/ListDatasetsCommand";
|
|
2
3
|
import { PersonalizeClient } from "../PersonalizeClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListDatasetsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListDatasets(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
input["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof PersonalizeClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Personalize | PersonalizeClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListDatasets = createPaginator(PersonalizeClient, ListDatasetsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListEventTrackersCommand, } from "../commands/ListEventTrackersCommand";
|
|
2
3
|
import { PersonalizeClient } from "../PersonalizeClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListEventTrackersCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListEventTrackers(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
input["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof PersonalizeClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Personalize | PersonalizeClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListEventTrackers = createPaginator(PersonalizeClient, ListEventTrackersCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListFiltersCommand } from "../commands/ListFiltersCommand";
|
|
2
3
|
import { PersonalizeClient } from "../PersonalizeClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListFiltersCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListFilters(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
input["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof PersonalizeClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Personalize | PersonalizeClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListFilters = createPaginator(PersonalizeClient, ListFiltersCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListMetricAttributionMetricsCommand, } from "../commands/ListMetricAttributionMetricsCommand";
|
|
2
3
|
import { PersonalizeClient } from "../PersonalizeClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListMetricAttributionMetricsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListMetricAttributionMetrics(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
input["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof PersonalizeClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Personalize | PersonalizeClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListMetricAttributionMetrics = createPaginator(PersonalizeClient, ListMetricAttributionMetricsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListMetricAttributionsCommand, } from "../commands/ListMetricAttributionsCommand";
|
|
2
3
|
import { PersonalizeClient } from "../PersonalizeClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListMetricAttributionsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListMetricAttributions(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
input["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof PersonalizeClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Personalize | PersonalizeClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListMetricAttributions = createPaginator(PersonalizeClient, ListMetricAttributionsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListRecipesCommand } from "../commands/ListRecipesCommand";
|
|
2
3
|
import { PersonalizeClient } from "../PersonalizeClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListRecipesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListRecipes(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
input["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof PersonalizeClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Personalize | PersonalizeClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListRecipes = createPaginator(PersonalizeClient, ListRecipesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListRecommendersCommand, } from "../commands/ListRecommendersCommand";
|
|
2
3
|
import { PersonalizeClient } from "../PersonalizeClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListRecommendersCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListRecommenders(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
input["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof PersonalizeClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Personalize | PersonalizeClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListRecommenders = createPaginator(PersonalizeClient, ListRecommendersCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListSchemasCommand } from "../commands/ListSchemasCommand";
|
|
2
3
|
import { PersonalizeClient } from "../PersonalizeClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListSchemasCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListSchemas(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
input["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof PersonalizeClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Personalize | PersonalizeClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListSchemas = createPaginator(PersonalizeClient, ListSchemasCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListSolutionVersionsCommand, } from "../commands/ListSolutionVersionsCommand";
|
|
2
3
|
import { PersonalizeClient } from "../PersonalizeClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListSolutionVersionsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListSolutionVersions(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
input["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof PersonalizeClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Personalize | PersonalizeClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListSolutionVersions = createPaginator(PersonalizeClient, ListSolutionVersionsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListSolutionsCommand, } from "../commands/ListSolutionsCommand";
|
|
2
3
|
import { PersonalizeClient } from "../PersonalizeClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListSolutionsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListSolutions(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
input["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof PersonalizeClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Personalize | PersonalizeClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListSolutions = createPaginator(PersonalizeClient, ListSolutionsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -4,4 +4,4 @@ import { PersonalizePaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListBatchInferenceJobs: (config: PersonalizePaginationConfiguration, input: ListBatchInferenceJobsCommandInput, ...rest: any[]) => Paginator<ListBatchInferenceJobsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { PersonalizePaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListBatchSegmentJobs: (config: PersonalizePaginationConfiguration, input: ListBatchSegmentJobsCommandInput, ...rest: any[]) => Paginator<ListBatchSegmentJobsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { PersonalizePaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListCampaigns: (config: PersonalizePaginationConfiguration, input: ListCampaignsCommandInput, ...rest: any[]) => Paginator<ListCampaignsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { PersonalizePaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListDatasetExportJobs: (config: PersonalizePaginationConfiguration, input: ListDatasetExportJobsCommandInput, ...rest: any[]) => Paginator<ListDatasetExportJobsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { PersonalizePaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListDatasetGroups: (config: PersonalizePaginationConfiguration, input: ListDatasetGroupsCommandInput, ...rest: any[]) => Paginator<ListDatasetGroupsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { PersonalizePaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListDatasetImportJobs: (config: PersonalizePaginationConfiguration, input: ListDatasetImportJobsCommandInput, ...rest: any[]) => Paginator<ListDatasetImportJobsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { PersonalizePaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListDatasets: (config: PersonalizePaginationConfiguration, input: ListDatasetsCommandInput, ...rest: any[]) => Paginator<ListDatasetsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { PersonalizePaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListEventTrackers: (config: PersonalizePaginationConfiguration, input: ListEventTrackersCommandInput, ...rest: any[]) => Paginator<ListEventTrackersCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { PersonalizePaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListFilters: (config: PersonalizePaginationConfiguration, input: ListFiltersCommandInput, ...rest: any[]) => Paginator<ListFiltersCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { PersonalizePaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListMetricAttributionMetrics: (config: PersonalizePaginationConfiguration, input: ListMetricAttributionMetricsCommandInput, ...rest: any[]) => Paginator<ListMetricAttributionMetricsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { PersonalizePaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListMetricAttributions: (config: PersonalizePaginationConfiguration, input: ListMetricAttributionsCommandInput, ...rest: any[]) => Paginator<ListMetricAttributionsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { PersonalizePaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListRecipes: (config: PersonalizePaginationConfiguration, input: ListRecipesCommandInput, ...rest: any[]) => Paginator<ListRecipesCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { PersonalizePaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListRecommenders: (config: PersonalizePaginationConfiguration, input: ListRecommendersCommandInput, ...rest: any[]) => Paginator<ListRecommendersCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { PersonalizePaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListSchemas: (config: PersonalizePaginationConfiguration, input: ListSchemasCommandInput, ...rest: any[]) => Paginator<ListSchemasCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { PersonalizePaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListSolutionVersions: (config: PersonalizePaginationConfiguration, input: ListSolutionVersionsCommandInput, ...rest: any[]) => Paginator<ListSolutionVersionsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { PersonalizePaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListSolutions: (config: PersonalizePaginationConfiguration, input: ListSolutionsCommandInput, ...rest: any[]) => Paginator<ListSolutionsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListBatchInferenceJobsCommandOutput,
|
|
5
5
|
} from "../commands/ListBatchInferenceJobsCommand";
|
|
6
6
|
import { PersonalizePaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListBatchInferenceJobs: (
|
|
8
8
|
config: PersonalizePaginationConfiguration,
|
|
9
9
|
input: ListBatchInferenceJobsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListBatchInferenceJobsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListBatchSegmentJobsCommandOutput,
|
|
5
5
|
} from "../commands/ListBatchSegmentJobsCommand";
|
|
6
6
|
import { PersonalizePaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListBatchSegmentJobs: (
|
|
8
8
|
config: PersonalizePaginationConfiguration,
|
|
9
9
|
input: ListBatchSegmentJobsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListBatchSegmentJobsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListCampaignsCommandOutput,
|
|
5
5
|
} from "../commands/ListCampaignsCommand";
|
|
6
6
|
import { PersonalizePaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListCampaigns: (
|
|
8
8
|
config: PersonalizePaginationConfiguration,
|
|
9
9
|
input: ListCampaignsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListCampaignsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListDatasetExportJobsCommandOutput,
|
|
5
5
|
} from "../commands/ListDatasetExportJobsCommand";
|
|
6
6
|
import { PersonalizePaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListDatasetExportJobs: (
|
|
8
8
|
config: PersonalizePaginationConfiguration,
|
|
9
9
|
input: ListDatasetExportJobsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListDatasetExportJobsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListDatasetGroupsCommandOutput,
|
|
5
5
|
} from "../commands/ListDatasetGroupsCommand";
|
|
6
6
|
import { PersonalizePaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListDatasetGroups: (
|
|
8
8
|
config: PersonalizePaginationConfiguration,
|
|
9
9
|
input: ListDatasetGroupsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListDatasetGroupsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListDatasetImportJobsCommandOutput,
|
|
5
5
|
} from "../commands/ListDatasetImportJobsCommand";
|
|
6
6
|
import { PersonalizePaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListDatasetImportJobs: (
|
|
8
8
|
config: PersonalizePaginationConfiguration,
|
|
9
9
|
input: ListDatasetImportJobsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListDatasetImportJobsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListDatasetsCommandOutput,
|
|
5
5
|
} from "../commands/ListDatasetsCommand";
|
|
6
6
|
import { PersonalizePaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListDatasets: (
|
|
8
8
|
config: PersonalizePaginationConfiguration,
|
|
9
9
|
input: ListDatasetsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListDatasetsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListEventTrackersCommandOutput,
|
|
5
5
|
} from "../commands/ListEventTrackersCommand";
|
|
6
6
|
import { PersonalizePaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListEventTrackers: (
|
|
8
8
|
config: PersonalizePaginationConfiguration,
|
|
9
9
|
input: ListEventTrackersCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListEventTrackersCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListFiltersCommandOutput,
|
|
5
5
|
} from "../commands/ListFiltersCommand";
|
|
6
6
|
import { PersonalizePaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListFilters: (
|
|
8
8
|
config: PersonalizePaginationConfiguration,
|
|
9
9
|
input: ListFiltersCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListFiltersCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListMetricAttributionMetricsCommandOutput,
|
|
5
5
|
} from "../commands/ListMetricAttributionMetricsCommand";
|
|
6
6
|
import { PersonalizePaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListMetricAttributionMetrics: (
|
|
8
8
|
config: PersonalizePaginationConfiguration,
|
|
9
9
|
input: ListMetricAttributionMetricsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListMetricAttributionMetricsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListMetricAttributionsCommandOutput,
|
|
5
5
|
} from "../commands/ListMetricAttributionsCommand";
|
|
6
6
|
import { PersonalizePaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListMetricAttributions: (
|
|
8
8
|
config: PersonalizePaginationConfiguration,
|
|
9
9
|
input: ListMetricAttributionsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListMetricAttributionsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListRecipesCommandOutput,
|
|
5
5
|
} from "../commands/ListRecipesCommand";
|
|
6
6
|
import { PersonalizePaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListRecipes: (
|
|
8
8
|
config: PersonalizePaginationConfiguration,
|
|
9
9
|
input: ListRecipesCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListRecipesCommandOutput>;
|