@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.
- package/CHANGELOG.md +41 -0
- package/dist-cjs/Redshift.js +30 -0
- package/dist-cjs/commands/DescribeHsmConfigurationsCommand.js +2 -1
- package/dist-cjs/commands/DescribeLoggingStatusCommand.js +1 -2
- package/dist-cjs/commands/DescribeReservedNodeExchangeStatusCommand.js +36 -0
- package/dist-cjs/commands/GetReservedNodeExchangeConfigurationOptionsCommand.js +36 -0
- package/dist-cjs/commands/index.js +2 -0
- package/dist-cjs/endpoints.js +143 -24
- package/dist-cjs/models/models_0.js +20 -17
- package/dist-cjs/models/models_1.js +56 -3
- package/dist-cjs/pagination/DescribeDataSharesForConsumerPaginator.js +35 -0
- package/dist-cjs/pagination/DescribeDataSharesForProducerPaginator.js +35 -0
- package/dist-cjs/pagination/DescribeDataSharesPaginator.js +35 -0
- package/dist-cjs/pagination/DescribeReservedNodeExchangeStatusPaginator.js +35 -0
- package/dist-cjs/pagination/GetReservedNodeExchangeConfigurationOptionsPaginator.js +35 -0
- package/dist-cjs/pagination/index.js +6 -1
- package/dist-cjs/protocols/Aws_query.js +504 -4
- package/dist-cjs/runtimeConfig.browser.js +6 -3
- package/dist-cjs/runtimeConfig.js +5 -3
- package/dist-es/Redshift.js +30 -0
- package/dist-es/commands/DescribeHsmConfigurationsCommand.js +2 -1
- package/dist-es/commands/DescribeLoggingStatusCommand.js +1 -2
- package/dist-es/commands/DescribeReservedNodeExchangeStatusCommand.js +39 -0
- package/dist-es/commands/GetReservedNodeExchangeConfigurationOptionsCommand.js +39 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/endpoints.js +143 -24
- package/dist-es/models/models_0.js +13 -8
- package/dist-es/models/models_1.js +37 -0
- package/dist-es/pagination/DescribeDataSharesForConsumerPaginator.js +74 -0
- package/dist-es/pagination/DescribeDataSharesForProducerPaginator.js +74 -0
- package/dist-es/pagination/DescribeDataSharesPaginator.js +74 -0
- package/dist-es/pagination/DescribeReservedNodeExchangeStatusPaginator.js +74 -0
- package/dist-es/pagination/GetReservedNodeExchangeConfigurationOptionsPaginator.js +74 -0
- package/dist-es/pagination/index.js +6 -1
- package/dist-es/protocols/Aws_query.js +671 -161
- package/dist-es/runtimeConfig.browser.js +3 -2
- package/dist-es/runtimeConfig.js +3 -3
- package/dist-types/Redshift.d.ts +17 -0
- package/dist-types/RedshiftClient.d.ts +12 -2
- package/dist-types/commands/AcceptReservedNodeExchangeCommand.d.ts +1 -1
- package/dist-types/commands/AddPartnerCommand.d.ts +1 -1
- package/dist-types/commands/AssociateDataShareConsumerCommand.d.ts +1 -1
- package/dist-types/commands/AuthorizeClusterSecurityGroupIngressCommand.d.ts +1 -1
- package/dist-types/commands/AuthorizeDataShareCommand.d.ts +1 -1
- package/dist-types/commands/AuthorizeEndpointAccessCommand.d.ts +1 -1
- package/dist-types/commands/AuthorizeSnapshotAccessCommand.d.ts +1 -1
- package/dist-types/commands/BatchDeleteClusterSnapshotsCommand.d.ts +1 -1
- package/dist-types/commands/BatchModifyClusterSnapshotsCommand.d.ts +1 -1
- package/dist-types/commands/CancelResizeCommand.d.ts +1 -1
- package/dist-types/commands/CopyClusterSnapshotCommand.d.ts +1 -1
- package/dist-types/commands/CreateAuthenticationProfileCommand.d.ts +1 -1
- package/dist-types/commands/CreateClusterCommand.d.ts +1 -1
- package/dist-types/commands/CreateClusterParameterGroupCommand.d.ts +1 -1
- package/dist-types/commands/CreateClusterSecurityGroupCommand.d.ts +1 -1
- package/dist-types/commands/CreateClusterSnapshotCommand.d.ts +1 -1
- package/dist-types/commands/CreateClusterSubnetGroupCommand.d.ts +1 -1
- package/dist-types/commands/CreateEndpointAccessCommand.d.ts +1 -1
- package/dist-types/commands/CreateEventSubscriptionCommand.d.ts +1 -1
- package/dist-types/commands/CreateHsmClientCertificateCommand.d.ts +1 -1
- package/dist-types/commands/CreateHsmConfigurationCommand.d.ts +1 -1
- package/dist-types/commands/CreateScheduledActionCommand.d.ts +1 -1
- package/dist-types/commands/CreateSnapshotCopyGrantCommand.d.ts +1 -1
- package/dist-types/commands/CreateSnapshotScheduleCommand.d.ts +1 -1
- package/dist-types/commands/CreateTagsCommand.d.ts +1 -1
- package/dist-types/commands/CreateUsageLimitCommand.d.ts +1 -1
- package/dist-types/commands/DeauthorizeDataShareCommand.d.ts +1 -1
- package/dist-types/commands/DeleteAuthenticationProfileCommand.d.ts +1 -1
- package/dist-types/commands/DeleteClusterCommand.d.ts +1 -1
- package/dist-types/commands/DeleteClusterParameterGroupCommand.d.ts +1 -1
- package/dist-types/commands/DeleteClusterSecurityGroupCommand.d.ts +1 -1
- package/dist-types/commands/DeleteClusterSnapshotCommand.d.ts +1 -1
- package/dist-types/commands/DeleteClusterSubnetGroupCommand.d.ts +1 -1
- package/dist-types/commands/DeleteEndpointAccessCommand.d.ts +1 -1
- package/dist-types/commands/DeleteEventSubscriptionCommand.d.ts +1 -1
- package/dist-types/commands/DeleteHsmClientCertificateCommand.d.ts +1 -1
- package/dist-types/commands/DeleteHsmConfigurationCommand.d.ts +1 -1
- package/dist-types/commands/DeletePartnerCommand.d.ts +1 -1
- package/dist-types/commands/DeleteScheduledActionCommand.d.ts +1 -1
- package/dist-types/commands/DeleteSnapshotCopyGrantCommand.d.ts +1 -1
- package/dist-types/commands/DeleteSnapshotScheduleCommand.d.ts +1 -1
- package/dist-types/commands/DeleteTagsCommand.d.ts +1 -1
- package/dist-types/commands/DeleteUsageLimitCommand.d.ts +1 -1
- package/dist-types/commands/DescribeAccountAttributesCommand.d.ts +1 -1
- package/dist-types/commands/DescribeAuthenticationProfilesCommand.d.ts +1 -1
- package/dist-types/commands/DescribeClusterDbRevisionsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeClusterParameterGroupsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeClusterParametersCommand.d.ts +1 -1
- package/dist-types/commands/DescribeClusterSecurityGroupsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeClusterSnapshotsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeClusterSubnetGroupsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeClusterTracksCommand.d.ts +1 -1
- package/dist-types/commands/DescribeClusterVersionsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeClustersCommand.d.ts +1 -1
- package/dist-types/commands/DescribeDataSharesCommand.d.ts +1 -1
- package/dist-types/commands/DescribeDataSharesForConsumerCommand.d.ts +1 -1
- package/dist-types/commands/DescribeDataSharesForProducerCommand.d.ts +1 -1
- package/dist-types/commands/DescribeDefaultClusterParametersCommand.d.ts +1 -1
- package/dist-types/commands/DescribeEndpointAccessCommand.d.ts +1 -1
- package/dist-types/commands/DescribeEndpointAuthorizationCommand.d.ts +1 -1
- package/dist-types/commands/DescribeEventCategoriesCommand.d.ts +1 -1
- package/dist-types/commands/DescribeEventSubscriptionsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeEventsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeHsmClientCertificatesCommand.d.ts +1 -1
- package/dist-types/commands/DescribeHsmConfigurationsCommand.d.ts +3 -2
- package/dist-types/commands/DescribeLoggingStatusCommand.d.ts +2 -3
- package/dist-types/commands/DescribeNodeConfigurationOptionsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeOrderableClusterOptionsCommand.d.ts +1 -1
- package/dist-types/commands/DescribePartnersCommand.d.ts +1 -1
- package/dist-types/commands/DescribeReservedNodeExchangeStatusCommand.d.ts +36 -0
- package/dist-types/commands/DescribeReservedNodeOfferingsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeReservedNodesCommand.d.ts +1 -1
- package/dist-types/commands/DescribeResizeCommand.d.ts +1 -1
- package/dist-types/commands/DescribeScheduledActionsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeSnapshotCopyGrantsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeSnapshotSchedulesCommand.d.ts +1 -1
- package/dist-types/commands/DescribeStorageCommand.d.ts +1 -1
- package/dist-types/commands/DescribeTableRestoreStatusCommand.d.ts +1 -1
- package/dist-types/commands/DescribeTagsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeUsageLimitsCommand.d.ts +1 -1
- package/dist-types/commands/DisableLoggingCommand.d.ts +1 -1
- package/dist-types/commands/DisableSnapshotCopyCommand.d.ts +1 -1
- package/dist-types/commands/DisassociateDataShareConsumerCommand.d.ts +1 -1
- package/dist-types/commands/EnableLoggingCommand.d.ts +1 -1
- package/dist-types/commands/EnableSnapshotCopyCommand.d.ts +1 -1
- package/dist-types/commands/GetClusterCredentialsCommand.d.ts +1 -1
- package/dist-types/commands/GetReservedNodeExchangeConfigurationOptionsCommand.d.ts +37 -0
- package/dist-types/commands/GetReservedNodeExchangeOfferingsCommand.d.ts +1 -1
- package/dist-types/commands/ModifyAquaConfigurationCommand.d.ts +1 -1
- package/dist-types/commands/ModifyAuthenticationProfileCommand.d.ts +1 -1
- package/dist-types/commands/ModifyClusterCommand.d.ts +1 -1
- package/dist-types/commands/ModifyClusterDbRevisionCommand.d.ts +1 -1
- package/dist-types/commands/ModifyClusterIamRolesCommand.d.ts +1 -1
- package/dist-types/commands/ModifyClusterMaintenanceCommand.d.ts +1 -1
- package/dist-types/commands/ModifyClusterParameterGroupCommand.d.ts +1 -1
- package/dist-types/commands/ModifyClusterSnapshotCommand.d.ts +1 -1
- package/dist-types/commands/ModifyClusterSnapshotScheduleCommand.d.ts +1 -1
- package/dist-types/commands/ModifyClusterSubnetGroupCommand.d.ts +1 -1
- package/dist-types/commands/ModifyEndpointAccessCommand.d.ts +1 -1
- package/dist-types/commands/ModifyEventSubscriptionCommand.d.ts +1 -1
- package/dist-types/commands/ModifyScheduledActionCommand.d.ts +1 -1
- package/dist-types/commands/ModifySnapshotCopyRetentionPeriodCommand.d.ts +1 -1
- package/dist-types/commands/ModifySnapshotScheduleCommand.d.ts +1 -1
- package/dist-types/commands/ModifyUsageLimitCommand.d.ts +1 -1
- package/dist-types/commands/PauseClusterCommand.d.ts +1 -1
- package/dist-types/commands/PurchaseReservedNodeOfferingCommand.d.ts +1 -1
- package/dist-types/commands/RebootClusterCommand.d.ts +1 -1
- package/dist-types/commands/RejectDataShareCommand.d.ts +1 -1
- package/dist-types/commands/ResetClusterParameterGroupCommand.d.ts +1 -1
- package/dist-types/commands/ResizeClusterCommand.d.ts +1 -1
- package/dist-types/commands/RestoreFromClusterSnapshotCommand.d.ts +1 -1
- package/dist-types/commands/RestoreTableFromClusterSnapshotCommand.d.ts +1 -1
- package/dist-types/commands/ResumeClusterCommand.d.ts +1 -1
- package/dist-types/commands/RevokeClusterSecurityGroupIngressCommand.d.ts +1 -1
- package/dist-types/commands/RevokeEndpointAccessCommand.d.ts +1 -1
- package/dist-types/commands/RevokeSnapshotAccessCommand.d.ts +1 -1
- package/dist-types/commands/RotateEncryptionKeyCommand.d.ts +1 -1
- package/dist-types/commands/UpdatePartnerStatusCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +86 -49
- package/dist-types/models/models_1.d.ts +202 -1
- package/dist-types/pagination/DescribeDataSharesForConsumerPaginator.d.ts +4 -0
- package/dist-types/pagination/DescribeDataSharesForProducerPaginator.d.ts +4 -0
- package/dist-types/pagination/DescribeDataSharesPaginator.d.ts +4 -0
- package/dist-types/pagination/DescribeReservedNodeExchangeStatusPaginator.d.ts +4 -0
- package/dist-types/pagination/GetReservedNodeExchangeConfigurationOptionsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +6 -1
- package/dist-types/protocols/Aws_query.d.ts +6 -0
- package/dist-types/runtimeConfig.browser.d.ts +2 -0
- package/dist-types/runtimeConfig.d.ts +2 -0
- package/dist-types/runtimeConfig.native.d.ts +2 -0
- package/dist-types/ts3.4/Redshift.d.ts +10 -0
- package/dist-types/ts3.4/RedshiftClient.d.ts +8 -2
- package/dist-types/ts3.4/commands/DescribeHsmConfigurationsCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/DescribeLoggingStatusCommand.d.ts +1 -2
- package/dist-types/ts3.4/commands/DescribeReservedNodeExchangeStatusCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetReservedNodeExchangeConfigurationOptionsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/models/models_0.d.ts +43 -20
- package/dist-types/ts3.4/models/models_1.d.ts +106 -1
- package/dist-types/ts3.4/pagination/DescribeDataSharesForConsumerPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/DescribeDataSharesForProducerPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/DescribeDataSharesPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/DescribeReservedNodeExchangeStatusPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/GetReservedNodeExchangeConfigurationOptionsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +6 -1
- package/dist-types/ts3.4/protocols/Aws_query.d.ts +6 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
- 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 "./
|
|
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";
|