@aws-sdk/client-redshift-data 3.141.0 → 3.150.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/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_json1_1.js +51 -87
- package/dist-es/protocols/Aws_json1_1.js +82 -88
- package/package.json +11 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,33 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.150.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.149.0...v3.150.0) (2022-08-15)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-redshift-data
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.145.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.144.0...v3.145.0) (2022-08-08)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @aws-sdk/client-redshift-data
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# [3.142.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.141.0...v3.142.0) (2022-08-02)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Features
|
|
26
|
+
|
|
27
|
+
* **codegen:** general data mapping function ([#3830](https://github.com/aws/aws-sdk-js-v3/issues/3830)) ([9417eae](https://github.com/aws/aws-sdk-js-v3/commit/9417eae722806799fb4c15c07921574268c1165c))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
# [3.141.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.140.0...v3.141.0) (2022-08-01)
|
|
7
34
|
|
|
8
35
|
|
|
@@ -124,7 +124,6 @@ const deserializeAws_json1_1BatchExecuteStatementCommandError = async (output, c
|
|
|
124
124
|
...output,
|
|
125
125
|
body: await parseBody(output.body, context),
|
|
126
126
|
};
|
|
127
|
-
let response;
|
|
128
127
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
129
128
|
switch (errorCode) {
|
|
130
129
|
case "ActiveStatementsExceededException":
|
|
@@ -138,14 +137,12 @@ const deserializeAws_json1_1BatchExecuteStatementCommandError = async (output, c
|
|
|
138
137
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
139
138
|
default:
|
|
140
139
|
const parsedBody = parsedOutput.body;
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
$metadata,
|
|
140
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
141
|
+
output,
|
|
142
|
+
parsedBody,
|
|
143
|
+
exceptionCtor: RedshiftDataServiceException_1.RedshiftDataServiceException,
|
|
144
|
+
errorCode,
|
|
147
145
|
});
|
|
148
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
149
146
|
}
|
|
150
147
|
};
|
|
151
148
|
const deserializeAws_json1_1CancelStatementCommand = async (output, context) => {
|
|
@@ -167,7 +164,6 @@ const deserializeAws_json1_1CancelStatementCommandError = async (output, context
|
|
|
167
164
|
...output,
|
|
168
165
|
body: await parseBody(output.body, context),
|
|
169
166
|
};
|
|
170
|
-
let response;
|
|
171
167
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
172
168
|
switch (errorCode) {
|
|
173
169
|
case "DatabaseConnectionException":
|
|
@@ -184,14 +180,12 @@ const deserializeAws_json1_1CancelStatementCommandError = async (output, context
|
|
|
184
180
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
185
181
|
default:
|
|
186
182
|
const parsedBody = parsedOutput.body;
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
$metadata,
|
|
183
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
184
|
+
output,
|
|
185
|
+
parsedBody,
|
|
186
|
+
exceptionCtor: RedshiftDataServiceException_1.RedshiftDataServiceException,
|
|
187
|
+
errorCode,
|
|
193
188
|
});
|
|
194
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
195
189
|
}
|
|
196
190
|
};
|
|
197
191
|
const deserializeAws_json1_1DescribeStatementCommand = async (output, context) => {
|
|
@@ -213,7 +207,6 @@ const deserializeAws_json1_1DescribeStatementCommandError = async (output, conte
|
|
|
213
207
|
...output,
|
|
214
208
|
body: await parseBody(output.body, context),
|
|
215
209
|
};
|
|
216
|
-
let response;
|
|
217
210
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
218
211
|
switch (errorCode) {
|
|
219
212
|
case "InternalServerException":
|
|
@@ -227,14 +220,12 @@ const deserializeAws_json1_1DescribeStatementCommandError = async (output, conte
|
|
|
227
220
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
228
221
|
default:
|
|
229
222
|
const parsedBody = parsedOutput.body;
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
$metadata,
|
|
223
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
224
|
+
output,
|
|
225
|
+
parsedBody,
|
|
226
|
+
exceptionCtor: RedshiftDataServiceException_1.RedshiftDataServiceException,
|
|
227
|
+
errorCode,
|
|
236
228
|
});
|
|
237
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
238
229
|
}
|
|
239
230
|
};
|
|
240
231
|
const deserializeAws_json1_1DescribeTableCommand = async (output, context) => {
|
|
@@ -256,7 +247,6 @@ const deserializeAws_json1_1DescribeTableCommandError = async (output, context)
|
|
|
256
247
|
...output,
|
|
257
248
|
body: await parseBody(output.body, context),
|
|
258
249
|
};
|
|
259
|
-
let response;
|
|
260
250
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
261
251
|
switch (errorCode) {
|
|
262
252
|
case "DatabaseConnectionException":
|
|
@@ -270,14 +260,12 @@ const deserializeAws_json1_1DescribeTableCommandError = async (output, context)
|
|
|
270
260
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
271
261
|
default:
|
|
272
262
|
const parsedBody = parsedOutput.body;
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
$metadata,
|
|
263
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
264
|
+
output,
|
|
265
|
+
parsedBody,
|
|
266
|
+
exceptionCtor: RedshiftDataServiceException_1.RedshiftDataServiceException,
|
|
267
|
+
errorCode,
|
|
279
268
|
});
|
|
280
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
281
269
|
}
|
|
282
270
|
};
|
|
283
271
|
const deserializeAws_json1_1ExecuteStatementCommand = async (output, context) => {
|
|
@@ -299,7 +287,6 @@ const deserializeAws_json1_1ExecuteStatementCommandError = async (output, contex
|
|
|
299
287
|
...output,
|
|
300
288
|
body: await parseBody(output.body, context),
|
|
301
289
|
};
|
|
302
|
-
let response;
|
|
303
290
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
304
291
|
switch (errorCode) {
|
|
305
292
|
case "ActiveStatementsExceededException":
|
|
@@ -313,14 +300,12 @@ const deserializeAws_json1_1ExecuteStatementCommandError = async (output, contex
|
|
|
313
300
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
314
301
|
default:
|
|
315
302
|
const parsedBody = parsedOutput.body;
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
$metadata,
|
|
303
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
304
|
+
output,
|
|
305
|
+
parsedBody,
|
|
306
|
+
exceptionCtor: RedshiftDataServiceException_1.RedshiftDataServiceException,
|
|
307
|
+
errorCode,
|
|
322
308
|
});
|
|
323
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
324
309
|
}
|
|
325
310
|
};
|
|
326
311
|
const deserializeAws_json1_1GetStatementResultCommand = async (output, context) => {
|
|
@@ -342,7 +327,6 @@ const deserializeAws_json1_1GetStatementResultCommandError = async (output, cont
|
|
|
342
327
|
...output,
|
|
343
328
|
body: await parseBody(output.body, context),
|
|
344
329
|
};
|
|
345
|
-
let response;
|
|
346
330
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
347
331
|
switch (errorCode) {
|
|
348
332
|
case "InternalServerException":
|
|
@@ -356,14 +340,12 @@ const deserializeAws_json1_1GetStatementResultCommandError = async (output, cont
|
|
|
356
340
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
357
341
|
default:
|
|
358
342
|
const parsedBody = parsedOutput.body;
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
$metadata,
|
|
343
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
344
|
+
output,
|
|
345
|
+
parsedBody,
|
|
346
|
+
exceptionCtor: RedshiftDataServiceException_1.RedshiftDataServiceException,
|
|
347
|
+
errorCode,
|
|
365
348
|
});
|
|
366
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
367
349
|
}
|
|
368
350
|
};
|
|
369
351
|
const deserializeAws_json1_1ListDatabasesCommand = async (output, context) => {
|
|
@@ -385,7 +367,6 @@ const deserializeAws_json1_1ListDatabasesCommandError = async (output, context)
|
|
|
385
367
|
...output,
|
|
386
368
|
body: await parseBody(output.body, context),
|
|
387
369
|
};
|
|
388
|
-
let response;
|
|
389
370
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
390
371
|
switch (errorCode) {
|
|
391
372
|
case "DatabaseConnectionException":
|
|
@@ -399,14 +380,12 @@ const deserializeAws_json1_1ListDatabasesCommandError = async (output, context)
|
|
|
399
380
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
400
381
|
default:
|
|
401
382
|
const parsedBody = parsedOutput.body;
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
$metadata,
|
|
383
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
384
|
+
output,
|
|
385
|
+
parsedBody,
|
|
386
|
+
exceptionCtor: RedshiftDataServiceException_1.RedshiftDataServiceException,
|
|
387
|
+
errorCode,
|
|
408
388
|
});
|
|
409
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
410
389
|
}
|
|
411
390
|
};
|
|
412
391
|
const deserializeAws_json1_1ListSchemasCommand = async (output, context) => {
|
|
@@ -428,7 +407,6 @@ const deserializeAws_json1_1ListSchemasCommandError = async (output, context) =>
|
|
|
428
407
|
...output,
|
|
429
408
|
body: await parseBody(output.body, context),
|
|
430
409
|
};
|
|
431
|
-
let response;
|
|
432
410
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
433
411
|
switch (errorCode) {
|
|
434
412
|
case "DatabaseConnectionException":
|
|
@@ -442,14 +420,12 @@ const deserializeAws_json1_1ListSchemasCommandError = async (output, context) =>
|
|
|
442
420
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
443
421
|
default:
|
|
444
422
|
const parsedBody = parsedOutput.body;
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
$metadata,
|
|
423
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
424
|
+
output,
|
|
425
|
+
parsedBody,
|
|
426
|
+
exceptionCtor: RedshiftDataServiceException_1.RedshiftDataServiceException,
|
|
427
|
+
errorCode,
|
|
451
428
|
});
|
|
452
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
453
429
|
}
|
|
454
430
|
};
|
|
455
431
|
const deserializeAws_json1_1ListStatementsCommand = async (output, context) => {
|
|
@@ -471,7 +447,6 @@ const deserializeAws_json1_1ListStatementsCommandError = async (output, context)
|
|
|
471
447
|
...output,
|
|
472
448
|
body: await parseBody(output.body, context),
|
|
473
449
|
};
|
|
474
|
-
let response;
|
|
475
450
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
476
451
|
switch (errorCode) {
|
|
477
452
|
case "InternalServerException":
|
|
@@ -482,14 +457,12 @@ const deserializeAws_json1_1ListStatementsCommandError = async (output, context)
|
|
|
482
457
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
483
458
|
default:
|
|
484
459
|
const parsedBody = parsedOutput.body;
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
$metadata,
|
|
460
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
461
|
+
output,
|
|
462
|
+
parsedBody,
|
|
463
|
+
exceptionCtor: RedshiftDataServiceException_1.RedshiftDataServiceException,
|
|
464
|
+
errorCode,
|
|
491
465
|
});
|
|
492
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
493
466
|
}
|
|
494
467
|
};
|
|
495
468
|
const deserializeAws_json1_1ListTablesCommand = async (output, context) => {
|
|
@@ -511,7 +484,6 @@ const deserializeAws_json1_1ListTablesCommandError = async (output, context) =>
|
|
|
511
484
|
...output,
|
|
512
485
|
body: await parseBody(output.body, context),
|
|
513
486
|
};
|
|
514
|
-
let response;
|
|
515
487
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
516
488
|
switch (errorCode) {
|
|
517
489
|
case "DatabaseConnectionException":
|
|
@@ -525,14 +497,12 @@ const deserializeAws_json1_1ListTablesCommandError = async (output, context) =>
|
|
|
525
497
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
526
498
|
default:
|
|
527
499
|
const parsedBody = parsedOutput.body;
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
$metadata,
|
|
500
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
501
|
+
output,
|
|
502
|
+
parsedBody,
|
|
503
|
+
exceptionCtor: RedshiftDataServiceException_1.RedshiftDataServiceException,
|
|
504
|
+
errorCode,
|
|
534
505
|
});
|
|
535
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
536
506
|
}
|
|
537
507
|
};
|
|
538
508
|
const deserializeAws_json1_1ActiveStatementsExceededExceptionResponse = async (parsedOutput, context) => {
|
|
@@ -704,9 +674,6 @@ const serializeAws_json1_1SqlList = (input, context) => {
|
|
|
704
674
|
return input
|
|
705
675
|
.filter((e) => e != null)
|
|
706
676
|
.map((entry) => {
|
|
707
|
-
if (entry === null) {
|
|
708
|
-
return null;
|
|
709
|
-
}
|
|
710
677
|
return entry;
|
|
711
678
|
});
|
|
712
679
|
};
|
|
@@ -720,9 +687,6 @@ const serializeAws_json1_1SqlParametersList = (input, context) => {
|
|
|
720
687
|
return input
|
|
721
688
|
.filter((e) => e != null)
|
|
722
689
|
.map((entry) => {
|
|
723
|
-
if (entry === null) {
|
|
724
|
-
return null;
|
|
725
|
-
}
|
|
726
690
|
return serializeAws_json1_1SqlParameter(entry, context);
|
|
727
691
|
});
|
|
728
692
|
};
|
|
@@ -858,7 +822,7 @@ const deserializeAws_json1_1ExecuteStatementOutput = (output, context) => {
|
|
|
858
822
|
};
|
|
859
823
|
};
|
|
860
824
|
const deserializeAws_json1_1Field = (output, context) => {
|
|
861
|
-
if (output.blobValue
|
|
825
|
+
if (output.blobValue != null) {
|
|
862
826
|
return {
|
|
863
827
|
blobValue: context.base64Decoder(output.blobValue),
|
|
864
828
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, expectUnion as __expectUnion, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, expectUnion as __expectUnion, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { ActiveStatementsExceededException, BatchExecuteStatementException, DatabaseConnectionException, ExecuteStatementException, InternalServerException, ResourceNotFoundException, ValidationException, } from "../models/models_0";
|
|
5
5
|
import { RedshiftDataServiceException as __BaseException } from "../models/RedshiftDataServiceException";
|
|
6
6
|
export var serializeAws_json1_1BatchExecuteStatementCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -132,7 +132,7 @@ export var deserializeAws_json1_1BatchExecuteStatementCommand = function (output
|
|
|
132
132
|
});
|
|
133
133
|
}); };
|
|
134
134
|
var deserializeAws_json1_1BatchExecuteStatementCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
135
|
-
var parsedOutput, _a,
|
|
135
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
136
136
|
var _c;
|
|
137
137
|
return __generator(this, function (_d) {
|
|
138
138
|
switch (_d.label) {
|
|
@@ -161,14 +161,14 @@ var deserializeAws_json1_1BatchExecuteStatementCommandError = function (output,
|
|
|
161
161
|
case 7: throw _d.sent();
|
|
162
162
|
case 8:
|
|
163
163
|
parsedBody = parsedOutput.body;
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
$metadata: $metadata,
|
|
164
|
+
throwDefaultError({
|
|
165
|
+
output: output,
|
|
166
|
+
parsedBody: parsedBody,
|
|
167
|
+
exceptionCtor: __BaseException,
|
|
168
|
+
errorCode: errorCode,
|
|
170
169
|
});
|
|
171
|
-
|
|
170
|
+
_d.label = 9;
|
|
171
|
+
case 9: return [2];
|
|
172
172
|
}
|
|
173
173
|
});
|
|
174
174
|
}); };
|
|
@@ -191,7 +191,7 @@ export var deserializeAws_json1_1CancelStatementCommand = function (output, cont
|
|
|
191
191
|
});
|
|
192
192
|
}); };
|
|
193
193
|
var deserializeAws_json1_1CancelStatementCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
194
|
-
var parsedOutput, _a,
|
|
194
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
195
195
|
var _c;
|
|
196
196
|
return __generator(this, function (_d) {
|
|
197
197
|
switch (_d.label) {
|
|
@@ -224,14 +224,14 @@ var deserializeAws_json1_1CancelStatementCommandError = function (output, contex
|
|
|
224
224
|
case 9: throw _d.sent();
|
|
225
225
|
case 10:
|
|
226
226
|
parsedBody = parsedOutput.body;
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
$metadata: $metadata,
|
|
227
|
+
throwDefaultError({
|
|
228
|
+
output: output,
|
|
229
|
+
parsedBody: parsedBody,
|
|
230
|
+
exceptionCtor: __BaseException,
|
|
231
|
+
errorCode: errorCode,
|
|
233
232
|
});
|
|
234
|
-
|
|
233
|
+
_d.label = 11;
|
|
234
|
+
case 11: return [2];
|
|
235
235
|
}
|
|
236
236
|
});
|
|
237
237
|
}); };
|
|
@@ -254,7 +254,7 @@ export var deserializeAws_json1_1DescribeStatementCommand = function (output, co
|
|
|
254
254
|
});
|
|
255
255
|
}); };
|
|
256
256
|
var deserializeAws_json1_1DescribeStatementCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
257
|
-
var parsedOutput, _a,
|
|
257
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
258
258
|
var _c;
|
|
259
259
|
return __generator(this, function (_d) {
|
|
260
260
|
switch (_d.label) {
|
|
@@ -283,14 +283,14 @@ var deserializeAws_json1_1DescribeStatementCommandError = function (output, cont
|
|
|
283
283
|
case 7: throw _d.sent();
|
|
284
284
|
case 8:
|
|
285
285
|
parsedBody = parsedOutput.body;
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
$metadata: $metadata,
|
|
286
|
+
throwDefaultError({
|
|
287
|
+
output: output,
|
|
288
|
+
parsedBody: parsedBody,
|
|
289
|
+
exceptionCtor: __BaseException,
|
|
290
|
+
errorCode: errorCode,
|
|
292
291
|
});
|
|
293
|
-
|
|
292
|
+
_d.label = 9;
|
|
293
|
+
case 9: return [2];
|
|
294
294
|
}
|
|
295
295
|
});
|
|
296
296
|
}); };
|
|
@@ -313,7 +313,7 @@ export var deserializeAws_json1_1DescribeTableCommand = function (output, contex
|
|
|
313
313
|
});
|
|
314
314
|
}); };
|
|
315
315
|
var deserializeAws_json1_1DescribeTableCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
316
|
-
var parsedOutput, _a,
|
|
316
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
317
317
|
var _c;
|
|
318
318
|
return __generator(this, function (_d) {
|
|
319
319
|
switch (_d.label) {
|
|
@@ -342,14 +342,14 @@ var deserializeAws_json1_1DescribeTableCommandError = function (output, context)
|
|
|
342
342
|
case 7: throw _d.sent();
|
|
343
343
|
case 8:
|
|
344
344
|
parsedBody = parsedOutput.body;
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
$metadata: $metadata,
|
|
345
|
+
throwDefaultError({
|
|
346
|
+
output: output,
|
|
347
|
+
parsedBody: parsedBody,
|
|
348
|
+
exceptionCtor: __BaseException,
|
|
349
|
+
errorCode: errorCode,
|
|
351
350
|
});
|
|
352
|
-
|
|
351
|
+
_d.label = 9;
|
|
352
|
+
case 9: return [2];
|
|
353
353
|
}
|
|
354
354
|
});
|
|
355
355
|
}); };
|
|
@@ -372,7 +372,7 @@ export var deserializeAws_json1_1ExecuteStatementCommand = function (output, con
|
|
|
372
372
|
});
|
|
373
373
|
}); };
|
|
374
374
|
var deserializeAws_json1_1ExecuteStatementCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
375
|
-
var parsedOutput, _a,
|
|
375
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
376
376
|
var _c;
|
|
377
377
|
return __generator(this, function (_d) {
|
|
378
378
|
switch (_d.label) {
|
|
@@ -401,14 +401,14 @@ var deserializeAws_json1_1ExecuteStatementCommandError = function (output, conte
|
|
|
401
401
|
case 7: throw _d.sent();
|
|
402
402
|
case 8:
|
|
403
403
|
parsedBody = parsedOutput.body;
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
$metadata: $metadata,
|
|
404
|
+
throwDefaultError({
|
|
405
|
+
output: output,
|
|
406
|
+
parsedBody: parsedBody,
|
|
407
|
+
exceptionCtor: __BaseException,
|
|
408
|
+
errorCode: errorCode,
|
|
410
409
|
});
|
|
411
|
-
|
|
410
|
+
_d.label = 9;
|
|
411
|
+
case 9: return [2];
|
|
412
412
|
}
|
|
413
413
|
});
|
|
414
414
|
}); };
|
|
@@ -431,7 +431,7 @@ export var deserializeAws_json1_1GetStatementResultCommand = function (output, c
|
|
|
431
431
|
});
|
|
432
432
|
}); };
|
|
433
433
|
var deserializeAws_json1_1GetStatementResultCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
434
|
-
var parsedOutput, _a,
|
|
434
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
435
435
|
var _c;
|
|
436
436
|
return __generator(this, function (_d) {
|
|
437
437
|
switch (_d.label) {
|
|
@@ -460,14 +460,14 @@ var deserializeAws_json1_1GetStatementResultCommandError = function (output, con
|
|
|
460
460
|
case 7: throw _d.sent();
|
|
461
461
|
case 8:
|
|
462
462
|
parsedBody = parsedOutput.body;
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
$metadata: $metadata,
|
|
463
|
+
throwDefaultError({
|
|
464
|
+
output: output,
|
|
465
|
+
parsedBody: parsedBody,
|
|
466
|
+
exceptionCtor: __BaseException,
|
|
467
|
+
errorCode: errorCode,
|
|
469
468
|
});
|
|
470
|
-
|
|
469
|
+
_d.label = 9;
|
|
470
|
+
case 9: return [2];
|
|
471
471
|
}
|
|
472
472
|
});
|
|
473
473
|
}); };
|
|
@@ -490,7 +490,7 @@ export var deserializeAws_json1_1ListDatabasesCommand = function (output, contex
|
|
|
490
490
|
});
|
|
491
491
|
}); };
|
|
492
492
|
var deserializeAws_json1_1ListDatabasesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
493
|
-
var parsedOutput, _a,
|
|
493
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
494
494
|
var _c;
|
|
495
495
|
return __generator(this, function (_d) {
|
|
496
496
|
switch (_d.label) {
|
|
@@ -519,14 +519,14 @@ var deserializeAws_json1_1ListDatabasesCommandError = function (output, context)
|
|
|
519
519
|
case 7: throw _d.sent();
|
|
520
520
|
case 8:
|
|
521
521
|
parsedBody = parsedOutput.body;
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
$metadata: $metadata,
|
|
522
|
+
throwDefaultError({
|
|
523
|
+
output: output,
|
|
524
|
+
parsedBody: parsedBody,
|
|
525
|
+
exceptionCtor: __BaseException,
|
|
526
|
+
errorCode: errorCode,
|
|
528
527
|
});
|
|
529
|
-
|
|
528
|
+
_d.label = 9;
|
|
529
|
+
case 9: return [2];
|
|
530
530
|
}
|
|
531
531
|
});
|
|
532
532
|
}); };
|
|
@@ -549,7 +549,7 @@ export var deserializeAws_json1_1ListSchemasCommand = function (output, context)
|
|
|
549
549
|
});
|
|
550
550
|
}); };
|
|
551
551
|
var deserializeAws_json1_1ListSchemasCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
552
|
-
var parsedOutput, _a,
|
|
552
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
553
553
|
var _c;
|
|
554
554
|
return __generator(this, function (_d) {
|
|
555
555
|
switch (_d.label) {
|
|
@@ -578,14 +578,14 @@ var deserializeAws_json1_1ListSchemasCommandError = function (output, context) {
|
|
|
578
578
|
case 7: throw _d.sent();
|
|
579
579
|
case 8:
|
|
580
580
|
parsedBody = parsedOutput.body;
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
$metadata: $metadata,
|
|
581
|
+
throwDefaultError({
|
|
582
|
+
output: output,
|
|
583
|
+
parsedBody: parsedBody,
|
|
584
|
+
exceptionCtor: __BaseException,
|
|
585
|
+
errorCode: errorCode,
|
|
587
586
|
});
|
|
588
|
-
|
|
587
|
+
_d.label = 9;
|
|
588
|
+
case 9: return [2];
|
|
589
589
|
}
|
|
590
590
|
});
|
|
591
591
|
}); };
|
|
@@ -608,7 +608,7 @@ export var deserializeAws_json1_1ListStatementsCommand = function (output, conte
|
|
|
608
608
|
});
|
|
609
609
|
}); };
|
|
610
610
|
var deserializeAws_json1_1ListStatementsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
611
|
-
var parsedOutput, _a,
|
|
611
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
612
612
|
var _c;
|
|
613
613
|
return __generator(this, function (_d) {
|
|
614
614
|
switch (_d.label) {
|
|
@@ -633,14 +633,14 @@ var deserializeAws_json1_1ListStatementsCommandError = function (output, context
|
|
|
633
633
|
case 5: throw _d.sent();
|
|
634
634
|
case 6:
|
|
635
635
|
parsedBody = parsedOutput.body;
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
$metadata: $metadata,
|
|
636
|
+
throwDefaultError({
|
|
637
|
+
output: output,
|
|
638
|
+
parsedBody: parsedBody,
|
|
639
|
+
exceptionCtor: __BaseException,
|
|
640
|
+
errorCode: errorCode,
|
|
642
641
|
});
|
|
643
|
-
|
|
642
|
+
_d.label = 7;
|
|
643
|
+
case 7: return [2];
|
|
644
644
|
}
|
|
645
645
|
});
|
|
646
646
|
}); };
|
|
@@ -663,7 +663,7 @@ export var deserializeAws_json1_1ListTablesCommand = function (output, context)
|
|
|
663
663
|
});
|
|
664
664
|
}); };
|
|
665
665
|
var deserializeAws_json1_1ListTablesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
666
|
-
var parsedOutput, _a,
|
|
666
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
667
667
|
var _c;
|
|
668
668
|
return __generator(this, function (_d) {
|
|
669
669
|
switch (_d.label) {
|
|
@@ -692,14 +692,14 @@ var deserializeAws_json1_1ListTablesCommandError = function (output, context) {
|
|
|
692
692
|
case 7: throw _d.sent();
|
|
693
693
|
case 8:
|
|
694
694
|
parsedBody = parsedOutput.body;
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
$metadata: $metadata,
|
|
695
|
+
throwDefaultError({
|
|
696
|
+
output: output,
|
|
697
|
+
parsedBody: parsedBody,
|
|
698
|
+
exceptionCtor: __BaseException,
|
|
699
|
+
errorCode: errorCode,
|
|
701
700
|
});
|
|
702
|
-
|
|
701
|
+
_d.label = 9;
|
|
702
|
+
case 9: return [2];
|
|
703
703
|
}
|
|
704
704
|
});
|
|
705
705
|
}); };
|
|
@@ -800,9 +800,6 @@ var serializeAws_json1_1SqlList = function (input, context) {
|
|
|
800
800
|
return input
|
|
801
801
|
.filter(function (e) { return e != null; })
|
|
802
802
|
.map(function (entry) {
|
|
803
|
-
if (entry === null) {
|
|
804
|
-
return null;
|
|
805
|
-
}
|
|
806
803
|
return entry;
|
|
807
804
|
});
|
|
808
805
|
};
|
|
@@ -813,9 +810,6 @@ var serializeAws_json1_1SqlParametersList = function (input, context) {
|
|
|
813
810
|
return input
|
|
814
811
|
.filter(function (e) { return e != null; })
|
|
815
812
|
.map(function (entry) {
|
|
816
|
-
if (entry === null) {
|
|
817
|
-
return null;
|
|
818
|
-
}
|
|
819
813
|
return serializeAws_json1_1SqlParameter(entry, context);
|
|
820
814
|
});
|
|
821
815
|
};
|
|
@@ -951,7 +945,7 @@ var deserializeAws_json1_1ExecuteStatementOutput = function (output, context) {
|
|
|
951
945
|
};
|
|
952
946
|
};
|
|
953
947
|
var deserializeAws_json1_1Field = function (output, context) {
|
|
954
|
-
if (output.blobValue
|
|
948
|
+
if (output.blobValue != null) {
|
|
955
949
|
return {
|
|
956
950
|
blobValue: context.base64Decoder(output.blobValue),
|
|
957
951
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-redshift-data",
|
|
3
3
|
"description": "AWS SDK for JavaScript Redshift Data Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.150.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
20
20
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
21
|
-
"@aws-sdk/client-sts": "3.
|
|
21
|
+
"@aws-sdk/client-sts": "3.150.0",
|
|
22
22
|
"@aws-sdk/config-resolver": "3.130.0",
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.150.0",
|
|
24
24
|
"@aws-sdk/fetch-http-handler": "3.131.0",
|
|
25
25
|
"@aws-sdk/hash-node": "3.127.0",
|
|
26
26
|
"@aws-sdk/invalid-dependency": "3.127.0",
|
|
@@ -36,15 +36,15 @@
|
|
|
36
36
|
"@aws-sdk/node-config-provider": "3.127.0",
|
|
37
37
|
"@aws-sdk/node-http-handler": "3.127.0",
|
|
38
38
|
"@aws-sdk/protocol-http": "3.127.0",
|
|
39
|
-
"@aws-sdk/smithy-client": "3.
|
|
39
|
+
"@aws-sdk/smithy-client": "3.142.0",
|
|
40
40
|
"@aws-sdk/types": "3.127.0",
|
|
41
41
|
"@aws-sdk/url-parser": "3.127.0",
|
|
42
42
|
"@aws-sdk/util-base64-browser": "3.109.0",
|
|
43
43
|
"@aws-sdk/util-base64-node": "3.55.0",
|
|
44
44
|
"@aws-sdk/util-body-length-browser": "3.55.0",
|
|
45
45
|
"@aws-sdk/util-body-length-node": "3.55.0",
|
|
46
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
47
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
46
|
+
"@aws-sdk/util-defaults-mode-browser": "3.142.0",
|
|
47
|
+
"@aws-sdk/util-defaults-mode-node": "3.142.0",
|
|
48
48
|
"@aws-sdk/util-user-agent-browser": "3.127.0",
|
|
49
49
|
"@aws-sdk/util-user-agent-node": "3.127.0",
|
|
50
50
|
"@aws-sdk/util-utf8-browser": "3.109.0",
|
|
@@ -61,6 +61,11 @@
|
|
|
61
61
|
"typedoc": "0.19.2",
|
|
62
62
|
"typescript": "~4.6.2"
|
|
63
63
|
},
|
|
64
|
+
"overrides": {
|
|
65
|
+
"typedoc": {
|
|
66
|
+
"typescript": "~4.6.2"
|
|
67
|
+
}
|
|
68
|
+
},
|
|
64
69
|
"engines": {
|
|
65
70
|
"node": ">=12.0.0"
|
|
66
71
|
},
|