@aws-sdk/client-redshift-data 3.43.0 → 3.44.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/models/models_0.js +7 -1
- package/dist-cjs/protocols/Aws_json1_1.js +56 -0
- package/dist-es/models/models_0.js +4 -0
- package/dist-es/protocols/Aws_json1_1.js +154 -100
- package/dist-types/RedshiftData.d.ts +30 -30
- package/dist-types/commands/BatchExecuteStatementCommand.d.ts +5 -5
- package/dist-types/commands/DescribeTableCommand.d.ts +5 -5
- package/dist-types/commands/ExecuteStatementCommand.d.ts +5 -5
- package/dist-types/commands/ListDatabasesCommand.d.ts +5 -5
- package/dist-types/commands/ListSchemasCommand.d.ts +5 -5
- package/dist-types/commands/ListTablesCommand.d.ts +5 -5
- package/dist-types/models/models_0.d.ts +37 -22
- package/dist-types/ts3.4/models/models_0.d.ts +16 -6
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.44.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.43.0...v3.44.0) (2021-12-02)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **clients:** update clients as of 2021/11/30 ([#3077](https://github.com/aws/aws-sdk-js-v3/issues/3077)) ([2bdba30](https://github.com/aws/aws-sdk-js-v3/commit/2bdba30963e550728ba2903d57daa1e666a29d71))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [3.43.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.42.0...v3.43.0) (2021-11-29)
|
|
7
18
|
|
|
8
19
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ListTablesResponse = exports.TableMember = exports.ListTablesRequest = exports.ListStatementsResponse = exports.StatementData = exports.ListStatementsRequest = exports.ListSchemasResponse = exports.ListSchemasRequest = exports.ListDatabasesResponse = exports.ListDatabasesRequest = exports.GetStatementResultResponse = exports.GetStatementResultRequest = exports.Field = exports.ExecuteStatementOutput = exports.ExecuteStatementInput = exports.ExecuteStatementException = exports.DescribeTableResponse = exports.DescribeTableRequest = exports.DescribeStatementResponse = exports.SubStatementData = exports.StatementStatusString = exports.StatusString = exports.SqlParameter = exports.DescribeStatementRequest = exports.ColumnMetadata = exports.ResourceNotFoundException = exports.InternalServerException = exports.CancelStatementResponse = exports.CancelStatementRequest = exports.ValidationException = exports.BatchExecuteStatementOutput = exports.BatchExecuteStatementInput = exports.BatchExecuteStatementException = exports.ActiveStatementsExceededException = void 0;
|
|
3
|
+
exports.ListTablesResponse = exports.TableMember = exports.ListTablesRequest = exports.ListStatementsResponse = exports.StatementData = exports.ListStatementsRequest = exports.ListSchemasResponse = exports.ListSchemasRequest = exports.ListDatabasesResponse = exports.ListDatabasesRequest = exports.GetStatementResultResponse = exports.GetStatementResultRequest = exports.Field = exports.ExecuteStatementOutput = exports.ExecuteStatementInput = exports.ExecuteStatementException = exports.DescribeTableResponse = exports.DescribeTableRequest = exports.DescribeStatementResponse = exports.SubStatementData = exports.StatementStatusString = exports.StatusString = exports.SqlParameter = exports.DescribeStatementRequest = exports.ColumnMetadata = exports.ResourceNotFoundException = exports.InternalServerException = exports.DatabaseConnectionException = exports.CancelStatementResponse = exports.CancelStatementRequest = exports.ValidationException = exports.BatchExecuteStatementOutput = exports.BatchExecuteStatementInput = exports.BatchExecuteStatementException = exports.ActiveStatementsExceededException = void 0;
|
|
4
4
|
var ActiveStatementsExceededException;
|
|
5
5
|
(function (ActiveStatementsExceededException) {
|
|
6
6
|
ActiveStatementsExceededException.filterSensitiveLog = (obj) => ({
|
|
@@ -43,6 +43,12 @@ var CancelStatementResponse;
|
|
|
43
43
|
...obj,
|
|
44
44
|
});
|
|
45
45
|
})(CancelStatementResponse = exports.CancelStatementResponse || (exports.CancelStatementResponse = {}));
|
|
46
|
+
var DatabaseConnectionException;
|
|
47
|
+
(function (DatabaseConnectionException) {
|
|
48
|
+
DatabaseConnectionException.filterSensitiveLog = (obj) => ({
|
|
49
|
+
...obj,
|
|
50
|
+
});
|
|
51
|
+
})(DatabaseConnectionException = exports.DatabaseConnectionException || (exports.DatabaseConnectionException = {}));
|
|
46
52
|
var InternalServerException;
|
|
47
53
|
(function (InternalServerException) {
|
|
48
54
|
InternalServerException.filterSensitiveLog = (obj) => ({
|
|
@@ -189,6 +189,14 @@ const deserializeAws_json1_1CancelStatementCommandError = async (output, context
|
|
|
189
189
|
let errorCode = "UnknownError";
|
|
190
190
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
191
191
|
switch (errorCode) {
|
|
192
|
+
case "DatabaseConnectionException":
|
|
193
|
+
case "com.amazonaws.redshiftdata#DatabaseConnectionException":
|
|
194
|
+
response = {
|
|
195
|
+
...(await deserializeAws_json1_1DatabaseConnectionExceptionResponse(parsedOutput, context)),
|
|
196
|
+
name: errorCode,
|
|
197
|
+
$metadata: deserializeMetadata(output),
|
|
198
|
+
};
|
|
199
|
+
break;
|
|
192
200
|
case "InternalServerException":
|
|
193
201
|
case "com.amazonaws.redshiftdata#InternalServerException":
|
|
194
202
|
response = {
|
|
@@ -315,6 +323,14 @@ const deserializeAws_json1_1DescribeTableCommandError = async (output, context)
|
|
|
315
323
|
let errorCode = "UnknownError";
|
|
316
324
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
317
325
|
switch (errorCode) {
|
|
326
|
+
case "DatabaseConnectionException":
|
|
327
|
+
case "com.amazonaws.redshiftdata#DatabaseConnectionException":
|
|
328
|
+
response = {
|
|
329
|
+
...(await deserializeAws_json1_1DatabaseConnectionExceptionResponse(parsedOutput, context)),
|
|
330
|
+
name: errorCode,
|
|
331
|
+
$metadata: deserializeMetadata(output),
|
|
332
|
+
};
|
|
333
|
+
break;
|
|
318
334
|
case "InternalServerException":
|
|
319
335
|
case "com.amazonaws.redshiftdata#InternalServerException":
|
|
320
336
|
response = {
|
|
@@ -496,6 +512,14 @@ const deserializeAws_json1_1ListDatabasesCommandError = async (output, context)
|
|
|
496
512
|
let errorCode = "UnknownError";
|
|
497
513
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
498
514
|
switch (errorCode) {
|
|
515
|
+
case "DatabaseConnectionException":
|
|
516
|
+
case "com.amazonaws.redshiftdata#DatabaseConnectionException":
|
|
517
|
+
response = {
|
|
518
|
+
...(await deserializeAws_json1_1DatabaseConnectionExceptionResponse(parsedOutput, context)),
|
|
519
|
+
name: errorCode,
|
|
520
|
+
$metadata: deserializeMetadata(output),
|
|
521
|
+
};
|
|
522
|
+
break;
|
|
499
523
|
case "InternalServerException":
|
|
500
524
|
case "com.amazonaws.redshiftdata#InternalServerException":
|
|
501
525
|
response = {
|
|
@@ -551,6 +575,14 @@ const deserializeAws_json1_1ListSchemasCommandError = async (output, context) =>
|
|
|
551
575
|
let errorCode = "UnknownError";
|
|
552
576
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
553
577
|
switch (errorCode) {
|
|
578
|
+
case "DatabaseConnectionException":
|
|
579
|
+
case "com.amazonaws.redshiftdata#DatabaseConnectionException":
|
|
580
|
+
response = {
|
|
581
|
+
...(await deserializeAws_json1_1DatabaseConnectionExceptionResponse(parsedOutput, context)),
|
|
582
|
+
name: errorCode,
|
|
583
|
+
$metadata: deserializeMetadata(output),
|
|
584
|
+
};
|
|
585
|
+
break;
|
|
554
586
|
case "InternalServerException":
|
|
555
587
|
case "com.amazonaws.redshiftdata#InternalServerException":
|
|
556
588
|
response = {
|
|
@@ -661,6 +693,14 @@ const deserializeAws_json1_1ListTablesCommandError = async (output, context) =>
|
|
|
661
693
|
let errorCode = "UnknownError";
|
|
662
694
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
663
695
|
switch (errorCode) {
|
|
696
|
+
case "DatabaseConnectionException":
|
|
697
|
+
case "com.amazonaws.redshiftdata#DatabaseConnectionException":
|
|
698
|
+
response = {
|
|
699
|
+
...(await deserializeAws_json1_1DatabaseConnectionExceptionResponse(parsedOutput, context)),
|
|
700
|
+
name: errorCode,
|
|
701
|
+
$metadata: deserializeMetadata(output),
|
|
702
|
+
};
|
|
703
|
+
break;
|
|
664
704
|
case "InternalServerException":
|
|
665
705
|
case "com.amazonaws.redshiftdata#InternalServerException":
|
|
666
706
|
response = {
|
|
@@ -715,6 +755,17 @@ const deserializeAws_json1_1BatchExecuteStatementExceptionResponse = async (pars
|
|
|
715
755
|
};
|
|
716
756
|
return contents;
|
|
717
757
|
};
|
|
758
|
+
const deserializeAws_json1_1DatabaseConnectionExceptionResponse = async (parsedOutput, context) => {
|
|
759
|
+
const body = parsedOutput.body;
|
|
760
|
+
const deserialized = deserializeAws_json1_1DatabaseConnectionException(body, context);
|
|
761
|
+
const contents = {
|
|
762
|
+
name: "DatabaseConnectionException",
|
|
763
|
+
$fault: "server",
|
|
764
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
765
|
+
...deserialized,
|
|
766
|
+
};
|
|
767
|
+
return contents;
|
|
768
|
+
};
|
|
718
769
|
const deserializeAws_json1_1ExecuteStatementExceptionResponse = async (parsedOutput, context) => {
|
|
719
770
|
const body = parsedOutput.body;
|
|
720
771
|
const deserialized = deserializeAws_json1_1ExecuteStatementException(body, context);
|
|
@@ -956,6 +1007,11 @@ const deserializeAws_json1_1ColumnMetadataList = (output, context) => {
|
|
|
956
1007
|
return deserializeAws_json1_1ColumnMetadata(entry, context);
|
|
957
1008
|
});
|
|
958
1009
|
};
|
|
1010
|
+
const deserializeAws_json1_1DatabaseConnectionException = (output, context) => {
|
|
1011
|
+
return {
|
|
1012
|
+
Message: smithy_client_1.expectString(output.Message),
|
|
1013
|
+
};
|
|
1014
|
+
};
|
|
959
1015
|
const deserializeAws_json1_1DatabaseList = (output, context) => {
|
|
960
1016
|
return (output || [])
|
|
961
1017
|
.filter((e) => e != null)
|
|
@@ -27,6 +27,10 @@ export var CancelStatementResponse;
|
|
|
27
27
|
(function (CancelStatementResponse) {
|
|
28
28
|
CancelStatementResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
29
29
|
})(CancelStatementResponse || (CancelStatementResponse = {}));
|
|
30
|
+
export var DatabaseConnectionException;
|
|
31
|
+
(function (DatabaseConnectionException) {
|
|
32
|
+
DatabaseConnectionException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
33
|
+
})(DatabaseConnectionException || (DatabaseConnectionException = {}));
|
|
30
34
|
export var InternalServerException;
|
|
31
35
|
(function (InternalServerException) {
|
|
32
36
|
InternalServerException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -202,52 +202,60 @@ export var deserializeAws_json1_1CancelStatementCommand = function (output, cont
|
|
|
202
202
|
});
|
|
203
203
|
}); };
|
|
204
204
|
var deserializeAws_json1_1CancelStatementCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
205
|
-
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, parsedBody, message;
|
|
206
|
-
var
|
|
207
|
-
return __generator(this, function (
|
|
208
|
-
switch (
|
|
205
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
|
|
206
|
+
var _g;
|
|
207
|
+
return __generator(this, function (_h) {
|
|
208
|
+
switch (_h.label) {
|
|
209
209
|
case 0:
|
|
210
210
|
_a = [__assign({}, output)];
|
|
211
|
-
|
|
211
|
+
_g = {};
|
|
212
212
|
return [4, parseBody(output.body, context)];
|
|
213
213
|
case 1:
|
|
214
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
214
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
215
215
|
errorCode = "UnknownError";
|
|
216
216
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
217
217
|
_b = errorCode;
|
|
218
218
|
switch (_b) {
|
|
219
|
-
case "
|
|
220
|
-
case "com.amazonaws.redshiftdata#
|
|
221
|
-
case "
|
|
222
|
-
case "com.amazonaws.redshiftdata#
|
|
223
|
-
case "
|
|
224
|
-
case "com.amazonaws.redshiftdata#
|
|
219
|
+
case "DatabaseConnectionException": return [3, 2];
|
|
220
|
+
case "com.amazonaws.redshiftdata#DatabaseConnectionException": return [3, 2];
|
|
221
|
+
case "InternalServerException": return [3, 4];
|
|
222
|
+
case "com.amazonaws.redshiftdata#InternalServerException": return [3, 4];
|
|
223
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
224
|
+
case "com.amazonaws.redshiftdata#ResourceNotFoundException": return [3, 6];
|
|
225
|
+
case "ValidationException": return [3, 8];
|
|
226
|
+
case "com.amazonaws.redshiftdata#ValidationException": return [3, 8];
|
|
225
227
|
}
|
|
226
|
-
return [3,
|
|
228
|
+
return [3, 10];
|
|
227
229
|
case 2:
|
|
228
230
|
_c = [{}];
|
|
229
|
-
return [4,
|
|
231
|
+
return [4, deserializeAws_json1_1DatabaseConnectionExceptionResponse(parsedOutput, context)];
|
|
230
232
|
case 3:
|
|
231
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(
|
|
232
|
-
return [3,
|
|
233
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
234
|
+
return [3, 11];
|
|
233
235
|
case 4:
|
|
234
236
|
_d = [{}];
|
|
235
|
-
return [4,
|
|
237
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
236
238
|
case 5:
|
|
237
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(
|
|
238
|
-
return [3,
|
|
239
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
240
|
+
return [3, 11];
|
|
239
241
|
case 6:
|
|
240
242
|
_e = [{}];
|
|
241
|
-
return [4,
|
|
243
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
242
244
|
case 7:
|
|
243
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(
|
|
244
|
-
return [3,
|
|
245
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
246
|
+
return [3, 11];
|
|
245
247
|
case 8:
|
|
248
|
+
_f = [{}];
|
|
249
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
250
|
+
case 9:
|
|
251
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
252
|
+
return [3, 11];
|
|
253
|
+
case 10:
|
|
246
254
|
parsedBody = parsedOutput.body;
|
|
247
255
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
248
256
|
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
249
|
-
|
|
250
|
-
case
|
|
257
|
+
_h.label = 11;
|
|
258
|
+
case 11:
|
|
251
259
|
message = response.message || response.Message || errorCode;
|
|
252
260
|
response.message = message;
|
|
253
261
|
delete response.Message;
|
|
@@ -346,44 +354,52 @@ export var deserializeAws_json1_1DescribeTableCommand = function (output, contex
|
|
|
346
354
|
});
|
|
347
355
|
}); };
|
|
348
356
|
var deserializeAws_json1_1DescribeTableCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
349
|
-
var parsedOutput, _a, response, errorCode, _b, _c, _d, parsedBody, message;
|
|
350
|
-
var
|
|
351
|
-
return __generator(this, function (
|
|
352
|
-
switch (
|
|
357
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, parsedBody, message;
|
|
358
|
+
var _f;
|
|
359
|
+
return __generator(this, function (_g) {
|
|
360
|
+
switch (_g.label) {
|
|
353
361
|
case 0:
|
|
354
362
|
_a = [__assign({}, output)];
|
|
355
|
-
|
|
363
|
+
_f = {};
|
|
356
364
|
return [4, parseBody(output.body, context)];
|
|
357
365
|
case 1:
|
|
358
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
366
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
359
367
|
errorCode = "UnknownError";
|
|
360
368
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
361
369
|
_b = errorCode;
|
|
362
370
|
switch (_b) {
|
|
363
|
-
case "
|
|
364
|
-
case "com.amazonaws.redshiftdata#
|
|
365
|
-
case "
|
|
366
|
-
case "com.amazonaws.redshiftdata#
|
|
371
|
+
case "DatabaseConnectionException": return [3, 2];
|
|
372
|
+
case "com.amazonaws.redshiftdata#DatabaseConnectionException": return [3, 2];
|
|
373
|
+
case "InternalServerException": return [3, 4];
|
|
374
|
+
case "com.amazonaws.redshiftdata#InternalServerException": return [3, 4];
|
|
375
|
+
case "ValidationException": return [3, 6];
|
|
376
|
+
case "com.amazonaws.redshiftdata#ValidationException": return [3, 6];
|
|
367
377
|
}
|
|
368
|
-
return [3,
|
|
378
|
+
return [3, 8];
|
|
369
379
|
case 2:
|
|
370
380
|
_c = [{}];
|
|
371
|
-
return [4,
|
|
381
|
+
return [4, deserializeAws_json1_1DatabaseConnectionExceptionResponse(parsedOutput, context)];
|
|
372
382
|
case 3:
|
|
373
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(
|
|
374
|
-
return [3,
|
|
383
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
384
|
+
return [3, 9];
|
|
375
385
|
case 4:
|
|
376
386
|
_d = [{}];
|
|
377
|
-
return [4,
|
|
387
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
378
388
|
case 5:
|
|
379
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(
|
|
380
|
-
return [3,
|
|
389
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
390
|
+
return [3, 9];
|
|
381
391
|
case 6:
|
|
392
|
+
_e = [{}];
|
|
393
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
394
|
+
case 7:
|
|
395
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
396
|
+
return [3, 9];
|
|
397
|
+
case 8:
|
|
382
398
|
parsedBody = parsedOutput.body;
|
|
383
399
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
384
400
|
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
385
|
-
|
|
386
|
-
case
|
|
401
|
+
_g.label = 9;
|
|
402
|
+
case 9:
|
|
387
403
|
message = response.message || response.Message || errorCode;
|
|
388
404
|
response.message = message;
|
|
389
405
|
delete response.Message;
|
|
@@ -554,44 +570,52 @@ export var deserializeAws_json1_1ListDatabasesCommand = function (output, contex
|
|
|
554
570
|
});
|
|
555
571
|
}); };
|
|
556
572
|
var deserializeAws_json1_1ListDatabasesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
557
|
-
var parsedOutput, _a, response, errorCode, _b, _c, _d, parsedBody, message;
|
|
558
|
-
var
|
|
559
|
-
return __generator(this, function (
|
|
560
|
-
switch (
|
|
573
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, parsedBody, message;
|
|
574
|
+
var _f;
|
|
575
|
+
return __generator(this, function (_g) {
|
|
576
|
+
switch (_g.label) {
|
|
561
577
|
case 0:
|
|
562
578
|
_a = [__assign({}, output)];
|
|
563
|
-
|
|
579
|
+
_f = {};
|
|
564
580
|
return [4, parseBody(output.body, context)];
|
|
565
581
|
case 1:
|
|
566
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
582
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
567
583
|
errorCode = "UnknownError";
|
|
568
584
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
569
585
|
_b = errorCode;
|
|
570
586
|
switch (_b) {
|
|
571
|
-
case "
|
|
572
|
-
case "com.amazonaws.redshiftdata#
|
|
573
|
-
case "
|
|
574
|
-
case "com.amazonaws.redshiftdata#
|
|
587
|
+
case "DatabaseConnectionException": return [3, 2];
|
|
588
|
+
case "com.amazonaws.redshiftdata#DatabaseConnectionException": return [3, 2];
|
|
589
|
+
case "InternalServerException": return [3, 4];
|
|
590
|
+
case "com.amazonaws.redshiftdata#InternalServerException": return [3, 4];
|
|
591
|
+
case "ValidationException": return [3, 6];
|
|
592
|
+
case "com.amazonaws.redshiftdata#ValidationException": return [3, 6];
|
|
575
593
|
}
|
|
576
|
-
return [3,
|
|
594
|
+
return [3, 8];
|
|
577
595
|
case 2:
|
|
578
596
|
_c = [{}];
|
|
579
|
-
return [4,
|
|
597
|
+
return [4, deserializeAws_json1_1DatabaseConnectionExceptionResponse(parsedOutput, context)];
|
|
580
598
|
case 3:
|
|
581
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(
|
|
582
|
-
return [3,
|
|
599
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
600
|
+
return [3, 9];
|
|
583
601
|
case 4:
|
|
584
602
|
_d = [{}];
|
|
585
|
-
return [4,
|
|
603
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
586
604
|
case 5:
|
|
587
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(
|
|
588
|
-
return [3,
|
|
605
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
606
|
+
return [3, 9];
|
|
589
607
|
case 6:
|
|
608
|
+
_e = [{}];
|
|
609
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
610
|
+
case 7:
|
|
611
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
612
|
+
return [3, 9];
|
|
613
|
+
case 8:
|
|
590
614
|
parsedBody = parsedOutput.body;
|
|
591
615
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
592
616
|
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
593
|
-
|
|
594
|
-
case
|
|
617
|
+
_g.label = 9;
|
|
618
|
+
case 9:
|
|
595
619
|
message = response.message || response.Message || errorCode;
|
|
596
620
|
response.message = message;
|
|
597
621
|
delete response.Message;
|
|
@@ -618,44 +642,52 @@ export var deserializeAws_json1_1ListSchemasCommand = function (output, context)
|
|
|
618
642
|
});
|
|
619
643
|
}); };
|
|
620
644
|
var deserializeAws_json1_1ListSchemasCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
621
|
-
var parsedOutput, _a, response, errorCode, _b, _c, _d, parsedBody, message;
|
|
622
|
-
var
|
|
623
|
-
return __generator(this, function (
|
|
624
|
-
switch (
|
|
645
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, parsedBody, message;
|
|
646
|
+
var _f;
|
|
647
|
+
return __generator(this, function (_g) {
|
|
648
|
+
switch (_g.label) {
|
|
625
649
|
case 0:
|
|
626
650
|
_a = [__assign({}, output)];
|
|
627
|
-
|
|
651
|
+
_f = {};
|
|
628
652
|
return [4, parseBody(output.body, context)];
|
|
629
653
|
case 1:
|
|
630
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
654
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
631
655
|
errorCode = "UnknownError";
|
|
632
656
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
633
657
|
_b = errorCode;
|
|
634
658
|
switch (_b) {
|
|
635
|
-
case "
|
|
636
|
-
case "com.amazonaws.redshiftdata#
|
|
637
|
-
case "
|
|
638
|
-
case "com.amazonaws.redshiftdata#
|
|
659
|
+
case "DatabaseConnectionException": return [3, 2];
|
|
660
|
+
case "com.amazonaws.redshiftdata#DatabaseConnectionException": return [3, 2];
|
|
661
|
+
case "InternalServerException": return [3, 4];
|
|
662
|
+
case "com.amazonaws.redshiftdata#InternalServerException": return [3, 4];
|
|
663
|
+
case "ValidationException": return [3, 6];
|
|
664
|
+
case "com.amazonaws.redshiftdata#ValidationException": return [3, 6];
|
|
639
665
|
}
|
|
640
|
-
return [3,
|
|
666
|
+
return [3, 8];
|
|
641
667
|
case 2:
|
|
642
668
|
_c = [{}];
|
|
643
|
-
return [4,
|
|
669
|
+
return [4, deserializeAws_json1_1DatabaseConnectionExceptionResponse(parsedOutput, context)];
|
|
644
670
|
case 3:
|
|
645
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(
|
|
646
|
-
return [3,
|
|
671
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
672
|
+
return [3, 9];
|
|
647
673
|
case 4:
|
|
648
674
|
_d = [{}];
|
|
649
|
-
return [4,
|
|
675
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
650
676
|
case 5:
|
|
651
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(
|
|
652
|
-
return [3,
|
|
677
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
678
|
+
return [3, 9];
|
|
653
679
|
case 6:
|
|
680
|
+
_e = [{}];
|
|
681
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
682
|
+
case 7:
|
|
683
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
684
|
+
return [3, 9];
|
|
685
|
+
case 8:
|
|
654
686
|
parsedBody = parsedOutput.body;
|
|
655
687
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
656
688
|
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
657
|
-
|
|
658
|
-
case
|
|
689
|
+
_g.label = 9;
|
|
690
|
+
case 9:
|
|
659
691
|
message = response.message || response.Message || errorCode;
|
|
660
692
|
response.message = message;
|
|
661
693
|
delete response.Message;
|
|
@@ -746,44 +778,52 @@ export var deserializeAws_json1_1ListTablesCommand = function (output, context)
|
|
|
746
778
|
});
|
|
747
779
|
}); };
|
|
748
780
|
var deserializeAws_json1_1ListTablesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
749
|
-
var parsedOutput, _a, response, errorCode, _b, _c, _d, parsedBody, message;
|
|
750
|
-
var
|
|
751
|
-
return __generator(this, function (
|
|
752
|
-
switch (
|
|
781
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, parsedBody, message;
|
|
782
|
+
var _f;
|
|
783
|
+
return __generator(this, function (_g) {
|
|
784
|
+
switch (_g.label) {
|
|
753
785
|
case 0:
|
|
754
786
|
_a = [__assign({}, output)];
|
|
755
|
-
|
|
787
|
+
_f = {};
|
|
756
788
|
return [4, parseBody(output.body, context)];
|
|
757
789
|
case 1:
|
|
758
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
790
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
759
791
|
errorCode = "UnknownError";
|
|
760
792
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
761
793
|
_b = errorCode;
|
|
762
794
|
switch (_b) {
|
|
763
|
-
case "
|
|
764
|
-
case "com.amazonaws.redshiftdata#
|
|
765
|
-
case "
|
|
766
|
-
case "com.amazonaws.redshiftdata#
|
|
795
|
+
case "DatabaseConnectionException": return [3, 2];
|
|
796
|
+
case "com.amazonaws.redshiftdata#DatabaseConnectionException": return [3, 2];
|
|
797
|
+
case "InternalServerException": return [3, 4];
|
|
798
|
+
case "com.amazonaws.redshiftdata#InternalServerException": return [3, 4];
|
|
799
|
+
case "ValidationException": return [3, 6];
|
|
800
|
+
case "com.amazonaws.redshiftdata#ValidationException": return [3, 6];
|
|
767
801
|
}
|
|
768
|
-
return [3,
|
|
802
|
+
return [3, 8];
|
|
769
803
|
case 2:
|
|
770
804
|
_c = [{}];
|
|
771
|
-
return [4,
|
|
805
|
+
return [4, deserializeAws_json1_1DatabaseConnectionExceptionResponse(parsedOutput, context)];
|
|
772
806
|
case 3:
|
|
773
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(
|
|
774
|
-
return [3,
|
|
807
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
808
|
+
return [3, 9];
|
|
775
809
|
case 4:
|
|
776
810
|
_d = [{}];
|
|
777
|
-
return [4,
|
|
811
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
778
812
|
case 5:
|
|
779
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(
|
|
780
|
-
return [3,
|
|
813
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
814
|
+
return [3, 9];
|
|
781
815
|
case 6:
|
|
816
|
+
_e = [{}];
|
|
817
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
818
|
+
case 7:
|
|
819
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
820
|
+
return [3, 9];
|
|
821
|
+
case 8:
|
|
782
822
|
parsedBody = parsedOutput.body;
|
|
783
823
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
784
824
|
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
785
|
-
|
|
786
|
-
case
|
|
825
|
+
_g.label = 9;
|
|
826
|
+
case 9:
|
|
787
827
|
message = response.message || response.Message || errorCode;
|
|
788
828
|
response.message = message;
|
|
789
829
|
delete response.Message;
|
|
@@ -809,6 +849,15 @@ var deserializeAws_json1_1BatchExecuteStatementExceptionResponse = function (par
|
|
|
809
849
|
return [2, contents];
|
|
810
850
|
});
|
|
811
851
|
}); };
|
|
852
|
+
var deserializeAws_json1_1DatabaseConnectionExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
853
|
+
var body, deserialized, contents;
|
|
854
|
+
return __generator(this, function (_a) {
|
|
855
|
+
body = parsedOutput.body;
|
|
856
|
+
deserialized = deserializeAws_json1_1DatabaseConnectionException(body, context);
|
|
857
|
+
contents = __assign({ name: "DatabaseConnectionException", $fault: "server", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
858
|
+
return [2, contents];
|
|
859
|
+
});
|
|
860
|
+
}); };
|
|
812
861
|
var deserializeAws_json1_1ExecuteStatementExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
813
862
|
var body, deserialized, contents;
|
|
814
863
|
return __generator(this, function (_a) {
|
|
@@ -973,6 +1022,11 @@ var deserializeAws_json1_1ColumnMetadataList = function (output, context) {
|
|
|
973
1022
|
return deserializeAws_json1_1ColumnMetadata(entry, context);
|
|
974
1023
|
});
|
|
975
1024
|
};
|
|
1025
|
+
var deserializeAws_json1_1DatabaseConnectionException = function (output, context) {
|
|
1026
|
+
return {
|
|
1027
|
+
Message: __expectString(output.Message),
|
|
1028
|
+
};
|
|
1029
|
+
};
|
|
976
1030
|
var deserializeAws_json1_1DatabaseList = function (output, context) {
|
|
977
1031
|
return (output || [])
|
|
978
1032
|
.filter(function (e) { return e != null; })
|
|
@@ -25,13 +25,13 @@ export declare class RedshiftData extends RedshiftDataClient {
|
|
|
25
25
|
* method, use one of the following combinations of request parameters: </p>
|
|
26
26
|
* <ul>
|
|
27
27
|
* <li>
|
|
28
|
-
* <p>Secrets Manager - specify the Amazon Resource Name (ARN) of the secret, the database name, and the
|
|
29
|
-
*
|
|
28
|
+
* <p>Secrets Manager - when connecting to a cluster, specify the Amazon Resource Name (ARN) of the secret, the database name, and the cluster identifier that matches the cluster in the secret.
|
|
29
|
+
* When connecting to a serverless endpoint, specify the Amazon Resource Name (ARN) of the secret and the database name. </p>
|
|
30
30
|
* </li>
|
|
31
31
|
* <li>
|
|
32
|
-
* <p>Temporary credentials - specify the cluster identifier, the database name, and the
|
|
33
|
-
*
|
|
34
|
-
*
|
|
32
|
+
* <p>Temporary credentials - when connecting to a cluster, specify the cluster identifier, the database name, and the database user name.
|
|
33
|
+
* Also, permission to call the <code>redshift:GetClusterCredentials</code> operation is required.
|
|
34
|
+
* When connecting to a serverless endpoint, specify the database name. </p>
|
|
35
35
|
* </li>
|
|
36
36
|
* </ul>
|
|
37
37
|
*/
|
|
@@ -60,13 +60,13 @@ export declare class RedshiftData extends RedshiftDataClient {
|
|
|
60
60
|
* following combinations of request parameters: </p>
|
|
61
61
|
* <ul>
|
|
62
62
|
* <li>
|
|
63
|
-
* <p>Secrets Manager - specify the Amazon Resource Name (ARN) of the secret, the database name, and the
|
|
64
|
-
*
|
|
63
|
+
* <p>Secrets Manager - when connecting to a cluster, specify the Amazon Resource Name (ARN) of the secret, the database name, and the cluster identifier that matches the cluster in the secret.
|
|
64
|
+
* When connecting to a serverless endpoint, specify the Amazon Resource Name (ARN) of the secret and the database name. </p>
|
|
65
65
|
* </li>
|
|
66
66
|
* <li>
|
|
67
|
-
* <p>Temporary credentials - specify the cluster identifier, the database name, and the database
|
|
68
|
-
*
|
|
69
|
-
*
|
|
67
|
+
* <p>Temporary credentials - when connecting to a cluster, specify the cluster identifier, the database name, and the database user name.
|
|
68
|
+
* Also, permission to call the <code>redshift:GetClusterCredentials</code> operation is required.
|
|
69
|
+
* When connecting to a serverless endpoint, specify the database name. </p>
|
|
70
70
|
* </li>
|
|
71
71
|
* </ul>
|
|
72
72
|
*/
|
|
@@ -80,13 +80,13 @@ export declare class RedshiftData extends RedshiftDataClient {
|
|
|
80
80
|
* method, use one of the following combinations of request parameters: </p>
|
|
81
81
|
* <ul>
|
|
82
82
|
* <li>
|
|
83
|
-
* <p>Secrets Manager - specify the Amazon Resource Name (ARN) of the secret, the database name, and the
|
|
84
|
-
*
|
|
83
|
+
* <p>Secrets Manager - when connecting to a cluster, specify the Amazon Resource Name (ARN) of the secret, the database name, and the cluster identifier that matches the cluster in the secret.
|
|
84
|
+
* When connecting to a serverless endpoint, specify the Amazon Resource Name (ARN) of the secret and the database name. </p>
|
|
85
85
|
* </li>
|
|
86
86
|
* <li>
|
|
87
|
-
* <p>Temporary credentials - specify the cluster identifier, the database name, and the
|
|
88
|
-
*
|
|
89
|
-
*
|
|
87
|
+
* <p>Temporary credentials - when connecting to a cluster, specify the cluster identifier, the database name, and the database user name.
|
|
88
|
+
* Also, permission to call the <code>redshift:GetClusterCredentials</code> operation is required.
|
|
89
|
+
* When connecting to a serverless endpoint, specify the database name. </p>
|
|
90
90
|
* </li>
|
|
91
91
|
* </ul>
|
|
92
92
|
*/
|
|
@@ -107,13 +107,13 @@ export declare class RedshiftData extends RedshiftDataClient {
|
|
|
107
107
|
* following combinations of request parameters: </p>
|
|
108
108
|
* <ul>
|
|
109
109
|
* <li>
|
|
110
|
-
* <p>Secrets Manager - specify the Amazon Resource Name (ARN) of the secret, the database name, and the
|
|
111
|
-
*
|
|
110
|
+
* <p>Secrets Manager - when connecting to a cluster, specify the Amazon Resource Name (ARN) of the secret, the database name, and the cluster identifier that matches the cluster in the secret.
|
|
111
|
+
* When connecting to a serverless endpoint, specify the Amazon Resource Name (ARN) of the secret and the database name. </p>
|
|
112
112
|
* </li>
|
|
113
113
|
* <li>
|
|
114
|
-
* <p>Temporary credentials - specify the cluster identifier, the database name, and the
|
|
115
|
-
*
|
|
116
|
-
*
|
|
114
|
+
* <p>Temporary credentials - when connecting to a cluster, specify the cluster identifier, the database name, and the database user name.
|
|
115
|
+
* Also, permission to call the <code>redshift:GetClusterCredentials</code> operation is required.
|
|
116
|
+
* When connecting to a serverless endpoint, specify the database name. </p>
|
|
117
117
|
* </li>
|
|
118
118
|
* </ul>
|
|
119
119
|
*/
|
|
@@ -127,13 +127,13 @@ export declare class RedshiftData extends RedshiftDataClient {
|
|
|
127
127
|
* following combinations of request parameters: </p>
|
|
128
128
|
* <ul>
|
|
129
129
|
* <li>
|
|
130
|
-
* <p>Secrets Manager - specify the Amazon Resource Name (ARN) of the secret, the database name, and the
|
|
131
|
-
*
|
|
130
|
+
* <p>Secrets Manager - when connecting to a cluster, specify the Amazon Resource Name (ARN) of the secret, the database name, and the cluster identifier that matches the cluster in the secret.
|
|
131
|
+
* When connecting to a serverless endpoint, specify the Amazon Resource Name (ARN) of the secret and the database name. </p>
|
|
132
132
|
* </li>
|
|
133
133
|
* <li>
|
|
134
|
-
* <p>Temporary credentials - specify the cluster identifier, the database name, and the
|
|
135
|
-
*
|
|
136
|
-
*
|
|
134
|
+
* <p>Temporary credentials - when connecting to a cluster, specify the cluster identifier, the database name, and the database user name.
|
|
135
|
+
* Also, permission to call the <code>redshift:GetClusterCredentials</code> operation is required.
|
|
136
|
+
* When connecting to a serverless endpoint, specify the database name. </p>
|
|
137
137
|
* </li>
|
|
138
138
|
* </ul>
|
|
139
139
|
*/
|
|
@@ -155,13 +155,13 @@ export declare class RedshiftData extends RedshiftDataClient {
|
|
|
155
155
|
* following combinations of request parameters: </p>
|
|
156
156
|
* <ul>
|
|
157
157
|
* <li>
|
|
158
|
-
* <p>Secrets Manager - specify the Amazon Resource Name (ARN) of the secret, the database name, and the
|
|
159
|
-
*
|
|
158
|
+
* <p>Secrets Manager - when connecting to a cluster, specify the Amazon Resource Name (ARN) of the secret, the database name, and the cluster identifier that matches the cluster in the secret.
|
|
159
|
+
* When connecting to a serverless endpoint, specify the Amazon Resource Name (ARN) of the secret and the database name. </p>
|
|
160
160
|
* </li>
|
|
161
161
|
* <li>
|
|
162
|
-
* <p>Temporary credentials - specify the cluster identifier, the database name, and the
|
|
163
|
-
*
|
|
164
|
-
*
|
|
162
|
+
* <p>Temporary credentials - when connecting to a cluster, specify the cluster identifier, the database name, and the database user name.
|
|
163
|
+
* Also, permission to call the <code>redshift:GetClusterCredentials</code> operation is required.
|
|
164
|
+
* When connecting to a serverless endpoint, specify the database name. </p>
|
|
165
165
|
* </li>
|
|
166
166
|
* </ul>
|
|
167
167
|
*/
|
|
@@ -13,13 +13,13 @@ export interface BatchExecuteStatementCommandOutput extends BatchExecuteStatemen
|
|
|
13
13
|
* method, use one of the following combinations of request parameters: </p>
|
|
14
14
|
* <ul>
|
|
15
15
|
* <li>
|
|
16
|
-
* <p>Secrets Manager - specify the Amazon Resource Name (ARN) of the secret, the database name, and the
|
|
17
|
-
*
|
|
16
|
+
* <p>Secrets Manager - when connecting to a cluster, specify the Amazon Resource Name (ARN) of the secret, the database name, and the cluster identifier that matches the cluster in the secret.
|
|
17
|
+
* When connecting to a serverless endpoint, specify the Amazon Resource Name (ARN) of the secret and the database name. </p>
|
|
18
18
|
* </li>
|
|
19
19
|
* <li>
|
|
20
|
-
* <p>Temporary credentials - specify the cluster identifier, the database name, and the
|
|
21
|
-
*
|
|
22
|
-
*
|
|
20
|
+
* <p>Temporary credentials - when connecting to a cluster, specify the cluster identifier, the database name, and the database user name.
|
|
21
|
+
* Also, permission to call the <code>redshift:GetClusterCredentials</code> operation is required.
|
|
22
|
+
* When connecting to a serverless endpoint, specify the database name. </p>
|
|
23
23
|
* </li>
|
|
24
24
|
* </ul>
|
|
25
25
|
* @example
|
|
@@ -14,13 +14,13 @@ export interface DescribeTableCommandOutput extends DescribeTableResponse, __Met
|
|
|
14
14
|
* following combinations of request parameters: </p>
|
|
15
15
|
* <ul>
|
|
16
16
|
* <li>
|
|
17
|
-
* <p>Secrets Manager - specify the Amazon Resource Name (ARN) of the secret, the database name, and the
|
|
18
|
-
*
|
|
17
|
+
* <p>Secrets Manager - when connecting to a cluster, specify the Amazon Resource Name (ARN) of the secret, the database name, and the cluster identifier that matches the cluster in the secret.
|
|
18
|
+
* When connecting to a serverless endpoint, specify the Amazon Resource Name (ARN) of the secret and the database name. </p>
|
|
19
19
|
* </li>
|
|
20
20
|
* <li>
|
|
21
|
-
* <p>Temporary credentials - specify the cluster identifier, the database name, and the database
|
|
22
|
-
*
|
|
23
|
-
*
|
|
21
|
+
* <p>Temporary credentials - when connecting to a cluster, specify the cluster identifier, the database name, and the database user name.
|
|
22
|
+
* Also, permission to call the <code>redshift:GetClusterCredentials</code> operation is required.
|
|
23
|
+
* When connecting to a serverless endpoint, specify the database name. </p>
|
|
24
24
|
* </li>
|
|
25
25
|
* </ul>
|
|
26
26
|
* @example
|
|
@@ -13,13 +13,13 @@ export interface ExecuteStatementCommandOutput extends ExecuteStatementOutput, _
|
|
|
13
13
|
* method, use one of the following combinations of request parameters: </p>
|
|
14
14
|
* <ul>
|
|
15
15
|
* <li>
|
|
16
|
-
* <p>Secrets Manager - specify the Amazon Resource Name (ARN) of the secret, the database name, and the
|
|
17
|
-
*
|
|
16
|
+
* <p>Secrets Manager - when connecting to a cluster, specify the Amazon Resource Name (ARN) of the secret, the database name, and the cluster identifier that matches the cluster in the secret.
|
|
17
|
+
* When connecting to a serverless endpoint, specify the Amazon Resource Name (ARN) of the secret and the database name. </p>
|
|
18
18
|
* </li>
|
|
19
19
|
* <li>
|
|
20
|
-
* <p>Temporary credentials - specify the cluster identifier, the database name, and the
|
|
21
|
-
*
|
|
22
|
-
*
|
|
20
|
+
* <p>Temporary credentials - when connecting to a cluster, specify the cluster identifier, the database name, and the database user name.
|
|
21
|
+
* Also, permission to call the <code>redshift:GetClusterCredentials</code> operation is required.
|
|
22
|
+
* When connecting to a serverless endpoint, specify the database name. </p>
|
|
23
23
|
* </li>
|
|
24
24
|
* </ul>
|
|
25
25
|
* @example
|
|
@@ -13,13 +13,13 @@ export interface ListDatabasesCommandOutput extends ListDatabasesResponse, __Met
|
|
|
13
13
|
* following combinations of request parameters: </p>
|
|
14
14
|
* <ul>
|
|
15
15
|
* <li>
|
|
16
|
-
* <p>Secrets Manager - specify the Amazon Resource Name (ARN) of the secret, the database name, and the
|
|
17
|
-
*
|
|
16
|
+
* <p>Secrets Manager - when connecting to a cluster, specify the Amazon Resource Name (ARN) of the secret, the database name, and the cluster identifier that matches the cluster in the secret.
|
|
17
|
+
* When connecting to a serverless endpoint, specify the Amazon Resource Name (ARN) of the secret and the database name. </p>
|
|
18
18
|
* </li>
|
|
19
19
|
* <li>
|
|
20
|
-
* <p>Temporary credentials - specify the cluster identifier, the database name, and the
|
|
21
|
-
*
|
|
22
|
-
*
|
|
20
|
+
* <p>Temporary credentials - when connecting to a cluster, specify the cluster identifier, the database name, and the database user name.
|
|
21
|
+
* Also, permission to call the <code>redshift:GetClusterCredentials</code> operation is required.
|
|
22
|
+
* When connecting to a serverless endpoint, specify the database name. </p>
|
|
23
23
|
* </li>
|
|
24
24
|
* </ul>
|
|
25
25
|
* @example
|
|
@@ -13,13 +13,13 @@ export interface ListSchemasCommandOutput extends ListSchemasResponse, __Metadat
|
|
|
13
13
|
* following combinations of request parameters: </p>
|
|
14
14
|
* <ul>
|
|
15
15
|
* <li>
|
|
16
|
-
* <p>Secrets Manager - specify the Amazon Resource Name (ARN) of the secret, the database name, and the
|
|
17
|
-
*
|
|
16
|
+
* <p>Secrets Manager - when connecting to a cluster, specify the Amazon Resource Name (ARN) of the secret, the database name, and the cluster identifier that matches the cluster in the secret.
|
|
17
|
+
* When connecting to a serverless endpoint, specify the Amazon Resource Name (ARN) of the secret and the database name. </p>
|
|
18
18
|
* </li>
|
|
19
19
|
* <li>
|
|
20
|
-
* <p>Temporary credentials - specify the cluster identifier, the database name, and the
|
|
21
|
-
*
|
|
22
|
-
*
|
|
20
|
+
* <p>Temporary credentials - when connecting to a cluster, specify the cluster identifier, the database name, and the database user name.
|
|
21
|
+
* Also, permission to call the <code>redshift:GetClusterCredentials</code> operation is required.
|
|
22
|
+
* When connecting to a serverless endpoint, specify the database name. </p>
|
|
23
23
|
* </li>
|
|
24
24
|
* </ul>
|
|
25
25
|
* @example
|
|
@@ -14,13 +14,13 @@ export interface ListTablesCommandOutput extends ListTablesResponse, __MetadataB
|
|
|
14
14
|
* following combinations of request parameters: </p>
|
|
15
15
|
* <ul>
|
|
16
16
|
* <li>
|
|
17
|
-
* <p>Secrets Manager - specify the Amazon Resource Name (ARN) of the secret, the database name, and the
|
|
18
|
-
*
|
|
17
|
+
* <p>Secrets Manager - when connecting to a cluster, specify the Amazon Resource Name (ARN) of the secret, the database name, and the cluster identifier that matches the cluster in the secret.
|
|
18
|
+
* When connecting to a serverless endpoint, specify the Amazon Resource Name (ARN) of the secret and the database name. </p>
|
|
19
19
|
* </li>
|
|
20
20
|
* <li>
|
|
21
|
-
* <p>Temporary credentials - specify the cluster identifier, the database name, and the
|
|
22
|
-
*
|
|
23
|
-
*
|
|
21
|
+
* <p>Temporary credentials - when connecting to a cluster, specify the cluster identifier, the database name, and the database user name.
|
|
22
|
+
* Also, permission to call the <code>redshift:GetClusterCredentials</code> operation is required.
|
|
23
|
+
* When connecting to a serverless endpoint, specify the database name. </p>
|
|
24
24
|
* </li>
|
|
25
25
|
* </ul>
|
|
26
26
|
* @example
|
|
@@ -37,15 +37,15 @@ export interface BatchExecuteStatementInput {
|
|
|
37
37
|
*/
|
|
38
38
|
Sqls: string[] | undefined;
|
|
39
39
|
/**
|
|
40
|
-
* <p>The cluster identifier. This parameter is required when authenticating using either Secrets Manager or temporary credentials. </p>
|
|
40
|
+
* <p>The cluster identifier. This parameter is required when connecting to a cluster and authenticating using either Secrets Manager or temporary credentials. </p>
|
|
41
41
|
*/
|
|
42
|
-
ClusterIdentifier
|
|
42
|
+
ClusterIdentifier?: string;
|
|
43
43
|
/**
|
|
44
44
|
* <p>The name or ARN of the secret that enables access to the database. This parameter is required when authenticating using Secrets Manager. </p>
|
|
45
45
|
*/
|
|
46
46
|
SecretArn?: string;
|
|
47
47
|
/**
|
|
48
|
-
* <p>The database user name. This parameter is required when authenticating using temporary credentials. </p>
|
|
48
|
+
* <p>The database user name. This parameter is required when connecting to a cluster and authenticating using temporary credentials. </p>
|
|
49
49
|
*/
|
|
50
50
|
DbUser?: string;
|
|
51
51
|
/**
|
|
@@ -78,7 +78,7 @@ export interface BatchExecuteStatementOutput {
|
|
|
78
78
|
*/
|
|
79
79
|
CreatedAt?: Date;
|
|
80
80
|
/**
|
|
81
|
-
* <p>The cluster identifier. </p>
|
|
81
|
+
* <p>The cluster identifier. This parameter is not returned when connecting to a serverless endpoint. </p>
|
|
82
82
|
*/
|
|
83
83
|
ClusterIdentifier?: string;
|
|
84
84
|
/**
|
|
@@ -142,6 +142,20 @@ export declare namespace CancelStatementResponse {
|
|
|
142
142
|
*/
|
|
143
143
|
const filterSensitiveLog: (obj: CancelStatementResponse) => any;
|
|
144
144
|
}
|
|
145
|
+
/**
|
|
146
|
+
* <p>Connection to a database failed.</p>
|
|
147
|
+
*/
|
|
148
|
+
export interface DatabaseConnectionException extends __SmithyException, $MetadataBearer {
|
|
149
|
+
name: "DatabaseConnectionException";
|
|
150
|
+
$fault: "server";
|
|
151
|
+
Message: string | undefined;
|
|
152
|
+
}
|
|
153
|
+
export declare namespace DatabaseConnectionException {
|
|
154
|
+
/**
|
|
155
|
+
* @internal
|
|
156
|
+
*/
|
|
157
|
+
const filterSensitiveLog: (obj: DatabaseConnectionException) => any;
|
|
158
|
+
}
|
|
145
159
|
/**
|
|
146
160
|
* <p>The Amazon Redshift Data API operation failed due to invalid input. </p>
|
|
147
161
|
*/
|
|
@@ -348,7 +362,7 @@ export interface SubStatementData {
|
|
|
348
362
|
*/
|
|
349
363
|
RedshiftQueryId?: number;
|
|
350
364
|
/**
|
|
351
|
-
* <p>A value that indicates whether the statement has a result set. The result set can be empty.</p>
|
|
365
|
+
* <p>A value that indicates whether the statement has a result set. The result set can be empty. The value is true for an empty result set.</p>
|
|
352
366
|
*/
|
|
353
367
|
HasResultSet?: boolean;
|
|
354
368
|
}
|
|
@@ -428,7 +442,8 @@ export interface DescribeStatementResponse {
|
|
|
428
442
|
*/
|
|
429
443
|
RedshiftPid?: number;
|
|
430
444
|
/**
|
|
431
|
-
* <p>A value that indicates whether the statement has a result set. The result set can be empty.
|
|
445
|
+
* <p>A value that indicates whether the statement has a result set. The result set can be empty. The value is true for an empty result set.
|
|
446
|
+
* The value is true if any substatement returns a result set.</p>
|
|
432
447
|
*/
|
|
433
448
|
HasResultSet?: boolean;
|
|
434
449
|
/**
|
|
@@ -467,15 +482,15 @@ export declare namespace DescribeStatementResponse {
|
|
|
467
482
|
}
|
|
468
483
|
export interface DescribeTableRequest {
|
|
469
484
|
/**
|
|
470
|
-
* <p>The cluster identifier. This parameter is required when authenticating using either Secrets Manager or temporary credentials. </p>
|
|
485
|
+
* <p>The cluster identifier. This parameter is required when connecting to a cluster and authenticating using either Secrets Manager or temporary credentials. </p>
|
|
471
486
|
*/
|
|
472
|
-
ClusterIdentifier
|
|
487
|
+
ClusterIdentifier?: string;
|
|
473
488
|
/**
|
|
474
489
|
* <p>The name or ARN of the secret that enables access to the database. This parameter is required when authenticating using Secrets Manager. </p>
|
|
475
490
|
*/
|
|
476
491
|
SecretArn?: string;
|
|
477
492
|
/**
|
|
478
|
-
* <p>The database user name. This parameter is required when authenticating using temporary credentials. </p>
|
|
493
|
+
* <p>The database user name. This parameter is required when connecting to a cluster and authenticating using temporary credentials. </p>
|
|
479
494
|
*/
|
|
480
495
|
DbUser?: string;
|
|
481
496
|
/**
|
|
@@ -559,15 +574,15 @@ export interface ExecuteStatementInput {
|
|
|
559
574
|
*/
|
|
560
575
|
Sql: string | undefined;
|
|
561
576
|
/**
|
|
562
|
-
* <p>The cluster identifier. This parameter is required when authenticating using either Secrets Manager or temporary credentials. </p>
|
|
577
|
+
* <p>The cluster identifier. This parameter is required when connecting to a cluster and authenticating using either Secrets Manager or temporary credentials. </p>
|
|
563
578
|
*/
|
|
564
|
-
ClusterIdentifier
|
|
579
|
+
ClusterIdentifier?: string;
|
|
565
580
|
/**
|
|
566
581
|
* <p>The name or ARN of the secret that enables access to the database. This parameter is required when authenticating using Secrets Manager. </p>
|
|
567
582
|
*/
|
|
568
583
|
SecretArn?: string;
|
|
569
584
|
/**
|
|
570
|
-
* <p>The database user name. This parameter is required when authenticating using temporary credentials. </p>
|
|
585
|
+
* <p>The database user name. This parameter is required when connecting to a cluster and authenticating using temporary credentials. </p>
|
|
571
586
|
*/
|
|
572
587
|
DbUser?: string;
|
|
573
588
|
/**
|
|
@@ -603,7 +618,7 @@ export interface ExecuteStatementOutput {
|
|
|
603
618
|
*/
|
|
604
619
|
CreatedAt?: Date;
|
|
605
620
|
/**
|
|
606
|
-
* <p>The cluster identifier. </p>
|
|
621
|
+
* <p>The cluster identifier. This parameter is not returned when connecting to a serverless endpoint. </p>
|
|
607
622
|
*/
|
|
608
623
|
ClusterIdentifier?: string;
|
|
609
624
|
/**
|
|
@@ -772,9 +787,9 @@ export declare namespace GetStatementResultResponse {
|
|
|
772
787
|
}
|
|
773
788
|
export interface ListDatabasesRequest {
|
|
774
789
|
/**
|
|
775
|
-
* <p>The cluster identifier. This parameter is required when authenticating using either Secrets Manager or temporary credentials. </p>
|
|
790
|
+
* <p>The cluster identifier. This parameter is required when connecting to a cluster and authenticating using either Secrets Manager or temporary credentials. </p>
|
|
776
791
|
*/
|
|
777
|
-
ClusterIdentifier
|
|
792
|
+
ClusterIdentifier?: string;
|
|
778
793
|
/**
|
|
779
794
|
* <p>The name of the database. This parameter is required when authenticating using either Secrets Manager or temporary credentials. </p>
|
|
780
795
|
*/
|
|
@@ -784,7 +799,7 @@ export interface ListDatabasesRequest {
|
|
|
784
799
|
*/
|
|
785
800
|
SecretArn?: string;
|
|
786
801
|
/**
|
|
787
|
-
* <p>The database user name. This parameter is required when authenticating using temporary credentials. </p>
|
|
802
|
+
* <p>The database user name. This parameter is required when connecting to a cluster and authenticating using temporary credentials. </p>
|
|
788
803
|
*/
|
|
789
804
|
DbUser?: string;
|
|
790
805
|
/**
|
|
@@ -821,15 +836,15 @@ export declare namespace ListDatabasesResponse {
|
|
|
821
836
|
}
|
|
822
837
|
export interface ListSchemasRequest {
|
|
823
838
|
/**
|
|
824
|
-
* <p>The cluster identifier. This parameter is required when authenticating using either Secrets Manager or temporary credentials. </p>
|
|
839
|
+
* <p>The cluster identifier. This parameter is required when connecting to a cluster and authenticating using either Secrets Manager or temporary credentials. </p>
|
|
825
840
|
*/
|
|
826
|
-
ClusterIdentifier
|
|
841
|
+
ClusterIdentifier?: string;
|
|
827
842
|
/**
|
|
828
843
|
* <p>The name or ARN of the secret that enables access to the database. This parameter is required when authenticating using Secrets Manager. </p>
|
|
829
844
|
*/
|
|
830
845
|
SecretArn?: string;
|
|
831
846
|
/**
|
|
832
|
-
* <p>The database user name. This parameter is required when authenticating using temporary credentials. </p>
|
|
847
|
+
* <p>The database user name. This parameter is required when connecting to a cluster and authenticating using temporary credentials. </p>
|
|
833
848
|
*/
|
|
834
849
|
DbUser?: string;
|
|
835
850
|
/**
|
|
@@ -1006,15 +1021,15 @@ export declare namespace ListStatementsResponse {
|
|
|
1006
1021
|
}
|
|
1007
1022
|
export interface ListTablesRequest {
|
|
1008
1023
|
/**
|
|
1009
|
-
* <p>The cluster identifier. This parameter is required when authenticating using either Secrets Manager or temporary credentials. </p>
|
|
1024
|
+
* <p>The cluster identifier. This parameter is required when connecting to a cluster and authenticating using either Secrets Manager or temporary credentials. </p>
|
|
1010
1025
|
*/
|
|
1011
|
-
ClusterIdentifier
|
|
1026
|
+
ClusterIdentifier?: string;
|
|
1012
1027
|
/**
|
|
1013
1028
|
* <p>The name or ARN of the secret that enables access to the database. This parameter is required when authenticating using Secrets Manager. </p>
|
|
1014
1029
|
*/
|
|
1015
1030
|
SecretArn?: string;
|
|
1016
1031
|
/**
|
|
1017
|
-
* <p>The database user name. This parameter is required when authenticating using temporary credentials. </p>
|
|
1032
|
+
* <p>The database user name. This parameter is required when connecting to a cluster and authenticating using temporary credentials. </p>
|
|
1018
1033
|
*/
|
|
1019
1034
|
DbUser?: string;
|
|
1020
1035
|
/**
|
|
@@ -25,7 +25,7 @@ export interface BatchExecuteStatementInput {
|
|
|
25
25
|
|
|
26
26
|
Sqls: string[] | undefined;
|
|
27
27
|
|
|
28
|
-
ClusterIdentifier
|
|
28
|
+
ClusterIdentifier?: string;
|
|
29
29
|
|
|
30
30
|
SecretArn?: string;
|
|
31
31
|
|
|
@@ -87,6 +87,16 @@ export declare namespace CancelStatementResponse {
|
|
|
87
87
|
const filterSensitiveLog: (obj: CancelStatementResponse) => any;
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
+
export interface DatabaseConnectionException extends __SmithyException, $MetadataBearer {
|
|
91
|
+
name: "DatabaseConnectionException";
|
|
92
|
+
$fault: "server";
|
|
93
|
+
Message: string | undefined;
|
|
94
|
+
}
|
|
95
|
+
export declare namespace DatabaseConnectionException {
|
|
96
|
+
|
|
97
|
+
const filterSensitiveLog: (obj: DatabaseConnectionException) => any;
|
|
98
|
+
}
|
|
99
|
+
|
|
90
100
|
export interface InternalServerException extends __SmithyException, $MetadataBearer {
|
|
91
101
|
name: "InternalServerException";
|
|
92
102
|
$fault: "server";
|
|
@@ -252,7 +262,7 @@ export declare namespace DescribeStatementResponse {
|
|
|
252
262
|
}
|
|
253
263
|
export interface DescribeTableRequest {
|
|
254
264
|
|
|
255
|
-
ClusterIdentifier
|
|
265
|
+
ClusterIdentifier?: string;
|
|
256
266
|
|
|
257
267
|
SecretArn?: string;
|
|
258
268
|
|
|
@@ -303,7 +313,7 @@ export interface ExecuteStatementInput {
|
|
|
303
313
|
|
|
304
314
|
Sql: string | undefined;
|
|
305
315
|
|
|
306
|
-
ClusterIdentifier
|
|
316
|
+
ClusterIdentifier?: string;
|
|
307
317
|
|
|
308
318
|
SecretArn?: string;
|
|
309
319
|
|
|
@@ -453,7 +463,7 @@ export declare namespace GetStatementResultResponse {
|
|
|
453
463
|
}
|
|
454
464
|
export interface ListDatabasesRequest {
|
|
455
465
|
|
|
456
|
-
ClusterIdentifier
|
|
466
|
+
ClusterIdentifier?: string;
|
|
457
467
|
|
|
458
468
|
Database: string | undefined;
|
|
459
469
|
|
|
@@ -481,7 +491,7 @@ export declare namespace ListDatabasesResponse {
|
|
|
481
491
|
}
|
|
482
492
|
export interface ListSchemasRequest {
|
|
483
493
|
|
|
484
|
-
ClusterIdentifier
|
|
494
|
+
ClusterIdentifier?: string;
|
|
485
495
|
|
|
486
496
|
SecretArn?: string;
|
|
487
497
|
|
|
@@ -566,7 +576,7 @@ export declare namespace ListStatementsResponse {
|
|
|
566
576
|
}
|
|
567
577
|
export interface ListTablesRequest {
|
|
568
578
|
|
|
569
|
-
ClusterIdentifier
|
|
579
|
+
ClusterIdentifier?: string;
|
|
570
580
|
|
|
571
581
|
SecretArn?: string;
|
|
572
582
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-redshift-data",
|
|
3
3
|
"description": "AWS SDK for JavaScript Redshift Data Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.44.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "yarn build:cjs && yarn build:es && yarn build:types",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.json",
|