@aws-sdk/client-redshift-data 3.926.0 → 3.928.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.
Files changed (32) hide show
  1. package/dist-cjs/index.js +517 -655
  2. package/dist-cjs/runtimeConfig.shared.js +7 -0
  3. package/dist-es/RedshiftDataClient.js +2 -0
  4. package/dist-es/commands/BatchExecuteStatementCommand.js +3 -9
  5. package/dist-es/commands/CancelStatementCommand.js +3 -9
  6. package/dist-es/commands/DescribeStatementCommand.js +3 -9
  7. package/dist-es/commands/DescribeTableCommand.js +3 -9
  8. package/dist-es/commands/ExecuteStatementCommand.js +3 -9
  9. package/dist-es/commands/GetStatementResultCommand.js +3 -9
  10. package/dist-es/commands/GetStatementResultV2Command.js +3 -9
  11. package/dist-es/commands/ListDatabasesCommand.js +3 -9
  12. package/dist-es/commands/ListSchemasCommand.js +3 -9
  13. package/dist-es/commands/ListStatementsCommand.js +3 -9
  14. package/dist-es/commands/ListTablesCommand.js +3 -9
  15. package/dist-es/runtimeConfig.shared.js +7 -0
  16. package/dist-es/schemas/schemas_0.js +471 -0
  17. package/dist-types/RedshiftDataClient.d.ts +10 -1
  18. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  19. package/dist-types/runtimeConfig.d.ts +1 -0
  20. package/dist-types/runtimeConfig.native.d.ts +1 -0
  21. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  22. package/dist-types/schemas/schemas_0.d.ts +65 -0
  23. package/dist-types/ts3.4/RedshiftDataClient.d.ts +4 -0
  24. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  25. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  26. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  27. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  28. package/dist-types/ts3.4/schemas/schemas_0.d.ts +70 -0
  29. package/package.json +5 -6
  30. package/dist-es/protocols/Aws_json1_1.js +0 -555
  31. package/dist-types/protocols/Aws_json1_1.d.ts +0 -101
  32. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +0 -137
package/dist-cjs/index.js CHANGED
@@ -6,6 +6,7 @@ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detect
6
6
  var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
7
7
  var configResolver = require('@smithy/config-resolver');
8
8
  var core = require('@smithy/core');
9
+ var schema = require('@smithy/core/schema');
9
10
  var middlewareContentLength = require('@smithy/middleware-content-length');
10
11
  var middlewareEndpoint = require('@smithy/middleware-endpoint');
11
12
  var middlewareRetry = require('@smithy/middleware-retry');
@@ -14,9 +15,6 @@ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
14
15
  var runtimeConfig = require('./runtimeConfig');
15
16
  var regionConfigResolver = require('@aws-sdk/region-config-resolver');
16
17
  var protocolHttp = require('@smithy/protocol-http');
17
- var middlewareSerde = require('@smithy/middleware-serde');
18
- var core$1 = require('@aws-sdk/core');
19
- var uuid = require('@smithy/uuid');
20
18
 
21
19
  const resolveClientEndpointParameters = (options) => {
22
20
  return Object.assign(options, {
@@ -92,6 +90,7 @@ class RedshiftDataClient extends smithyClient.Client {
92
90
  const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
93
91
  const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
94
92
  this.config = _config_8;
93
+ this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
95
94
  this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
96
95
  this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
97
96
  this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
@@ -111,14 +110,14 @@ class RedshiftDataClient extends smithyClient.Client {
111
110
  }
112
111
  }
113
112
 
114
- class RedshiftDataServiceException extends smithyClient.ServiceException {
113
+ let RedshiftDataServiceException$1 = class RedshiftDataServiceException extends smithyClient.ServiceException {
115
114
  constructor(options) {
116
115
  super(options);
117
116
  Object.setPrototypeOf(this, RedshiftDataServiceException.prototype);
118
117
  }
119
- }
118
+ };
120
119
 
121
- class ActiveSessionsExceededException extends RedshiftDataServiceException {
120
+ let ActiveSessionsExceededException$1 = class ActiveSessionsExceededException extends RedshiftDataServiceException$1 {
122
121
  name = "ActiveSessionsExceededException";
123
122
  $fault = "client";
124
123
  Message;
@@ -131,8 +130,8 @@ class ActiveSessionsExceededException extends RedshiftDataServiceException {
131
130
  Object.setPrototypeOf(this, ActiveSessionsExceededException.prototype);
132
131
  this.Message = opts.Message;
133
132
  }
134
- }
135
- class ActiveStatementsExceededException extends RedshiftDataServiceException {
133
+ };
134
+ let ActiveStatementsExceededException$1 = class ActiveStatementsExceededException extends RedshiftDataServiceException$1 {
136
135
  name = "ActiveStatementsExceededException";
137
136
  $fault = "client";
138
137
  Message;
@@ -145,8 +144,8 @@ class ActiveStatementsExceededException extends RedshiftDataServiceException {
145
144
  Object.setPrototypeOf(this, ActiveStatementsExceededException.prototype);
146
145
  this.Message = opts.Message;
147
146
  }
148
- }
149
- class BatchExecuteStatementException extends RedshiftDataServiceException {
147
+ };
148
+ let BatchExecuteStatementException$1 = class BatchExecuteStatementException extends RedshiftDataServiceException$1 {
150
149
  name = "BatchExecuteStatementException";
151
150
  $fault = "server";
152
151
  Message;
@@ -161,12 +160,12 @@ class BatchExecuteStatementException extends RedshiftDataServiceException {
161
160
  this.Message = opts.Message;
162
161
  this.StatementId = opts.StatementId;
163
162
  }
164
- }
163
+ };
165
164
  const ResultFormatString = {
166
165
  CSV: "CSV",
167
166
  JSON: "JSON",
168
167
  };
169
- class InternalServerException extends RedshiftDataServiceException {
168
+ let InternalServerException$1 = class InternalServerException extends RedshiftDataServiceException$1 {
170
169
  name = "InternalServerException";
171
170
  $fault = "server";
172
171
  Message;
@@ -179,8 +178,8 @@ class InternalServerException extends RedshiftDataServiceException {
179
178
  Object.setPrototypeOf(this, InternalServerException.prototype);
180
179
  this.Message = opts.Message;
181
180
  }
182
- }
183
- class ValidationException extends RedshiftDataServiceException {
181
+ };
182
+ let ValidationException$1 = class ValidationException extends RedshiftDataServiceException$1 {
184
183
  name = "ValidationException";
185
184
  $fault = "client";
186
185
  Message;
@@ -193,8 +192,8 @@ class ValidationException extends RedshiftDataServiceException {
193
192
  Object.setPrototypeOf(this, ValidationException.prototype);
194
193
  this.Message = opts.Message;
195
194
  }
196
- }
197
- class DatabaseConnectionException extends RedshiftDataServiceException {
195
+ };
196
+ let DatabaseConnectionException$1 = class DatabaseConnectionException extends RedshiftDataServiceException$1 {
198
197
  name = "DatabaseConnectionException";
199
198
  $fault = "server";
200
199
  Message;
@@ -207,8 +206,8 @@ class DatabaseConnectionException extends RedshiftDataServiceException {
207
206
  Object.setPrototypeOf(this, DatabaseConnectionException.prototype);
208
207
  this.Message = opts.Message;
209
208
  }
210
- }
211
- class ResourceNotFoundException extends RedshiftDataServiceException {
209
+ };
210
+ let ResourceNotFoundException$1 = class ResourceNotFoundException extends RedshiftDataServiceException$1 {
212
211
  name = "ResourceNotFoundException";
213
212
  $fault = "client";
214
213
  Message;
@@ -223,7 +222,7 @@ class ResourceNotFoundException extends RedshiftDataServiceException {
223
222
  this.Message = opts.Message;
224
223
  this.ResourceId = opts.ResourceId;
225
224
  }
226
- }
225
+ };
227
226
  const StatusString = {
228
227
  ABORTED: "ABORTED",
229
228
  ALL: "ALL",
@@ -241,7 +240,7 @@ const StatementStatusString = {
241
240
  STARTED: "STARTED",
242
241
  SUBMITTED: "SUBMITTED",
243
242
  };
244
- class QueryTimeoutException extends RedshiftDataServiceException {
243
+ let QueryTimeoutException$1 = class QueryTimeoutException extends RedshiftDataServiceException$1 {
245
244
  name = "QueryTimeoutException";
246
245
  $fault = "client";
247
246
  Message;
@@ -254,8 +253,8 @@ class QueryTimeoutException extends RedshiftDataServiceException {
254
253
  Object.setPrototypeOf(this, QueryTimeoutException.prototype);
255
254
  this.Message = opts.Message;
256
255
  }
257
- }
258
- class ExecuteStatementException extends RedshiftDataServiceException {
256
+ };
257
+ let ExecuteStatementException$1 = class ExecuteStatementException extends RedshiftDataServiceException$1 {
259
258
  name = "ExecuteStatementException";
260
259
  $fault = "server";
261
260
  Message;
@@ -270,7 +269,7 @@ class ExecuteStatementException extends RedshiftDataServiceException {
270
269
  this.Message = opts.Message;
271
270
  this.StatementId = opts.StatementId;
272
271
  }
273
- }
272
+ };
274
273
  exports.Field = void 0;
275
274
  (function (Field) {
276
275
  Field.visit = (value, visitor) => {
@@ -298,566 +297,479 @@ exports.QueryRecords = void 0;
298
297
  };
299
298
  })(exports.QueryRecords || (exports.QueryRecords = {}));
300
299
 
301
- const se_BatchExecuteStatementCommand = async (input, context) => {
302
- const headers = sharedHeaders("BatchExecuteStatement");
303
- let body;
304
- body = JSON.stringify(se_BatchExecuteStatementInput(input));
305
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
306
- };
307
- const se_CancelStatementCommand = async (input, context) => {
308
- const headers = sharedHeaders("CancelStatement");
309
- let body;
310
- body = JSON.stringify(smithyClient._json(input));
311
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
312
- };
313
- const se_DescribeStatementCommand = async (input, context) => {
314
- const headers = sharedHeaders("DescribeStatement");
315
- let body;
316
- body = JSON.stringify(smithyClient._json(input));
317
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
318
- };
319
- const se_DescribeTableCommand = async (input, context) => {
320
- const headers = sharedHeaders("DescribeTable");
321
- let body;
322
- body = JSON.stringify(smithyClient._json(input));
323
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
324
- };
325
- const se_ExecuteStatementCommand = async (input, context) => {
326
- const headers = sharedHeaders("ExecuteStatement");
327
- let body;
328
- body = JSON.stringify(se_ExecuteStatementInput(input));
329
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
330
- };
331
- const se_GetStatementResultCommand = async (input, context) => {
332
- const headers = sharedHeaders("GetStatementResult");
333
- let body;
334
- body = JSON.stringify(smithyClient._json(input));
335
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
336
- };
337
- const se_GetStatementResultV2Command = async (input, context) => {
338
- const headers = sharedHeaders("GetStatementResultV2");
339
- let body;
340
- body = JSON.stringify(smithyClient._json(input));
341
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
342
- };
343
- const se_ListDatabasesCommand = async (input, context) => {
344
- const headers = sharedHeaders("ListDatabases");
345
- let body;
346
- body = JSON.stringify(smithyClient._json(input));
347
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
348
- };
349
- const se_ListSchemasCommand = async (input, context) => {
350
- const headers = sharedHeaders("ListSchemas");
351
- let body;
352
- body = JSON.stringify(smithyClient._json(input));
353
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
354
- };
355
- const se_ListStatementsCommand = async (input, context) => {
356
- const headers = sharedHeaders("ListStatements");
357
- let body;
358
- body = JSON.stringify(smithyClient._json(input));
359
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
360
- };
361
- const se_ListTablesCommand = async (input, context) => {
362
- const headers = sharedHeaders("ListTables");
363
- let body;
364
- body = JSON.stringify(smithyClient._json(input));
365
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
366
- };
367
- const de_BatchExecuteStatementCommand = async (output, context) => {
368
- if (output.statusCode >= 300) {
369
- return de_CommandError(output, context);
370
- }
371
- const data = await core$1.parseJsonBody(output.body, context);
372
- let contents = {};
373
- contents = de_BatchExecuteStatementOutput(data);
374
- const response = {
375
- $metadata: deserializeMetadata(output),
376
- ...contents,
377
- };
378
- return response;
379
- };
380
- const de_CancelStatementCommand = async (output, context) => {
381
- if (output.statusCode >= 300) {
382
- return de_CommandError(output, context);
383
- }
384
- const data = await core$1.parseJsonBody(output.body, context);
385
- let contents = {};
386
- contents = smithyClient._json(data);
387
- const response = {
388
- $metadata: deserializeMetadata(output),
389
- ...contents,
390
- };
391
- return response;
392
- };
393
- const de_DescribeStatementCommand = async (output, context) => {
394
- if (output.statusCode >= 300) {
395
- return de_CommandError(output, context);
396
- }
397
- const data = await core$1.parseJsonBody(output.body, context);
398
- let contents = {};
399
- contents = de_DescribeStatementResponse(data);
400
- const response = {
401
- $metadata: deserializeMetadata(output),
402
- ...contents,
403
- };
404
- return response;
405
- };
406
- const de_DescribeTableCommand = async (output, context) => {
407
- if (output.statusCode >= 300) {
408
- return de_CommandError(output, context);
409
- }
410
- const data = await core$1.parseJsonBody(output.body, context);
411
- let contents = {};
412
- contents = smithyClient._json(data);
413
- const response = {
414
- $metadata: deserializeMetadata(output),
415
- ...contents,
416
- };
417
- return response;
418
- };
419
- const de_ExecuteStatementCommand = async (output, context) => {
420
- if (output.statusCode >= 300) {
421
- return de_CommandError(output, context);
422
- }
423
- const data = await core$1.parseJsonBody(output.body, context);
424
- let contents = {};
425
- contents = de_ExecuteStatementOutput(data);
426
- const response = {
427
- $metadata: deserializeMetadata(output),
428
- ...contents,
429
- };
430
- return response;
431
- };
432
- const de_GetStatementResultCommand = async (output, context) => {
433
- if (output.statusCode >= 300) {
434
- return de_CommandError(output, context);
435
- }
436
- const data = await core$1.parseJsonBody(output.body, context);
437
- let contents = {};
438
- contents = de_GetStatementResultResponse(data, context);
439
- const response = {
440
- $metadata: deserializeMetadata(output),
441
- ...contents,
442
- };
443
- return response;
444
- };
445
- const de_GetStatementResultV2Command = async (output, context) => {
446
- if (output.statusCode >= 300) {
447
- return de_CommandError(output, context);
448
- }
449
- const data = await core$1.parseJsonBody(output.body, context);
450
- let contents = {};
451
- contents = smithyClient._json(data);
452
- const response = {
453
- $metadata: deserializeMetadata(output),
454
- ...contents,
455
- };
456
- return response;
457
- };
458
- const de_ListDatabasesCommand = async (output, context) => {
459
- if (output.statusCode >= 300) {
460
- return de_CommandError(output, context);
461
- }
462
- const data = await core$1.parseJsonBody(output.body, context);
463
- let contents = {};
464
- contents = smithyClient._json(data);
465
- const response = {
466
- $metadata: deserializeMetadata(output),
467
- ...contents,
468
- };
469
- return response;
470
- };
471
- const de_ListSchemasCommand = async (output, context) => {
472
- if (output.statusCode >= 300) {
473
- return de_CommandError(output, context);
474
- }
475
- const data = await core$1.parseJsonBody(output.body, context);
476
- let contents = {};
477
- contents = smithyClient._json(data);
478
- const response = {
479
- $metadata: deserializeMetadata(output),
480
- ...contents,
481
- };
482
- return response;
483
- };
484
- const de_ListStatementsCommand = async (output, context) => {
485
- if (output.statusCode >= 300) {
486
- return de_CommandError(output, context);
487
- }
488
- const data = await core$1.parseJsonBody(output.body, context);
489
- let contents = {};
490
- contents = de_ListStatementsResponse(data);
491
- const response = {
492
- $metadata: deserializeMetadata(output),
493
- ...contents,
494
- };
495
- return response;
496
- };
497
- const de_ListTablesCommand = async (output, context) => {
498
- if (output.statusCode >= 300) {
499
- return de_CommandError(output, context);
500
- }
501
- const data = await core$1.parseJsonBody(output.body, context);
502
- let contents = {};
503
- contents = smithyClient._json(data);
504
- const response = {
505
- $metadata: deserializeMetadata(output),
506
- ...contents,
507
- };
508
- return response;
509
- };
510
- const de_CommandError = async (output, context) => {
511
- const parsedOutput = {
512
- ...output,
513
- body: await core$1.parseJsonErrorBody(output.body, context),
514
- };
515
- const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
516
- switch (errorCode) {
517
- case "ActiveSessionsExceededException":
518
- case "com.amazonaws.redshiftdata#ActiveSessionsExceededException":
519
- throw await de_ActiveSessionsExceededExceptionRes(parsedOutput);
520
- case "ActiveStatementsExceededException":
521
- case "com.amazonaws.redshiftdata#ActiveStatementsExceededException":
522
- throw await de_ActiveStatementsExceededExceptionRes(parsedOutput);
523
- case "BatchExecuteStatementException":
524
- case "com.amazonaws.redshiftdata#BatchExecuteStatementException":
525
- throw await de_BatchExecuteStatementExceptionRes(parsedOutput);
526
- case "InternalServerException":
527
- case "com.amazonaws.redshiftdata#InternalServerException":
528
- throw await de_InternalServerExceptionRes(parsedOutput);
529
- case "ValidationException":
530
- case "com.amazonaws.redshiftdata#ValidationException":
531
- throw await de_ValidationExceptionRes(parsedOutput);
532
- case "DatabaseConnectionException":
533
- case "com.amazonaws.redshiftdata#DatabaseConnectionException":
534
- throw await de_DatabaseConnectionExceptionRes(parsedOutput);
535
- case "ResourceNotFoundException":
536
- case "com.amazonaws.redshiftdata#ResourceNotFoundException":
537
- throw await de_ResourceNotFoundExceptionRes(parsedOutput);
538
- case "QueryTimeoutException":
539
- case "com.amazonaws.redshiftdata#QueryTimeoutException":
540
- throw await de_QueryTimeoutExceptionRes(parsedOutput);
541
- case "ExecuteStatementException":
542
- case "com.amazonaws.redshiftdata#ExecuteStatementException":
543
- throw await de_ExecuteStatementExceptionRes(parsedOutput);
544
- default:
545
- const parsedBody = parsedOutput.body;
546
- return throwDefaultError({
547
- output,
548
- parsedBody,
549
- errorCode,
550
- });
551
- }
552
- };
553
- const de_ActiveSessionsExceededExceptionRes = async (parsedOutput, context) => {
554
- const body = parsedOutput.body;
555
- const deserialized = smithyClient._json(body);
556
- const exception = new ActiveSessionsExceededException({
557
- $metadata: deserializeMetadata(parsedOutput),
558
- ...deserialized,
559
- });
560
- return smithyClient.decorateServiceException(exception, body);
561
- };
562
- const de_ActiveStatementsExceededExceptionRes = async (parsedOutput, context) => {
563
- const body = parsedOutput.body;
564
- const deserialized = smithyClient._json(body);
565
- const exception = new ActiveStatementsExceededException({
566
- $metadata: deserializeMetadata(parsedOutput),
567
- ...deserialized,
568
- });
569
- return smithyClient.decorateServiceException(exception, body);
570
- };
571
- const de_BatchExecuteStatementExceptionRes = async (parsedOutput, context) => {
572
- const body = parsedOutput.body;
573
- const deserialized = smithyClient._json(body);
574
- const exception = new BatchExecuteStatementException({
575
- $metadata: deserializeMetadata(parsedOutput),
576
- ...deserialized,
577
- });
578
- return smithyClient.decorateServiceException(exception, body);
579
- };
580
- const de_DatabaseConnectionExceptionRes = async (parsedOutput, context) => {
581
- const body = parsedOutput.body;
582
- const deserialized = smithyClient._json(body);
583
- const exception = new DatabaseConnectionException({
584
- $metadata: deserializeMetadata(parsedOutput),
585
- ...deserialized,
586
- });
587
- return smithyClient.decorateServiceException(exception, body);
588
- };
589
- const de_ExecuteStatementExceptionRes = async (parsedOutput, context) => {
590
- const body = parsedOutput.body;
591
- const deserialized = smithyClient._json(body);
592
- const exception = new ExecuteStatementException({
593
- $metadata: deserializeMetadata(parsedOutput),
594
- ...deserialized,
595
- });
596
- return smithyClient.decorateServiceException(exception, body);
597
- };
598
- const de_InternalServerExceptionRes = async (parsedOutput, context) => {
599
- const body = parsedOutput.body;
600
- const deserialized = smithyClient._json(body);
601
- const exception = new InternalServerException({
602
- $metadata: deserializeMetadata(parsedOutput),
603
- ...deserialized,
604
- });
605
- return smithyClient.decorateServiceException(exception, body);
606
- };
607
- const de_QueryTimeoutExceptionRes = async (parsedOutput, context) => {
608
- const body = parsedOutput.body;
609
- const deserialized = smithyClient._json(body);
610
- const exception = new QueryTimeoutException({
611
- $metadata: deserializeMetadata(parsedOutput),
612
- ...deserialized,
613
- });
614
- return smithyClient.decorateServiceException(exception, body);
615
- };
616
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
617
- const body = parsedOutput.body;
618
- const deserialized = smithyClient._json(body);
619
- const exception = new ResourceNotFoundException({
620
- $metadata: deserializeMetadata(parsedOutput),
621
- ...deserialized,
622
- });
623
- return smithyClient.decorateServiceException(exception, body);
624
- };
625
- const de_ValidationExceptionRes = async (parsedOutput, context) => {
626
- const body = parsedOutput.body;
627
- const deserialized = smithyClient._json(body);
628
- const exception = new ValidationException({
629
- $metadata: deserializeMetadata(parsedOutput),
630
- ...deserialized,
631
- });
632
- return smithyClient.decorateServiceException(exception, body);
633
- };
634
- const se_BatchExecuteStatementInput = (input, context) => {
635
- return smithyClient.take(input, {
636
- ClientToken: [true, (_) => _ ?? uuid.v4()],
637
- ClusterIdentifier: [],
638
- Database: [],
639
- DbUser: [],
640
- ResultFormat: [],
641
- SecretArn: [],
642
- SessionId: [],
643
- SessionKeepAliveSeconds: [],
644
- Sqls: smithyClient._json,
645
- StatementName: [],
646
- WithEvent: [],
647
- WorkgroupName: [],
648
- });
649
- };
650
- const se_ExecuteStatementInput = (input, context) => {
651
- return smithyClient.take(input, {
652
- ClientToken: [true, (_) => _ ?? uuid.v4()],
653
- ClusterIdentifier: [],
654
- Database: [],
655
- DbUser: [],
656
- Parameters: smithyClient._json,
657
- ResultFormat: [],
658
- SecretArn: [],
659
- SessionId: [],
660
- SessionKeepAliveSeconds: [],
661
- Sql: [],
662
- StatementName: [],
663
- WithEvent: [],
664
- WorkgroupName: [],
665
- });
666
- };
667
- const de_BatchExecuteStatementOutput = (output, context) => {
668
- return smithyClient.take(output, {
669
- ClusterIdentifier: smithyClient.expectString,
670
- CreatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
671
- Database: smithyClient.expectString,
672
- DbGroups: smithyClient._json,
673
- DbUser: smithyClient.expectString,
674
- Id: smithyClient.expectString,
675
- SecretArn: smithyClient.expectString,
676
- SessionId: smithyClient.expectString,
677
- WorkgroupName: smithyClient.expectString,
678
- });
679
- };
680
- const de_DescribeStatementResponse = (output, context) => {
681
- return smithyClient.take(output, {
682
- ClusterIdentifier: smithyClient.expectString,
683
- CreatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
684
- Database: smithyClient.expectString,
685
- DbUser: smithyClient.expectString,
686
- Duration: smithyClient.expectLong,
687
- Error: smithyClient.expectString,
688
- HasResultSet: smithyClient.expectBoolean,
689
- Id: smithyClient.expectString,
690
- QueryParameters: smithyClient._json,
691
- QueryString: smithyClient.expectString,
692
- RedshiftPid: smithyClient.expectLong,
693
- RedshiftQueryId: smithyClient.expectLong,
694
- ResultFormat: smithyClient.expectString,
695
- ResultRows: smithyClient.expectLong,
696
- ResultSize: smithyClient.expectLong,
697
- SecretArn: smithyClient.expectString,
698
- SessionId: smithyClient.expectString,
699
- Status: smithyClient.expectString,
700
- SubStatements: (_) => de_SubStatementList(_),
701
- UpdatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
702
- WorkgroupName: smithyClient.expectString,
703
- });
704
- };
705
- const de_ExecuteStatementOutput = (output, context) => {
706
- return smithyClient.take(output, {
707
- ClusterIdentifier: smithyClient.expectString,
708
- CreatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
709
- Database: smithyClient.expectString,
710
- DbGroups: smithyClient._json,
711
- DbUser: smithyClient.expectString,
712
- Id: smithyClient.expectString,
713
- SecretArn: smithyClient.expectString,
714
- SessionId: smithyClient.expectString,
715
- WorkgroupName: smithyClient.expectString,
716
- });
717
- };
718
- const de_Field = (output, context) => {
719
- if (output.blobValue != null) {
720
- return {
721
- blobValue: context.base64Decoder(output.blobValue),
722
- };
723
- }
724
- if (smithyClient.expectBoolean(output.booleanValue) !== undefined) {
725
- return { booleanValue: smithyClient.expectBoolean(output.booleanValue) };
726
- }
727
- if (smithyClient.limitedParseDouble(output.doubleValue) !== undefined) {
728
- return { doubleValue: smithyClient.limitedParseDouble(output.doubleValue) };
729
- }
730
- if (smithyClient.expectBoolean(output.isNull) !== undefined) {
731
- return { isNull: smithyClient.expectBoolean(output.isNull) };
732
- }
733
- if (smithyClient.expectLong(output.longValue) !== undefined) {
734
- return { longValue: smithyClient.expectLong(output.longValue) };
735
- }
736
- if (smithyClient.expectString(output.stringValue) !== undefined) {
737
- return { stringValue: smithyClient.expectString(output.stringValue) };
738
- }
739
- return { $unknown: Object.entries(output)[0] };
740
- };
741
- const de_FieldList = (output, context) => {
742
- const retVal = (output || [])
743
- .filter((e) => e != null)
744
- .map((entry) => {
745
- return de_Field(core$1.awsExpectUnion(entry), context);
746
- });
747
- return retVal;
748
- };
749
- const de_GetStatementResultResponse = (output, context) => {
750
- return smithyClient.take(output, {
751
- ColumnMetadata: smithyClient._json,
752
- NextToken: smithyClient.expectString,
753
- Records: (_) => de_SqlRecords(_, context),
754
- TotalNumRows: smithyClient.expectLong,
755
- });
756
- };
757
- const de_ListStatementsResponse = (output, context) => {
758
- return smithyClient.take(output, {
759
- NextToken: smithyClient.expectString,
760
- Statements: (_) => de_StatementList(_),
761
- });
762
- };
763
- const de_SqlRecords = (output, context) => {
764
- const retVal = (output || [])
765
- .filter((e) => e != null)
766
- .map((entry) => {
767
- return de_FieldList(entry, context);
768
- });
769
- return retVal;
770
- };
771
- const de_StatementData = (output, context) => {
772
- return smithyClient.take(output, {
773
- CreatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
774
- Id: smithyClient.expectString,
775
- IsBatchStatement: smithyClient.expectBoolean,
776
- QueryParameters: smithyClient._json,
777
- QueryString: smithyClient.expectString,
778
- QueryStrings: smithyClient._json,
779
- ResultFormat: smithyClient.expectString,
780
- SecretArn: smithyClient.expectString,
781
- SessionId: smithyClient.expectString,
782
- StatementName: smithyClient.expectString,
783
- Status: smithyClient.expectString,
784
- UpdatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
785
- });
786
- };
787
- const de_StatementList = (output, context) => {
788
- const retVal = (output || [])
789
- .filter((e) => e != null)
790
- .map((entry) => {
791
- return de_StatementData(entry);
792
- });
793
- return retVal;
794
- };
795
- const de_SubStatementData = (output, context) => {
796
- return smithyClient.take(output, {
797
- CreatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
798
- Duration: smithyClient.expectLong,
799
- Error: smithyClient.expectString,
800
- HasResultSet: smithyClient.expectBoolean,
801
- Id: smithyClient.expectString,
802
- QueryString: smithyClient.expectString,
803
- RedshiftQueryId: smithyClient.expectLong,
804
- ResultRows: smithyClient.expectLong,
805
- ResultSize: smithyClient.expectLong,
806
- Status: smithyClient.expectString,
807
- UpdatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
808
- });
809
- };
810
- const de_SubStatementList = (output, context) => {
811
- const retVal = (output || [])
812
- .filter((e) => e != null)
813
- .map((entry) => {
814
- return de_SubStatementData(entry);
815
- });
816
- return retVal;
817
- };
818
- const deserializeMetadata = (output) => ({
819
- httpStatusCode: output.statusCode,
820
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
821
- extendedRequestId: output.headers["x-amz-id-2"],
822
- cfId: output.headers["x-amz-cf-id"],
823
- });
824
- const throwDefaultError = smithyClient.withBaseException(RedshiftDataServiceException);
825
- const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
826
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
827
- const contents = {
828
- protocol,
829
- hostname,
830
- port,
831
- method: "POST",
832
- path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
833
- headers,
834
- };
835
- if (body !== undefined) {
836
- contents.body = body;
837
- }
838
- return new protocolHttp.HttpRequest(contents);
839
- };
840
- function sharedHeaders(operation) {
841
- return {
842
- "content-type": "application/x-amz-json-1.1",
843
- "x-amz-target": `RedshiftData.${operation}`,
844
- };
845
- }
300
+ const _ASEE = "ActiveSessionsExceededException";
301
+ const _ASEEc = "ActiveStatementsExceededException";
302
+ const _BES = "BatchExecuteStatement";
303
+ const _BESE = "BatchExecuteStatementException";
304
+ const _BESI = "BatchExecuteStatementInput";
305
+ const _BESO = "BatchExecuteStatementOutput";
306
+ const _CA = "CreatedAt";
307
+ const _CD = "ConnectedDatabase";
308
+ const _CI = "ClusterIdentifier";
309
+ const _CL = "ColumnList";
310
+ const _CM = "ColumnMetadata";
311
+ const _CML = "ColumnMetadataList";
312
+ const _CS = "CancelStatement";
313
+ const _CSR = "CancelStatementRequest";
314
+ const _CSRa = "CancelStatementResponse";
315
+ const _CSVR = "CSVRecords";
316
+ const _CT = "ClientToken";
317
+ const _D = "Database";
318
+ const _DCE = "DatabaseConnectionException";
319
+ const _DG = "DbGroups";
320
+ const _DS = "DescribeStatement";
321
+ const _DSR = "DescribeStatementRequest";
322
+ const _DSRe = "DescribeStatementResponse";
323
+ const _DT = "DescribeTable";
324
+ const _DTR = "DescribeTableRequest";
325
+ const _DTRe = "DescribeTableResponse";
326
+ const _DU = "DbUser";
327
+ const _Da = "Databases";
328
+ const _Du = "Duration";
329
+ const _E = "Error";
330
+ const _ES = "ExecuteStatement";
331
+ const _ESE = "ExecuteStatementException";
332
+ const _ESI = "ExecuteStatementInput";
333
+ const _ESO = "ExecuteStatementOutput";
334
+ const _F = "Field";
335
+ const _FL = "FieldList";
336
+ const _FSR = "FormattedSqlRecords";
337
+ const _GSR = "GetStatementResult";
338
+ const _GSRR = "GetStatementResultRequest";
339
+ const _GSRRe = "GetStatementResultResponse";
340
+ const _GSRV = "GetStatementResultV2";
341
+ const _GSRVR = "GetStatementResultV2Request";
342
+ const _GSRVRe = "GetStatementResultV2Response";
343
+ const _HRS = "HasResultSet";
344
+ const _I = "Id";
345
+ const _IBS = "IsBatchStatement";
346
+ const _ISE = "InternalServerException";
347
+ const _LD = "ListDatabases";
348
+ const _LDR = "ListDatabasesRequest";
349
+ const _LDRi = "ListDatabasesResponse";
350
+ const _LS = "ListSchemas";
351
+ const _LSR = "ListSchemasRequest";
352
+ const _LSRi = "ListSchemasResponse";
353
+ const _LSRis = "ListStatementsRequest";
354
+ const _LSRist = "ListStatementsResponse";
355
+ const _LSi = "ListStatements";
356
+ const _LT = "ListTables";
357
+ const _LTR = "ListTablesRequest";
358
+ const _LTRi = "ListTablesResponse";
359
+ const _M = "Message";
360
+ const _MR = "MaxResults";
361
+ const _NT = "NextToken";
362
+ const _P = "Parameters";
363
+ const _QP = "QueryParameters";
364
+ const _QR = "QueryRecords";
365
+ const _QS = "QueryString";
366
+ const _QSu = "QueryStrings";
367
+ const _QTE = "QueryTimeoutException";
368
+ const _R = "Records";
369
+ const _RF = "ResultFormat";
370
+ const _RI = "ResourceId";
371
+ const _RL = "RoleLevel";
372
+ const _RNFE = "ResourceNotFoundException";
373
+ const _RP = "RedshiftPid";
374
+ const _RQI = "RedshiftQueryId";
375
+ const _RR = "ResultRows";
376
+ const _RS = "ResultSize";
377
+ const _S = "Sqls";
378
+ const _SA = "SecretArn";
379
+ const _SD = "StatementData";
380
+ const _SI = "StatementId";
381
+ const _SIe = "SessionId";
382
+ const _SKAS = "SessionKeepAliveSeconds";
383
+ const _SL = "StatementList";
384
+ const _SN = "StatementName";
385
+ const _SP = "SchemaPattern";
386
+ const _SPL = "SqlParametersList";
387
+ const _SPq = "SqlParameter";
388
+ const _SR = "SqlRecords";
389
+ const _SS = "SubStatements";
390
+ const _SSD = "SubStatementData";
391
+ const _SSL = "SubStatementList";
392
+ const _Sc = "Schema";
393
+ const _Sch = "Schemas";
394
+ const _Sq = "Sql";
395
+ const _St = "Status";
396
+ const _Sta = "Statements";
397
+ const _T = "Table";
398
+ const _TL = "TableList";
399
+ const _TM = "TableMember";
400
+ const _TN = "TableName";
401
+ const _TNR = "TotalNumRows";
402
+ const _TP = "TablePattern";
403
+ const _Ta = "Tables";
404
+ const _UA = "UpdatedAt";
405
+ const _VE = "ValidationException";
406
+ const _WE = "WithEvent";
407
+ const _WN = "WorkgroupName";
408
+ const _bV = "booleanValue";
409
+ const _bVl = "blobValue";
410
+ const _c = "client";
411
+ const _cD = "columnDefault";
412
+ const _dV = "doubleValue";
413
+ const _e = "error";
414
+ const _hE = "httpError";
415
+ const _iC = "isCurrency";
416
+ const _iCS = "isCaseSensitive";
417
+ const _iN = "isNull";
418
+ const _iS = "isSigned";
419
+ const _l = "label";
420
+ const _lV = "longValue";
421
+ const _le = "length";
422
+ const _n = "name";
423
+ const _nu = "nullable";
424
+ const _p = "precision";
425
+ const _s = "server";
426
+ const _sN = "schemaName";
427
+ const _sV = "stringValue";
428
+ const _sc = "scale";
429
+ const _sch = "schema";
430
+ const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.redshiftdata";
431
+ const _t = "type";
432
+ const _tN = "tableName";
433
+ const _tNy = "typeName";
434
+ const _v = "value";
435
+ const n0 = "com.amazonaws.redshiftdata";
436
+ var ActiveSessionsExceededException = [
437
+ -3,
438
+ n0,
439
+ _ASEE,
440
+ {
441
+ [_e]: _c,
442
+ [_hE]: 400,
443
+ },
444
+ [_M],
445
+ [0],
446
+ ];
447
+ schema.TypeRegistry.for(n0).registerError(ActiveSessionsExceededException, ActiveSessionsExceededException$1);
448
+ var ActiveStatementsExceededException = [
449
+ -3,
450
+ n0,
451
+ _ASEEc,
452
+ {
453
+ [_e]: _c,
454
+ [_hE]: 400,
455
+ },
456
+ [_M],
457
+ [0],
458
+ ];
459
+ schema.TypeRegistry.for(n0).registerError(ActiveStatementsExceededException, ActiveStatementsExceededException$1);
460
+ var BatchExecuteStatementException = [
461
+ -3,
462
+ n0,
463
+ _BESE,
464
+ {
465
+ [_e]: _s,
466
+ [_hE]: 500,
467
+ },
468
+ [_M, _SI],
469
+ [0, 0],
470
+ ];
471
+ schema.TypeRegistry.for(n0).registerError(BatchExecuteStatementException, BatchExecuteStatementException$1);
472
+ var BatchExecuteStatementInput = [
473
+ 3,
474
+ n0,
475
+ _BESI,
476
+ 0,
477
+ [_S, _CI, _SA, _DU, _D, _WE, _SN, _WN, _CT, _SKAS, _SIe, _RF],
478
+ [64 | 0, 0, 0, 0, 0, 2, 0, 0, [0, 4], 1, 0, 0],
479
+ ];
480
+ var BatchExecuteStatementOutput = [
481
+ 3,
482
+ n0,
483
+ _BESO,
484
+ 0,
485
+ [_I, _CA, _CI, _DU, _DG, _D, _SA, _WN, _SIe],
486
+ [0, 4, 0, 0, 64 | 0, 0, 0, 0, 0],
487
+ ];
488
+ var CancelStatementRequest = [3, n0, _CSR, 0, [_I], [0]];
489
+ var CancelStatementResponse = [3, n0, _CSRa, 0, [_St], [2]];
490
+ var ColumnMetadata = [
491
+ 3,
492
+ n0,
493
+ _CM,
494
+ 0,
495
+ [_iCS, _iC, _iS, _l, _n, _nu, _p, _sc, _sN, _tN, _tNy, _le, _cD],
496
+ [2, 2, 2, 0, 0, 1, 1, 1, 0, 0, 0, 1, 0],
497
+ ];
498
+ var DatabaseConnectionException = [
499
+ -3,
500
+ n0,
501
+ _DCE,
502
+ {
503
+ [_e]: _s,
504
+ [_hE]: 500,
505
+ },
506
+ [_M],
507
+ [0],
508
+ ];
509
+ schema.TypeRegistry.for(n0).registerError(DatabaseConnectionException, DatabaseConnectionException$1);
510
+ var DescribeStatementRequest = [3, n0, _DSR, 0, [_I], [0]];
511
+ var DescribeStatementResponse = [
512
+ 3,
513
+ n0,
514
+ _DSRe,
515
+ 0,
516
+ [_I, _SA, _DU, _D, _CI, _Du, _E, _St, _CA, _UA, _RP, _HRS, _QS, _RR, _RS, _RQI, _QP, _SS, _WN, _SIe, _RF],
517
+ [0, 0, 0, 0, 0, 1, 0, 0, 4, 4, 1, 2, 0, 1, 1, 1, () => SqlParametersList, () => SubStatementList, 0, 0, 0],
518
+ ];
519
+ var DescribeTableRequest = [
520
+ 3,
521
+ n0,
522
+ _DTR,
523
+ 0,
524
+ [_CI, _SA, _DU, _D, _CD, _Sc, _T, _NT, _MR, _WN],
525
+ [0, 0, 0, 0, 0, 0, 0, 0, 1, 0],
526
+ ];
527
+ var DescribeTableResponse = [3, n0, _DTRe, 0, [_TN, _CL, _NT], [0, () => ColumnList, 0]];
528
+ var ExecuteStatementException = [
529
+ -3,
530
+ n0,
531
+ _ESE,
532
+ {
533
+ [_e]: _s,
534
+ [_hE]: 500,
535
+ },
536
+ [_M, _SI],
537
+ [0, 0],
538
+ ];
539
+ schema.TypeRegistry.for(n0).registerError(ExecuteStatementException, ExecuteStatementException$1);
540
+ var ExecuteStatementInput = [
541
+ 3,
542
+ n0,
543
+ _ESI,
544
+ 0,
545
+ [_Sq, _CI, _SA, _DU, _D, _WE, _SN, _P, _WN, _CT, _SKAS, _SIe, _RF],
546
+ [0, 0, 0, 0, 0, 2, 0, () => SqlParametersList, 0, [0, 4], 1, 0, 0],
547
+ ];
548
+ var ExecuteStatementOutput = [
549
+ 3,
550
+ n0,
551
+ _ESO,
552
+ 0,
553
+ [_I, _CA, _CI, _DU, _DG, _D, _SA, _WN, _SIe],
554
+ [0, 4, 0, 0, 64 | 0, 0, 0, 0, 0],
555
+ ];
556
+ var GetStatementResultRequest = [3, n0, _GSRR, 0, [_I, _NT], [0, 0]];
557
+ var GetStatementResultResponse = [
558
+ 3,
559
+ n0,
560
+ _GSRRe,
561
+ 0,
562
+ [_R, _CM, _TNR, _NT],
563
+ [() => SqlRecords, () => ColumnMetadataList, 1, 0],
564
+ ];
565
+ var GetStatementResultV2Request = [3, n0, _GSRVR, 0, [_I, _NT], [0, 0]];
566
+ var GetStatementResultV2Response = [
567
+ 3,
568
+ n0,
569
+ _GSRVRe,
570
+ 0,
571
+ [_R, _CM, _TNR, _RF, _NT],
572
+ [() => FormattedSqlRecords, () => ColumnMetadataList, 1, 0, 0],
573
+ ];
574
+ var InternalServerException = [
575
+ -3,
576
+ n0,
577
+ _ISE,
578
+ {
579
+ [_e]: _s,
580
+ [_hE]: 500,
581
+ },
582
+ [_M],
583
+ [0],
584
+ ];
585
+ schema.TypeRegistry.for(n0).registerError(InternalServerException, InternalServerException$1);
586
+ var ListDatabasesRequest = [
587
+ 3,
588
+ n0,
589
+ _LDR,
590
+ 0,
591
+ [_CI, _D, _SA, _DU, _NT, _MR, _WN],
592
+ [0, 0, 0, 0, 0, 1, 0],
593
+ ];
594
+ var ListDatabasesResponse = [3, n0, _LDRi, 0, [_Da, _NT], [64 | 0, 0]];
595
+ var ListSchemasRequest = [
596
+ 3,
597
+ n0,
598
+ _LSR,
599
+ 0,
600
+ [_CI, _SA, _DU, _D, _CD, _SP, _NT, _MR, _WN],
601
+ [0, 0, 0, 0, 0, 0, 0, 1, 0],
602
+ ];
603
+ var ListSchemasResponse = [3, n0, _LSRi, 0, [_Sch, _NT], [64 | 0, 0]];
604
+ var ListStatementsRequest = [
605
+ 3,
606
+ n0,
607
+ _LSRis,
608
+ 0,
609
+ [_NT, _MR, _SN, _St, _RL, _D, _CI, _WN],
610
+ [0, 1, 0, 0, 2, 0, 0, 0],
611
+ ];
612
+ var ListStatementsResponse = [3, n0, _LSRist, 0, [_Sta, _NT], [() => StatementList, 0]];
613
+ var ListTablesRequest = [
614
+ 3,
615
+ n0,
616
+ _LTR,
617
+ 0,
618
+ [_CI, _SA, _DU, _D, _CD, _SP, _TP, _NT, _MR, _WN],
619
+ [0, 0, 0, 0, 0, 0, 0, 0, 1, 0],
620
+ ];
621
+ var ListTablesResponse = [3, n0, _LTRi, 0, [_Ta, _NT], [() => TableList, 0]];
622
+ var QueryTimeoutException = [
623
+ -3,
624
+ n0,
625
+ _QTE,
626
+ {
627
+ [_e]: _c,
628
+ [_hE]: 400,
629
+ },
630
+ [_M],
631
+ [0],
632
+ ];
633
+ schema.TypeRegistry.for(n0).registerError(QueryTimeoutException, QueryTimeoutException$1);
634
+ var ResourceNotFoundException = [
635
+ -3,
636
+ n0,
637
+ _RNFE,
638
+ {
639
+ [_e]: _c,
640
+ [_hE]: 404,
641
+ },
642
+ [_M, _RI],
643
+ [0, 0],
644
+ ];
645
+ schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException, ResourceNotFoundException$1);
646
+ var SqlParameter = [3, n0, _SPq, 0, [_n, _v], [0, 0]];
647
+ var StatementData = [
648
+ 3,
649
+ n0,
650
+ _SD,
651
+ 0,
652
+ [_I, _QS, _QSu, _SA, _St, _SN, _CA, _UA, _QP, _IBS, _RF, _SIe],
653
+ [0, 0, 64 | 0, 0, 0, 0, 4, 4, () => SqlParametersList, 2, 0, 0],
654
+ ];
655
+ var SubStatementData = [
656
+ 3,
657
+ n0,
658
+ _SSD,
659
+ 0,
660
+ [_I, _Du, _E, _St, _CA, _UA, _QS, _RR, _RS, _RQI, _HRS],
661
+ [0, 1, 0, 0, 4, 4, 0, 1, 1, 1, 2],
662
+ ];
663
+ var TableMember = [3, n0, _TM, 0, [_n, _t, _sch], [0, 0, 0]];
664
+ var ValidationException = [
665
+ -3,
666
+ n0,
667
+ _VE,
668
+ {
669
+ [_e]: _c,
670
+ [_hE]: 400,
671
+ },
672
+ [_M],
673
+ [0],
674
+ ];
675
+ schema.TypeRegistry.for(n0).registerError(ValidationException, ValidationException$1);
676
+ var RedshiftDataServiceException = [-3, _sm, "RedshiftDataServiceException", 0, [], []];
677
+ schema.TypeRegistry.for(_sm).registerError(RedshiftDataServiceException, RedshiftDataServiceException$1);
678
+ var ColumnList = [1, n0, _CL, 0, () => ColumnMetadata];
679
+ var ColumnMetadataList = [1, n0, _CML, 0, () => ColumnMetadata];
680
+ var FieldList = [1, n0, _FL, 0, () => Field];
681
+ var FormattedSqlRecords = [1, n0, _FSR, 0, () => QueryRecords];
682
+ var SqlParametersList = [1, n0, _SPL, 0, () => SqlParameter];
683
+ var SqlRecords = [1, n0, _SR, 0, () => FieldList];
684
+ var StatementList = [1, n0, _SL, 0, () => StatementData];
685
+ var SubStatementList = [1, n0, _SSL, 0, () => SubStatementData];
686
+ var TableList = [1, n0, _TL, 0, () => TableMember];
687
+ var Field = [3, n0, _F, 0, [_iN, _bV, _lV, _dV, _sV, _bVl], [2, 2, 1, 1, 0, 21]];
688
+ var QueryRecords = [3, n0, _QR, 0, [_CSVR], [0]];
689
+ var BatchExecuteStatement = [
690
+ 9,
691
+ n0,
692
+ _BES,
693
+ 0,
694
+ () => BatchExecuteStatementInput,
695
+ () => BatchExecuteStatementOutput,
696
+ ];
697
+ var CancelStatement = [
698
+ 9,
699
+ n0,
700
+ _CS,
701
+ 0,
702
+ () => CancelStatementRequest,
703
+ () => CancelStatementResponse,
704
+ ];
705
+ var DescribeStatement = [
706
+ 9,
707
+ n0,
708
+ _DS,
709
+ 0,
710
+ () => DescribeStatementRequest,
711
+ () => DescribeStatementResponse,
712
+ ];
713
+ var DescribeTable = [
714
+ 9,
715
+ n0,
716
+ _DT,
717
+ 0,
718
+ () => DescribeTableRequest,
719
+ () => DescribeTableResponse,
720
+ ];
721
+ var ExecuteStatement = [
722
+ 9,
723
+ n0,
724
+ _ES,
725
+ 0,
726
+ () => ExecuteStatementInput,
727
+ () => ExecuteStatementOutput,
728
+ ];
729
+ var GetStatementResult = [
730
+ 9,
731
+ n0,
732
+ _GSR,
733
+ 0,
734
+ () => GetStatementResultRequest,
735
+ () => GetStatementResultResponse,
736
+ ];
737
+ var GetStatementResultV2 = [
738
+ 9,
739
+ n0,
740
+ _GSRV,
741
+ 0,
742
+ () => GetStatementResultV2Request,
743
+ () => GetStatementResultV2Response,
744
+ ];
745
+ var ListDatabases = [
746
+ 9,
747
+ n0,
748
+ _LD,
749
+ 0,
750
+ () => ListDatabasesRequest,
751
+ () => ListDatabasesResponse,
752
+ ];
753
+ var ListSchemas = [9, n0, _LS, 0, () => ListSchemasRequest, () => ListSchemasResponse];
754
+ var ListStatements = [
755
+ 9,
756
+ n0,
757
+ _LSi,
758
+ 0,
759
+ () => ListStatementsRequest,
760
+ () => ListStatementsResponse,
761
+ ];
762
+ var ListTables = [9, n0, _LT, 0, () => ListTablesRequest, () => ListTablesResponse];
846
763
 
847
764
  class BatchExecuteStatementCommand extends smithyClient.Command
848
765
  .classBuilder()
849
766
  .ep(commonParams)
850
767
  .m(function (Command, cs, config, o) {
851
- return [
852
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
853
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
854
- ];
768
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
855
769
  })
856
770
  .s("RedshiftData", "BatchExecuteStatement", {})
857
771
  .n("RedshiftDataClient", "BatchExecuteStatementCommand")
858
- .f(void 0, void 0)
859
- .ser(se_BatchExecuteStatementCommand)
860
- .de(de_BatchExecuteStatementCommand)
772
+ .sc(BatchExecuteStatement)
861
773
  .build() {
862
774
  }
863
775
 
@@ -865,16 +777,11 @@ class CancelStatementCommand extends smithyClient.Command
865
777
  .classBuilder()
866
778
  .ep(commonParams)
867
779
  .m(function (Command, cs, config, o) {
868
- return [
869
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
870
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
871
- ];
780
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
872
781
  })
873
782
  .s("RedshiftData", "CancelStatement", {})
874
783
  .n("RedshiftDataClient", "CancelStatementCommand")
875
- .f(void 0, void 0)
876
- .ser(se_CancelStatementCommand)
877
- .de(de_CancelStatementCommand)
784
+ .sc(CancelStatement)
878
785
  .build() {
879
786
  }
880
787
 
@@ -882,16 +789,11 @@ class DescribeStatementCommand extends smithyClient.Command
882
789
  .classBuilder()
883
790
  .ep(commonParams)
884
791
  .m(function (Command, cs, config, o) {
885
- return [
886
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
887
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
888
- ];
792
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
889
793
  })
890
794
  .s("RedshiftData", "DescribeStatement", {})
891
795
  .n("RedshiftDataClient", "DescribeStatementCommand")
892
- .f(void 0, void 0)
893
- .ser(se_DescribeStatementCommand)
894
- .de(de_DescribeStatementCommand)
796
+ .sc(DescribeStatement)
895
797
  .build() {
896
798
  }
897
799
 
@@ -899,16 +801,11 @@ class DescribeTableCommand extends smithyClient.Command
899
801
  .classBuilder()
900
802
  .ep(commonParams)
901
803
  .m(function (Command, cs, config, o) {
902
- return [
903
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
904
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
905
- ];
804
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
906
805
  })
907
806
  .s("RedshiftData", "DescribeTable", {})
908
807
  .n("RedshiftDataClient", "DescribeTableCommand")
909
- .f(void 0, void 0)
910
- .ser(se_DescribeTableCommand)
911
- .de(de_DescribeTableCommand)
808
+ .sc(DescribeTable)
912
809
  .build() {
913
810
  }
914
811
 
@@ -916,16 +813,11 @@ class ExecuteStatementCommand extends smithyClient.Command
916
813
  .classBuilder()
917
814
  .ep(commonParams)
918
815
  .m(function (Command, cs, config, o) {
919
- return [
920
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
921
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
922
- ];
816
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
923
817
  })
924
818
  .s("RedshiftData", "ExecuteStatement", {})
925
819
  .n("RedshiftDataClient", "ExecuteStatementCommand")
926
- .f(void 0, void 0)
927
- .ser(se_ExecuteStatementCommand)
928
- .de(de_ExecuteStatementCommand)
820
+ .sc(ExecuteStatement)
929
821
  .build() {
930
822
  }
931
823
 
@@ -933,16 +825,11 @@ class GetStatementResultCommand extends smithyClient.Command
933
825
  .classBuilder()
934
826
  .ep(commonParams)
935
827
  .m(function (Command, cs, config, o) {
936
- return [
937
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
938
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
939
- ];
828
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
940
829
  })
941
830
  .s("RedshiftData", "GetStatementResult", {})
942
831
  .n("RedshiftDataClient", "GetStatementResultCommand")
943
- .f(void 0, void 0)
944
- .ser(se_GetStatementResultCommand)
945
- .de(de_GetStatementResultCommand)
832
+ .sc(GetStatementResult)
946
833
  .build() {
947
834
  }
948
835
 
@@ -950,16 +837,11 @@ class GetStatementResultV2Command extends smithyClient.Command
950
837
  .classBuilder()
951
838
  .ep(commonParams)
952
839
  .m(function (Command, cs, config, o) {
953
- return [
954
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
955
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
956
- ];
840
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
957
841
  })
958
842
  .s("RedshiftData", "GetStatementResultV2", {})
959
843
  .n("RedshiftDataClient", "GetStatementResultV2Command")
960
- .f(void 0, void 0)
961
- .ser(se_GetStatementResultV2Command)
962
- .de(de_GetStatementResultV2Command)
844
+ .sc(GetStatementResultV2)
963
845
  .build() {
964
846
  }
965
847
 
@@ -967,16 +849,11 @@ class ListDatabasesCommand extends smithyClient.Command
967
849
  .classBuilder()
968
850
  .ep(commonParams)
969
851
  .m(function (Command, cs, config, o) {
970
- return [
971
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
972
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
973
- ];
852
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
974
853
  })
975
854
  .s("RedshiftData", "ListDatabases", {})
976
855
  .n("RedshiftDataClient", "ListDatabasesCommand")
977
- .f(void 0, void 0)
978
- .ser(se_ListDatabasesCommand)
979
- .de(de_ListDatabasesCommand)
856
+ .sc(ListDatabases)
980
857
  .build() {
981
858
  }
982
859
 
@@ -984,16 +861,11 @@ class ListSchemasCommand extends smithyClient.Command
984
861
  .classBuilder()
985
862
  .ep(commonParams)
986
863
  .m(function (Command, cs, config, o) {
987
- return [
988
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
989
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
990
- ];
864
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
991
865
  })
992
866
  .s("RedshiftData", "ListSchemas", {})
993
867
  .n("RedshiftDataClient", "ListSchemasCommand")
994
- .f(void 0, void 0)
995
- .ser(se_ListSchemasCommand)
996
- .de(de_ListSchemasCommand)
868
+ .sc(ListSchemas)
997
869
  .build() {
998
870
  }
999
871
 
@@ -1001,16 +873,11 @@ class ListStatementsCommand extends smithyClient.Command
1001
873
  .classBuilder()
1002
874
  .ep(commonParams)
1003
875
  .m(function (Command, cs, config, o) {
1004
- return [
1005
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1006
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1007
- ];
876
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1008
877
  })
1009
878
  .s("RedshiftData", "ListStatements", {})
1010
879
  .n("RedshiftDataClient", "ListStatementsCommand")
1011
- .f(void 0, void 0)
1012
- .ser(se_ListStatementsCommand)
1013
- .de(de_ListStatementsCommand)
880
+ .sc(ListStatements)
1014
881
  .build() {
1015
882
  }
1016
883
 
@@ -1018,16 +885,11 @@ class ListTablesCommand extends smithyClient.Command
1018
885
  .classBuilder()
1019
886
  .ep(commonParams)
1020
887
  .m(function (Command, cs, config, o) {
1021
- return [
1022
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1023
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1024
- ];
888
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1025
889
  })
1026
890
  .s("RedshiftData", "ListTables", {})
1027
891
  .n("RedshiftDataClient", "ListTablesCommand")
1028
- .f(void 0, void 0)
1029
- .ser(se_ListTablesCommand)
1030
- .de(de_ListTablesCommand)
892
+ .sc(ListTables)
1031
893
  .build() {
1032
894
  }
1033
895
 
@@ -1070,32 +932,32 @@ Object.defineProperty(exports, "__Client", {
1070
932
  enumerable: true,
1071
933
  get: function () { return smithyClient.Client; }
1072
934
  });
1073
- exports.ActiveSessionsExceededException = ActiveSessionsExceededException;
1074
- exports.ActiveStatementsExceededException = ActiveStatementsExceededException;
935
+ exports.ActiveSessionsExceededException = ActiveSessionsExceededException$1;
936
+ exports.ActiveStatementsExceededException = ActiveStatementsExceededException$1;
1075
937
  exports.BatchExecuteStatementCommand = BatchExecuteStatementCommand;
1076
- exports.BatchExecuteStatementException = BatchExecuteStatementException;
938
+ exports.BatchExecuteStatementException = BatchExecuteStatementException$1;
1077
939
  exports.CancelStatementCommand = CancelStatementCommand;
1078
- exports.DatabaseConnectionException = DatabaseConnectionException;
940
+ exports.DatabaseConnectionException = DatabaseConnectionException$1;
1079
941
  exports.DescribeStatementCommand = DescribeStatementCommand;
1080
942
  exports.DescribeTableCommand = DescribeTableCommand;
1081
943
  exports.ExecuteStatementCommand = ExecuteStatementCommand;
1082
- exports.ExecuteStatementException = ExecuteStatementException;
944
+ exports.ExecuteStatementException = ExecuteStatementException$1;
1083
945
  exports.GetStatementResultCommand = GetStatementResultCommand;
1084
946
  exports.GetStatementResultV2Command = GetStatementResultV2Command;
1085
- exports.InternalServerException = InternalServerException;
947
+ exports.InternalServerException = InternalServerException$1;
1086
948
  exports.ListDatabasesCommand = ListDatabasesCommand;
1087
949
  exports.ListSchemasCommand = ListSchemasCommand;
1088
950
  exports.ListStatementsCommand = ListStatementsCommand;
1089
951
  exports.ListTablesCommand = ListTablesCommand;
1090
- exports.QueryTimeoutException = QueryTimeoutException;
952
+ exports.QueryTimeoutException = QueryTimeoutException$1;
1091
953
  exports.RedshiftData = RedshiftData;
1092
954
  exports.RedshiftDataClient = RedshiftDataClient;
1093
- exports.RedshiftDataServiceException = RedshiftDataServiceException;
1094
- exports.ResourceNotFoundException = ResourceNotFoundException;
955
+ exports.RedshiftDataServiceException = RedshiftDataServiceException$1;
956
+ exports.ResourceNotFoundException = ResourceNotFoundException$1;
1095
957
  exports.ResultFormatString = ResultFormatString;
1096
958
  exports.StatementStatusString = StatementStatusString;
1097
959
  exports.StatusString = StatusString;
1098
- exports.ValidationException = ValidationException;
960
+ exports.ValidationException = ValidationException$1;
1099
961
  exports.paginateDescribeTable = paginateDescribeTable;
1100
962
  exports.paginateGetStatementResult = paginateGetStatementResult;
1101
963
  exports.paginateGetStatementResultV2 = paginateGetStatementResultV2;