@aws-sdk/client-workspaces-web 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 (39) 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-cjs/protocols/Aws_restJson1.js +317 -743
  11. package/dist-es/pagination/ListBrowserSettingsPaginator.js +2 -23
  12. package/dist-es/pagination/ListIdentityProvidersPaginator.js +2 -23
  13. package/dist-es/pagination/ListIpAccessSettingsPaginator.js +2 -23
  14. package/dist-es/pagination/ListNetworkSettingsPaginator.js +2 -23
  15. package/dist-es/pagination/ListPortalsPaginator.js +2 -23
  16. package/dist-es/pagination/ListTrustStoreCertificatesPaginator.js +2 -23
  17. package/dist-es/pagination/ListTrustStoresPaginator.js +2 -23
  18. package/dist-es/pagination/ListUserAccessLoggingSettingsPaginator.js +2 -23
  19. package/dist-es/pagination/ListUserSettingsPaginator.js +2 -23
  20. package/dist-es/protocols/Aws_restJson1.js +318 -744
  21. package/dist-types/pagination/ListBrowserSettingsPaginator.d.ts +1 -1
  22. package/dist-types/pagination/ListIdentityProvidersPaginator.d.ts +1 -1
  23. package/dist-types/pagination/ListIpAccessSettingsPaginator.d.ts +1 -1
  24. package/dist-types/pagination/ListNetworkSettingsPaginator.d.ts +1 -1
  25. package/dist-types/pagination/ListPortalsPaginator.d.ts +1 -1
  26. package/dist-types/pagination/ListTrustStoreCertificatesPaginator.d.ts +1 -1
  27. package/dist-types/pagination/ListTrustStoresPaginator.d.ts +1 -1
  28. package/dist-types/pagination/ListUserAccessLoggingSettingsPaginator.d.ts +1 -1
  29. package/dist-types/pagination/ListUserSettingsPaginator.d.ts +1 -1
  30. package/dist-types/ts3.4/pagination/ListBrowserSettingsPaginator.d.ts +3 -3
  31. package/dist-types/ts3.4/pagination/ListIdentityProvidersPaginator.d.ts +3 -3
  32. package/dist-types/ts3.4/pagination/ListIpAccessSettingsPaginator.d.ts +3 -3
  33. package/dist-types/ts3.4/pagination/ListNetworkSettingsPaginator.d.ts +3 -3
  34. package/dist-types/ts3.4/pagination/ListPortalsPaginator.d.ts +3 -3
  35. package/dist-types/ts3.4/pagination/ListTrustStoreCertificatesPaginator.d.ts +3 -3
  36. package/dist-types/ts3.4/pagination/ListTrustStoresPaginator.d.ts +3 -3
  37. package/dist-types/ts3.4/pagination/ListUserAccessLoggingSettingsPaginator.d.ts +3 -3
  38. package/dist-types/ts3.4/pagination/ListUserSettingsPaginator.d.ts +3 -3
  39. package/package.json +7 -6
@@ -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");