@aws-sdk/client-iottwinmaker 3.476.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.
Files changed (51) hide show
  1. package/dist-cjs/pagination/ExecuteQueryPaginator.js +2 -24
  2. package/dist-cjs/pagination/GetPropertyValueHistoryPaginator.js +2 -24
  3. package/dist-cjs/pagination/GetPropertyValuePaginator.js +2 -24
  4. package/dist-cjs/pagination/ListComponentTypesPaginator.js +2 -24
  5. package/dist-cjs/pagination/ListComponentsPaginator.js +2 -24
  6. package/dist-cjs/pagination/ListEntitiesPaginator.js +2 -24
  7. package/dist-cjs/pagination/ListMetadataTransferJobsPaginator.js +2 -24
  8. package/dist-cjs/pagination/ListPropertiesPaginator.js +2 -24
  9. package/dist-cjs/pagination/ListScenesPaginator.js +2 -24
  10. package/dist-cjs/pagination/ListSyncJobsPaginator.js +2 -24
  11. package/dist-cjs/pagination/ListSyncResourcesPaginator.js +2 -24
  12. package/dist-cjs/pagination/ListWorkspacesPaginator.js +2 -24
  13. package/dist-cjs/protocols/Aws_restJson1.js +256 -513
  14. package/dist-es/pagination/ExecuteQueryPaginator.js +2 -23
  15. package/dist-es/pagination/GetPropertyValueHistoryPaginator.js +2 -23
  16. package/dist-es/pagination/GetPropertyValuePaginator.js +2 -23
  17. package/dist-es/pagination/ListComponentTypesPaginator.js +2 -23
  18. package/dist-es/pagination/ListComponentsPaginator.js +2 -23
  19. package/dist-es/pagination/ListEntitiesPaginator.js +2 -23
  20. package/dist-es/pagination/ListMetadataTransferJobsPaginator.js +2 -23
  21. package/dist-es/pagination/ListPropertiesPaginator.js +2 -23
  22. package/dist-es/pagination/ListScenesPaginator.js +2 -23
  23. package/dist-es/pagination/ListSyncJobsPaginator.js +2 -23
  24. package/dist-es/pagination/ListSyncResourcesPaginator.js +2 -23
  25. package/dist-es/pagination/ListWorkspacesPaginator.js +2 -23
  26. package/dist-es/protocols/Aws_restJson1.js +258 -515
  27. package/dist-types/pagination/ExecuteQueryPaginator.d.ts +1 -1
  28. package/dist-types/pagination/GetPropertyValueHistoryPaginator.d.ts +1 -1
  29. package/dist-types/pagination/GetPropertyValuePaginator.d.ts +1 -1
  30. package/dist-types/pagination/ListComponentTypesPaginator.d.ts +1 -1
  31. package/dist-types/pagination/ListComponentsPaginator.d.ts +1 -1
  32. package/dist-types/pagination/ListEntitiesPaginator.d.ts +1 -1
  33. package/dist-types/pagination/ListMetadataTransferJobsPaginator.d.ts +1 -1
  34. package/dist-types/pagination/ListPropertiesPaginator.d.ts +1 -1
  35. package/dist-types/pagination/ListScenesPaginator.d.ts +1 -1
  36. package/dist-types/pagination/ListSyncJobsPaginator.d.ts +1 -1
  37. package/dist-types/pagination/ListSyncResourcesPaginator.d.ts +1 -1
  38. package/dist-types/pagination/ListWorkspacesPaginator.d.ts +1 -1
  39. package/dist-types/ts3.4/pagination/ExecuteQueryPaginator.d.ts +3 -3
  40. package/dist-types/ts3.4/pagination/GetPropertyValueHistoryPaginator.d.ts +3 -3
  41. package/dist-types/ts3.4/pagination/GetPropertyValuePaginator.d.ts +3 -3
  42. package/dist-types/ts3.4/pagination/ListComponentTypesPaginator.d.ts +3 -3
  43. package/dist-types/ts3.4/pagination/ListComponentsPaginator.d.ts +3 -3
  44. package/dist-types/ts3.4/pagination/ListEntitiesPaginator.d.ts +3 -3
  45. package/dist-types/ts3.4/pagination/ListMetadataTransferJobsPaginator.d.ts +3 -3
  46. package/dist-types/ts3.4/pagination/ListPropertiesPaginator.d.ts +3 -3
  47. package/dist-types/ts3.4/pagination/ListScenesPaginator.d.ts +3 -3
  48. package/dist-types/ts3.4/pagination/ListSyncJobsPaginator.d.ts +3 -3
  49. package/dist-types/ts3.4/pagination/ListSyncResourcesPaginator.d.ts +3 -3
  50. package/dist-types/ts3.4/pagination/ListWorkspacesPaginator.d.ts +3 -3
  51. package/package.json +7 -6
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateExecuteQuery = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ExecuteQueryCommand_1 = require("../commands/ExecuteQueryCommand");
5
6
  const IoTTwinMakerClient_1 = require("../IoTTwinMakerClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ExecuteQueryCommand_1.ExecuteQueryCommand(input), ...args);
8
- };
9
- async function* paginateExecuteQuery(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof IoTTwinMakerClient_1.IoTTwinMakerClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected IoTTwinMaker | IoTTwinMakerClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateExecuteQuery = paginateExecuteQuery;
7
+ exports.paginateExecuteQuery = (0, core_1.createPaginator)(IoTTwinMakerClient_1.IoTTwinMakerClient, ExecuteQueryCommand_1.ExecuteQueryCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateGetPropertyValueHistory = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const GetPropertyValueHistoryCommand_1 = require("../commands/GetPropertyValueHistoryCommand");
5
6
  const IoTTwinMakerClient_1 = require("../IoTTwinMakerClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new GetPropertyValueHistoryCommand_1.GetPropertyValueHistoryCommand(input), ...args);
8
- };
9
- async function* paginateGetPropertyValueHistory(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof IoTTwinMakerClient_1.IoTTwinMakerClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected IoTTwinMaker | IoTTwinMakerClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateGetPropertyValueHistory = paginateGetPropertyValueHistory;
7
+ exports.paginateGetPropertyValueHistory = (0, core_1.createPaginator)(IoTTwinMakerClient_1.IoTTwinMakerClient, GetPropertyValueHistoryCommand_1.GetPropertyValueHistoryCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateGetPropertyValue = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const GetPropertyValueCommand_1 = require("../commands/GetPropertyValueCommand");
5
6
  const IoTTwinMakerClient_1 = require("../IoTTwinMakerClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new GetPropertyValueCommand_1.GetPropertyValueCommand(input), ...args);
8
- };
9
- async function* paginateGetPropertyValue(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof IoTTwinMakerClient_1.IoTTwinMakerClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected IoTTwinMaker | IoTTwinMakerClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateGetPropertyValue = paginateGetPropertyValue;
7
+ exports.paginateGetPropertyValue = (0, core_1.createPaginator)(IoTTwinMakerClient_1.IoTTwinMakerClient, GetPropertyValueCommand_1.GetPropertyValueCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListComponentTypes = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListComponentTypesCommand_1 = require("../commands/ListComponentTypesCommand");
5
6
  const IoTTwinMakerClient_1 = require("../IoTTwinMakerClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListComponentTypesCommand_1.ListComponentTypesCommand(input), ...args);
8
- };
9
- async function* paginateListComponentTypes(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof IoTTwinMakerClient_1.IoTTwinMakerClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected IoTTwinMaker | IoTTwinMakerClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListComponentTypes = paginateListComponentTypes;
7
+ exports.paginateListComponentTypes = (0, core_1.createPaginator)(IoTTwinMakerClient_1.IoTTwinMakerClient, ListComponentTypesCommand_1.ListComponentTypesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListComponents = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListComponentsCommand_1 = require("../commands/ListComponentsCommand");
5
6
  const IoTTwinMakerClient_1 = require("../IoTTwinMakerClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListComponentsCommand_1.ListComponentsCommand(input), ...args);
8
- };
9
- async function* paginateListComponents(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof IoTTwinMakerClient_1.IoTTwinMakerClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected IoTTwinMaker | IoTTwinMakerClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListComponents = paginateListComponents;
7
+ exports.paginateListComponents = (0, core_1.createPaginator)(IoTTwinMakerClient_1.IoTTwinMakerClient, ListComponentsCommand_1.ListComponentsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListEntities = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListEntitiesCommand_1 = require("../commands/ListEntitiesCommand");
5
6
  const IoTTwinMakerClient_1 = require("../IoTTwinMakerClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListEntitiesCommand_1.ListEntitiesCommand(input), ...args);
8
- };
9
- async function* paginateListEntities(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof IoTTwinMakerClient_1.IoTTwinMakerClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected IoTTwinMaker | IoTTwinMakerClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListEntities = paginateListEntities;
7
+ exports.paginateListEntities = (0, core_1.createPaginator)(IoTTwinMakerClient_1.IoTTwinMakerClient, ListEntitiesCommand_1.ListEntitiesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListMetadataTransferJobs = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListMetadataTransferJobsCommand_1 = require("../commands/ListMetadataTransferJobsCommand");
5
6
  const IoTTwinMakerClient_1 = require("../IoTTwinMakerClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListMetadataTransferJobsCommand_1.ListMetadataTransferJobsCommand(input), ...args);
8
- };
9
- async function* paginateListMetadataTransferJobs(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof IoTTwinMakerClient_1.IoTTwinMakerClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected IoTTwinMaker | IoTTwinMakerClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListMetadataTransferJobs = paginateListMetadataTransferJobs;
7
+ exports.paginateListMetadataTransferJobs = (0, core_1.createPaginator)(IoTTwinMakerClient_1.IoTTwinMakerClient, ListMetadataTransferJobsCommand_1.ListMetadataTransferJobsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListProperties = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListPropertiesCommand_1 = require("../commands/ListPropertiesCommand");
5
6
  const IoTTwinMakerClient_1 = require("../IoTTwinMakerClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListPropertiesCommand_1.ListPropertiesCommand(input), ...args);
8
- };
9
- async function* paginateListProperties(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof IoTTwinMakerClient_1.IoTTwinMakerClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected IoTTwinMaker | IoTTwinMakerClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListProperties = paginateListProperties;
7
+ exports.paginateListProperties = (0, core_1.createPaginator)(IoTTwinMakerClient_1.IoTTwinMakerClient, ListPropertiesCommand_1.ListPropertiesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListScenes = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListScenesCommand_1 = require("../commands/ListScenesCommand");
5
6
  const IoTTwinMakerClient_1 = require("../IoTTwinMakerClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListScenesCommand_1.ListScenesCommand(input), ...args);
8
- };
9
- async function* paginateListScenes(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof IoTTwinMakerClient_1.IoTTwinMakerClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected IoTTwinMaker | IoTTwinMakerClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListScenes = paginateListScenes;
7
+ exports.paginateListScenes = (0, core_1.createPaginator)(IoTTwinMakerClient_1.IoTTwinMakerClient, ListScenesCommand_1.ListScenesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListSyncJobs = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListSyncJobsCommand_1 = require("../commands/ListSyncJobsCommand");
5
6
  const IoTTwinMakerClient_1 = require("../IoTTwinMakerClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListSyncJobsCommand_1.ListSyncJobsCommand(input), ...args);
8
- };
9
- async function* paginateListSyncJobs(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof IoTTwinMakerClient_1.IoTTwinMakerClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected IoTTwinMaker | IoTTwinMakerClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListSyncJobs = paginateListSyncJobs;
7
+ exports.paginateListSyncJobs = (0, core_1.createPaginator)(IoTTwinMakerClient_1.IoTTwinMakerClient, ListSyncJobsCommand_1.ListSyncJobsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListSyncResources = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListSyncResourcesCommand_1 = require("../commands/ListSyncResourcesCommand");
5
6
  const IoTTwinMakerClient_1 = require("../IoTTwinMakerClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListSyncResourcesCommand_1.ListSyncResourcesCommand(input), ...args);
8
- };
9
- async function* paginateListSyncResources(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof IoTTwinMakerClient_1.IoTTwinMakerClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected IoTTwinMaker | IoTTwinMakerClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListSyncResources = paginateListSyncResources;
7
+ exports.paginateListSyncResources = (0, core_1.createPaginator)(IoTTwinMakerClient_1.IoTTwinMakerClient, ListSyncResourcesCommand_1.ListSyncResourcesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListWorkspaces = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListWorkspacesCommand_1 = require("../commands/ListWorkspacesCommand");
5
6
  const IoTTwinMakerClient_1 = require("../IoTTwinMakerClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListWorkspacesCommand_1.ListWorkspacesCommand(input), ...args);
8
- };
9
- async function* paginateListWorkspaces(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof IoTTwinMakerClient_1.IoTTwinMakerClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected IoTTwinMaker | IoTTwinMakerClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListWorkspaces = paginateListWorkspaces;
7
+ exports.paginateListWorkspaces = (0, core_1.createPaginator)(IoTTwinMakerClient_1.IoTTwinMakerClient, ListWorkspacesCommand_1.ListWorkspacesCommand, "nextToken", "nextToken", "maxResults");