@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,74 @@
1
+ import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
2
+ import { DescribeDataSharesForProducerCommand, } from "../commands/DescribeDataSharesForProducerCommand";
3
+ import { Redshift } from "../Redshift";
4
+ import { RedshiftClient } from "../RedshiftClient";
5
+ var makePagedClientRequest = function (client, input) {
6
+ var args = [];
7
+ for (var _i = 2; _i < arguments.length; _i++) {
8
+ args[_i - 2] = arguments[_i];
9
+ }
10
+ return __awaiter(void 0, void 0, void 0, function () {
11
+ return __generator(this, function (_a) {
12
+ switch (_a.label) {
13
+ case 0: return [4, client.send.apply(client, __spreadArray([new DescribeDataSharesForProducerCommand(input)], __read(args)))];
14
+ case 1: return [2, _a.sent()];
15
+ }
16
+ });
17
+ });
18
+ };
19
+ var makePagedRequest = function (client, input) {
20
+ var args = [];
21
+ for (var _i = 2; _i < arguments.length; _i++) {
22
+ args[_i - 2] = arguments[_i];
23
+ }
24
+ return __awaiter(void 0, void 0, void 0, function () {
25
+ return __generator(this, function (_a) {
26
+ switch (_a.label) {
27
+ case 0: return [4, client.describeDataSharesForProducer.apply(client, __spreadArray([input], __read(args)))];
28
+ case 1: return [2, _a.sent()];
29
+ }
30
+ });
31
+ });
32
+ };
33
+ export function paginateDescribeDataSharesForProducer(config, input) {
34
+ var additionalArguments = [];
35
+ for (var _i = 2; _i < arguments.length; _i++) {
36
+ additionalArguments[_i - 2] = arguments[_i];
37
+ }
38
+ return __asyncGenerator(this, arguments, function paginateDescribeDataSharesForProducer_1() {
39
+ var token, hasNext, page;
40
+ return __generator(this, function (_a) {
41
+ switch (_a.label) {
42
+ case 0:
43
+ token = config.startingToken || undefined;
44
+ hasNext = true;
45
+ _a.label = 1;
46
+ case 1:
47
+ if (!hasNext) return [3, 9];
48
+ input.Marker = token;
49
+ input["MaxRecords"] = config.pageSize;
50
+ if (!(config.client instanceof Redshift)) return [3, 3];
51
+ return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
52
+ case 2:
53
+ page = _a.sent();
54
+ return [3, 6];
55
+ case 3:
56
+ if (!(config.client instanceof RedshiftClient)) return [3, 5];
57
+ return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
58
+ case 4:
59
+ page = _a.sent();
60
+ return [3, 6];
61
+ case 5: throw new Error("Invalid client, expected Redshift | RedshiftClient");
62
+ case 6: return [4, __await(page)];
63
+ case 7: return [4, _a.sent()];
64
+ case 8:
65
+ _a.sent();
66
+ token = page.Marker;
67
+ hasNext = !!token;
68
+ return [3, 1];
69
+ case 9: return [4, __await(undefined)];
70
+ case 10: return [2, _a.sent()];
71
+ }
72
+ });
73
+ });
74
+ }
@@ -0,0 +1,74 @@
1
+ import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
2
+ import { DescribeDataSharesCommand, } from "../commands/DescribeDataSharesCommand";
3
+ import { Redshift } from "../Redshift";
4
+ import { RedshiftClient } from "../RedshiftClient";
5
+ var makePagedClientRequest = function (client, input) {
6
+ var args = [];
7
+ for (var _i = 2; _i < arguments.length; _i++) {
8
+ args[_i - 2] = arguments[_i];
9
+ }
10
+ return __awaiter(void 0, void 0, void 0, function () {
11
+ return __generator(this, function (_a) {
12
+ switch (_a.label) {
13
+ case 0: return [4, client.send.apply(client, __spreadArray([new DescribeDataSharesCommand(input)], __read(args)))];
14
+ case 1: return [2, _a.sent()];
15
+ }
16
+ });
17
+ });
18
+ };
19
+ var makePagedRequest = function (client, input) {
20
+ var args = [];
21
+ for (var _i = 2; _i < arguments.length; _i++) {
22
+ args[_i - 2] = arguments[_i];
23
+ }
24
+ return __awaiter(void 0, void 0, void 0, function () {
25
+ return __generator(this, function (_a) {
26
+ switch (_a.label) {
27
+ case 0: return [4, client.describeDataShares.apply(client, __spreadArray([input], __read(args)))];
28
+ case 1: return [2, _a.sent()];
29
+ }
30
+ });
31
+ });
32
+ };
33
+ export function paginateDescribeDataShares(config, input) {
34
+ var additionalArguments = [];
35
+ for (var _i = 2; _i < arguments.length; _i++) {
36
+ additionalArguments[_i - 2] = arguments[_i];
37
+ }
38
+ return __asyncGenerator(this, arguments, function paginateDescribeDataShares_1() {
39
+ var token, hasNext, page;
40
+ return __generator(this, function (_a) {
41
+ switch (_a.label) {
42
+ case 0:
43
+ token = config.startingToken || undefined;
44
+ hasNext = true;
45
+ _a.label = 1;
46
+ case 1:
47
+ if (!hasNext) return [3, 9];
48
+ input.Marker = token;
49
+ input["MaxRecords"] = config.pageSize;
50
+ if (!(config.client instanceof Redshift)) return [3, 3];
51
+ return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
52
+ case 2:
53
+ page = _a.sent();
54
+ return [3, 6];
55
+ case 3:
56
+ if (!(config.client instanceof RedshiftClient)) return [3, 5];
57
+ return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
58
+ case 4:
59
+ page = _a.sent();
60
+ return [3, 6];
61
+ case 5: throw new Error("Invalid client, expected Redshift | RedshiftClient");
62
+ case 6: return [4, __await(page)];
63
+ case 7: return [4, _a.sent()];
64
+ case 8:
65
+ _a.sent();
66
+ token = page.Marker;
67
+ hasNext = !!token;
68
+ return [3, 1];
69
+ case 9: return [4, __await(undefined)];
70
+ case 10: return [2, _a.sent()];
71
+ }
72
+ });
73
+ });
74
+ }
@@ -0,0 +1,74 @@
1
+ import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
2
+ import { DescribeReservedNodeExchangeStatusCommand, } from "../commands/DescribeReservedNodeExchangeStatusCommand";
3
+ import { Redshift } from "../Redshift";
4
+ import { RedshiftClient } from "../RedshiftClient";
5
+ var makePagedClientRequest = function (client, input) {
6
+ var args = [];
7
+ for (var _i = 2; _i < arguments.length; _i++) {
8
+ args[_i - 2] = arguments[_i];
9
+ }
10
+ return __awaiter(void 0, void 0, void 0, function () {
11
+ return __generator(this, function (_a) {
12
+ switch (_a.label) {
13
+ case 0: return [4, client.send.apply(client, __spreadArray([new DescribeReservedNodeExchangeStatusCommand(input)], __read(args)))];
14
+ case 1: return [2, _a.sent()];
15
+ }
16
+ });
17
+ });
18
+ };
19
+ var makePagedRequest = function (client, input) {
20
+ var args = [];
21
+ for (var _i = 2; _i < arguments.length; _i++) {
22
+ args[_i - 2] = arguments[_i];
23
+ }
24
+ return __awaiter(void 0, void 0, void 0, function () {
25
+ return __generator(this, function (_a) {
26
+ switch (_a.label) {
27
+ case 0: return [4, client.describeReservedNodeExchangeStatus.apply(client, __spreadArray([input], __read(args)))];
28
+ case 1: return [2, _a.sent()];
29
+ }
30
+ });
31
+ });
32
+ };
33
+ export function paginateDescribeReservedNodeExchangeStatus(config, input) {
34
+ var additionalArguments = [];
35
+ for (var _i = 2; _i < arguments.length; _i++) {
36
+ additionalArguments[_i - 2] = arguments[_i];
37
+ }
38
+ return __asyncGenerator(this, arguments, function paginateDescribeReservedNodeExchangeStatus_1() {
39
+ var token, hasNext, page;
40
+ return __generator(this, function (_a) {
41
+ switch (_a.label) {
42
+ case 0:
43
+ token = config.startingToken || undefined;
44
+ hasNext = true;
45
+ _a.label = 1;
46
+ case 1:
47
+ if (!hasNext) return [3, 9];
48
+ input.Marker = token;
49
+ input["MaxRecords"] = config.pageSize;
50
+ if (!(config.client instanceof Redshift)) return [3, 3];
51
+ return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
52
+ case 2:
53
+ page = _a.sent();
54
+ return [3, 6];
55
+ case 3:
56
+ if (!(config.client instanceof RedshiftClient)) return [3, 5];
57
+ return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
58
+ case 4:
59
+ page = _a.sent();
60
+ return [3, 6];
61
+ case 5: throw new Error("Invalid client, expected Redshift | RedshiftClient");
62
+ case 6: return [4, __await(page)];
63
+ case 7: return [4, _a.sent()];
64
+ case 8:
65
+ _a.sent();
66
+ token = page.Marker;
67
+ hasNext = !!token;
68
+ return [3, 1];
69
+ case 9: return [4, __await(undefined)];
70
+ case 10: return [2, _a.sent()];
71
+ }
72
+ });
73
+ });
74
+ }
@@ -0,0 +1,74 @@
1
+ import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
2
+ import { GetReservedNodeExchangeConfigurationOptionsCommand, } from "../commands/GetReservedNodeExchangeConfigurationOptionsCommand";
3
+ import { Redshift } from "../Redshift";
4
+ import { RedshiftClient } from "../RedshiftClient";
5
+ var makePagedClientRequest = function (client, input) {
6
+ var args = [];
7
+ for (var _i = 2; _i < arguments.length; _i++) {
8
+ args[_i - 2] = arguments[_i];
9
+ }
10
+ return __awaiter(void 0, void 0, void 0, function () {
11
+ return __generator(this, function (_a) {
12
+ switch (_a.label) {
13
+ case 0: return [4, client.send.apply(client, __spreadArray([new GetReservedNodeExchangeConfigurationOptionsCommand(input)], __read(args)))];
14
+ case 1: return [2, _a.sent()];
15
+ }
16
+ });
17
+ });
18
+ };
19
+ var makePagedRequest = function (client, input) {
20
+ var args = [];
21
+ for (var _i = 2; _i < arguments.length; _i++) {
22
+ args[_i - 2] = arguments[_i];
23
+ }
24
+ return __awaiter(void 0, void 0, void 0, function () {
25
+ return __generator(this, function (_a) {
26
+ switch (_a.label) {
27
+ case 0: return [4, client.getReservedNodeExchangeConfigurationOptions.apply(client, __spreadArray([input], __read(args)))];
28
+ case 1: return [2, _a.sent()];
29
+ }
30
+ });
31
+ });
32
+ };
33
+ export function paginateGetReservedNodeExchangeConfigurationOptions(config, input) {
34
+ var additionalArguments = [];
35
+ for (var _i = 2; _i < arguments.length; _i++) {
36
+ additionalArguments[_i - 2] = arguments[_i];
37
+ }
38
+ return __asyncGenerator(this, arguments, function paginateGetReservedNodeExchangeConfigurationOptions_1() {
39
+ var token, hasNext, page;
40
+ return __generator(this, function (_a) {
41
+ switch (_a.label) {
42
+ case 0:
43
+ token = config.startingToken || undefined;
44
+ hasNext = true;
45
+ _a.label = 1;
46
+ case 1:
47
+ if (!hasNext) return [3, 9];
48
+ input.Marker = token;
49
+ input["MaxRecords"] = config.pageSize;
50
+ if (!(config.client instanceof Redshift)) return [3, 3];
51
+ return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
52
+ case 2:
53
+ page = _a.sent();
54
+ return [3, 6];
55
+ case 3:
56
+ if (!(config.client instanceof RedshiftClient)) return [3, 5];
57
+ return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
58
+ case 4:
59
+ page = _a.sent();
60
+ return [3, 6];
61
+ case 5: throw new Error("Invalid client, expected Redshift | RedshiftClient");
62
+ case 6: return [4, __await(page)];
63
+ case 7: return [4, _a.sent()];
64
+ case 8:
65
+ _a.sent();
66
+ token = page.Marker;
67
+ hasNext = !!token;
68
+ return [3, 1];
69
+ case 9: return [4, __await(undefined)];
70
+ case 10: return [2, _a.sent()];
71
+ }
72
+ });
73
+ });
74
+ }
@@ -7,8 +7,11 @@ export * from "./DescribeClusterSubnetGroupsPaginator";
7
7
  export * from "./DescribeClusterTracksPaginator";
8
8
  export * from "./DescribeClusterVersionsPaginator";
9
9
  export * from "./DescribeClustersPaginator";
10
- export * from "./DescribeDefaultClusterParametersPaginator";
10
+ export * from "./DescribeDataSharesForConsumerPaginator";
11
11
  export * from "./Interfaces";
12
+ export * from "./DescribeDataSharesForProducerPaginator";
13
+ export * from "./DescribeDataSharesPaginator";
14
+ export * from "./DescribeDefaultClusterParametersPaginator";
12
15
  export * from "./DescribeEndpointAccessPaginator";
13
16
  export * from "./DescribeEndpointAuthorizationPaginator";
14
17
  export * from "./DescribeEventSubscriptionsPaginator";
@@ -17,6 +20,7 @@ export * from "./DescribeHsmClientCertificatesPaginator";
17
20
  export * from "./DescribeHsmConfigurationsPaginator";
18
21
  export * from "./DescribeNodeConfigurationOptionsPaginator";
19
22
  export * from "./DescribeOrderableClusterOptionsPaginator";
23
+ export * from "./DescribeReservedNodeExchangeStatusPaginator";
20
24
  export * from "./DescribeReservedNodeOfferingsPaginator";
21
25
  export * from "./DescribeReservedNodesPaginator";
22
26
  export * from "./DescribeScheduledActionsPaginator";
@@ -25,4 +29,5 @@ export * from "./DescribeSnapshotSchedulesPaginator";
25
29
  export * from "./DescribeTableRestoreStatusPaginator";
26
30
  export * from "./DescribeTagsPaginator";
27
31
  export * from "./DescribeUsageLimitsPaginator";
32
+ export * from "./GetReservedNodeExchangeConfigurationOptionsPaginator";
28
33
  export * from "./GetReservedNodeExchangeOfferingsPaginator";