@aws-sdk/client-comprehend 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/ListDatasetsPaginator.js +2 -24
- package/dist-cjs/pagination/ListDocumentClassificationJobsPaginator.js +2 -24
- package/dist-cjs/pagination/ListDocumentClassifierSummariesPaginator.js +2 -24
- package/dist-cjs/pagination/ListDocumentClassifiersPaginator.js +2 -24
- package/dist-cjs/pagination/ListDominantLanguageDetectionJobsPaginator.js +2 -24
- package/dist-cjs/pagination/ListEndpointsPaginator.js +2 -24
- package/dist-cjs/pagination/ListEntitiesDetectionJobsPaginator.js +2 -24
- package/dist-cjs/pagination/ListEntityRecognizerSummariesPaginator.js +2 -24
- package/dist-cjs/pagination/ListEntityRecognizersPaginator.js +2 -24
- package/dist-cjs/pagination/ListEventsDetectionJobsPaginator.js +2 -24
- package/dist-cjs/pagination/ListFlywheelIterationHistoryPaginator.js +2 -24
- package/dist-cjs/pagination/ListFlywheelsPaginator.js +2 -24
- package/dist-cjs/pagination/ListKeyPhrasesDetectionJobsPaginator.js +2 -24
- package/dist-cjs/pagination/ListPiiEntitiesDetectionJobsPaginator.js +2 -24
- package/dist-cjs/pagination/ListSentimentDetectionJobsPaginator.js +2 -24
- package/dist-cjs/pagination/ListTargetedSentimentDetectionJobsPaginator.js +2 -24
- package/dist-cjs/pagination/ListTopicsDetectionJobsPaginator.js +2 -24
- package/dist-es/pagination/ListDatasetsPaginator.js +2 -23
- package/dist-es/pagination/ListDocumentClassificationJobsPaginator.js +2 -23
- package/dist-es/pagination/ListDocumentClassifierSummariesPaginator.js +2 -23
- package/dist-es/pagination/ListDocumentClassifiersPaginator.js +2 -23
- package/dist-es/pagination/ListDominantLanguageDetectionJobsPaginator.js +2 -23
- package/dist-es/pagination/ListEndpointsPaginator.js +2 -23
- package/dist-es/pagination/ListEntitiesDetectionJobsPaginator.js +2 -23
- package/dist-es/pagination/ListEntityRecognizerSummariesPaginator.js +2 -23
- package/dist-es/pagination/ListEntityRecognizersPaginator.js +2 -23
- package/dist-es/pagination/ListEventsDetectionJobsPaginator.js +2 -23
- package/dist-es/pagination/ListFlywheelIterationHistoryPaginator.js +2 -23
- package/dist-es/pagination/ListFlywheelsPaginator.js +2 -23
- package/dist-es/pagination/ListKeyPhrasesDetectionJobsPaginator.js +2 -23
- package/dist-es/pagination/ListPiiEntitiesDetectionJobsPaginator.js +2 -23
- package/dist-es/pagination/ListSentimentDetectionJobsPaginator.js +2 -23
- package/dist-es/pagination/ListTargetedSentimentDetectionJobsPaginator.js +2 -23
- package/dist-es/pagination/ListTopicsDetectionJobsPaginator.js +2 -23
- package/dist-types/pagination/ListDatasetsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListDocumentClassificationJobsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListDocumentClassifierSummariesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListDocumentClassifiersPaginator.d.ts +1 -1
- package/dist-types/pagination/ListDominantLanguageDetectionJobsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListEndpointsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListEntitiesDetectionJobsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListEntityRecognizerSummariesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListEntityRecognizersPaginator.d.ts +1 -1
- package/dist-types/pagination/ListEventsDetectionJobsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListFlywheelIterationHistoryPaginator.d.ts +1 -1
- package/dist-types/pagination/ListFlywheelsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListKeyPhrasesDetectionJobsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListPiiEntitiesDetectionJobsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListSentimentDetectionJobsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListTargetedSentimentDetectionJobsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListTopicsDetectionJobsPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/ListDatasetsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListDocumentClassificationJobsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListDocumentClassifierSummariesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListDocumentClassifiersPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListDominantLanguageDetectionJobsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListEndpointsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListEntitiesDetectionJobsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListEntityRecognizerSummariesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListEntityRecognizersPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListEventsDetectionJobsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListFlywheelIterationHistoryPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListFlywheelsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListKeyPhrasesDetectionJobsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListPiiEntitiesDetectionJobsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListSentimentDetectionJobsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListTargetedSentimentDetectionJobsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListTopicsDetectionJobsPaginator.d.ts +3 -3
- package/package.json +6 -5
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListDocumentClassifiersCommand, } from "../commands/ListDocumentClassifiersCommand";
|
|
2
3
|
import { ComprehendClient } from "../ComprehendClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListDocumentClassifiersCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListDocumentClassifiers(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 ComprehendClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Comprehend | ComprehendClient");
|
|
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 paginateListDocumentClassifiers = createPaginator(ComprehendClient, ListDocumentClassifiersCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListDominantLanguageDetectionJobsCommand, } from "../commands/ListDominantLanguageDetectionJobsCommand";
|
|
2
3
|
import { ComprehendClient } from "../ComprehendClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListDominantLanguageDetectionJobsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListDominantLanguageDetectionJobs(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 ComprehendClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Comprehend | ComprehendClient");
|
|
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 paginateListDominantLanguageDetectionJobs = createPaginator(ComprehendClient, ListDominantLanguageDetectionJobsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListEndpointsCommand, } from "../commands/ListEndpointsCommand";
|
|
2
3
|
import { ComprehendClient } from "../ComprehendClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListEndpointsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListEndpoints(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 ComprehendClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Comprehend | ComprehendClient");
|
|
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 paginateListEndpoints = createPaginator(ComprehendClient, ListEndpointsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListEntitiesDetectionJobsCommand, } from "../commands/ListEntitiesDetectionJobsCommand";
|
|
2
3
|
import { ComprehendClient } from "../ComprehendClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListEntitiesDetectionJobsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListEntitiesDetectionJobs(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 ComprehendClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Comprehend | ComprehendClient");
|
|
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 paginateListEntitiesDetectionJobs = createPaginator(ComprehendClient, ListEntitiesDetectionJobsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListEntityRecognizerSummariesCommand, } from "../commands/ListEntityRecognizerSummariesCommand";
|
|
2
3
|
import { ComprehendClient } from "../ComprehendClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListEntityRecognizerSummariesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListEntityRecognizerSummaries(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 ComprehendClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Comprehend | ComprehendClient");
|
|
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 paginateListEntityRecognizerSummaries = createPaginator(ComprehendClient, ListEntityRecognizerSummariesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListEntityRecognizersCommand, } from "../commands/ListEntityRecognizersCommand";
|
|
2
3
|
import { ComprehendClient } from "../ComprehendClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListEntityRecognizersCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListEntityRecognizers(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 ComprehendClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Comprehend | ComprehendClient");
|
|
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 paginateListEntityRecognizers = createPaginator(ComprehendClient, ListEntityRecognizersCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListEventsDetectionJobsCommand, } from "../commands/ListEventsDetectionJobsCommand";
|
|
2
3
|
import { ComprehendClient } from "../ComprehendClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListEventsDetectionJobsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListEventsDetectionJobs(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 ComprehendClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Comprehend | ComprehendClient");
|
|
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 paginateListEventsDetectionJobs = createPaginator(ComprehendClient, ListEventsDetectionJobsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListFlywheelIterationHistoryCommand, } from "../commands/ListFlywheelIterationHistoryCommand";
|
|
2
3
|
import { ComprehendClient } from "../ComprehendClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListFlywheelIterationHistoryCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListFlywheelIterationHistory(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 ComprehendClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Comprehend | ComprehendClient");
|
|
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 paginateListFlywheelIterationHistory = createPaginator(ComprehendClient, ListFlywheelIterationHistoryCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListFlywheelsCommand, } from "../commands/ListFlywheelsCommand";
|
|
2
3
|
import { ComprehendClient } from "../ComprehendClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListFlywheelsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListFlywheels(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 ComprehendClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Comprehend | ComprehendClient");
|
|
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 paginateListFlywheels = createPaginator(ComprehendClient, ListFlywheelsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListKeyPhrasesDetectionJobsCommand, } from "../commands/ListKeyPhrasesDetectionJobsCommand";
|
|
2
3
|
import { ComprehendClient } from "../ComprehendClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListKeyPhrasesDetectionJobsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListKeyPhrasesDetectionJobs(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 ComprehendClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Comprehend | ComprehendClient");
|
|
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 paginateListKeyPhrasesDetectionJobs = createPaginator(ComprehendClient, ListKeyPhrasesDetectionJobsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListPiiEntitiesDetectionJobsCommand, } from "../commands/ListPiiEntitiesDetectionJobsCommand";
|
|
2
3
|
import { ComprehendClient } from "../ComprehendClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListPiiEntitiesDetectionJobsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListPiiEntitiesDetectionJobs(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 ComprehendClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Comprehend | ComprehendClient");
|
|
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 paginateListPiiEntitiesDetectionJobs = createPaginator(ComprehendClient, ListPiiEntitiesDetectionJobsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListSentimentDetectionJobsCommand, } from "../commands/ListSentimentDetectionJobsCommand";
|
|
2
3
|
import { ComprehendClient } from "../ComprehendClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListSentimentDetectionJobsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListSentimentDetectionJobs(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 ComprehendClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Comprehend | ComprehendClient");
|
|
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 paginateListSentimentDetectionJobs = createPaginator(ComprehendClient, ListSentimentDetectionJobsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListTargetedSentimentDetectionJobsCommand, } from "../commands/ListTargetedSentimentDetectionJobsCommand";
|
|
2
3
|
import { ComprehendClient } from "../ComprehendClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListTargetedSentimentDetectionJobsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListTargetedSentimentDetectionJobs(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 ComprehendClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Comprehend | ComprehendClient");
|
|
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 paginateListTargetedSentimentDetectionJobs = createPaginator(ComprehendClient, ListTargetedSentimentDetectionJobsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListTopicsDetectionJobsCommand, } from "../commands/ListTopicsDetectionJobsCommand";
|
|
2
3
|
import { ComprehendClient } from "../ComprehendClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListTopicsDetectionJobsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListTopicsDetectionJobs(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 ComprehendClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Comprehend | ComprehendClient");
|
|
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 paginateListTopicsDetectionJobs = createPaginator(ComprehendClient, ListTopicsDetectionJobsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -4,4 +4,4 @@ import { ComprehendPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListDatasets: (config: ComprehendPaginationConfiguration, input: ListDatasetsCommandInput, ...rest: any[]) => Paginator<ListDatasetsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { ComprehendPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListDocumentClassificationJobs: (config: ComprehendPaginationConfiguration, input: ListDocumentClassificationJobsCommandInput, ...rest: any[]) => Paginator<ListDocumentClassificationJobsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { ComprehendPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListDocumentClassifierSummaries: (config: ComprehendPaginationConfiguration, input: ListDocumentClassifierSummariesCommandInput, ...rest: any[]) => Paginator<ListDocumentClassifierSummariesCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { ComprehendPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListDocumentClassifiers: (config: ComprehendPaginationConfiguration, input: ListDocumentClassifiersCommandInput, ...rest: any[]) => Paginator<ListDocumentClassifiersCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { ComprehendPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListDominantLanguageDetectionJobs: (config: ComprehendPaginationConfiguration, input: ListDominantLanguageDetectionJobsCommandInput, ...rest: any[]) => Paginator<ListDominantLanguageDetectionJobsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { ComprehendPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListEndpoints: (config: ComprehendPaginationConfiguration, input: ListEndpointsCommandInput, ...rest: any[]) => Paginator<ListEndpointsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { ComprehendPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListEntitiesDetectionJobs: (config: ComprehendPaginationConfiguration, input: ListEntitiesDetectionJobsCommandInput, ...rest: any[]) => Paginator<ListEntitiesDetectionJobsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { ComprehendPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListEntityRecognizerSummaries: (config: ComprehendPaginationConfiguration, input: ListEntityRecognizerSummariesCommandInput, ...rest: any[]) => Paginator<ListEntityRecognizerSummariesCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { ComprehendPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListEntityRecognizers: (config: ComprehendPaginationConfiguration, input: ListEntityRecognizersCommandInput, ...rest: any[]) => Paginator<ListEntityRecognizersCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { ComprehendPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListEventsDetectionJobs: (config: ComprehendPaginationConfiguration, input: ListEventsDetectionJobsCommandInput, ...rest: any[]) => Paginator<ListEventsDetectionJobsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { ComprehendPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListFlywheelIterationHistory: (config: ComprehendPaginationConfiguration, input: ListFlywheelIterationHistoryCommandInput, ...rest: any[]) => Paginator<ListFlywheelIterationHistoryCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { ComprehendPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListFlywheels: (config: ComprehendPaginationConfiguration, input: ListFlywheelsCommandInput, ...rest: any[]) => Paginator<ListFlywheelsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { ComprehendPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListKeyPhrasesDetectionJobs: (config: ComprehendPaginationConfiguration, input: ListKeyPhrasesDetectionJobsCommandInput, ...rest: any[]) => Paginator<ListKeyPhrasesDetectionJobsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { ComprehendPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListPiiEntitiesDetectionJobs: (config: ComprehendPaginationConfiguration, input: ListPiiEntitiesDetectionJobsCommandInput, ...rest: any[]) => Paginator<ListPiiEntitiesDetectionJobsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { ComprehendPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListSentimentDetectionJobs: (config: ComprehendPaginationConfiguration, input: ListSentimentDetectionJobsCommandInput, ...rest: any[]) => Paginator<ListSentimentDetectionJobsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { ComprehendPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListTargetedSentimentDetectionJobs: (config: ComprehendPaginationConfiguration, input: ListTargetedSentimentDetectionJobsCommandInput, ...rest: any[]) => Paginator<ListTargetedSentimentDetectionJobsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { ComprehendPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListTopicsDetectionJobs: (config: ComprehendPaginationConfiguration, input: ListTopicsDetectionJobsCommandInput, ...rest: any[]) => Paginator<ListTopicsDetectionJobsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListDatasetsCommandOutput,
|
|
5
5
|
} from "../commands/ListDatasetsCommand";
|
|
6
6
|
import { ComprehendPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListDatasets: (
|
|
8
8
|
config: ComprehendPaginationConfiguration,
|
|
9
9
|
input: ListDatasetsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListDatasetsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListDocumentClassificationJobsCommandOutput,
|
|
5
5
|
} from "../commands/ListDocumentClassificationJobsCommand";
|
|
6
6
|
import { ComprehendPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListDocumentClassificationJobs: (
|
|
8
8
|
config: ComprehendPaginationConfiguration,
|
|
9
9
|
input: ListDocumentClassificationJobsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListDocumentClassificationJobsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListDocumentClassifierSummariesCommandOutput,
|
|
5
5
|
} from "../commands/ListDocumentClassifierSummariesCommand";
|
|
6
6
|
import { ComprehendPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListDocumentClassifierSummaries: (
|
|
8
8
|
config: ComprehendPaginationConfiguration,
|
|
9
9
|
input: ListDocumentClassifierSummariesCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListDocumentClassifierSummariesCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListDocumentClassifiersCommandOutput,
|
|
5
5
|
} from "../commands/ListDocumentClassifiersCommand";
|
|
6
6
|
import { ComprehendPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListDocumentClassifiers: (
|
|
8
8
|
config: ComprehendPaginationConfiguration,
|
|
9
9
|
input: ListDocumentClassifiersCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListDocumentClassifiersCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListDominantLanguageDetectionJobsCommandOutput,
|
|
5
5
|
} from "../commands/ListDominantLanguageDetectionJobsCommand";
|
|
6
6
|
import { ComprehendPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListDominantLanguageDetectionJobs: (
|
|
8
8
|
config: ComprehendPaginationConfiguration,
|
|
9
9
|
input: ListDominantLanguageDetectionJobsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListDominantLanguageDetectionJobsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListEndpointsCommandOutput,
|
|
5
5
|
} from "../commands/ListEndpointsCommand";
|
|
6
6
|
import { ComprehendPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListEndpoints: (
|
|
8
8
|
config: ComprehendPaginationConfiguration,
|
|
9
9
|
input: ListEndpointsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListEndpointsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListEntitiesDetectionJobsCommandOutput,
|
|
5
5
|
} from "../commands/ListEntitiesDetectionJobsCommand";
|
|
6
6
|
import { ComprehendPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListEntitiesDetectionJobs: (
|
|
8
8
|
config: ComprehendPaginationConfiguration,
|
|
9
9
|
input: ListEntitiesDetectionJobsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListEntitiesDetectionJobsCommandOutput>;
|