@aws-sdk/client-redshift-data 3.927.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.
- package/dist-cjs/index.js +517 -655
- package/dist-cjs/runtimeConfig.shared.js +7 -0
- package/dist-es/RedshiftDataClient.js +2 -0
- package/dist-es/commands/BatchExecuteStatementCommand.js +3 -9
- package/dist-es/commands/CancelStatementCommand.js +3 -9
- package/dist-es/commands/DescribeStatementCommand.js +3 -9
- package/dist-es/commands/DescribeTableCommand.js +3 -9
- package/dist-es/commands/ExecuteStatementCommand.js +3 -9
- package/dist-es/commands/GetStatementResultCommand.js +3 -9
- package/dist-es/commands/GetStatementResultV2Command.js +3 -9
- package/dist-es/commands/ListDatabasesCommand.js +3 -9
- package/dist-es/commands/ListSchemasCommand.js +3 -9
- package/dist-es/commands/ListStatementsCommand.js +3 -9
- package/dist-es/commands/ListTablesCommand.js +3 -9
- package/dist-es/runtimeConfig.shared.js +7 -0
- package/dist-es/schemas/schemas_0.js +471 -0
- package/dist-types/RedshiftDataClient.d.ts +10 -1
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +65 -0
- package/dist-types/ts3.4/RedshiftDataClient.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +70 -0
- package/package.json +5 -6
- package/dist-es/protocols/Aws_json1_1.js +0 -555
- package/dist-types/protocols/Aws_json1_1.d.ts +0 -101
- 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
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
const
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
const
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
const
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
const
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
const
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
const
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
const
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
const
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
const
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
const
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
const
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
const
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
const
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
const
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
const
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
const
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
}
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
}
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
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
|
-
.
|
|
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
|
-
.
|
|
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
|
-
.
|
|
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
|
-
.
|
|
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
|
-
.
|
|
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
|
-
.
|
|
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
|
-
.
|
|
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
|
-
.
|
|
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
|
-
.
|
|
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
|
-
.
|
|
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
|
-
.
|
|
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;
|