@aws-sdk/client-quicksight 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 (135) hide show
  1. package/dist-cjs/pagination/DescribeFolderPermissionsPaginator.js +2 -24
  2. package/dist-cjs/pagination/DescribeFolderResolvedPermissionsPaginator.js +2 -24
  3. package/dist-cjs/pagination/ListAnalysesPaginator.js +2 -24
  4. package/dist-cjs/pagination/ListAssetBundleExportJobsPaginator.js +2 -24
  5. package/dist-cjs/pagination/ListAssetBundleImportJobsPaginator.js +2 -24
  6. package/dist-cjs/pagination/ListDashboardVersionsPaginator.js +2 -24
  7. package/dist-cjs/pagination/ListDashboardsPaginator.js +2 -24
  8. package/dist-cjs/pagination/ListDataSetsPaginator.js +2 -24
  9. package/dist-cjs/pagination/ListDataSourcesPaginator.js +2 -24
  10. package/dist-cjs/pagination/ListFolderMembersPaginator.js +2 -24
  11. package/dist-cjs/pagination/ListFoldersPaginator.js +2 -24
  12. package/dist-cjs/pagination/ListGroupMembershipsPaginator.js +2 -24
  13. package/dist-cjs/pagination/ListGroupsPaginator.js +2 -24
  14. package/dist-cjs/pagination/ListIAMPolicyAssignmentsForUserPaginator.js +2 -24
  15. package/dist-cjs/pagination/ListIAMPolicyAssignmentsPaginator.js +2 -24
  16. package/dist-cjs/pagination/ListIngestionsPaginator.js +2 -24
  17. package/dist-cjs/pagination/ListNamespacesPaginator.js +2 -24
  18. package/dist-cjs/pagination/ListRoleMembershipsPaginator.js +2 -24
  19. package/dist-cjs/pagination/ListTemplateAliasesPaginator.js +2 -24
  20. package/dist-cjs/pagination/ListTemplateVersionsPaginator.js +2 -24
  21. package/dist-cjs/pagination/ListTemplatesPaginator.js +2 -24
  22. package/dist-cjs/pagination/ListThemeVersionsPaginator.js +2 -24
  23. package/dist-cjs/pagination/ListThemesPaginator.js +2 -24
  24. package/dist-cjs/pagination/ListTopicsPaginator.js +2 -24
  25. package/dist-cjs/pagination/ListUserGroupsPaginator.js +2 -24
  26. package/dist-cjs/pagination/ListUsersPaginator.js +2 -24
  27. package/dist-cjs/pagination/ListVPCConnectionsPaginator.js +2 -24
  28. package/dist-cjs/pagination/SearchAnalysesPaginator.js +2 -24
  29. package/dist-cjs/pagination/SearchDashboardsPaginator.js +2 -24
  30. package/dist-cjs/pagination/SearchDataSetsPaginator.js +2 -24
  31. package/dist-cjs/pagination/SearchDataSourcesPaginator.js +2 -24
  32. package/dist-cjs/pagination/SearchFoldersPaginator.js +2 -24
  33. package/dist-cjs/pagination/SearchGroupsPaginator.js +2 -24
  34. package/dist-cjs/protocols/Aws_restJson1.js +1170 -2527
  35. package/dist-es/pagination/DescribeFolderPermissionsPaginator.js +2 -23
  36. package/dist-es/pagination/DescribeFolderResolvedPermissionsPaginator.js +2 -23
  37. package/dist-es/pagination/ListAnalysesPaginator.js +2 -23
  38. package/dist-es/pagination/ListAssetBundleExportJobsPaginator.js +2 -23
  39. package/dist-es/pagination/ListAssetBundleImportJobsPaginator.js +2 -23
  40. package/dist-es/pagination/ListDashboardVersionsPaginator.js +2 -23
  41. package/dist-es/pagination/ListDashboardsPaginator.js +2 -23
  42. package/dist-es/pagination/ListDataSetsPaginator.js +2 -23
  43. package/dist-es/pagination/ListDataSourcesPaginator.js +2 -23
  44. package/dist-es/pagination/ListFolderMembersPaginator.js +2 -23
  45. package/dist-es/pagination/ListFoldersPaginator.js +2 -23
  46. package/dist-es/pagination/ListGroupMembershipsPaginator.js +2 -23
  47. package/dist-es/pagination/ListGroupsPaginator.js +2 -23
  48. package/dist-es/pagination/ListIAMPolicyAssignmentsForUserPaginator.js +2 -23
  49. package/dist-es/pagination/ListIAMPolicyAssignmentsPaginator.js +2 -23
  50. package/dist-es/pagination/ListIngestionsPaginator.js +2 -23
  51. package/dist-es/pagination/ListNamespacesPaginator.js +2 -23
  52. package/dist-es/pagination/ListRoleMembershipsPaginator.js +2 -23
  53. package/dist-es/pagination/ListTemplateAliasesPaginator.js +2 -23
  54. package/dist-es/pagination/ListTemplateVersionsPaginator.js +2 -23
  55. package/dist-es/pagination/ListTemplatesPaginator.js +2 -23
  56. package/dist-es/pagination/ListThemeVersionsPaginator.js +2 -23
  57. package/dist-es/pagination/ListThemesPaginator.js +2 -23
  58. package/dist-es/pagination/ListTopicsPaginator.js +2 -23
  59. package/dist-es/pagination/ListUserGroupsPaginator.js +2 -23
  60. package/dist-es/pagination/ListUsersPaginator.js +2 -23
  61. package/dist-es/pagination/ListVPCConnectionsPaginator.js +2 -23
  62. package/dist-es/pagination/SearchAnalysesPaginator.js +2 -23
  63. package/dist-es/pagination/SearchDashboardsPaginator.js +2 -23
  64. package/dist-es/pagination/SearchDataSetsPaginator.js +2 -23
  65. package/dist-es/pagination/SearchDataSourcesPaginator.js +2 -23
  66. package/dist-es/pagination/SearchFoldersPaginator.js +2 -23
  67. package/dist-es/pagination/SearchGroupsPaginator.js +2 -23
  68. package/dist-es/protocols/Aws_restJson1.js +1171 -2528
  69. package/dist-types/pagination/DescribeFolderPermissionsPaginator.d.ts +1 -1
  70. package/dist-types/pagination/DescribeFolderResolvedPermissionsPaginator.d.ts +1 -1
  71. package/dist-types/pagination/ListAnalysesPaginator.d.ts +1 -1
  72. package/dist-types/pagination/ListAssetBundleExportJobsPaginator.d.ts +1 -1
  73. package/dist-types/pagination/ListAssetBundleImportJobsPaginator.d.ts +1 -1
  74. package/dist-types/pagination/ListDashboardVersionsPaginator.d.ts +1 -1
  75. package/dist-types/pagination/ListDashboardsPaginator.d.ts +1 -1
  76. package/dist-types/pagination/ListDataSetsPaginator.d.ts +1 -1
  77. package/dist-types/pagination/ListDataSourcesPaginator.d.ts +1 -1
  78. package/dist-types/pagination/ListFolderMembersPaginator.d.ts +1 -1
  79. package/dist-types/pagination/ListFoldersPaginator.d.ts +1 -1
  80. package/dist-types/pagination/ListGroupMembershipsPaginator.d.ts +1 -1
  81. package/dist-types/pagination/ListGroupsPaginator.d.ts +1 -1
  82. package/dist-types/pagination/ListIAMPolicyAssignmentsForUserPaginator.d.ts +1 -1
  83. package/dist-types/pagination/ListIAMPolicyAssignmentsPaginator.d.ts +1 -1
  84. package/dist-types/pagination/ListIngestionsPaginator.d.ts +1 -1
  85. package/dist-types/pagination/ListNamespacesPaginator.d.ts +1 -1
  86. package/dist-types/pagination/ListRoleMembershipsPaginator.d.ts +1 -1
  87. package/dist-types/pagination/ListTemplateAliasesPaginator.d.ts +1 -1
  88. package/dist-types/pagination/ListTemplateVersionsPaginator.d.ts +1 -1
  89. package/dist-types/pagination/ListTemplatesPaginator.d.ts +1 -1
  90. package/dist-types/pagination/ListThemeVersionsPaginator.d.ts +1 -1
  91. package/dist-types/pagination/ListThemesPaginator.d.ts +1 -1
  92. package/dist-types/pagination/ListTopicsPaginator.d.ts +1 -1
  93. package/dist-types/pagination/ListUserGroupsPaginator.d.ts +1 -1
  94. package/dist-types/pagination/ListUsersPaginator.d.ts +1 -1
  95. package/dist-types/pagination/ListVPCConnectionsPaginator.d.ts +1 -1
  96. package/dist-types/pagination/SearchAnalysesPaginator.d.ts +1 -1
  97. package/dist-types/pagination/SearchDashboardsPaginator.d.ts +1 -1
  98. package/dist-types/pagination/SearchDataSetsPaginator.d.ts +1 -1
  99. package/dist-types/pagination/SearchDataSourcesPaginator.d.ts +1 -1
  100. package/dist-types/pagination/SearchFoldersPaginator.d.ts +1 -1
  101. package/dist-types/pagination/SearchGroupsPaginator.d.ts +1 -1
  102. package/dist-types/ts3.4/pagination/DescribeFolderPermissionsPaginator.d.ts +3 -3
  103. package/dist-types/ts3.4/pagination/DescribeFolderResolvedPermissionsPaginator.d.ts +3 -3
  104. package/dist-types/ts3.4/pagination/ListAnalysesPaginator.d.ts +3 -3
  105. package/dist-types/ts3.4/pagination/ListAssetBundleExportJobsPaginator.d.ts +3 -3
  106. package/dist-types/ts3.4/pagination/ListAssetBundleImportJobsPaginator.d.ts +3 -3
  107. package/dist-types/ts3.4/pagination/ListDashboardVersionsPaginator.d.ts +3 -3
  108. package/dist-types/ts3.4/pagination/ListDashboardsPaginator.d.ts +3 -3
  109. package/dist-types/ts3.4/pagination/ListDataSetsPaginator.d.ts +3 -3
  110. package/dist-types/ts3.4/pagination/ListDataSourcesPaginator.d.ts +3 -3
  111. package/dist-types/ts3.4/pagination/ListFolderMembersPaginator.d.ts +3 -3
  112. package/dist-types/ts3.4/pagination/ListFoldersPaginator.d.ts +3 -3
  113. package/dist-types/ts3.4/pagination/ListGroupMembershipsPaginator.d.ts +3 -3
  114. package/dist-types/ts3.4/pagination/ListGroupsPaginator.d.ts +3 -3
  115. package/dist-types/ts3.4/pagination/ListIAMPolicyAssignmentsForUserPaginator.d.ts +3 -3
  116. package/dist-types/ts3.4/pagination/ListIAMPolicyAssignmentsPaginator.d.ts +3 -3
  117. package/dist-types/ts3.4/pagination/ListIngestionsPaginator.d.ts +3 -3
  118. package/dist-types/ts3.4/pagination/ListNamespacesPaginator.d.ts +3 -3
  119. package/dist-types/ts3.4/pagination/ListRoleMembershipsPaginator.d.ts +3 -3
  120. package/dist-types/ts3.4/pagination/ListTemplateAliasesPaginator.d.ts +3 -3
  121. package/dist-types/ts3.4/pagination/ListTemplateVersionsPaginator.d.ts +3 -3
  122. package/dist-types/ts3.4/pagination/ListTemplatesPaginator.d.ts +3 -3
  123. package/dist-types/ts3.4/pagination/ListThemeVersionsPaginator.d.ts +3 -3
  124. package/dist-types/ts3.4/pagination/ListThemesPaginator.d.ts +3 -3
  125. package/dist-types/ts3.4/pagination/ListTopicsPaginator.d.ts +3 -3
  126. package/dist-types/ts3.4/pagination/ListUserGroupsPaginator.d.ts +3 -3
  127. package/dist-types/ts3.4/pagination/ListUsersPaginator.d.ts +3 -3
  128. package/dist-types/ts3.4/pagination/ListVPCConnectionsPaginator.d.ts +3 -3
  129. package/dist-types/ts3.4/pagination/SearchAnalysesPaginator.d.ts +3 -3
  130. package/dist-types/ts3.4/pagination/SearchDashboardsPaginator.d.ts +3 -3
  131. package/dist-types/ts3.4/pagination/SearchDataSetsPaginator.d.ts +3 -3
  132. package/dist-types/ts3.4/pagination/SearchDataSourcesPaginator.d.ts +3 -3
  133. package/dist-types/ts3.4/pagination/SearchFoldersPaginator.d.ts +3 -3
  134. package/dist-types/ts3.4/pagination/SearchGroupsPaginator.d.ts +3 -3
  135. package/package.json +7 -6
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListTemplateVersions = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListTemplateVersionsCommand_1 = require("../commands/ListTemplateVersionsCommand");
5
6
  const QuickSightClient_1 = require("../QuickSightClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListTemplateVersionsCommand_1.ListTemplateVersionsCommand(input), ...args);
8
- };
9
- async function* paginateListTemplateVersions(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 QuickSightClient_1.QuickSightClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected QuickSight | QuickSightClient");
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.paginateListTemplateVersions = paginateListTemplateVersions;
7
+ exports.paginateListTemplateVersions = (0, core_1.createPaginator)(QuickSightClient_1.QuickSightClient, ListTemplateVersionsCommand_1.ListTemplateVersionsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListTemplates = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListTemplatesCommand_1 = require("../commands/ListTemplatesCommand");
5
6
  const QuickSightClient_1 = require("../QuickSightClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListTemplatesCommand_1.ListTemplatesCommand(input), ...args);
8
- };
9
- async function* paginateListTemplates(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 QuickSightClient_1.QuickSightClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected QuickSight | QuickSightClient");
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.paginateListTemplates = paginateListTemplates;
7
+ exports.paginateListTemplates = (0, core_1.createPaginator)(QuickSightClient_1.QuickSightClient, ListTemplatesCommand_1.ListTemplatesCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListThemeVersions = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListThemeVersionsCommand_1 = require("../commands/ListThemeVersionsCommand");
5
6
  const QuickSightClient_1 = require("../QuickSightClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListThemeVersionsCommand_1.ListThemeVersionsCommand(input), ...args);
8
- };
9
- async function* paginateListThemeVersions(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 QuickSightClient_1.QuickSightClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected QuickSight | QuickSightClient");
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.paginateListThemeVersions = paginateListThemeVersions;
7
+ exports.paginateListThemeVersions = (0, core_1.createPaginator)(QuickSightClient_1.QuickSightClient, ListThemeVersionsCommand_1.ListThemeVersionsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListThemes = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListThemesCommand_1 = require("../commands/ListThemesCommand");
5
6
  const QuickSightClient_1 = require("../QuickSightClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListThemesCommand_1.ListThemesCommand(input), ...args);
8
- };
9
- async function* paginateListThemes(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 QuickSightClient_1.QuickSightClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected QuickSight | QuickSightClient");
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.paginateListThemes = paginateListThemes;
7
+ exports.paginateListThemes = (0, core_1.createPaginator)(QuickSightClient_1.QuickSightClient, ListThemesCommand_1.ListThemesCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListTopics = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListTopicsCommand_1 = require("../commands/ListTopicsCommand");
5
6
  const QuickSightClient_1 = require("../QuickSightClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListTopicsCommand_1.ListTopicsCommand(input), ...args);
8
- };
9
- async function* paginateListTopics(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 QuickSightClient_1.QuickSightClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected QuickSight | QuickSightClient");
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.paginateListTopics = paginateListTopics;
7
+ exports.paginateListTopics = (0, core_1.createPaginator)(QuickSightClient_1.QuickSightClient, ListTopicsCommand_1.ListTopicsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListUserGroups = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListUserGroupsCommand_1 = require("../commands/ListUserGroupsCommand");
5
6
  const QuickSightClient_1 = require("../QuickSightClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListUserGroupsCommand_1.ListUserGroupsCommand(input), ...args);
8
- };
9
- async function* paginateListUserGroups(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 QuickSightClient_1.QuickSightClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected QuickSight | QuickSightClient");
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.paginateListUserGroups = paginateListUserGroups;
7
+ exports.paginateListUserGroups = (0, core_1.createPaginator)(QuickSightClient_1.QuickSightClient, ListUserGroupsCommand_1.ListUserGroupsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListUsers = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListUsersCommand_1 = require("../commands/ListUsersCommand");
5
6
  const QuickSightClient_1 = require("../QuickSightClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListUsersCommand_1.ListUsersCommand(input), ...args);
8
- };
9
- async function* paginateListUsers(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 QuickSightClient_1.QuickSightClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected QuickSight | QuickSightClient");
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.paginateListUsers = paginateListUsers;
7
+ exports.paginateListUsers = (0, core_1.createPaginator)(QuickSightClient_1.QuickSightClient, ListUsersCommand_1.ListUsersCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListVPCConnections = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListVPCConnectionsCommand_1 = require("../commands/ListVPCConnectionsCommand");
5
6
  const QuickSightClient_1 = require("../QuickSightClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListVPCConnectionsCommand_1.ListVPCConnectionsCommand(input), ...args);
8
- };
9
- async function* paginateListVPCConnections(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 QuickSightClient_1.QuickSightClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected QuickSight | QuickSightClient");
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.paginateListVPCConnections = paginateListVPCConnections;
7
+ exports.paginateListVPCConnections = (0, core_1.createPaginator)(QuickSightClient_1.QuickSightClient, ListVPCConnectionsCommand_1.ListVPCConnectionsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateSearchAnalyses = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const SearchAnalysesCommand_1 = require("../commands/SearchAnalysesCommand");
5
6
  const QuickSightClient_1 = require("../QuickSightClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new SearchAnalysesCommand_1.SearchAnalysesCommand(input), ...args);
8
- };
9
- async function* paginateSearchAnalyses(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 QuickSightClient_1.QuickSightClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected QuickSight | QuickSightClient");
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.paginateSearchAnalyses = paginateSearchAnalyses;
7
+ exports.paginateSearchAnalyses = (0, core_1.createPaginator)(QuickSightClient_1.QuickSightClient, SearchAnalysesCommand_1.SearchAnalysesCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateSearchDashboards = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const SearchDashboardsCommand_1 = require("../commands/SearchDashboardsCommand");
5
6
  const QuickSightClient_1 = require("../QuickSightClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new SearchDashboardsCommand_1.SearchDashboardsCommand(input), ...args);
8
- };
9
- async function* paginateSearchDashboards(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 QuickSightClient_1.QuickSightClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected QuickSight | QuickSightClient");
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.paginateSearchDashboards = paginateSearchDashboards;
7
+ exports.paginateSearchDashboards = (0, core_1.createPaginator)(QuickSightClient_1.QuickSightClient, SearchDashboardsCommand_1.SearchDashboardsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateSearchDataSets = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const SearchDataSetsCommand_1 = require("../commands/SearchDataSetsCommand");
5
6
  const QuickSightClient_1 = require("../QuickSightClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new SearchDataSetsCommand_1.SearchDataSetsCommand(input), ...args);
8
- };
9
- async function* paginateSearchDataSets(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 QuickSightClient_1.QuickSightClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected QuickSight | QuickSightClient");
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.paginateSearchDataSets = paginateSearchDataSets;
7
+ exports.paginateSearchDataSets = (0, core_1.createPaginator)(QuickSightClient_1.QuickSightClient, SearchDataSetsCommand_1.SearchDataSetsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateSearchDataSources = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const SearchDataSourcesCommand_1 = require("../commands/SearchDataSourcesCommand");
5
6
  const QuickSightClient_1 = require("../QuickSightClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new SearchDataSourcesCommand_1.SearchDataSourcesCommand(input), ...args);
8
- };
9
- async function* paginateSearchDataSources(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 QuickSightClient_1.QuickSightClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected QuickSight | QuickSightClient");
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.paginateSearchDataSources = paginateSearchDataSources;
7
+ exports.paginateSearchDataSources = (0, core_1.createPaginator)(QuickSightClient_1.QuickSightClient, SearchDataSourcesCommand_1.SearchDataSourcesCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateSearchFolders = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const SearchFoldersCommand_1 = require("../commands/SearchFoldersCommand");
5
6
  const QuickSightClient_1 = require("../QuickSightClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new SearchFoldersCommand_1.SearchFoldersCommand(input), ...args);
8
- };
9
- async function* paginateSearchFolders(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 QuickSightClient_1.QuickSightClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected QuickSight | QuickSightClient");
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.paginateSearchFolders = paginateSearchFolders;
7
+ exports.paginateSearchFolders = (0, core_1.createPaginator)(QuickSightClient_1.QuickSightClient, SearchFoldersCommand_1.SearchFoldersCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateSearchGroups = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const SearchGroupsCommand_1 = require("../commands/SearchGroupsCommand");
5
6
  const QuickSightClient_1 = require("../QuickSightClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new SearchGroupsCommand_1.SearchGroupsCommand(input), ...args);
8
- };
9
- async function* paginateSearchGroups(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 QuickSightClient_1.QuickSightClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected QuickSight | QuickSightClient");
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.paginateSearchGroups = paginateSearchGroups;
7
+ exports.paginateSearchGroups = (0, core_1.createPaginator)(QuickSightClient_1.QuickSightClient, SearchGroupsCommand_1.SearchGroupsCommand, "NextToken", "NextToken", "MaxResults");