@aws-sdk/client-redshift 3.42.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 +11 -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/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-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/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-types/Redshift.d.ts +17 -0
- package/dist-types/RedshiftClient.d.ts +4 -2
- package/dist-types/commands/DescribeHsmConfigurationsCommand.d.ts +2 -1
- package/dist-types/commands/DescribeLoggingStatusCommand.d.ts +1 -2
- package/dist-types/commands/DescribeReservedNodeExchangeStatusCommand.d.ts +36 -0
- package/dist-types/commands/GetReservedNodeExchangeConfigurationOptionsCommand.d.ts +37 -0
- 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/ts3.4/Redshift.d.ts +10 -0
- package/dist-types/ts3.4/RedshiftClient.d.ts +4 -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/package.json +2 -2
package/dist-es/Redshift.js
CHANGED
|
@@ -68,6 +68,7 @@ import { DescribeLoggingStatusCommand, } from "./commands/DescribeLoggingStatusC
|
|
|
68
68
|
import { DescribeNodeConfigurationOptionsCommand, } from "./commands/DescribeNodeConfigurationOptionsCommand";
|
|
69
69
|
import { DescribeOrderableClusterOptionsCommand, } from "./commands/DescribeOrderableClusterOptionsCommand";
|
|
70
70
|
import { DescribePartnersCommand, } from "./commands/DescribePartnersCommand";
|
|
71
|
+
import { DescribeReservedNodeExchangeStatusCommand, } from "./commands/DescribeReservedNodeExchangeStatusCommand";
|
|
71
72
|
import { DescribeReservedNodeOfferingsCommand, } from "./commands/DescribeReservedNodeOfferingsCommand";
|
|
72
73
|
import { DescribeReservedNodesCommand, } from "./commands/DescribeReservedNodesCommand";
|
|
73
74
|
import { DescribeResizeCommand, } from "./commands/DescribeResizeCommand";
|
|
@@ -84,6 +85,7 @@ import { DisassociateDataShareConsumerCommand, } from "./commands/DisassociateDa
|
|
|
84
85
|
import { EnableLoggingCommand, } from "./commands/EnableLoggingCommand";
|
|
85
86
|
import { EnableSnapshotCopyCommand, } from "./commands/EnableSnapshotCopyCommand";
|
|
86
87
|
import { GetClusterCredentialsCommand, } from "./commands/GetClusterCredentialsCommand";
|
|
88
|
+
import { GetReservedNodeExchangeConfigurationOptionsCommand, } from "./commands/GetReservedNodeExchangeConfigurationOptionsCommand";
|
|
87
89
|
import { GetReservedNodeExchangeOfferingsCommand, } from "./commands/GetReservedNodeExchangeOfferingsCommand";
|
|
88
90
|
import { ModifyAquaConfigurationCommand, } from "./commands/ModifyAquaConfigurationCommand";
|
|
89
91
|
import { ModifyAuthenticationProfileCommand, } from "./commands/ModifyAuthenticationProfileCommand";
|
|
@@ -1087,6 +1089,20 @@ var Redshift = (function (_super) {
|
|
|
1087
1089
|
return this.send(command, optionsOrCb);
|
|
1088
1090
|
}
|
|
1089
1091
|
};
|
|
1092
|
+
Redshift.prototype.describeReservedNodeExchangeStatus = function (args, optionsOrCb, cb) {
|
|
1093
|
+
var command = new DescribeReservedNodeExchangeStatusCommand(args);
|
|
1094
|
+
if (typeof optionsOrCb === "function") {
|
|
1095
|
+
this.send(command, optionsOrCb);
|
|
1096
|
+
}
|
|
1097
|
+
else if (typeof cb === "function") {
|
|
1098
|
+
if (typeof optionsOrCb !== "object")
|
|
1099
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
1100
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
1101
|
+
}
|
|
1102
|
+
else {
|
|
1103
|
+
return this.send(command, optionsOrCb);
|
|
1104
|
+
}
|
|
1105
|
+
};
|
|
1090
1106
|
Redshift.prototype.describeReservedNodeOfferings = function (args, optionsOrCb, cb) {
|
|
1091
1107
|
var command = new DescribeReservedNodeOfferingsCommand(args);
|
|
1092
1108
|
if (typeof optionsOrCb === "function") {
|
|
@@ -1311,6 +1327,20 @@ var Redshift = (function (_super) {
|
|
|
1311
1327
|
return this.send(command, optionsOrCb);
|
|
1312
1328
|
}
|
|
1313
1329
|
};
|
|
1330
|
+
Redshift.prototype.getReservedNodeExchangeConfigurationOptions = function (args, optionsOrCb, cb) {
|
|
1331
|
+
var command = new GetReservedNodeExchangeConfigurationOptionsCommand(args);
|
|
1332
|
+
if (typeof optionsOrCb === "function") {
|
|
1333
|
+
this.send(command, optionsOrCb);
|
|
1334
|
+
}
|
|
1335
|
+
else if (typeof cb === "function") {
|
|
1336
|
+
if (typeof optionsOrCb !== "object")
|
|
1337
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
1338
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
1339
|
+
}
|
|
1340
|
+
else {
|
|
1341
|
+
return this.send(command, optionsOrCb);
|
|
1342
|
+
}
|
|
1343
|
+
};
|
|
1314
1344
|
Redshift.prototype.getReservedNodeExchangeOfferings = function (args, optionsOrCb, cb) {
|
|
1315
1345
|
var command = new GetReservedNodeExchangeOfferingsCommand(args);
|
|
1316
1346
|
if (typeof optionsOrCb === "function") {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import { DescribeHsmConfigurationsMessage
|
|
4
|
+
import { DescribeHsmConfigurationsMessage } from "../models/models_0";
|
|
5
|
+
import { HsmConfigurationMessage } from "../models/models_1";
|
|
5
6
|
import { deserializeAws_queryDescribeHsmConfigurationsCommand, serializeAws_queryDescribeHsmConfigurationsCommand, } from "../protocols/Aws_query";
|
|
6
7
|
var DescribeHsmConfigurationsCommand = (function (_super) {
|
|
7
8
|
__extends(DescribeHsmConfigurationsCommand, _super);
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import { DescribeLoggingStatusMessage } from "../models/
|
|
5
|
-
import { LoggingStatus } from "../models/models_1";
|
|
4
|
+
import { DescribeLoggingStatusMessage, LoggingStatus } from "../models/models_1";
|
|
6
5
|
import { deserializeAws_queryDescribeLoggingStatusCommand, serializeAws_queryDescribeLoggingStatusCommand, } from "../protocols/Aws_query";
|
|
7
6
|
var DescribeLoggingStatusCommand = (function (_super) {
|
|
8
7
|
__extends(DescribeLoggingStatusCommand, _super);
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { DescribeReservedNodeExchangeStatusInputMessage, DescribeReservedNodeExchangeStatusOutputMessage, } from "../models/models_1";
|
|
5
|
+
import { deserializeAws_queryDescribeReservedNodeExchangeStatusCommand, serializeAws_queryDescribeReservedNodeExchangeStatusCommand, } from "../protocols/Aws_query";
|
|
6
|
+
var DescribeReservedNodeExchangeStatusCommand = (function (_super) {
|
|
7
|
+
__extends(DescribeReservedNodeExchangeStatusCommand, _super);
|
|
8
|
+
function DescribeReservedNodeExchangeStatusCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
DescribeReservedNodeExchangeStatusCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "RedshiftClient";
|
|
18
|
+
var commandName = "DescribeReservedNodeExchangeStatusCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: DescribeReservedNodeExchangeStatusInputMessage.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: DescribeReservedNodeExchangeStatusOutputMessage.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
DescribeReservedNodeExchangeStatusCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_queryDescribeReservedNodeExchangeStatusCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
DescribeReservedNodeExchangeStatusCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_queryDescribeReservedNodeExchangeStatusCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return DescribeReservedNodeExchangeStatusCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { DescribeReservedNodeExchangeStatusCommand };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { GetReservedNodeExchangeConfigurationOptionsInputMessage, GetReservedNodeExchangeConfigurationOptionsOutputMessage, } from "../models/models_1";
|
|
5
|
+
import { deserializeAws_queryGetReservedNodeExchangeConfigurationOptionsCommand, serializeAws_queryGetReservedNodeExchangeConfigurationOptionsCommand, } from "../protocols/Aws_query";
|
|
6
|
+
var GetReservedNodeExchangeConfigurationOptionsCommand = (function (_super) {
|
|
7
|
+
__extends(GetReservedNodeExchangeConfigurationOptionsCommand, _super);
|
|
8
|
+
function GetReservedNodeExchangeConfigurationOptionsCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
GetReservedNodeExchangeConfigurationOptionsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "RedshiftClient";
|
|
18
|
+
var commandName = "GetReservedNodeExchangeConfigurationOptionsCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: GetReservedNodeExchangeConfigurationOptionsInputMessage.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: GetReservedNodeExchangeConfigurationOptionsOutputMessage.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
GetReservedNodeExchangeConfigurationOptionsCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_queryGetReservedNodeExchangeConfigurationOptionsCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
GetReservedNodeExchangeConfigurationOptionsCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_queryGetReservedNodeExchangeConfigurationOptionsCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return GetReservedNodeExchangeConfigurationOptionsCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { GetReservedNodeExchangeConfigurationOptionsCommand };
|
|
@@ -67,6 +67,7 @@ export * from "./DescribeLoggingStatusCommand";
|
|
|
67
67
|
export * from "./DescribeNodeConfigurationOptionsCommand";
|
|
68
68
|
export * from "./DescribeOrderableClusterOptionsCommand";
|
|
69
69
|
export * from "./DescribePartnersCommand";
|
|
70
|
+
export * from "./DescribeReservedNodeExchangeStatusCommand";
|
|
70
71
|
export * from "./DescribeReservedNodeOfferingsCommand";
|
|
71
72
|
export * from "./DescribeReservedNodesCommand";
|
|
72
73
|
export * from "./DescribeResizeCommand";
|
|
@@ -83,6 +84,7 @@ export * from "./DisassociateDataShareConsumerCommand";
|
|
|
83
84
|
export * from "./EnableLoggingCommand";
|
|
84
85
|
export * from "./EnableSnapshotCopyCommand";
|
|
85
86
|
export * from "./GetClusterCredentialsCommand";
|
|
87
|
+
export * from "./GetReservedNodeExchangeConfigurationOptionsCommand";
|
|
86
88
|
export * from "./GetReservedNodeExchangeOfferingsCommand";
|
|
87
89
|
export * from "./ModifyAquaConfigurationCommand";
|
|
88
90
|
export * from "./ModifyAuthenticationProfileCommand";
|
|
@@ -380,6 +380,19 @@ export var PendingModifiedValues;
|
|
|
380
380
|
(function (PendingModifiedValues) {
|
|
381
381
|
PendingModifiedValues.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
382
382
|
})(PendingModifiedValues || (PendingModifiedValues = {}));
|
|
383
|
+
export var ReservedNodeExchangeStatusType;
|
|
384
|
+
(function (ReservedNodeExchangeStatusType) {
|
|
385
|
+
ReservedNodeExchangeStatusType["FAILED"] = "FAILED";
|
|
386
|
+
ReservedNodeExchangeStatusType["IN_PROGRESS"] = "IN_PROGRESS";
|
|
387
|
+
ReservedNodeExchangeStatusType["PENDING"] = "PENDING";
|
|
388
|
+
ReservedNodeExchangeStatusType["REQUESTED"] = "REQUESTED";
|
|
389
|
+
ReservedNodeExchangeStatusType["RETRYING"] = "RETRYING";
|
|
390
|
+
ReservedNodeExchangeStatusType["SUCCEEDED"] = "SUCCEEDED";
|
|
391
|
+
})(ReservedNodeExchangeStatusType || (ReservedNodeExchangeStatusType = {}));
|
|
392
|
+
export var ReservedNodeExchangeStatus;
|
|
393
|
+
(function (ReservedNodeExchangeStatus) {
|
|
394
|
+
ReservedNodeExchangeStatus.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
395
|
+
})(ReservedNodeExchangeStatus || (ReservedNodeExchangeStatus = {}));
|
|
383
396
|
export var ResizeInfo;
|
|
384
397
|
(function (ResizeInfo) {
|
|
385
398
|
ResizeInfo.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -1203,11 +1216,3 @@ export var DescribeHsmConfigurationsMessage;
|
|
|
1203
1216
|
(function (DescribeHsmConfigurationsMessage) {
|
|
1204
1217
|
DescribeHsmConfigurationsMessage.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1205
1218
|
})(DescribeHsmConfigurationsMessage || (DescribeHsmConfigurationsMessage = {}));
|
|
1206
|
-
export var HsmConfigurationMessage;
|
|
1207
|
-
(function (HsmConfigurationMessage) {
|
|
1208
|
-
HsmConfigurationMessage.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1209
|
-
})(HsmConfigurationMessage || (HsmConfigurationMessage = {}));
|
|
1210
|
-
export var DescribeLoggingStatusMessage;
|
|
1211
|
-
(function (DescribeLoggingStatusMessage) {
|
|
1212
|
-
DescribeLoggingStatusMessage.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1213
|
-
})(DescribeLoggingStatusMessage || (DescribeLoggingStatusMessage = {}));
|
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
import { __assign } from "tslib";
|
|
2
|
+
export var HsmConfigurationMessage;
|
|
3
|
+
(function (HsmConfigurationMessage) {
|
|
4
|
+
HsmConfigurationMessage.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
5
|
+
})(HsmConfigurationMessage || (HsmConfigurationMessage = {}));
|
|
6
|
+
export var DescribeLoggingStatusMessage;
|
|
7
|
+
(function (DescribeLoggingStatusMessage) {
|
|
8
|
+
DescribeLoggingStatusMessage.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
9
|
+
})(DescribeLoggingStatusMessage || (DescribeLoggingStatusMessage = {}));
|
|
2
10
|
export var LoggingStatus;
|
|
3
11
|
(function (LoggingStatus) {
|
|
4
12
|
LoggingStatus.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -72,6 +80,18 @@ export var DescribePartnersOutputMessage;
|
|
|
72
80
|
(function (DescribePartnersOutputMessage) {
|
|
73
81
|
DescribePartnersOutputMessage.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
74
82
|
})(DescribePartnersOutputMessage || (DescribePartnersOutputMessage = {}));
|
|
83
|
+
export var DescribeReservedNodeExchangeStatusInputMessage;
|
|
84
|
+
(function (DescribeReservedNodeExchangeStatusInputMessage) {
|
|
85
|
+
DescribeReservedNodeExchangeStatusInputMessage.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
86
|
+
})(DescribeReservedNodeExchangeStatusInputMessage || (DescribeReservedNodeExchangeStatusInputMessage = {}));
|
|
87
|
+
export var DescribeReservedNodeExchangeStatusOutputMessage;
|
|
88
|
+
(function (DescribeReservedNodeExchangeStatusOutputMessage) {
|
|
89
|
+
DescribeReservedNodeExchangeStatusOutputMessage.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
90
|
+
})(DescribeReservedNodeExchangeStatusOutputMessage || (DescribeReservedNodeExchangeStatusOutputMessage = {}));
|
|
91
|
+
export var ReservedNodeExchangeNotFoundFault;
|
|
92
|
+
(function (ReservedNodeExchangeNotFoundFault) {
|
|
93
|
+
ReservedNodeExchangeNotFoundFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
94
|
+
})(ReservedNodeExchangeNotFoundFault || (ReservedNodeExchangeNotFoundFault = {}));
|
|
75
95
|
export var DescribeReservedNodeOfferingsMessage;
|
|
76
96
|
(function (DescribeReservedNodeOfferingsMessage) {
|
|
77
97
|
DescribeReservedNodeOfferingsMessage.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -235,6 +255,23 @@ export var GetClusterCredentialsMessage;
|
|
|
235
255
|
(function (GetClusterCredentialsMessage) {
|
|
236
256
|
GetClusterCredentialsMessage.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
237
257
|
})(GetClusterCredentialsMessage || (GetClusterCredentialsMessage = {}));
|
|
258
|
+
export var ReservedNodeExchangeActionType;
|
|
259
|
+
(function (ReservedNodeExchangeActionType) {
|
|
260
|
+
ReservedNodeExchangeActionType["RESIZE_CLUSTER"] = "resize-cluster";
|
|
261
|
+
ReservedNodeExchangeActionType["RESTORE_CLUSTER"] = "restore-cluster";
|
|
262
|
+
})(ReservedNodeExchangeActionType || (ReservedNodeExchangeActionType = {}));
|
|
263
|
+
export var GetReservedNodeExchangeConfigurationOptionsInputMessage;
|
|
264
|
+
(function (GetReservedNodeExchangeConfigurationOptionsInputMessage) {
|
|
265
|
+
GetReservedNodeExchangeConfigurationOptionsInputMessage.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
266
|
+
})(GetReservedNodeExchangeConfigurationOptionsInputMessage || (GetReservedNodeExchangeConfigurationOptionsInputMessage = {}));
|
|
267
|
+
export var ReservedNodeConfigurationOption;
|
|
268
|
+
(function (ReservedNodeConfigurationOption) {
|
|
269
|
+
ReservedNodeConfigurationOption.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
270
|
+
})(ReservedNodeConfigurationOption || (ReservedNodeConfigurationOption = {}));
|
|
271
|
+
export var GetReservedNodeExchangeConfigurationOptionsOutputMessage;
|
|
272
|
+
(function (GetReservedNodeExchangeConfigurationOptionsOutputMessage) {
|
|
273
|
+
GetReservedNodeExchangeConfigurationOptionsOutputMessage.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
274
|
+
})(GetReservedNodeExchangeConfigurationOptionsOutputMessage || (GetReservedNodeExchangeConfigurationOptionsOutputMessage = {}));
|
|
238
275
|
export var GetReservedNodeExchangeOfferingsInputMessage;
|
|
239
276
|
(function (GetReservedNodeExchangeOfferingsInputMessage) {
|
|
240
277
|
GetReservedNodeExchangeOfferingsInputMessage.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
|
+
import { DescribeDataSharesForConsumerCommand, } from "../commands/DescribeDataSharesForConsumerCommand";
|
|
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 DescribeDataSharesForConsumerCommand(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.describeDataSharesForConsumer.apply(client, __spreadArray([input], __read(args)))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
export function paginateDescribeDataSharesForConsumer(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 paginateDescribeDataSharesForConsumer_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 { 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
|
+
}
|