@aws-sdk/client-redshift-data 3.637.0 → 3.645.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/dist-cjs/index.js CHANGED
@@ -21,6 +21,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
21
21
  // src/index.ts
22
22
  var src_exports = {};
23
23
  __export(src_exports, {
24
+ ActiveSessionsExceededException: () => ActiveSessionsExceededException,
24
25
  ActiveStatementsExceededException: () => ActiveStatementsExceededException,
25
26
  BatchExecuteStatementCommand: () => BatchExecuteStatementCommand,
26
27
  BatchExecuteStatementException: () => BatchExecuteStatementException,
@@ -37,6 +38,7 @@ __export(src_exports, {
37
38
  ListSchemasCommand: () => ListSchemasCommand,
38
39
  ListStatementsCommand: () => ListStatementsCommand,
39
40
  ListTablesCommand: () => ListTablesCommand,
41
+ QueryTimeoutException: () => QueryTimeoutException,
40
42
  RedshiftData: () => RedshiftData,
41
43
  RedshiftDataClient: () => RedshiftDataClient,
42
44
  RedshiftDataServiceException: () => RedshiftDataServiceException,
@@ -220,6 +222,24 @@ __name(_RedshiftDataServiceException, "RedshiftDataServiceException");
220
222
  var RedshiftDataServiceException = _RedshiftDataServiceException;
221
223
 
222
224
  // src/models/models_0.ts
225
+ var _ActiveSessionsExceededException = class _ActiveSessionsExceededException extends RedshiftDataServiceException {
226
+ /**
227
+ * @internal
228
+ */
229
+ constructor(opts) {
230
+ super({
231
+ name: "ActiveSessionsExceededException",
232
+ $fault: "client",
233
+ ...opts
234
+ });
235
+ this.name = "ActiveSessionsExceededException";
236
+ this.$fault = "client";
237
+ Object.setPrototypeOf(this, _ActiveSessionsExceededException.prototype);
238
+ this.Message = opts.Message;
239
+ }
240
+ };
241
+ __name(_ActiveSessionsExceededException, "ActiveSessionsExceededException");
242
+ var ActiveSessionsExceededException = _ActiveSessionsExceededException;
223
243
  var _ActiveStatementsExceededException = class _ActiveStatementsExceededException extends RedshiftDataServiceException {
224
244
  /**
225
245
  * @internal
@@ -257,6 +277,24 @@ var _BatchExecuteStatementException = class _BatchExecuteStatementException exte
257
277
  };
258
278
  __name(_BatchExecuteStatementException, "BatchExecuteStatementException");
259
279
  var BatchExecuteStatementException = _BatchExecuteStatementException;
280
+ var _InternalServerException = class _InternalServerException extends RedshiftDataServiceException {
281
+ /**
282
+ * @internal
283
+ */
284
+ constructor(opts) {
285
+ super({
286
+ name: "InternalServerException",
287
+ $fault: "server",
288
+ ...opts
289
+ });
290
+ this.name = "InternalServerException";
291
+ this.$fault = "server";
292
+ Object.setPrototypeOf(this, _InternalServerException.prototype);
293
+ this.Message = opts.Message;
294
+ }
295
+ };
296
+ __name(_InternalServerException, "InternalServerException");
297
+ var InternalServerException = _InternalServerException;
260
298
  var _ValidationException = class _ValidationException extends RedshiftDataServiceException {
261
299
  /**
262
300
  * @internal
@@ -293,24 +331,6 @@ var _DatabaseConnectionException = class _DatabaseConnectionException extends Re
293
331
  };
294
332
  __name(_DatabaseConnectionException, "DatabaseConnectionException");
295
333
  var DatabaseConnectionException = _DatabaseConnectionException;
296
- var _InternalServerException = class _InternalServerException extends RedshiftDataServiceException {
297
- /**
298
- * @internal
299
- */
300
- constructor(opts) {
301
- super({
302
- name: "InternalServerException",
303
- $fault: "server",
304
- ...opts
305
- });
306
- this.name = "InternalServerException";
307
- this.$fault = "server";
308
- Object.setPrototypeOf(this, _InternalServerException.prototype);
309
- this.Message = opts.Message;
310
- }
311
- };
312
- __name(_InternalServerException, "InternalServerException");
313
- var InternalServerException = _InternalServerException;
314
334
  var _ResourceNotFoundException = class _ResourceNotFoundException extends RedshiftDataServiceException {
315
335
  /**
316
336
  * @internal
@@ -347,6 +367,24 @@ var StatementStatusString = {
347
367
  STARTED: "STARTED",
348
368
  SUBMITTED: "SUBMITTED"
349
369
  };
370
+ var _QueryTimeoutException = class _QueryTimeoutException extends RedshiftDataServiceException {
371
+ /**
372
+ * @internal
373
+ */
374
+ constructor(opts) {
375
+ super({
376
+ name: "QueryTimeoutException",
377
+ $fault: "client",
378
+ ...opts
379
+ });
380
+ this.name = "QueryTimeoutException";
381
+ this.$fault = "client";
382
+ Object.setPrototypeOf(this, _QueryTimeoutException.prototype);
383
+ this.Message = opts.Message;
384
+ }
385
+ };
386
+ __name(_QueryTimeoutException, "QueryTimeoutException");
387
+ var QueryTimeoutException = _QueryTimeoutException;
350
388
  var _ExecuteStatementException = class _ExecuteStatementException extends RedshiftDataServiceException {
351
389
  /**
352
390
  * @internal
@@ -583,24 +621,30 @@ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
583
621
  };
584
622
  const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
585
623
  switch (errorCode) {
624
+ case "ActiveSessionsExceededException":
625
+ case "com.amazonaws.redshiftdata#ActiveSessionsExceededException":
626
+ throw await de_ActiveSessionsExceededExceptionRes(parsedOutput, context);
586
627
  case "ActiveStatementsExceededException":
587
628
  case "com.amazonaws.redshiftdata#ActiveStatementsExceededException":
588
629
  throw await de_ActiveStatementsExceededExceptionRes(parsedOutput, context);
589
630
  case "BatchExecuteStatementException":
590
631
  case "com.amazonaws.redshiftdata#BatchExecuteStatementException":
591
632
  throw await de_BatchExecuteStatementExceptionRes(parsedOutput, context);
633
+ case "InternalServerException":
634
+ case "com.amazonaws.redshiftdata#InternalServerException":
635
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
592
636
  case "ValidationException":
593
637
  case "com.amazonaws.redshiftdata#ValidationException":
594
638
  throw await de_ValidationExceptionRes(parsedOutput, context);
595
639
  case "DatabaseConnectionException":
596
640
  case "com.amazonaws.redshiftdata#DatabaseConnectionException":
597
641
  throw await de_DatabaseConnectionExceptionRes(parsedOutput, context);
598
- case "InternalServerException":
599
- case "com.amazonaws.redshiftdata#InternalServerException":
600
- throw await de_InternalServerExceptionRes(parsedOutput, context);
601
642
  case "ResourceNotFoundException":
602
643
  case "com.amazonaws.redshiftdata#ResourceNotFoundException":
603
644
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
645
+ case "QueryTimeoutException":
646
+ case "com.amazonaws.redshiftdata#QueryTimeoutException":
647
+ throw await de_QueryTimeoutExceptionRes(parsedOutput, context);
604
648
  case "ExecuteStatementException":
605
649
  case "com.amazonaws.redshiftdata#ExecuteStatementException":
606
650
  throw await de_ExecuteStatementExceptionRes(parsedOutput, context);
@@ -613,6 +657,15 @@ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
613
657
  });
614
658
  }
615
659
  }, "de_CommandError");
660
+ var de_ActiveSessionsExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
661
+ const body = parsedOutput.body;
662
+ const deserialized = (0, import_smithy_client._json)(body);
663
+ const exception = new ActiveSessionsExceededException({
664
+ $metadata: deserializeMetadata(parsedOutput),
665
+ ...deserialized
666
+ });
667
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
668
+ }, "de_ActiveSessionsExceededExceptionRes");
616
669
  var de_ActiveStatementsExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
617
670
  const body = parsedOutput.body;
618
671
  const deserialized = (0, import_smithy_client._json)(body);
@@ -658,6 +711,15 @@ var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput,
658
711
  });
659
712
  return (0, import_smithy_client.decorateServiceException)(exception, body);
660
713
  }, "de_InternalServerExceptionRes");
714
+ var de_QueryTimeoutExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
715
+ const body = parsedOutput.body;
716
+ const deserialized = (0, import_smithy_client._json)(body);
717
+ const exception = new QueryTimeoutException({
718
+ $metadata: deserializeMetadata(parsedOutput),
719
+ ...deserialized
720
+ });
721
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
722
+ }, "de_QueryTimeoutExceptionRes");
661
723
  var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
662
724
  const body = parsedOutput.body;
663
725
  const deserialized = (0, import_smithy_client._json)(body);
@@ -683,6 +745,8 @@ var se_BatchExecuteStatementInput = /* @__PURE__ */ __name((input, context) => {
683
745
  Database: [],
684
746
  DbUser: [],
685
747
  SecretArn: [],
748
+ SessionId: [],
749
+ SessionKeepAliveSeconds: [],
686
750
  Sqls: import_smithy_client._json,
687
751
  StatementName: [],
688
752
  WithEvent: [],
@@ -697,6 +761,8 @@ var se_ExecuteStatementInput = /* @__PURE__ */ __name((input, context) => {
697
761
  DbUser: [],
698
762
  Parameters: import_smithy_client._json,
699
763
  SecretArn: [],
764
+ SessionId: [],
765
+ SessionKeepAliveSeconds: [],
700
766
  Sql: [],
701
767
  StatementName: [],
702
768
  WithEvent: [],
@@ -708,9 +774,11 @@ var de_BatchExecuteStatementOutput = /* @__PURE__ */ __name((output, context) =>
708
774
  ClusterIdentifier: import_smithy_client.expectString,
709
775
  CreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
710
776
  Database: import_smithy_client.expectString,
777
+ DbGroups: import_smithy_client._json,
711
778
  DbUser: import_smithy_client.expectString,
712
779
  Id: import_smithy_client.expectString,
713
780
  SecretArn: import_smithy_client.expectString,
781
+ SessionId: import_smithy_client.expectString,
714
782
  WorkgroupName: import_smithy_client.expectString
715
783
  });
716
784
  }, "de_BatchExecuteStatementOutput");
@@ -731,6 +799,7 @@ var de_DescribeStatementResponse = /* @__PURE__ */ __name((output, context) => {
731
799
  ResultRows: import_smithy_client.expectLong,
732
800
  ResultSize: import_smithy_client.expectLong,
733
801
  SecretArn: import_smithy_client.expectString,
802
+ SessionId: import_smithy_client.expectString,
734
803
  Status: import_smithy_client.expectString,
735
804
  SubStatements: (_) => de_SubStatementList(_, context),
736
805
  UpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
@@ -742,9 +811,11 @@ var de_ExecuteStatementOutput = /* @__PURE__ */ __name((output, context) => {
742
811
  ClusterIdentifier: import_smithy_client.expectString,
743
812
  CreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
744
813
  Database: import_smithy_client.expectString,
814
+ DbGroups: import_smithy_client._json,
745
815
  DbUser: import_smithy_client.expectString,
746
816
  Id: import_smithy_client.expectString,
747
817
  SecretArn: import_smithy_client.expectString,
818
+ SessionId: import_smithy_client.expectString,
748
819
  WorkgroupName: import_smithy_client.expectString
749
820
  });
750
821
  }, "de_ExecuteStatementOutput");
@@ -806,6 +877,7 @@ var de_StatementData = /* @__PURE__ */ __name((output, context) => {
806
877
  QueryString: import_smithy_client.expectString,
807
878
  QueryStrings: import_smithy_client._json,
808
879
  SecretArn: import_smithy_client.expectString,
880
+ SessionId: import_smithy_client.expectString,
809
881
  StatementName: import_smithy_client.expectString,
810
882
  Status: import_smithy_client.expectString,
811
883
  UpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
@@ -1094,14 +1166,16 @@ var paginateListTables = (0, import_core.createPaginator)(RedshiftDataClient, Li
1094
1166
  paginateListSchemas,
1095
1167
  paginateListStatements,
1096
1168
  paginateListTables,
1169
+ ActiveSessionsExceededException,
1097
1170
  ActiveStatementsExceededException,
1098
1171
  BatchExecuteStatementException,
1172
+ InternalServerException,
1099
1173
  ValidationException,
1100
1174
  DatabaseConnectionException,
1101
- InternalServerException,
1102
1175
  ResourceNotFoundException,
1103
1176
  StatusString,
1104
1177
  StatementStatusString,
1178
+ QueryTimeoutException,
1105
1179
  ExecuteStatementException,
1106
1180
  Field
1107
1181
  });
@@ -1,4 +1,17 @@
1
1
  import { RedshiftDataServiceException as __BaseException } from "./RedshiftDataServiceException";
2
+ export class ActiveSessionsExceededException extends __BaseException {
3
+ constructor(opts) {
4
+ super({
5
+ name: "ActiveSessionsExceededException",
6
+ $fault: "client",
7
+ ...opts,
8
+ });
9
+ this.name = "ActiveSessionsExceededException";
10
+ this.$fault = "client";
11
+ Object.setPrototypeOf(this, ActiveSessionsExceededException.prototype);
12
+ this.Message = opts.Message;
13
+ }
14
+ }
2
15
  export class ActiveStatementsExceededException extends __BaseException {
3
16
  constructor(opts) {
4
17
  super({
@@ -26,6 +39,19 @@ export class BatchExecuteStatementException extends __BaseException {
26
39
  this.StatementId = opts.StatementId;
27
40
  }
28
41
  }
42
+ export class InternalServerException extends __BaseException {
43
+ constructor(opts) {
44
+ super({
45
+ name: "InternalServerException",
46
+ $fault: "server",
47
+ ...opts,
48
+ });
49
+ this.name = "InternalServerException";
50
+ this.$fault = "server";
51
+ Object.setPrototypeOf(this, InternalServerException.prototype);
52
+ this.Message = opts.Message;
53
+ }
54
+ }
29
55
  export class ValidationException extends __BaseException {
30
56
  constructor(opts) {
31
57
  super({
@@ -52,19 +78,6 @@ export class DatabaseConnectionException extends __BaseException {
52
78
  this.Message = opts.Message;
53
79
  }
54
80
  }
55
- export class InternalServerException extends __BaseException {
56
- constructor(opts) {
57
- super({
58
- name: "InternalServerException",
59
- $fault: "server",
60
- ...opts,
61
- });
62
- this.name = "InternalServerException";
63
- this.$fault = "server";
64
- Object.setPrototypeOf(this, InternalServerException.prototype);
65
- this.Message = opts.Message;
66
- }
67
- }
68
81
  export class ResourceNotFoundException extends __BaseException {
69
82
  constructor(opts) {
70
83
  super({
@@ -96,6 +109,19 @@ export const StatementStatusString = {
96
109
  STARTED: "STARTED",
97
110
  SUBMITTED: "SUBMITTED",
98
111
  };
112
+ export class QueryTimeoutException extends __BaseException {
113
+ constructor(opts) {
114
+ super({
115
+ name: "QueryTimeoutException",
116
+ $fault: "client",
117
+ ...opts,
118
+ });
119
+ this.name = "QueryTimeoutException";
120
+ this.$fault = "client";
121
+ Object.setPrototypeOf(this, QueryTimeoutException.prototype);
122
+ this.Message = opts.Message;
123
+ }
124
+ }
99
125
  export class ExecuteStatementException extends __BaseException {
100
126
  constructor(opts) {
101
127
  super({
@@ -2,7 +2,7 @@ import { awsExpectUnion as __expectUnion, loadRestJsonErrorCode, parseJsonBody a
2
2
  import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
3
3
  import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
4
4
  import { v4 as generateIdempotencyToken } from "uuid";
5
- import { ActiveStatementsExceededException, BatchExecuteStatementException, DatabaseConnectionException, ExecuteStatementException, InternalServerException, ResourceNotFoundException, ValidationException, } from "../models/models_0";
5
+ import { ActiveSessionsExceededException, ActiveStatementsExceededException, BatchExecuteStatementException, DatabaseConnectionException, ExecuteStatementException, InternalServerException, QueryTimeoutException, ResourceNotFoundException, ValidationException, } from "../models/models_0";
6
6
  import { RedshiftDataServiceException as __BaseException } from "../models/RedshiftDataServiceException";
7
7
  export const se_BatchExecuteStatementCommand = async (input, context) => {
8
8
  const headers = sharedHeaders("BatchExecuteStatement");
@@ -201,24 +201,30 @@ const de_CommandError = async (output, context) => {
201
201
  };
202
202
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
203
203
  switch (errorCode) {
204
+ case "ActiveSessionsExceededException":
205
+ case "com.amazonaws.redshiftdata#ActiveSessionsExceededException":
206
+ throw await de_ActiveSessionsExceededExceptionRes(parsedOutput, context);
204
207
  case "ActiveStatementsExceededException":
205
208
  case "com.amazonaws.redshiftdata#ActiveStatementsExceededException":
206
209
  throw await de_ActiveStatementsExceededExceptionRes(parsedOutput, context);
207
210
  case "BatchExecuteStatementException":
208
211
  case "com.amazonaws.redshiftdata#BatchExecuteStatementException":
209
212
  throw await de_BatchExecuteStatementExceptionRes(parsedOutput, context);
213
+ case "InternalServerException":
214
+ case "com.amazonaws.redshiftdata#InternalServerException":
215
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
210
216
  case "ValidationException":
211
217
  case "com.amazonaws.redshiftdata#ValidationException":
212
218
  throw await de_ValidationExceptionRes(parsedOutput, context);
213
219
  case "DatabaseConnectionException":
214
220
  case "com.amazonaws.redshiftdata#DatabaseConnectionException":
215
221
  throw await de_DatabaseConnectionExceptionRes(parsedOutput, context);
216
- case "InternalServerException":
217
- case "com.amazonaws.redshiftdata#InternalServerException":
218
- throw await de_InternalServerExceptionRes(parsedOutput, context);
219
222
  case "ResourceNotFoundException":
220
223
  case "com.amazonaws.redshiftdata#ResourceNotFoundException":
221
224
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
225
+ case "QueryTimeoutException":
226
+ case "com.amazonaws.redshiftdata#QueryTimeoutException":
227
+ throw await de_QueryTimeoutExceptionRes(parsedOutput, context);
222
228
  case "ExecuteStatementException":
223
229
  case "com.amazonaws.redshiftdata#ExecuteStatementException":
224
230
  throw await de_ExecuteStatementExceptionRes(parsedOutput, context);
@@ -231,6 +237,15 @@ const de_CommandError = async (output, context) => {
231
237
  });
232
238
  }
233
239
  };
240
+ const de_ActiveSessionsExceededExceptionRes = async (parsedOutput, context) => {
241
+ const body = parsedOutput.body;
242
+ const deserialized = _json(body);
243
+ const exception = new ActiveSessionsExceededException({
244
+ $metadata: deserializeMetadata(parsedOutput),
245
+ ...deserialized,
246
+ });
247
+ return __decorateServiceException(exception, body);
248
+ };
234
249
  const de_ActiveStatementsExceededExceptionRes = async (parsedOutput, context) => {
235
250
  const body = parsedOutput.body;
236
251
  const deserialized = _json(body);
@@ -276,6 +291,15 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
276
291
  });
277
292
  return __decorateServiceException(exception, body);
278
293
  };
294
+ const de_QueryTimeoutExceptionRes = async (parsedOutput, context) => {
295
+ const body = parsedOutput.body;
296
+ const deserialized = _json(body);
297
+ const exception = new QueryTimeoutException({
298
+ $metadata: deserializeMetadata(parsedOutput),
299
+ ...deserialized,
300
+ });
301
+ return __decorateServiceException(exception, body);
302
+ };
279
303
  const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
280
304
  const body = parsedOutput.body;
281
305
  const deserialized = _json(body);
@@ -301,6 +325,8 @@ const se_BatchExecuteStatementInput = (input, context) => {
301
325
  Database: [],
302
326
  DbUser: [],
303
327
  SecretArn: [],
328
+ SessionId: [],
329
+ SessionKeepAliveSeconds: [],
304
330
  Sqls: _json,
305
331
  StatementName: [],
306
332
  WithEvent: [],
@@ -315,6 +341,8 @@ const se_ExecuteStatementInput = (input, context) => {
315
341
  DbUser: [],
316
342
  Parameters: _json,
317
343
  SecretArn: [],
344
+ SessionId: [],
345
+ SessionKeepAliveSeconds: [],
318
346
  Sql: [],
319
347
  StatementName: [],
320
348
  WithEvent: [],
@@ -326,9 +354,11 @@ const de_BatchExecuteStatementOutput = (output, context) => {
326
354
  ClusterIdentifier: __expectString,
327
355
  CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
328
356
  Database: __expectString,
357
+ DbGroups: _json,
329
358
  DbUser: __expectString,
330
359
  Id: __expectString,
331
360
  SecretArn: __expectString,
361
+ SessionId: __expectString,
332
362
  WorkgroupName: __expectString,
333
363
  });
334
364
  };
@@ -349,6 +379,7 @@ const de_DescribeStatementResponse = (output, context) => {
349
379
  ResultRows: __expectLong,
350
380
  ResultSize: __expectLong,
351
381
  SecretArn: __expectString,
382
+ SessionId: __expectString,
352
383
  Status: __expectString,
353
384
  SubStatements: (_) => de_SubStatementList(_, context),
354
385
  UpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
@@ -360,9 +391,11 @@ const de_ExecuteStatementOutput = (output, context) => {
360
391
  ClusterIdentifier: __expectString,
361
392
  CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
362
393
  Database: __expectString,
394
+ DbGroups: _json,
363
395
  DbUser: __expectString,
364
396
  Id: __expectString,
365
397
  SecretArn: __expectString,
398
+ SessionId: __expectString,
366
399
  WorkgroupName: __expectString,
367
400
  });
368
401
  };
@@ -428,6 +461,7 @@ const de_StatementData = (output, context) => {
428
461
  QueryString: __expectString,
429
462
  QueryStrings: _json,
430
463
  SecretArn: __expectString,
464
+ SessionId: __expectString,
431
465
  StatementName: __expectString,
432
466
  Status: __expectString,
433
467
  UpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
@@ -77,11 +77,13 @@ declare const BatchExecuteStatementCommand_base: {
77
77
  * ClusterIdentifier: "STRING_VALUE",
78
78
  * SecretArn: "STRING_VALUE",
79
79
  * DbUser: "STRING_VALUE",
80
- * Database: "STRING_VALUE", // required
80
+ * Database: "STRING_VALUE",
81
81
  * WithEvent: true || false,
82
82
  * StatementName: "STRING_VALUE",
83
83
  * WorkgroupName: "STRING_VALUE",
84
84
  * ClientToken: "STRING_VALUE",
85
+ * SessionKeepAliveSeconds: Number("int"),
86
+ * SessionId: "STRING_VALUE",
85
87
  * };
86
88
  * const command = new BatchExecuteStatementCommand(input);
87
89
  * const response = await client.send(command);
@@ -90,9 +92,13 @@ declare const BatchExecuteStatementCommand_base: {
90
92
  * // CreatedAt: new Date("TIMESTAMP"),
91
93
  * // ClusterIdentifier: "STRING_VALUE",
92
94
  * // DbUser: "STRING_VALUE",
95
+ * // DbGroups: [ // DbGroupList
96
+ * // "STRING_VALUE",
97
+ * // ],
93
98
  * // Database: "STRING_VALUE",
94
99
  * // SecretArn: "STRING_VALUE",
95
100
  * // WorkgroupName: "STRING_VALUE",
101
+ * // SessionId: "STRING_VALUE",
96
102
  * // };
97
103
  *
98
104
  * ```
@@ -103,12 +109,18 @@ declare const BatchExecuteStatementCommand_base: {
103
109
  * @see {@link BatchExecuteStatementCommandOutput} for command's `response` shape.
104
110
  * @see {@link RedshiftDataClientResolvedConfig | config} for RedshiftDataClient's `config` shape.
105
111
  *
112
+ * @throws {@link ActiveSessionsExceededException} (client fault)
113
+ * <p>The Amazon Redshift Data API operation failed because the maximum number of active sessions exceeded.</p>
114
+ *
106
115
  * @throws {@link ActiveStatementsExceededException} (client fault)
107
116
  * <p>The number of active statements exceeds the limit.</p>
108
117
  *
109
118
  * @throws {@link BatchExecuteStatementException} (server fault)
110
119
  * <p>An SQL statement encountered an environmental error while running.</p>
111
120
  *
121
+ * @throws {@link InternalServerException} (server fault)
122
+ * <p>The Amazon Redshift Data API operation failed due to invalid input. </p>
123
+ *
112
124
  * @throws {@link ValidationException} (client fault)
113
125
  * <p>The Amazon Redshift Data API operation failed due to invalid input. </p>
114
126
  *
@@ -83,6 +83,7 @@ declare const DescribeStatementCommand_base: {
83
83
  * // },
84
84
  * // ],
85
85
  * // WorkgroupName: "STRING_VALUE",
86
+ * // SessionId: "STRING_VALUE",
86
87
  * // };
87
88
  *
88
89
  * ```
@@ -121,6 +121,9 @@ declare const DescribeTableCommand_base: {
121
121
  * @throws {@link InternalServerException} (server fault)
122
122
  * <p>The Amazon Redshift Data API operation failed due to invalid input. </p>
123
123
  *
124
+ * @throws {@link QueryTimeoutException} (client fault)
125
+ * <p>The Amazon Redshift Data API operation failed due to timeout.</p>
126
+ *
124
127
  * @throws {@link ValidationException} (client fault)
125
128
  * <p>The Amazon Redshift Data API operation failed due to invalid input. </p>
126
129
  *
@@ -75,7 +75,7 @@ declare const ExecuteStatementCommand_base: {
75
75
  * ClusterIdentifier: "STRING_VALUE",
76
76
  * SecretArn: "STRING_VALUE",
77
77
  * DbUser: "STRING_VALUE",
78
- * Database: "STRING_VALUE", // required
78
+ * Database: "STRING_VALUE",
79
79
  * WithEvent: true || false,
80
80
  * StatementName: "STRING_VALUE",
81
81
  * Parameters: [ // SqlParametersList
@@ -86,6 +86,8 @@ declare const ExecuteStatementCommand_base: {
86
86
  * ],
87
87
  * WorkgroupName: "STRING_VALUE",
88
88
  * ClientToken: "STRING_VALUE",
89
+ * SessionKeepAliveSeconds: Number("int"),
90
+ * SessionId: "STRING_VALUE",
89
91
  * };
90
92
  * const command = new ExecuteStatementCommand(input);
91
93
  * const response = await client.send(command);
@@ -94,9 +96,13 @@ declare const ExecuteStatementCommand_base: {
94
96
  * // CreatedAt: new Date("TIMESTAMP"),
95
97
  * // ClusterIdentifier: "STRING_VALUE",
96
98
  * // DbUser: "STRING_VALUE",
99
+ * // DbGroups: [ // DbGroupList
100
+ * // "STRING_VALUE",
101
+ * // ],
97
102
  * // Database: "STRING_VALUE",
98
103
  * // SecretArn: "STRING_VALUE",
99
104
  * // WorkgroupName: "STRING_VALUE",
105
+ * // SessionId: "STRING_VALUE",
100
106
  * // };
101
107
  *
102
108
  * ```
@@ -107,12 +113,18 @@ declare const ExecuteStatementCommand_base: {
107
113
  * @see {@link ExecuteStatementCommandOutput} for command's `response` shape.
108
114
  * @see {@link RedshiftDataClientResolvedConfig | config} for RedshiftDataClient's `config` shape.
109
115
  *
116
+ * @throws {@link ActiveSessionsExceededException} (client fault)
117
+ * <p>The Amazon Redshift Data API operation failed because the maximum number of active sessions exceeded.</p>
118
+ *
110
119
  * @throws {@link ActiveStatementsExceededException} (client fault)
111
120
  * <p>The number of active statements exceeds the limit.</p>
112
121
  *
113
122
  * @throws {@link ExecuteStatementException} (server fault)
114
123
  * <p>The SQL statement encountered an environmental error while running.</p>
115
124
  *
125
+ * @throws {@link InternalServerException} (server fault)
126
+ * <p>The Amazon Redshift Data API operation failed due to invalid input. </p>
127
+ *
116
128
  * @throws {@link ValidationException} (client fault)
117
129
  * <p>The Amazon Redshift Data API operation failed due to invalid input. </p>
118
130
  *
@@ -102,6 +102,9 @@ declare const ListDatabasesCommand_base: {
102
102
  * @throws {@link InternalServerException} (server fault)
103
103
  * <p>The Amazon Redshift Data API operation failed due to invalid input. </p>
104
104
  *
105
+ * @throws {@link QueryTimeoutException} (client fault)
106
+ * <p>The Amazon Redshift Data API operation failed due to timeout.</p>
107
+ *
105
108
  * @throws {@link ValidationException} (client fault)
106
109
  * <p>The Amazon Redshift Data API operation failed due to invalid input. </p>
107
110
  *
@@ -104,6 +104,9 @@ declare const ListSchemasCommand_base: {
104
104
  * @throws {@link InternalServerException} (server fault)
105
105
  * <p>The Amazon Redshift Data API operation failed due to invalid input. </p>
106
106
  *
107
+ * @throws {@link QueryTimeoutException} (client fault)
108
+ * <p>The Amazon Redshift Data API operation failed due to timeout.</p>
109
+ *
107
110
  * @throws {@link ValidationException} (client fault)
108
111
  * <p>The Amazon Redshift Data API operation failed due to invalid input. </p>
109
112
  *
@@ -67,6 +67,7 @@ declare const ListStatementsCommand_base: {
67
67
  * // },
68
68
  * // ],
69
69
  * // IsBatchStatement: true || false,
70
+ * // SessionId: "STRING_VALUE",
70
71
  * // },
71
72
  * // ],
72
73
  * // NextToken: "STRING_VALUE",
@@ -110,6 +110,9 @@ declare const ListTablesCommand_base: {
110
110
  * @throws {@link InternalServerException} (server fault)
111
111
  * <p>The Amazon Redshift Data API operation failed due to invalid input. </p>
112
112
  *
113
+ * @throws {@link QueryTimeoutException} (client fault)
114
+ * <p>The Amazon Redshift Data API operation failed due to timeout.</p>
115
+ *
113
116
  * @throws {@link ValidationException} (client fault)
114
117
  * <p>The Amazon Redshift Data API operation failed due to invalid input. </p>
115
118
  *
@@ -1,5 +1,18 @@
1
1
  import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
2
  import { RedshiftDataServiceException as __BaseException } from "./RedshiftDataServiceException";
3
+ /**
4
+ * <p>The Amazon Redshift Data API operation failed because the maximum number of active sessions exceeded.</p>
5
+ * @public
6
+ */
7
+ export declare class ActiveSessionsExceededException extends __BaseException {
8
+ readonly name: "ActiveSessionsExceededException";
9
+ readonly $fault: "client";
10
+ Message?: string;
11
+ /**
12
+ * @internal
13
+ */
14
+ constructor(opts: __ExceptionOptionType<ActiveSessionsExceededException, __BaseException>);
15
+ }
3
16
  /**
4
17
  * <p>The number of active statements exceeds the limit.</p>
5
18
  * @public
@@ -63,7 +76,7 @@ export interface BatchExecuteStatementInput {
63
76
  * <p>The name of the database. This parameter is required when authenticating using either Secrets Manager or temporary credentials. </p>
64
77
  * @public
65
78
  */
66
- Database: string | undefined;
79
+ Database?: string;
67
80
  /**
68
81
  * <p>A value that indicates whether to send an event to the Amazon EventBridge event bus after the SQL statements run. </p>
69
82
  * @public
@@ -84,6 +97,16 @@ export interface BatchExecuteStatementInput {
84
97
  * @public
85
98
  */
86
99
  ClientToken?: string;
100
+ /**
101
+ * <p>The number of seconds to keep the session alive after the query finishes. The maximum time a session can keep alive is 24 hours. After 24 hours, the session is forced closed and the query is terminated.</p>
102
+ * @public
103
+ */
104
+ SessionKeepAliveSeconds?: number;
105
+ /**
106
+ * <p>The session identifier of the query.</p>
107
+ * @public
108
+ */
109
+ SessionId?: string;
87
110
  }
88
111
  /**
89
112
  * @public
@@ -110,6 +133,11 @@ export interface BatchExecuteStatementOutput {
110
133
  * @public
111
134
  */
112
135
  DbUser?: string;
136
+ /**
137
+ * <p>A list of colon (:) separated names of database groups.</p>
138
+ * @public
139
+ */
140
+ DbGroups?: string[];
113
141
  /**
114
142
  * <p>The name of the database.</p>
115
143
  * @public
@@ -125,6 +153,28 @@ export interface BatchExecuteStatementOutput {
125
153
  * @public
126
154
  */
127
155
  WorkgroupName?: string;
156
+ /**
157
+ * <p>The session identifier of the query.</p>
158
+ * @public
159
+ */
160
+ SessionId?: string;
161
+ }
162
+ /**
163
+ * <p>The Amazon Redshift Data API operation failed due to invalid input. </p>
164
+ * @public
165
+ */
166
+ export declare class InternalServerException extends __BaseException {
167
+ readonly name: "InternalServerException";
168
+ readonly $fault: "server";
169
+ /**
170
+ * <p>The exception message.</p>
171
+ * @public
172
+ */
173
+ Message: string | undefined;
174
+ /**
175
+ * @internal
176
+ */
177
+ constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
128
178
  }
129
179
  /**
130
180
  * <p>The Amazon Redshift Data API operation failed due to invalid input. </p>
@@ -177,23 +227,6 @@ export declare class DatabaseConnectionException extends __BaseException {
177
227
  */
178
228
  constructor(opts: __ExceptionOptionType<DatabaseConnectionException, __BaseException>);
179
229
  }
180
- /**
181
- * <p>The Amazon Redshift Data API operation failed due to invalid input. </p>
182
- * @public
183
- */
184
- export declare class InternalServerException extends __BaseException {
185
- readonly name: "InternalServerException";
186
- readonly $fault: "server";
187
- /**
188
- * <p>The exception message.</p>
189
- * @public
190
- */
191
- Message: string | undefined;
192
- /**
193
- * @internal
194
- */
195
- constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
196
- }
197
230
  /**
198
231
  * <p>The Amazon Redshift Data API operation failed due to a missing resource. </p>
199
232
  * @public
@@ -546,6 +579,11 @@ export interface DescribeStatementResponse {
546
579
  * @public
547
580
  */
548
581
  WorkgroupName?: string;
582
+ /**
583
+ * <p>The session identifier of the query.</p>
584
+ * @public
585
+ */
586
+ SessionId?: string;
549
587
  }
550
588
  /**
551
589
  * @public
@@ -625,6 +663,19 @@ export interface DescribeTableResponse {
625
663
  */
626
664
  NextToken?: string;
627
665
  }
666
+ /**
667
+ * <p>The Amazon Redshift Data API operation failed due to timeout.</p>
668
+ * @public
669
+ */
670
+ export declare class QueryTimeoutException extends __BaseException {
671
+ readonly name: "QueryTimeoutException";
672
+ readonly $fault: "client";
673
+ Message?: string;
674
+ /**
675
+ * @internal
676
+ */
677
+ constructor(opts: __ExceptionOptionType<QueryTimeoutException, __BaseException>);
678
+ }
628
679
  /**
629
680
  * <p>The SQL statement encountered an environmental error while running.</p>
630
681
  * @public
@@ -675,7 +726,7 @@ export interface ExecuteStatementInput {
675
726
  * <p>The name of the database. This parameter is required when authenticating using either Secrets Manager or temporary credentials. </p>
676
727
  * @public
677
728
  */
678
- Database: string | undefined;
729
+ Database?: string;
679
730
  /**
680
731
  * <p>A value that indicates whether to send an event to the Amazon EventBridge event bus after the SQL statement runs. </p>
681
732
  * @public
@@ -701,6 +752,16 @@ export interface ExecuteStatementInput {
701
752
  * @public
702
753
  */
703
754
  ClientToken?: string;
755
+ /**
756
+ * <p>The number of seconds to keep the session alive after the query finishes. The maximum time a session can keep alive is 24 hours. After 24 hours, the session is forced closed and the query is terminated.</p>
757
+ * @public
758
+ */
759
+ SessionKeepAliveSeconds?: number;
760
+ /**
761
+ * <p>The session identifier of the query.</p>
762
+ * @public
763
+ */
764
+ SessionId?: string;
704
765
  }
705
766
  /**
706
767
  * @public
@@ -726,6 +787,11 @@ export interface ExecuteStatementOutput {
726
787
  * @public
727
788
  */
728
789
  DbUser?: string;
790
+ /**
791
+ * <p>A list of colon (:) separated names of database groups.</p>
792
+ * @public
793
+ */
794
+ DbGroups?: string[];
729
795
  /**
730
796
  * <p>The name of the database.</p>
731
797
  * @public
@@ -741,6 +807,11 @@ export interface ExecuteStatementOutput {
741
807
  * @public
742
808
  */
743
809
  WorkgroupName?: string;
810
+ /**
811
+ * <p>The session identifier of the query.</p>
812
+ * @public
813
+ */
814
+ SessionId?: string;
744
815
  }
745
816
  /**
746
817
  * <p>A data value in a column. </p>
@@ -1136,6 +1207,11 @@ export interface StatementData {
1136
1207
  * @public
1137
1208
  */
1138
1209
  IsBatchStatement?: boolean;
1210
+ /**
1211
+ * <p>The session identifier of the query.</p>
1212
+ * @public
1213
+ */
1214
+ SessionId?: string;
1139
1215
  }
1140
1216
  /**
1141
1217
  * @public
@@ -1,5 +1,16 @@
1
1
  import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
2
  import { RedshiftDataServiceException as __BaseException } from "./RedshiftDataServiceException";
3
+ export declare class ActiveSessionsExceededException extends __BaseException {
4
+ readonly name: "ActiveSessionsExceededException";
5
+ readonly $fault: "client";
6
+ Message?: string;
7
+ constructor(
8
+ opts: __ExceptionOptionType<
9
+ ActiveSessionsExceededException,
10
+ __BaseException
11
+ >
12
+ );
13
+ }
3
14
  export declare class ActiveStatementsExceededException extends __BaseException {
4
15
  readonly name: "ActiveStatementsExceededException";
5
16
  readonly $fault: "client";
@@ -25,20 +36,32 @@ export interface BatchExecuteStatementInput {
25
36
  ClusterIdentifier?: string;
26
37
  SecretArn?: string;
27
38
  DbUser?: string;
28
- Database: string | undefined;
39
+ Database?: string;
29
40
  WithEvent?: boolean;
30
41
  StatementName?: string;
31
42
  WorkgroupName?: string;
32
43
  ClientToken?: string;
44
+ SessionKeepAliveSeconds?: number;
45
+ SessionId?: string;
33
46
  }
34
47
  export interface BatchExecuteStatementOutput {
35
48
  Id?: string;
36
49
  CreatedAt?: Date;
37
50
  ClusterIdentifier?: string;
38
51
  DbUser?: string;
52
+ DbGroups?: string[];
39
53
  Database?: string;
40
54
  SecretArn?: string;
41
55
  WorkgroupName?: string;
56
+ SessionId?: string;
57
+ }
58
+ export declare class InternalServerException extends __BaseException {
59
+ readonly name: "InternalServerException";
60
+ readonly $fault: "server";
61
+ Message: string | undefined;
62
+ constructor(
63
+ opts: __ExceptionOptionType<InternalServerException, __BaseException>
64
+ );
42
65
  }
43
66
  export declare class ValidationException extends __BaseException {
44
67
  readonly name: "ValidationException";
@@ -62,14 +85,6 @@ export declare class DatabaseConnectionException extends __BaseException {
62
85
  opts: __ExceptionOptionType<DatabaseConnectionException, __BaseException>
63
86
  );
64
87
  }
65
- export declare class InternalServerException extends __BaseException {
66
- readonly name: "InternalServerException";
67
- readonly $fault: "server";
68
- Message: string | undefined;
69
- constructor(
70
- opts: __ExceptionOptionType<InternalServerException, __BaseException>
71
- );
72
- }
73
88
  export declare class ResourceNotFoundException extends __BaseException {
74
89
  readonly name: "ResourceNotFoundException";
75
90
  readonly $fault: "client";
@@ -154,6 +169,7 @@ export interface DescribeStatementResponse {
154
169
  QueryParameters?: SqlParameter[];
155
170
  SubStatements?: SubStatementData[];
156
171
  WorkgroupName?: string;
172
+ SessionId?: string;
157
173
  }
158
174
  export interface DescribeTableRequest {
159
175
  ClusterIdentifier?: string;
@@ -172,6 +188,14 @@ export interface DescribeTableResponse {
172
188
  ColumnList?: ColumnMetadata[];
173
189
  NextToken?: string;
174
190
  }
191
+ export declare class QueryTimeoutException extends __BaseException {
192
+ readonly name: "QueryTimeoutException";
193
+ readonly $fault: "client";
194
+ Message?: string;
195
+ constructor(
196
+ opts: __ExceptionOptionType<QueryTimeoutException, __BaseException>
197
+ );
198
+ }
175
199
  export declare class ExecuteStatementException extends __BaseException {
176
200
  readonly name: "ExecuteStatementException";
177
201
  readonly $fault: "server";
@@ -186,21 +210,25 @@ export interface ExecuteStatementInput {
186
210
  ClusterIdentifier?: string;
187
211
  SecretArn?: string;
188
212
  DbUser?: string;
189
- Database: string | undefined;
213
+ Database?: string;
190
214
  WithEvent?: boolean;
191
215
  StatementName?: string;
192
216
  Parameters?: SqlParameter[];
193
217
  WorkgroupName?: string;
194
218
  ClientToken?: string;
219
+ SessionKeepAliveSeconds?: number;
220
+ SessionId?: string;
195
221
  }
196
222
  export interface ExecuteStatementOutput {
197
223
  Id?: string;
198
224
  CreatedAt?: Date;
199
225
  ClusterIdentifier?: string;
200
226
  DbUser?: string;
227
+ DbGroups?: string[];
201
228
  Database?: string;
202
229
  SecretArn?: string;
203
230
  WorkgroupName?: string;
231
+ SessionId?: string;
204
232
  }
205
233
  export type Field =
206
234
  | Field.BlobValueMember
@@ -341,6 +369,7 @@ export interface StatementData {
341
369
  UpdatedAt?: Date;
342
370
  QueryParameters?: SqlParameter[];
343
371
  IsBatchStatement?: boolean;
372
+ SessionId?: string;
344
373
  }
345
374
  export interface ListStatementsResponse {
346
375
  Statements: StatementData[] | undefined;
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.637.0",
4
+ "version": "3.645.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-redshift-data",
@@ -20,17 +20,17 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/client-sso-oidc": "3.637.0",
24
- "@aws-sdk/client-sts": "3.637.0",
23
+ "@aws-sdk/client-sso-oidc": "3.645.0",
24
+ "@aws-sdk/client-sts": "3.645.0",
25
25
  "@aws-sdk/core": "3.635.0",
26
- "@aws-sdk/credential-provider-node": "3.637.0",
26
+ "@aws-sdk/credential-provider-node": "3.645.0",
27
27
  "@aws-sdk/middleware-host-header": "3.620.0",
28
28
  "@aws-sdk/middleware-logger": "3.609.0",
29
29
  "@aws-sdk/middleware-recursion-detection": "3.620.0",
30
- "@aws-sdk/middleware-user-agent": "3.637.0",
30
+ "@aws-sdk/middleware-user-agent": "3.645.0",
31
31
  "@aws-sdk/region-config-resolver": "3.614.0",
32
32
  "@aws-sdk/types": "3.609.0",
33
- "@aws-sdk/util-endpoints": "3.637.0",
33
+ "@aws-sdk/util-endpoints": "3.645.0",
34
34
  "@aws-sdk/util-user-agent-browser": "3.609.0",
35
35
  "@aws-sdk/util-user-agent-node": "3.614.0",
36
36
  "@smithy/config-resolver": "^3.0.5",