@aws-sdk/client-timestream-write 3.118.0 → 3.127.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_0.js +154 -178
- package/dist-es/protocols/Aws_json1_0.js +124 -148
- package/package.json +27 -27
|
@@ -175,8 +175,7 @@ const deserializeAws_json1_0CreateDatabaseCommandError = async (output, context)
|
|
|
175
175
|
body: await parseBody(output.body, context),
|
|
176
176
|
};
|
|
177
177
|
let response;
|
|
178
|
-
|
|
179
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
178
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
180
179
|
switch (errorCode) {
|
|
181
180
|
case "AccessDeniedException":
|
|
182
181
|
case "com.amazonaws.timestreamwrite#AccessDeniedException":
|
|
@@ -201,10 +200,12 @@ const deserializeAws_json1_0CreateDatabaseCommandError = async (output, context)
|
|
|
201
200
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
202
201
|
default:
|
|
203
202
|
const parsedBody = parsedOutput.body;
|
|
203
|
+
const $metadata = deserializeMetadata(output);
|
|
204
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
204
205
|
response = new TimestreamWriteServiceException_1.TimestreamWriteServiceException({
|
|
205
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
206
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
206
207
|
$fault: "client",
|
|
207
|
-
$metadata
|
|
208
|
+
$metadata,
|
|
208
209
|
});
|
|
209
210
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
210
211
|
}
|
|
@@ -229,8 +230,7 @@ const deserializeAws_json1_0CreateTableCommandError = async (output, context) =>
|
|
|
229
230
|
body: await parseBody(output.body, context),
|
|
230
231
|
};
|
|
231
232
|
let response;
|
|
232
|
-
|
|
233
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
233
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
234
234
|
switch (errorCode) {
|
|
235
235
|
case "AccessDeniedException":
|
|
236
236
|
case "com.amazonaws.timestreamwrite#AccessDeniedException":
|
|
@@ -258,10 +258,12 @@ const deserializeAws_json1_0CreateTableCommandError = async (output, context) =>
|
|
|
258
258
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
259
259
|
default:
|
|
260
260
|
const parsedBody = parsedOutput.body;
|
|
261
|
+
const $metadata = deserializeMetadata(output);
|
|
262
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
261
263
|
response = new TimestreamWriteServiceException_1.TimestreamWriteServiceException({
|
|
262
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
264
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
263
265
|
$fault: "client",
|
|
264
|
-
$metadata
|
|
266
|
+
$metadata,
|
|
265
267
|
});
|
|
266
268
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
267
269
|
}
|
|
@@ -283,8 +285,7 @@ const deserializeAws_json1_0DeleteDatabaseCommandError = async (output, context)
|
|
|
283
285
|
body: await parseBody(output.body, context),
|
|
284
286
|
};
|
|
285
287
|
let response;
|
|
286
|
-
|
|
287
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
288
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
288
289
|
switch (errorCode) {
|
|
289
290
|
case "AccessDeniedException":
|
|
290
291
|
case "com.amazonaws.timestreamwrite#AccessDeniedException":
|
|
@@ -306,10 +307,12 @@ const deserializeAws_json1_0DeleteDatabaseCommandError = async (output, context)
|
|
|
306
307
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
307
308
|
default:
|
|
308
309
|
const parsedBody = parsedOutput.body;
|
|
310
|
+
const $metadata = deserializeMetadata(output);
|
|
311
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
309
312
|
response = new TimestreamWriteServiceException_1.TimestreamWriteServiceException({
|
|
310
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
313
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
311
314
|
$fault: "client",
|
|
312
|
-
$metadata
|
|
315
|
+
$metadata,
|
|
313
316
|
});
|
|
314
317
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
315
318
|
}
|
|
@@ -331,8 +334,7 @@ const deserializeAws_json1_0DeleteTableCommandError = async (output, context) =>
|
|
|
331
334
|
body: await parseBody(output.body, context),
|
|
332
335
|
};
|
|
333
336
|
let response;
|
|
334
|
-
|
|
335
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
337
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
336
338
|
switch (errorCode) {
|
|
337
339
|
case "AccessDeniedException":
|
|
338
340
|
case "com.amazonaws.timestreamwrite#AccessDeniedException":
|
|
@@ -354,10 +356,12 @@ const deserializeAws_json1_0DeleteTableCommandError = async (output, context) =>
|
|
|
354
356
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
355
357
|
default:
|
|
356
358
|
const parsedBody = parsedOutput.body;
|
|
359
|
+
const $metadata = deserializeMetadata(output);
|
|
360
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
357
361
|
response = new TimestreamWriteServiceException_1.TimestreamWriteServiceException({
|
|
358
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
362
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
359
363
|
$fault: "client",
|
|
360
|
-
$metadata
|
|
364
|
+
$metadata,
|
|
361
365
|
});
|
|
362
366
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
363
367
|
}
|
|
@@ -382,8 +386,7 @@ const deserializeAws_json1_0DescribeDatabaseCommandError = async (output, contex
|
|
|
382
386
|
body: await parseBody(output.body, context),
|
|
383
387
|
};
|
|
384
388
|
let response;
|
|
385
|
-
|
|
386
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
389
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
387
390
|
switch (errorCode) {
|
|
388
391
|
case "AccessDeniedException":
|
|
389
392
|
case "com.amazonaws.timestreamwrite#AccessDeniedException":
|
|
@@ -405,10 +408,12 @@ const deserializeAws_json1_0DescribeDatabaseCommandError = async (output, contex
|
|
|
405
408
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
406
409
|
default:
|
|
407
410
|
const parsedBody = parsedOutput.body;
|
|
411
|
+
const $metadata = deserializeMetadata(output);
|
|
412
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
408
413
|
response = new TimestreamWriteServiceException_1.TimestreamWriteServiceException({
|
|
409
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
414
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
410
415
|
$fault: "client",
|
|
411
|
-
$metadata
|
|
416
|
+
$metadata,
|
|
412
417
|
});
|
|
413
418
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
414
419
|
}
|
|
@@ -433,8 +438,7 @@ const deserializeAws_json1_0DescribeEndpointsCommandError = async (output, conte
|
|
|
433
438
|
body: await parseBody(output.body, context),
|
|
434
439
|
};
|
|
435
440
|
let response;
|
|
436
|
-
|
|
437
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
441
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
438
442
|
switch (errorCode) {
|
|
439
443
|
case "InternalServerException":
|
|
440
444
|
case "com.amazonaws.timestreamwrite#InternalServerException":
|
|
@@ -447,10 +451,12 @@ const deserializeAws_json1_0DescribeEndpointsCommandError = async (output, conte
|
|
|
447
451
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
448
452
|
default:
|
|
449
453
|
const parsedBody = parsedOutput.body;
|
|
454
|
+
const $metadata = deserializeMetadata(output);
|
|
455
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
450
456
|
response = new TimestreamWriteServiceException_1.TimestreamWriteServiceException({
|
|
451
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
457
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
452
458
|
$fault: "client",
|
|
453
|
-
$metadata
|
|
459
|
+
$metadata,
|
|
454
460
|
});
|
|
455
461
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
456
462
|
}
|
|
@@ -475,8 +481,7 @@ const deserializeAws_json1_0DescribeTableCommandError = async (output, context)
|
|
|
475
481
|
body: await parseBody(output.body, context),
|
|
476
482
|
};
|
|
477
483
|
let response;
|
|
478
|
-
|
|
479
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
484
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
480
485
|
switch (errorCode) {
|
|
481
486
|
case "AccessDeniedException":
|
|
482
487
|
case "com.amazonaws.timestreamwrite#AccessDeniedException":
|
|
@@ -498,10 +503,12 @@ const deserializeAws_json1_0DescribeTableCommandError = async (output, context)
|
|
|
498
503
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
499
504
|
default:
|
|
500
505
|
const parsedBody = parsedOutput.body;
|
|
506
|
+
const $metadata = deserializeMetadata(output);
|
|
507
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
501
508
|
response = new TimestreamWriteServiceException_1.TimestreamWriteServiceException({
|
|
502
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
509
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
503
510
|
$fault: "client",
|
|
504
|
-
$metadata
|
|
511
|
+
$metadata,
|
|
505
512
|
});
|
|
506
513
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
507
514
|
}
|
|
@@ -526,8 +533,7 @@ const deserializeAws_json1_0ListDatabasesCommandError = async (output, context)
|
|
|
526
533
|
body: await parseBody(output.body, context),
|
|
527
534
|
};
|
|
528
535
|
let response;
|
|
529
|
-
|
|
530
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
536
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
531
537
|
switch (errorCode) {
|
|
532
538
|
case "AccessDeniedException":
|
|
533
539
|
case "com.amazonaws.timestreamwrite#AccessDeniedException":
|
|
@@ -546,10 +552,12 @@ const deserializeAws_json1_0ListDatabasesCommandError = async (output, context)
|
|
|
546
552
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
547
553
|
default:
|
|
548
554
|
const parsedBody = parsedOutput.body;
|
|
555
|
+
const $metadata = deserializeMetadata(output);
|
|
556
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
549
557
|
response = new TimestreamWriteServiceException_1.TimestreamWriteServiceException({
|
|
550
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
558
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
551
559
|
$fault: "client",
|
|
552
|
-
$metadata
|
|
560
|
+
$metadata,
|
|
553
561
|
});
|
|
554
562
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
555
563
|
}
|
|
@@ -574,8 +582,7 @@ const deserializeAws_json1_0ListTablesCommandError = async (output, context) =>
|
|
|
574
582
|
body: await parseBody(output.body, context),
|
|
575
583
|
};
|
|
576
584
|
let response;
|
|
577
|
-
|
|
578
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
585
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
579
586
|
switch (errorCode) {
|
|
580
587
|
case "AccessDeniedException":
|
|
581
588
|
case "com.amazonaws.timestreamwrite#AccessDeniedException":
|
|
@@ -597,10 +604,12 @@ const deserializeAws_json1_0ListTablesCommandError = async (output, context) =>
|
|
|
597
604
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
598
605
|
default:
|
|
599
606
|
const parsedBody = parsedOutput.body;
|
|
607
|
+
const $metadata = deserializeMetadata(output);
|
|
608
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
600
609
|
response = new TimestreamWriteServiceException_1.TimestreamWriteServiceException({
|
|
601
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
610
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
602
611
|
$fault: "client",
|
|
603
|
-
$metadata
|
|
612
|
+
$metadata,
|
|
604
613
|
});
|
|
605
614
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
606
615
|
}
|
|
@@ -625,8 +634,7 @@ const deserializeAws_json1_0ListTagsForResourceCommandError = async (output, con
|
|
|
625
634
|
body: await parseBody(output.body, context),
|
|
626
635
|
};
|
|
627
636
|
let response;
|
|
628
|
-
|
|
629
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
637
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
630
638
|
switch (errorCode) {
|
|
631
639
|
case "InvalidEndpointException":
|
|
632
640
|
case "com.amazonaws.timestreamwrite#InvalidEndpointException":
|
|
@@ -642,10 +650,12 @@ const deserializeAws_json1_0ListTagsForResourceCommandError = async (output, con
|
|
|
642
650
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
643
651
|
default:
|
|
644
652
|
const parsedBody = parsedOutput.body;
|
|
653
|
+
const $metadata = deserializeMetadata(output);
|
|
654
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
645
655
|
response = new TimestreamWriteServiceException_1.TimestreamWriteServiceException({
|
|
646
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
656
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
647
657
|
$fault: "client",
|
|
648
|
-
$metadata
|
|
658
|
+
$metadata,
|
|
649
659
|
});
|
|
650
660
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
651
661
|
}
|
|
@@ -670,8 +680,7 @@ const deserializeAws_json1_0TagResourceCommandError = async (output, context) =>
|
|
|
670
680
|
body: await parseBody(output.body, context),
|
|
671
681
|
};
|
|
672
682
|
let response;
|
|
673
|
-
|
|
674
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
683
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
675
684
|
switch (errorCode) {
|
|
676
685
|
case "InvalidEndpointException":
|
|
677
686
|
case "com.amazonaws.timestreamwrite#InvalidEndpointException":
|
|
@@ -690,10 +699,12 @@ const deserializeAws_json1_0TagResourceCommandError = async (output, context) =>
|
|
|
690
699
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
691
700
|
default:
|
|
692
701
|
const parsedBody = parsedOutput.body;
|
|
702
|
+
const $metadata = deserializeMetadata(output);
|
|
703
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
693
704
|
response = new TimestreamWriteServiceException_1.TimestreamWriteServiceException({
|
|
694
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
705
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
695
706
|
$fault: "client",
|
|
696
|
-
$metadata
|
|
707
|
+
$metadata,
|
|
697
708
|
});
|
|
698
709
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
699
710
|
}
|
|
@@ -718,8 +729,7 @@ const deserializeAws_json1_0UntagResourceCommandError = async (output, context)
|
|
|
718
729
|
body: await parseBody(output.body, context),
|
|
719
730
|
};
|
|
720
731
|
let response;
|
|
721
|
-
|
|
722
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
732
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
723
733
|
switch (errorCode) {
|
|
724
734
|
case "InvalidEndpointException":
|
|
725
735
|
case "com.amazonaws.timestreamwrite#InvalidEndpointException":
|
|
@@ -738,10 +748,12 @@ const deserializeAws_json1_0UntagResourceCommandError = async (output, context)
|
|
|
738
748
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
739
749
|
default:
|
|
740
750
|
const parsedBody = parsedOutput.body;
|
|
751
|
+
const $metadata = deserializeMetadata(output);
|
|
752
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
741
753
|
response = new TimestreamWriteServiceException_1.TimestreamWriteServiceException({
|
|
742
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
754
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
743
755
|
$fault: "client",
|
|
744
|
-
$metadata
|
|
756
|
+
$metadata,
|
|
745
757
|
});
|
|
746
758
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
747
759
|
}
|
|
@@ -766,8 +778,7 @@ const deserializeAws_json1_0UpdateDatabaseCommandError = async (output, context)
|
|
|
766
778
|
body: await parseBody(output.body, context),
|
|
767
779
|
};
|
|
768
780
|
let response;
|
|
769
|
-
|
|
770
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
781
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
771
782
|
switch (errorCode) {
|
|
772
783
|
case "AccessDeniedException":
|
|
773
784
|
case "com.amazonaws.timestreamwrite#AccessDeniedException":
|
|
@@ -792,10 +803,12 @@ const deserializeAws_json1_0UpdateDatabaseCommandError = async (output, context)
|
|
|
792
803
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
793
804
|
default:
|
|
794
805
|
const parsedBody = parsedOutput.body;
|
|
806
|
+
const $metadata = deserializeMetadata(output);
|
|
807
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
795
808
|
response = new TimestreamWriteServiceException_1.TimestreamWriteServiceException({
|
|
796
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
809
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
797
810
|
$fault: "client",
|
|
798
|
-
$metadata
|
|
811
|
+
$metadata,
|
|
799
812
|
});
|
|
800
813
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
801
814
|
}
|
|
@@ -820,8 +833,7 @@ const deserializeAws_json1_0UpdateTableCommandError = async (output, context) =>
|
|
|
820
833
|
body: await parseBody(output.body, context),
|
|
821
834
|
};
|
|
822
835
|
let response;
|
|
823
|
-
|
|
824
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
836
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
825
837
|
switch (errorCode) {
|
|
826
838
|
case "AccessDeniedException":
|
|
827
839
|
case "com.amazonaws.timestreamwrite#AccessDeniedException":
|
|
@@ -843,10 +855,12 @@ const deserializeAws_json1_0UpdateTableCommandError = async (output, context) =>
|
|
|
843
855
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
844
856
|
default:
|
|
845
857
|
const parsedBody = parsedOutput.body;
|
|
858
|
+
const $metadata = deserializeMetadata(output);
|
|
859
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
846
860
|
response = new TimestreamWriteServiceException_1.TimestreamWriteServiceException({
|
|
847
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
861
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
848
862
|
$fault: "client",
|
|
849
|
-
$metadata
|
|
863
|
+
$metadata,
|
|
850
864
|
});
|
|
851
865
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
852
866
|
}
|
|
@@ -871,8 +885,7 @@ const deserializeAws_json1_0WriteRecordsCommandError = async (output, context) =
|
|
|
871
885
|
body: await parseBody(output.body, context),
|
|
872
886
|
};
|
|
873
887
|
let response;
|
|
874
|
-
|
|
875
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
888
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
876
889
|
switch (errorCode) {
|
|
877
890
|
case "AccessDeniedException":
|
|
878
891
|
case "com.amazonaws.timestreamwrite#AccessDeniedException":
|
|
@@ -897,10 +910,12 @@ const deserializeAws_json1_0WriteRecordsCommandError = async (output, context) =
|
|
|
897
910
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
898
911
|
default:
|
|
899
912
|
const parsedBody = parsedOutput.body;
|
|
913
|
+
const $metadata = deserializeMetadata(output);
|
|
914
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
900
915
|
response = new TimestreamWriteServiceException_1.TimestreamWriteServiceException({
|
|
901
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
916
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
902
917
|
$fault: "client",
|
|
903
|
-
$metadata
|
|
918
|
+
$metadata,
|
|
904
919
|
});
|
|
905
920
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
906
921
|
}
|
|
@@ -988,40 +1003,38 @@ const deserializeAws_json1_0ValidationExceptionResponse = async (parsedOutput, c
|
|
|
988
1003
|
};
|
|
989
1004
|
const serializeAws_json1_0CreateDatabaseRequest = (input, context) => {
|
|
990
1005
|
return {
|
|
991
|
-
...(input.DatabaseName
|
|
992
|
-
...(input.KmsKeyId
|
|
993
|
-
...(input.Tags
|
|
1006
|
+
...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
|
|
1007
|
+
...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
|
|
1008
|
+
...(input.Tags != null && { Tags: serializeAws_json1_0TagList(input.Tags, context) }),
|
|
994
1009
|
};
|
|
995
1010
|
};
|
|
996
1011
|
const serializeAws_json1_0CreateTableRequest = (input, context) => {
|
|
997
1012
|
return {
|
|
998
|
-
...(input.DatabaseName
|
|
999
|
-
...(input.MagneticStoreWriteProperties
|
|
1000
|
-
input.MagneticStoreWriteProperties !== null && {
|
|
1013
|
+
...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
|
|
1014
|
+
...(input.MagneticStoreWriteProperties != null && {
|
|
1001
1015
|
MagneticStoreWriteProperties: serializeAws_json1_0MagneticStoreWriteProperties(input.MagneticStoreWriteProperties, context),
|
|
1002
1016
|
}),
|
|
1003
|
-
...(input.RetentionProperties
|
|
1004
|
-
input.RetentionProperties !== null && {
|
|
1017
|
+
...(input.RetentionProperties != null && {
|
|
1005
1018
|
RetentionProperties: serializeAws_json1_0RetentionProperties(input.RetentionProperties, context),
|
|
1006
1019
|
}),
|
|
1007
|
-
...(input.TableName
|
|
1008
|
-
...(input.Tags
|
|
1020
|
+
...(input.TableName != null && { TableName: input.TableName }),
|
|
1021
|
+
...(input.Tags != null && { Tags: serializeAws_json1_0TagList(input.Tags, context) }),
|
|
1009
1022
|
};
|
|
1010
1023
|
};
|
|
1011
1024
|
const serializeAws_json1_0DeleteDatabaseRequest = (input, context) => {
|
|
1012
1025
|
return {
|
|
1013
|
-
...(input.DatabaseName
|
|
1026
|
+
...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
|
|
1014
1027
|
};
|
|
1015
1028
|
};
|
|
1016
1029
|
const serializeAws_json1_0DeleteTableRequest = (input, context) => {
|
|
1017
1030
|
return {
|
|
1018
|
-
...(input.DatabaseName
|
|
1019
|
-
...(input.TableName
|
|
1031
|
+
...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
|
|
1032
|
+
...(input.TableName != null && { TableName: input.TableName }),
|
|
1020
1033
|
};
|
|
1021
1034
|
};
|
|
1022
1035
|
const serializeAws_json1_0DescribeDatabaseRequest = (input, context) => {
|
|
1023
1036
|
return {
|
|
1024
|
-
...(input.DatabaseName
|
|
1037
|
+
...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
|
|
1025
1038
|
};
|
|
1026
1039
|
};
|
|
1027
1040
|
const serializeAws_json1_0DescribeEndpointsRequest = (input, context) => {
|
|
@@ -1029,16 +1042,15 @@ const serializeAws_json1_0DescribeEndpointsRequest = (input, context) => {
|
|
|
1029
1042
|
};
|
|
1030
1043
|
const serializeAws_json1_0DescribeTableRequest = (input, context) => {
|
|
1031
1044
|
return {
|
|
1032
|
-
...(input.DatabaseName
|
|
1033
|
-
...(input.TableName
|
|
1045
|
+
...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
|
|
1046
|
+
...(input.TableName != null && { TableName: input.TableName }),
|
|
1034
1047
|
};
|
|
1035
1048
|
};
|
|
1036
1049
|
const serializeAws_json1_0Dimension = (input, context) => {
|
|
1037
1050
|
return {
|
|
1038
|
-
...(input.DimensionValueType
|
|
1039
|
-
|
|
1040
|
-
...(input.
|
|
1041
|
-
...(input.Value !== undefined && input.Value !== null && { Value: input.Value }),
|
|
1051
|
+
...(input.DimensionValueType != null && { DimensionValueType: input.DimensionValueType }),
|
|
1052
|
+
...(input.Name != null && { Name: input.Name }),
|
|
1053
|
+
...(input.Value != null && { Value: input.Value }),
|
|
1042
1054
|
};
|
|
1043
1055
|
};
|
|
1044
1056
|
const serializeAws_json1_0Dimensions = (input, context) => {
|
|
@@ -1053,45 +1065,42 @@ const serializeAws_json1_0Dimensions = (input, context) => {
|
|
|
1053
1065
|
};
|
|
1054
1066
|
const serializeAws_json1_0ListDatabasesRequest = (input, context) => {
|
|
1055
1067
|
return {
|
|
1056
|
-
...(input.MaxResults
|
|
1057
|
-
...(input.NextToken
|
|
1068
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1069
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1058
1070
|
};
|
|
1059
1071
|
};
|
|
1060
1072
|
const serializeAws_json1_0ListTablesRequest = (input, context) => {
|
|
1061
1073
|
return {
|
|
1062
|
-
...(input.DatabaseName
|
|
1063
|
-
...(input.MaxResults
|
|
1064
|
-
...(input.NextToken
|
|
1074
|
+
...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
|
|
1075
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1076
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1065
1077
|
};
|
|
1066
1078
|
};
|
|
1067
1079
|
const serializeAws_json1_0ListTagsForResourceRequest = (input, context) => {
|
|
1068
1080
|
return {
|
|
1069
|
-
...(input.ResourceARN
|
|
1081
|
+
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
1070
1082
|
};
|
|
1071
1083
|
};
|
|
1072
1084
|
const serializeAws_json1_0MagneticStoreRejectedDataLocation = (input, context) => {
|
|
1073
1085
|
return {
|
|
1074
|
-
...(input.S3Configuration
|
|
1075
|
-
input.S3Configuration !== null && {
|
|
1086
|
+
...(input.S3Configuration != null && {
|
|
1076
1087
|
S3Configuration: serializeAws_json1_0S3Configuration(input.S3Configuration, context),
|
|
1077
1088
|
}),
|
|
1078
1089
|
};
|
|
1079
1090
|
};
|
|
1080
1091
|
const serializeAws_json1_0MagneticStoreWriteProperties = (input, context) => {
|
|
1081
1092
|
return {
|
|
1082
|
-
...(input.EnableMagneticStoreWrites
|
|
1083
|
-
|
|
1084
|
-
...(input.MagneticStoreRejectedDataLocation !== undefined &&
|
|
1085
|
-
input.MagneticStoreRejectedDataLocation !== null && {
|
|
1093
|
+
...(input.EnableMagneticStoreWrites != null && { EnableMagneticStoreWrites: input.EnableMagneticStoreWrites }),
|
|
1094
|
+
...(input.MagneticStoreRejectedDataLocation != null && {
|
|
1086
1095
|
MagneticStoreRejectedDataLocation: serializeAws_json1_0MagneticStoreRejectedDataLocation(input.MagneticStoreRejectedDataLocation, context),
|
|
1087
1096
|
}),
|
|
1088
1097
|
};
|
|
1089
1098
|
};
|
|
1090
1099
|
const serializeAws_json1_0MeasureValue = (input, context) => {
|
|
1091
1100
|
return {
|
|
1092
|
-
...(input.Name
|
|
1093
|
-
...(input.Type
|
|
1094
|
-
...(input.Value
|
|
1101
|
+
...(input.Name != null && { Name: input.Name }),
|
|
1102
|
+
...(input.Type != null && { Type: input.Type }),
|
|
1103
|
+
...(input.Value != null && { Value: input.Value }),
|
|
1095
1104
|
};
|
|
1096
1105
|
};
|
|
1097
1106
|
const serializeAws_json1_0MeasureValues = (input, context) => {
|
|
@@ -1106,19 +1115,16 @@ const serializeAws_json1_0MeasureValues = (input, context) => {
|
|
|
1106
1115
|
};
|
|
1107
1116
|
const serializeAws_json1_0_Record = (input, context) => {
|
|
1108
1117
|
return {
|
|
1109
|
-
...(input.Dimensions
|
|
1110
|
-
|
|
1111
|
-
...(input.
|
|
1112
|
-
...(input.
|
|
1113
|
-
...(input.
|
|
1114
|
-
input.MeasureValueType !== null && { MeasureValueType: input.MeasureValueType }),
|
|
1115
|
-
...(input.MeasureValues !== undefined &&
|
|
1116
|
-
input.MeasureValues !== null && {
|
|
1118
|
+
...(input.Dimensions != null && { Dimensions: serializeAws_json1_0Dimensions(input.Dimensions, context) }),
|
|
1119
|
+
...(input.MeasureName != null && { MeasureName: input.MeasureName }),
|
|
1120
|
+
...(input.MeasureValue != null && { MeasureValue: input.MeasureValue }),
|
|
1121
|
+
...(input.MeasureValueType != null && { MeasureValueType: input.MeasureValueType }),
|
|
1122
|
+
...(input.MeasureValues != null && {
|
|
1117
1123
|
MeasureValues: serializeAws_json1_0MeasureValues(input.MeasureValues, context),
|
|
1118
1124
|
}),
|
|
1119
|
-
...(input.Time
|
|
1120
|
-
...(input.TimeUnit
|
|
1121
|
-
...(input.Version
|
|
1125
|
+
...(input.Time != null && { Time: input.Time }),
|
|
1126
|
+
...(input.TimeUnit != null && { TimeUnit: input.TimeUnit }),
|
|
1127
|
+
...(input.Version != null && { Version: input.Version }),
|
|
1122
1128
|
};
|
|
1123
1129
|
};
|
|
1124
1130
|
const serializeAws_json1_0Records = (input, context) => {
|
|
@@ -1133,30 +1139,26 @@ const serializeAws_json1_0Records = (input, context) => {
|
|
|
1133
1139
|
};
|
|
1134
1140
|
const serializeAws_json1_0RetentionProperties = (input, context) => {
|
|
1135
1141
|
return {
|
|
1136
|
-
...(input.MagneticStoreRetentionPeriodInDays
|
|
1137
|
-
input.MagneticStoreRetentionPeriodInDays !== null && {
|
|
1142
|
+
...(input.MagneticStoreRetentionPeriodInDays != null && {
|
|
1138
1143
|
MagneticStoreRetentionPeriodInDays: input.MagneticStoreRetentionPeriodInDays,
|
|
1139
1144
|
}),
|
|
1140
|
-
...(input.MemoryStoreRetentionPeriodInHours
|
|
1141
|
-
input.MemoryStoreRetentionPeriodInHours !== null && {
|
|
1145
|
+
...(input.MemoryStoreRetentionPeriodInHours != null && {
|
|
1142
1146
|
MemoryStoreRetentionPeriodInHours: input.MemoryStoreRetentionPeriodInHours,
|
|
1143
1147
|
}),
|
|
1144
1148
|
};
|
|
1145
1149
|
};
|
|
1146
1150
|
const serializeAws_json1_0S3Configuration = (input, context) => {
|
|
1147
1151
|
return {
|
|
1148
|
-
...(input.BucketName
|
|
1149
|
-
...(input.EncryptionOption
|
|
1150
|
-
|
|
1151
|
-
...(input.
|
|
1152
|
-
...(input.ObjectKeyPrefix !== undefined &&
|
|
1153
|
-
input.ObjectKeyPrefix !== null && { ObjectKeyPrefix: input.ObjectKeyPrefix }),
|
|
1152
|
+
...(input.BucketName != null && { BucketName: input.BucketName }),
|
|
1153
|
+
...(input.EncryptionOption != null && { EncryptionOption: input.EncryptionOption }),
|
|
1154
|
+
...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
|
|
1155
|
+
...(input.ObjectKeyPrefix != null && { ObjectKeyPrefix: input.ObjectKeyPrefix }),
|
|
1154
1156
|
};
|
|
1155
1157
|
};
|
|
1156
1158
|
const serializeAws_json1_0Tag = (input, context) => {
|
|
1157
1159
|
return {
|
|
1158
|
-
...(input.Key
|
|
1159
|
-
...(input.Value
|
|
1160
|
+
...(input.Key != null && { Key: input.Key }),
|
|
1161
|
+
...(input.Value != null && { Value: input.Value }),
|
|
1160
1162
|
};
|
|
1161
1163
|
};
|
|
1162
1164
|
const serializeAws_json1_0TagKeyList = (input, context) => {
|
|
@@ -1181,47 +1183,42 @@ const serializeAws_json1_0TagList = (input, context) => {
|
|
|
1181
1183
|
};
|
|
1182
1184
|
const serializeAws_json1_0TagResourceRequest = (input, context) => {
|
|
1183
1185
|
return {
|
|
1184
|
-
...(input.ResourceARN
|
|
1185
|
-
...(input.Tags
|
|
1186
|
+
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
1187
|
+
...(input.Tags != null && { Tags: serializeAws_json1_0TagList(input.Tags, context) }),
|
|
1186
1188
|
};
|
|
1187
1189
|
};
|
|
1188
1190
|
const serializeAws_json1_0UntagResourceRequest = (input, context) => {
|
|
1189
1191
|
return {
|
|
1190
|
-
...(input.ResourceARN
|
|
1191
|
-
...(input.TagKeys
|
|
1192
|
-
input.TagKeys !== null && { TagKeys: serializeAws_json1_0TagKeyList(input.TagKeys, context) }),
|
|
1192
|
+
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
1193
|
+
...(input.TagKeys != null && { TagKeys: serializeAws_json1_0TagKeyList(input.TagKeys, context) }),
|
|
1193
1194
|
};
|
|
1194
1195
|
};
|
|
1195
1196
|
const serializeAws_json1_0UpdateDatabaseRequest = (input, context) => {
|
|
1196
1197
|
return {
|
|
1197
|
-
...(input.DatabaseName
|
|
1198
|
-
...(input.KmsKeyId
|
|
1198
|
+
...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
|
|
1199
|
+
...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
|
|
1199
1200
|
};
|
|
1200
1201
|
};
|
|
1201
1202
|
const serializeAws_json1_0UpdateTableRequest = (input, context) => {
|
|
1202
1203
|
return {
|
|
1203
|
-
...(input.DatabaseName
|
|
1204
|
-
...(input.MagneticStoreWriteProperties
|
|
1205
|
-
input.MagneticStoreWriteProperties !== null && {
|
|
1204
|
+
...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
|
|
1205
|
+
...(input.MagneticStoreWriteProperties != null && {
|
|
1206
1206
|
MagneticStoreWriteProperties: serializeAws_json1_0MagneticStoreWriteProperties(input.MagneticStoreWriteProperties, context),
|
|
1207
1207
|
}),
|
|
1208
|
-
...(input.RetentionProperties
|
|
1209
|
-
input.RetentionProperties !== null && {
|
|
1208
|
+
...(input.RetentionProperties != null && {
|
|
1210
1209
|
RetentionProperties: serializeAws_json1_0RetentionProperties(input.RetentionProperties, context),
|
|
1211
1210
|
}),
|
|
1212
|
-
...(input.TableName
|
|
1211
|
+
...(input.TableName != null && { TableName: input.TableName }),
|
|
1213
1212
|
};
|
|
1214
1213
|
};
|
|
1215
1214
|
const serializeAws_json1_0WriteRecordsRequest = (input, context) => {
|
|
1216
1215
|
return {
|
|
1217
|
-
...(input.CommonAttributes
|
|
1218
|
-
input.CommonAttributes !== null && {
|
|
1216
|
+
...(input.CommonAttributes != null && {
|
|
1219
1217
|
CommonAttributes: serializeAws_json1_0_Record(input.CommonAttributes, context),
|
|
1220
1218
|
}),
|
|
1221
|
-
...(input.DatabaseName
|
|
1222
|
-
...(input.Records
|
|
1223
|
-
|
|
1224
|
-
...(input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }),
|
|
1219
|
+
...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
|
|
1220
|
+
...(input.Records != null && { Records: serializeAws_json1_0Records(input.Records, context) }),
|
|
1221
|
+
...(input.TableName != null && { TableName: input.TableName }),
|
|
1225
1222
|
};
|
|
1226
1223
|
};
|
|
1227
1224
|
const deserializeAws_json1_0AccessDeniedException = (output, context) => {
|
|
@@ -1236,27 +1233,23 @@ const deserializeAws_json1_0ConflictException = (output, context) => {
|
|
|
1236
1233
|
};
|
|
1237
1234
|
const deserializeAws_json1_0CreateDatabaseResponse = (output, context) => {
|
|
1238
1235
|
return {
|
|
1239
|
-
Database: output.Database
|
|
1240
|
-
? deserializeAws_json1_0Database(output.Database, context)
|
|
1241
|
-
: undefined,
|
|
1236
|
+
Database: output.Database != null ? deserializeAws_json1_0Database(output.Database, context) : undefined,
|
|
1242
1237
|
};
|
|
1243
1238
|
};
|
|
1244
1239
|
const deserializeAws_json1_0CreateTableResponse = (output, context) => {
|
|
1245
1240
|
return {
|
|
1246
|
-
Table: output.Table
|
|
1247
|
-
? deserializeAws_json1_0Table(output.Table, context)
|
|
1248
|
-
: undefined,
|
|
1241
|
+
Table: output.Table != null ? deserializeAws_json1_0Table(output.Table, context) : undefined,
|
|
1249
1242
|
};
|
|
1250
1243
|
};
|
|
1251
1244
|
const deserializeAws_json1_0Database = (output, context) => {
|
|
1252
1245
|
return {
|
|
1253
1246
|
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
1254
|
-
CreationTime: output.CreationTime
|
|
1247
|
+
CreationTime: output.CreationTime != null
|
|
1255
1248
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
1256
1249
|
: undefined,
|
|
1257
1250
|
DatabaseName: (0, smithy_client_1.expectString)(output.DatabaseName),
|
|
1258
1251
|
KmsKeyId: (0, smithy_client_1.expectString)(output.KmsKeyId),
|
|
1259
|
-
LastUpdatedTime: output.LastUpdatedTime
|
|
1252
|
+
LastUpdatedTime: output.LastUpdatedTime != null
|
|
1260
1253
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedTime)))
|
|
1261
1254
|
: undefined,
|
|
1262
1255
|
TableCount: (0, smithy_client_1.expectLong)(output.TableCount),
|
|
@@ -1275,23 +1268,17 @@ const deserializeAws_json1_0DatabaseList = (output, context) => {
|
|
|
1275
1268
|
};
|
|
1276
1269
|
const deserializeAws_json1_0DescribeDatabaseResponse = (output, context) => {
|
|
1277
1270
|
return {
|
|
1278
|
-
Database: output.Database
|
|
1279
|
-
? deserializeAws_json1_0Database(output.Database, context)
|
|
1280
|
-
: undefined,
|
|
1271
|
+
Database: output.Database != null ? deserializeAws_json1_0Database(output.Database, context) : undefined,
|
|
1281
1272
|
};
|
|
1282
1273
|
};
|
|
1283
1274
|
const deserializeAws_json1_0DescribeEndpointsResponse = (output, context) => {
|
|
1284
1275
|
return {
|
|
1285
|
-
Endpoints: output.Endpoints
|
|
1286
|
-
? deserializeAws_json1_0Endpoints(output.Endpoints, context)
|
|
1287
|
-
: undefined,
|
|
1276
|
+
Endpoints: output.Endpoints != null ? deserializeAws_json1_0Endpoints(output.Endpoints, context) : undefined,
|
|
1288
1277
|
};
|
|
1289
1278
|
};
|
|
1290
1279
|
const deserializeAws_json1_0DescribeTableResponse = (output, context) => {
|
|
1291
1280
|
return {
|
|
1292
|
-
Table: output.Table
|
|
1293
|
-
? deserializeAws_json1_0Table(output.Table, context)
|
|
1294
|
-
: undefined,
|
|
1281
|
+
Table: output.Table != null ? deserializeAws_json1_0Table(output.Table, context) : undefined,
|
|
1295
1282
|
};
|
|
1296
1283
|
};
|
|
1297
1284
|
const deserializeAws_json1_0Endpoint = (output, context) => {
|
|
@@ -1323,30 +1310,24 @@ const deserializeAws_json1_0InvalidEndpointException = (output, context) => {
|
|
|
1323
1310
|
};
|
|
1324
1311
|
const deserializeAws_json1_0ListDatabasesResponse = (output, context) => {
|
|
1325
1312
|
return {
|
|
1326
|
-
Databases: output.Databases
|
|
1327
|
-
? deserializeAws_json1_0DatabaseList(output.Databases, context)
|
|
1328
|
-
: undefined,
|
|
1313
|
+
Databases: output.Databases != null ? deserializeAws_json1_0DatabaseList(output.Databases, context) : undefined,
|
|
1329
1314
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
1330
1315
|
};
|
|
1331
1316
|
};
|
|
1332
1317
|
const deserializeAws_json1_0ListTablesResponse = (output, context) => {
|
|
1333
1318
|
return {
|
|
1334
1319
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
1335
|
-
Tables: output.Tables
|
|
1336
|
-
? deserializeAws_json1_0TableList(output.Tables, context)
|
|
1337
|
-
: undefined,
|
|
1320
|
+
Tables: output.Tables != null ? deserializeAws_json1_0TableList(output.Tables, context) : undefined,
|
|
1338
1321
|
};
|
|
1339
1322
|
};
|
|
1340
1323
|
const deserializeAws_json1_0ListTagsForResourceResponse = (output, context) => {
|
|
1341
1324
|
return {
|
|
1342
|
-
Tags: output.Tags
|
|
1343
|
-
? deserializeAws_json1_0TagList(output.Tags, context)
|
|
1344
|
-
: undefined,
|
|
1325
|
+
Tags: output.Tags != null ? deserializeAws_json1_0TagList(output.Tags, context) : undefined,
|
|
1345
1326
|
};
|
|
1346
1327
|
};
|
|
1347
1328
|
const deserializeAws_json1_0MagneticStoreRejectedDataLocation = (output, context) => {
|
|
1348
1329
|
return {
|
|
1349
|
-
S3Configuration: output.S3Configuration
|
|
1330
|
+
S3Configuration: output.S3Configuration != null
|
|
1350
1331
|
? deserializeAws_json1_0S3Configuration(output.S3Configuration, context)
|
|
1351
1332
|
: undefined,
|
|
1352
1333
|
};
|
|
@@ -1354,7 +1335,7 @@ const deserializeAws_json1_0MagneticStoreRejectedDataLocation = (output, context
|
|
|
1354
1335
|
const deserializeAws_json1_0MagneticStoreWriteProperties = (output, context) => {
|
|
1355
1336
|
return {
|
|
1356
1337
|
EnableMagneticStoreWrites: (0, smithy_client_1.expectBoolean)(output.EnableMagneticStoreWrites),
|
|
1357
|
-
MagneticStoreRejectedDataLocation: output.MagneticStoreRejectedDataLocation
|
|
1338
|
+
MagneticStoreRejectedDataLocation: output.MagneticStoreRejectedDataLocation != null
|
|
1358
1339
|
? deserializeAws_json1_0MagneticStoreRejectedDataLocation(output.MagneticStoreRejectedDataLocation, context)
|
|
1359
1340
|
: undefined,
|
|
1360
1341
|
};
|
|
@@ -1387,7 +1368,7 @@ const deserializeAws_json1_0RejectedRecords = (output, context) => {
|
|
|
1387
1368
|
const deserializeAws_json1_0RejectedRecordsException = (output, context) => {
|
|
1388
1369
|
return {
|
|
1389
1370
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1390
|
-
RejectedRecords: output.RejectedRecords
|
|
1371
|
+
RejectedRecords: output.RejectedRecords != null
|
|
1391
1372
|
? deserializeAws_json1_0RejectedRecords(output.RejectedRecords, context)
|
|
1392
1373
|
: undefined,
|
|
1393
1374
|
};
|
|
@@ -1419,17 +1400,17 @@ const deserializeAws_json1_0ServiceQuotaExceededException = (output, context) =>
|
|
|
1419
1400
|
const deserializeAws_json1_0Table = (output, context) => {
|
|
1420
1401
|
return {
|
|
1421
1402
|
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
1422
|
-
CreationTime: output.CreationTime
|
|
1403
|
+
CreationTime: output.CreationTime != null
|
|
1423
1404
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
1424
1405
|
: undefined,
|
|
1425
1406
|
DatabaseName: (0, smithy_client_1.expectString)(output.DatabaseName),
|
|
1426
|
-
LastUpdatedTime: output.LastUpdatedTime
|
|
1407
|
+
LastUpdatedTime: output.LastUpdatedTime != null
|
|
1427
1408
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedTime)))
|
|
1428
1409
|
: undefined,
|
|
1429
|
-
MagneticStoreWriteProperties: output.MagneticStoreWriteProperties
|
|
1410
|
+
MagneticStoreWriteProperties: output.MagneticStoreWriteProperties != null
|
|
1430
1411
|
? deserializeAws_json1_0MagneticStoreWriteProperties(output.MagneticStoreWriteProperties, context)
|
|
1431
1412
|
: undefined,
|
|
1432
|
-
RetentionProperties: output.RetentionProperties
|
|
1413
|
+
RetentionProperties: output.RetentionProperties != null
|
|
1433
1414
|
? deserializeAws_json1_0RetentionProperties(output.RetentionProperties, context)
|
|
1434
1415
|
: undefined,
|
|
1435
1416
|
TableName: (0, smithy_client_1.expectString)(output.TableName),
|
|
@@ -1477,16 +1458,12 @@ const deserializeAws_json1_0UntagResourceResponse = (output, context) => {
|
|
|
1477
1458
|
};
|
|
1478
1459
|
const deserializeAws_json1_0UpdateDatabaseResponse = (output, context) => {
|
|
1479
1460
|
return {
|
|
1480
|
-
Database: output.Database
|
|
1481
|
-
? deserializeAws_json1_0Database(output.Database, context)
|
|
1482
|
-
: undefined,
|
|
1461
|
+
Database: output.Database != null ? deserializeAws_json1_0Database(output.Database, context) : undefined,
|
|
1483
1462
|
};
|
|
1484
1463
|
};
|
|
1485
1464
|
const deserializeAws_json1_0UpdateTableResponse = (output, context) => {
|
|
1486
1465
|
return {
|
|
1487
|
-
Table: output.Table
|
|
1488
|
-
? deserializeAws_json1_0Table(output.Table, context)
|
|
1489
|
-
: undefined,
|
|
1466
|
+
Table: output.Table != null ? deserializeAws_json1_0Table(output.Table, context) : undefined,
|
|
1490
1467
|
};
|
|
1491
1468
|
};
|
|
1492
1469
|
const deserializeAws_json1_0ValidationException = (output, context) => {
|
|
@@ -1496,7 +1473,7 @@ const deserializeAws_json1_0ValidationException = (output, context) => {
|
|
|
1496
1473
|
};
|
|
1497
1474
|
const deserializeAws_json1_0WriteRecordsResponse = (output, context) => {
|
|
1498
1475
|
return {
|
|
1499
|
-
RecordsIngested: output.RecordsIngested
|
|
1476
|
+
RecordsIngested: output.RecordsIngested != null
|
|
1500
1477
|
? deserializeAws_json1_0RecordsIngested(output.RecordsIngested, context)
|
|
1501
1478
|
: undefined,
|
|
1502
1479
|
};
|
|
@@ -1563,5 +1540,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
1563
1540
|
if (data["__type"] !== undefined) {
|
|
1564
1541
|
return sanitizeErrorCode(data["__type"]);
|
|
1565
1542
|
}
|
|
1566
|
-
return "";
|
|
1567
1543
|
};
|