@aws-sdk/client-redshift 3.39.0 → 3.43.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 (190) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/dist-cjs/Redshift.js +30 -0
  3. package/dist-cjs/commands/DescribeHsmConfigurationsCommand.js +2 -1
  4. package/dist-cjs/commands/DescribeLoggingStatusCommand.js +1 -2
  5. package/dist-cjs/commands/DescribeReservedNodeExchangeStatusCommand.js +36 -0
  6. package/dist-cjs/commands/GetReservedNodeExchangeConfigurationOptionsCommand.js +36 -0
  7. package/dist-cjs/commands/index.js +2 -0
  8. package/dist-cjs/endpoints.js +143 -24
  9. package/dist-cjs/models/models_0.js +20 -17
  10. package/dist-cjs/models/models_1.js +56 -3
  11. package/dist-cjs/pagination/DescribeDataSharesForConsumerPaginator.js +35 -0
  12. package/dist-cjs/pagination/DescribeDataSharesForProducerPaginator.js +35 -0
  13. package/dist-cjs/pagination/DescribeDataSharesPaginator.js +35 -0
  14. package/dist-cjs/pagination/DescribeReservedNodeExchangeStatusPaginator.js +35 -0
  15. package/dist-cjs/pagination/GetReservedNodeExchangeConfigurationOptionsPaginator.js +35 -0
  16. package/dist-cjs/pagination/index.js +6 -1
  17. package/dist-cjs/protocols/Aws_query.js +504 -4
  18. package/dist-cjs/runtimeConfig.browser.js +6 -3
  19. package/dist-cjs/runtimeConfig.js +5 -3
  20. package/dist-es/Redshift.js +30 -0
  21. package/dist-es/commands/DescribeHsmConfigurationsCommand.js +2 -1
  22. package/dist-es/commands/DescribeLoggingStatusCommand.js +1 -2
  23. package/dist-es/commands/DescribeReservedNodeExchangeStatusCommand.js +39 -0
  24. package/dist-es/commands/GetReservedNodeExchangeConfigurationOptionsCommand.js +39 -0
  25. package/dist-es/commands/index.js +2 -0
  26. package/dist-es/endpoints.js +143 -24
  27. package/dist-es/models/models_0.js +13 -8
  28. package/dist-es/models/models_1.js +37 -0
  29. package/dist-es/pagination/DescribeDataSharesForConsumerPaginator.js +74 -0
  30. package/dist-es/pagination/DescribeDataSharesForProducerPaginator.js +74 -0
  31. package/dist-es/pagination/DescribeDataSharesPaginator.js +74 -0
  32. package/dist-es/pagination/DescribeReservedNodeExchangeStatusPaginator.js +74 -0
  33. package/dist-es/pagination/GetReservedNodeExchangeConfigurationOptionsPaginator.js +74 -0
  34. package/dist-es/pagination/index.js +6 -1
  35. package/dist-es/protocols/Aws_query.js +671 -161
  36. package/dist-es/runtimeConfig.browser.js +3 -2
  37. package/dist-es/runtimeConfig.js +3 -3
  38. package/dist-types/Redshift.d.ts +17 -0
  39. package/dist-types/RedshiftClient.d.ts +12 -2
  40. package/dist-types/commands/AcceptReservedNodeExchangeCommand.d.ts +1 -1
  41. package/dist-types/commands/AddPartnerCommand.d.ts +1 -1
  42. package/dist-types/commands/AssociateDataShareConsumerCommand.d.ts +1 -1
  43. package/dist-types/commands/AuthorizeClusterSecurityGroupIngressCommand.d.ts +1 -1
  44. package/dist-types/commands/AuthorizeDataShareCommand.d.ts +1 -1
  45. package/dist-types/commands/AuthorizeEndpointAccessCommand.d.ts +1 -1
  46. package/dist-types/commands/AuthorizeSnapshotAccessCommand.d.ts +1 -1
  47. package/dist-types/commands/BatchDeleteClusterSnapshotsCommand.d.ts +1 -1
  48. package/dist-types/commands/BatchModifyClusterSnapshotsCommand.d.ts +1 -1
  49. package/dist-types/commands/CancelResizeCommand.d.ts +1 -1
  50. package/dist-types/commands/CopyClusterSnapshotCommand.d.ts +1 -1
  51. package/dist-types/commands/CreateAuthenticationProfileCommand.d.ts +1 -1
  52. package/dist-types/commands/CreateClusterCommand.d.ts +1 -1
  53. package/dist-types/commands/CreateClusterParameterGroupCommand.d.ts +1 -1
  54. package/dist-types/commands/CreateClusterSecurityGroupCommand.d.ts +1 -1
  55. package/dist-types/commands/CreateClusterSnapshotCommand.d.ts +1 -1
  56. package/dist-types/commands/CreateClusterSubnetGroupCommand.d.ts +1 -1
  57. package/dist-types/commands/CreateEndpointAccessCommand.d.ts +1 -1
  58. package/dist-types/commands/CreateEventSubscriptionCommand.d.ts +1 -1
  59. package/dist-types/commands/CreateHsmClientCertificateCommand.d.ts +1 -1
  60. package/dist-types/commands/CreateHsmConfigurationCommand.d.ts +1 -1
  61. package/dist-types/commands/CreateScheduledActionCommand.d.ts +1 -1
  62. package/dist-types/commands/CreateSnapshotCopyGrantCommand.d.ts +1 -1
  63. package/dist-types/commands/CreateSnapshotScheduleCommand.d.ts +1 -1
  64. package/dist-types/commands/CreateTagsCommand.d.ts +1 -1
  65. package/dist-types/commands/CreateUsageLimitCommand.d.ts +1 -1
  66. package/dist-types/commands/DeauthorizeDataShareCommand.d.ts +1 -1
  67. package/dist-types/commands/DeleteAuthenticationProfileCommand.d.ts +1 -1
  68. package/dist-types/commands/DeleteClusterCommand.d.ts +1 -1
  69. package/dist-types/commands/DeleteClusterParameterGroupCommand.d.ts +1 -1
  70. package/dist-types/commands/DeleteClusterSecurityGroupCommand.d.ts +1 -1
  71. package/dist-types/commands/DeleteClusterSnapshotCommand.d.ts +1 -1
  72. package/dist-types/commands/DeleteClusterSubnetGroupCommand.d.ts +1 -1
  73. package/dist-types/commands/DeleteEndpointAccessCommand.d.ts +1 -1
  74. package/dist-types/commands/DeleteEventSubscriptionCommand.d.ts +1 -1
  75. package/dist-types/commands/DeleteHsmClientCertificateCommand.d.ts +1 -1
  76. package/dist-types/commands/DeleteHsmConfigurationCommand.d.ts +1 -1
  77. package/dist-types/commands/DeletePartnerCommand.d.ts +1 -1
  78. package/dist-types/commands/DeleteScheduledActionCommand.d.ts +1 -1
  79. package/dist-types/commands/DeleteSnapshotCopyGrantCommand.d.ts +1 -1
  80. package/dist-types/commands/DeleteSnapshotScheduleCommand.d.ts +1 -1
  81. package/dist-types/commands/DeleteTagsCommand.d.ts +1 -1
  82. package/dist-types/commands/DeleteUsageLimitCommand.d.ts +1 -1
  83. package/dist-types/commands/DescribeAccountAttributesCommand.d.ts +1 -1
  84. package/dist-types/commands/DescribeAuthenticationProfilesCommand.d.ts +1 -1
  85. package/dist-types/commands/DescribeClusterDbRevisionsCommand.d.ts +1 -1
  86. package/dist-types/commands/DescribeClusterParameterGroupsCommand.d.ts +1 -1
  87. package/dist-types/commands/DescribeClusterParametersCommand.d.ts +1 -1
  88. package/dist-types/commands/DescribeClusterSecurityGroupsCommand.d.ts +1 -1
  89. package/dist-types/commands/DescribeClusterSnapshotsCommand.d.ts +1 -1
  90. package/dist-types/commands/DescribeClusterSubnetGroupsCommand.d.ts +1 -1
  91. package/dist-types/commands/DescribeClusterTracksCommand.d.ts +1 -1
  92. package/dist-types/commands/DescribeClusterVersionsCommand.d.ts +1 -1
  93. package/dist-types/commands/DescribeClustersCommand.d.ts +1 -1
  94. package/dist-types/commands/DescribeDataSharesCommand.d.ts +1 -1
  95. package/dist-types/commands/DescribeDataSharesForConsumerCommand.d.ts +1 -1
  96. package/dist-types/commands/DescribeDataSharesForProducerCommand.d.ts +1 -1
  97. package/dist-types/commands/DescribeDefaultClusterParametersCommand.d.ts +1 -1
  98. package/dist-types/commands/DescribeEndpointAccessCommand.d.ts +1 -1
  99. package/dist-types/commands/DescribeEndpointAuthorizationCommand.d.ts +1 -1
  100. package/dist-types/commands/DescribeEventCategoriesCommand.d.ts +1 -1
  101. package/dist-types/commands/DescribeEventSubscriptionsCommand.d.ts +1 -1
  102. package/dist-types/commands/DescribeEventsCommand.d.ts +1 -1
  103. package/dist-types/commands/DescribeHsmClientCertificatesCommand.d.ts +1 -1
  104. package/dist-types/commands/DescribeHsmConfigurationsCommand.d.ts +3 -2
  105. package/dist-types/commands/DescribeLoggingStatusCommand.d.ts +2 -3
  106. package/dist-types/commands/DescribeNodeConfigurationOptionsCommand.d.ts +1 -1
  107. package/dist-types/commands/DescribeOrderableClusterOptionsCommand.d.ts +1 -1
  108. package/dist-types/commands/DescribePartnersCommand.d.ts +1 -1
  109. package/dist-types/commands/DescribeReservedNodeExchangeStatusCommand.d.ts +36 -0
  110. package/dist-types/commands/DescribeReservedNodeOfferingsCommand.d.ts +1 -1
  111. package/dist-types/commands/DescribeReservedNodesCommand.d.ts +1 -1
  112. package/dist-types/commands/DescribeResizeCommand.d.ts +1 -1
  113. package/dist-types/commands/DescribeScheduledActionsCommand.d.ts +1 -1
  114. package/dist-types/commands/DescribeSnapshotCopyGrantsCommand.d.ts +1 -1
  115. package/dist-types/commands/DescribeSnapshotSchedulesCommand.d.ts +1 -1
  116. package/dist-types/commands/DescribeStorageCommand.d.ts +1 -1
  117. package/dist-types/commands/DescribeTableRestoreStatusCommand.d.ts +1 -1
  118. package/dist-types/commands/DescribeTagsCommand.d.ts +1 -1
  119. package/dist-types/commands/DescribeUsageLimitsCommand.d.ts +1 -1
  120. package/dist-types/commands/DisableLoggingCommand.d.ts +1 -1
  121. package/dist-types/commands/DisableSnapshotCopyCommand.d.ts +1 -1
  122. package/dist-types/commands/DisassociateDataShareConsumerCommand.d.ts +1 -1
  123. package/dist-types/commands/EnableLoggingCommand.d.ts +1 -1
  124. package/dist-types/commands/EnableSnapshotCopyCommand.d.ts +1 -1
  125. package/dist-types/commands/GetClusterCredentialsCommand.d.ts +1 -1
  126. package/dist-types/commands/GetReservedNodeExchangeConfigurationOptionsCommand.d.ts +37 -0
  127. package/dist-types/commands/GetReservedNodeExchangeOfferingsCommand.d.ts +1 -1
  128. package/dist-types/commands/ModifyAquaConfigurationCommand.d.ts +1 -1
  129. package/dist-types/commands/ModifyAuthenticationProfileCommand.d.ts +1 -1
  130. package/dist-types/commands/ModifyClusterCommand.d.ts +1 -1
  131. package/dist-types/commands/ModifyClusterDbRevisionCommand.d.ts +1 -1
  132. package/dist-types/commands/ModifyClusterIamRolesCommand.d.ts +1 -1
  133. package/dist-types/commands/ModifyClusterMaintenanceCommand.d.ts +1 -1
  134. package/dist-types/commands/ModifyClusterParameterGroupCommand.d.ts +1 -1
  135. package/dist-types/commands/ModifyClusterSnapshotCommand.d.ts +1 -1
  136. package/dist-types/commands/ModifyClusterSnapshotScheduleCommand.d.ts +1 -1
  137. package/dist-types/commands/ModifyClusterSubnetGroupCommand.d.ts +1 -1
  138. package/dist-types/commands/ModifyEndpointAccessCommand.d.ts +1 -1
  139. package/dist-types/commands/ModifyEventSubscriptionCommand.d.ts +1 -1
  140. package/dist-types/commands/ModifyScheduledActionCommand.d.ts +1 -1
  141. package/dist-types/commands/ModifySnapshotCopyRetentionPeriodCommand.d.ts +1 -1
  142. package/dist-types/commands/ModifySnapshotScheduleCommand.d.ts +1 -1
  143. package/dist-types/commands/ModifyUsageLimitCommand.d.ts +1 -1
  144. package/dist-types/commands/PauseClusterCommand.d.ts +1 -1
  145. package/dist-types/commands/PurchaseReservedNodeOfferingCommand.d.ts +1 -1
  146. package/dist-types/commands/RebootClusterCommand.d.ts +1 -1
  147. package/dist-types/commands/RejectDataShareCommand.d.ts +1 -1
  148. package/dist-types/commands/ResetClusterParameterGroupCommand.d.ts +1 -1
  149. package/dist-types/commands/ResizeClusterCommand.d.ts +1 -1
  150. package/dist-types/commands/RestoreFromClusterSnapshotCommand.d.ts +1 -1
  151. package/dist-types/commands/RestoreTableFromClusterSnapshotCommand.d.ts +1 -1
  152. package/dist-types/commands/ResumeClusterCommand.d.ts +1 -1
  153. package/dist-types/commands/RevokeClusterSecurityGroupIngressCommand.d.ts +1 -1
  154. package/dist-types/commands/RevokeEndpointAccessCommand.d.ts +1 -1
  155. package/dist-types/commands/RevokeSnapshotAccessCommand.d.ts +1 -1
  156. package/dist-types/commands/RotateEncryptionKeyCommand.d.ts +1 -1
  157. package/dist-types/commands/UpdatePartnerStatusCommand.d.ts +1 -1
  158. package/dist-types/commands/index.d.ts +2 -0
  159. package/dist-types/models/models_0.d.ts +86 -49
  160. package/dist-types/models/models_1.d.ts +202 -1
  161. package/dist-types/pagination/DescribeDataSharesForConsumerPaginator.d.ts +4 -0
  162. package/dist-types/pagination/DescribeDataSharesForProducerPaginator.d.ts +4 -0
  163. package/dist-types/pagination/DescribeDataSharesPaginator.d.ts +4 -0
  164. package/dist-types/pagination/DescribeReservedNodeExchangeStatusPaginator.d.ts +4 -0
  165. package/dist-types/pagination/GetReservedNodeExchangeConfigurationOptionsPaginator.d.ts +4 -0
  166. package/dist-types/pagination/index.d.ts +6 -1
  167. package/dist-types/protocols/Aws_query.d.ts +6 -0
  168. package/dist-types/runtimeConfig.browser.d.ts +2 -0
  169. package/dist-types/runtimeConfig.d.ts +2 -0
  170. package/dist-types/runtimeConfig.native.d.ts +2 -0
  171. package/dist-types/ts3.4/Redshift.d.ts +10 -0
  172. package/dist-types/ts3.4/RedshiftClient.d.ts +8 -2
  173. package/dist-types/ts3.4/commands/DescribeHsmConfigurationsCommand.d.ts +2 -1
  174. package/dist-types/ts3.4/commands/DescribeLoggingStatusCommand.d.ts +1 -2
  175. package/dist-types/ts3.4/commands/DescribeReservedNodeExchangeStatusCommand.d.ts +17 -0
  176. package/dist-types/ts3.4/commands/GetReservedNodeExchangeConfigurationOptionsCommand.d.ts +17 -0
  177. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  178. package/dist-types/ts3.4/models/models_0.d.ts +43 -20
  179. package/dist-types/ts3.4/models/models_1.d.ts +106 -1
  180. package/dist-types/ts3.4/pagination/DescribeDataSharesForConsumerPaginator.d.ts +4 -0
  181. package/dist-types/ts3.4/pagination/DescribeDataSharesForProducerPaginator.d.ts +4 -0
  182. package/dist-types/ts3.4/pagination/DescribeDataSharesPaginator.d.ts +4 -0
  183. package/dist-types/ts3.4/pagination/DescribeReservedNodeExchangeStatusPaginator.d.ts +4 -0
  184. package/dist-types/ts3.4/pagination/GetReservedNodeExchangeConfigurationOptionsPaginator.d.ts +4 -0
  185. package/dist-types/ts3.4/pagination/index.d.ts +6 -1
  186. package/dist-types/ts3.4/protocols/Aws_query.d.ts +6 -0
  187. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  188. package/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  189. package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  190. package/package.json +24 -24
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateDescribeDataSharesForConsumer = void 0;
4
+ const DescribeDataSharesForConsumerCommand_1 = require("../commands/DescribeDataSharesForConsumerCommand");
5
+ const Redshift_1 = require("../Redshift");
6
+ const RedshiftClient_1 = require("../RedshiftClient");
7
+ const makePagedClientRequest = async (client, input, ...args) => {
8
+ return await client.send(new DescribeDataSharesForConsumerCommand_1.DescribeDataSharesForConsumerCommand(input), ...args);
9
+ };
10
+ const makePagedRequest = async (client, input, ...args) => {
11
+ return await client.describeDataSharesForConsumer(input, ...args);
12
+ };
13
+ async function* paginateDescribeDataSharesForConsumer(config, input, ...additionalArguments) {
14
+ let token = config.startingToken || undefined;
15
+ let hasNext = true;
16
+ let page;
17
+ while (hasNext) {
18
+ input.Marker = token;
19
+ input["MaxRecords"] = config.pageSize;
20
+ if (config.client instanceof Redshift_1.Redshift) {
21
+ page = await makePagedRequest(config.client, input, ...additionalArguments);
22
+ }
23
+ else if (config.client instanceof RedshiftClient_1.RedshiftClient) {
24
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
+ }
26
+ else {
27
+ throw new Error("Invalid client, expected Redshift | RedshiftClient");
28
+ }
29
+ yield page;
30
+ token = page.Marker;
31
+ hasNext = !!token;
32
+ }
33
+ return undefined;
34
+ }
35
+ exports.paginateDescribeDataSharesForConsumer = paginateDescribeDataSharesForConsumer;
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateDescribeDataSharesForProducer = void 0;
4
+ const DescribeDataSharesForProducerCommand_1 = require("../commands/DescribeDataSharesForProducerCommand");
5
+ const Redshift_1 = require("../Redshift");
6
+ const RedshiftClient_1 = require("../RedshiftClient");
7
+ const makePagedClientRequest = async (client, input, ...args) => {
8
+ return await client.send(new DescribeDataSharesForProducerCommand_1.DescribeDataSharesForProducerCommand(input), ...args);
9
+ };
10
+ const makePagedRequest = async (client, input, ...args) => {
11
+ return await client.describeDataSharesForProducer(input, ...args);
12
+ };
13
+ async function* paginateDescribeDataSharesForProducer(config, input, ...additionalArguments) {
14
+ let token = config.startingToken || undefined;
15
+ let hasNext = true;
16
+ let page;
17
+ while (hasNext) {
18
+ input.Marker = token;
19
+ input["MaxRecords"] = config.pageSize;
20
+ if (config.client instanceof Redshift_1.Redshift) {
21
+ page = await makePagedRequest(config.client, input, ...additionalArguments);
22
+ }
23
+ else if (config.client instanceof RedshiftClient_1.RedshiftClient) {
24
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
+ }
26
+ else {
27
+ throw new Error("Invalid client, expected Redshift | RedshiftClient");
28
+ }
29
+ yield page;
30
+ token = page.Marker;
31
+ hasNext = !!token;
32
+ }
33
+ return undefined;
34
+ }
35
+ exports.paginateDescribeDataSharesForProducer = paginateDescribeDataSharesForProducer;
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateDescribeDataShares = void 0;
4
+ const DescribeDataSharesCommand_1 = require("../commands/DescribeDataSharesCommand");
5
+ const Redshift_1 = require("../Redshift");
6
+ const RedshiftClient_1 = require("../RedshiftClient");
7
+ const makePagedClientRequest = async (client, input, ...args) => {
8
+ return await client.send(new DescribeDataSharesCommand_1.DescribeDataSharesCommand(input), ...args);
9
+ };
10
+ const makePagedRequest = async (client, input, ...args) => {
11
+ return await client.describeDataShares(input, ...args);
12
+ };
13
+ async function* paginateDescribeDataShares(config, input, ...additionalArguments) {
14
+ let token = config.startingToken || undefined;
15
+ let hasNext = true;
16
+ let page;
17
+ while (hasNext) {
18
+ input.Marker = token;
19
+ input["MaxRecords"] = config.pageSize;
20
+ if (config.client instanceof Redshift_1.Redshift) {
21
+ page = await makePagedRequest(config.client, input, ...additionalArguments);
22
+ }
23
+ else if (config.client instanceof RedshiftClient_1.RedshiftClient) {
24
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
+ }
26
+ else {
27
+ throw new Error("Invalid client, expected Redshift | RedshiftClient");
28
+ }
29
+ yield page;
30
+ token = page.Marker;
31
+ hasNext = !!token;
32
+ }
33
+ return undefined;
34
+ }
35
+ exports.paginateDescribeDataShares = paginateDescribeDataShares;
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateDescribeReservedNodeExchangeStatus = void 0;
4
+ const DescribeReservedNodeExchangeStatusCommand_1 = require("../commands/DescribeReservedNodeExchangeStatusCommand");
5
+ const Redshift_1 = require("../Redshift");
6
+ const RedshiftClient_1 = require("../RedshiftClient");
7
+ const makePagedClientRequest = async (client, input, ...args) => {
8
+ return await client.send(new DescribeReservedNodeExchangeStatusCommand_1.DescribeReservedNodeExchangeStatusCommand(input), ...args);
9
+ };
10
+ const makePagedRequest = async (client, input, ...args) => {
11
+ return await client.describeReservedNodeExchangeStatus(input, ...args);
12
+ };
13
+ async function* paginateDescribeReservedNodeExchangeStatus(config, input, ...additionalArguments) {
14
+ let token = config.startingToken || undefined;
15
+ let hasNext = true;
16
+ let page;
17
+ while (hasNext) {
18
+ input.Marker = token;
19
+ input["MaxRecords"] = config.pageSize;
20
+ if (config.client instanceof Redshift_1.Redshift) {
21
+ page = await makePagedRequest(config.client, input, ...additionalArguments);
22
+ }
23
+ else if (config.client instanceof RedshiftClient_1.RedshiftClient) {
24
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
+ }
26
+ else {
27
+ throw new Error("Invalid client, expected Redshift | RedshiftClient");
28
+ }
29
+ yield page;
30
+ token = page.Marker;
31
+ hasNext = !!token;
32
+ }
33
+ return undefined;
34
+ }
35
+ exports.paginateDescribeReservedNodeExchangeStatus = paginateDescribeReservedNodeExchangeStatus;
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateGetReservedNodeExchangeConfigurationOptions = void 0;
4
+ const GetReservedNodeExchangeConfigurationOptionsCommand_1 = require("../commands/GetReservedNodeExchangeConfigurationOptionsCommand");
5
+ const Redshift_1 = require("../Redshift");
6
+ const RedshiftClient_1 = require("../RedshiftClient");
7
+ const makePagedClientRequest = async (client, input, ...args) => {
8
+ return await client.send(new GetReservedNodeExchangeConfigurationOptionsCommand_1.GetReservedNodeExchangeConfigurationOptionsCommand(input), ...args);
9
+ };
10
+ const makePagedRequest = async (client, input, ...args) => {
11
+ return await client.getReservedNodeExchangeConfigurationOptions(input, ...args);
12
+ };
13
+ async function* paginateGetReservedNodeExchangeConfigurationOptions(config, input, ...additionalArguments) {
14
+ let token = config.startingToken || undefined;
15
+ let hasNext = true;
16
+ let page;
17
+ while (hasNext) {
18
+ input.Marker = token;
19
+ input["MaxRecords"] = config.pageSize;
20
+ if (config.client instanceof Redshift_1.Redshift) {
21
+ page = await makePagedRequest(config.client, input, ...additionalArguments);
22
+ }
23
+ else if (config.client instanceof RedshiftClient_1.RedshiftClient) {
24
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
+ }
26
+ else {
27
+ throw new Error("Invalid client, expected Redshift | RedshiftClient");
28
+ }
29
+ yield page;
30
+ token = page.Marker;
31
+ hasNext = !!token;
32
+ }
33
+ return undefined;
34
+ }
35
+ exports.paginateGetReservedNodeExchangeConfigurationOptions = paginateGetReservedNodeExchangeConfigurationOptions;
@@ -10,8 +10,11 @@ tslib_1.__exportStar(require("./DescribeClusterSubnetGroupsPaginator"), exports)
10
10
  tslib_1.__exportStar(require("./DescribeClusterTracksPaginator"), exports);
11
11
  tslib_1.__exportStar(require("./DescribeClusterVersionsPaginator"), exports);
12
12
  tslib_1.__exportStar(require("./DescribeClustersPaginator"), exports);
13
- tslib_1.__exportStar(require("./DescribeDefaultClusterParametersPaginator"), exports);
13
+ tslib_1.__exportStar(require("./DescribeDataSharesForConsumerPaginator"), exports);
14
14
  tslib_1.__exportStar(require("./Interfaces"), exports);
15
+ tslib_1.__exportStar(require("./DescribeDataSharesForProducerPaginator"), exports);
16
+ tslib_1.__exportStar(require("./DescribeDataSharesPaginator"), exports);
17
+ tslib_1.__exportStar(require("./DescribeDefaultClusterParametersPaginator"), exports);
15
18
  tslib_1.__exportStar(require("./DescribeEndpointAccessPaginator"), exports);
16
19
  tslib_1.__exportStar(require("./DescribeEndpointAuthorizationPaginator"), exports);
17
20
  tslib_1.__exportStar(require("./DescribeEventSubscriptionsPaginator"), exports);
@@ -20,6 +23,7 @@ tslib_1.__exportStar(require("./DescribeHsmClientCertificatesPaginator"), export
20
23
  tslib_1.__exportStar(require("./DescribeHsmConfigurationsPaginator"), exports);
21
24
  tslib_1.__exportStar(require("./DescribeNodeConfigurationOptionsPaginator"), exports);
22
25
  tslib_1.__exportStar(require("./DescribeOrderableClusterOptionsPaginator"), exports);
26
+ tslib_1.__exportStar(require("./DescribeReservedNodeExchangeStatusPaginator"), exports);
23
27
  tslib_1.__exportStar(require("./DescribeReservedNodeOfferingsPaginator"), exports);
24
28
  tslib_1.__exportStar(require("./DescribeReservedNodesPaginator"), exports);
25
29
  tslib_1.__exportStar(require("./DescribeScheduledActionsPaginator"), exports);
@@ -28,4 +32,5 @@ tslib_1.__exportStar(require("./DescribeSnapshotSchedulesPaginator"), exports);
28
32
  tslib_1.__exportStar(require("./DescribeTableRestoreStatusPaginator"), exports);
29
33
  tslib_1.__exportStar(require("./DescribeTagsPaginator"), exports);
30
34
  tslib_1.__exportStar(require("./DescribeUsageLimitsPaginator"), exports);
35
+ tslib_1.__exportStar(require("./GetReservedNodeExchangeConfigurationOptionsPaginator"), exports);
31
36
  tslib_1.__exportStar(require("./GetReservedNodeExchangeOfferingsPaginator"), exports);