@aws-sdk/client-redshift-data 3.118.1 → 3.128.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.
@@ -132,7 +132,7 @@ export var deserializeAws_json1_1BatchExecuteStatementCommand = function (output
132
132
  });
133
133
  }); };
134
134
  var deserializeAws_json1_1BatchExecuteStatementCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
135
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
135
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
136
136
  var _c;
137
137
  return __generator(this, function (_d) {
138
138
  switch (_d.label) {
@@ -142,7 +142,6 @@ var deserializeAws_json1_1BatchExecuteStatementCommandError = function (output,
142
142
  return [4, parseBody(output.body, context)];
143
143
  case 1:
144
144
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
145
- errorCode = "UnknownError";
146
145
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
147
146
  _b = errorCode;
148
147
  switch (_b) {
@@ -162,10 +161,12 @@ var deserializeAws_json1_1BatchExecuteStatementCommandError = function (output,
162
161
  case 7: throw _d.sent();
163
162
  case 8:
164
163
  parsedBody = parsedOutput.body;
164
+ $metadata = deserializeMetadata(output);
165
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
165
166
  response = new __BaseException({
166
- name: parsedBody.code || parsedBody.Code || errorCode,
167
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
167
168
  $fault: "client",
168
- $metadata: deserializeMetadata(output),
169
+ $metadata: $metadata,
169
170
  });
170
171
  throw __decorateServiceException(response, parsedBody);
171
172
  }
@@ -190,7 +191,7 @@ export var deserializeAws_json1_1CancelStatementCommand = function (output, cont
190
191
  });
191
192
  }); };
192
193
  var deserializeAws_json1_1CancelStatementCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
193
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
194
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
194
195
  var _c;
195
196
  return __generator(this, function (_d) {
196
197
  switch (_d.label) {
@@ -200,7 +201,6 @@ var deserializeAws_json1_1CancelStatementCommandError = function (output, contex
200
201
  return [4, parseBody(output.body, context)];
201
202
  case 1:
202
203
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
203
- errorCode = "UnknownError";
204
204
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
205
205
  _b = errorCode;
206
206
  switch (_b) {
@@ -224,10 +224,12 @@ var deserializeAws_json1_1CancelStatementCommandError = function (output, contex
224
224
  case 9: throw _d.sent();
225
225
  case 10:
226
226
  parsedBody = parsedOutput.body;
227
+ $metadata = deserializeMetadata(output);
228
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
227
229
  response = new __BaseException({
228
- name: parsedBody.code || parsedBody.Code || errorCode,
230
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
229
231
  $fault: "client",
230
- $metadata: deserializeMetadata(output),
232
+ $metadata: $metadata,
231
233
  });
232
234
  throw __decorateServiceException(response, parsedBody);
233
235
  }
@@ -252,7 +254,7 @@ export var deserializeAws_json1_1DescribeStatementCommand = function (output, co
252
254
  });
253
255
  }); };
254
256
  var deserializeAws_json1_1DescribeStatementCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
255
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
257
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
256
258
  var _c;
257
259
  return __generator(this, function (_d) {
258
260
  switch (_d.label) {
@@ -262,7 +264,6 @@ var deserializeAws_json1_1DescribeStatementCommandError = function (output, cont
262
264
  return [4, parseBody(output.body, context)];
263
265
  case 1:
264
266
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
265
- errorCode = "UnknownError";
266
267
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
267
268
  _b = errorCode;
268
269
  switch (_b) {
@@ -282,10 +283,12 @@ var deserializeAws_json1_1DescribeStatementCommandError = function (output, cont
282
283
  case 7: throw _d.sent();
283
284
  case 8:
284
285
  parsedBody = parsedOutput.body;
286
+ $metadata = deserializeMetadata(output);
287
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
285
288
  response = new __BaseException({
286
- name: parsedBody.code || parsedBody.Code || errorCode,
289
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
287
290
  $fault: "client",
288
- $metadata: deserializeMetadata(output),
291
+ $metadata: $metadata,
289
292
  });
290
293
  throw __decorateServiceException(response, parsedBody);
291
294
  }
@@ -310,7 +313,7 @@ export var deserializeAws_json1_1DescribeTableCommand = function (output, contex
310
313
  });
311
314
  }); };
312
315
  var deserializeAws_json1_1DescribeTableCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
313
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
316
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
314
317
  var _c;
315
318
  return __generator(this, function (_d) {
316
319
  switch (_d.label) {
@@ -320,7 +323,6 @@ var deserializeAws_json1_1DescribeTableCommandError = function (output, context)
320
323
  return [4, parseBody(output.body, context)];
321
324
  case 1:
322
325
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
323
- errorCode = "UnknownError";
324
326
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
325
327
  _b = errorCode;
326
328
  switch (_b) {
@@ -340,10 +342,12 @@ var deserializeAws_json1_1DescribeTableCommandError = function (output, context)
340
342
  case 7: throw _d.sent();
341
343
  case 8:
342
344
  parsedBody = parsedOutput.body;
345
+ $metadata = deserializeMetadata(output);
346
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
343
347
  response = new __BaseException({
344
- name: parsedBody.code || parsedBody.Code || errorCode,
348
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
345
349
  $fault: "client",
346
- $metadata: deserializeMetadata(output),
350
+ $metadata: $metadata,
347
351
  });
348
352
  throw __decorateServiceException(response, parsedBody);
349
353
  }
@@ -368,7 +372,7 @@ export var deserializeAws_json1_1ExecuteStatementCommand = function (output, con
368
372
  });
369
373
  }); };
370
374
  var deserializeAws_json1_1ExecuteStatementCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
371
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
375
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
372
376
  var _c;
373
377
  return __generator(this, function (_d) {
374
378
  switch (_d.label) {
@@ -378,7 +382,6 @@ var deserializeAws_json1_1ExecuteStatementCommandError = function (output, conte
378
382
  return [4, parseBody(output.body, context)];
379
383
  case 1:
380
384
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
381
- errorCode = "UnknownError";
382
385
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
383
386
  _b = errorCode;
384
387
  switch (_b) {
@@ -398,10 +401,12 @@ var deserializeAws_json1_1ExecuteStatementCommandError = function (output, conte
398
401
  case 7: throw _d.sent();
399
402
  case 8:
400
403
  parsedBody = parsedOutput.body;
404
+ $metadata = deserializeMetadata(output);
405
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
401
406
  response = new __BaseException({
402
- name: parsedBody.code || parsedBody.Code || errorCode,
407
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
403
408
  $fault: "client",
404
- $metadata: deserializeMetadata(output),
409
+ $metadata: $metadata,
405
410
  });
406
411
  throw __decorateServiceException(response, parsedBody);
407
412
  }
@@ -426,7 +431,7 @@ export var deserializeAws_json1_1GetStatementResultCommand = function (output, c
426
431
  });
427
432
  }); };
428
433
  var deserializeAws_json1_1GetStatementResultCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
429
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
434
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
430
435
  var _c;
431
436
  return __generator(this, function (_d) {
432
437
  switch (_d.label) {
@@ -436,7 +441,6 @@ var deserializeAws_json1_1GetStatementResultCommandError = function (output, con
436
441
  return [4, parseBody(output.body, context)];
437
442
  case 1:
438
443
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
439
- errorCode = "UnknownError";
440
444
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
441
445
  _b = errorCode;
442
446
  switch (_b) {
@@ -456,10 +460,12 @@ var deserializeAws_json1_1GetStatementResultCommandError = function (output, con
456
460
  case 7: throw _d.sent();
457
461
  case 8:
458
462
  parsedBody = parsedOutput.body;
463
+ $metadata = deserializeMetadata(output);
464
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
459
465
  response = new __BaseException({
460
- name: parsedBody.code || parsedBody.Code || errorCode,
466
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
461
467
  $fault: "client",
462
- $metadata: deserializeMetadata(output),
468
+ $metadata: $metadata,
463
469
  });
464
470
  throw __decorateServiceException(response, parsedBody);
465
471
  }
@@ -484,7 +490,7 @@ export var deserializeAws_json1_1ListDatabasesCommand = function (output, contex
484
490
  });
485
491
  }); };
486
492
  var deserializeAws_json1_1ListDatabasesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
487
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
493
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
488
494
  var _c;
489
495
  return __generator(this, function (_d) {
490
496
  switch (_d.label) {
@@ -494,7 +500,6 @@ var deserializeAws_json1_1ListDatabasesCommandError = function (output, context)
494
500
  return [4, parseBody(output.body, context)];
495
501
  case 1:
496
502
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
497
- errorCode = "UnknownError";
498
503
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
499
504
  _b = errorCode;
500
505
  switch (_b) {
@@ -514,10 +519,12 @@ var deserializeAws_json1_1ListDatabasesCommandError = function (output, context)
514
519
  case 7: throw _d.sent();
515
520
  case 8:
516
521
  parsedBody = parsedOutput.body;
522
+ $metadata = deserializeMetadata(output);
523
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
517
524
  response = new __BaseException({
518
- name: parsedBody.code || parsedBody.Code || errorCode,
525
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
519
526
  $fault: "client",
520
- $metadata: deserializeMetadata(output),
527
+ $metadata: $metadata,
521
528
  });
522
529
  throw __decorateServiceException(response, parsedBody);
523
530
  }
@@ -542,7 +549,7 @@ export var deserializeAws_json1_1ListSchemasCommand = function (output, context)
542
549
  });
543
550
  }); };
544
551
  var deserializeAws_json1_1ListSchemasCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
545
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
552
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
546
553
  var _c;
547
554
  return __generator(this, function (_d) {
548
555
  switch (_d.label) {
@@ -552,7 +559,6 @@ var deserializeAws_json1_1ListSchemasCommandError = function (output, context) {
552
559
  return [4, parseBody(output.body, context)];
553
560
  case 1:
554
561
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
555
- errorCode = "UnknownError";
556
562
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
557
563
  _b = errorCode;
558
564
  switch (_b) {
@@ -572,10 +578,12 @@ var deserializeAws_json1_1ListSchemasCommandError = function (output, context) {
572
578
  case 7: throw _d.sent();
573
579
  case 8:
574
580
  parsedBody = parsedOutput.body;
581
+ $metadata = deserializeMetadata(output);
582
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
575
583
  response = new __BaseException({
576
- name: parsedBody.code || parsedBody.Code || errorCode,
584
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
577
585
  $fault: "client",
578
- $metadata: deserializeMetadata(output),
586
+ $metadata: $metadata,
579
587
  });
580
588
  throw __decorateServiceException(response, parsedBody);
581
589
  }
@@ -600,7 +608,7 @@ export var deserializeAws_json1_1ListStatementsCommand = function (output, conte
600
608
  });
601
609
  }); };
602
610
  var deserializeAws_json1_1ListStatementsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
603
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
611
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
604
612
  var _c;
605
613
  return __generator(this, function (_d) {
606
614
  switch (_d.label) {
@@ -610,7 +618,6 @@ var deserializeAws_json1_1ListStatementsCommandError = function (output, context
610
618
  return [4, parseBody(output.body, context)];
611
619
  case 1:
612
620
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
613
- errorCode = "UnknownError";
614
621
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
615
622
  _b = errorCode;
616
623
  switch (_b) {
@@ -626,10 +633,12 @@ var deserializeAws_json1_1ListStatementsCommandError = function (output, context
626
633
  case 5: throw _d.sent();
627
634
  case 6:
628
635
  parsedBody = parsedOutput.body;
636
+ $metadata = deserializeMetadata(output);
637
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
629
638
  response = new __BaseException({
630
- name: parsedBody.code || parsedBody.Code || errorCode,
639
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
631
640
  $fault: "client",
632
- $metadata: deserializeMetadata(output),
641
+ $metadata: $metadata,
633
642
  });
634
643
  throw __decorateServiceException(response, parsedBody);
635
644
  }
@@ -654,7 +663,7 @@ export var deserializeAws_json1_1ListTablesCommand = function (output, context)
654
663
  });
655
664
  }); };
656
665
  var deserializeAws_json1_1ListTablesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
657
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
666
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
658
667
  var _c;
659
668
  return __generator(this, function (_d) {
660
669
  switch (_d.label) {
@@ -664,7 +673,6 @@ var deserializeAws_json1_1ListTablesCommandError = function (output, context) {
664
673
  return [4, parseBody(output.body, context)];
665
674
  case 1:
666
675
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
667
- errorCode = "UnknownError";
668
676
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
669
677
  _b = errorCode;
670
678
  switch (_b) {
@@ -684,10 +692,12 @@ var deserializeAws_json1_1ListTablesCommandError = function (output, context) {
684
692
  case 7: throw _d.sent();
685
693
  case 8:
686
694
  parsedBody = parsedOutput.body;
695
+ $metadata = deserializeMetadata(output);
696
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
687
697
  response = new __BaseException({
688
- name: parsedBody.code || parsedBody.Code || errorCode,
698
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
689
699
  $fault: "client",
690
- $metadata: deserializeMetadata(output),
700
+ $metadata: $metadata,
691
701
  });
692
702
  throw __decorateServiceException(response, parsedBody);
693
703
  }
@@ -757,44 +767,34 @@ var deserializeAws_json1_1ValidationExceptionResponse = function (parsedOutput,
757
767
  });
758
768
  }); };
759
769
  var serializeAws_json1_1BatchExecuteStatementInput = function (input, context) {
760
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ClusterIdentifier !== undefined &&
761
- input.ClusterIdentifier !== null && { ClusterIdentifier: input.ClusterIdentifier })), (input.Database !== undefined && input.Database !== null && { Database: input.Database })), (input.DbUser !== undefined && input.DbUser !== null && { DbUser: input.DbUser })), (input.SecretArn !== undefined && input.SecretArn !== null && { SecretArn: input.SecretArn })), (input.Sqls !== undefined && input.Sqls !== null && { Sqls: serializeAws_json1_1SqlList(input.Sqls, context) })), (input.StatementName !== undefined && input.StatementName !== null && { StatementName: input.StatementName })), (input.WithEvent !== undefined && input.WithEvent !== null && { WithEvent: input.WithEvent })), (input.WorkgroupName !== undefined && input.WorkgroupName !== null && { WorkgroupName: input.WorkgroupName }));
770
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ClusterIdentifier != null && { ClusterIdentifier: input.ClusterIdentifier })), (input.Database != null && { Database: input.Database })), (input.DbUser != null && { DbUser: input.DbUser })), (input.SecretArn != null && { SecretArn: input.SecretArn })), (input.Sqls != null && { Sqls: serializeAws_json1_1SqlList(input.Sqls, context) })), (input.StatementName != null && { StatementName: input.StatementName })), (input.WithEvent != null && { WithEvent: input.WithEvent })), (input.WorkgroupName != null && { WorkgroupName: input.WorkgroupName }));
762
771
  };
763
772
  var serializeAws_json1_1CancelStatementRequest = function (input, context) {
764
- return __assign({}, (input.Id !== undefined && input.Id !== null && { Id: input.Id }));
773
+ return __assign({}, (input.Id != null && { Id: input.Id }));
765
774
  };
766
775
  var serializeAws_json1_1DescribeStatementRequest = function (input, context) {
767
- return __assign({}, (input.Id !== undefined && input.Id !== null && { Id: input.Id }));
776
+ return __assign({}, (input.Id != null && { Id: input.Id }));
768
777
  };
769
778
  var serializeAws_json1_1DescribeTableRequest = function (input, context) {
770
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ClusterIdentifier !== undefined &&
771
- input.ClusterIdentifier !== null && { ClusterIdentifier: input.ClusterIdentifier })), (input.ConnectedDatabase !== undefined &&
772
- input.ConnectedDatabase !== null && { ConnectedDatabase: input.ConnectedDatabase })), (input.Database !== undefined && input.Database !== null && { Database: input.Database })), (input.DbUser !== undefined && input.DbUser !== null && { DbUser: input.DbUser })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.Schema !== undefined && input.Schema !== null && { Schema: input.Schema })), (input.SecretArn !== undefined && input.SecretArn !== null && { SecretArn: input.SecretArn })), (input.Table !== undefined && input.Table !== null && { Table: input.Table })), (input.WorkgroupName !== undefined && input.WorkgroupName !== null && { WorkgroupName: input.WorkgroupName }));
779
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ClusterIdentifier != null && { ClusterIdentifier: input.ClusterIdentifier })), (input.ConnectedDatabase != null && { ConnectedDatabase: input.ConnectedDatabase })), (input.Database != null && { Database: input.Database })), (input.DbUser != null && { DbUser: input.DbUser })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.Schema != null && { Schema: input.Schema })), (input.SecretArn != null && { SecretArn: input.SecretArn })), (input.Table != null && { Table: input.Table })), (input.WorkgroupName != null && { WorkgroupName: input.WorkgroupName }));
773
780
  };
774
781
  var serializeAws_json1_1ExecuteStatementInput = function (input, context) {
775
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ClusterIdentifier !== undefined &&
776
- input.ClusterIdentifier !== null && { ClusterIdentifier: input.ClusterIdentifier })), (input.Database !== undefined && input.Database !== null && { Database: input.Database })), (input.DbUser !== undefined && input.DbUser !== null && { DbUser: input.DbUser })), (input.Parameters !== undefined &&
777
- input.Parameters !== null && { Parameters: serializeAws_json1_1SqlParametersList(input.Parameters, context) })), (input.SecretArn !== undefined && input.SecretArn !== null && { SecretArn: input.SecretArn })), (input.Sql !== undefined && input.Sql !== null && { Sql: input.Sql })), (input.StatementName !== undefined && input.StatementName !== null && { StatementName: input.StatementName })), (input.WithEvent !== undefined && input.WithEvent !== null && { WithEvent: input.WithEvent })), (input.WorkgroupName !== undefined && input.WorkgroupName !== null && { WorkgroupName: input.WorkgroupName }));
782
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ClusterIdentifier != null && { ClusterIdentifier: input.ClusterIdentifier })), (input.Database != null && { Database: input.Database })), (input.DbUser != null && { DbUser: input.DbUser })), (input.Parameters != null && { Parameters: serializeAws_json1_1SqlParametersList(input.Parameters, context) })), (input.SecretArn != null && { SecretArn: input.SecretArn })), (input.Sql != null && { Sql: input.Sql })), (input.StatementName != null && { StatementName: input.StatementName })), (input.WithEvent != null && { WithEvent: input.WithEvent })), (input.WorkgroupName != null && { WorkgroupName: input.WorkgroupName }));
778
783
  };
779
784
  var serializeAws_json1_1GetStatementResultRequest = function (input, context) {
780
- return __assign(__assign({}, (input.Id !== undefined && input.Id !== null && { Id: input.Id })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
785
+ return __assign(__assign({}, (input.Id != null && { Id: input.Id })), (input.NextToken != null && { NextToken: input.NextToken }));
781
786
  };
782
787
  var serializeAws_json1_1ListDatabasesRequest = function (input, context) {
783
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ClusterIdentifier !== undefined &&
784
- input.ClusterIdentifier !== null && { ClusterIdentifier: input.ClusterIdentifier })), (input.Database !== undefined && input.Database !== null && { Database: input.Database })), (input.DbUser !== undefined && input.DbUser !== null && { DbUser: input.DbUser })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.SecretArn !== undefined && input.SecretArn !== null && { SecretArn: input.SecretArn })), (input.WorkgroupName !== undefined && input.WorkgroupName !== null && { WorkgroupName: input.WorkgroupName }));
788
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ClusterIdentifier != null && { ClusterIdentifier: input.ClusterIdentifier })), (input.Database != null && { Database: input.Database })), (input.DbUser != null && { DbUser: input.DbUser })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.SecretArn != null && { SecretArn: input.SecretArn })), (input.WorkgroupName != null && { WorkgroupName: input.WorkgroupName }));
785
789
  };
786
790
  var serializeAws_json1_1ListSchemasRequest = function (input, context) {
787
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ClusterIdentifier !== undefined &&
788
- input.ClusterIdentifier !== null && { ClusterIdentifier: input.ClusterIdentifier })), (input.ConnectedDatabase !== undefined &&
789
- input.ConnectedDatabase !== null && { ConnectedDatabase: input.ConnectedDatabase })), (input.Database !== undefined && input.Database !== null && { Database: input.Database })), (input.DbUser !== undefined && input.DbUser !== null && { DbUser: input.DbUser })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.SchemaPattern !== undefined && input.SchemaPattern !== null && { SchemaPattern: input.SchemaPattern })), (input.SecretArn !== undefined && input.SecretArn !== null && { SecretArn: input.SecretArn })), (input.WorkgroupName !== undefined && input.WorkgroupName !== null && { WorkgroupName: input.WorkgroupName }));
791
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ClusterIdentifier != null && { ClusterIdentifier: input.ClusterIdentifier })), (input.ConnectedDatabase != null && { ConnectedDatabase: input.ConnectedDatabase })), (input.Database != null && { Database: input.Database })), (input.DbUser != null && { DbUser: input.DbUser })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.SchemaPattern != null && { SchemaPattern: input.SchemaPattern })), (input.SecretArn != null && { SecretArn: input.SecretArn })), (input.WorkgroupName != null && { WorkgroupName: input.WorkgroupName }));
790
792
  };
791
793
  var serializeAws_json1_1ListStatementsRequest = function (input, context) {
792
- return __assign(__assign(__assign(__assign(__assign({}, (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.RoleLevel !== undefined && input.RoleLevel !== null && { RoleLevel: input.RoleLevel })), (input.StatementName !== undefined && input.StatementName !== null && { StatementName: input.StatementName })), (input.Status !== undefined && input.Status !== null && { Status: input.Status }));
794
+ return __assign(__assign(__assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.RoleLevel != null && { RoleLevel: input.RoleLevel })), (input.StatementName != null && { StatementName: input.StatementName })), (input.Status != null && { Status: input.Status }));
793
795
  };
794
796
  var serializeAws_json1_1ListTablesRequest = function (input, context) {
795
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ClusterIdentifier !== undefined &&
796
- input.ClusterIdentifier !== null && { ClusterIdentifier: input.ClusterIdentifier })), (input.ConnectedDatabase !== undefined &&
797
- input.ConnectedDatabase !== null && { ConnectedDatabase: input.ConnectedDatabase })), (input.Database !== undefined && input.Database !== null && { Database: input.Database })), (input.DbUser !== undefined && input.DbUser !== null && { DbUser: input.DbUser })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.SchemaPattern !== undefined && input.SchemaPattern !== null && { SchemaPattern: input.SchemaPattern })), (input.SecretArn !== undefined && input.SecretArn !== null && { SecretArn: input.SecretArn })), (input.TablePattern !== undefined && input.TablePattern !== null && { TablePattern: input.TablePattern })), (input.WorkgroupName !== undefined && input.WorkgroupName !== null && { WorkgroupName: input.WorkgroupName }));
797
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ClusterIdentifier != null && { ClusterIdentifier: input.ClusterIdentifier })), (input.ConnectedDatabase != null && { ConnectedDatabase: input.ConnectedDatabase })), (input.Database != null && { Database: input.Database })), (input.DbUser != null && { DbUser: input.DbUser })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.SchemaPattern != null && { SchemaPattern: input.SchemaPattern })), (input.SecretArn != null && { SecretArn: input.SecretArn })), (input.TablePattern != null && { TablePattern: input.TablePattern })), (input.WorkgroupName != null && { WorkgroupName: input.WorkgroupName }));
798
798
  };
799
799
  var serializeAws_json1_1SqlList = function (input, context) {
800
800
  return input
@@ -807,7 +807,7 @@ var serializeAws_json1_1SqlList = function (input, context) {
807
807
  });
808
808
  };
809
809
  var serializeAws_json1_1SqlParameter = function (input, context) {
810
- return __assign(__assign({}, (input.name !== undefined && input.name !== null && { name: input.name })), (input.value !== undefined && input.value !== null && { value: input.value }));
810
+ return __assign(__assign({}, (input.name != null && { name: input.name })), (input.value != null && { value: input.value }));
811
811
  };
812
812
  var serializeAws_json1_1SqlParametersList = function (input, context) {
813
813
  return input
@@ -833,9 +833,7 @@ var deserializeAws_json1_1BatchExecuteStatementException = function (output, con
833
833
  var deserializeAws_json1_1BatchExecuteStatementOutput = function (output, context) {
834
834
  return {
835
835
  ClusterIdentifier: __expectString(output.ClusterIdentifier),
836
- CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
837
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
838
- : undefined,
836
+ CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
839
837
  Database: __expectString(output.Database),
840
838
  DbUser: __expectString(output.DbUser),
841
839
  Id: __expectString(output.Id),
@@ -906,16 +904,14 @@ var deserializeAws_json1_1DatabaseList = function (output, context) {
906
904
  var deserializeAws_json1_1DescribeStatementResponse = function (output, context) {
907
905
  return {
908
906
  ClusterIdentifier: __expectString(output.ClusterIdentifier),
909
- CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
910
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
911
- : undefined,
907
+ CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
912
908
  Database: __expectString(output.Database),
913
909
  DbUser: __expectString(output.DbUser),
914
910
  Duration: __expectLong(output.Duration),
915
911
  Error: __expectString(output.Error),
916
912
  HasResultSet: __expectBoolean(output.HasResultSet),
917
913
  Id: __expectString(output.Id),
918
- QueryParameters: output.QueryParameters !== undefined && output.QueryParameters !== null
914
+ QueryParameters: output.QueryParameters != null
919
915
  ? deserializeAws_json1_1SqlParametersList(output.QueryParameters, context)
920
916
  : undefined,
921
917
  QueryString: __expectString(output.QueryString),
@@ -925,20 +921,14 @@ var deserializeAws_json1_1DescribeStatementResponse = function (output, context)
925
921
  ResultSize: __expectLong(output.ResultSize),
926
922
  SecretArn: __expectString(output.SecretArn),
927
923
  Status: __expectString(output.Status),
928
- SubStatements: output.SubStatements !== undefined && output.SubStatements !== null
929
- ? deserializeAws_json1_1SubStatementList(output.SubStatements, context)
930
- : undefined,
931
- UpdatedAt: output.UpdatedAt !== undefined && output.UpdatedAt !== null
932
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt)))
933
- : undefined,
924
+ SubStatements: output.SubStatements != null ? deserializeAws_json1_1SubStatementList(output.SubStatements, context) : undefined,
925
+ UpdatedAt: output.UpdatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt))) : undefined,
934
926
  WorkgroupName: __expectString(output.WorkgroupName),
935
927
  };
936
928
  };
937
929
  var deserializeAws_json1_1DescribeTableResponse = function (output, context) {
938
930
  return {
939
- ColumnList: output.ColumnList !== undefined && output.ColumnList !== null
940
- ? deserializeAws_json1_1ColumnList(output.ColumnList, context)
941
- : undefined,
931
+ ColumnList: output.ColumnList != null ? deserializeAws_json1_1ColumnList(output.ColumnList, context) : undefined,
942
932
  NextToken: __expectString(output.NextToken),
943
933
  TableName: __expectString(output.TableName),
944
934
  };
@@ -952,9 +942,7 @@ var deserializeAws_json1_1ExecuteStatementException = function (output, context)
952
942
  var deserializeAws_json1_1ExecuteStatementOutput = function (output, context) {
953
943
  return {
954
944
  ClusterIdentifier: __expectString(output.ClusterIdentifier),
955
- CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
956
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
957
- : undefined,
945
+ CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
958
946
  Database: __expectString(output.Database),
959
947
  DbUser: __expectString(output.DbUser),
960
948
  Id: __expectString(output.Id),
@@ -998,13 +986,11 @@ var deserializeAws_json1_1FieldList = function (output, context) {
998
986
  };
999
987
  var deserializeAws_json1_1GetStatementResultResponse = function (output, context) {
1000
988
  return {
1001
- ColumnMetadata: output.ColumnMetadata !== undefined && output.ColumnMetadata !== null
989
+ ColumnMetadata: output.ColumnMetadata != null
1002
990
  ? deserializeAws_json1_1ColumnMetadataList(output.ColumnMetadata, context)
1003
991
  : undefined,
1004
992
  NextToken: __expectString(output.NextToken),
1005
- Records: output.Records !== undefined && output.Records !== null
1006
- ? deserializeAws_json1_1SqlRecords(output.Records, context)
1007
- : undefined,
993
+ Records: output.Records != null ? deserializeAws_json1_1SqlRecords(output.Records, context) : undefined,
1008
994
  TotalNumRows: __expectLong(output.TotalNumRows),
1009
995
  };
1010
996
  };
@@ -1015,34 +1001,26 @@ var deserializeAws_json1_1InternalServerException = function (output, context) {
1015
1001
  };
1016
1002
  var deserializeAws_json1_1ListDatabasesResponse = function (output, context) {
1017
1003
  return {
1018
- Databases: output.Databases !== undefined && output.Databases !== null
1019
- ? deserializeAws_json1_1DatabaseList(output.Databases, context)
1020
- : undefined,
1004
+ Databases: output.Databases != null ? deserializeAws_json1_1DatabaseList(output.Databases, context) : undefined,
1021
1005
  NextToken: __expectString(output.NextToken),
1022
1006
  };
1023
1007
  };
1024
1008
  var deserializeAws_json1_1ListSchemasResponse = function (output, context) {
1025
1009
  return {
1026
1010
  NextToken: __expectString(output.NextToken),
1027
- Schemas: output.Schemas !== undefined && output.Schemas !== null
1028
- ? deserializeAws_json1_1SchemaList(output.Schemas, context)
1029
- : undefined,
1011
+ Schemas: output.Schemas != null ? deserializeAws_json1_1SchemaList(output.Schemas, context) : undefined,
1030
1012
  };
1031
1013
  };
1032
1014
  var deserializeAws_json1_1ListStatementsResponse = function (output, context) {
1033
1015
  return {
1034
1016
  NextToken: __expectString(output.NextToken),
1035
- Statements: output.Statements !== undefined && output.Statements !== null
1036
- ? deserializeAws_json1_1StatementList(output.Statements, context)
1037
- : undefined,
1017
+ Statements: output.Statements != null ? deserializeAws_json1_1StatementList(output.Statements, context) : undefined,
1038
1018
  };
1039
1019
  };
1040
1020
  var deserializeAws_json1_1ListTablesResponse = function (output, context) {
1041
1021
  return {
1042
1022
  NextToken: __expectString(output.NextToken),
1043
- Tables: output.Tables !== undefined && output.Tables !== null
1044
- ? deserializeAws_json1_1TableList(output.Tables, context)
1045
- : undefined,
1023
+ Tables: output.Tables != null ? deserializeAws_json1_1TableList(output.Tables, context) : undefined,
1046
1024
  };
1047
1025
  };
1048
1026
  var deserializeAws_json1_1ResourceNotFoundException = function (output, context) {
@@ -1092,24 +1070,18 @@ var deserializeAws_json1_1SqlRecords = function (output, context) {
1092
1070
  };
1093
1071
  var deserializeAws_json1_1StatementData = function (output, context) {
1094
1072
  return {
1095
- CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
1096
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
1097
- : undefined,
1073
+ CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
1098
1074
  Id: __expectString(output.Id),
1099
1075
  IsBatchStatement: __expectBoolean(output.IsBatchStatement),
1100
- QueryParameters: output.QueryParameters !== undefined && output.QueryParameters !== null
1076
+ QueryParameters: output.QueryParameters != null
1101
1077
  ? deserializeAws_json1_1SqlParametersList(output.QueryParameters, context)
1102
1078
  : undefined,
1103
1079
  QueryString: __expectString(output.QueryString),
1104
- QueryStrings: output.QueryStrings !== undefined && output.QueryStrings !== null
1105
- ? deserializeAws_json1_1StatementStringList(output.QueryStrings, context)
1106
- : undefined,
1080
+ QueryStrings: output.QueryStrings != null ? deserializeAws_json1_1StatementStringList(output.QueryStrings, context) : undefined,
1107
1081
  SecretArn: __expectString(output.SecretArn),
1108
1082
  StatementName: __expectString(output.StatementName),
1109
1083
  Status: __expectString(output.Status),
1110
- UpdatedAt: output.UpdatedAt !== undefined && output.UpdatedAt !== null
1111
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt)))
1112
- : undefined,
1084
+ UpdatedAt: output.UpdatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt))) : undefined,
1113
1085
  };
1114
1086
  };
1115
1087
  var deserializeAws_json1_1StatementList = function (output, context) {
@@ -1136,9 +1108,7 @@ var deserializeAws_json1_1StatementStringList = function (output, context) {
1136
1108
  };
1137
1109
  var deserializeAws_json1_1SubStatementData = function (output, context) {
1138
1110
  return {
1139
- CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
1140
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
1141
- : undefined,
1111
+ CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
1142
1112
  Duration: __expectLong(output.Duration),
1143
1113
  Error: __expectString(output.Error),
1144
1114
  HasResultSet: __expectBoolean(output.HasResultSet),
@@ -1148,9 +1118,7 @@ var deserializeAws_json1_1SubStatementData = function (output, context) {
1148
1118
  ResultRows: __expectLong(output.ResultRows),
1149
1119
  ResultSize: __expectLong(output.ResultSize),
1150
1120
  Status: __expectString(output.Status),
1151
- UpdatedAt: output.UpdatedAt !== undefined && output.UpdatedAt !== null
1152
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt)))
1153
- : undefined,
1121
+ UpdatedAt: output.UpdatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt))) : undefined,
1154
1122
  };
1155
1123
  };
1156
1124
  var deserializeAws_json1_1SubStatementList = function (output, context) {
@@ -1261,5 +1229,4 @@ var loadRestJsonErrorCode = function (output, data) {
1261
1229
  if (data["__type"] !== undefined) {
1262
1230
  return sanitizeErrorCode(data["__type"]);
1263
1231
  }
1264
- return "";
1265
1232
  };
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.118.1",
4
+ "version": "3.128.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -18,35 +18,35 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.118.1",
22
- "@aws-sdk/config-resolver": "3.110.0",
23
- "@aws-sdk/credential-provider-node": "3.118.1",
24
- "@aws-sdk/fetch-http-handler": "3.110.0",
25
- "@aws-sdk/hash-node": "3.110.0",
26
- "@aws-sdk/invalid-dependency": "3.110.0",
27
- "@aws-sdk/middleware-content-length": "3.110.0",
28
- "@aws-sdk/middleware-host-header": "3.110.0",
29
- "@aws-sdk/middleware-logger": "3.110.0",
30
- "@aws-sdk/middleware-recursion-detection": "3.110.0",
31
- "@aws-sdk/middleware-retry": "3.118.1",
32
- "@aws-sdk/middleware-serde": "3.110.0",
33
- "@aws-sdk/middleware-signing": "3.110.0",
34
- "@aws-sdk/middleware-stack": "3.110.0",
35
- "@aws-sdk/middleware-user-agent": "3.110.0",
36
- "@aws-sdk/node-config-provider": "3.110.0",
37
- "@aws-sdk/node-http-handler": "3.118.1",
38
- "@aws-sdk/protocol-http": "3.110.0",
39
- "@aws-sdk/smithy-client": "3.110.0",
40
- "@aws-sdk/types": "3.110.0",
41
- "@aws-sdk/url-parser": "3.110.0",
21
+ "@aws-sdk/client-sts": "3.128.0",
22
+ "@aws-sdk/config-resolver": "3.128.0",
23
+ "@aws-sdk/credential-provider-node": "3.128.0",
24
+ "@aws-sdk/fetch-http-handler": "3.127.0",
25
+ "@aws-sdk/hash-node": "3.127.0",
26
+ "@aws-sdk/invalid-dependency": "3.127.0",
27
+ "@aws-sdk/middleware-content-length": "3.127.0",
28
+ "@aws-sdk/middleware-host-header": "3.127.0",
29
+ "@aws-sdk/middleware-logger": "3.127.0",
30
+ "@aws-sdk/middleware-recursion-detection": "3.127.0",
31
+ "@aws-sdk/middleware-retry": "3.127.0",
32
+ "@aws-sdk/middleware-serde": "3.127.0",
33
+ "@aws-sdk/middleware-signing": "3.128.0",
34
+ "@aws-sdk/middleware-stack": "3.127.0",
35
+ "@aws-sdk/middleware-user-agent": "3.127.0",
36
+ "@aws-sdk/node-config-provider": "3.127.0",
37
+ "@aws-sdk/node-http-handler": "3.127.0",
38
+ "@aws-sdk/protocol-http": "3.127.0",
39
+ "@aws-sdk/smithy-client": "3.127.0",
40
+ "@aws-sdk/types": "3.127.0",
41
+ "@aws-sdk/url-parser": "3.127.0",
42
42
  "@aws-sdk/util-base64-browser": "3.109.0",
43
43
  "@aws-sdk/util-base64-node": "3.55.0",
44
44
  "@aws-sdk/util-body-length-browser": "3.55.0",
45
45
  "@aws-sdk/util-body-length-node": "3.55.0",
46
- "@aws-sdk/util-defaults-mode-browser": "3.110.0",
47
- "@aws-sdk/util-defaults-mode-node": "3.110.0",
48
- "@aws-sdk/util-user-agent-browser": "3.110.0",
49
- "@aws-sdk/util-user-agent-node": "3.118.0",
46
+ "@aws-sdk/util-defaults-mode-browser": "3.127.0",
47
+ "@aws-sdk/util-defaults-mode-node": "3.128.0",
48
+ "@aws-sdk/util-user-agent-browser": "3.127.0",
49
+ "@aws-sdk/util-user-agent-node": "3.127.0",
50
50
  "@aws-sdk/util-utf8-browser": "3.109.0",
51
51
  "@aws-sdk/util-utf8-node": "3.109.0",
52
52
  "tslib": "^2.3.1"