@aws-sdk/client-redshift-data 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 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.43.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.42.0...v3.43.0) (2021-11-29)
7
+
8
+
9
+ ### Features
10
+
11
+ * **clients:** update clients as of 11/28/2021 ([#3072](https://github.com/aws/aws-sdk-js-v3/issues/3072)) ([2ad1622](https://github.com/aws/aws-sdk-js-v3/commit/2ad1622ba8586b926fe508055211803bb29e3976))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.42.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.41.0...v3.42.0) (2021-11-19)
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.DatabaseConnectionException = 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.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,12 +43,6 @@ 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 = {}));
52
46
  var InternalServerException;
53
47
  (function (InternalServerException) {
54
48
  InternalServerException.filterSensitiveLog = (obj) => ({
@@ -189,14 +189,6 @@ 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;
200
192
  case "InternalServerException":
201
193
  case "com.amazonaws.redshiftdata#InternalServerException":
202
194
  response = {
@@ -323,14 +315,6 @@ const deserializeAws_json1_1DescribeTableCommandError = async (output, context)
323
315
  let errorCode = "UnknownError";
324
316
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
325
317
  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;
334
318
  case "InternalServerException":
335
319
  case "com.amazonaws.redshiftdata#InternalServerException":
336
320
  response = {
@@ -512,14 +496,6 @@ const deserializeAws_json1_1ListDatabasesCommandError = async (output, context)
512
496
  let errorCode = "UnknownError";
513
497
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
514
498
  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;
523
499
  case "InternalServerException":
524
500
  case "com.amazonaws.redshiftdata#InternalServerException":
525
501
  response = {
@@ -575,14 +551,6 @@ const deserializeAws_json1_1ListSchemasCommandError = async (output, context) =>
575
551
  let errorCode = "UnknownError";
576
552
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
577
553
  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;
586
554
  case "InternalServerException":
587
555
  case "com.amazonaws.redshiftdata#InternalServerException":
588
556
  response = {
@@ -693,14 +661,6 @@ const deserializeAws_json1_1ListTablesCommandError = async (output, context) =>
693
661
  let errorCode = "UnknownError";
694
662
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
695
663
  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;
704
664
  case "InternalServerException":
705
665
  case "com.amazonaws.redshiftdata#InternalServerException":
706
666
  response = {
@@ -755,17 +715,6 @@ const deserializeAws_json1_1BatchExecuteStatementExceptionResponse = async (pars
755
715
  };
756
716
  return contents;
757
717
  };
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
- };
769
718
  const deserializeAws_json1_1ExecuteStatementExceptionResponse = async (parsedOutput, context) => {
770
719
  const body = parsedOutput.body;
771
720
  const deserialized = deserializeAws_json1_1ExecuteStatementException(body, context);
@@ -1007,11 +956,6 @@ const deserializeAws_json1_1ColumnMetadataList = (output, context) => {
1007
956
  return deserializeAws_json1_1ColumnMetadata(entry, context);
1008
957
  });
1009
958
  };
1010
- const deserializeAws_json1_1DatabaseConnectionException = (output, context) => {
1011
- return {
1012
- Message: smithy_client_1.expectString(output.Message),
1013
- };
1014
- };
1015
959
  const deserializeAws_json1_1DatabaseList = (output, context) => {
1016
960
  return (output || [])
1017
961
  .filter((e) => e != null)
@@ -27,10 +27,6 @@ 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 = {}));
34
30
  export var InternalServerException;
35
31
  (function (InternalServerException) {
36
32
  InternalServerException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -202,60 +202,52 @@ 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, _f, parsedBody, message;
206
- var _g;
207
- return __generator(this, function (_h) {
208
- switch (_h.label) {
205
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, parsedBody, message;
206
+ var _f;
207
+ return __generator(this, function (_g) {
208
+ switch (_g.label) {
209
209
  case 0:
210
210
  _a = [__assign({}, output)];
211
- _g = {};
211
+ _f = {};
212
212
  return [4, parseBody(output.body, context)];
213
213
  case 1:
214
- parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
214
+ parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
215
215
  errorCode = "UnknownError";
216
216
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
217
217
  _b = errorCode;
218
218
  switch (_b) {
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];
219
+ case "InternalServerException": return [3, 2];
220
+ case "com.amazonaws.redshiftdata#InternalServerException": return [3, 2];
221
+ case "ResourceNotFoundException": return [3, 4];
222
+ case "com.amazonaws.redshiftdata#ResourceNotFoundException": return [3, 4];
223
+ case "ValidationException": return [3, 6];
224
+ case "com.amazonaws.redshiftdata#ValidationException": return [3, 6];
227
225
  }
228
- return [3, 10];
226
+ return [3, 8];
229
227
  case 2:
230
228
  _c = [{}];
231
- return [4, deserializeAws_json1_1DatabaseConnectionExceptionResponse(parsedOutput, context)];
229
+ return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
232
230
  case 3:
233
- response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
234
- return [3, 11];
231
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
232
+ return [3, 9];
235
233
  case 4:
236
234
  _d = [{}];
237
- return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
235
+ return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
238
236
  case 5:
239
- response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
240
- return [3, 11];
237
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
238
+ return [3, 9];
241
239
  case 6:
242
240
  _e = [{}];
243
- return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
241
+ return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
244
242
  case 7:
245
- response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
246
- return [3, 11];
243
+ response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
244
+ return [3, 9];
247
245
  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:
254
246
  parsedBody = parsedOutput.body;
255
247
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
256
248
  response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
257
- _h.label = 11;
258
- case 11:
249
+ _g.label = 9;
250
+ case 9:
259
251
  message = response.message || response.Message || errorCode;
260
252
  response.message = message;
261
253
  delete response.Message;
@@ -354,52 +346,44 @@ export var deserializeAws_json1_1DescribeTableCommand = function (output, contex
354
346
  });
355
347
  }); };
356
348
  var deserializeAws_json1_1DescribeTableCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
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) {
349
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, parsedBody, message;
350
+ var _e;
351
+ return __generator(this, function (_f) {
352
+ switch (_f.label) {
361
353
  case 0:
362
354
  _a = [__assign({}, output)];
363
- _f = {};
355
+ _e = {};
364
356
  return [4, parseBody(output.body, context)];
365
357
  case 1:
366
- parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
358
+ parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
367
359
  errorCode = "UnknownError";
368
360
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
369
361
  _b = errorCode;
370
362
  switch (_b) {
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];
363
+ case "InternalServerException": return [3, 2];
364
+ case "com.amazonaws.redshiftdata#InternalServerException": return [3, 2];
365
+ case "ValidationException": return [3, 4];
366
+ case "com.amazonaws.redshiftdata#ValidationException": return [3, 4];
377
367
  }
378
- return [3, 8];
368
+ return [3, 6];
379
369
  case 2:
380
370
  _c = [{}];
381
- return [4, deserializeAws_json1_1DatabaseConnectionExceptionResponse(parsedOutput, context)];
371
+ return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
382
372
  case 3:
383
- response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
384
- return [3, 9];
373
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
374
+ return [3, 7];
385
375
  case 4:
386
376
  _d = [{}];
387
- return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
377
+ return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
388
378
  case 5:
389
- response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
390
- return [3, 9];
379
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
380
+ return [3, 7];
391
381
  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:
398
382
  parsedBody = parsedOutput.body;
399
383
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
400
384
  response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
401
- _g.label = 9;
402
- case 9:
385
+ _f.label = 7;
386
+ case 7:
403
387
  message = response.message || response.Message || errorCode;
404
388
  response.message = message;
405
389
  delete response.Message;
@@ -570,52 +554,44 @@ export var deserializeAws_json1_1ListDatabasesCommand = function (output, contex
570
554
  });
571
555
  }); };
572
556
  var deserializeAws_json1_1ListDatabasesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
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) {
557
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, parsedBody, message;
558
+ var _e;
559
+ return __generator(this, function (_f) {
560
+ switch (_f.label) {
577
561
  case 0:
578
562
  _a = [__assign({}, output)];
579
- _f = {};
563
+ _e = {};
580
564
  return [4, parseBody(output.body, context)];
581
565
  case 1:
582
- parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
566
+ parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
583
567
  errorCode = "UnknownError";
584
568
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
585
569
  _b = errorCode;
586
570
  switch (_b) {
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];
571
+ case "InternalServerException": return [3, 2];
572
+ case "com.amazonaws.redshiftdata#InternalServerException": return [3, 2];
573
+ case "ValidationException": return [3, 4];
574
+ case "com.amazonaws.redshiftdata#ValidationException": return [3, 4];
593
575
  }
594
- return [3, 8];
576
+ return [3, 6];
595
577
  case 2:
596
578
  _c = [{}];
597
- return [4, deserializeAws_json1_1DatabaseConnectionExceptionResponse(parsedOutput, context)];
579
+ return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
598
580
  case 3:
599
- response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
600
- return [3, 9];
581
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
582
+ return [3, 7];
601
583
  case 4:
602
584
  _d = [{}];
603
- return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
585
+ return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
604
586
  case 5:
605
- response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
606
- return [3, 9];
587
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
588
+ return [3, 7];
607
589
  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:
614
590
  parsedBody = parsedOutput.body;
615
591
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
616
592
  response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
617
- _g.label = 9;
618
- case 9:
593
+ _f.label = 7;
594
+ case 7:
619
595
  message = response.message || response.Message || errorCode;
620
596
  response.message = message;
621
597
  delete response.Message;
@@ -642,52 +618,44 @@ export var deserializeAws_json1_1ListSchemasCommand = function (output, context)
642
618
  });
643
619
  }); };
644
620
  var deserializeAws_json1_1ListSchemasCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
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) {
621
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, parsedBody, message;
622
+ var _e;
623
+ return __generator(this, function (_f) {
624
+ switch (_f.label) {
649
625
  case 0:
650
626
  _a = [__assign({}, output)];
651
- _f = {};
627
+ _e = {};
652
628
  return [4, parseBody(output.body, context)];
653
629
  case 1:
654
- parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
630
+ parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
655
631
  errorCode = "UnknownError";
656
632
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
657
633
  _b = errorCode;
658
634
  switch (_b) {
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];
635
+ case "InternalServerException": return [3, 2];
636
+ case "com.amazonaws.redshiftdata#InternalServerException": return [3, 2];
637
+ case "ValidationException": return [3, 4];
638
+ case "com.amazonaws.redshiftdata#ValidationException": return [3, 4];
665
639
  }
666
- return [3, 8];
640
+ return [3, 6];
667
641
  case 2:
668
642
  _c = [{}];
669
- return [4, deserializeAws_json1_1DatabaseConnectionExceptionResponse(parsedOutput, context)];
643
+ return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
670
644
  case 3:
671
- response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
672
- return [3, 9];
645
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
646
+ return [3, 7];
673
647
  case 4:
674
648
  _d = [{}];
675
- return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
649
+ return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
676
650
  case 5:
677
- response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
678
- return [3, 9];
651
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
652
+ return [3, 7];
679
653
  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:
686
654
  parsedBody = parsedOutput.body;
687
655
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
688
656
  response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
689
- _g.label = 9;
690
- case 9:
657
+ _f.label = 7;
658
+ case 7:
691
659
  message = response.message || response.Message || errorCode;
692
660
  response.message = message;
693
661
  delete response.Message;
@@ -778,52 +746,44 @@ export var deserializeAws_json1_1ListTablesCommand = function (output, context)
778
746
  });
779
747
  }); };
780
748
  var deserializeAws_json1_1ListTablesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
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) {
749
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, parsedBody, message;
750
+ var _e;
751
+ return __generator(this, function (_f) {
752
+ switch (_f.label) {
785
753
  case 0:
786
754
  _a = [__assign({}, output)];
787
- _f = {};
755
+ _e = {};
788
756
  return [4, parseBody(output.body, context)];
789
757
  case 1:
790
- parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
758
+ parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
791
759
  errorCode = "UnknownError";
792
760
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
793
761
  _b = errorCode;
794
762
  switch (_b) {
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];
763
+ case "InternalServerException": return [3, 2];
764
+ case "com.amazonaws.redshiftdata#InternalServerException": return [3, 2];
765
+ case "ValidationException": return [3, 4];
766
+ case "com.amazonaws.redshiftdata#ValidationException": return [3, 4];
801
767
  }
802
- return [3, 8];
768
+ return [3, 6];
803
769
  case 2:
804
770
  _c = [{}];
805
- return [4, deserializeAws_json1_1DatabaseConnectionExceptionResponse(parsedOutput, context)];
771
+ return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
806
772
  case 3:
807
- response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
808
- return [3, 9];
773
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
774
+ return [3, 7];
809
775
  case 4:
810
776
  _d = [{}];
811
- return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
777
+ return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
812
778
  case 5:
813
- response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
814
- return [3, 9];
779
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
780
+ return [3, 7];
815
781
  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:
822
782
  parsedBody = parsedOutput.body;
823
783
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
824
784
  response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
825
- _g.label = 9;
826
- case 9:
785
+ _f.label = 7;
786
+ case 7:
827
787
  message = response.message || response.Message || errorCode;
828
788
  response.message = message;
829
789
  delete response.Message;
@@ -849,15 +809,6 @@ var deserializeAws_json1_1BatchExecuteStatementExceptionResponse = function (par
849
809
  return [2, contents];
850
810
  });
851
811
  }); };
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
- }); };
861
812
  var deserializeAws_json1_1ExecuteStatementExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
862
813
  var body, deserialized, contents;
863
814
  return __generator(this, function (_a) {
@@ -1022,11 +973,6 @@ var deserializeAws_json1_1ColumnMetadataList = function (output, context) {
1022
973
  return deserializeAws_json1_1ColumnMetadata(entry, context);
1023
974
  });
1024
975
  };
1025
- var deserializeAws_json1_1DatabaseConnectionException = function (output, context) {
1026
- return {
1027
- Message: __expectString(output.Message),
1028
- };
1029
- };
1030
976
  var deserializeAws_json1_1DatabaseList = function (output, context) {
1031
977
  return (output || [])
1032
978
  .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 - 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>
28
+ * <p>Secrets Manager - specify the Amazon Resource Name (ARN) of the secret, the database name, and the
29
+ * cluster identifier that matches the cluster in the secret. </p>
30
30
  * </li>
31
31
  * <li>
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>
32
+ * <p>Temporary credentials - specify the cluster identifier, the database name, and the
33
+ * database user name. Permission to call the <code>redshift:GetClusterCredentials</code>
34
+ * operation is required to use this method. </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 - 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>
63
+ * <p>Secrets Manager - specify the Amazon Resource Name (ARN) of the secret, the database name, and the
64
+ * cluster identifier that matches the cluster in the secret. </p>
65
65
  * </li>
66
66
  * <li>
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>
67
+ * <p>Temporary credentials - specify the cluster identifier, the database name, and the database
68
+ * user name. Permission to call the <code>redshift:GetClusterCredentials</code> operation is
69
+ * required to use this method. </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 - 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>
83
+ * <p>Secrets Manager - specify the Amazon Resource Name (ARN) of the secret, the database name, and the
84
+ * cluster identifier that matches the cluster in the secret. </p>
85
85
  * </li>
86
86
  * <li>
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>
87
+ * <p>Temporary credentials - specify the cluster identifier, the database name, and the
88
+ * database user name. Permission to call the <code>redshift:GetClusterCredentials</code>
89
+ * operation is required to use this method. </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 - 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>
110
+ * <p>Secrets Manager - specify the Amazon Resource Name (ARN) of the secret, the database name, and the
111
+ * cluster identifier that matches the cluster in the secret. </p>
112
112
  * </li>
113
113
  * <li>
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>
114
+ * <p>Temporary credentials - specify the cluster identifier, the database name, and the
115
+ * database user name. Permission to call the <code>redshift:GetClusterCredentials</code>
116
+ * operation is required to use this method. </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 - 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>
130
+ * <p>Secrets Manager - specify the Amazon Resource Name (ARN) of the secret, the database name, and the
131
+ * cluster identifier that matches the cluster in the secret. </p>
132
132
  * </li>
133
133
  * <li>
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>
134
+ * <p>Temporary credentials - specify the cluster identifier, the database name, and the
135
+ * database user name. Permission to call the <code>redshift:GetClusterCredentials</code>
136
+ * operation is required to use this method. </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 - 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>
158
+ * <p>Secrets Manager - specify the Amazon Resource Name (ARN) of the secret, the database name, and the
159
+ * cluster identifier that matches the cluster in the secret. </p>
160
160
  * </li>
161
161
  * <li>
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>
162
+ * <p>Temporary credentials - specify the cluster identifier, the database name, and the
163
+ * database user name. Permission to call the <code>redshift:GetClusterCredentials</code>
164
+ * operation is required to use this method. </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 - 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>
16
+ * <p>Secrets Manager - specify the Amazon Resource Name (ARN) of the secret, the database name, and the
17
+ * cluster identifier that matches the cluster in the secret. </p>
18
18
  * </li>
19
19
  * <li>
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>
20
+ * <p>Temporary credentials - specify the cluster identifier, the database name, and the
21
+ * database user name. Permission to call the <code>redshift:GetClusterCredentials</code>
22
+ * operation is required to use this method. </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 - 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>
17
+ * <p>Secrets Manager - specify the Amazon Resource Name (ARN) of the secret, the database name, and the
18
+ * cluster identifier that matches the cluster in the secret. </p>
19
19
  * </li>
20
20
  * <li>
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>
21
+ * <p>Temporary credentials - specify the cluster identifier, the database name, and the database
22
+ * user name. Permission to call the <code>redshift:GetClusterCredentials</code> operation is
23
+ * required to use this method. </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 - 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>
16
+ * <p>Secrets Manager - specify the Amazon Resource Name (ARN) of the secret, the database name, and the
17
+ * cluster identifier that matches the cluster in the secret. </p>
18
18
  * </li>
19
19
  * <li>
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>
20
+ * <p>Temporary credentials - specify the cluster identifier, the database name, and the
21
+ * database user name. Permission to call the <code>redshift:GetClusterCredentials</code>
22
+ * operation is required to use this method. </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 - 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>
16
+ * <p>Secrets Manager - specify the Amazon Resource Name (ARN) of the secret, the database name, and the
17
+ * cluster identifier that matches the cluster in the secret. </p>
18
18
  * </li>
19
19
  * <li>
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>
20
+ * <p>Temporary credentials - specify the cluster identifier, the database name, and the
21
+ * database user name. Permission to call the <code>redshift:GetClusterCredentials</code>
22
+ * operation is required to use this method. </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 - 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>
16
+ * <p>Secrets Manager - specify the Amazon Resource Name (ARN) of the secret, the database name, and the
17
+ * cluster identifier that matches the cluster in the secret. </p>
18
18
  * </li>
19
19
  * <li>
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>
20
+ * <p>Temporary credentials - specify the cluster identifier, the database name, and the
21
+ * database user name. Permission to call the <code>redshift:GetClusterCredentials</code>
22
+ * operation is required to use this method. </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 - 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>
17
+ * <p>Secrets Manager - specify the Amazon Resource Name (ARN) of the secret, the database name, and the
18
+ * cluster identifier that matches the cluster in the secret. </p>
19
19
  * </li>
20
20
  * <li>
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>
21
+ * <p>Temporary credentials - specify the cluster identifier, the database name, and the
22
+ * database user name. Permission to call the <code>redshift:GetClusterCredentials</code>
23
+ * operation is required to use this method. </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 connecting to a cluster and authenticating using either Secrets Manager or temporary credentials. </p>
40
+ * <p>The cluster identifier. This parameter is required when authenticating using either Secrets Manager or temporary credentials. </p>
41
41
  */
42
- ClusterIdentifier?: string;
42
+ ClusterIdentifier: string | undefined;
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 connecting to a cluster and authenticating using temporary credentials. </p>
48
+ * <p>The database user name. This parameter is required when 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. This parameter is not returned when connecting to a serverless endpoint. </p>
81
+ * <p>The cluster identifier. </p>
82
82
  */
83
83
  ClusterIdentifier?: string;
84
84
  /**
@@ -142,20 +142,6 @@ 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
- }
159
145
  /**
160
146
  * <p>The Amazon Redshift Data API operation failed due to invalid input. </p>
161
147
  */
@@ -362,7 +348,7 @@ export interface SubStatementData {
362
348
  */
363
349
  RedshiftQueryId?: number;
364
350
  /**
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>
351
+ * <p>A value that indicates whether the statement has a result set. The result set can be empty.</p>
366
352
  */
367
353
  HasResultSet?: boolean;
368
354
  }
@@ -442,8 +428,7 @@ export interface DescribeStatementResponse {
442
428
  */
443
429
  RedshiftPid?: number;
444
430
  /**
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>
431
+ * <p>A value that indicates whether the statement has a result set. The result set can be empty. </p>
447
432
  */
448
433
  HasResultSet?: boolean;
449
434
  /**
@@ -482,15 +467,15 @@ export declare namespace DescribeStatementResponse {
482
467
  }
483
468
  export interface DescribeTableRequest {
484
469
  /**
485
- * <p>The cluster identifier. This parameter is required when connecting to a cluster and authenticating using either Secrets Manager or temporary credentials. </p>
470
+ * <p>The cluster identifier. This parameter is required when authenticating using either Secrets Manager or temporary credentials. </p>
486
471
  */
487
- ClusterIdentifier?: string;
472
+ ClusterIdentifier: string | undefined;
488
473
  /**
489
474
  * <p>The name or ARN of the secret that enables access to the database. This parameter is required when authenticating using Secrets Manager. </p>
490
475
  */
491
476
  SecretArn?: string;
492
477
  /**
493
- * <p>The database user name. This parameter is required when connecting to a cluster and authenticating using temporary credentials. </p>
478
+ * <p>The database user name. This parameter is required when authenticating using temporary credentials. </p>
494
479
  */
495
480
  DbUser?: string;
496
481
  /**
@@ -574,15 +559,15 @@ export interface ExecuteStatementInput {
574
559
  */
575
560
  Sql: string | undefined;
576
561
  /**
577
- * <p>The cluster identifier. This parameter is required when connecting to a cluster and authenticating using either Secrets Manager or temporary credentials. </p>
562
+ * <p>The cluster identifier. This parameter is required when authenticating using either Secrets Manager or temporary credentials. </p>
578
563
  */
579
- ClusterIdentifier?: string;
564
+ ClusterIdentifier: string | undefined;
580
565
  /**
581
566
  * <p>The name or ARN of the secret that enables access to the database. This parameter is required when authenticating using Secrets Manager. </p>
582
567
  */
583
568
  SecretArn?: string;
584
569
  /**
585
- * <p>The database user name. This parameter is required when connecting to a cluster and authenticating using temporary credentials. </p>
570
+ * <p>The database user name. This parameter is required when authenticating using temporary credentials. </p>
586
571
  */
587
572
  DbUser?: string;
588
573
  /**
@@ -618,7 +603,7 @@ export interface ExecuteStatementOutput {
618
603
  */
619
604
  CreatedAt?: Date;
620
605
  /**
621
- * <p>The cluster identifier. This parameter is not returned when connecting to a serverless endpoint. </p>
606
+ * <p>The cluster identifier. </p>
622
607
  */
623
608
  ClusterIdentifier?: string;
624
609
  /**
@@ -787,9 +772,9 @@ export declare namespace GetStatementResultResponse {
787
772
  }
788
773
  export interface ListDatabasesRequest {
789
774
  /**
790
- * <p>The cluster identifier. This parameter is required when connecting to a cluster and authenticating using either Secrets Manager or temporary credentials. </p>
775
+ * <p>The cluster identifier. This parameter is required when authenticating using either Secrets Manager or temporary credentials. </p>
791
776
  */
792
- ClusterIdentifier?: string;
777
+ ClusterIdentifier: string | undefined;
793
778
  /**
794
779
  * <p>The name of the database. This parameter is required when authenticating using either Secrets Manager or temporary credentials. </p>
795
780
  */
@@ -799,7 +784,7 @@ export interface ListDatabasesRequest {
799
784
  */
800
785
  SecretArn?: string;
801
786
  /**
802
- * <p>The database user name. This parameter is required when connecting to a cluster and authenticating using temporary credentials. </p>
787
+ * <p>The database user name. This parameter is required when authenticating using temporary credentials. </p>
803
788
  */
804
789
  DbUser?: string;
805
790
  /**
@@ -836,15 +821,15 @@ export declare namespace ListDatabasesResponse {
836
821
  }
837
822
  export interface ListSchemasRequest {
838
823
  /**
839
- * <p>The cluster identifier. This parameter is required when connecting to a cluster and authenticating using either Secrets Manager or temporary credentials. </p>
824
+ * <p>The cluster identifier. This parameter is required when authenticating using either Secrets Manager or temporary credentials. </p>
840
825
  */
841
- ClusterIdentifier?: string;
826
+ ClusterIdentifier: string | undefined;
842
827
  /**
843
828
  * <p>The name or ARN of the secret that enables access to the database. This parameter is required when authenticating using Secrets Manager. </p>
844
829
  */
845
830
  SecretArn?: string;
846
831
  /**
847
- * <p>The database user name. This parameter is required when connecting to a cluster and authenticating using temporary credentials. </p>
832
+ * <p>The database user name. This parameter is required when authenticating using temporary credentials. </p>
848
833
  */
849
834
  DbUser?: string;
850
835
  /**
@@ -1021,15 +1006,15 @@ export declare namespace ListStatementsResponse {
1021
1006
  }
1022
1007
  export interface ListTablesRequest {
1023
1008
  /**
1024
- * <p>The cluster identifier. This parameter is required when connecting to a cluster and authenticating using either Secrets Manager or temporary credentials. </p>
1009
+ * <p>The cluster identifier. This parameter is required when authenticating using either Secrets Manager or temporary credentials. </p>
1025
1010
  */
1026
- ClusterIdentifier?: string;
1011
+ ClusterIdentifier: string | undefined;
1027
1012
  /**
1028
1013
  * <p>The name or ARN of the secret that enables access to the database. This parameter is required when authenticating using Secrets Manager. </p>
1029
1014
  */
1030
1015
  SecretArn?: string;
1031
1016
  /**
1032
- * <p>The database user name. This parameter is required when connecting to a cluster and authenticating using temporary credentials. </p>
1017
+ * <p>The database user name. This parameter is required when authenticating using temporary credentials. </p>
1033
1018
  */
1034
1019
  DbUser?: string;
1035
1020
  /**
@@ -25,7 +25,7 @@ export interface BatchExecuteStatementInput {
25
25
 
26
26
  Sqls: string[] | undefined;
27
27
 
28
- ClusterIdentifier?: string;
28
+ ClusterIdentifier: string | undefined;
29
29
 
30
30
  SecretArn?: string;
31
31
 
@@ -87,16 +87,6 @@ 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
-
100
90
  export interface InternalServerException extends __SmithyException, $MetadataBearer {
101
91
  name: "InternalServerException";
102
92
  $fault: "server";
@@ -262,7 +252,7 @@ export declare namespace DescribeStatementResponse {
262
252
  }
263
253
  export interface DescribeTableRequest {
264
254
 
265
- ClusterIdentifier?: string;
255
+ ClusterIdentifier: string | undefined;
266
256
 
267
257
  SecretArn?: string;
268
258
 
@@ -313,7 +303,7 @@ export interface ExecuteStatementInput {
313
303
 
314
304
  Sql: string | undefined;
315
305
 
316
- ClusterIdentifier?: string;
306
+ ClusterIdentifier: string | undefined;
317
307
 
318
308
  SecretArn?: string;
319
309
 
@@ -463,7 +453,7 @@ export declare namespace GetStatementResultResponse {
463
453
  }
464
454
  export interface ListDatabasesRequest {
465
455
 
466
- ClusterIdentifier?: string;
456
+ ClusterIdentifier: string | undefined;
467
457
 
468
458
  Database: string | undefined;
469
459
 
@@ -491,7 +481,7 @@ export declare namespace ListDatabasesResponse {
491
481
  }
492
482
  export interface ListSchemasRequest {
493
483
 
494
- ClusterIdentifier?: string;
484
+ ClusterIdentifier: string | undefined;
495
485
 
496
486
  SecretArn?: string;
497
487
 
@@ -576,7 +566,7 @@ export declare namespace ListStatementsResponse {
576
566
  }
577
567
  export interface ListTablesRequest {
578
568
 
579
- ClusterIdentifier?: string;
569
+ ClusterIdentifier: string | undefined;
580
570
 
581
571
  SecretArn?: string;
582
572
 
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.42.0",
4
+ "version": "3.43.0",
5
5
  "scripts": {
6
6
  "build": "yarn build:cjs && yarn build:es && yarn build:types",
7
7
  "build:cjs": "tsc -p tsconfig.json",
@@ -21,7 +21,7 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "2.0.0",
23
23
  "@aws-crypto/sha256-js": "2.0.0",
24
- "@aws-sdk/client-sts": "3.42.0",
24
+ "@aws-sdk/client-sts": "3.43.0",
25
25
  "@aws-sdk/config-resolver": "3.40.0",
26
26
  "@aws-sdk/credential-provider-node": "3.41.0",
27
27
  "@aws-sdk/fetch-http-handler": "3.40.0",