@aws-sdk/client-redshift-data 3.312.0 → 3.315.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/protocols/Aws_json1_1.js +135 -428
- package/dist-es/protocols/Aws_json1_1.js +136 -429
- package/package.json +6 -6
|
@@ -16,21 +16,21 @@ exports.se_BatchExecuteStatementCommand = se_BatchExecuteStatementCommand;
|
|
|
16
16
|
const se_CancelStatementCommand = async (input, context) => {
|
|
17
17
|
const headers = sharedHeaders("CancelStatement");
|
|
18
18
|
let body;
|
|
19
|
-
body = JSON.stringify(
|
|
19
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
20
20
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
21
21
|
};
|
|
22
22
|
exports.se_CancelStatementCommand = se_CancelStatementCommand;
|
|
23
23
|
const se_DescribeStatementCommand = async (input, context) => {
|
|
24
24
|
const headers = sharedHeaders("DescribeStatement");
|
|
25
25
|
let body;
|
|
26
|
-
body = JSON.stringify(
|
|
26
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
27
27
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
28
28
|
};
|
|
29
29
|
exports.se_DescribeStatementCommand = se_DescribeStatementCommand;
|
|
30
30
|
const se_DescribeTableCommand = async (input, context) => {
|
|
31
31
|
const headers = sharedHeaders("DescribeTable");
|
|
32
32
|
let body;
|
|
33
|
-
body = JSON.stringify(
|
|
33
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
34
34
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
35
35
|
};
|
|
36
36
|
exports.se_DescribeTableCommand = se_DescribeTableCommand;
|
|
@@ -44,35 +44,35 @@ exports.se_ExecuteStatementCommand = se_ExecuteStatementCommand;
|
|
|
44
44
|
const se_GetStatementResultCommand = async (input, context) => {
|
|
45
45
|
const headers = sharedHeaders("GetStatementResult");
|
|
46
46
|
let body;
|
|
47
|
-
body = JSON.stringify(
|
|
47
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
48
48
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
49
49
|
};
|
|
50
50
|
exports.se_GetStatementResultCommand = se_GetStatementResultCommand;
|
|
51
51
|
const se_ListDatabasesCommand = async (input, context) => {
|
|
52
52
|
const headers = sharedHeaders("ListDatabases");
|
|
53
53
|
let body;
|
|
54
|
-
body = JSON.stringify(
|
|
54
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
55
55
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
56
56
|
};
|
|
57
57
|
exports.se_ListDatabasesCommand = se_ListDatabasesCommand;
|
|
58
58
|
const se_ListSchemasCommand = async (input, context) => {
|
|
59
59
|
const headers = sharedHeaders("ListSchemas");
|
|
60
60
|
let body;
|
|
61
|
-
body = JSON.stringify(
|
|
61
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
62
62
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
63
63
|
};
|
|
64
64
|
exports.se_ListSchemasCommand = se_ListSchemasCommand;
|
|
65
65
|
const se_ListStatementsCommand = async (input, context) => {
|
|
66
66
|
const headers = sharedHeaders("ListStatements");
|
|
67
67
|
let body;
|
|
68
|
-
body = JSON.stringify(
|
|
68
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
69
69
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
70
70
|
};
|
|
71
71
|
exports.se_ListStatementsCommand = se_ListStatementsCommand;
|
|
72
72
|
const se_ListTablesCommand = async (input, context) => {
|
|
73
73
|
const headers = sharedHeaders("ListTables");
|
|
74
74
|
let body;
|
|
75
|
-
body = JSON.stringify(
|
|
75
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
76
76
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
77
|
};
|
|
78
78
|
exports.se_ListTablesCommand = se_ListTablesCommand;
|
|
@@ -87,7 +87,7 @@ const de_BatchExecuteStatementCommand = async (output, context) => {
|
|
|
87
87
|
$metadata: deserializeMetadata(output),
|
|
88
88
|
...contents,
|
|
89
89
|
};
|
|
90
|
-
return
|
|
90
|
+
return response;
|
|
91
91
|
};
|
|
92
92
|
exports.de_BatchExecuteStatementCommand = de_BatchExecuteStatementCommand;
|
|
93
93
|
const de_BatchExecuteStatementCommandError = async (output, context) => {
|
|
@@ -108,10 +108,9 @@ const de_BatchExecuteStatementCommandError = async (output, context) => {
|
|
|
108
108
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
109
109
|
default:
|
|
110
110
|
const parsedBody = parsedOutput.body;
|
|
111
|
-
|
|
111
|
+
return throwDefaultError({
|
|
112
112
|
output,
|
|
113
113
|
parsedBody,
|
|
114
|
-
exceptionCtor: RedshiftDataServiceException_1.RedshiftDataServiceException,
|
|
115
114
|
errorCode,
|
|
116
115
|
});
|
|
117
116
|
}
|
|
@@ -122,12 +121,12 @@ const de_CancelStatementCommand = async (output, context) => {
|
|
|
122
121
|
}
|
|
123
122
|
const data = await parseBody(output.body, context);
|
|
124
123
|
let contents = {};
|
|
125
|
-
contents =
|
|
124
|
+
contents = (0, smithy_client_1._json)(data);
|
|
126
125
|
const response = {
|
|
127
126
|
$metadata: deserializeMetadata(output),
|
|
128
127
|
...contents,
|
|
129
128
|
};
|
|
130
|
-
return
|
|
129
|
+
return response;
|
|
131
130
|
};
|
|
132
131
|
exports.de_CancelStatementCommand = de_CancelStatementCommand;
|
|
133
132
|
const de_CancelStatementCommandError = async (output, context) => {
|
|
@@ -151,10 +150,9 @@ const de_CancelStatementCommandError = async (output, context) => {
|
|
|
151
150
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
152
151
|
default:
|
|
153
152
|
const parsedBody = parsedOutput.body;
|
|
154
|
-
|
|
153
|
+
return throwDefaultError({
|
|
155
154
|
output,
|
|
156
155
|
parsedBody,
|
|
157
|
-
exceptionCtor: RedshiftDataServiceException_1.RedshiftDataServiceException,
|
|
158
156
|
errorCode,
|
|
159
157
|
});
|
|
160
158
|
}
|
|
@@ -170,7 +168,7 @@ const de_DescribeStatementCommand = async (output, context) => {
|
|
|
170
168
|
$metadata: deserializeMetadata(output),
|
|
171
169
|
...contents,
|
|
172
170
|
};
|
|
173
|
-
return
|
|
171
|
+
return response;
|
|
174
172
|
};
|
|
175
173
|
exports.de_DescribeStatementCommand = de_DescribeStatementCommand;
|
|
176
174
|
const de_DescribeStatementCommandError = async (output, context) => {
|
|
@@ -191,10 +189,9 @@ const de_DescribeStatementCommandError = async (output, context) => {
|
|
|
191
189
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
192
190
|
default:
|
|
193
191
|
const parsedBody = parsedOutput.body;
|
|
194
|
-
|
|
192
|
+
return throwDefaultError({
|
|
195
193
|
output,
|
|
196
194
|
parsedBody,
|
|
197
|
-
exceptionCtor: RedshiftDataServiceException_1.RedshiftDataServiceException,
|
|
198
195
|
errorCode,
|
|
199
196
|
});
|
|
200
197
|
}
|
|
@@ -205,12 +202,12 @@ const de_DescribeTableCommand = async (output, context) => {
|
|
|
205
202
|
}
|
|
206
203
|
const data = await parseBody(output.body, context);
|
|
207
204
|
let contents = {};
|
|
208
|
-
contents =
|
|
205
|
+
contents = (0, smithy_client_1._json)(data);
|
|
209
206
|
const response = {
|
|
210
207
|
$metadata: deserializeMetadata(output),
|
|
211
208
|
...contents,
|
|
212
209
|
};
|
|
213
|
-
return
|
|
210
|
+
return response;
|
|
214
211
|
};
|
|
215
212
|
exports.de_DescribeTableCommand = de_DescribeTableCommand;
|
|
216
213
|
const de_DescribeTableCommandError = async (output, context) => {
|
|
@@ -231,10 +228,9 @@ const de_DescribeTableCommandError = async (output, context) => {
|
|
|
231
228
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
232
229
|
default:
|
|
233
230
|
const parsedBody = parsedOutput.body;
|
|
234
|
-
|
|
231
|
+
return throwDefaultError({
|
|
235
232
|
output,
|
|
236
233
|
parsedBody,
|
|
237
|
-
exceptionCtor: RedshiftDataServiceException_1.RedshiftDataServiceException,
|
|
238
234
|
errorCode,
|
|
239
235
|
});
|
|
240
236
|
}
|
|
@@ -250,7 +246,7 @@ const de_ExecuteStatementCommand = async (output, context) => {
|
|
|
250
246
|
$metadata: deserializeMetadata(output),
|
|
251
247
|
...contents,
|
|
252
248
|
};
|
|
253
|
-
return
|
|
249
|
+
return response;
|
|
254
250
|
};
|
|
255
251
|
exports.de_ExecuteStatementCommand = de_ExecuteStatementCommand;
|
|
256
252
|
const de_ExecuteStatementCommandError = async (output, context) => {
|
|
@@ -271,10 +267,9 @@ const de_ExecuteStatementCommandError = async (output, context) => {
|
|
|
271
267
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
272
268
|
default:
|
|
273
269
|
const parsedBody = parsedOutput.body;
|
|
274
|
-
|
|
270
|
+
return throwDefaultError({
|
|
275
271
|
output,
|
|
276
272
|
parsedBody,
|
|
277
|
-
exceptionCtor: RedshiftDataServiceException_1.RedshiftDataServiceException,
|
|
278
273
|
errorCode,
|
|
279
274
|
});
|
|
280
275
|
}
|
|
@@ -290,7 +285,7 @@ const de_GetStatementResultCommand = async (output, context) => {
|
|
|
290
285
|
$metadata: deserializeMetadata(output),
|
|
291
286
|
...contents,
|
|
292
287
|
};
|
|
293
|
-
return
|
|
288
|
+
return response;
|
|
294
289
|
};
|
|
295
290
|
exports.de_GetStatementResultCommand = de_GetStatementResultCommand;
|
|
296
291
|
const de_GetStatementResultCommandError = async (output, context) => {
|
|
@@ -311,10 +306,9 @@ const de_GetStatementResultCommandError = async (output, context) => {
|
|
|
311
306
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
312
307
|
default:
|
|
313
308
|
const parsedBody = parsedOutput.body;
|
|
314
|
-
|
|
309
|
+
return throwDefaultError({
|
|
315
310
|
output,
|
|
316
311
|
parsedBody,
|
|
317
|
-
exceptionCtor: RedshiftDataServiceException_1.RedshiftDataServiceException,
|
|
318
312
|
errorCode,
|
|
319
313
|
});
|
|
320
314
|
}
|
|
@@ -325,12 +319,12 @@ const de_ListDatabasesCommand = async (output, context) => {
|
|
|
325
319
|
}
|
|
326
320
|
const data = await parseBody(output.body, context);
|
|
327
321
|
let contents = {};
|
|
328
|
-
contents =
|
|
322
|
+
contents = (0, smithy_client_1._json)(data);
|
|
329
323
|
const response = {
|
|
330
324
|
$metadata: deserializeMetadata(output),
|
|
331
325
|
...contents,
|
|
332
326
|
};
|
|
333
|
-
return
|
|
327
|
+
return response;
|
|
334
328
|
};
|
|
335
329
|
exports.de_ListDatabasesCommand = de_ListDatabasesCommand;
|
|
336
330
|
const de_ListDatabasesCommandError = async (output, context) => {
|
|
@@ -351,10 +345,9 @@ const de_ListDatabasesCommandError = async (output, context) => {
|
|
|
351
345
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
352
346
|
default:
|
|
353
347
|
const parsedBody = parsedOutput.body;
|
|
354
|
-
|
|
348
|
+
return throwDefaultError({
|
|
355
349
|
output,
|
|
356
350
|
parsedBody,
|
|
357
|
-
exceptionCtor: RedshiftDataServiceException_1.RedshiftDataServiceException,
|
|
358
351
|
errorCode,
|
|
359
352
|
});
|
|
360
353
|
}
|
|
@@ -365,12 +358,12 @@ const de_ListSchemasCommand = async (output, context) => {
|
|
|
365
358
|
}
|
|
366
359
|
const data = await parseBody(output.body, context);
|
|
367
360
|
let contents = {};
|
|
368
|
-
contents =
|
|
361
|
+
contents = (0, smithy_client_1._json)(data);
|
|
369
362
|
const response = {
|
|
370
363
|
$metadata: deserializeMetadata(output),
|
|
371
364
|
...contents,
|
|
372
365
|
};
|
|
373
|
-
return
|
|
366
|
+
return response;
|
|
374
367
|
};
|
|
375
368
|
exports.de_ListSchemasCommand = de_ListSchemasCommand;
|
|
376
369
|
const de_ListSchemasCommandError = async (output, context) => {
|
|
@@ -391,10 +384,9 @@ const de_ListSchemasCommandError = async (output, context) => {
|
|
|
391
384
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
392
385
|
default:
|
|
393
386
|
const parsedBody = parsedOutput.body;
|
|
394
|
-
|
|
387
|
+
return throwDefaultError({
|
|
395
388
|
output,
|
|
396
389
|
parsedBody,
|
|
397
|
-
exceptionCtor: RedshiftDataServiceException_1.RedshiftDataServiceException,
|
|
398
390
|
errorCode,
|
|
399
391
|
});
|
|
400
392
|
}
|
|
@@ -410,7 +402,7 @@ const de_ListStatementsCommand = async (output, context) => {
|
|
|
410
402
|
$metadata: deserializeMetadata(output),
|
|
411
403
|
...contents,
|
|
412
404
|
};
|
|
413
|
-
return
|
|
405
|
+
return response;
|
|
414
406
|
};
|
|
415
407
|
exports.de_ListStatementsCommand = de_ListStatementsCommand;
|
|
416
408
|
const de_ListStatementsCommandError = async (output, context) => {
|
|
@@ -428,10 +420,9 @@ const de_ListStatementsCommandError = async (output, context) => {
|
|
|
428
420
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
429
421
|
default:
|
|
430
422
|
const parsedBody = parsedOutput.body;
|
|
431
|
-
|
|
423
|
+
return throwDefaultError({
|
|
432
424
|
output,
|
|
433
425
|
parsedBody,
|
|
434
|
-
exceptionCtor: RedshiftDataServiceException_1.RedshiftDataServiceException,
|
|
435
426
|
errorCode,
|
|
436
427
|
});
|
|
437
428
|
}
|
|
@@ -442,12 +433,12 @@ const de_ListTablesCommand = async (output, context) => {
|
|
|
442
433
|
}
|
|
443
434
|
const data = await parseBody(output.body, context);
|
|
444
435
|
let contents = {};
|
|
445
|
-
contents =
|
|
436
|
+
contents = (0, smithy_client_1._json)(data);
|
|
446
437
|
const response = {
|
|
447
438
|
$metadata: deserializeMetadata(output),
|
|
448
439
|
...contents,
|
|
449
440
|
};
|
|
450
|
-
return
|
|
441
|
+
return response;
|
|
451
442
|
};
|
|
452
443
|
exports.de_ListTablesCommand = de_ListTablesCommand;
|
|
453
444
|
const de_ListTablesCommandError = async (output, context) => {
|
|
@@ -468,17 +459,16 @@ const de_ListTablesCommandError = async (output, context) => {
|
|
|
468
459
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
469
460
|
default:
|
|
470
461
|
const parsedBody = parsedOutput.body;
|
|
471
|
-
|
|
462
|
+
return throwDefaultError({
|
|
472
463
|
output,
|
|
473
464
|
parsedBody,
|
|
474
|
-
exceptionCtor: RedshiftDataServiceException_1.RedshiftDataServiceException,
|
|
475
465
|
errorCode,
|
|
476
466
|
});
|
|
477
467
|
}
|
|
478
468
|
};
|
|
479
469
|
const de_ActiveStatementsExceededExceptionRes = async (parsedOutput, context) => {
|
|
480
470
|
const body = parsedOutput.body;
|
|
481
|
-
const deserialized =
|
|
471
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
482
472
|
const exception = new models_0_1.ActiveStatementsExceededException({
|
|
483
473
|
$metadata: deserializeMetadata(parsedOutput),
|
|
484
474
|
...deserialized,
|
|
@@ -487,7 +477,7 @@ const de_ActiveStatementsExceededExceptionRes = async (parsedOutput, context) =>
|
|
|
487
477
|
};
|
|
488
478
|
const de_BatchExecuteStatementExceptionRes = async (parsedOutput, context) => {
|
|
489
479
|
const body = parsedOutput.body;
|
|
490
|
-
const deserialized =
|
|
480
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
491
481
|
const exception = new models_0_1.BatchExecuteStatementException({
|
|
492
482
|
$metadata: deserializeMetadata(parsedOutput),
|
|
493
483
|
...deserialized,
|
|
@@ -496,7 +486,7 @@ const de_BatchExecuteStatementExceptionRes = async (parsedOutput, context) => {
|
|
|
496
486
|
};
|
|
497
487
|
const de_DatabaseConnectionExceptionRes = async (parsedOutput, context) => {
|
|
498
488
|
const body = parsedOutput.body;
|
|
499
|
-
const deserialized =
|
|
489
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
500
490
|
const exception = new models_0_1.DatabaseConnectionException({
|
|
501
491
|
$metadata: deserializeMetadata(parsedOutput),
|
|
502
492
|
...deserialized,
|
|
@@ -505,7 +495,7 @@ const de_DatabaseConnectionExceptionRes = async (parsedOutput, context) => {
|
|
|
505
495
|
};
|
|
506
496
|
const de_ExecuteStatementExceptionRes = async (parsedOutput, context) => {
|
|
507
497
|
const body = parsedOutput.body;
|
|
508
|
-
const deserialized =
|
|
498
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
509
499
|
const exception = new models_0_1.ExecuteStatementException({
|
|
510
500
|
$metadata: deserializeMetadata(parsedOutput),
|
|
511
501
|
...deserialized,
|
|
@@ -514,7 +504,7 @@ const de_ExecuteStatementExceptionRes = async (parsedOutput, context) => {
|
|
|
514
504
|
};
|
|
515
505
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
516
506
|
const body = parsedOutput.body;
|
|
517
|
-
const deserialized =
|
|
507
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
518
508
|
const exception = new models_0_1.InternalServerException({
|
|
519
509
|
$metadata: deserializeMetadata(parsedOutput),
|
|
520
510
|
...deserialized,
|
|
@@ -523,7 +513,7 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
|
523
513
|
};
|
|
524
514
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
525
515
|
const body = parsedOutput.body;
|
|
526
|
-
const deserialized =
|
|
516
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
527
517
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
528
518
|
$metadata: deserializeMetadata(parsedOutput),
|
|
529
519
|
...deserialized,
|
|
@@ -532,7 +522,7 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
532
522
|
};
|
|
533
523
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
534
524
|
const body = parsedOutput.body;
|
|
535
|
-
const deserialized =
|
|
525
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
536
526
|
const exception = new models_0_1.ValidationException({
|
|
537
527
|
$metadata: deserializeMetadata(parsedOutput),
|
|
538
528
|
...deserialized,
|
|
@@ -540,257 +530,76 @@ const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
|
540
530
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
541
531
|
};
|
|
542
532
|
const se_BatchExecuteStatementInput = (input, context) => {
|
|
543
|
-
return {
|
|
544
|
-
ClientToken:
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
};
|
|
554
|
-
};
|
|
555
|
-
const se_CancelStatementRequest = (input, context) => {
|
|
556
|
-
return {
|
|
557
|
-
...(input.Id != null && { Id: input.Id }),
|
|
558
|
-
};
|
|
559
|
-
};
|
|
560
|
-
const se_DescribeStatementRequest = (input, context) => {
|
|
561
|
-
return {
|
|
562
|
-
...(input.Id != null && { Id: input.Id }),
|
|
563
|
-
};
|
|
564
|
-
};
|
|
565
|
-
const se_DescribeTableRequest = (input, context) => {
|
|
566
|
-
return {
|
|
567
|
-
...(input.ClusterIdentifier != null && { ClusterIdentifier: input.ClusterIdentifier }),
|
|
568
|
-
...(input.ConnectedDatabase != null && { ConnectedDatabase: input.ConnectedDatabase }),
|
|
569
|
-
...(input.Database != null && { Database: input.Database }),
|
|
570
|
-
...(input.DbUser != null && { DbUser: input.DbUser }),
|
|
571
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
572
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
573
|
-
...(input.Schema != null && { Schema: input.Schema }),
|
|
574
|
-
...(input.SecretArn != null && { SecretArn: input.SecretArn }),
|
|
575
|
-
...(input.Table != null && { Table: input.Table }),
|
|
576
|
-
...(input.WorkgroupName != null && { WorkgroupName: input.WorkgroupName }),
|
|
577
|
-
};
|
|
578
|
-
};
|
|
579
|
-
const se_ExecuteStatementInput = (input, context) => {
|
|
580
|
-
return {
|
|
581
|
-
ClientToken: input.ClientToken ?? (0, uuid_1.v4)(),
|
|
582
|
-
...(input.ClusterIdentifier != null && { ClusterIdentifier: input.ClusterIdentifier }),
|
|
583
|
-
...(input.Database != null && { Database: input.Database }),
|
|
584
|
-
...(input.DbUser != null && { DbUser: input.DbUser }),
|
|
585
|
-
...(input.Parameters != null && { Parameters: se_SqlParametersList(input.Parameters, context) }),
|
|
586
|
-
...(input.SecretArn != null && { SecretArn: input.SecretArn }),
|
|
587
|
-
...(input.Sql != null && { Sql: input.Sql }),
|
|
588
|
-
...(input.StatementName != null && { StatementName: input.StatementName }),
|
|
589
|
-
...(input.WithEvent != null && { WithEvent: input.WithEvent }),
|
|
590
|
-
...(input.WorkgroupName != null && { WorkgroupName: input.WorkgroupName }),
|
|
591
|
-
};
|
|
592
|
-
};
|
|
593
|
-
const se_GetStatementResultRequest = (input, context) => {
|
|
594
|
-
return {
|
|
595
|
-
...(input.Id != null && { Id: input.Id }),
|
|
596
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
597
|
-
};
|
|
598
|
-
};
|
|
599
|
-
const se_ListDatabasesRequest = (input, context) => {
|
|
600
|
-
return {
|
|
601
|
-
...(input.ClusterIdentifier != null && { ClusterIdentifier: input.ClusterIdentifier }),
|
|
602
|
-
...(input.Database != null && { Database: input.Database }),
|
|
603
|
-
...(input.DbUser != null && { DbUser: input.DbUser }),
|
|
604
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
605
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
606
|
-
...(input.SecretArn != null && { SecretArn: input.SecretArn }),
|
|
607
|
-
...(input.WorkgroupName != null && { WorkgroupName: input.WorkgroupName }),
|
|
608
|
-
};
|
|
609
|
-
};
|
|
610
|
-
const se_ListSchemasRequest = (input, context) => {
|
|
611
|
-
return {
|
|
612
|
-
...(input.ClusterIdentifier != null && { ClusterIdentifier: input.ClusterIdentifier }),
|
|
613
|
-
...(input.ConnectedDatabase != null && { ConnectedDatabase: input.ConnectedDatabase }),
|
|
614
|
-
...(input.Database != null && { Database: input.Database }),
|
|
615
|
-
...(input.DbUser != null && { DbUser: input.DbUser }),
|
|
616
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
617
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
618
|
-
...(input.SchemaPattern != null && { SchemaPattern: input.SchemaPattern }),
|
|
619
|
-
...(input.SecretArn != null && { SecretArn: input.SecretArn }),
|
|
620
|
-
...(input.WorkgroupName != null && { WorkgroupName: input.WorkgroupName }),
|
|
621
|
-
};
|
|
622
|
-
};
|
|
623
|
-
const se_ListStatementsRequest = (input, context) => {
|
|
624
|
-
return {
|
|
625
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
626
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
627
|
-
...(input.RoleLevel != null && { RoleLevel: input.RoleLevel }),
|
|
628
|
-
...(input.StatementName != null && { StatementName: input.StatementName }),
|
|
629
|
-
...(input.Status != null && { Status: input.Status }),
|
|
630
|
-
};
|
|
631
|
-
};
|
|
632
|
-
const se_ListTablesRequest = (input, context) => {
|
|
633
|
-
return {
|
|
634
|
-
...(input.ClusterIdentifier != null && { ClusterIdentifier: input.ClusterIdentifier }),
|
|
635
|
-
...(input.ConnectedDatabase != null && { ConnectedDatabase: input.ConnectedDatabase }),
|
|
636
|
-
...(input.Database != null && { Database: input.Database }),
|
|
637
|
-
...(input.DbUser != null && { DbUser: input.DbUser }),
|
|
638
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
639
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
640
|
-
...(input.SchemaPattern != null && { SchemaPattern: input.SchemaPattern }),
|
|
641
|
-
...(input.SecretArn != null && { SecretArn: input.SecretArn }),
|
|
642
|
-
...(input.TablePattern != null && { TablePattern: input.TablePattern }),
|
|
643
|
-
...(input.WorkgroupName != null && { WorkgroupName: input.WorkgroupName }),
|
|
644
|
-
};
|
|
645
|
-
};
|
|
646
|
-
const se_SqlList = (input, context) => {
|
|
647
|
-
return input
|
|
648
|
-
.filter((e) => e != null)
|
|
649
|
-
.map((entry) => {
|
|
650
|
-
return entry;
|
|
533
|
+
return (0, smithy_client_1.take)(input, {
|
|
534
|
+
ClientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
535
|
+
ClusterIdentifier: [],
|
|
536
|
+
Database: [],
|
|
537
|
+
DbUser: [],
|
|
538
|
+
SecretArn: [],
|
|
539
|
+
Sqls: smithy_client_1._json,
|
|
540
|
+
StatementName: [],
|
|
541
|
+
WithEvent: [],
|
|
542
|
+
WorkgroupName: [],
|
|
651
543
|
});
|
|
652
544
|
};
|
|
653
|
-
const
|
|
654
|
-
return {
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
545
|
+
const se_ExecuteStatementInput = (input, context) => {
|
|
546
|
+
return (0, smithy_client_1.take)(input, {
|
|
547
|
+
ClientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
548
|
+
ClusterIdentifier: [],
|
|
549
|
+
Database: [],
|
|
550
|
+
DbUser: [],
|
|
551
|
+
Parameters: smithy_client_1._json,
|
|
552
|
+
SecretArn: [],
|
|
553
|
+
Sql: [],
|
|
554
|
+
StatementName: [],
|
|
555
|
+
WithEvent: [],
|
|
556
|
+
WorkgroupName: [],
|
|
664
557
|
});
|
|
665
558
|
};
|
|
666
|
-
const de_ActiveStatementsExceededException = (output, context) => {
|
|
667
|
-
return {
|
|
668
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
669
|
-
};
|
|
670
|
-
};
|
|
671
|
-
const de_BatchExecuteStatementException = (output, context) => {
|
|
672
|
-
return {
|
|
673
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
674
|
-
StatementId: (0, smithy_client_1.expectString)(output.StatementId),
|
|
675
|
-
};
|
|
676
|
-
};
|
|
677
559
|
const de_BatchExecuteStatementOutput = (output, context) => {
|
|
678
|
-
return {
|
|
679
|
-
ClusterIdentifier:
|
|
680
|
-
CreatedAt:
|
|
681
|
-
Database:
|
|
682
|
-
DbUser:
|
|
683
|
-
Id:
|
|
684
|
-
SecretArn:
|
|
685
|
-
WorkgroupName:
|
|
686
|
-
};
|
|
687
|
-
};
|
|
688
|
-
const de_CancelStatementResponse = (output, context) => {
|
|
689
|
-
return {
|
|
690
|
-
Status: (0, smithy_client_1.expectBoolean)(output.Status),
|
|
691
|
-
};
|
|
692
|
-
};
|
|
693
|
-
const de_ColumnList = (output, context) => {
|
|
694
|
-
const retVal = (output || [])
|
|
695
|
-
.filter((e) => e != null)
|
|
696
|
-
.map((entry) => {
|
|
697
|
-
if (entry === null) {
|
|
698
|
-
return null;
|
|
699
|
-
}
|
|
700
|
-
return de_ColumnMetadata(entry, context);
|
|
701
|
-
});
|
|
702
|
-
return retVal;
|
|
703
|
-
};
|
|
704
|
-
const de_ColumnMetadata = (output, context) => {
|
|
705
|
-
return {
|
|
706
|
-
columnDefault: (0, smithy_client_1.expectString)(output.columnDefault),
|
|
707
|
-
isCaseSensitive: (0, smithy_client_1.expectBoolean)(output.isCaseSensitive),
|
|
708
|
-
isCurrency: (0, smithy_client_1.expectBoolean)(output.isCurrency),
|
|
709
|
-
isSigned: (0, smithy_client_1.expectBoolean)(output.isSigned),
|
|
710
|
-
label: (0, smithy_client_1.expectString)(output.label),
|
|
711
|
-
length: (0, smithy_client_1.expectInt32)(output.length),
|
|
712
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
713
|
-
nullable: (0, smithy_client_1.expectInt32)(output.nullable),
|
|
714
|
-
precision: (0, smithy_client_1.expectInt32)(output.precision),
|
|
715
|
-
scale: (0, smithy_client_1.expectInt32)(output.scale),
|
|
716
|
-
schemaName: (0, smithy_client_1.expectString)(output.schemaName),
|
|
717
|
-
tableName: (0, smithy_client_1.expectString)(output.tableName),
|
|
718
|
-
typeName: (0, smithy_client_1.expectString)(output.typeName),
|
|
719
|
-
};
|
|
720
|
-
};
|
|
721
|
-
const de_ColumnMetadataList = (output, context) => {
|
|
722
|
-
const retVal = (output || [])
|
|
723
|
-
.filter((e) => e != null)
|
|
724
|
-
.map((entry) => {
|
|
725
|
-
if (entry === null) {
|
|
726
|
-
return null;
|
|
727
|
-
}
|
|
728
|
-
return de_ColumnMetadata(entry, context);
|
|
560
|
+
return (0, smithy_client_1.take)(output, {
|
|
561
|
+
ClusterIdentifier: smithy_client_1.expectString,
|
|
562
|
+
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
563
|
+
Database: smithy_client_1.expectString,
|
|
564
|
+
DbUser: smithy_client_1.expectString,
|
|
565
|
+
Id: smithy_client_1.expectString,
|
|
566
|
+
SecretArn: smithy_client_1.expectString,
|
|
567
|
+
WorkgroupName: smithy_client_1.expectString,
|
|
729
568
|
});
|
|
730
|
-
return retVal;
|
|
731
|
-
};
|
|
732
|
-
const de_DatabaseConnectionException = (output, context) => {
|
|
733
|
-
return {
|
|
734
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
735
|
-
};
|
|
736
|
-
};
|
|
737
|
-
const de_DatabaseList = (output, context) => {
|
|
738
|
-
const retVal = (output || [])
|
|
739
|
-
.filter((e) => e != null)
|
|
740
|
-
.map((entry) => {
|
|
741
|
-
if (entry === null) {
|
|
742
|
-
return null;
|
|
743
|
-
}
|
|
744
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
745
|
-
});
|
|
746
|
-
return retVal;
|
|
747
569
|
};
|
|
748
570
|
const de_DescribeStatementResponse = (output, context) => {
|
|
749
|
-
return {
|
|
750
|
-
ClusterIdentifier:
|
|
751
|
-
CreatedAt:
|
|
752
|
-
Database:
|
|
753
|
-
DbUser:
|
|
754
|
-
Duration:
|
|
755
|
-
Error:
|
|
756
|
-
HasResultSet:
|
|
757
|
-
Id:
|
|
758
|
-
QueryParameters:
|
|
759
|
-
QueryString:
|
|
760
|
-
RedshiftPid:
|
|
761
|
-
RedshiftQueryId:
|
|
762
|
-
ResultRows:
|
|
763
|
-
ResultSize:
|
|
764
|
-
SecretArn:
|
|
765
|
-
Status:
|
|
766
|
-
SubStatements:
|
|
767
|
-
UpdatedAt:
|
|
768
|
-
WorkgroupName:
|
|
769
|
-
};
|
|
770
|
-
};
|
|
771
|
-
const de_DescribeTableResponse = (output, context) => {
|
|
772
|
-
return {
|
|
773
|
-
ColumnList: output.ColumnList != null ? de_ColumnList(output.ColumnList, context) : undefined,
|
|
774
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
775
|
-
TableName: (0, smithy_client_1.expectString)(output.TableName),
|
|
776
|
-
};
|
|
777
|
-
};
|
|
778
|
-
const de_ExecuteStatementException = (output, context) => {
|
|
779
|
-
return {
|
|
780
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
781
|
-
StatementId: (0, smithy_client_1.expectString)(output.StatementId),
|
|
782
|
-
};
|
|
571
|
+
return (0, smithy_client_1.take)(output, {
|
|
572
|
+
ClusterIdentifier: smithy_client_1.expectString,
|
|
573
|
+
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
574
|
+
Database: smithy_client_1.expectString,
|
|
575
|
+
DbUser: smithy_client_1.expectString,
|
|
576
|
+
Duration: smithy_client_1.expectLong,
|
|
577
|
+
Error: smithy_client_1.expectString,
|
|
578
|
+
HasResultSet: smithy_client_1.expectBoolean,
|
|
579
|
+
Id: smithy_client_1.expectString,
|
|
580
|
+
QueryParameters: smithy_client_1._json,
|
|
581
|
+
QueryString: smithy_client_1.expectString,
|
|
582
|
+
RedshiftPid: smithy_client_1.expectLong,
|
|
583
|
+
RedshiftQueryId: smithy_client_1.expectLong,
|
|
584
|
+
ResultRows: smithy_client_1.expectLong,
|
|
585
|
+
ResultSize: smithy_client_1.expectLong,
|
|
586
|
+
SecretArn: smithy_client_1.expectString,
|
|
587
|
+
Status: smithy_client_1.expectString,
|
|
588
|
+
SubStatements: (_) => de_SubStatementList(_, context),
|
|
589
|
+
UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
590
|
+
WorkgroupName: smithy_client_1.expectString,
|
|
591
|
+
});
|
|
783
592
|
};
|
|
784
593
|
const de_ExecuteStatementOutput = (output, context) => {
|
|
785
|
-
return {
|
|
786
|
-
ClusterIdentifier:
|
|
787
|
-
CreatedAt:
|
|
788
|
-
Database:
|
|
789
|
-
DbUser:
|
|
790
|
-
Id:
|
|
791
|
-
SecretArn:
|
|
792
|
-
WorkgroupName:
|
|
793
|
-
};
|
|
594
|
+
return (0, smithy_client_1.take)(output, {
|
|
595
|
+
ClusterIdentifier: smithy_client_1.expectString,
|
|
596
|
+
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
597
|
+
Database: smithy_client_1.expectString,
|
|
598
|
+
DbUser: smithy_client_1.expectString,
|
|
599
|
+
Id: smithy_client_1.expectString,
|
|
600
|
+
SecretArn: smithy_client_1.expectString,
|
|
601
|
+
WorkgroupName: smithy_client_1.expectString,
|
|
602
|
+
});
|
|
794
603
|
};
|
|
795
604
|
const de_Field = (output, context) => {
|
|
796
605
|
if (output.blobValue != null) {
|
|
@@ -819,180 +628,77 @@ const de_FieldList = (output, context) => {
|
|
|
819
628
|
const retVal = (output || [])
|
|
820
629
|
.filter((e) => e != null)
|
|
821
630
|
.map((entry) => {
|
|
822
|
-
if (entry === null) {
|
|
823
|
-
return null;
|
|
824
|
-
}
|
|
825
631
|
return de_Field((0, smithy_client_1.expectUnion)(entry), context);
|
|
826
632
|
});
|
|
827
633
|
return retVal;
|
|
828
634
|
};
|
|
829
635
|
const de_GetStatementResultResponse = (output, context) => {
|
|
830
|
-
return {
|
|
831
|
-
ColumnMetadata:
|
|
832
|
-
NextToken:
|
|
833
|
-
Records:
|
|
834
|
-
TotalNumRows:
|
|
835
|
-
};
|
|
836
|
-
};
|
|
837
|
-
const de_InternalServerException = (output, context) => {
|
|
838
|
-
return {
|
|
839
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
840
|
-
};
|
|
841
|
-
};
|
|
842
|
-
const de_ListDatabasesResponse = (output, context) => {
|
|
843
|
-
return {
|
|
844
|
-
Databases: output.Databases != null ? de_DatabaseList(output.Databases, context) : undefined,
|
|
845
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
846
|
-
};
|
|
847
|
-
};
|
|
848
|
-
const de_ListSchemasResponse = (output, context) => {
|
|
849
|
-
return {
|
|
850
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
851
|
-
Schemas: output.Schemas != null ? de_SchemaList(output.Schemas, context) : undefined,
|
|
852
|
-
};
|
|
853
|
-
};
|
|
854
|
-
const de_ListStatementsResponse = (output, context) => {
|
|
855
|
-
return {
|
|
856
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
857
|
-
Statements: output.Statements != null ? de_StatementList(output.Statements, context) : undefined,
|
|
858
|
-
};
|
|
859
|
-
};
|
|
860
|
-
const de_ListTablesResponse = (output, context) => {
|
|
861
|
-
return {
|
|
862
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
863
|
-
Tables: output.Tables != null ? de_TableList(output.Tables, context) : undefined,
|
|
864
|
-
};
|
|
865
|
-
};
|
|
866
|
-
const de_ResourceNotFoundException = (output, context) => {
|
|
867
|
-
return {
|
|
868
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
869
|
-
ResourceId: (0, smithy_client_1.expectString)(output.ResourceId),
|
|
870
|
-
};
|
|
871
|
-
};
|
|
872
|
-
const de_SchemaList = (output, context) => {
|
|
873
|
-
const retVal = (output || [])
|
|
874
|
-
.filter((e) => e != null)
|
|
875
|
-
.map((entry) => {
|
|
876
|
-
if (entry === null) {
|
|
877
|
-
return null;
|
|
878
|
-
}
|
|
879
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
636
|
+
return (0, smithy_client_1.take)(output, {
|
|
637
|
+
ColumnMetadata: smithy_client_1._json,
|
|
638
|
+
NextToken: smithy_client_1.expectString,
|
|
639
|
+
Records: (_) => de_SqlRecords(_, context),
|
|
640
|
+
TotalNumRows: smithy_client_1.expectLong,
|
|
880
641
|
});
|
|
881
|
-
return retVal;
|
|
882
642
|
};
|
|
883
|
-
const
|
|
884
|
-
return {
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
};
|
|
888
|
-
};
|
|
889
|
-
const de_SqlParametersList = (output, context) => {
|
|
890
|
-
const retVal = (output || [])
|
|
891
|
-
.filter((e) => e != null)
|
|
892
|
-
.map((entry) => {
|
|
893
|
-
if (entry === null) {
|
|
894
|
-
return null;
|
|
895
|
-
}
|
|
896
|
-
return de_SqlParameter(entry, context);
|
|
643
|
+
const de_ListStatementsResponse = (output, context) => {
|
|
644
|
+
return (0, smithy_client_1.take)(output, {
|
|
645
|
+
NextToken: smithy_client_1.expectString,
|
|
646
|
+
Statements: (_) => de_StatementList(_, context),
|
|
897
647
|
});
|
|
898
|
-
return retVal;
|
|
899
648
|
};
|
|
900
649
|
const de_SqlRecords = (output, context) => {
|
|
901
650
|
const retVal = (output || [])
|
|
902
651
|
.filter((e) => e != null)
|
|
903
652
|
.map((entry) => {
|
|
904
|
-
if (entry === null) {
|
|
905
|
-
return null;
|
|
906
|
-
}
|
|
907
653
|
return de_FieldList(entry, context);
|
|
908
654
|
});
|
|
909
655
|
return retVal;
|
|
910
656
|
};
|
|
911
657
|
const de_StatementData = (output, context) => {
|
|
912
|
-
return {
|
|
913
|
-
CreatedAt:
|
|
914
|
-
Id:
|
|
915
|
-
IsBatchStatement:
|
|
916
|
-
QueryParameters:
|
|
917
|
-
QueryString:
|
|
918
|
-
QueryStrings:
|
|
919
|
-
SecretArn:
|
|
920
|
-
StatementName:
|
|
921
|
-
Status:
|
|
922
|
-
UpdatedAt:
|
|
923
|
-
};
|
|
658
|
+
return (0, smithy_client_1.take)(output, {
|
|
659
|
+
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
660
|
+
Id: smithy_client_1.expectString,
|
|
661
|
+
IsBatchStatement: smithy_client_1.expectBoolean,
|
|
662
|
+
QueryParameters: smithy_client_1._json,
|
|
663
|
+
QueryString: smithy_client_1.expectString,
|
|
664
|
+
QueryStrings: smithy_client_1._json,
|
|
665
|
+
SecretArn: smithy_client_1.expectString,
|
|
666
|
+
StatementName: smithy_client_1.expectString,
|
|
667
|
+
Status: smithy_client_1.expectString,
|
|
668
|
+
UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
669
|
+
});
|
|
924
670
|
};
|
|
925
671
|
const de_StatementList = (output, context) => {
|
|
926
672
|
const retVal = (output || [])
|
|
927
673
|
.filter((e) => e != null)
|
|
928
674
|
.map((entry) => {
|
|
929
|
-
if (entry === null) {
|
|
930
|
-
return null;
|
|
931
|
-
}
|
|
932
675
|
return de_StatementData(entry, context);
|
|
933
676
|
});
|
|
934
677
|
return retVal;
|
|
935
678
|
};
|
|
936
|
-
const de_StatementStringList = (output, context) => {
|
|
937
|
-
const retVal = (output || [])
|
|
938
|
-
.filter((e) => e != null)
|
|
939
|
-
.map((entry) => {
|
|
940
|
-
if (entry === null) {
|
|
941
|
-
return null;
|
|
942
|
-
}
|
|
943
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
944
|
-
});
|
|
945
|
-
return retVal;
|
|
946
|
-
};
|
|
947
679
|
const de_SubStatementData = (output, context) => {
|
|
948
|
-
return {
|
|
949
|
-
CreatedAt:
|
|
950
|
-
Duration:
|
|
951
|
-
Error:
|
|
952
|
-
HasResultSet:
|
|
953
|
-
Id:
|
|
954
|
-
QueryString:
|
|
955
|
-
RedshiftQueryId:
|
|
956
|
-
ResultRows:
|
|
957
|
-
ResultSize:
|
|
958
|
-
Status:
|
|
959
|
-
UpdatedAt:
|
|
960
|
-
};
|
|
680
|
+
return (0, smithy_client_1.take)(output, {
|
|
681
|
+
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
682
|
+
Duration: smithy_client_1.expectLong,
|
|
683
|
+
Error: smithy_client_1.expectString,
|
|
684
|
+
HasResultSet: smithy_client_1.expectBoolean,
|
|
685
|
+
Id: smithy_client_1.expectString,
|
|
686
|
+
QueryString: smithy_client_1.expectString,
|
|
687
|
+
RedshiftQueryId: smithy_client_1.expectLong,
|
|
688
|
+
ResultRows: smithy_client_1.expectLong,
|
|
689
|
+
ResultSize: smithy_client_1.expectLong,
|
|
690
|
+
Status: smithy_client_1.expectString,
|
|
691
|
+
UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
692
|
+
});
|
|
961
693
|
};
|
|
962
694
|
const de_SubStatementList = (output, context) => {
|
|
963
695
|
const retVal = (output || [])
|
|
964
696
|
.filter((e) => e != null)
|
|
965
697
|
.map((entry) => {
|
|
966
|
-
if (entry === null) {
|
|
967
|
-
return null;
|
|
968
|
-
}
|
|
969
698
|
return de_SubStatementData(entry, context);
|
|
970
699
|
});
|
|
971
700
|
return retVal;
|
|
972
701
|
};
|
|
973
|
-
const de_TableList = (output, context) => {
|
|
974
|
-
const retVal = (output || [])
|
|
975
|
-
.filter((e) => e != null)
|
|
976
|
-
.map((entry) => {
|
|
977
|
-
if (entry === null) {
|
|
978
|
-
return null;
|
|
979
|
-
}
|
|
980
|
-
return de_TableMember(entry, context);
|
|
981
|
-
});
|
|
982
|
-
return retVal;
|
|
983
|
-
};
|
|
984
|
-
const de_TableMember = (output, context) => {
|
|
985
|
-
return {
|
|
986
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
987
|
-
schema: (0, smithy_client_1.expectString)(output.schema),
|
|
988
|
-
type: (0, smithy_client_1.expectString)(output.type),
|
|
989
|
-
};
|
|
990
|
-
};
|
|
991
|
-
const de_ValidationException = (output, context) => {
|
|
992
|
-
return {
|
|
993
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
994
|
-
};
|
|
995
|
-
};
|
|
996
702
|
const deserializeMetadata = (output) => ({
|
|
997
703
|
httpStatusCode: output.statusCode,
|
|
998
704
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
@@ -1006,6 +712,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
1006
712
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
1007
713
|
};
|
|
1008
714
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
715
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(RedshiftDataServiceException_1.RedshiftDataServiceException);
|
|
1009
716
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
1010
717
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1011
718
|
const contents = {
|