@aws-sdk/client-databrew 3.504.0 → 3.507.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 +94 -1106
- package/dist-es/protocols/Aws_restJson1.js +89 -1101
- package/package.json +3 -3
|
@@ -608,7 +608,7 @@ export const se_UpdateScheduleCommand = async (input, context) => {
|
|
|
608
608
|
};
|
|
609
609
|
export const de_BatchDeleteRecipeVersionCommand = async (output, context) => {
|
|
610
610
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
611
|
-
return
|
|
611
|
+
return de_CommandError(output, context);
|
|
612
612
|
}
|
|
613
613
|
const contents = map({
|
|
614
614
|
$metadata: deserializeMetadata(output),
|
|
@@ -621,34 +621,9 @@ export const de_BatchDeleteRecipeVersionCommand = async (output, context) => {
|
|
|
621
621
|
Object.assign(contents, doc);
|
|
622
622
|
return contents;
|
|
623
623
|
};
|
|
624
|
-
const de_BatchDeleteRecipeVersionCommandError = async (output, context) => {
|
|
625
|
-
const parsedOutput = {
|
|
626
|
-
...output,
|
|
627
|
-
body: await parseErrorBody(output.body, context),
|
|
628
|
-
};
|
|
629
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
630
|
-
switch (errorCode) {
|
|
631
|
-
case "ConflictException":
|
|
632
|
-
case "com.amazonaws.databrew#ConflictException":
|
|
633
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
634
|
-
case "ResourceNotFoundException":
|
|
635
|
-
case "com.amazonaws.databrew#ResourceNotFoundException":
|
|
636
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
637
|
-
case "ValidationException":
|
|
638
|
-
case "com.amazonaws.databrew#ValidationException":
|
|
639
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
640
|
-
default:
|
|
641
|
-
const parsedBody = parsedOutput.body;
|
|
642
|
-
return throwDefaultError({
|
|
643
|
-
output,
|
|
644
|
-
parsedBody,
|
|
645
|
-
errorCode,
|
|
646
|
-
});
|
|
647
|
-
}
|
|
648
|
-
};
|
|
649
624
|
export const de_CreateDatasetCommand = async (output, context) => {
|
|
650
625
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
651
|
-
return
|
|
626
|
+
return de_CommandError(output, context);
|
|
652
627
|
}
|
|
653
628
|
const contents = map({
|
|
654
629
|
$metadata: deserializeMetadata(output),
|
|
@@ -660,37 +635,9 @@ export const de_CreateDatasetCommand = async (output, context) => {
|
|
|
660
635
|
Object.assign(contents, doc);
|
|
661
636
|
return contents;
|
|
662
637
|
};
|
|
663
|
-
const de_CreateDatasetCommandError = async (output, context) => {
|
|
664
|
-
const parsedOutput = {
|
|
665
|
-
...output,
|
|
666
|
-
body: await parseErrorBody(output.body, context),
|
|
667
|
-
};
|
|
668
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
669
|
-
switch (errorCode) {
|
|
670
|
-
case "AccessDeniedException":
|
|
671
|
-
case "com.amazonaws.databrew#AccessDeniedException":
|
|
672
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
673
|
-
case "ConflictException":
|
|
674
|
-
case "com.amazonaws.databrew#ConflictException":
|
|
675
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
676
|
-
case "ServiceQuotaExceededException":
|
|
677
|
-
case "com.amazonaws.databrew#ServiceQuotaExceededException":
|
|
678
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
679
|
-
case "ValidationException":
|
|
680
|
-
case "com.amazonaws.databrew#ValidationException":
|
|
681
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
682
|
-
default:
|
|
683
|
-
const parsedBody = parsedOutput.body;
|
|
684
|
-
return throwDefaultError({
|
|
685
|
-
output,
|
|
686
|
-
parsedBody,
|
|
687
|
-
errorCode,
|
|
688
|
-
});
|
|
689
|
-
}
|
|
690
|
-
};
|
|
691
638
|
export const de_CreateProfileJobCommand = async (output, context) => {
|
|
692
639
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
693
|
-
return
|
|
640
|
+
return de_CommandError(output, context);
|
|
694
641
|
}
|
|
695
642
|
const contents = map({
|
|
696
643
|
$metadata: deserializeMetadata(output),
|
|
@@ -702,40 +649,9 @@ export const de_CreateProfileJobCommand = async (output, context) => {
|
|
|
702
649
|
Object.assign(contents, doc);
|
|
703
650
|
return contents;
|
|
704
651
|
};
|
|
705
|
-
const de_CreateProfileJobCommandError = async (output, context) => {
|
|
706
|
-
const parsedOutput = {
|
|
707
|
-
...output,
|
|
708
|
-
body: await parseErrorBody(output.body, context),
|
|
709
|
-
};
|
|
710
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
711
|
-
switch (errorCode) {
|
|
712
|
-
case "AccessDeniedException":
|
|
713
|
-
case "com.amazonaws.databrew#AccessDeniedException":
|
|
714
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
715
|
-
case "ConflictException":
|
|
716
|
-
case "com.amazonaws.databrew#ConflictException":
|
|
717
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
718
|
-
case "ResourceNotFoundException":
|
|
719
|
-
case "com.amazonaws.databrew#ResourceNotFoundException":
|
|
720
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
721
|
-
case "ServiceQuotaExceededException":
|
|
722
|
-
case "com.amazonaws.databrew#ServiceQuotaExceededException":
|
|
723
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
724
|
-
case "ValidationException":
|
|
725
|
-
case "com.amazonaws.databrew#ValidationException":
|
|
726
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
727
|
-
default:
|
|
728
|
-
const parsedBody = parsedOutput.body;
|
|
729
|
-
return throwDefaultError({
|
|
730
|
-
output,
|
|
731
|
-
parsedBody,
|
|
732
|
-
errorCode,
|
|
733
|
-
});
|
|
734
|
-
}
|
|
735
|
-
};
|
|
736
652
|
export const de_CreateProjectCommand = async (output, context) => {
|
|
737
653
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
738
|
-
return
|
|
654
|
+
return de_CommandError(output, context);
|
|
739
655
|
}
|
|
740
656
|
const contents = map({
|
|
741
657
|
$metadata: deserializeMetadata(output),
|
|
@@ -747,37 +663,9 @@ export const de_CreateProjectCommand = async (output, context) => {
|
|
|
747
663
|
Object.assign(contents, doc);
|
|
748
664
|
return contents;
|
|
749
665
|
};
|
|
750
|
-
const de_CreateProjectCommandError = async (output, context) => {
|
|
751
|
-
const parsedOutput = {
|
|
752
|
-
...output,
|
|
753
|
-
body: await parseErrorBody(output.body, context),
|
|
754
|
-
};
|
|
755
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
756
|
-
switch (errorCode) {
|
|
757
|
-
case "ConflictException":
|
|
758
|
-
case "com.amazonaws.databrew#ConflictException":
|
|
759
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
760
|
-
case "InternalServerException":
|
|
761
|
-
case "com.amazonaws.databrew#InternalServerException":
|
|
762
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
763
|
-
case "ServiceQuotaExceededException":
|
|
764
|
-
case "com.amazonaws.databrew#ServiceQuotaExceededException":
|
|
765
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
766
|
-
case "ValidationException":
|
|
767
|
-
case "com.amazonaws.databrew#ValidationException":
|
|
768
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
769
|
-
default:
|
|
770
|
-
const parsedBody = parsedOutput.body;
|
|
771
|
-
return throwDefaultError({
|
|
772
|
-
output,
|
|
773
|
-
parsedBody,
|
|
774
|
-
errorCode,
|
|
775
|
-
});
|
|
776
|
-
}
|
|
777
|
-
};
|
|
778
666
|
export const de_CreateRecipeCommand = async (output, context) => {
|
|
779
667
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
780
|
-
return
|
|
668
|
+
return de_CommandError(output, context);
|
|
781
669
|
}
|
|
782
670
|
const contents = map({
|
|
783
671
|
$metadata: deserializeMetadata(output),
|
|
@@ -789,34 +677,9 @@ export const de_CreateRecipeCommand = async (output, context) => {
|
|
|
789
677
|
Object.assign(contents, doc);
|
|
790
678
|
return contents;
|
|
791
679
|
};
|
|
792
|
-
const de_CreateRecipeCommandError = async (output, context) => {
|
|
793
|
-
const parsedOutput = {
|
|
794
|
-
...output,
|
|
795
|
-
body: await parseErrorBody(output.body, context),
|
|
796
|
-
};
|
|
797
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
798
|
-
switch (errorCode) {
|
|
799
|
-
case "ConflictException":
|
|
800
|
-
case "com.amazonaws.databrew#ConflictException":
|
|
801
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
802
|
-
case "ServiceQuotaExceededException":
|
|
803
|
-
case "com.amazonaws.databrew#ServiceQuotaExceededException":
|
|
804
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
805
|
-
case "ValidationException":
|
|
806
|
-
case "com.amazonaws.databrew#ValidationException":
|
|
807
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
808
|
-
default:
|
|
809
|
-
const parsedBody = parsedOutput.body;
|
|
810
|
-
return throwDefaultError({
|
|
811
|
-
output,
|
|
812
|
-
parsedBody,
|
|
813
|
-
errorCode,
|
|
814
|
-
});
|
|
815
|
-
}
|
|
816
|
-
};
|
|
817
680
|
export const de_CreateRecipeJobCommand = async (output, context) => {
|
|
818
681
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
819
|
-
return
|
|
682
|
+
return de_CommandError(output, context);
|
|
820
683
|
}
|
|
821
684
|
const contents = map({
|
|
822
685
|
$metadata: deserializeMetadata(output),
|
|
@@ -828,40 +691,9 @@ export const de_CreateRecipeJobCommand = async (output, context) => {
|
|
|
828
691
|
Object.assign(contents, doc);
|
|
829
692
|
return contents;
|
|
830
693
|
};
|
|
831
|
-
const de_CreateRecipeJobCommandError = async (output, context) => {
|
|
832
|
-
const parsedOutput = {
|
|
833
|
-
...output,
|
|
834
|
-
body: await parseErrorBody(output.body, context),
|
|
835
|
-
};
|
|
836
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
837
|
-
switch (errorCode) {
|
|
838
|
-
case "AccessDeniedException":
|
|
839
|
-
case "com.amazonaws.databrew#AccessDeniedException":
|
|
840
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
841
|
-
case "ConflictException":
|
|
842
|
-
case "com.amazonaws.databrew#ConflictException":
|
|
843
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
844
|
-
case "ResourceNotFoundException":
|
|
845
|
-
case "com.amazonaws.databrew#ResourceNotFoundException":
|
|
846
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
847
|
-
case "ServiceQuotaExceededException":
|
|
848
|
-
case "com.amazonaws.databrew#ServiceQuotaExceededException":
|
|
849
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
850
|
-
case "ValidationException":
|
|
851
|
-
case "com.amazonaws.databrew#ValidationException":
|
|
852
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
853
|
-
default:
|
|
854
|
-
const parsedBody = parsedOutput.body;
|
|
855
|
-
return throwDefaultError({
|
|
856
|
-
output,
|
|
857
|
-
parsedBody,
|
|
858
|
-
errorCode,
|
|
859
|
-
});
|
|
860
|
-
}
|
|
861
|
-
};
|
|
862
694
|
export const de_CreateRulesetCommand = async (output, context) => {
|
|
863
695
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
864
|
-
return
|
|
696
|
+
return de_CommandError(output, context);
|
|
865
697
|
}
|
|
866
698
|
const contents = map({
|
|
867
699
|
$metadata: deserializeMetadata(output),
|
|
@@ -873,34 +705,9 @@ export const de_CreateRulesetCommand = async (output, context) => {
|
|
|
873
705
|
Object.assign(contents, doc);
|
|
874
706
|
return contents;
|
|
875
707
|
};
|
|
876
|
-
const de_CreateRulesetCommandError = async (output, context) => {
|
|
877
|
-
const parsedOutput = {
|
|
878
|
-
...output,
|
|
879
|
-
body: await parseErrorBody(output.body, context),
|
|
880
|
-
};
|
|
881
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
882
|
-
switch (errorCode) {
|
|
883
|
-
case "ConflictException":
|
|
884
|
-
case "com.amazonaws.databrew#ConflictException":
|
|
885
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
886
|
-
case "ServiceQuotaExceededException":
|
|
887
|
-
case "com.amazonaws.databrew#ServiceQuotaExceededException":
|
|
888
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
889
|
-
case "ValidationException":
|
|
890
|
-
case "com.amazonaws.databrew#ValidationException":
|
|
891
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
892
|
-
default:
|
|
893
|
-
const parsedBody = parsedOutput.body;
|
|
894
|
-
return throwDefaultError({
|
|
895
|
-
output,
|
|
896
|
-
parsedBody,
|
|
897
|
-
errorCode,
|
|
898
|
-
});
|
|
899
|
-
}
|
|
900
|
-
};
|
|
901
708
|
export const de_CreateScheduleCommand = async (output, context) => {
|
|
902
709
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
903
|
-
return
|
|
710
|
+
return de_CommandError(output, context);
|
|
904
711
|
}
|
|
905
712
|
const contents = map({
|
|
906
713
|
$metadata: deserializeMetadata(output),
|
|
@@ -912,34 +719,9 @@ export const de_CreateScheduleCommand = async (output, context) => {
|
|
|
912
719
|
Object.assign(contents, doc);
|
|
913
720
|
return contents;
|
|
914
721
|
};
|
|
915
|
-
const de_CreateScheduleCommandError = async (output, context) => {
|
|
916
|
-
const parsedOutput = {
|
|
917
|
-
...output,
|
|
918
|
-
body: await parseErrorBody(output.body, context),
|
|
919
|
-
};
|
|
920
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
921
|
-
switch (errorCode) {
|
|
922
|
-
case "ConflictException":
|
|
923
|
-
case "com.amazonaws.databrew#ConflictException":
|
|
924
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
925
|
-
case "ServiceQuotaExceededException":
|
|
926
|
-
case "com.amazonaws.databrew#ServiceQuotaExceededException":
|
|
927
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
928
|
-
case "ValidationException":
|
|
929
|
-
case "com.amazonaws.databrew#ValidationException":
|
|
930
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
931
|
-
default:
|
|
932
|
-
const parsedBody = parsedOutput.body;
|
|
933
|
-
return throwDefaultError({
|
|
934
|
-
output,
|
|
935
|
-
parsedBody,
|
|
936
|
-
errorCode,
|
|
937
|
-
});
|
|
938
|
-
}
|
|
939
|
-
};
|
|
940
722
|
export const de_DeleteDatasetCommand = async (output, context) => {
|
|
941
723
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
942
|
-
return
|
|
724
|
+
return de_CommandError(output, context);
|
|
943
725
|
}
|
|
944
726
|
const contents = map({
|
|
945
727
|
$metadata: deserializeMetadata(output),
|
|
@@ -951,34 +733,9 @@ export const de_DeleteDatasetCommand = async (output, context) => {
|
|
|
951
733
|
Object.assign(contents, doc);
|
|
952
734
|
return contents;
|
|
953
735
|
};
|
|
954
|
-
const de_DeleteDatasetCommandError = async (output, context) => {
|
|
955
|
-
const parsedOutput = {
|
|
956
|
-
...output,
|
|
957
|
-
body: await parseErrorBody(output.body, context),
|
|
958
|
-
};
|
|
959
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
960
|
-
switch (errorCode) {
|
|
961
|
-
case "ConflictException":
|
|
962
|
-
case "com.amazonaws.databrew#ConflictException":
|
|
963
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
964
|
-
case "ResourceNotFoundException":
|
|
965
|
-
case "com.amazonaws.databrew#ResourceNotFoundException":
|
|
966
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
967
|
-
case "ValidationException":
|
|
968
|
-
case "com.amazonaws.databrew#ValidationException":
|
|
969
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
970
|
-
default:
|
|
971
|
-
const parsedBody = parsedOutput.body;
|
|
972
|
-
return throwDefaultError({
|
|
973
|
-
output,
|
|
974
|
-
parsedBody,
|
|
975
|
-
errorCode,
|
|
976
|
-
});
|
|
977
|
-
}
|
|
978
|
-
};
|
|
979
736
|
export const de_DeleteJobCommand = async (output, context) => {
|
|
980
737
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
981
|
-
return
|
|
738
|
+
return de_CommandError(output, context);
|
|
982
739
|
}
|
|
983
740
|
const contents = map({
|
|
984
741
|
$metadata: deserializeMetadata(output),
|
|
@@ -990,73 +747,23 @@ export const de_DeleteJobCommand = async (output, context) => {
|
|
|
990
747
|
Object.assign(contents, doc);
|
|
991
748
|
return contents;
|
|
992
749
|
};
|
|
993
|
-
const de_DeleteJobCommandError = async (output, context) => {
|
|
994
|
-
const parsedOutput = {
|
|
995
|
-
...output,
|
|
996
|
-
body: await parseErrorBody(output.body, context),
|
|
997
|
-
};
|
|
998
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
999
|
-
switch (errorCode) {
|
|
1000
|
-
case "ConflictException":
|
|
1001
|
-
case "com.amazonaws.databrew#ConflictException":
|
|
1002
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1003
|
-
case "ResourceNotFoundException":
|
|
1004
|
-
case "com.amazonaws.databrew#ResourceNotFoundException":
|
|
1005
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1006
|
-
case "ValidationException":
|
|
1007
|
-
case "com.amazonaws.databrew#ValidationException":
|
|
1008
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1009
|
-
default:
|
|
1010
|
-
const parsedBody = parsedOutput.body;
|
|
1011
|
-
return throwDefaultError({
|
|
1012
|
-
output,
|
|
1013
|
-
parsedBody,
|
|
1014
|
-
errorCode,
|
|
1015
|
-
});
|
|
1016
|
-
}
|
|
1017
|
-
};
|
|
1018
750
|
export const de_DeleteProjectCommand = async (output, context) => {
|
|
1019
751
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1020
|
-
return
|
|
752
|
+
return de_CommandError(output, context);
|
|
1021
753
|
}
|
|
1022
754
|
const contents = map({
|
|
1023
755
|
$metadata: deserializeMetadata(output),
|
|
1024
|
-
});
|
|
1025
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1026
|
-
const doc = take(data, {
|
|
1027
|
-
Name: __expectString,
|
|
1028
|
-
});
|
|
1029
|
-
Object.assign(contents, doc);
|
|
1030
|
-
return contents;
|
|
1031
|
-
};
|
|
1032
|
-
const de_DeleteProjectCommandError = async (output, context) => {
|
|
1033
|
-
const parsedOutput = {
|
|
1034
|
-
...output,
|
|
1035
|
-
body: await parseErrorBody(output.body, context),
|
|
1036
|
-
};
|
|
1037
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1038
|
-
switch (errorCode) {
|
|
1039
|
-
case "ConflictException":
|
|
1040
|
-
case "com.amazonaws.databrew#ConflictException":
|
|
1041
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1042
|
-
case "ResourceNotFoundException":
|
|
1043
|
-
case "com.amazonaws.databrew#ResourceNotFoundException":
|
|
1044
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1045
|
-
case "ValidationException":
|
|
1046
|
-
case "com.amazonaws.databrew#ValidationException":
|
|
1047
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1048
|
-
default:
|
|
1049
|
-
const parsedBody = parsedOutput.body;
|
|
1050
|
-
return throwDefaultError({
|
|
1051
|
-
output,
|
|
1052
|
-
parsedBody,
|
|
1053
|
-
errorCode,
|
|
1054
|
-
});
|
|
1055
|
-
}
|
|
756
|
+
});
|
|
757
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
758
|
+
const doc = take(data, {
|
|
759
|
+
Name: __expectString,
|
|
760
|
+
});
|
|
761
|
+
Object.assign(contents, doc);
|
|
762
|
+
return contents;
|
|
1056
763
|
};
|
|
1057
764
|
export const de_DeleteRecipeVersionCommand = async (output, context) => {
|
|
1058
765
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1059
|
-
return
|
|
766
|
+
return de_CommandError(output, context);
|
|
1060
767
|
}
|
|
1061
768
|
const contents = map({
|
|
1062
769
|
$metadata: deserializeMetadata(output),
|
|
@@ -1069,34 +776,9 @@ export const de_DeleteRecipeVersionCommand = async (output, context) => {
|
|
|
1069
776
|
Object.assign(contents, doc);
|
|
1070
777
|
return contents;
|
|
1071
778
|
};
|
|
1072
|
-
const de_DeleteRecipeVersionCommandError = async (output, context) => {
|
|
1073
|
-
const parsedOutput = {
|
|
1074
|
-
...output,
|
|
1075
|
-
body: await parseErrorBody(output.body, context),
|
|
1076
|
-
};
|
|
1077
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1078
|
-
switch (errorCode) {
|
|
1079
|
-
case "ConflictException":
|
|
1080
|
-
case "com.amazonaws.databrew#ConflictException":
|
|
1081
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1082
|
-
case "ResourceNotFoundException":
|
|
1083
|
-
case "com.amazonaws.databrew#ResourceNotFoundException":
|
|
1084
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1085
|
-
case "ValidationException":
|
|
1086
|
-
case "com.amazonaws.databrew#ValidationException":
|
|
1087
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1088
|
-
default:
|
|
1089
|
-
const parsedBody = parsedOutput.body;
|
|
1090
|
-
return throwDefaultError({
|
|
1091
|
-
output,
|
|
1092
|
-
parsedBody,
|
|
1093
|
-
errorCode,
|
|
1094
|
-
});
|
|
1095
|
-
}
|
|
1096
|
-
};
|
|
1097
779
|
export const de_DeleteRulesetCommand = async (output, context) => {
|
|
1098
780
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1099
|
-
return
|
|
781
|
+
return de_CommandError(output, context);
|
|
1100
782
|
}
|
|
1101
783
|
const contents = map({
|
|
1102
784
|
$metadata: deserializeMetadata(output),
|
|
@@ -1108,34 +790,9 @@ export const de_DeleteRulesetCommand = async (output, context) => {
|
|
|
1108
790
|
Object.assign(contents, doc);
|
|
1109
791
|
return contents;
|
|
1110
792
|
};
|
|
1111
|
-
const de_DeleteRulesetCommandError = async (output, context) => {
|
|
1112
|
-
const parsedOutput = {
|
|
1113
|
-
...output,
|
|
1114
|
-
body: await parseErrorBody(output.body, context),
|
|
1115
|
-
};
|
|
1116
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1117
|
-
switch (errorCode) {
|
|
1118
|
-
case "ConflictException":
|
|
1119
|
-
case "com.amazonaws.databrew#ConflictException":
|
|
1120
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1121
|
-
case "ResourceNotFoundException":
|
|
1122
|
-
case "com.amazonaws.databrew#ResourceNotFoundException":
|
|
1123
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1124
|
-
case "ValidationException":
|
|
1125
|
-
case "com.amazonaws.databrew#ValidationException":
|
|
1126
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1127
|
-
default:
|
|
1128
|
-
const parsedBody = parsedOutput.body;
|
|
1129
|
-
return throwDefaultError({
|
|
1130
|
-
output,
|
|
1131
|
-
parsedBody,
|
|
1132
|
-
errorCode,
|
|
1133
|
-
});
|
|
1134
|
-
}
|
|
1135
|
-
};
|
|
1136
793
|
export const de_DeleteScheduleCommand = async (output, context) => {
|
|
1137
794
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1138
|
-
return
|
|
795
|
+
return de_CommandError(output, context);
|
|
1139
796
|
}
|
|
1140
797
|
const contents = map({
|
|
1141
798
|
$metadata: deserializeMetadata(output),
|
|
@@ -1147,31 +804,9 @@ export const de_DeleteScheduleCommand = async (output, context) => {
|
|
|
1147
804
|
Object.assign(contents, doc);
|
|
1148
805
|
return contents;
|
|
1149
806
|
};
|
|
1150
|
-
const de_DeleteScheduleCommandError = async (output, context) => {
|
|
1151
|
-
const parsedOutput = {
|
|
1152
|
-
...output,
|
|
1153
|
-
body: await parseErrorBody(output.body, context),
|
|
1154
|
-
};
|
|
1155
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1156
|
-
switch (errorCode) {
|
|
1157
|
-
case "ResourceNotFoundException":
|
|
1158
|
-
case "com.amazonaws.databrew#ResourceNotFoundException":
|
|
1159
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1160
|
-
case "ValidationException":
|
|
1161
|
-
case "com.amazonaws.databrew#ValidationException":
|
|
1162
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1163
|
-
default:
|
|
1164
|
-
const parsedBody = parsedOutput.body;
|
|
1165
|
-
return throwDefaultError({
|
|
1166
|
-
output,
|
|
1167
|
-
parsedBody,
|
|
1168
|
-
errorCode,
|
|
1169
|
-
});
|
|
1170
|
-
}
|
|
1171
|
-
};
|
|
1172
807
|
export const de_DescribeDatasetCommand = async (output, context) => {
|
|
1173
808
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1174
|
-
return
|
|
809
|
+
return de_CommandError(output, context);
|
|
1175
810
|
}
|
|
1176
811
|
const contents = map({
|
|
1177
812
|
$metadata: deserializeMetadata(output),
|
|
@@ -1194,31 +829,9 @@ export const de_DescribeDatasetCommand = async (output, context) => {
|
|
|
1194
829
|
Object.assign(contents, doc);
|
|
1195
830
|
return contents;
|
|
1196
831
|
};
|
|
1197
|
-
const de_DescribeDatasetCommandError = async (output, context) => {
|
|
1198
|
-
const parsedOutput = {
|
|
1199
|
-
...output,
|
|
1200
|
-
body: await parseErrorBody(output.body, context),
|
|
1201
|
-
};
|
|
1202
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1203
|
-
switch (errorCode) {
|
|
1204
|
-
case "ResourceNotFoundException":
|
|
1205
|
-
case "com.amazonaws.databrew#ResourceNotFoundException":
|
|
1206
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1207
|
-
case "ValidationException":
|
|
1208
|
-
case "com.amazonaws.databrew#ValidationException":
|
|
1209
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1210
|
-
default:
|
|
1211
|
-
const parsedBody = parsedOutput.body;
|
|
1212
|
-
return throwDefaultError({
|
|
1213
|
-
output,
|
|
1214
|
-
parsedBody,
|
|
1215
|
-
errorCode,
|
|
1216
|
-
});
|
|
1217
|
-
}
|
|
1218
|
-
};
|
|
1219
832
|
export const de_DescribeJobCommand = async (output, context) => {
|
|
1220
833
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1221
|
-
return
|
|
834
|
+
return de_CommandError(output, context);
|
|
1222
835
|
}
|
|
1223
836
|
const contents = map({
|
|
1224
837
|
$metadata: deserializeMetadata(output),
|
|
@@ -1253,31 +866,9 @@ export const de_DescribeJobCommand = async (output, context) => {
|
|
|
1253
866
|
Object.assign(contents, doc);
|
|
1254
867
|
return contents;
|
|
1255
868
|
};
|
|
1256
|
-
const de_DescribeJobCommandError = async (output, context) => {
|
|
1257
|
-
const parsedOutput = {
|
|
1258
|
-
...output,
|
|
1259
|
-
body: await parseErrorBody(output.body, context),
|
|
1260
|
-
};
|
|
1261
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1262
|
-
switch (errorCode) {
|
|
1263
|
-
case "ResourceNotFoundException":
|
|
1264
|
-
case "com.amazonaws.databrew#ResourceNotFoundException":
|
|
1265
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1266
|
-
case "ValidationException":
|
|
1267
|
-
case "com.amazonaws.databrew#ValidationException":
|
|
1268
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1269
|
-
default:
|
|
1270
|
-
const parsedBody = parsedOutput.body;
|
|
1271
|
-
return throwDefaultError({
|
|
1272
|
-
output,
|
|
1273
|
-
parsedBody,
|
|
1274
|
-
errorCode,
|
|
1275
|
-
});
|
|
1276
|
-
}
|
|
1277
|
-
};
|
|
1278
869
|
export const de_DescribeJobRunCommand = async (output, context) => {
|
|
1279
870
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1280
|
-
return
|
|
871
|
+
return de_CommandError(output, context);
|
|
1281
872
|
}
|
|
1282
873
|
const contents = map({
|
|
1283
874
|
$metadata: deserializeMetadata(output),
|
|
@@ -1307,31 +898,9 @@ export const de_DescribeJobRunCommand = async (output, context) => {
|
|
|
1307
898
|
Object.assign(contents, doc);
|
|
1308
899
|
return contents;
|
|
1309
900
|
};
|
|
1310
|
-
const de_DescribeJobRunCommandError = async (output, context) => {
|
|
1311
|
-
const parsedOutput = {
|
|
1312
|
-
...output,
|
|
1313
|
-
body: await parseErrorBody(output.body, context),
|
|
1314
|
-
};
|
|
1315
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1316
|
-
switch (errorCode) {
|
|
1317
|
-
case "ResourceNotFoundException":
|
|
1318
|
-
case "com.amazonaws.databrew#ResourceNotFoundException":
|
|
1319
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1320
|
-
case "ValidationException":
|
|
1321
|
-
case "com.amazonaws.databrew#ValidationException":
|
|
1322
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1323
|
-
default:
|
|
1324
|
-
const parsedBody = parsedOutput.body;
|
|
1325
|
-
return throwDefaultError({
|
|
1326
|
-
output,
|
|
1327
|
-
parsedBody,
|
|
1328
|
-
errorCode,
|
|
1329
|
-
});
|
|
1330
|
-
}
|
|
1331
|
-
};
|
|
1332
901
|
export const de_DescribeProjectCommand = async (output, context) => {
|
|
1333
902
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1334
|
-
return
|
|
903
|
+
return de_CommandError(output, context);
|
|
1335
904
|
}
|
|
1336
905
|
const contents = map({
|
|
1337
906
|
$metadata: deserializeMetadata(output),
|
|
@@ -1356,31 +925,9 @@ export const de_DescribeProjectCommand = async (output, context) => {
|
|
|
1356
925
|
Object.assign(contents, doc);
|
|
1357
926
|
return contents;
|
|
1358
927
|
};
|
|
1359
|
-
const de_DescribeProjectCommandError = async (output, context) => {
|
|
1360
|
-
const parsedOutput = {
|
|
1361
|
-
...output,
|
|
1362
|
-
body: await parseErrorBody(output.body, context),
|
|
1363
|
-
};
|
|
1364
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1365
|
-
switch (errorCode) {
|
|
1366
|
-
case "ResourceNotFoundException":
|
|
1367
|
-
case "com.amazonaws.databrew#ResourceNotFoundException":
|
|
1368
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1369
|
-
case "ValidationException":
|
|
1370
|
-
case "com.amazonaws.databrew#ValidationException":
|
|
1371
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1372
|
-
default:
|
|
1373
|
-
const parsedBody = parsedOutput.body;
|
|
1374
|
-
return throwDefaultError({
|
|
1375
|
-
output,
|
|
1376
|
-
parsedBody,
|
|
1377
|
-
errorCode,
|
|
1378
|
-
});
|
|
1379
|
-
}
|
|
1380
|
-
};
|
|
1381
928
|
export const de_DescribeRecipeCommand = async (output, context) => {
|
|
1382
929
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1383
|
-
return
|
|
930
|
+
return de_CommandError(output, context);
|
|
1384
931
|
}
|
|
1385
932
|
const contents = map({
|
|
1386
933
|
$metadata: deserializeMetadata(output),
|
|
@@ -1404,31 +951,9 @@ export const de_DescribeRecipeCommand = async (output, context) => {
|
|
|
1404
951
|
Object.assign(contents, doc);
|
|
1405
952
|
return contents;
|
|
1406
953
|
};
|
|
1407
|
-
const de_DescribeRecipeCommandError = async (output, context) => {
|
|
1408
|
-
const parsedOutput = {
|
|
1409
|
-
...output,
|
|
1410
|
-
body: await parseErrorBody(output.body, context),
|
|
1411
|
-
};
|
|
1412
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1413
|
-
switch (errorCode) {
|
|
1414
|
-
case "ResourceNotFoundException":
|
|
1415
|
-
case "com.amazonaws.databrew#ResourceNotFoundException":
|
|
1416
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1417
|
-
case "ValidationException":
|
|
1418
|
-
case "com.amazonaws.databrew#ValidationException":
|
|
1419
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1420
|
-
default:
|
|
1421
|
-
const parsedBody = parsedOutput.body;
|
|
1422
|
-
return throwDefaultError({
|
|
1423
|
-
output,
|
|
1424
|
-
parsedBody,
|
|
1425
|
-
errorCode,
|
|
1426
|
-
});
|
|
1427
|
-
}
|
|
1428
|
-
};
|
|
1429
954
|
export const de_DescribeRulesetCommand = async (output, context) => {
|
|
1430
955
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1431
|
-
return
|
|
956
|
+
return de_CommandError(output, context);
|
|
1432
957
|
}
|
|
1433
958
|
const contents = map({
|
|
1434
959
|
$metadata: deserializeMetadata(output),
|
|
@@ -1449,31 +974,9 @@ export const de_DescribeRulesetCommand = async (output, context) => {
|
|
|
1449
974
|
Object.assign(contents, doc);
|
|
1450
975
|
return contents;
|
|
1451
976
|
};
|
|
1452
|
-
const de_DescribeRulesetCommandError = async (output, context) => {
|
|
1453
|
-
const parsedOutput = {
|
|
1454
|
-
...output,
|
|
1455
|
-
body: await parseErrorBody(output.body, context),
|
|
1456
|
-
};
|
|
1457
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1458
|
-
switch (errorCode) {
|
|
1459
|
-
case "ResourceNotFoundException":
|
|
1460
|
-
case "com.amazonaws.databrew#ResourceNotFoundException":
|
|
1461
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1462
|
-
case "ValidationException":
|
|
1463
|
-
case "com.amazonaws.databrew#ValidationException":
|
|
1464
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1465
|
-
default:
|
|
1466
|
-
const parsedBody = parsedOutput.body;
|
|
1467
|
-
return throwDefaultError({
|
|
1468
|
-
output,
|
|
1469
|
-
parsedBody,
|
|
1470
|
-
errorCode,
|
|
1471
|
-
});
|
|
1472
|
-
}
|
|
1473
|
-
};
|
|
1474
977
|
export const de_DescribeScheduleCommand = async (output, context) => {
|
|
1475
978
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1476
|
-
return
|
|
979
|
+
return de_CommandError(output, context);
|
|
1477
980
|
}
|
|
1478
981
|
const contents = map({
|
|
1479
982
|
$metadata: deserializeMetadata(output),
|
|
@@ -1490,68 +993,27 @@ export const de_DescribeScheduleCommand = async (output, context) => {
|
|
|
1490
993
|
ResourceArn: __expectString,
|
|
1491
994
|
Tags: _json,
|
|
1492
995
|
});
|
|
1493
|
-
Object.assign(contents, doc);
|
|
1494
|
-
return contents;
|
|
1495
|
-
};
|
|
1496
|
-
const
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
body: await parseErrorBody(output.body, context),
|
|
1500
|
-
};
|
|
1501
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1502
|
-
switch (errorCode) {
|
|
1503
|
-
case "ResourceNotFoundException":
|
|
1504
|
-
case "com.amazonaws.databrew#ResourceNotFoundException":
|
|
1505
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1506
|
-
case "ValidationException":
|
|
1507
|
-
case "com.amazonaws.databrew#ValidationException":
|
|
1508
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1509
|
-
default:
|
|
1510
|
-
const parsedBody = parsedOutput.body;
|
|
1511
|
-
return throwDefaultError({
|
|
1512
|
-
output,
|
|
1513
|
-
parsedBody,
|
|
1514
|
-
errorCode,
|
|
1515
|
-
});
|
|
1516
|
-
}
|
|
1517
|
-
};
|
|
1518
|
-
export const de_ListDatasetsCommand = async (output, context) => {
|
|
1519
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1520
|
-
return de_ListDatasetsCommandError(output, context);
|
|
1521
|
-
}
|
|
1522
|
-
const contents = map({
|
|
1523
|
-
$metadata: deserializeMetadata(output),
|
|
1524
|
-
});
|
|
1525
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1526
|
-
const doc = take(data, {
|
|
1527
|
-
Datasets: (_) => de_DatasetList(_, context),
|
|
1528
|
-
NextToken: __expectString,
|
|
1529
|
-
});
|
|
1530
|
-
Object.assign(contents, doc);
|
|
1531
|
-
return contents;
|
|
1532
|
-
};
|
|
1533
|
-
const de_ListDatasetsCommandError = async (output, context) => {
|
|
1534
|
-
const parsedOutput = {
|
|
1535
|
-
...output,
|
|
1536
|
-
body: await parseErrorBody(output.body, context),
|
|
1537
|
-
};
|
|
1538
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1539
|
-
switch (errorCode) {
|
|
1540
|
-
case "ValidationException":
|
|
1541
|
-
case "com.amazonaws.databrew#ValidationException":
|
|
1542
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1543
|
-
default:
|
|
1544
|
-
const parsedBody = parsedOutput.body;
|
|
1545
|
-
return throwDefaultError({
|
|
1546
|
-
output,
|
|
1547
|
-
parsedBody,
|
|
1548
|
-
errorCode,
|
|
1549
|
-
});
|
|
996
|
+
Object.assign(contents, doc);
|
|
997
|
+
return contents;
|
|
998
|
+
};
|
|
999
|
+
export const de_ListDatasetsCommand = async (output, context) => {
|
|
1000
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1001
|
+
return de_CommandError(output, context);
|
|
1550
1002
|
}
|
|
1003
|
+
const contents = map({
|
|
1004
|
+
$metadata: deserializeMetadata(output),
|
|
1005
|
+
});
|
|
1006
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1007
|
+
const doc = take(data, {
|
|
1008
|
+
Datasets: (_) => de_DatasetList(_, context),
|
|
1009
|
+
NextToken: __expectString,
|
|
1010
|
+
});
|
|
1011
|
+
Object.assign(contents, doc);
|
|
1012
|
+
return contents;
|
|
1551
1013
|
};
|
|
1552
1014
|
export const de_ListJobRunsCommand = async (output, context) => {
|
|
1553
1015
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1554
|
-
return
|
|
1016
|
+
return de_CommandError(output, context);
|
|
1555
1017
|
}
|
|
1556
1018
|
const contents = map({
|
|
1557
1019
|
$metadata: deserializeMetadata(output),
|
|
@@ -1564,31 +1026,9 @@ export const de_ListJobRunsCommand = async (output, context) => {
|
|
|
1564
1026
|
Object.assign(contents, doc);
|
|
1565
1027
|
return contents;
|
|
1566
1028
|
};
|
|
1567
|
-
const de_ListJobRunsCommandError = async (output, context) => {
|
|
1568
|
-
const parsedOutput = {
|
|
1569
|
-
...output,
|
|
1570
|
-
body: await parseErrorBody(output.body, context),
|
|
1571
|
-
};
|
|
1572
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1573
|
-
switch (errorCode) {
|
|
1574
|
-
case "ResourceNotFoundException":
|
|
1575
|
-
case "com.amazonaws.databrew#ResourceNotFoundException":
|
|
1576
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1577
|
-
case "ValidationException":
|
|
1578
|
-
case "com.amazonaws.databrew#ValidationException":
|
|
1579
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1580
|
-
default:
|
|
1581
|
-
const parsedBody = parsedOutput.body;
|
|
1582
|
-
return throwDefaultError({
|
|
1583
|
-
output,
|
|
1584
|
-
parsedBody,
|
|
1585
|
-
errorCode,
|
|
1586
|
-
});
|
|
1587
|
-
}
|
|
1588
|
-
};
|
|
1589
1029
|
export const de_ListJobsCommand = async (output, context) => {
|
|
1590
1030
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1591
|
-
return
|
|
1031
|
+
return de_CommandError(output, context);
|
|
1592
1032
|
}
|
|
1593
1033
|
const contents = map({
|
|
1594
1034
|
$metadata: deserializeMetadata(output),
|
|
@@ -1601,28 +1041,9 @@ export const de_ListJobsCommand = async (output, context) => {
|
|
|
1601
1041
|
Object.assign(contents, doc);
|
|
1602
1042
|
return contents;
|
|
1603
1043
|
};
|
|
1604
|
-
const de_ListJobsCommandError = async (output, context) => {
|
|
1605
|
-
const parsedOutput = {
|
|
1606
|
-
...output,
|
|
1607
|
-
body: await parseErrorBody(output.body, context),
|
|
1608
|
-
};
|
|
1609
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1610
|
-
switch (errorCode) {
|
|
1611
|
-
case "ValidationException":
|
|
1612
|
-
case "com.amazonaws.databrew#ValidationException":
|
|
1613
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1614
|
-
default:
|
|
1615
|
-
const parsedBody = parsedOutput.body;
|
|
1616
|
-
return throwDefaultError({
|
|
1617
|
-
output,
|
|
1618
|
-
parsedBody,
|
|
1619
|
-
errorCode,
|
|
1620
|
-
});
|
|
1621
|
-
}
|
|
1622
|
-
};
|
|
1623
1044
|
export const de_ListProjectsCommand = async (output, context) => {
|
|
1624
1045
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1625
|
-
return
|
|
1046
|
+
return de_CommandError(output, context);
|
|
1626
1047
|
}
|
|
1627
1048
|
const contents = map({
|
|
1628
1049
|
$metadata: deserializeMetadata(output),
|
|
@@ -1635,28 +1056,9 @@ export const de_ListProjectsCommand = async (output, context) => {
|
|
|
1635
1056
|
Object.assign(contents, doc);
|
|
1636
1057
|
return contents;
|
|
1637
1058
|
};
|
|
1638
|
-
const de_ListProjectsCommandError = async (output, context) => {
|
|
1639
|
-
const parsedOutput = {
|
|
1640
|
-
...output,
|
|
1641
|
-
body: await parseErrorBody(output.body, context),
|
|
1642
|
-
};
|
|
1643
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1644
|
-
switch (errorCode) {
|
|
1645
|
-
case "ValidationException":
|
|
1646
|
-
case "com.amazonaws.databrew#ValidationException":
|
|
1647
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1648
|
-
default:
|
|
1649
|
-
const parsedBody = parsedOutput.body;
|
|
1650
|
-
return throwDefaultError({
|
|
1651
|
-
output,
|
|
1652
|
-
parsedBody,
|
|
1653
|
-
errorCode,
|
|
1654
|
-
});
|
|
1655
|
-
}
|
|
1656
|
-
};
|
|
1657
1059
|
export const de_ListRecipesCommand = async (output, context) => {
|
|
1658
1060
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1659
|
-
return
|
|
1061
|
+
return de_CommandError(output, context);
|
|
1660
1062
|
}
|
|
1661
1063
|
const contents = map({
|
|
1662
1064
|
$metadata: deserializeMetadata(output),
|
|
@@ -1669,28 +1071,9 @@ export const de_ListRecipesCommand = async (output, context) => {
|
|
|
1669
1071
|
Object.assign(contents, doc);
|
|
1670
1072
|
return contents;
|
|
1671
1073
|
};
|
|
1672
|
-
const de_ListRecipesCommandError = async (output, context) => {
|
|
1673
|
-
const parsedOutput = {
|
|
1674
|
-
...output,
|
|
1675
|
-
body: await parseErrorBody(output.body, context),
|
|
1676
|
-
};
|
|
1677
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1678
|
-
switch (errorCode) {
|
|
1679
|
-
case "ValidationException":
|
|
1680
|
-
case "com.amazonaws.databrew#ValidationException":
|
|
1681
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1682
|
-
default:
|
|
1683
|
-
const parsedBody = parsedOutput.body;
|
|
1684
|
-
return throwDefaultError({
|
|
1685
|
-
output,
|
|
1686
|
-
parsedBody,
|
|
1687
|
-
errorCode,
|
|
1688
|
-
});
|
|
1689
|
-
}
|
|
1690
|
-
};
|
|
1691
1074
|
export const de_ListRecipeVersionsCommand = async (output, context) => {
|
|
1692
1075
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1693
|
-
return
|
|
1076
|
+
return de_CommandError(output, context);
|
|
1694
1077
|
}
|
|
1695
1078
|
const contents = map({
|
|
1696
1079
|
$metadata: deserializeMetadata(output),
|
|
@@ -1703,28 +1086,9 @@ export const de_ListRecipeVersionsCommand = async (output, context) => {
|
|
|
1703
1086
|
Object.assign(contents, doc);
|
|
1704
1087
|
return contents;
|
|
1705
1088
|
};
|
|
1706
|
-
const de_ListRecipeVersionsCommandError = async (output, context) => {
|
|
1707
|
-
const parsedOutput = {
|
|
1708
|
-
...output,
|
|
1709
|
-
body: await parseErrorBody(output.body, context),
|
|
1710
|
-
};
|
|
1711
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1712
|
-
switch (errorCode) {
|
|
1713
|
-
case "ValidationException":
|
|
1714
|
-
case "com.amazonaws.databrew#ValidationException":
|
|
1715
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1716
|
-
default:
|
|
1717
|
-
const parsedBody = parsedOutput.body;
|
|
1718
|
-
return throwDefaultError({
|
|
1719
|
-
output,
|
|
1720
|
-
parsedBody,
|
|
1721
|
-
errorCode,
|
|
1722
|
-
});
|
|
1723
|
-
}
|
|
1724
|
-
};
|
|
1725
1089
|
export const de_ListRulesetsCommand = async (output, context) => {
|
|
1726
1090
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1727
|
-
return
|
|
1091
|
+
return de_CommandError(output, context);
|
|
1728
1092
|
}
|
|
1729
1093
|
const contents = map({
|
|
1730
1094
|
$metadata: deserializeMetadata(output),
|
|
@@ -1737,31 +1101,9 @@ export const de_ListRulesetsCommand = async (output, context) => {
|
|
|
1737
1101
|
Object.assign(contents, doc);
|
|
1738
1102
|
return contents;
|
|
1739
1103
|
};
|
|
1740
|
-
const de_ListRulesetsCommandError = async (output, context) => {
|
|
1741
|
-
const parsedOutput = {
|
|
1742
|
-
...output,
|
|
1743
|
-
body: await parseErrorBody(output.body, context),
|
|
1744
|
-
};
|
|
1745
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1746
|
-
switch (errorCode) {
|
|
1747
|
-
case "ResourceNotFoundException":
|
|
1748
|
-
case "com.amazonaws.databrew#ResourceNotFoundException":
|
|
1749
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1750
|
-
case "ValidationException":
|
|
1751
|
-
case "com.amazonaws.databrew#ValidationException":
|
|
1752
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1753
|
-
default:
|
|
1754
|
-
const parsedBody = parsedOutput.body;
|
|
1755
|
-
return throwDefaultError({
|
|
1756
|
-
output,
|
|
1757
|
-
parsedBody,
|
|
1758
|
-
errorCode,
|
|
1759
|
-
});
|
|
1760
|
-
}
|
|
1761
|
-
};
|
|
1762
1104
|
export const de_ListSchedulesCommand = async (output, context) => {
|
|
1763
1105
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1764
|
-
return
|
|
1106
|
+
return de_CommandError(output, context);
|
|
1765
1107
|
}
|
|
1766
1108
|
const contents = map({
|
|
1767
1109
|
$metadata: deserializeMetadata(output),
|
|
@@ -1774,28 +1116,9 @@ export const de_ListSchedulesCommand = async (output, context) => {
|
|
|
1774
1116
|
Object.assign(contents, doc);
|
|
1775
1117
|
return contents;
|
|
1776
1118
|
};
|
|
1777
|
-
const de_ListSchedulesCommandError = async (output, context) => {
|
|
1778
|
-
const parsedOutput = {
|
|
1779
|
-
...output,
|
|
1780
|
-
body: await parseErrorBody(output.body, context),
|
|
1781
|
-
};
|
|
1782
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1783
|
-
switch (errorCode) {
|
|
1784
|
-
case "ValidationException":
|
|
1785
|
-
case "com.amazonaws.databrew#ValidationException":
|
|
1786
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1787
|
-
default:
|
|
1788
|
-
const parsedBody = parsedOutput.body;
|
|
1789
|
-
return throwDefaultError({
|
|
1790
|
-
output,
|
|
1791
|
-
parsedBody,
|
|
1792
|
-
errorCode,
|
|
1793
|
-
});
|
|
1794
|
-
}
|
|
1795
|
-
};
|
|
1796
1119
|
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1797
1120
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1798
|
-
return
|
|
1121
|
+
return de_CommandError(output, context);
|
|
1799
1122
|
}
|
|
1800
1123
|
const contents = map({
|
|
1801
1124
|
$metadata: deserializeMetadata(output),
|
|
@@ -1807,34 +1130,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
1807
1130
|
Object.assign(contents, doc);
|
|
1808
1131
|
return contents;
|
|
1809
1132
|
};
|
|
1810
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1811
|
-
const parsedOutput = {
|
|
1812
|
-
...output,
|
|
1813
|
-
body: await parseErrorBody(output.body, context),
|
|
1814
|
-
};
|
|
1815
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1816
|
-
switch (errorCode) {
|
|
1817
|
-
case "InternalServerException":
|
|
1818
|
-
case "com.amazonaws.databrew#InternalServerException":
|
|
1819
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1820
|
-
case "ResourceNotFoundException":
|
|
1821
|
-
case "com.amazonaws.databrew#ResourceNotFoundException":
|
|
1822
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1823
|
-
case "ValidationException":
|
|
1824
|
-
case "com.amazonaws.databrew#ValidationException":
|
|
1825
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1826
|
-
default:
|
|
1827
|
-
const parsedBody = parsedOutput.body;
|
|
1828
|
-
return throwDefaultError({
|
|
1829
|
-
output,
|
|
1830
|
-
parsedBody,
|
|
1831
|
-
errorCode,
|
|
1832
|
-
});
|
|
1833
|
-
}
|
|
1834
|
-
};
|
|
1835
1133
|
export const de_PublishRecipeCommand = async (output, context) => {
|
|
1836
1134
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1837
|
-
return
|
|
1135
|
+
return de_CommandError(output, context);
|
|
1838
1136
|
}
|
|
1839
1137
|
const contents = map({
|
|
1840
1138
|
$metadata: deserializeMetadata(output),
|
|
@@ -1846,34 +1144,9 @@ export const de_PublishRecipeCommand = async (output, context) => {
|
|
|
1846
1144
|
Object.assign(contents, doc);
|
|
1847
1145
|
return contents;
|
|
1848
1146
|
};
|
|
1849
|
-
const de_PublishRecipeCommandError = async (output, context) => {
|
|
1850
|
-
const parsedOutput = {
|
|
1851
|
-
...output,
|
|
1852
|
-
body: await parseErrorBody(output.body, context),
|
|
1853
|
-
};
|
|
1854
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1855
|
-
switch (errorCode) {
|
|
1856
|
-
case "ResourceNotFoundException":
|
|
1857
|
-
case "com.amazonaws.databrew#ResourceNotFoundException":
|
|
1858
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1859
|
-
case "ServiceQuotaExceededException":
|
|
1860
|
-
case "com.amazonaws.databrew#ServiceQuotaExceededException":
|
|
1861
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1862
|
-
case "ValidationException":
|
|
1863
|
-
case "com.amazonaws.databrew#ValidationException":
|
|
1864
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1865
|
-
default:
|
|
1866
|
-
const parsedBody = parsedOutput.body;
|
|
1867
|
-
return throwDefaultError({
|
|
1868
|
-
output,
|
|
1869
|
-
parsedBody,
|
|
1870
|
-
errorCode,
|
|
1871
|
-
});
|
|
1872
|
-
}
|
|
1873
|
-
};
|
|
1874
1147
|
export const de_SendProjectSessionActionCommand = async (output, context) => {
|
|
1875
1148
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1876
|
-
return
|
|
1149
|
+
return de_CommandError(output, context);
|
|
1877
1150
|
}
|
|
1878
1151
|
const contents = map({
|
|
1879
1152
|
$metadata: deserializeMetadata(output),
|
|
@@ -1887,76 +1160,23 @@ export const de_SendProjectSessionActionCommand = async (output, context) => {
|
|
|
1887
1160
|
Object.assign(contents, doc);
|
|
1888
1161
|
return contents;
|
|
1889
1162
|
};
|
|
1890
|
-
const de_SendProjectSessionActionCommandError = async (output, context) => {
|
|
1891
|
-
const parsedOutput = {
|
|
1892
|
-
...output,
|
|
1893
|
-
body: await parseErrorBody(output.body, context),
|
|
1894
|
-
};
|
|
1895
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1896
|
-
switch (errorCode) {
|
|
1897
|
-
case "ConflictException":
|
|
1898
|
-
case "com.amazonaws.databrew#ConflictException":
|
|
1899
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1900
|
-
case "ResourceNotFoundException":
|
|
1901
|
-
case "com.amazonaws.databrew#ResourceNotFoundException":
|
|
1902
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1903
|
-
case "ValidationException":
|
|
1904
|
-
case "com.amazonaws.databrew#ValidationException":
|
|
1905
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1906
|
-
default:
|
|
1907
|
-
const parsedBody = parsedOutput.body;
|
|
1908
|
-
return throwDefaultError({
|
|
1909
|
-
output,
|
|
1910
|
-
parsedBody,
|
|
1911
|
-
errorCode,
|
|
1912
|
-
});
|
|
1913
|
-
}
|
|
1914
|
-
};
|
|
1915
1163
|
export const de_StartJobRunCommand = async (output, context) => {
|
|
1916
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1917
|
-
return
|
|
1918
|
-
}
|
|
1919
|
-
const contents = map({
|
|
1920
|
-
$metadata: deserializeMetadata(output),
|
|
1921
|
-
});
|
|
1922
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1923
|
-
const doc = take(data, {
|
|
1924
|
-
RunId: __expectString,
|
|
1925
|
-
});
|
|
1926
|
-
Object.assign(contents, doc);
|
|
1927
|
-
return contents;
|
|
1928
|
-
};
|
|
1929
|
-
const de_StartJobRunCommandError = async (output, context) => {
|
|
1930
|
-
const parsedOutput = {
|
|
1931
|
-
...output,
|
|
1932
|
-
body: await parseErrorBody(output.body, context),
|
|
1933
|
-
};
|
|
1934
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1935
|
-
switch (errorCode) {
|
|
1936
|
-
case "ConflictException":
|
|
1937
|
-
case "com.amazonaws.databrew#ConflictException":
|
|
1938
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1939
|
-
case "ResourceNotFoundException":
|
|
1940
|
-
case "com.amazonaws.databrew#ResourceNotFoundException":
|
|
1941
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1942
|
-
case "ServiceQuotaExceededException":
|
|
1943
|
-
case "com.amazonaws.databrew#ServiceQuotaExceededException":
|
|
1944
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1945
|
-
case "ValidationException":
|
|
1946
|
-
case "com.amazonaws.databrew#ValidationException":
|
|
1947
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1948
|
-
default:
|
|
1949
|
-
const parsedBody = parsedOutput.body;
|
|
1950
|
-
return throwDefaultError({
|
|
1951
|
-
output,
|
|
1952
|
-
parsedBody,
|
|
1953
|
-
errorCode,
|
|
1954
|
-
});
|
|
1164
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1165
|
+
return de_CommandError(output, context);
|
|
1955
1166
|
}
|
|
1167
|
+
const contents = map({
|
|
1168
|
+
$metadata: deserializeMetadata(output),
|
|
1169
|
+
});
|
|
1170
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1171
|
+
const doc = take(data, {
|
|
1172
|
+
RunId: __expectString,
|
|
1173
|
+
});
|
|
1174
|
+
Object.assign(contents, doc);
|
|
1175
|
+
return contents;
|
|
1956
1176
|
};
|
|
1957
1177
|
export const de_StartProjectSessionCommand = async (output, context) => {
|
|
1958
1178
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1959
|
-
return
|
|
1179
|
+
return de_CommandError(output, context);
|
|
1960
1180
|
}
|
|
1961
1181
|
const contents = map({
|
|
1962
1182
|
$metadata: deserializeMetadata(output),
|
|
@@ -1969,37 +1189,9 @@ export const de_StartProjectSessionCommand = async (output, context) => {
|
|
|
1969
1189
|
Object.assign(contents, doc);
|
|
1970
1190
|
return contents;
|
|
1971
1191
|
};
|
|
1972
|
-
const de_StartProjectSessionCommandError = async (output, context) => {
|
|
1973
|
-
const parsedOutput = {
|
|
1974
|
-
...output,
|
|
1975
|
-
body: await parseErrorBody(output.body, context),
|
|
1976
|
-
};
|
|
1977
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1978
|
-
switch (errorCode) {
|
|
1979
|
-
case "ConflictException":
|
|
1980
|
-
case "com.amazonaws.databrew#ConflictException":
|
|
1981
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1982
|
-
case "ResourceNotFoundException":
|
|
1983
|
-
case "com.amazonaws.databrew#ResourceNotFoundException":
|
|
1984
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1985
|
-
case "ServiceQuotaExceededException":
|
|
1986
|
-
case "com.amazonaws.databrew#ServiceQuotaExceededException":
|
|
1987
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1988
|
-
case "ValidationException":
|
|
1989
|
-
case "com.amazonaws.databrew#ValidationException":
|
|
1990
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1991
|
-
default:
|
|
1992
|
-
const parsedBody = parsedOutput.body;
|
|
1993
|
-
return throwDefaultError({
|
|
1994
|
-
output,
|
|
1995
|
-
parsedBody,
|
|
1996
|
-
errorCode,
|
|
1997
|
-
});
|
|
1998
|
-
}
|
|
1999
|
-
};
|
|
2000
1192
|
export const de_StopJobRunCommand = async (output, context) => {
|
|
2001
1193
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2002
|
-
return
|
|
1194
|
+
return de_CommandError(output, context);
|
|
2003
1195
|
}
|
|
2004
1196
|
const contents = map({
|
|
2005
1197
|
$metadata: deserializeMetadata(output),
|
|
@@ -2011,31 +1203,9 @@ export const de_StopJobRunCommand = async (output, context) => {
|
|
|
2011
1203
|
Object.assign(contents, doc);
|
|
2012
1204
|
return contents;
|
|
2013
1205
|
};
|
|
2014
|
-
const de_StopJobRunCommandError = async (output, context) => {
|
|
2015
|
-
const parsedOutput = {
|
|
2016
|
-
...output,
|
|
2017
|
-
body: await parseErrorBody(output.body, context),
|
|
2018
|
-
};
|
|
2019
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2020
|
-
switch (errorCode) {
|
|
2021
|
-
case "ResourceNotFoundException":
|
|
2022
|
-
case "com.amazonaws.databrew#ResourceNotFoundException":
|
|
2023
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2024
|
-
case "ValidationException":
|
|
2025
|
-
case "com.amazonaws.databrew#ValidationException":
|
|
2026
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2027
|
-
default:
|
|
2028
|
-
const parsedBody = parsedOutput.body;
|
|
2029
|
-
return throwDefaultError({
|
|
2030
|
-
output,
|
|
2031
|
-
parsedBody,
|
|
2032
|
-
errorCode,
|
|
2033
|
-
});
|
|
2034
|
-
}
|
|
2035
|
-
};
|
|
2036
1206
|
export const de_TagResourceCommand = async (output, context) => {
|
|
2037
1207
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2038
|
-
return
|
|
1208
|
+
return de_CommandError(output, context);
|
|
2039
1209
|
}
|
|
2040
1210
|
const contents = map({
|
|
2041
1211
|
$metadata: deserializeMetadata(output),
|
|
@@ -2043,34 +1213,9 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
2043
1213
|
await collectBody(output.body, context);
|
|
2044
1214
|
return contents;
|
|
2045
1215
|
};
|
|
2046
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
2047
|
-
const parsedOutput = {
|
|
2048
|
-
...output,
|
|
2049
|
-
body: await parseErrorBody(output.body, context),
|
|
2050
|
-
};
|
|
2051
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2052
|
-
switch (errorCode) {
|
|
2053
|
-
case "InternalServerException":
|
|
2054
|
-
case "com.amazonaws.databrew#InternalServerException":
|
|
2055
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2056
|
-
case "ResourceNotFoundException":
|
|
2057
|
-
case "com.amazonaws.databrew#ResourceNotFoundException":
|
|
2058
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2059
|
-
case "ValidationException":
|
|
2060
|
-
case "com.amazonaws.databrew#ValidationException":
|
|
2061
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2062
|
-
default:
|
|
2063
|
-
const parsedBody = parsedOutput.body;
|
|
2064
|
-
return throwDefaultError({
|
|
2065
|
-
output,
|
|
2066
|
-
parsedBody,
|
|
2067
|
-
errorCode,
|
|
2068
|
-
});
|
|
2069
|
-
}
|
|
2070
|
-
};
|
|
2071
1216
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
2072
1217
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2073
|
-
return
|
|
1218
|
+
return de_CommandError(output, context);
|
|
2074
1219
|
}
|
|
2075
1220
|
const contents = map({
|
|
2076
1221
|
$metadata: deserializeMetadata(output),
|
|
@@ -2078,34 +1223,9 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
2078
1223
|
await collectBody(output.body, context);
|
|
2079
1224
|
return contents;
|
|
2080
1225
|
};
|
|
2081
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
2082
|
-
const parsedOutput = {
|
|
2083
|
-
...output,
|
|
2084
|
-
body: await parseErrorBody(output.body, context),
|
|
2085
|
-
};
|
|
2086
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2087
|
-
switch (errorCode) {
|
|
2088
|
-
case "InternalServerException":
|
|
2089
|
-
case "com.amazonaws.databrew#InternalServerException":
|
|
2090
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2091
|
-
case "ResourceNotFoundException":
|
|
2092
|
-
case "com.amazonaws.databrew#ResourceNotFoundException":
|
|
2093
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2094
|
-
case "ValidationException":
|
|
2095
|
-
case "com.amazonaws.databrew#ValidationException":
|
|
2096
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2097
|
-
default:
|
|
2098
|
-
const parsedBody = parsedOutput.body;
|
|
2099
|
-
return throwDefaultError({
|
|
2100
|
-
output,
|
|
2101
|
-
parsedBody,
|
|
2102
|
-
errorCode,
|
|
2103
|
-
});
|
|
2104
|
-
}
|
|
2105
|
-
};
|
|
2106
1226
|
export const de_UpdateDatasetCommand = async (output, context) => {
|
|
2107
1227
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2108
|
-
return
|
|
1228
|
+
return de_CommandError(output, context);
|
|
2109
1229
|
}
|
|
2110
1230
|
const contents = map({
|
|
2111
1231
|
$metadata: deserializeMetadata(output),
|
|
@@ -2117,34 +1237,9 @@ export const de_UpdateDatasetCommand = async (output, context) => {
|
|
|
2117
1237
|
Object.assign(contents, doc);
|
|
2118
1238
|
return contents;
|
|
2119
1239
|
};
|
|
2120
|
-
const de_UpdateDatasetCommandError = async (output, context) => {
|
|
2121
|
-
const parsedOutput = {
|
|
2122
|
-
...output,
|
|
2123
|
-
body: await parseErrorBody(output.body, context),
|
|
2124
|
-
};
|
|
2125
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2126
|
-
switch (errorCode) {
|
|
2127
|
-
case "AccessDeniedException":
|
|
2128
|
-
case "com.amazonaws.databrew#AccessDeniedException":
|
|
2129
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2130
|
-
case "ResourceNotFoundException":
|
|
2131
|
-
case "com.amazonaws.databrew#ResourceNotFoundException":
|
|
2132
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2133
|
-
case "ValidationException":
|
|
2134
|
-
case "com.amazonaws.databrew#ValidationException":
|
|
2135
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2136
|
-
default:
|
|
2137
|
-
const parsedBody = parsedOutput.body;
|
|
2138
|
-
return throwDefaultError({
|
|
2139
|
-
output,
|
|
2140
|
-
parsedBody,
|
|
2141
|
-
errorCode,
|
|
2142
|
-
});
|
|
2143
|
-
}
|
|
2144
|
-
};
|
|
2145
1240
|
export const de_UpdateProfileJobCommand = async (output, context) => {
|
|
2146
1241
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2147
|
-
return
|
|
1242
|
+
return de_CommandError(output, context);
|
|
2148
1243
|
}
|
|
2149
1244
|
const contents = map({
|
|
2150
1245
|
$metadata: deserializeMetadata(output),
|
|
@@ -2156,34 +1251,9 @@ export const de_UpdateProfileJobCommand = async (output, context) => {
|
|
|
2156
1251
|
Object.assign(contents, doc);
|
|
2157
1252
|
return contents;
|
|
2158
1253
|
};
|
|
2159
|
-
const de_UpdateProfileJobCommandError = async (output, context) => {
|
|
2160
|
-
const parsedOutput = {
|
|
2161
|
-
...output,
|
|
2162
|
-
body: await parseErrorBody(output.body, context),
|
|
2163
|
-
};
|
|
2164
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2165
|
-
switch (errorCode) {
|
|
2166
|
-
case "AccessDeniedException":
|
|
2167
|
-
case "com.amazonaws.databrew#AccessDeniedException":
|
|
2168
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2169
|
-
case "ResourceNotFoundException":
|
|
2170
|
-
case "com.amazonaws.databrew#ResourceNotFoundException":
|
|
2171
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2172
|
-
case "ValidationException":
|
|
2173
|
-
case "com.amazonaws.databrew#ValidationException":
|
|
2174
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2175
|
-
default:
|
|
2176
|
-
const parsedBody = parsedOutput.body;
|
|
2177
|
-
return throwDefaultError({
|
|
2178
|
-
output,
|
|
2179
|
-
parsedBody,
|
|
2180
|
-
errorCode,
|
|
2181
|
-
});
|
|
2182
|
-
}
|
|
2183
|
-
};
|
|
2184
1254
|
export const de_UpdateProjectCommand = async (output, context) => {
|
|
2185
1255
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2186
|
-
return
|
|
1256
|
+
return de_CommandError(output, context);
|
|
2187
1257
|
}
|
|
2188
1258
|
const contents = map({
|
|
2189
1259
|
$metadata: deserializeMetadata(output),
|
|
@@ -2196,31 +1266,9 @@ export const de_UpdateProjectCommand = async (output, context) => {
|
|
|
2196
1266
|
Object.assign(contents, doc);
|
|
2197
1267
|
return contents;
|
|
2198
1268
|
};
|
|
2199
|
-
const de_UpdateProjectCommandError = async (output, context) => {
|
|
2200
|
-
const parsedOutput = {
|
|
2201
|
-
...output,
|
|
2202
|
-
body: await parseErrorBody(output.body, context),
|
|
2203
|
-
};
|
|
2204
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2205
|
-
switch (errorCode) {
|
|
2206
|
-
case "ResourceNotFoundException":
|
|
2207
|
-
case "com.amazonaws.databrew#ResourceNotFoundException":
|
|
2208
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2209
|
-
case "ValidationException":
|
|
2210
|
-
case "com.amazonaws.databrew#ValidationException":
|
|
2211
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2212
|
-
default:
|
|
2213
|
-
const parsedBody = parsedOutput.body;
|
|
2214
|
-
return throwDefaultError({
|
|
2215
|
-
output,
|
|
2216
|
-
parsedBody,
|
|
2217
|
-
errorCode,
|
|
2218
|
-
});
|
|
2219
|
-
}
|
|
2220
|
-
};
|
|
2221
1269
|
export const de_UpdateRecipeCommand = async (output, context) => {
|
|
2222
1270
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2223
|
-
return
|
|
1271
|
+
return de_CommandError(output, context);
|
|
2224
1272
|
}
|
|
2225
1273
|
const contents = map({
|
|
2226
1274
|
$metadata: deserializeMetadata(output),
|
|
@@ -2232,31 +1280,9 @@ export const de_UpdateRecipeCommand = async (output, context) => {
|
|
|
2232
1280
|
Object.assign(contents, doc);
|
|
2233
1281
|
return contents;
|
|
2234
1282
|
};
|
|
2235
|
-
const de_UpdateRecipeCommandError = async (output, context) => {
|
|
2236
|
-
const parsedOutput = {
|
|
2237
|
-
...output,
|
|
2238
|
-
body: await parseErrorBody(output.body, context),
|
|
2239
|
-
};
|
|
2240
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2241
|
-
switch (errorCode) {
|
|
2242
|
-
case "ResourceNotFoundException":
|
|
2243
|
-
case "com.amazonaws.databrew#ResourceNotFoundException":
|
|
2244
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2245
|
-
case "ValidationException":
|
|
2246
|
-
case "com.amazonaws.databrew#ValidationException":
|
|
2247
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2248
|
-
default:
|
|
2249
|
-
const parsedBody = parsedOutput.body;
|
|
2250
|
-
return throwDefaultError({
|
|
2251
|
-
output,
|
|
2252
|
-
parsedBody,
|
|
2253
|
-
errorCode,
|
|
2254
|
-
});
|
|
2255
|
-
}
|
|
2256
|
-
};
|
|
2257
1283
|
export const de_UpdateRecipeJobCommand = async (output, context) => {
|
|
2258
1284
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2259
|
-
return
|
|
1285
|
+
return de_CommandError(output, context);
|
|
2260
1286
|
}
|
|
2261
1287
|
const contents = map({
|
|
2262
1288
|
$metadata: deserializeMetadata(output),
|
|
@@ -2268,34 +1294,9 @@ export const de_UpdateRecipeJobCommand = async (output, context) => {
|
|
|
2268
1294
|
Object.assign(contents, doc);
|
|
2269
1295
|
return contents;
|
|
2270
1296
|
};
|
|
2271
|
-
const de_UpdateRecipeJobCommandError = async (output, context) => {
|
|
2272
|
-
const parsedOutput = {
|
|
2273
|
-
...output,
|
|
2274
|
-
body: await parseErrorBody(output.body, context),
|
|
2275
|
-
};
|
|
2276
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2277
|
-
switch (errorCode) {
|
|
2278
|
-
case "AccessDeniedException":
|
|
2279
|
-
case "com.amazonaws.databrew#AccessDeniedException":
|
|
2280
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2281
|
-
case "ResourceNotFoundException":
|
|
2282
|
-
case "com.amazonaws.databrew#ResourceNotFoundException":
|
|
2283
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2284
|
-
case "ValidationException":
|
|
2285
|
-
case "com.amazonaws.databrew#ValidationException":
|
|
2286
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2287
|
-
default:
|
|
2288
|
-
const parsedBody = parsedOutput.body;
|
|
2289
|
-
return throwDefaultError({
|
|
2290
|
-
output,
|
|
2291
|
-
parsedBody,
|
|
2292
|
-
errorCode,
|
|
2293
|
-
});
|
|
2294
|
-
}
|
|
2295
|
-
};
|
|
2296
1297
|
export const de_UpdateRulesetCommand = async (output, context) => {
|
|
2297
1298
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2298
|
-
return
|
|
1299
|
+
return de_CommandError(output, context);
|
|
2299
1300
|
}
|
|
2300
1301
|
const contents = map({
|
|
2301
1302
|
$metadata: deserializeMetadata(output),
|
|
@@ -2307,31 +1308,9 @@ export const de_UpdateRulesetCommand = async (output, context) => {
|
|
|
2307
1308
|
Object.assign(contents, doc);
|
|
2308
1309
|
return contents;
|
|
2309
1310
|
};
|
|
2310
|
-
const de_UpdateRulesetCommandError = async (output, context) => {
|
|
2311
|
-
const parsedOutput = {
|
|
2312
|
-
...output,
|
|
2313
|
-
body: await parseErrorBody(output.body, context),
|
|
2314
|
-
};
|
|
2315
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2316
|
-
switch (errorCode) {
|
|
2317
|
-
case "ResourceNotFoundException":
|
|
2318
|
-
case "com.amazonaws.databrew#ResourceNotFoundException":
|
|
2319
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2320
|
-
case "ValidationException":
|
|
2321
|
-
case "com.amazonaws.databrew#ValidationException":
|
|
2322
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2323
|
-
default:
|
|
2324
|
-
const parsedBody = parsedOutput.body;
|
|
2325
|
-
return throwDefaultError({
|
|
2326
|
-
output,
|
|
2327
|
-
parsedBody,
|
|
2328
|
-
errorCode,
|
|
2329
|
-
});
|
|
2330
|
-
}
|
|
2331
|
-
};
|
|
2332
1311
|
export const de_UpdateScheduleCommand = async (output, context) => {
|
|
2333
1312
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2334
|
-
return
|
|
1313
|
+
return de_CommandError(output, context);
|
|
2335
1314
|
}
|
|
2336
1315
|
const contents = map({
|
|
2337
1316
|
$metadata: deserializeMetadata(output),
|
|
@@ -2343,22 +1322,31 @@ export const de_UpdateScheduleCommand = async (output, context) => {
|
|
|
2343
1322
|
Object.assign(contents, doc);
|
|
2344
1323
|
return contents;
|
|
2345
1324
|
};
|
|
2346
|
-
const
|
|
1325
|
+
const de_CommandError = async (output, context) => {
|
|
2347
1326
|
const parsedOutput = {
|
|
2348
1327
|
...output,
|
|
2349
1328
|
body: await parseErrorBody(output.body, context),
|
|
2350
1329
|
};
|
|
2351
1330
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2352
1331
|
switch (errorCode) {
|
|
1332
|
+
case "ConflictException":
|
|
1333
|
+
case "com.amazonaws.databrew#ConflictException":
|
|
1334
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2353
1335
|
case "ResourceNotFoundException":
|
|
2354
1336
|
case "com.amazonaws.databrew#ResourceNotFoundException":
|
|
2355
1337
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2356
|
-
case "ServiceQuotaExceededException":
|
|
2357
|
-
case "com.amazonaws.databrew#ServiceQuotaExceededException":
|
|
2358
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2359
1338
|
case "ValidationException":
|
|
2360
1339
|
case "com.amazonaws.databrew#ValidationException":
|
|
2361
1340
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1341
|
+
case "AccessDeniedException":
|
|
1342
|
+
case "com.amazonaws.databrew#AccessDeniedException":
|
|
1343
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1344
|
+
case "ServiceQuotaExceededException":
|
|
1345
|
+
case "com.amazonaws.databrew#ServiceQuotaExceededException":
|
|
1346
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1347
|
+
case "InternalServerException":
|
|
1348
|
+
case "com.amazonaws.databrew#InternalServerException":
|
|
1349
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2362
1350
|
default:
|
|
2363
1351
|
const parsedBody = parsedOutput.body;
|
|
2364
1352
|
return throwDefaultError({
|