@aws-sdk/client-rds-data 3.131.0 → 3.142.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 +33 -0
- package/README.md +1 -1
- package/dist-cjs/commands/BatchExecuteStatementCommand.js +2 -2
- package/dist-cjs/commands/BeginTransactionCommand.js +2 -2
- package/dist-cjs/commands/CommitTransactionCommand.js +2 -2
- package/dist-cjs/commands/ExecuteSqlCommand.js +2 -2
- package/dist-cjs/commands/ExecuteStatementCommand.js +2 -2
- package/dist-cjs/commands/RollbackTransactionCommand.js +2 -2
- package/dist-cjs/models/models_0.js +156 -195
- package/dist-cjs/protocols/Aws_restJson1.js +82 -130
- package/dist-es/commands/BatchExecuteStatementCommand.js +3 -3
- package/dist-es/commands/BeginTransactionCommand.js +3 -3
- package/dist-es/commands/CommitTransactionCommand.js +3 -3
- package/dist-es/commands/ExecuteSqlCommand.js +3 -3
- package/dist-es/commands/ExecuteStatementCommand.js +3 -3
- package/dist-es/commands/RollbackTransactionCommand.js +3 -3
- package/dist-es/models/models_0.js +82 -145
- package/dist-es/protocols/Aws_restJson1.js +101 -131
- package/dist-types/models/models_0.d.ts +96 -138
- package/dist-types/ts3.4/models/models_0.d.ts +48 -90
- package/package.json +6 -6
|
@@ -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, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion, limitedParseDouble as __limitedParseDouble, limitedParseFloat32 as __limitedParseFloat32, serializeFloat as __serializeFloat, } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion, limitedParseDouble as __limitedParseDouble, limitedParseFloat32 as __limitedParseFloat32, map as __map, serializeFloat as __serializeFloat, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { AccessDeniedException, ArrayValue, BadRequestException, Field, ForbiddenException, InternalServerErrorException, NotFoundException, ServiceUnavailableError, StatementTimeoutException, } from "../models/models_0";
|
|
5
5
|
import { RDSDataServiceException as __BaseException } from "../models/RDSDataServiceException";
|
|
6
6
|
export var serializeAws_restJson1BatchExecuteStatementCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -159,24 +159,23 @@ export var deserializeAws_restJson1BatchExecuteStatementCommand = function (outp
|
|
|
159
159
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
160
160
|
return [2, deserializeAws_restJson1BatchExecuteStatementCommandError(output, context)];
|
|
161
161
|
}
|
|
162
|
-
contents = {
|
|
162
|
+
contents = map({
|
|
163
163
|
$metadata: deserializeMetadata(output),
|
|
164
|
-
|
|
165
|
-
};
|
|
164
|
+
});
|
|
166
165
|
_a = __expectNonNull;
|
|
167
166
|
_b = __expectObject;
|
|
168
167
|
return [4, parseBody(output.body, context)];
|
|
169
168
|
case 1:
|
|
170
169
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
171
|
-
if (data.updateResults
|
|
170
|
+
if (data.updateResults != null) {
|
|
172
171
|
contents.updateResults = deserializeAws_restJson1UpdateResults(data.updateResults, context);
|
|
173
172
|
}
|
|
174
|
-
return [2,
|
|
173
|
+
return [2, contents];
|
|
175
174
|
}
|
|
176
175
|
});
|
|
177
176
|
}); };
|
|
178
177
|
var deserializeAws_restJson1BatchExecuteStatementCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
179
|
-
var parsedOutput, _a,
|
|
178
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
180
179
|
var _c;
|
|
181
180
|
return __generator(this, function (_d) {
|
|
182
181
|
switch (_d.label) {
|
|
@@ -217,14 +216,14 @@ var deserializeAws_restJson1BatchExecuteStatementCommandError = function (output
|
|
|
217
216
|
case 13: throw _d.sent();
|
|
218
217
|
case 14:
|
|
219
218
|
parsedBody = parsedOutput.body;
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
$metadata: $metadata,
|
|
219
|
+
throwDefaultError({
|
|
220
|
+
output: output,
|
|
221
|
+
parsedBody: parsedBody,
|
|
222
|
+
exceptionCtor: __BaseException,
|
|
223
|
+
errorCode: errorCode,
|
|
226
224
|
});
|
|
227
|
-
|
|
225
|
+
_d.label = 15;
|
|
226
|
+
case 15: return [2];
|
|
228
227
|
}
|
|
229
228
|
});
|
|
230
229
|
}); };
|
|
@@ -236,24 +235,23 @@ export var deserializeAws_restJson1BeginTransactionCommand = function (output, c
|
|
|
236
235
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
237
236
|
return [2, deserializeAws_restJson1BeginTransactionCommandError(output, context)];
|
|
238
237
|
}
|
|
239
|
-
contents = {
|
|
238
|
+
contents = map({
|
|
240
239
|
$metadata: deserializeMetadata(output),
|
|
241
|
-
|
|
242
|
-
};
|
|
240
|
+
});
|
|
243
241
|
_a = __expectNonNull;
|
|
244
242
|
_b = __expectObject;
|
|
245
243
|
return [4, parseBody(output.body, context)];
|
|
246
244
|
case 1:
|
|
247
245
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
248
|
-
if (data.transactionId
|
|
246
|
+
if (data.transactionId != null) {
|
|
249
247
|
contents.transactionId = __expectString(data.transactionId);
|
|
250
248
|
}
|
|
251
|
-
return [2,
|
|
249
|
+
return [2, contents];
|
|
252
250
|
}
|
|
253
251
|
});
|
|
254
252
|
}); };
|
|
255
253
|
var deserializeAws_restJson1BeginTransactionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
256
|
-
var parsedOutput, _a,
|
|
254
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
257
255
|
var _c;
|
|
258
256
|
return __generator(this, function (_d) {
|
|
259
257
|
switch (_d.label) {
|
|
@@ -294,14 +292,14 @@ var deserializeAws_restJson1BeginTransactionCommandError = function (output, con
|
|
|
294
292
|
case 13: throw _d.sent();
|
|
295
293
|
case 14:
|
|
296
294
|
parsedBody = parsedOutput.body;
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
$metadata: $metadata,
|
|
295
|
+
throwDefaultError({
|
|
296
|
+
output: output,
|
|
297
|
+
parsedBody: parsedBody,
|
|
298
|
+
exceptionCtor: __BaseException,
|
|
299
|
+
errorCode: errorCode,
|
|
303
300
|
});
|
|
304
|
-
|
|
301
|
+
_d.label = 15;
|
|
302
|
+
case 15: return [2];
|
|
305
303
|
}
|
|
306
304
|
});
|
|
307
305
|
}); };
|
|
@@ -313,24 +311,23 @@ export var deserializeAws_restJson1CommitTransactionCommand = function (output,
|
|
|
313
311
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
314
312
|
return [2, deserializeAws_restJson1CommitTransactionCommandError(output, context)];
|
|
315
313
|
}
|
|
316
|
-
contents = {
|
|
314
|
+
contents = map({
|
|
317
315
|
$metadata: deserializeMetadata(output),
|
|
318
|
-
|
|
319
|
-
};
|
|
316
|
+
});
|
|
320
317
|
_a = __expectNonNull;
|
|
321
318
|
_b = __expectObject;
|
|
322
319
|
return [4, parseBody(output.body, context)];
|
|
323
320
|
case 1:
|
|
324
321
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
325
|
-
if (data.transactionStatus
|
|
322
|
+
if (data.transactionStatus != null) {
|
|
326
323
|
contents.transactionStatus = __expectString(data.transactionStatus);
|
|
327
324
|
}
|
|
328
|
-
return [2,
|
|
325
|
+
return [2, contents];
|
|
329
326
|
}
|
|
330
327
|
});
|
|
331
328
|
}); };
|
|
332
329
|
var deserializeAws_restJson1CommitTransactionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
333
|
-
var parsedOutput, _a,
|
|
330
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
334
331
|
var _c;
|
|
335
332
|
return __generator(this, function (_d) {
|
|
336
333
|
switch (_d.label) {
|
|
@@ -375,14 +372,14 @@ var deserializeAws_restJson1CommitTransactionCommandError = function (output, co
|
|
|
375
372
|
case 15: throw _d.sent();
|
|
376
373
|
case 16:
|
|
377
374
|
parsedBody = parsedOutput.body;
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
$metadata: $metadata,
|
|
375
|
+
throwDefaultError({
|
|
376
|
+
output: output,
|
|
377
|
+
parsedBody: parsedBody,
|
|
378
|
+
exceptionCtor: __BaseException,
|
|
379
|
+
errorCode: errorCode,
|
|
384
380
|
});
|
|
385
|
-
|
|
381
|
+
_d.label = 17;
|
|
382
|
+
case 17: return [2];
|
|
386
383
|
}
|
|
387
384
|
});
|
|
388
385
|
}); };
|
|
@@ -394,24 +391,23 @@ export var deserializeAws_restJson1ExecuteSqlCommand = function (output, context
|
|
|
394
391
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
395
392
|
return [2, deserializeAws_restJson1ExecuteSqlCommandError(output, context)];
|
|
396
393
|
}
|
|
397
|
-
contents = {
|
|
394
|
+
contents = map({
|
|
398
395
|
$metadata: deserializeMetadata(output),
|
|
399
|
-
|
|
400
|
-
};
|
|
396
|
+
});
|
|
401
397
|
_a = __expectNonNull;
|
|
402
398
|
_b = __expectObject;
|
|
403
399
|
return [4, parseBody(output.body, context)];
|
|
404
400
|
case 1:
|
|
405
401
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
406
|
-
if (data.sqlStatementResults
|
|
402
|
+
if (data.sqlStatementResults != null) {
|
|
407
403
|
contents.sqlStatementResults = deserializeAws_restJson1SqlStatementResults(data.sqlStatementResults, context);
|
|
408
404
|
}
|
|
409
|
-
return [2,
|
|
405
|
+
return [2, contents];
|
|
410
406
|
}
|
|
411
407
|
});
|
|
412
408
|
}); };
|
|
413
409
|
var deserializeAws_restJson1ExecuteSqlCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
414
|
-
var parsedOutput, _a,
|
|
410
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
415
411
|
var _c;
|
|
416
412
|
return __generator(this, function (_d) {
|
|
417
413
|
switch (_d.label) {
|
|
@@ -448,14 +444,14 @@ var deserializeAws_restJson1ExecuteSqlCommandError = function (output, context)
|
|
|
448
444
|
case 11: throw _d.sent();
|
|
449
445
|
case 12:
|
|
450
446
|
parsedBody = parsedOutput.body;
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
$metadata: $metadata,
|
|
447
|
+
throwDefaultError({
|
|
448
|
+
output: output,
|
|
449
|
+
parsedBody: parsedBody,
|
|
450
|
+
exceptionCtor: __BaseException,
|
|
451
|
+
errorCode: errorCode,
|
|
457
452
|
});
|
|
458
|
-
|
|
453
|
+
_d.label = 13;
|
|
454
|
+
case 13: return [2];
|
|
459
455
|
}
|
|
460
456
|
});
|
|
461
457
|
}); };
|
|
@@ -467,40 +463,35 @@ export var deserializeAws_restJson1ExecuteStatementCommand = function (output, c
|
|
|
467
463
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
468
464
|
return [2, deserializeAws_restJson1ExecuteStatementCommandError(output, context)];
|
|
469
465
|
}
|
|
470
|
-
contents = {
|
|
466
|
+
contents = map({
|
|
471
467
|
$metadata: deserializeMetadata(output),
|
|
472
|
-
|
|
473
|
-
formattedRecords: undefined,
|
|
474
|
-
generatedFields: undefined,
|
|
475
|
-
numberOfRecordsUpdated: undefined,
|
|
476
|
-
records: undefined,
|
|
477
|
-
};
|
|
468
|
+
});
|
|
478
469
|
_a = __expectNonNull;
|
|
479
470
|
_b = __expectObject;
|
|
480
471
|
return [4, parseBody(output.body, context)];
|
|
481
472
|
case 1:
|
|
482
473
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
483
|
-
if (data.columnMetadata
|
|
474
|
+
if (data.columnMetadata != null) {
|
|
484
475
|
contents.columnMetadata = deserializeAws_restJson1Metadata(data.columnMetadata, context);
|
|
485
476
|
}
|
|
486
|
-
if (data.formattedRecords
|
|
477
|
+
if (data.formattedRecords != null) {
|
|
487
478
|
contents.formattedRecords = __expectString(data.formattedRecords);
|
|
488
479
|
}
|
|
489
|
-
if (data.generatedFields
|
|
480
|
+
if (data.generatedFields != null) {
|
|
490
481
|
contents.generatedFields = deserializeAws_restJson1FieldList(data.generatedFields, context);
|
|
491
482
|
}
|
|
492
|
-
if (data.numberOfRecordsUpdated
|
|
483
|
+
if (data.numberOfRecordsUpdated != null) {
|
|
493
484
|
contents.numberOfRecordsUpdated = __expectLong(data.numberOfRecordsUpdated);
|
|
494
485
|
}
|
|
495
|
-
if (data.records
|
|
486
|
+
if (data.records != null) {
|
|
496
487
|
contents.records = deserializeAws_restJson1SqlRecords(data.records, context);
|
|
497
488
|
}
|
|
498
|
-
return [2,
|
|
489
|
+
return [2, contents];
|
|
499
490
|
}
|
|
500
491
|
});
|
|
501
492
|
}); };
|
|
502
493
|
var deserializeAws_restJson1ExecuteStatementCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
503
|
-
var parsedOutput, _a,
|
|
494
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
504
495
|
var _c;
|
|
505
496
|
return __generator(this, function (_d) {
|
|
506
497
|
switch (_d.label) {
|
|
@@ -541,14 +532,14 @@ var deserializeAws_restJson1ExecuteStatementCommandError = function (output, con
|
|
|
541
532
|
case 13: throw _d.sent();
|
|
542
533
|
case 14:
|
|
543
534
|
parsedBody = parsedOutput.body;
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
$metadata: $metadata,
|
|
535
|
+
throwDefaultError({
|
|
536
|
+
output: output,
|
|
537
|
+
parsedBody: parsedBody,
|
|
538
|
+
exceptionCtor: __BaseException,
|
|
539
|
+
errorCode: errorCode,
|
|
550
540
|
});
|
|
551
|
-
|
|
541
|
+
_d.label = 15;
|
|
542
|
+
case 15: return [2];
|
|
552
543
|
}
|
|
553
544
|
});
|
|
554
545
|
}); };
|
|
@@ -560,24 +551,23 @@ export var deserializeAws_restJson1RollbackTransactionCommand = function (output
|
|
|
560
551
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
561
552
|
return [2, deserializeAws_restJson1RollbackTransactionCommandError(output, context)];
|
|
562
553
|
}
|
|
563
|
-
contents = {
|
|
554
|
+
contents = map({
|
|
564
555
|
$metadata: deserializeMetadata(output),
|
|
565
|
-
|
|
566
|
-
};
|
|
556
|
+
});
|
|
567
557
|
_a = __expectNonNull;
|
|
568
558
|
_b = __expectObject;
|
|
569
559
|
return [4, parseBody(output.body, context)];
|
|
570
560
|
case 1:
|
|
571
561
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
572
|
-
if (data.transactionStatus
|
|
562
|
+
if (data.transactionStatus != null) {
|
|
573
563
|
contents.transactionStatus = __expectString(data.transactionStatus);
|
|
574
564
|
}
|
|
575
|
-
return [2,
|
|
565
|
+
return [2, contents];
|
|
576
566
|
}
|
|
577
567
|
});
|
|
578
568
|
}); };
|
|
579
569
|
var deserializeAws_restJson1RollbackTransactionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
580
|
-
var parsedOutput, _a,
|
|
570
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
581
571
|
var _c;
|
|
582
572
|
return __generator(this, function (_d) {
|
|
583
573
|
switch (_d.label) {
|
|
@@ -622,23 +612,24 @@ var deserializeAws_restJson1RollbackTransactionCommandError = function (output,
|
|
|
622
612
|
case 15: throw _d.sent();
|
|
623
613
|
case 16:
|
|
624
614
|
parsedBody = parsedOutput.body;
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
$metadata: $metadata,
|
|
615
|
+
throwDefaultError({
|
|
616
|
+
output: output,
|
|
617
|
+
parsedBody: parsedBody,
|
|
618
|
+
exceptionCtor: __BaseException,
|
|
619
|
+
errorCode: errorCode,
|
|
631
620
|
});
|
|
632
|
-
|
|
621
|
+
_d.label = 17;
|
|
622
|
+
case 17: return [2];
|
|
633
623
|
}
|
|
634
624
|
});
|
|
635
625
|
}); };
|
|
626
|
+
var map = __map;
|
|
636
627
|
var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
637
628
|
var contents, data, exception;
|
|
638
629
|
return __generator(this, function (_a) {
|
|
639
|
-
contents = {};
|
|
630
|
+
contents = map({});
|
|
640
631
|
data = parsedOutput.body;
|
|
641
|
-
if (data.message
|
|
632
|
+
if (data.message != null) {
|
|
642
633
|
contents.message = __expectString(data.message);
|
|
643
634
|
}
|
|
644
635
|
exception = new AccessDeniedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -648,9 +639,9 @@ var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutp
|
|
|
648
639
|
var deserializeAws_restJson1BadRequestExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
649
640
|
var contents, data, exception;
|
|
650
641
|
return __generator(this, function (_a) {
|
|
651
|
-
contents = {};
|
|
642
|
+
contents = map({});
|
|
652
643
|
data = parsedOutput.body;
|
|
653
|
-
if (data.message
|
|
644
|
+
if (data.message != null) {
|
|
654
645
|
contents.message = __expectString(data.message);
|
|
655
646
|
}
|
|
656
647
|
exception = new BadRequestException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -660,9 +651,9 @@ var deserializeAws_restJson1BadRequestExceptionResponse = function (parsedOutput
|
|
|
660
651
|
var deserializeAws_restJson1ForbiddenExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
661
652
|
var contents, data, exception;
|
|
662
653
|
return __generator(this, function (_a) {
|
|
663
|
-
contents = {};
|
|
654
|
+
contents = map({});
|
|
664
655
|
data = parsedOutput.body;
|
|
665
|
-
if (data.message
|
|
656
|
+
if (data.message != null) {
|
|
666
657
|
contents.message = __expectString(data.message);
|
|
667
658
|
}
|
|
668
659
|
exception = new ForbiddenException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -672,7 +663,7 @@ var deserializeAws_restJson1ForbiddenExceptionResponse = function (parsedOutput,
|
|
|
672
663
|
var deserializeAws_restJson1InternalServerErrorExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
673
664
|
var contents, data, exception;
|
|
674
665
|
return __generator(this, function (_a) {
|
|
675
|
-
contents = {};
|
|
666
|
+
contents = map({});
|
|
676
667
|
data = parsedOutput.body;
|
|
677
668
|
exception = new InternalServerErrorException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
678
669
|
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
@@ -681,9 +672,9 @@ var deserializeAws_restJson1InternalServerErrorExceptionResponse = function (par
|
|
|
681
672
|
var deserializeAws_restJson1NotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
682
673
|
var contents, data, exception;
|
|
683
674
|
return __generator(this, function (_a) {
|
|
684
|
-
contents = {};
|
|
675
|
+
contents = map({});
|
|
685
676
|
data = parsedOutput.body;
|
|
686
|
-
if (data.message
|
|
677
|
+
if (data.message != null) {
|
|
687
678
|
contents.message = __expectString(data.message);
|
|
688
679
|
}
|
|
689
680
|
exception = new NotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -693,7 +684,7 @@ var deserializeAws_restJson1NotFoundExceptionResponse = function (parsedOutput,
|
|
|
693
684
|
var deserializeAws_restJson1ServiceUnavailableErrorResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
694
685
|
var contents, data, exception;
|
|
695
686
|
return __generator(this, function (_a) {
|
|
696
|
-
contents = {};
|
|
687
|
+
contents = map({});
|
|
697
688
|
data = parsedOutput.body;
|
|
698
689
|
exception = new ServiceUnavailableError(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
699
690
|
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
@@ -702,12 +693,12 @@ var deserializeAws_restJson1ServiceUnavailableErrorResponse = function (parsedOu
|
|
|
702
693
|
var deserializeAws_restJson1StatementTimeoutExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
703
694
|
var contents, data, exception;
|
|
704
695
|
return __generator(this, function (_a) {
|
|
705
|
-
contents = {};
|
|
696
|
+
contents = map({});
|
|
706
697
|
data = parsedOutput.body;
|
|
707
|
-
if (data.dbConnectionId
|
|
698
|
+
if (data.dbConnectionId != null) {
|
|
708
699
|
contents.dbConnectionId = __expectLong(data.dbConnectionId);
|
|
709
700
|
}
|
|
710
|
-
if (data.message
|
|
701
|
+
if (data.message != null) {
|
|
711
702
|
contents.message = __expectString(data.message);
|
|
712
703
|
}
|
|
713
704
|
exception = new StatementTimeoutException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -718,9 +709,6 @@ var serializeAws_restJson1ArrayOfArray = function (input, context) {
|
|
|
718
709
|
return input
|
|
719
710
|
.filter(function (e) { return e != null; })
|
|
720
711
|
.map(function (entry) {
|
|
721
|
-
if (entry === null) {
|
|
722
|
-
return null;
|
|
723
|
-
}
|
|
724
712
|
return serializeAws_restJson1ArrayValue(entry, context);
|
|
725
713
|
});
|
|
726
714
|
};
|
|
@@ -738,9 +726,6 @@ var serializeAws_restJson1BooleanArray = function (input, context) {
|
|
|
738
726
|
return input
|
|
739
727
|
.filter(function (e) { return e != null; })
|
|
740
728
|
.map(function (entry) {
|
|
741
|
-
if (entry === null) {
|
|
742
|
-
return null;
|
|
743
|
-
}
|
|
744
729
|
return entry;
|
|
745
730
|
});
|
|
746
731
|
};
|
|
@@ -748,9 +733,6 @@ var serializeAws_restJson1DoubleArray = function (input, context) {
|
|
|
748
733
|
return input
|
|
749
734
|
.filter(function (e) { return e != null; })
|
|
750
735
|
.map(function (entry) {
|
|
751
|
-
if (entry === null) {
|
|
752
|
-
return null;
|
|
753
|
-
}
|
|
754
736
|
return __serializeFloat(entry);
|
|
755
737
|
});
|
|
756
738
|
};
|
|
@@ -770,9 +752,6 @@ var serializeAws_restJson1LongArray = function (input, context) {
|
|
|
770
752
|
return input
|
|
771
753
|
.filter(function (e) { return e != null; })
|
|
772
754
|
.map(function (entry) {
|
|
773
|
-
if (entry === null) {
|
|
774
|
-
return null;
|
|
775
|
-
}
|
|
776
755
|
return entry;
|
|
777
756
|
});
|
|
778
757
|
};
|
|
@@ -786,9 +765,6 @@ var serializeAws_restJson1SqlParameterSets = function (input, context) {
|
|
|
786
765
|
return input
|
|
787
766
|
.filter(function (e) { return e != null; })
|
|
788
767
|
.map(function (entry) {
|
|
789
|
-
if (entry === null) {
|
|
790
|
-
return null;
|
|
791
|
-
}
|
|
792
768
|
return serializeAws_restJson1SqlParametersList(entry, context);
|
|
793
769
|
});
|
|
794
770
|
};
|
|
@@ -796,9 +772,6 @@ var serializeAws_restJson1SqlParametersList = function (input, context) {
|
|
|
796
772
|
return input
|
|
797
773
|
.filter(function (e) { return e != null; })
|
|
798
774
|
.map(function (entry) {
|
|
799
|
-
if (entry === null) {
|
|
800
|
-
return null;
|
|
801
|
-
}
|
|
802
775
|
return serializeAws_restJson1SqlParameter(entry, context);
|
|
803
776
|
});
|
|
804
777
|
};
|
|
@@ -806,9 +779,6 @@ var serializeAws_restJson1StringArray = function (input, context) {
|
|
|
806
779
|
return input
|
|
807
780
|
.filter(function (e) { return e != null; })
|
|
808
781
|
.map(function (entry) {
|
|
809
|
-
if (entry === null) {
|
|
810
|
-
return null;
|
|
811
|
-
}
|
|
812
782
|
return entry;
|
|
813
783
|
});
|
|
814
784
|
};
|
|
@@ -824,27 +794,27 @@ var deserializeAws_restJson1ArrayOfArray = function (output, context) {
|
|
|
824
794
|
return retVal;
|
|
825
795
|
};
|
|
826
796
|
var deserializeAws_restJson1ArrayValue = function (output, context) {
|
|
827
|
-
if (output.arrayValues
|
|
797
|
+
if (output.arrayValues != null) {
|
|
828
798
|
return {
|
|
829
799
|
arrayValues: deserializeAws_restJson1ArrayOfArray(output.arrayValues, context),
|
|
830
800
|
};
|
|
831
801
|
}
|
|
832
|
-
if (output.booleanValues
|
|
802
|
+
if (output.booleanValues != null) {
|
|
833
803
|
return {
|
|
834
804
|
booleanValues: deserializeAws_restJson1BooleanArray(output.booleanValues, context),
|
|
835
805
|
};
|
|
836
806
|
}
|
|
837
|
-
if (output.doubleValues
|
|
807
|
+
if (output.doubleValues != null) {
|
|
838
808
|
return {
|
|
839
809
|
doubleValues: deserializeAws_restJson1DoubleArray(output.doubleValues, context),
|
|
840
810
|
};
|
|
841
811
|
}
|
|
842
|
-
if (output.longValues
|
|
812
|
+
if (output.longValues != null) {
|
|
843
813
|
return {
|
|
844
814
|
longValues: deserializeAws_restJson1LongArray(output.longValues, context),
|
|
845
815
|
};
|
|
846
816
|
}
|
|
847
|
-
if (output.stringValues
|
|
817
|
+
if (output.stringValues != null) {
|
|
848
818
|
return {
|
|
849
819
|
stringValues: deserializeAws_restJson1StringArray(output.stringValues, context),
|
|
850
820
|
};
|
|
@@ -903,12 +873,12 @@ var deserializeAws_restJson1DoubleArray = function (output, context) {
|
|
|
903
873
|
return retVal;
|
|
904
874
|
};
|
|
905
875
|
var deserializeAws_restJson1Field = function (output, context) {
|
|
906
|
-
if (output.arrayValue
|
|
876
|
+
if (output.arrayValue != null) {
|
|
907
877
|
return {
|
|
908
878
|
arrayValue: deserializeAws_restJson1ArrayValue(__expectUnion(output.arrayValue), context),
|
|
909
879
|
};
|
|
910
880
|
}
|
|
911
|
-
if (output.blobValue
|
|
881
|
+
if (output.blobValue != null) {
|
|
912
882
|
return {
|
|
913
883
|
blobValue: context.base64Decoder(output.blobValue),
|
|
914
884
|
};
|
|
@@ -1065,7 +1035,7 @@ var deserializeAws_restJson1UpdateResults = function (output, context) {
|
|
|
1065
1035
|
return retVal;
|
|
1066
1036
|
};
|
|
1067
1037
|
var deserializeAws_restJson1Value = function (output, context) {
|
|
1068
|
-
if (output.arrayValues
|
|
1038
|
+
if (output.arrayValues != null) {
|
|
1069
1039
|
return {
|
|
1070
1040
|
arrayValues: deserializeAws_restJson1ArrayValueList(output.arrayValues, context),
|
|
1071
1041
|
};
|
|
@@ -1076,7 +1046,7 @@ var deserializeAws_restJson1Value = function (output, context) {
|
|
|
1076
1046
|
if (__expectBoolean(output.bitValue) !== undefined) {
|
|
1077
1047
|
return { bitValue: __expectBoolean(output.bitValue) };
|
|
1078
1048
|
}
|
|
1079
|
-
if (output.blobValue
|
|
1049
|
+
if (output.blobValue != null) {
|
|
1080
1050
|
return {
|
|
1081
1051
|
blobValue: context.base64Decoder(output.blobValue),
|
|
1082
1052
|
};
|
|
@@ -1096,7 +1066,7 @@ var deserializeAws_restJson1Value = function (output, context) {
|
|
|
1096
1066
|
if (__expectString(output.stringValue) !== undefined) {
|
|
1097
1067
|
return { stringValue: __expectString(output.stringValue) };
|
|
1098
1068
|
}
|
|
1099
|
-
if (output.structValue
|
|
1069
|
+
if (output.structValue != null) {
|
|
1100
1070
|
return {
|
|
1101
1071
|
structValue: deserializeAws_restJson1StructValue(output.structValue, context),
|
|
1102
1072
|
};
|