@aws-sdk/client-workspaces-web 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.
Files changed (37) hide show
  1. package/dist-cjs/pagination/ListBrowserSettingsPaginator.js +2 -24
  2. package/dist-cjs/pagination/ListIdentityProvidersPaginator.js +2 -24
  3. package/dist-cjs/pagination/ListIpAccessSettingsPaginator.js +2 -24
  4. package/dist-cjs/pagination/ListNetworkSettingsPaginator.js +2 -24
  5. package/dist-cjs/pagination/ListPortalsPaginator.js +2 -24
  6. package/dist-cjs/pagination/ListTrustStoreCertificatesPaginator.js +2 -24
  7. package/dist-cjs/pagination/ListTrustStoresPaginator.js +2 -24
  8. package/dist-cjs/pagination/ListUserAccessLoggingSettingsPaginator.js +2 -24
  9. package/dist-cjs/pagination/ListUserSettingsPaginator.js +2 -24
  10. package/dist-es/pagination/ListBrowserSettingsPaginator.js +2 -23
  11. package/dist-es/pagination/ListIdentityProvidersPaginator.js +2 -23
  12. package/dist-es/pagination/ListIpAccessSettingsPaginator.js +2 -23
  13. package/dist-es/pagination/ListNetworkSettingsPaginator.js +2 -23
  14. package/dist-es/pagination/ListPortalsPaginator.js +2 -23
  15. package/dist-es/pagination/ListTrustStoreCertificatesPaginator.js +2 -23
  16. package/dist-es/pagination/ListTrustStoresPaginator.js +2 -23
  17. package/dist-es/pagination/ListUserAccessLoggingSettingsPaginator.js +2 -23
  18. package/dist-es/pagination/ListUserSettingsPaginator.js +2 -23
  19. package/dist-types/pagination/ListBrowserSettingsPaginator.d.ts +1 -1
  20. package/dist-types/pagination/ListIdentityProvidersPaginator.d.ts +1 -1
  21. package/dist-types/pagination/ListIpAccessSettingsPaginator.d.ts +1 -1
  22. package/dist-types/pagination/ListNetworkSettingsPaginator.d.ts +1 -1
  23. package/dist-types/pagination/ListPortalsPaginator.d.ts +1 -1
  24. package/dist-types/pagination/ListTrustStoreCertificatesPaginator.d.ts +1 -1
  25. package/dist-types/pagination/ListTrustStoresPaginator.d.ts +1 -1
  26. package/dist-types/pagination/ListUserAccessLoggingSettingsPaginator.d.ts +1 -1
  27. package/dist-types/pagination/ListUserSettingsPaginator.d.ts +1 -1
  28. package/dist-types/ts3.4/pagination/ListBrowserSettingsPaginator.d.ts +3 -3
  29. package/dist-types/ts3.4/pagination/ListIdentityProvidersPaginator.d.ts +3 -3
  30. package/dist-types/ts3.4/pagination/ListIpAccessSettingsPaginator.d.ts +3 -3
  31. package/dist-types/ts3.4/pagination/ListNetworkSettingsPaginator.d.ts +3 -3
  32. package/dist-types/ts3.4/pagination/ListPortalsPaginator.d.ts +3 -3
  33. package/dist-types/ts3.4/pagination/ListTrustStoreCertificatesPaginator.d.ts +3 -3
  34. package/dist-types/ts3.4/pagination/ListTrustStoresPaginator.d.ts +3 -3
  35. package/dist-types/ts3.4/pagination/ListUserAccessLoggingSettingsPaginator.d.ts +3 -3
  36. package/dist-types/ts3.4/pagination/ListUserSettingsPaginator.d.ts +3 -3
  37. package/package.json +5 -5
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListBrowserSettings = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListBrowserSettingsCommand_1 = require("../commands/ListBrowserSettingsCommand");
5
6
  const WorkSpacesWebClient_1 = require("../WorkSpacesWebClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListBrowserSettingsCommand_1.ListBrowserSettingsCommand(input), ...args);
8
- };
9
- async function* paginateListBrowserSettings(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 WorkSpacesWebClient_1.WorkSpacesWebClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected WorkSpacesWeb | WorkSpacesWebClient");
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.paginateListBrowserSettings = paginateListBrowserSettings;
7
+ exports.paginateListBrowserSettings = (0, core_1.createPaginator)(WorkSpacesWebClient_1.WorkSpacesWebClient, ListBrowserSettingsCommand_1.ListBrowserSettingsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListIdentityProviders = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListIdentityProvidersCommand_1 = require("../commands/ListIdentityProvidersCommand");
5
6
  const WorkSpacesWebClient_1 = require("../WorkSpacesWebClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListIdentityProvidersCommand_1.ListIdentityProvidersCommand(input), ...args);
8
- };
9
- async function* paginateListIdentityProviders(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 WorkSpacesWebClient_1.WorkSpacesWebClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected WorkSpacesWeb | WorkSpacesWebClient");
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.paginateListIdentityProviders = paginateListIdentityProviders;
7
+ exports.paginateListIdentityProviders = (0, core_1.createPaginator)(WorkSpacesWebClient_1.WorkSpacesWebClient, ListIdentityProvidersCommand_1.ListIdentityProvidersCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListIpAccessSettings = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListIpAccessSettingsCommand_1 = require("../commands/ListIpAccessSettingsCommand");
5
6
  const WorkSpacesWebClient_1 = require("../WorkSpacesWebClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListIpAccessSettingsCommand_1.ListIpAccessSettingsCommand(input), ...args);
8
- };
9
- async function* paginateListIpAccessSettings(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 WorkSpacesWebClient_1.WorkSpacesWebClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected WorkSpacesWeb | WorkSpacesWebClient");
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.paginateListIpAccessSettings = paginateListIpAccessSettings;
7
+ exports.paginateListIpAccessSettings = (0, core_1.createPaginator)(WorkSpacesWebClient_1.WorkSpacesWebClient, ListIpAccessSettingsCommand_1.ListIpAccessSettingsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListNetworkSettings = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListNetworkSettingsCommand_1 = require("../commands/ListNetworkSettingsCommand");
5
6
  const WorkSpacesWebClient_1 = require("../WorkSpacesWebClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListNetworkSettingsCommand_1.ListNetworkSettingsCommand(input), ...args);
8
- };
9
- async function* paginateListNetworkSettings(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 WorkSpacesWebClient_1.WorkSpacesWebClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected WorkSpacesWeb | WorkSpacesWebClient");
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.paginateListNetworkSettings = paginateListNetworkSettings;
7
+ exports.paginateListNetworkSettings = (0, core_1.createPaginator)(WorkSpacesWebClient_1.WorkSpacesWebClient, ListNetworkSettingsCommand_1.ListNetworkSettingsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListPortals = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListPortalsCommand_1 = require("../commands/ListPortalsCommand");
5
6
  const WorkSpacesWebClient_1 = require("../WorkSpacesWebClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListPortalsCommand_1.ListPortalsCommand(input), ...args);
8
- };
9
- async function* paginateListPortals(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 WorkSpacesWebClient_1.WorkSpacesWebClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected WorkSpacesWeb | WorkSpacesWebClient");
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.paginateListPortals = paginateListPortals;
7
+ exports.paginateListPortals = (0, core_1.createPaginator)(WorkSpacesWebClient_1.WorkSpacesWebClient, ListPortalsCommand_1.ListPortalsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListTrustStoreCertificates = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListTrustStoreCertificatesCommand_1 = require("../commands/ListTrustStoreCertificatesCommand");
5
6
  const WorkSpacesWebClient_1 = require("../WorkSpacesWebClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListTrustStoreCertificatesCommand_1.ListTrustStoreCertificatesCommand(input), ...args);
8
- };
9
- async function* paginateListTrustStoreCertificates(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 WorkSpacesWebClient_1.WorkSpacesWebClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected WorkSpacesWeb | WorkSpacesWebClient");
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.paginateListTrustStoreCertificates = paginateListTrustStoreCertificates;
7
+ exports.paginateListTrustStoreCertificates = (0, core_1.createPaginator)(WorkSpacesWebClient_1.WorkSpacesWebClient, ListTrustStoreCertificatesCommand_1.ListTrustStoreCertificatesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListTrustStores = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListTrustStoresCommand_1 = require("../commands/ListTrustStoresCommand");
5
6
  const WorkSpacesWebClient_1 = require("../WorkSpacesWebClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListTrustStoresCommand_1.ListTrustStoresCommand(input), ...args);
8
- };
9
- async function* paginateListTrustStores(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 WorkSpacesWebClient_1.WorkSpacesWebClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected WorkSpacesWeb | WorkSpacesWebClient");
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.paginateListTrustStores = paginateListTrustStores;
7
+ exports.paginateListTrustStores = (0, core_1.createPaginator)(WorkSpacesWebClient_1.WorkSpacesWebClient, ListTrustStoresCommand_1.ListTrustStoresCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListUserAccessLoggingSettings = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListUserAccessLoggingSettingsCommand_1 = require("../commands/ListUserAccessLoggingSettingsCommand");
5
6
  const WorkSpacesWebClient_1 = require("../WorkSpacesWebClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListUserAccessLoggingSettingsCommand_1.ListUserAccessLoggingSettingsCommand(input), ...args);
8
- };
9
- async function* paginateListUserAccessLoggingSettings(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 WorkSpacesWebClient_1.WorkSpacesWebClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected WorkSpacesWeb | WorkSpacesWebClient");
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.paginateListUserAccessLoggingSettings = paginateListUserAccessLoggingSettings;
7
+ exports.paginateListUserAccessLoggingSettings = (0, core_1.createPaginator)(WorkSpacesWebClient_1.WorkSpacesWebClient, ListUserAccessLoggingSettingsCommand_1.ListUserAccessLoggingSettingsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListUserSettings = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListUserSettingsCommand_1 = require("../commands/ListUserSettingsCommand");
5
6
  const WorkSpacesWebClient_1 = require("../WorkSpacesWebClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListUserSettingsCommand_1.ListUserSettingsCommand(input), ...args);
8
- };
9
- async function* paginateListUserSettings(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 WorkSpacesWebClient_1.WorkSpacesWebClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected WorkSpacesWeb | WorkSpacesWebClient");
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.paginateListUserSettings = paginateListUserSettings;
7
+ exports.paginateListUserSettings = (0, core_1.createPaginator)(WorkSpacesWebClient_1.WorkSpacesWebClient, ListUserSettingsCommand_1.ListUserSettingsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListBrowserSettingsCommand, } from "../commands/ListBrowserSettingsCommand";
2
3
  import { WorkSpacesWebClient } from "../WorkSpacesWebClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListBrowserSettingsCommand(input), ...args);
5
- };
6
- export async function* paginateListBrowserSettings(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 WorkSpacesWebClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected WorkSpacesWeb | WorkSpacesWebClient");
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 paginateListBrowserSettings = createPaginator(WorkSpacesWebClient, ListBrowserSettingsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListIdentityProvidersCommand, } from "../commands/ListIdentityProvidersCommand";
2
3
  import { WorkSpacesWebClient } from "../WorkSpacesWebClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListIdentityProvidersCommand(input), ...args);
5
- };
6
- export async function* paginateListIdentityProviders(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 WorkSpacesWebClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected WorkSpacesWeb | WorkSpacesWebClient");
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 paginateListIdentityProviders = createPaginator(WorkSpacesWebClient, ListIdentityProvidersCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListIpAccessSettingsCommand, } from "../commands/ListIpAccessSettingsCommand";
2
3
  import { WorkSpacesWebClient } from "../WorkSpacesWebClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListIpAccessSettingsCommand(input), ...args);
5
- };
6
- export async function* paginateListIpAccessSettings(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 WorkSpacesWebClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected WorkSpacesWeb | WorkSpacesWebClient");
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 paginateListIpAccessSettings = createPaginator(WorkSpacesWebClient, ListIpAccessSettingsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListNetworkSettingsCommand, } from "../commands/ListNetworkSettingsCommand";
2
3
  import { WorkSpacesWebClient } from "../WorkSpacesWebClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListNetworkSettingsCommand(input), ...args);
5
- };
6
- export async function* paginateListNetworkSettings(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 WorkSpacesWebClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected WorkSpacesWeb | WorkSpacesWebClient");
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 paginateListNetworkSettings = createPaginator(WorkSpacesWebClient, ListNetworkSettingsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListPortalsCommand } from "../commands/ListPortalsCommand";
2
3
  import { WorkSpacesWebClient } from "../WorkSpacesWebClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListPortalsCommand(input), ...args);
5
- };
6
- export async function* paginateListPortals(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 WorkSpacesWebClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected WorkSpacesWeb | WorkSpacesWebClient");
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 paginateListPortals = createPaginator(WorkSpacesWebClient, ListPortalsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListTrustStoreCertificatesCommand, } from "../commands/ListTrustStoreCertificatesCommand";
2
3
  import { WorkSpacesWebClient } from "../WorkSpacesWebClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListTrustStoreCertificatesCommand(input), ...args);
5
- };
6
- export async function* paginateListTrustStoreCertificates(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 WorkSpacesWebClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected WorkSpacesWeb | WorkSpacesWebClient");
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 paginateListTrustStoreCertificates = createPaginator(WorkSpacesWebClient, ListTrustStoreCertificatesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListTrustStoresCommand, } from "../commands/ListTrustStoresCommand";
2
3
  import { WorkSpacesWebClient } from "../WorkSpacesWebClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListTrustStoresCommand(input), ...args);
5
- };
6
- export async function* paginateListTrustStores(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 WorkSpacesWebClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected WorkSpacesWeb | WorkSpacesWebClient");
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 paginateListTrustStores = createPaginator(WorkSpacesWebClient, ListTrustStoresCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListUserAccessLoggingSettingsCommand, } from "../commands/ListUserAccessLoggingSettingsCommand";
2
3
  import { WorkSpacesWebClient } from "../WorkSpacesWebClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListUserAccessLoggingSettingsCommand(input), ...args);
5
- };
6
- export async function* paginateListUserAccessLoggingSettings(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 WorkSpacesWebClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected WorkSpacesWeb | WorkSpacesWebClient");
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 paginateListUserAccessLoggingSettings = createPaginator(WorkSpacesWebClient, ListUserAccessLoggingSettingsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListUserSettingsCommand, } from "../commands/ListUserSettingsCommand";
2
3
  import { WorkSpacesWebClient } from "../WorkSpacesWebClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListUserSettingsCommand(input), ...args);
5
- };
6
- export async function* paginateListUserSettings(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 WorkSpacesWebClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected WorkSpacesWeb | WorkSpacesWebClient");
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 paginateListUserSettings = createPaginator(WorkSpacesWebClient, ListUserSettingsCommand, "nextToken", "nextToken", "maxResults");
@@ -4,4 +4,4 @@ import { WorkSpacesWebPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListBrowserSettings(config: WorkSpacesWebPaginationConfiguration, input: ListBrowserSettingsCommandInput, ...additionalArguments: any): Paginator<ListBrowserSettingsCommandOutput>;
7
+ export declare const paginateListBrowserSettings: (config: WorkSpacesWebPaginationConfiguration, input: ListBrowserSettingsCommandInput, ...rest: any[]) => Paginator<ListBrowserSettingsCommandOutput>;
@@ -4,4 +4,4 @@ import { WorkSpacesWebPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListIdentityProviders(config: WorkSpacesWebPaginationConfiguration, input: ListIdentityProvidersCommandInput, ...additionalArguments: any): Paginator<ListIdentityProvidersCommandOutput>;
7
+ export declare const paginateListIdentityProviders: (config: WorkSpacesWebPaginationConfiguration, input: ListIdentityProvidersCommandInput, ...rest: any[]) => Paginator<ListIdentityProvidersCommandOutput>;
@@ -4,4 +4,4 @@ import { WorkSpacesWebPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListIpAccessSettings(config: WorkSpacesWebPaginationConfiguration, input: ListIpAccessSettingsCommandInput, ...additionalArguments: any): Paginator<ListIpAccessSettingsCommandOutput>;
7
+ export declare const paginateListIpAccessSettings: (config: WorkSpacesWebPaginationConfiguration, input: ListIpAccessSettingsCommandInput, ...rest: any[]) => Paginator<ListIpAccessSettingsCommandOutput>;
@@ -4,4 +4,4 @@ import { WorkSpacesWebPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListNetworkSettings(config: WorkSpacesWebPaginationConfiguration, input: ListNetworkSettingsCommandInput, ...additionalArguments: any): Paginator<ListNetworkSettingsCommandOutput>;
7
+ export declare const paginateListNetworkSettings: (config: WorkSpacesWebPaginationConfiguration, input: ListNetworkSettingsCommandInput, ...rest: any[]) => Paginator<ListNetworkSettingsCommandOutput>;
@@ -4,4 +4,4 @@ import { WorkSpacesWebPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListPortals(config: WorkSpacesWebPaginationConfiguration, input: ListPortalsCommandInput, ...additionalArguments: any): Paginator<ListPortalsCommandOutput>;
7
+ export declare const paginateListPortals: (config: WorkSpacesWebPaginationConfiguration, input: ListPortalsCommandInput, ...rest: any[]) => Paginator<ListPortalsCommandOutput>;
@@ -4,4 +4,4 @@ import { WorkSpacesWebPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListTrustStoreCertificates(config: WorkSpacesWebPaginationConfiguration, input: ListTrustStoreCertificatesCommandInput, ...additionalArguments: any): Paginator<ListTrustStoreCertificatesCommandOutput>;
7
+ export declare const paginateListTrustStoreCertificates: (config: WorkSpacesWebPaginationConfiguration, input: ListTrustStoreCertificatesCommandInput, ...rest: any[]) => Paginator<ListTrustStoreCertificatesCommandOutput>;
@@ -4,4 +4,4 @@ import { WorkSpacesWebPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListTrustStores(config: WorkSpacesWebPaginationConfiguration, input: ListTrustStoresCommandInput, ...additionalArguments: any): Paginator<ListTrustStoresCommandOutput>;
7
+ export declare const paginateListTrustStores: (config: WorkSpacesWebPaginationConfiguration, input: ListTrustStoresCommandInput, ...rest: any[]) => Paginator<ListTrustStoresCommandOutput>;
@@ -4,4 +4,4 @@ import { WorkSpacesWebPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListUserAccessLoggingSettings(config: WorkSpacesWebPaginationConfiguration, input: ListUserAccessLoggingSettingsCommandInput, ...additionalArguments: any): Paginator<ListUserAccessLoggingSettingsCommandOutput>;
7
+ export declare const paginateListUserAccessLoggingSettings: (config: WorkSpacesWebPaginationConfiguration, input: ListUserAccessLoggingSettingsCommandInput, ...rest: any[]) => Paginator<ListUserAccessLoggingSettingsCommandOutput>;
@@ -4,4 +4,4 @@ import { WorkSpacesWebPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListUserSettings(config: WorkSpacesWebPaginationConfiguration, input: ListUserSettingsCommandInput, ...additionalArguments: any): Paginator<ListUserSettingsCommandOutput>;
7
+ export declare const paginateListUserSettings: (config: WorkSpacesWebPaginationConfiguration, input: ListUserSettingsCommandInput, ...rest: any[]) => Paginator<ListUserSettingsCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListBrowserSettingsCommandOutput,
5
5
  } from "../commands/ListBrowserSettingsCommand";
6
6
  import { WorkSpacesWebPaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListBrowserSettings(
7
+ export declare const paginateListBrowserSettings: (
8
8
  config: WorkSpacesWebPaginationConfiguration,
9
9
  input: ListBrowserSettingsCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListBrowserSettingsCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListBrowserSettingsCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListIdentityProvidersCommandOutput,
5
5
  } from "../commands/ListIdentityProvidersCommand";
6
6
  import { WorkSpacesWebPaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListIdentityProviders(
7
+ export declare const paginateListIdentityProviders: (
8
8
  config: WorkSpacesWebPaginationConfiguration,
9
9
  input: ListIdentityProvidersCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListIdentityProvidersCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListIdentityProvidersCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListIpAccessSettingsCommandOutput,
5
5
  } from "../commands/ListIpAccessSettingsCommand";
6
6
  import { WorkSpacesWebPaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListIpAccessSettings(
7
+ export declare const paginateListIpAccessSettings: (
8
8
  config: WorkSpacesWebPaginationConfiguration,
9
9
  input: ListIpAccessSettingsCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListIpAccessSettingsCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListIpAccessSettingsCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListNetworkSettingsCommandOutput,
5
5
  } from "../commands/ListNetworkSettingsCommand";
6
6
  import { WorkSpacesWebPaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListNetworkSettings(
7
+ export declare const paginateListNetworkSettings: (
8
8
  config: WorkSpacesWebPaginationConfiguration,
9
9
  input: ListNetworkSettingsCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListNetworkSettingsCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListNetworkSettingsCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListPortalsCommandOutput,
5
5
  } from "../commands/ListPortalsCommand";
6
6
  import { WorkSpacesWebPaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListPortals(
7
+ export declare const paginateListPortals: (
8
8
  config: WorkSpacesWebPaginationConfiguration,
9
9
  input: ListPortalsCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListPortalsCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListPortalsCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListTrustStoreCertificatesCommandOutput,
5
5
  } from "../commands/ListTrustStoreCertificatesCommand";
6
6
  import { WorkSpacesWebPaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListTrustStoreCertificates(
7
+ export declare const paginateListTrustStoreCertificates: (
8
8
  config: WorkSpacesWebPaginationConfiguration,
9
9
  input: ListTrustStoreCertificatesCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListTrustStoreCertificatesCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListTrustStoreCertificatesCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListTrustStoresCommandOutput,
5
5
  } from "../commands/ListTrustStoresCommand";
6
6
  import { WorkSpacesWebPaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListTrustStores(
7
+ export declare const paginateListTrustStores: (
8
8
  config: WorkSpacesWebPaginationConfiguration,
9
9
  input: ListTrustStoresCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListTrustStoresCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListTrustStoresCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListUserAccessLoggingSettingsCommandOutput,
5
5
  } from "../commands/ListUserAccessLoggingSettingsCommand";
6
6
  import { WorkSpacesWebPaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListUserAccessLoggingSettings(
7
+ export declare const paginateListUserAccessLoggingSettings: (
8
8
  config: WorkSpacesWebPaginationConfiguration,
9
9
  input: ListUserAccessLoggingSettingsCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListUserAccessLoggingSettingsCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListUserAccessLoggingSettingsCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListUserSettingsCommandOutput,
5
5
  } from "../commands/ListUserSettingsCommand";
6
6
  import { WorkSpacesWebPaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListUserSettings(
7
+ export declare const paginateListUserSettings: (
8
8
  config: WorkSpacesWebPaginationConfiguration,
9
9
  input: ListUserSettingsCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListUserSettingsCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListUserSettingsCommandOutput>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-workspaces-web",
3
3
  "description": "AWS SDK for JavaScript Workspaces Web Client for Node.js, Browser and React Native",
4
- "version": "3.477.0",
4
+ "version": "3.478.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -20,17 +20,17 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.477.0",
23
+ "@aws-sdk/client-sts": "3.478.0",
24
24
  "@aws-sdk/core": "3.477.0",
25
- "@aws-sdk/credential-provider-node": "3.477.0",
25
+ "@aws-sdk/credential-provider-node": "3.478.0",
26
26
  "@aws-sdk/middleware-host-header": "3.468.0",
27
27
  "@aws-sdk/middleware-logger": "3.468.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.468.0",
29
29
  "@aws-sdk/middleware-signing": "3.468.0",
30
- "@aws-sdk/middleware-user-agent": "3.470.0",
30
+ "@aws-sdk/middleware-user-agent": "3.478.0",
31
31
  "@aws-sdk/region-config-resolver": "3.470.0",
32
32
  "@aws-sdk/types": "3.468.0",
33
- "@aws-sdk/util-endpoints": "3.470.0",
33
+ "@aws-sdk/util-endpoints": "3.478.0",
34
34
  "@aws-sdk/util-user-agent-browser": "3.468.0",
35
35
  "@aws-sdk/util-user-agent-node": "3.470.0",
36
36
  "@smithy/config-resolver": "^2.0.21",