@aws-sdk/client-redshift 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 (141) hide show
  1. package/dist-cjs/pagination/DescribeClusterDbRevisionsPaginator.js +2 -24
  2. package/dist-cjs/pagination/DescribeClusterParameterGroupsPaginator.js +2 -24
  3. package/dist-cjs/pagination/DescribeClusterParametersPaginator.js +2 -24
  4. package/dist-cjs/pagination/DescribeClusterSecurityGroupsPaginator.js +2 -24
  5. package/dist-cjs/pagination/DescribeClusterSnapshotsPaginator.js +2 -24
  6. package/dist-cjs/pagination/DescribeClusterSubnetGroupsPaginator.js +2 -24
  7. package/dist-cjs/pagination/DescribeClusterTracksPaginator.js +2 -24
  8. package/dist-cjs/pagination/DescribeClusterVersionsPaginator.js +2 -24
  9. package/dist-cjs/pagination/DescribeClustersPaginator.js +2 -24
  10. package/dist-cjs/pagination/DescribeCustomDomainAssociationsPaginator.js +2 -24
  11. package/dist-cjs/pagination/DescribeDataSharesForConsumerPaginator.js +2 -24
  12. package/dist-cjs/pagination/DescribeDataSharesForProducerPaginator.js +2 -24
  13. package/dist-cjs/pagination/DescribeDataSharesPaginator.js +2 -24
  14. package/dist-cjs/pagination/DescribeDefaultClusterParametersPaginator.js +2 -24
  15. package/dist-cjs/pagination/DescribeEndpointAccessPaginator.js +2 -24
  16. package/dist-cjs/pagination/DescribeEndpointAuthorizationPaginator.js +2 -24
  17. package/dist-cjs/pagination/DescribeEventSubscriptionsPaginator.js +2 -24
  18. package/dist-cjs/pagination/DescribeEventsPaginator.js +2 -24
  19. package/dist-cjs/pagination/DescribeHsmClientCertificatesPaginator.js +2 -24
  20. package/dist-cjs/pagination/DescribeHsmConfigurationsPaginator.js +2 -24
  21. package/dist-cjs/pagination/DescribeInboundIntegrationsPaginator.js +2 -24
  22. package/dist-cjs/pagination/DescribeNodeConfigurationOptionsPaginator.js +2 -24
  23. package/dist-cjs/pagination/DescribeOrderableClusterOptionsPaginator.js +2 -24
  24. package/dist-cjs/pagination/DescribeRedshiftIdcApplicationsPaginator.js +2 -24
  25. package/dist-cjs/pagination/DescribeReservedNodeExchangeStatusPaginator.js +2 -24
  26. package/dist-cjs/pagination/DescribeReservedNodeOfferingsPaginator.js +2 -24
  27. package/dist-cjs/pagination/DescribeReservedNodesPaginator.js +2 -24
  28. package/dist-cjs/pagination/DescribeScheduledActionsPaginator.js +2 -24
  29. package/dist-cjs/pagination/DescribeSnapshotCopyGrantsPaginator.js +2 -24
  30. package/dist-cjs/pagination/DescribeSnapshotSchedulesPaginator.js +2 -24
  31. package/dist-cjs/pagination/DescribeTableRestoreStatusPaginator.js +2 -24
  32. package/dist-cjs/pagination/DescribeTagsPaginator.js +2 -24
  33. package/dist-cjs/pagination/DescribeUsageLimitsPaginator.js +2 -24
  34. package/dist-cjs/pagination/GetReservedNodeExchangeConfigurationOptionsPaginator.js +2 -24
  35. package/dist-cjs/pagination/GetReservedNodeExchangeOfferingsPaginator.js +2 -24
  36. package/dist-es/pagination/DescribeClusterDbRevisionsPaginator.js +2 -23
  37. package/dist-es/pagination/DescribeClusterParameterGroupsPaginator.js +2 -23
  38. package/dist-es/pagination/DescribeClusterParametersPaginator.js +2 -23
  39. package/dist-es/pagination/DescribeClusterSecurityGroupsPaginator.js +2 -23
  40. package/dist-es/pagination/DescribeClusterSnapshotsPaginator.js +2 -23
  41. package/dist-es/pagination/DescribeClusterSubnetGroupsPaginator.js +2 -23
  42. package/dist-es/pagination/DescribeClusterTracksPaginator.js +2 -23
  43. package/dist-es/pagination/DescribeClusterVersionsPaginator.js +2 -23
  44. package/dist-es/pagination/DescribeClustersPaginator.js +2 -23
  45. package/dist-es/pagination/DescribeCustomDomainAssociationsPaginator.js +2 -23
  46. package/dist-es/pagination/DescribeDataSharesForConsumerPaginator.js +2 -23
  47. package/dist-es/pagination/DescribeDataSharesForProducerPaginator.js +2 -23
  48. package/dist-es/pagination/DescribeDataSharesPaginator.js +2 -23
  49. package/dist-es/pagination/DescribeDefaultClusterParametersPaginator.js +2 -23
  50. package/dist-es/pagination/DescribeEndpointAccessPaginator.js +2 -23
  51. package/dist-es/pagination/DescribeEndpointAuthorizationPaginator.js +2 -23
  52. package/dist-es/pagination/DescribeEventSubscriptionsPaginator.js +2 -23
  53. package/dist-es/pagination/DescribeEventsPaginator.js +2 -23
  54. package/dist-es/pagination/DescribeHsmClientCertificatesPaginator.js +2 -23
  55. package/dist-es/pagination/DescribeHsmConfigurationsPaginator.js +2 -23
  56. package/dist-es/pagination/DescribeInboundIntegrationsPaginator.js +2 -23
  57. package/dist-es/pagination/DescribeNodeConfigurationOptionsPaginator.js +2 -23
  58. package/dist-es/pagination/DescribeOrderableClusterOptionsPaginator.js +2 -23
  59. package/dist-es/pagination/DescribeRedshiftIdcApplicationsPaginator.js +2 -23
  60. package/dist-es/pagination/DescribeReservedNodeExchangeStatusPaginator.js +2 -23
  61. package/dist-es/pagination/DescribeReservedNodeOfferingsPaginator.js +2 -23
  62. package/dist-es/pagination/DescribeReservedNodesPaginator.js +2 -23
  63. package/dist-es/pagination/DescribeScheduledActionsPaginator.js +2 -23
  64. package/dist-es/pagination/DescribeSnapshotCopyGrantsPaginator.js +2 -23
  65. package/dist-es/pagination/DescribeSnapshotSchedulesPaginator.js +2 -23
  66. package/dist-es/pagination/DescribeTableRestoreStatusPaginator.js +2 -23
  67. package/dist-es/pagination/DescribeTagsPaginator.js +2 -23
  68. package/dist-es/pagination/DescribeUsageLimitsPaginator.js +2 -23
  69. package/dist-es/pagination/GetReservedNodeExchangeConfigurationOptionsPaginator.js +2 -23
  70. package/dist-es/pagination/GetReservedNodeExchangeOfferingsPaginator.js +2 -23
  71. package/dist-types/pagination/DescribeClusterDbRevisionsPaginator.d.ts +1 -1
  72. package/dist-types/pagination/DescribeClusterParameterGroupsPaginator.d.ts +1 -1
  73. package/dist-types/pagination/DescribeClusterParametersPaginator.d.ts +1 -1
  74. package/dist-types/pagination/DescribeClusterSecurityGroupsPaginator.d.ts +1 -1
  75. package/dist-types/pagination/DescribeClusterSnapshotsPaginator.d.ts +1 -1
  76. package/dist-types/pagination/DescribeClusterSubnetGroupsPaginator.d.ts +1 -1
  77. package/dist-types/pagination/DescribeClusterTracksPaginator.d.ts +1 -1
  78. package/dist-types/pagination/DescribeClusterVersionsPaginator.d.ts +1 -1
  79. package/dist-types/pagination/DescribeClustersPaginator.d.ts +1 -1
  80. package/dist-types/pagination/DescribeCustomDomainAssociationsPaginator.d.ts +1 -1
  81. package/dist-types/pagination/DescribeDataSharesForConsumerPaginator.d.ts +1 -1
  82. package/dist-types/pagination/DescribeDataSharesForProducerPaginator.d.ts +1 -1
  83. package/dist-types/pagination/DescribeDataSharesPaginator.d.ts +1 -1
  84. package/dist-types/pagination/DescribeDefaultClusterParametersPaginator.d.ts +1 -1
  85. package/dist-types/pagination/DescribeEndpointAccessPaginator.d.ts +1 -1
  86. package/dist-types/pagination/DescribeEndpointAuthorizationPaginator.d.ts +1 -1
  87. package/dist-types/pagination/DescribeEventSubscriptionsPaginator.d.ts +1 -1
  88. package/dist-types/pagination/DescribeEventsPaginator.d.ts +1 -1
  89. package/dist-types/pagination/DescribeHsmClientCertificatesPaginator.d.ts +1 -1
  90. package/dist-types/pagination/DescribeHsmConfigurationsPaginator.d.ts +1 -1
  91. package/dist-types/pagination/DescribeInboundIntegrationsPaginator.d.ts +1 -1
  92. package/dist-types/pagination/DescribeNodeConfigurationOptionsPaginator.d.ts +1 -1
  93. package/dist-types/pagination/DescribeOrderableClusterOptionsPaginator.d.ts +1 -1
  94. package/dist-types/pagination/DescribeRedshiftIdcApplicationsPaginator.d.ts +1 -1
  95. package/dist-types/pagination/DescribeReservedNodeExchangeStatusPaginator.d.ts +1 -1
  96. package/dist-types/pagination/DescribeReservedNodeOfferingsPaginator.d.ts +1 -1
  97. package/dist-types/pagination/DescribeReservedNodesPaginator.d.ts +1 -1
  98. package/dist-types/pagination/DescribeScheduledActionsPaginator.d.ts +1 -1
  99. package/dist-types/pagination/DescribeSnapshotCopyGrantsPaginator.d.ts +1 -1
  100. package/dist-types/pagination/DescribeSnapshotSchedulesPaginator.d.ts +1 -1
  101. package/dist-types/pagination/DescribeTableRestoreStatusPaginator.d.ts +1 -1
  102. package/dist-types/pagination/DescribeTagsPaginator.d.ts +1 -1
  103. package/dist-types/pagination/DescribeUsageLimitsPaginator.d.ts +1 -1
  104. package/dist-types/pagination/GetReservedNodeExchangeConfigurationOptionsPaginator.d.ts +1 -1
  105. package/dist-types/pagination/GetReservedNodeExchangeOfferingsPaginator.d.ts +1 -1
  106. package/dist-types/ts3.4/pagination/DescribeClusterDbRevisionsPaginator.d.ts +3 -3
  107. package/dist-types/ts3.4/pagination/DescribeClusterParameterGroupsPaginator.d.ts +3 -3
  108. package/dist-types/ts3.4/pagination/DescribeClusterParametersPaginator.d.ts +3 -3
  109. package/dist-types/ts3.4/pagination/DescribeClusterSecurityGroupsPaginator.d.ts +3 -3
  110. package/dist-types/ts3.4/pagination/DescribeClusterSnapshotsPaginator.d.ts +3 -3
  111. package/dist-types/ts3.4/pagination/DescribeClusterSubnetGroupsPaginator.d.ts +3 -3
  112. package/dist-types/ts3.4/pagination/DescribeClusterTracksPaginator.d.ts +3 -3
  113. package/dist-types/ts3.4/pagination/DescribeClusterVersionsPaginator.d.ts +3 -3
  114. package/dist-types/ts3.4/pagination/DescribeClustersPaginator.d.ts +3 -3
  115. package/dist-types/ts3.4/pagination/DescribeCustomDomainAssociationsPaginator.d.ts +3 -3
  116. package/dist-types/ts3.4/pagination/DescribeDataSharesForConsumerPaginator.d.ts +3 -3
  117. package/dist-types/ts3.4/pagination/DescribeDataSharesForProducerPaginator.d.ts +3 -3
  118. package/dist-types/ts3.4/pagination/DescribeDataSharesPaginator.d.ts +3 -3
  119. package/dist-types/ts3.4/pagination/DescribeDefaultClusterParametersPaginator.d.ts +3 -3
  120. package/dist-types/ts3.4/pagination/DescribeEndpointAccessPaginator.d.ts +3 -3
  121. package/dist-types/ts3.4/pagination/DescribeEndpointAuthorizationPaginator.d.ts +3 -3
  122. package/dist-types/ts3.4/pagination/DescribeEventSubscriptionsPaginator.d.ts +3 -3
  123. package/dist-types/ts3.4/pagination/DescribeEventsPaginator.d.ts +3 -3
  124. package/dist-types/ts3.4/pagination/DescribeHsmClientCertificatesPaginator.d.ts +3 -3
  125. package/dist-types/ts3.4/pagination/DescribeHsmConfigurationsPaginator.d.ts +3 -3
  126. package/dist-types/ts3.4/pagination/DescribeInboundIntegrationsPaginator.d.ts +3 -3
  127. package/dist-types/ts3.4/pagination/DescribeNodeConfigurationOptionsPaginator.d.ts +3 -3
  128. package/dist-types/ts3.4/pagination/DescribeOrderableClusterOptionsPaginator.d.ts +3 -3
  129. package/dist-types/ts3.4/pagination/DescribeRedshiftIdcApplicationsPaginator.d.ts +3 -3
  130. package/dist-types/ts3.4/pagination/DescribeReservedNodeExchangeStatusPaginator.d.ts +3 -3
  131. package/dist-types/ts3.4/pagination/DescribeReservedNodeOfferingsPaginator.d.ts +3 -3
  132. package/dist-types/ts3.4/pagination/DescribeReservedNodesPaginator.d.ts +3 -3
  133. package/dist-types/ts3.4/pagination/DescribeScheduledActionsPaginator.d.ts +3 -3
  134. package/dist-types/ts3.4/pagination/DescribeSnapshotCopyGrantsPaginator.d.ts +3 -3
  135. package/dist-types/ts3.4/pagination/DescribeSnapshotSchedulesPaginator.d.ts +3 -3
  136. package/dist-types/ts3.4/pagination/DescribeTableRestoreStatusPaginator.d.ts +3 -3
  137. package/dist-types/ts3.4/pagination/DescribeTagsPaginator.d.ts +3 -3
  138. package/dist-types/ts3.4/pagination/DescribeUsageLimitsPaginator.d.ts +3 -3
  139. package/dist-types/ts3.4/pagination/GetReservedNodeExchangeConfigurationOptionsPaginator.d.ts +3 -3
  140. package/dist-types/ts3.4/pagination/GetReservedNodeExchangeOfferingsPaginator.d.ts +3 -3
  141. package/package.json +6 -5
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateDescribeHsmConfigurations = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const DescribeHsmConfigurationsCommand_1 = require("../commands/DescribeHsmConfigurationsCommand");
5
6
  const RedshiftClient_1 = require("../RedshiftClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new DescribeHsmConfigurationsCommand_1.DescribeHsmConfigurationsCommand(input), ...args);
8
- };
9
- async function* paginateDescribeHsmConfigurations(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.Marker = token;
15
- input["MaxRecords"] = config.pageSize;
16
- if (config.client instanceof RedshiftClient_1.RedshiftClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Redshift | RedshiftClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.Marker;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateDescribeHsmConfigurations = paginateDescribeHsmConfigurations;
7
+ exports.paginateDescribeHsmConfigurations = (0, core_1.createPaginator)(RedshiftClient_1.RedshiftClient, DescribeHsmConfigurationsCommand_1.DescribeHsmConfigurationsCommand, "Marker", "Marker", "MaxRecords");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateDescribeInboundIntegrations = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const DescribeInboundIntegrationsCommand_1 = require("../commands/DescribeInboundIntegrationsCommand");
5
6
  const RedshiftClient_1 = require("../RedshiftClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new DescribeInboundIntegrationsCommand_1.DescribeInboundIntegrationsCommand(input), ...args);
8
- };
9
- async function* paginateDescribeInboundIntegrations(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.Marker = token;
15
- input["MaxRecords"] = config.pageSize;
16
- if (config.client instanceof RedshiftClient_1.RedshiftClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Redshift | RedshiftClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.Marker;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateDescribeInboundIntegrations = paginateDescribeInboundIntegrations;
7
+ exports.paginateDescribeInboundIntegrations = (0, core_1.createPaginator)(RedshiftClient_1.RedshiftClient, DescribeInboundIntegrationsCommand_1.DescribeInboundIntegrationsCommand, "Marker", "Marker", "MaxRecords");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateDescribeNodeConfigurationOptions = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const DescribeNodeConfigurationOptionsCommand_1 = require("../commands/DescribeNodeConfigurationOptionsCommand");
5
6
  const RedshiftClient_1 = require("../RedshiftClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new DescribeNodeConfigurationOptionsCommand_1.DescribeNodeConfigurationOptionsCommand(input), ...args);
8
- };
9
- async function* paginateDescribeNodeConfigurationOptions(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.Marker = token;
15
- input["MaxRecords"] = config.pageSize;
16
- if (config.client instanceof RedshiftClient_1.RedshiftClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Redshift | RedshiftClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.Marker;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateDescribeNodeConfigurationOptions = paginateDescribeNodeConfigurationOptions;
7
+ exports.paginateDescribeNodeConfigurationOptions = (0, core_1.createPaginator)(RedshiftClient_1.RedshiftClient, DescribeNodeConfigurationOptionsCommand_1.DescribeNodeConfigurationOptionsCommand, "Marker", "Marker", "MaxRecords");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateDescribeOrderableClusterOptions = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const DescribeOrderableClusterOptionsCommand_1 = require("../commands/DescribeOrderableClusterOptionsCommand");
5
6
  const RedshiftClient_1 = require("../RedshiftClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new DescribeOrderableClusterOptionsCommand_1.DescribeOrderableClusterOptionsCommand(input), ...args);
8
- };
9
- async function* paginateDescribeOrderableClusterOptions(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.Marker = token;
15
- input["MaxRecords"] = config.pageSize;
16
- if (config.client instanceof RedshiftClient_1.RedshiftClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Redshift | RedshiftClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.Marker;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateDescribeOrderableClusterOptions = paginateDescribeOrderableClusterOptions;
7
+ exports.paginateDescribeOrderableClusterOptions = (0, core_1.createPaginator)(RedshiftClient_1.RedshiftClient, DescribeOrderableClusterOptionsCommand_1.DescribeOrderableClusterOptionsCommand, "Marker", "Marker", "MaxRecords");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateDescribeRedshiftIdcApplications = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const DescribeRedshiftIdcApplicationsCommand_1 = require("../commands/DescribeRedshiftIdcApplicationsCommand");
5
6
  const RedshiftClient_1 = require("../RedshiftClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new DescribeRedshiftIdcApplicationsCommand_1.DescribeRedshiftIdcApplicationsCommand(input), ...args);
8
- };
9
- async function* paginateDescribeRedshiftIdcApplications(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.Marker = token;
15
- input["MaxRecords"] = config.pageSize;
16
- if (config.client instanceof RedshiftClient_1.RedshiftClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Redshift | RedshiftClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.Marker;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateDescribeRedshiftIdcApplications = paginateDescribeRedshiftIdcApplications;
7
+ exports.paginateDescribeRedshiftIdcApplications = (0, core_1.createPaginator)(RedshiftClient_1.RedshiftClient, DescribeRedshiftIdcApplicationsCommand_1.DescribeRedshiftIdcApplicationsCommand, "Marker", "Marker", "MaxRecords");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateDescribeReservedNodeExchangeStatus = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const DescribeReservedNodeExchangeStatusCommand_1 = require("../commands/DescribeReservedNodeExchangeStatusCommand");
5
6
  const RedshiftClient_1 = require("../RedshiftClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new DescribeReservedNodeExchangeStatusCommand_1.DescribeReservedNodeExchangeStatusCommand(input), ...args);
8
- };
9
- async function* paginateDescribeReservedNodeExchangeStatus(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.Marker = token;
15
- input["MaxRecords"] = config.pageSize;
16
- if (config.client instanceof RedshiftClient_1.RedshiftClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Redshift | RedshiftClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.Marker;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateDescribeReservedNodeExchangeStatus = paginateDescribeReservedNodeExchangeStatus;
7
+ exports.paginateDescribeReservedNodeExchangeStatus = (0, core_1.createPaginator)(RedshiftClient_1.RedshiftClient, DescribeReservedNodeExchangeStatusCommand_1.DescribeReservedNodeExchangeStatusCommand, "Marker", "Marker", "MaxRecords");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateDescribeReservedNodeOfferings = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const DescribeReservedNodeOfferingsCommand_1 = require("../commands/DescribeReservedNodeOfferingsCommand");
5
6
  const RedshiftClient_1 = require("../RedshiftClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new DescribeReservedNodeOfferingsCommand_1.DescribeReservedNodeOfferingsCommand(input), ...args);
8
- };
9
- async function* paginateDescribeReservedNodeOfferings(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.Marker = token;
15
- input["MaxRecords"] = config.pageSize;
16
- if (config.client instanceof RedshiftClient_1.RedshiftClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Redshift | RedshiftClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.Marker;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateDescribeReservedNodeOfferings = paginateDescribeReservedNodeOfferings;
7
+ exports.paginateDescribeReservedNodeOfferings = (0, core_1.createPaginator)(RedshiftClient_1.RedshiftClient, DescribeReservedNodeOfferingsCommand_1.DescribeReservedNodeOfferingsCommand, "Marker", "Marker", "MaxRecords");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateDescribeReservedNodes = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const DescribeReservedNodesCommand_1 = require("../commands/DescribeReservedNodesCommand");
5
6
  const RedshiftClient_1 = require("../RedshiftClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new DescribeReservedNodesCommand_1.DescribeReservedNodesCommand(input), ...args);
8
- };
9
- async function* paginateDescribeReservedNodes(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.Marker = token;
15
- input["MaxRecords"] = config.pageSize;
16
- if (config.client instanceof RedshiftClient_1.RedshiftClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Redshift | RedshiftClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.Marker;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateDescribeReservedNodes = paginateDescribeReservedNodes;
7
+ exports.paginateDescribeReservedNodes = (0, core_1.createPaginator)(RedshiftClient_1.RedshiftClient, DescribeReservedNodesCommand_1.DescribeReservedNodesCommand, "Marker", "Marker", "MaxRecords");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateDescribeScheduledActions = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const DescribeScheduledActionsCommand_1 = require("../commands/DescribeScheduledActionsCommand");
5
6
  const RedshiftClient_1 = require("../RedshiftClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new DescribeScheduledActionsCommand_1.DescribeScheduledActionsCommand(input), ...args);
8
- };
9
- async function* paginateDescribeScheduledActions(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.Marker = token;
15
- input["MaxRecords"] = config.pageSize;
16
- if (config.client instanceof RedshiftClient_1.RedshiftClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Redshift | RedshiftClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.Marker;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateDescribeScheduledActions = paginateDescribeScheduledActions;
7
+ exports.paginateDescribeScheduledActions = (0, core_1.createPaginator)(RedshiftClient_1.RedshiftClient, DescribeScheduledActionsCommand_1.DescribeScheduledActionsCommand, "Marker", "Marker", "MaxRecords");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateDescribeSnapshotCopyGrants = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const DescribeSnapshotCopyGrantsCommand_1 = require("../commands/DescribeSnapshotCopyGrantsCommand");
5
6
  const RedshiftClient_1 = require("../RedshiftClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new DescribeSnapshotCopyGrantsCommand_1.DescribeSnapshotCopyGrantsCommand(input), ...args);
8
- };
9
- async function* paginateDescribeSnapshotCopyGrants(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.Marker = token;
15
- input["MaxRecords"] = config.pageSize;
16
- if (config.client instanceof RedshiftClient_1.RedshiftClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Redshift | RedshiftClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.Marker;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateDescribeSnapshotCopyGrants = paginateDescribeSnapshotCopyGrants;
7
+ exports.paginateDescribeSnapshotCopyGrants = (0, core_1.createPaginator)(RedshiftClient_1.RedshiftClient, DescribeSnapshotCopyGrantsCommand_1.DescribeSnapshotCopyGrantsCommand, "Marker", "Marker", "MaxRecords");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateDescribeSnapshotSchedules = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const DescribeSnapshotSchedulesCommand_1 = require("../commands/DescribeSnapshotSchedulesCommand");
5
6
  const RedshiftClient_1 = require("../RedshiftClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new DescribeSnapshotSchedulesCommand_1.DescribeSnapshotSchedulesCommand(input), ...args);
8
- };
9
- async function* paginateDescribeSnapshotSchedules(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.Marker = token;
15
- input["MaxRecords"] = config.pageSize;
16
- if (config.client instanceof RedshiftClient_1.RedshiftClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Redshift | RedshiftClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.Marker;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateDescribeSnapshotSchedules = paginateDescribeSnapshotSchedules;
7
+ exports.paginateDescribeSnapshotSchedules = (0, core_1.createPaginator)(RedshiftClient_1.RedshiftClient, DescribeSnapshotSchedulesCommand_1.DescribeSnapshotSchedulesCommand, "Marker", "Marker", "MaxRecords");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateDescribeTableRestoreStatus = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const DescribeTableRestoreStatusCommand_1 = require("../commands/DescribeTableRestoreStatusCommand");
5
6
  const RedshiftClient_1 = require("../RedshiftClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new DescribeTableRestoreStatusCommand_1.DescribeTableRestoreStatusCommand(input), ...args);
8
- };
9
- async function* paginateDescribeTableRestoreStatus(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.Marker = token;
15
- input["MaxRecords"] = config.pageSize;
16
- if (config.client instanceof RedshiftClient_1.RedshiftClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Redshift | RedshiftClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.Marker;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateDescribeTableRestoreStatus = paginateDescribeTableRestoreStatus;
7
+ exports.paginateDescribeTableRestoreStatus = (0, core_1.createPaginator)(RedshiftClient_1.RedshiftClient, DescribeTableRestoreStatusCommand_1.DescribeTableRestoreStatusCommand, "Marker", "Marker", "MaxRecords");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateDescribeTags = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const DescribeTagsCommand_1 = require("../commands/DescribeTagsCommand");
5
6
  const RedshiftClient_1 = require("../RedshiftClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new DescribeTagsCommand_1.DescribeTagsCommand(input), ...args);
8
- };
9
- async function* paginateDescribeTags(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.Marker = token;
15
- input["MaxRecords"] = config.pageSize;
16
- if (config.client instanceof RedshiftClient_1.RedshiftClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Redshift | RedshiftClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.Marker;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateDescribeTags = paginateDescribeTags;
7
+ exports.paginateDescribeTags = (0, core_1.createPaginator)(RedshiftClient_1.RedshiftClient, DescribeTagsCommand_1.DescribeTagsCommand, "Marker", "Marker", "MaxRecords");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateDescribeUsageLimits = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const DescribeUsageLimitsCommand_1 = require("../commands/DescribeUsageLimitsCommand");
5
6
  const RedshiftClient_1 = require("../RedshiftClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new DescribeUsageLimitsCommand_1.DescribeUsageLimitsCommand(input), ...args);
8
- };
9
- async function* paginateDescribeUsageLimits(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.Marker = token;
15
- input["MaxRecords"] = config.pageSize;
16
- if (config.client instanceof RedshiftClient_1.RedshiftClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Redshift | RedshiftClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.Marker;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateDescribeUsageLimits = paginateDescribeUsageLimits;
7
+ exports.paginateDescribeUsageLimits = (0, core_1.createPaginator)(RedshiftClient_1.RedshiftClient, DescribeUsageLimitsCommand_1.DescribeUsageLimitsCommand, "Marker", "Marker", "MaxRecords");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateGetReservedNodeExchangeConfigurationOptions = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const GetReservedNodeExchangeConfigurationOptionsCommand_1 = require("../commands/GetReservedNodeExchangeConfigurationOptionsCommand");
5
6
  const RedshiftClient_1 = require("../RedshiftClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new GetReservedNodeExchangeConfigurationOptionsCommand_1.GetReservedNodeExchangeConfigurationOptionsCommand(input), ...args);
8
- };
9
- async function* paginateGetReservedNodeExchangeConfigurationOptions(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.Marker = token;
15
- input["MaxRecords"] = config.pageSize;
16
- if (config.client instanceof RedshiftClient_1.RedshiftClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Redshift | RedshiftClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.Marker;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateGetReservedNodeExchangeConfigurationOptions = paginateGetReservedNodeExchangeConfigurationOptions;
7
+ exports.paginateGetReservedNodeExchangeConfigurationOptions = (0, core_1.createPaginator)(RedshiftClient_1.RedshiftClient, GetReservedNodeExchangeConfigurationOptionsCommand_1.GetReservedNodeExchangeConfigurationOptionsCommand, "Marker", "Marker", "MaxRecords");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateGetReservedNodeExchangeOfferings = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const GetReservedNodeExchangeOfferingsCommand_1 = require("../commands/GetReservedNodeExchangeOfferingsCommand");
5
6
  const RedshiftClient_1 = require("../RedshiftClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new GetReservedNodeExchangeOfferingsCommand_1.GetReservedNodeExchangeOfferingsCommand(input), ...args);
8
- };
9
- async function* paginateGetReservedNodeExchangeOfferings(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.Marker = token;
15
- input["MaxRecords"] = config.pageSize;
16
- if (config.client instanceof RedshiftClient_1.RedshiftClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Redshift | RedshiftClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.Marker;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateGetReservedNodeExchangeOfferings = paginateGetReservedNodeExchangeOfferings;
7
+ exports.paginateGetReservedNodeExchangeOfferings = (0, core_1.createPaginator)(RedshiftClient_1.RedshiftClient, GetReservedNodeExchangeOfferingsCommand_1.GetReservedNodeExchangeOfferingsCommand, "Marker", "Marker", "MaxRecords");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { DescribeClusterDbRevisionsCommand, } from "../commands/DescribeClusterDbRevisionsCommand";
2
3
  import { RedshiftClient } from "../RedshiftClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new DescribeClusterDbRevisionsCommand(input), ...args);
5
- };
6
- export async function* paginateDescribeClusterDbRevisions(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.Marker = token;
12
- input["MaxRecords"] = config.pageSize;
13
- if (config.client instanceof RedshiftClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected Redshift | RedshiftClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.Marker;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateDescribeClusterDbRevisions = createPaginator(RedshiftClient, DescribeClusterDbRevisionsCommand, "Marker", "Marker", "MaxRecords");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { DescribeClusterParameterGroupsCommand, } from "../commands/DescribeClusterParameterGroupsCommand";
2
3
  import { RedshiftClient } from "../RedshiftClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new DescribeClusterParameterGroupsCommand(input), ...args);
5
- };
6
- export async function* paginateDescribeClusterParameterGroups(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.Marker = token;
12
- input["MaxRecords"] = config.pageSize;
13
- if (config.client instanceof RedshiftClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected Redshift | RedshiftClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.Marker;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateDescribeClusterParameterGroups = createPaginator(RedshiftClient, DescribeClusterParameterGroupsCommand, "Marker", "Marker", "MaxRecords");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { DescribeClusterParametersCommand, } from "../commands/DescribeClusterParametersCommand";
2
3
  import { RedshiftClient } from "../RedshiftClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new DescribeClusterParametersCommand(input), ...args);
5
- };
6
- export async function* paginateDescribeClusterParameters(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.Marker = token;
12
- input["MaxRecords"] = config.pageSize;
13
- if (config.client instanceof RedshiftClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected Redshift | RedshiftClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.Marker;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateDescribeClusterParameters = createPaginator(RedshiftClient, DescribeClusterParametersCommand, "Marker", "Marker", "MaxRecords");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { DescribeClusterSecurityGroupsCommand, } from "../commands/DescribeClusterSecurityGroupsCommand";
2
3
  import { RedshiftClient } from "../RedshiftClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new DescribeClusterSecurityGroupsCommand(input), ...args);
5
- };
6
- export async function* paginateDescribeClusterSecurityGroups(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.Marker = token;
12
- input["MaxRecords"] = config.pageSize;
13
- if (config.client instanceof RedshiftClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected Redshift | RedshiftClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.Marker;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateDescribeClusterSecurityGroups = createPaginator(RedshiftClient, DescribeClusterSecurityGroupsCommand, "Marker", "Marker", "MaxRecords");