@aws-sdk/client-timestream-write 3.504.0 → 3.509.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +30 -624
- package/dist-es/protocols/Aws_json1_0.js +52 -646
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -465,7 +465,7 @@ var se_WriteRecordsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
465
465
|
}, "se_WriteRecordsCommand");
|
|
466
466
|
var de_CreateBatchLoadTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
467
467
|
if (output.statusCode >= 300) {
|
|
468
|
-
return
|
|
468
|
+
return de_CommandError(output, context);
|
|
469
469
|
}
|
|
470
470
|
const data = await parseBody(output.body, context);
|
|
471
471
|
let contents = {};
|
|
@@ -476,49 +476,9 @@ var de_CreateBatchLoadTaskCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
476
476
|
};
|
|
477
477
|
return response;
|
|
478
478
|
}, "de_CreateBatchLoadTaskCommand");
|
|
479
|
-
var de_CreateBatchLoadTaskCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
480
|
-
const parsedOutput = {
|
|
481
|
-
...output,
|
|
482
|
-
body: await parseErrorBody(output.body, context)
|
|
483
|
-
};
|
|
484
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
485
|
-
switch (errorCode) {
|
|
486
|
-
case "AccessDeniedException":
|
|
487
|
-
case "com.amazonaws.timestreamwrite#AccessDeniedException":
|
|
488
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
489
|
-
case "ConflictException":
|
|
490
|
-
case "com.amazonaws.timestreamwrite#ConflictException":
|
|
491
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
492
|
-
case "InternalServerException":
|
|
493
|
-
case "com.amazonaws.timestreamwrite#InternalServerException":
|
|
494
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
495
|
-
case "InvalidEndpointException":
|
|
496
|
-
case "com.amazonaws.timestreamwrite#InvalidEndpointException":
|
|
497
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
498
|
-
case "ResourceNotFoundException":
|
|
499
|
-
case "com.amazonaws.timestreamwrite#ResourceNotFoundException":
|
|
500
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
501
|
-
case "ServiceQuotaExceededException":
|
|
502
|
-
case "com.amazonaws.timestreamwrite#ServiceQuotaExceededException":
|
|
503
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
504
|
-
case "ThrottlingException":
|
|
505
|
-
case "com.amazonaws.timestreamwrite#ThrottlingException":
|
|
506
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
507
|
-
case "ValidationException":
|
|
508
|
-
case "com.amazonaws.timestreamwrite#ValidationException":
|
|
509
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
510
|
-
default:
|
|
511
|
-
const parsedBody = parsedOutput.body;
|
|
512
|
-
return throwDefaultError({
|
|
513
|
-
output,
|
|
514
|
-
parsedBody,
|
|
515
|
-
errorCode
|
|
516
|
-
});
|
|
517
|
-
}
|
|
518
|
-
}, "de_CreateBatchLoadTaskCommandError");
|
|
519
479
|
var de_CreateDatabaseCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
520
480
|
if (output.statusCode >= 300) {
|
|
521
|
-
return
|
|
481
|
+
return de_CommandError(output, context);
|
|
522
482
|
}
|
|
523
483
|
const data = await parseBody(output.body, context);
|
|
524
484
|
let contents = {};
|
|
@@ -529,46 +489,9 @@ var de_CreateDatabaseCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
529
489
|
};
|
|
530
490
|
return response;
|
|
531
491
|
}, "de_CreateDatabaseCommand");
|
|
532
|
-
var de_CreateDatabaseCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
533
|
-
const parsedOutput = {
|
|
534
|
-
...output,
|
|
535
|
-
body: await parseErrorBody(output.body, context)
|
|
536
|
-
};
|
|
537
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
538
|
-
switch (errorCode) {
|
|
539
|
-
case "AccessDeniedException":
|
|
540
|
-
case "com.amazonaws.timestreamwrite#AccessDeniedException":
|
|
541
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
542
|
-
case "ConflictException":
|
|
543
|
-
case "com.amazonaws.timestreamwrite#ConflictException":
|
|
544
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
545
|
-
case "InternalServerException":
|
|
546
|
-
case "com.amazonaws.timestreamwrite#InternalServerException":
|
|
547
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
548
|
-
case "InvalidEndpointException":
|
|
549
|
-
case "com.amazonaws.timestreamwrite#InvalidEndpointException":
|
|
550
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
551
|
-
case "ServiceQuotaExceededException":
|
|
552
|
-
case "com.amazonaws.timestreamwrite#ServiceQuotaExceededException":
|
|
553
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
554
|
-
case "ThrottlingException":
|
|
555
|
-
case "com.amazonaws.timestreamwrite#ThrottlingException":
|
|
556
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
557
|
-
case "ValidationException":
|
|
558
|
-
case "com.amazonaws.timestreamwrite#ValidationException":
|
|
559
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
560
|
-
default:
|
|
561
|
-
const parsedBody = parsedOutput.body;
|
|
562
|
-
return throwDefaultError({
|
|
563
|
-
output,
|
|
564
|
-
parsedBody,
|
|
565
|
-
errorCode
|
|
566
|
-
});
|
|
567
|
-
}
|
|
568
|
-
}, "de_CreateDatabaseCommandError");
|
|
569
492
|
var de_CreateTableCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
570
493
|
if (output.statusCode >= 300) {
|
|
571
|
-
return
|
|
494
|
+
return de_CommandError(output, context);
|
|
572
495
|
}
|
|
573
496
|
const data = await parseBody(output.body, context);
|
|
574
497
|
let contents = {};
|
|
@@ -579,49 +502,9 @@ var de_CreateTableCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
579
502
|
};
|
|
580
503
|
return response;
|
|
581
504
|
}, "de_CreateTableCommand");
|
|
582
|
-
var de_CreateTableCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
583
|
-
const parsedOutput = {
|
|
584
|
-
...output,
|
|
585
|
-
body: await parseErrorBody(output.body, context)
|
|
586
|
-
};
|
|
587
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
588
|
-
switch (errorCode) {
|
|
589
|
-
case "AccessDeniedException":
|
|
590
|
-
case "com.amazonaws.timestreamwrite#AccessDeniedException":
|
|
591
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
592
|
-
case "ConflictException":
|
|
593
|
-
case "com.amazonaws.timestreamwrite#ConflictException":
|
|
594
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
595
|
-
case "InternalServerException":
|
|
596
|
-
case "com.amazonaws.timestreamwrite#InternalServerException":
|
|
597
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
598
|
-
case "InvalidEndpointException":
|
|
599
|
-
case "com.amazonaws.timestreamwrite#InvalidEndpointException":
|
|
600
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
601
|
-
case "ResourceNotFoundException":
|
|
602
|
-
case "com.amazonaws.timestreamwrite#ResourceNotFoundException":
|
|
603
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
604
|
-
case "ServiceQuotaExceededException":
|
|
605
|
-
case "com.amazonaws.timestreamwrite#ServiceQuotaExceededException":
|
|
606
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
607
|
-
case "ThrottlingException":
|
|
608
|
-
case "com.amazonaws.timestreamwrite#ThrottlingException":
|
|
609
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
610
|
-
case "ValidationException":
|
|
611
|
-
case "com.amazonaws.timestreamwrite#ValidationException":
|
|
612
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
613
|
-
default:
|
|
614
|
-
const parsedBody = parsedOutput.body;
|
|
615
|
-
return throwDefaultError({
|
|
616
|
-
output,
|
|
617
|
-
parsedBody,
|
|
618
|
-
errorCode
|
|
619
|
-
});
|
|
620
|
-
}
|
|
621
|
-
}, "de_CreateTableCommandError");
|
|
622
505
|
var de_DeleteDatabaseCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
623
506
|
if (output.statusCode >= 300) {
|
|
624
|
-
return
|
|
507
|
+
return de_CommandError(output, context);
|
|
625
508
|
}
|
|
626
509
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
627
510
|
const response = {
|
|
@@ -629,43 +512,9 @@ var de_DeleteDatabaseCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
629
512
|
};
|
|
630
513
|
return response;
|
|
631
514
|
}, "de_DeleteDatabaseCommand");
|
|
632
|
-
var de_DeleteDatabaseCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
633
|
-
const parsedOutput = {
|
|
634
|
-
...output,
|
|
635
|
-
body: await parseErrorBody(output.body, context)
|
|
636
|
-
};
|
|
637
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
638
|
-
switch (errorCode) {
|
|
639
|
-
case "AccessDeniedException":
|
|
640
|
-
case "com.amazonaws.timestreamwrite#AccessDeniedException":
|
|
641
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
642
|
-
case "InternalServerException":
|
|
643
|
-
case "com.amazonaws.timestreamwrite#InternalServerException":
|
|
644
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
645
|
-
case "InvalidEndpointException":
|
|
646
|
-
case "com.amazonaws.timestreamwrite#InvalidEndpointException":
|
|
647
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
648
|
-
case "ResourceNotFoundException":
|
|
649
|
-
case "com.amazonaws.timestreamwrite#ResourceNotFoundException":
|
|
650
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
651
|
-
case "ThrottlingException":
|
|
652
|
-
case "com.amazonaws.timestreamwrite#ThrottlingException":
|
|
653
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
654
|
-
case "ValidationException":
|
|
655
|
-
case "com.amazonaws.timestreamwrite#ValidationException":
|
|
656
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
657
|
-
default:
|
|
658
|
-
const parsedBody = parsedOutput.body;
|
|
659
|
-
return throwDefaultError({
|
|
660
|
-
output,
|
|
661
|
-
parsedBody,
|
|
662
|
-
errorCode
|
|
663
|
-
});
|
|
664
|
-
}
|
|
665
|
-
}, "de_DeleteDatabaseCommandError");
|
|
666
515
|
var de_DeleteTableCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
667
516
|
if (output.statusCode >= 300) {
|
|
668
|
-
return
|
|
517
|
+
return de_CommandError(output, context);
|
|
669
518
|
}
|
|
670
519
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
671
520
|
const response = {
|
|
@@ -673,43 +522,9 @@ var de_DeleteTableCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
673
522
|
};
|
|
674
523
|
return response;
|
|
675
524
|
}, "de_DeleteTableCommand");
|
|
676
|
-
var de_DeleteTableCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
677
|
-
const parsedOutput = {
|
|
678
|
-
...output,
|
|
679
|
-
body: await parseErrorBody(output.body, context)
|
|
680
|
-
};
|
|
681
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
682
|
-
switch (errorCode) {
|
|
683
|
-
case "AccessDeniedException":
|
|
684
|
-
case "com.amazonaws.timestreamwrite#AccessDeniedException":
|
|
685
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
686
|
-
case "InternalServerException":
|
|
687
|
-
case "com.amazonaws.timestreamwrite#InternalServerException":
|
|
688
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
689
|
-
case "InvalidEndpointException":
|
|
690
|
-
case "com.amazonaws.timestreamwrite#InvalidEndpointException":
|
|
691
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
692
|
-
case "ResourceNotFoundException":
|
|
693
|
-
case "com.amazonaws.timestreamwrite#ResourceNotFoundException":
|
|
694
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
695
|
-
case "ThrottlingException":
|
|
696
|
-
case "com.amazonaws.timestreamwrite#ThrottlingException":
|
|
697
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
698
|
-
case "ValidationException":
|
|
699
|
-
case "com.amazonaws.timestreamwrite#ValidationException":
|
|
700
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
701
|
-
default:
|
|
702
|
-
const parsedBody = parsedOutput.body;
|
|
703
|
-
return throwDefaultError({
|
|
704
|
-
output,
|
|
705
|
-
parsedBody,
|
|
706
|
-
errorCode
|
|
707
|
-
});
|
|
708
|
-
}
|
|
709
|
-
}, "de_DeleteTableCommandError");
|
|
710
525
|
var de_DescribeBatchLoadTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
711
526
|
if (output.statusCode >= 300) {
|
|
712
|
-
return
|
|
527
|
+
return de_CommandError(output, context);
|
|
713
528
|
}
|
|
714
529
|
const data = await parseBody(output.body, context);
|
|
715
530
|
let contents = {};
|
|
@@ -720,40 +535,9 @@ var de_DescribeBatchLoadTaskCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
720
535
|
};
|
|
721
536
|
return response;
|
|
722
537
|
}, "de_DescribeBatchLoadTaskCommand");
|
|
723
|
-
var de_DescribeBatchLoadTaskCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
724
|
-
const parsedOutput = {
|
|
725
|
-
...output,
|
|
726
|
-
body: await parseErrorBody(output.body, context)
|
|
727
|
-
};
|
|
728
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
729
|
-
switch (errorCode) {
|
|
730
|
-
case "AccessDeniedException":
|
|
731
|
-
case "com.amazonaws.timestreamwrite#AccessDeniedException":
|
|
732
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
733
|
-
case "InternalServerException":
|
|
734
|
-
case "com.amazonaws.timestreamwrite#InternalServerException":
|
|
735
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
736
|
-
case "InvalidEndpointException":
|
|
737
|
-
case "com.amazonaws.timestreamwrite#InvalidEndpointException":
|
|
738
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
739
|
-
case "ResourceNotFoundException":
|
|
740
|
-
case "com.amazonaws.timestreamwrite#ResourceNotFoundException":
|
|
741
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
742
|
-
case "ThrottlingException":
|
|
743
|
-
case "com.amazonaws.timestreamwrite#ThrottlingException":
|
|
744
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
745
|
-
default:
|
|
746
|
-
const parsedBody = parsedOutput.body;
|
|
747
|
-
return throwDefaultError({
|
|
748
|
-
output,
|
|
749
|
-
parsedBody,
|
|
750
|
-
errorCode
|
|
751
|
-
});
|
|
752
|
-
}
|
|
753
|
-
}, "de_DescribeBatchLoadTaskCommandError");
|
|
754
538
|
var de_DescribeDatabaseCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
755
539
|
if (output.statusCode >= 300) {
|
|
756
|
-
return
|
|
540
|
+
return de_CommandError(output, context);
|
|
757
541
|
}
|
|
758
542
|
const data = await parseBody(output.body, context);
|
|
759
543
|
let contents = {};
|
|
@@ -764,43 +548,9 @@ var de_DescribeDatabaseCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
764
548
|
};
|
|
765
549
|
return response;
|
|
766
550
|
}, "de_DescribeDatabaseCommand");
|
|
767
|
-
var de_DescribeDatabaseCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
768
|
-
const parsedOutput = {
|
|
769
|
-
...output,
|
|
770
|
-
body: await parseErrorBody(output.body, context)
|
|
771
|
-
};
|
|
772
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
773
|
-
switch (errorCode) {
|
|
774
|
-
case "AccessDeniedException":
|
|
775
|
-
case "com.amazonaws.timestreamwrite#AccessDeniedException":
|
|
776
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
777
|
-
case "InternalServerException":
|
|
778
|
-
case "com.amazonaws.timestreamwrite#InternalServerException":
|
|
779
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
780
|
-
case "InvalidEndpointException":
|
|
781
|
-
case "com.amazonaws.timestreamwrite#InvalidEndpointException":
|
|
782
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
783
|
-
case "ResourceNotFoundException":
|
|
784
|
-
case "com.amazonaws.timestreamwrite#ResourceNotFoundException":
|
|
785
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
786
|
-
case "ThrottlingException":
|
|
787
|
-
case "com.amazonaws.timestreamwrite#ThrottlingException":
|
|
788
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
789
|
-
case "ValidationException":
|
|
790
|
-
case "com.amazonaws.timestreamwrite#ValidationException":
|
|
791
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
792
|
-
default:
|
|
793
|
-
const parsedBody = parsedOutput.body;
|
|
794
|
-
return throwDefaultError({
|
|
795
|
-
output,
|
|
796
|
-
parsedBody,
|
|
797
|
-
errorCode
|
|
798
|
-
});
|
|
799
|
-
}
|
|
800
|
-
}, "de_DescribeDatabaseCommandError");
|
|
801
551
|
var de_DescribeEndpointsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
802
552
|
if (output.statusCode >= 300) {
|
|
803
|
-
return
|
|
553
|
+
return de_CommandError(output, context);
|
|
804
554
|
}
|
|
805
555
|
const data = await parseBody(output.body, context);
|
|
806
556
|
let contents = {};
|
|
@@ -811,34 +561,9 @@ var de_DescribeEndpointsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
811
561
|
};
|
|
812
562
|
return response;
|
|
813
563
|
}, "de_DescribeEndpointsCommand");
|
|
814
|
-
var de_DescribeEndpointsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
815
|
-
const parsedOutput = {
|
|
816
|
-
...output,
|
|
817
|
-
body: await parseErrorBody(output.body, context)
|
|
818
|
-
};
|
|
819
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
820
|
-
switch (errorCode) {
|
|
821
|
-
case "InternalServerException":
|
|
822
|
-
case "com.amazonaws.timestreamwrite#InternalServerException":
|
|
823
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
824
|
-
case "ThrottlingException":
|
|
825
|
-
case "com.amazonaws.timestreamwrite#ThrottlingException":
|
|
826
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
827
|
-
case "ValidationException":
|
|
828
|
-
case "com.amazonaws.timestreamwrite#ValidationException":
|
|
829
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
830
|
-
default:
|
|
831
|
-
const parsedBody = parsedOutput.body;
|
|
832
|
-
return throwDefaultError({
|
|
833
|
-
output,
|
|
834
|
-
parsedBody,
|
|
835
|
-
errorCode
|
|
836
|
-
});
|
|
837
|
-
}
|
|
838
|
-
}, "de_DescribeEndpointsCommandError");
|
|
839
564
|
var de_DescribeTableCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
840
565
|
if (output.statusCode >= 300) {
|
|
841
|
-
return
|
|
566
|
+
return de_CommandError(output, context);
|
|
842
567
|
}
|
|
843
568
|
const data = await parseBody(output.body, context);
|
|
844
569
|
let contents = {};
|
|
@@ -849,43 +574,9 @@ var de_DescribeTableCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
849
574
|
};
|
|
850
575
|
return response;
|
|
851
576
|
}, "de_DescribeTableCommand");
|
|
852
|
-
var de_DescribeTableCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
853
|
-
const parsedOutput = {
|
|
854
|
-
...output,
|
|
855
|
-
body: await parseErrorBody(output.body, context)
|
|
856
|
-
};
|
|
857
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
858
|
-
switch (errorCode) {
|
|
859
|
-
case "AccessDeniedException":
|
|
860
|
-
case "com.amazonaws.timestreamwrite#AccessDeniedException":
|
|
861
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
862
|
-
case "InternalServerException":
|
|
863
|
-
case "com.amazonaws.timestreamwrite#InternalServerException":
|
|
864
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
865
|
-
case "InvalidEndpointException":
|
|
866
|
-
case "com.amazonaws.timestreamwrite#InvalidEndpointException":
|
|
867
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
868
|
-
case "ResourceNotFoundException":
|
|
869
|
-
case "com.amazonaws.timestreamwrite#ResourceNotFoundException":
|
|
870
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
871
|
-
case "ThrottlingException":
|
|
872
|
-
case "com.amazonaws.timestreamwrite#ThrottlingException":
|
|
873
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
874
|
-
case "ValidationException":
|
|
875
|
-
case "com.amazonaws.timestreamwrite#ValidationException":
|
|
876
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
877
|
-
default:
|
|
878
|
-
const parsedBody = parsedOutput.body;
|
|
879
|
-
return throwDefaultError({
|
|
880
|
-
output,
|
|
881
|
-
parsedBody,
|
|
882
|
-
errorCode
|
|
883
|
-
});
|
|
884
|
-
}
|
|
885
|
-
}, "de_DescribeTableCommandError");
|
|
886
577
|
var de_ListBatchLoadTasksCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
887
578
|
if (output.statusCode >= 300) {
|
|
888
|
-
return
|
|
579
|
+
return de_CommandError(output, context);
|
|
889
580
|
}
|
|
890
581
|
const data = await parseBody(output.body, context);
|
|
891
582
|
let contents = {};
|
|
@@ -896,40 +587,9 @@ var de_ListBatchLoadTasksCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
896
587
|
};
|
|
897
588
|
return response;
|
|
898
589
|
}, "de_ListBatchLoadTasksCommand");
|
|
899
|
-
var de_ListBatchLoadTasksCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
900
|
-
const parsedOutput = {
|
|
901
|
-
...output,
|
|
902
|
-
body: await parseErrorBody(output.body, context)
|
|
903
|
-
};
|
|
904
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
905
|
-
switch (errorCode) {
|
|
906
|
-
case "AccessDeniedException":
|
|
907
|
-
case "com.amazonaws.timestreamwrite#AccessDeniedException":
|
|
908
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
909
|
-
case "InternalServerException":
|
|
910
|
-
case "com.amazonaws.timestreamwrite#InternalServerException":
|
|
911
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
912
|
-
case "InvalidEndpointException":
|
|
913
|
-
case "com.amazonaws.timestreamwrite#InvalidEndpointException":
|
|
914
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
915
|
-
case "ThrottlingException":
|
|
916
|
-
case "com.amazonaws.timestreamwrite#ThrottlingException":
|
|
917
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
918
|
-
case "ValidationException":
|
|
919
|
-
case "com.amazonaws.timestreamwrite#ValidationException":
|
|
920
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
921
|
-
default:
|
|
922
|
-
const parsedBody = parsedOutput.body;
|
|
923
|
-
return throwDefaultError({
|
|
924
|
-
output,
|
|
925
|
-
parsedBody,
|
|
926
|
-
errorCode
|
|
927
|
-
});
|
|
928
|
-
}
|
|
929
|
-
}, "de_ListBatchLoadTasksCommandError");
|
|
930
590
|
var de_ListDatabasesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
931
591
|
if (output.statusCode >= 300) {
|
|
932
|
-
return
|
|
592
|
+
return de_CommandError(output, context);
|
|
933
593
|
}
|
|
934
594
|
const data = await parseBody(output.body, context);
|
|
935
595
|
let contents = {};
|
|
@@ -940,40 +600,9 @@ var de_ListDatabasesCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
940
600
|
};
|
|
941
601
|
return response;
|
|
942
602
|
}, "de_ListDatabasesCommand");
|
|
943
|
-
var de_ListDatabasesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
944
|
-
const parsedOutput = {
|
|
945
|
-
...output,
|
|
946
|
-
body: await parseErrorBody(output.body, context)
|
|
947
|
-
};
|
|
948
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
949
|
-
switch (errorCode) {
|
|
950
|
-
case "AccessDeniedException":
|
|
951
|
-
case "com.amazonaws.timestreamwrite#AccessDeniedException":
|
|
952
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
953
|
-
case "InternalServerException":
|
|
954
|
-
case "com.amazonaws.timestreamwrite#InternalServerException":
|
|
955
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
956
|
-
case "InvalidEndpointException":
|
|
957
|
-
case "com.amazonaws.timestreamwrite#InvalidEndpointException":
|
|
958
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
959
|
-
case "ThrottlingException":
|
|
960
|
-
case "com.amazonaws.timestreamwrite#ThrottlingException":
|
|
961
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
962
|
-
case "ValidationException":
|
|
963
|
-
case "com.amazonaws.timestreamwrite#ValidationException":
|
|
964
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
965
|
-
default:
|
|
966
|
-
const parsedBody = parsedOutput.body;
|
|
967
|
-
return throwDefaultError({
|
|
968
|
-
output,
|
|
969
|
-
parsedBody,
|
|
970
|
-
errorCode
|
|
971
|
-
});
|
|
972
|
-
}
|
|
973
|
-
}, "de_ListDatabasesCommandError");
|
|
974
603
|
var de_ListTablesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
975
604
|
if (output.statusCode >= 300) {
|
|
976
|
-
return
|
|
605
|
+
return de_CommandError(output, context);
|
|
977
606
|
}
|
|
978
607
|
const data = await parseBody(output.body, context);
|
|
979
608
|
let contents = {};
|
|
@@ -984,43 +613,9 @@ var de_ListTablesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
984
613
|
};
|
|
985
614
|
return response;
|
|
986
615
|
}, "de_ListTablesCommand");
|
|
987
|
-
var de_ListTablesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
988
|
-
const parsedOutput = {
|
|
989
|
-
...output,
|
|
990
|
-
body: await parseErrorBody(output.body, context)
|
|
991
|
-
};
|
|
992
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
993
|
-
switch (errorCode) {
|
|
994
|
-
case "AccessDeniedException":
|
|
995
|
-
case "com.amazonaws.timestreamwrite#AccessDeniedException":
|
|
996
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
997
|
-
case "InternalServerException":
|
|
998
|
-
case "com.amazonaws.timestreamwrite#InternalServerException":
|
|
999
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1000
|
-
case "InvalidEndpointException":
|
|
1001
|
-
case "com.amazonaws.timestreamwrite#InvalidEndpointException":
|
|
1002
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
1003
|
-
case "ResourceNotFoundException":
|
|
1004
|
-
case "com.amazonaws.timestreamwrite#ResourceNotFoundException":
|
|
1005
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1006
|
-
case "ThrottlingException":
|
|
1007
|
-
case "com.amazonaws.timestreamwrite#ThrottlingException":
|
|
1008
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1009
|
-
case "ValidationException":
|
|
1010
|
-
case "com.amazonaws.timestreamwrite#ValidationException":
|
|
1011
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1012
|
-
default:
|
|
1013
|
-
const parsedBody = parsedOutput.body;
|
|
1014
|
-
return throwDefaultError({
|
|
1015
|
-
output,
|
|
1016
|
-
parsedBody,
|
|
1017
|
-
errorCode
|
|
1018
|
-
});
|
|
1019
|
-
}
|
|
1020
|
-
}, "de_ListTablesCommandError");
|
|
1021
616
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1022
617
|
if (output.statusCode >= 300) {
|
|
1023
|
-
return
|
|
618
|
+
return de_CommandError(output, context);
|
|
1024
619
|
}
|
|
1025
620
|
const data = await parseBody(output.body, context);
|
|
1026
621
|
let contents = {};
|
|
@@ -1031,37 +626,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1031
626
|
};
|
|
1032
627
|
return response;
|
|
1033
628
|
}, "de_ListTagsForResourceCommand");
|
|
1034
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1035
|
-
const parsedOutput = {
|
|
1036
|
-
...output,
|
|
1037
|
-
body: await parseErrorBody(output.body, context)
|
|
1038
|
-
};
|
|
1039
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1040
|
-
switch (errorCode) {
|
|
1041
|
-
case "InvalidEndpointException":
|
|
1042
|
-
case "com.amazonaws.timestreamwrite#InvalidEndpointException":
|
|
1043
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
1044
|
-
case "ResourceNotFoundException":
|
|
1045
|
-
case "com.amazonaws.timestreamwrite#ResourceNotFoundException":
|
|
1046
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1047
|
-
case "ThrottlingException":
|
|
1048
|
-
case "com.amazonaws.timestreamwrite#ThrottlingException":
|
|
1049
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1050
|
-
case "ValidationException":
|
|
1051
|
-
case "com.amazonaws.timestreamwrite#ValidationException":
|
|
1052
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1053
|
-
default:
|
|
1054
|
-
const parsedBody = parsedOutput.body;
|
|
1055
|
-
return throwDefaultError({
|
|
1056
|
-
output,
|
|
1057
|
-
parsedBody,
|
|
1058
|
-
errorCode
|
|
1059
|
-
});
|
|
1060
|
-
}
|
|
1061
|
-
}, "de_ListTagsForResourceCommandError");
|
|
1062
629
|
var de_ResumeBatchLoadTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1063
630
|
if (output.statusCode >= 300) {
|
|
1064
|
-
return
|
|
631
|
+
return de_CommandError(output, context);
|
|
1065
632
|
}
|
|
1066
633
|
const data = await parseBody(output.body, context);
|
|
1067
634
|
let contents = {};
|
|
@@ -1072,43 +639,9 @@ var de_ResumeBatchLoadTaskCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1072
639
|
};
|
|
1073
640
|
return response;
|
|
1074
641
|
}, "de_ResumeBatchLoadTaskCommand");
|
|
1075
|
-
var de_ResumeBatchLoadTaskCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1076
|
-
const parsedOutput = {
|
|
1077
|
-
...output,
|
|
1078
|
-
body: await parseErrorBody(output.body, context)
|
|
1079
|
-
};
|
|
1080
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1081
|
-
switch (errorCode) {
|
|
1082
|
-
case "AccessDeniedException":
|
|
1083
|
-
case "com.amazonaws.timestreamwrite#AccessDeniedException":
|
|
1084
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1085
|
-
case "InternalServerException":
|
|
1086
|
-
case "com.amazonaws.timestreamwrite#InternalServerException":
|
|
1087
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1088
|
-
case "InvalidEndpointException":
|
|
1089
|
-
case "com.amazonaws.timestreamwrite#InvalidEndpointException":
|
|
1090
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
1091
|
-
case "ResourceNotFoundException":
|
|
1092
|
-
case "com.amazonaws.timestreamwrite#ResourceNotFoundException":
|
|
1093
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1094
|
-
case "ThrottlingException":
|
|
1095
|
-
case "com.amazonaws.timestreamwrite#ThrottlingException":
|
|
1096
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1097
|
-
case "ValidationException":
|
|
1098
|
-
case "com.amazonaws.timestreamwrite#ValidationException":
|
|
1099
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1100
|
-
default:
|
|
1101
|
-
const parsedBody = parsedOutput.body;
|
|
1102
|
-
return throwDefaultError({
|
|
1103
|
-
output,
|
|
1104
|
-
parsedBody,
|
|
1105
|
-
errorCode
|
|
1106
|
-
});
|
|
1107
|
-
}
|
|
1108
|
-
}, "de_ResumeBatchLoadTaskCommandError");
|
|
1109
642
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1110
643
|
if (output.statusCode >= 300) {
|
|
1111
|
-
return
|
|
644
|
+
return de_CommandError(output, context);
|
|
1112
645
|
}
|
|
1113
646
|
const data = await parseBody(output.body, context);
|
|
1114
647
|
let contents = {};
|
|
@@ -1119,40 +652,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1119
652
|
};
|
|
1120
653
|
return response;
|
|
1121
654
|
}, "de_TagResourceCommand");
|
|
1122
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1123
|
-
const parsedOutput = {
|
|
1124
|
-
...output,
|
|
1125
|
-
body: await parseErrorBody(output.body, context)
|
|
1126
|
-
};
|
|
1127
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1128
|
-
switch (errorCode) {
|
|
1129
|
-
case "InvalidEndpointException":
|
|
1130
|
-
case "com.amazonaws.timestreamwrite#InvalidEndpointException":
|
|
1131
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
1132
|
-
case "ResourceNotFoundException":
|
|
1133
|
-
case "com.amazonaws.timestreamwrite#ResourceNotFoundException":
|
|
1134
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1135
|
-
case "ServiceQuotaExceededException":
|
|
1136
|
-
case "com.amazonaws.timestreamwrite#ServiceQuotaExceededException":
|
|
1137
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1138
|
-
case "ThrottlingException":
|
|
1139
|
-
case "com.amazonaws.timestreamwrite#ThrottlingException":
|
|
1140
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1141
|
-
case "ValidationException":
|
|
1142
|
-
case "com.amazonaws.timestreamwrite#ValidationException":
|
|
1143
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1144
|
-
default:
|
|
1145
|
-
const parsedBody = parsedOutput.body;
|
|
1146
|
-
return throwDefaultError({
|
|
1147
|
-
output,
|
|
1148
|
-
parsedBody,
|
|
1149
|
-
errorCode
|
|
1150
|
-
});
|
|
1151
|
-
}
|
|
1152
|
-
}, "de_TagResourceCommandError");
|
|
1153
655
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1154
656
|
if (output.statusCode >= 300) {
|
|
1155
|
-
return
|
|
657
|
+
return de_CommandError(output, context);
|
|
1156
658
|
}
|
|
1157
659
|
const data = await parseBody(output.body, context);
|
|
1158
660
|
let contents = {};
|
|
@@ -1163,40 +665,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1163
665
|
};
|
|
1164
666
|
return response;
|
|
1165
667
|
}, "de_UntagResourceCommand");
|
|
1166
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1167
|
-
const parsedOutput = {
|
|
1168
|
-
...output,
|
|
1169
|
-
body: await parseErrorBody(output.body, context)
|
|
1170
|
-
};
|
|
1171
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1172
|
-
switch (errorCode) {
|
|
1173
|
-
case "InvalidEndpointException":
|
|
1174
|
-
case "com.amazonaws.timestreamwrite#InvalidEndpointException":
|
|
1175
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
1176
|
-
case "ResourceNotFoundException":
|
|
1177
|
-
case "com.amazonaws.timestreamwrite#ResourceNotFoundException":
|
|
1178
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1179
|
-
case "ServiceQuotaExceededException":
|
|
1180
|
-
case "com.amazonaws.timestreamwrite#ServiceQuotaExceededException":
|
|
1181
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1182
|
-
case "ThrottlingException":
|
|
1183
|
-
case "com.amazonaws.timestreamwrite#ThrottlingException":
|
|
1184
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1185
|
-
case "ValidationException":
|
|
1186
|
-
case "com.amazonaws.timestreamwrite#ValidationException":
|
|
1187
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1188
|
-
default:
|
|
1189
|
-
const parsedBody = parsedOutput.body;
|
|
1190
|
-
return throwDefaultError({
|
|
1191
|
-
output,
|
|
1192
|
-
parsedBody,
|
|
1193
|
-
errorCode
|
|
1194
|
-
});
|
|
1195
|
-
}
|
|
1196
|
-
}, "de_UntagResourceCommandError");
|
|
1197
668
|
var de_UpdateDatabaseCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1198
669
|
if (output.statusCode >= 300) {
|
|
1199
|
-
return
|
|
670
|
+
return de_CommandError(output, context);
|
|
1200
671
|
}
|
|
1201
672
|
const data = await parseBody(output.body, context);
|
|
1202
673
|
let contents = {};
|
|
@@ -1207,46 +678,9 @@ var de_UpdateDatabaseCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1207
678
|
};
|
|
1208
679
|
return response;
|
|
1209
680
|
}, "de_UpdateDatabaseCommand");
|
|
1210
|
-
var de_UpdateDatabaseCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1211
|
-
const parsedOutput = {
|
|
1212
|
-
...output,
|
|
1213
|
-
body: await parseErrorBody(output.body, context)
|
|
1214
|
-
};
|
|
1215
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1216
|
-
switch (errorCode) {
|
|
1217
|
-
case "AccessDeniedException":
|
|
1218
|
-
case "com.amazonaws.timestreamwrite#AccessDeniedException":
|
|
1219
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1220
|
-
case "InternalServerException":
|
|
1221
|
-
case "com.amazonaws.timestreamwrite#InternalServerException":
|
|
1222
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1223
|
-
case "InvalidEndpointException":
|
|
1224
|
-
case "com.amazonaws.timestreamwrite#InvalidEndpointException":
|
|
1225
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
1226
|
-
case "ResourceNotFoundException":
|
|
1227
|
-
case "com.amazonaws.timestreamwrite#ResourceNotFoundException":
|
|
1228
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1229
|
-
case "ServiceQuotaExceededException":
|
|
1230
|
-
case "com.amazonaws.timestreamwrite#ServiceQuotaExceededException":
|
|
1231
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1232
|
-
case "ThrottlingException":
|
|
1233
|
-
case "com.amazonaws.timestreamwrite#ThrottlingException":
|
|
1234
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1235
|
-
case "ValidationException":
|
|
1236
|
-
case "com.amazonaws.timestreamwrite#ValidationException":
|
|
1237
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1238
|
-
default:
|
|
1239
|
-
const parsedBody = parsedOutput.body;
|
|
1240
|
-
return throwDefaultError({
|
|
1241
|
-
output,
|
|
1242
|
-
parsedBody,
|
|
1243
|
-
errorCode
|
|
1244
|
-
});
|
|
1245
|
-
}
|
|
1246
|
-
}, "de_UpdateDatabaseCommandError");
|
|
1247
681
|
var de_UpdateTableCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1248
682
|
if (output.statusCode >= 300) {
|
|
1249
|
-
return
|
|
683
|
+
return de_CommandError(output, context);
|
|
1250
684
|
}
|
|
1251
685
|
const data = await parseBody(output.body, context);
|
|
1252
686
|
let contents = {};
|
|
@@ -1257,43 +691,9 @@ var de_UpdateTableCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1257
691
|
};
|
|
1258
692
|
return response;
|
|
1259
693
|
}, "de_UpdateTableCommand");
|
|
1260
|
-
var de_UpdateTableCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1261
|
-
const parsedOutput = {
|
|
1262
|
-
...output,
|
|
1263
|
-
body: await parseErrorBody(output.body, context)
|
|
1264
|
-
};
|
|
1265
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1266
|
-
switch (errorCode) {
|
|
1267
|
-
case "AccessDeniedException":
|
|
1268
|
-
case "com.amazonaws.timestreamwrite#AccessDeniedException":
|
|
1269
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1270
|
-
case "InternalServerException":
|
|
1271
|
-
case "com.amazonaws.timestreamwrite#InternalServerException":
|
|
1272
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1273
|
-
case "InvalidEndpointException":
|
|
1274
|
-
case "com.amazonaws.timestreamwrite#InvalidEndpointException":
|
|
1275
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
1276
|
-
case "ResourceNotFoundException":
|
|
1277
|
-
case "com.amazonaws.timestreamwrite#ResourceNotFoundException":
|
|
1278
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1279
|
-
case "ThrottlingException":
|
|
1280
|
-
case "com.amazonaws.timestreamwrite#ThrottlingException":
|
|
1281
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1282
|
-
case "ValidationException":
|
|
1283
|
-
case "com.amazonaws.timestreamwrite#ValidationException":
|
|
1284
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1285
|
-
default:
|
|
1286
|
-
const parsedBody = parsedOutput.body;
|
|
1287
|
-
return throwDefaultError({
|
|
1288
|
-
output,
|
|
1289
|
-
parsedBody,
|
|
1290
|
-
errorCode
|
|
1291
|
-
});
|
|
1292
|
-
}
|
|
1293
|
-
}, "de_UpdateTableCommandError");
|
|
1294
694
|
var de_WriteRecordsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1295
695
|
if (output.statusCode >= 300) {
|
|
1296
|
-
return
|
|
696
|
+
return de_CommandError(output, context);
|
|
1297
697
|
}
|
|
1298
698
|
const data = await parseBody(output.body, context);
|
|
1299
699
|
let contents = {};
|
|
@@ -1304,7 +704,7 @@ var de_WriteRecordsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1304
704
|
};
|
|
1305
705
|
return response;
|
|
1306
706
|
}, "de_WriteRecordsCommand");
|
|
1307
|
-
var
|
|
707
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1308
708
|
const parsedOutput = {
|
|
1309
709
|
...output,
|
|
1310
710
|
body: await parseErrorBody(output.body, context)
|
|
@@ -1314,24 +714,30 @@ var de_WriteRecordsCommandError = /* @__PURE__ */ __name(async (output, context)
|
|
|
1314
714
|
case "AccessDeniedException":
|
|
1315
715
|
case "com.amazonaws.timestreamwrite#AccessDeniedException":
|
|
1316
716
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
717
|
+
case "ConflictException":
|
|
718
|
+
case "com.amazonaws.timestreamwrite#ConflictException":
|
|
719
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1317
720
|
case "InternalServerException":
|
|
1318
721
|
case "com.amazonaws.timestreamwrite#InternalServerException":
|
|
1319
722
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1320
723
|
case "InvalidEndpointException":
|
|
1321
724
|
case "com.amazonaws.timestreamwrite#InvalidEndpointException":
|
|
1322
725
|
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
1323
|
-
case "RejectedRecordsException":
|
|
1324
|
-
case "com.amazonaws.timestreamwrite#RejectedRecordsException":
|
|
1325
|
-
throw await de_RejectedRecordsExceptionRes(parsedOutput, context);
|
|
1326
726
|
case "ResourceNotFoundException":
|
|
1327
727
|
case "com.amazonaws.timestreamwrite#ResourceNotFoundException":
|
|
1328
728
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
729
|
+
case "ServiceQuotaExceededException":
|
|
730
|
+
case "com.amazonaws.timestreamwrite#ServiceQuotaExceededException":
|
|
731
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1329
732
|
case "ThrottlingException":
|
|
1330
733
|
case "com.amazonaws.timestreamwrite#ThrottlingException":
|
|
1331
734
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1332
735
|
case "ValidationException":
|
|
1333
736
|
case "com.amazonaws.timestreamwrite#ValidationException":
|
|
1334
737
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
738
|
+
case "RejectedRecordsException":
|
|
739
|
+
case "com.amazonaws.timestreamwrite#RejectedRecordsException":
|
|
740
|
+
throw await de_RejectedRecordsExceptionRes(parsedOutput, context);
|
|
1335
741
|
default:
|
|
1336
742
|
const parsedBody = parsedOutput.body;
|
|
1337
743
|
return throwDefaultError({
|
|
@@ -1340,7 +746,7 @@ var de_WriteRecordsCommandError = /* @__PURE__ */ __name(async (output, context)
|
|
|
1340
746
|
errorCode
|
|
1341
747
|
});
|
|
1342
748
|
}
|
|
1343
|
-
}, "
|
|
749
|
+
}, "de_CommandError");
|
|
1344
750
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1345
751
|
const body = parsedOutput.body;
|
|
1346
752
|
const deserialized = (0, import_smithy_client._json)(body);
|