@aws-sdk/client-cloudsearch 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 +41 -768
- package/dist-es/protocols/Aws_query.js +55 -782
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -687,7 +687,7 @@ var se_UpdateServiceAccessPoliciesCommand = /* @__PURE__ */ __name(async (input,
|
|
|
687
687
|
}, "se_UpdateServiceAccessPoliciesCommand");
|
|
688
688
|
var de_BuildSuggestersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
689
689
|
if (output.statusCode >= 300) {
|
|
690
|
-
return
|
|
690
|
+
return de_CommandError(output, context);
|
|
691
691
|
}
|
|
692
692
|
const data = await parseBody(output.body, context);
|
|
693
693
|
let contents = {};
|
|
@@ -698,37 +698,9 @@ var de_BuildSuggestersCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
698
698
|
};
|
|
699
699
|
return response;
|
|
700
700
|
}, "de_BuildSuggestersCommand");
|
|
701
|
-
var de_BuildSuggestersCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
702
|
-
const parsedOutput = {
|
|
703
|
-
...output,
|
|
704
|
-
body: await parseErrorBody(output.body, context)
|
|
705
|
-
};
|
|
706
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
707
|
-
switch (errorCode) {
|
|
708
|
-
case "BaseException":
|
|
709
|
-
case "com.amazonaws.cloudsearch#BaseException":
|
|
710
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
711
|
-
case "InternalException":
|
|
712
|
-
case "com.amazonaws.cloudsearch#InternalException":
|
|
713
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
714
|
-
case "ResourceNotFound":
|
|
715
|
-
case "com.amazonaws.cloudsearch#ResourceNotFoundException":
|
|
716
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
717
|
-
case "ValidationException":
|
|
718
|
-
case "com.amazonaws.cloudsearch#ValidationException":
|
|
719
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
720
|
-
default:
|
|
721
|
-
const parsedBody = parsedOutput.body;
|
|
722
|
-
return throwDefaultError({
|
|
723
|
-
output,
|
|
724
|
-
parsedBody: parsedBody.Error,
|
|
725
|
-
errorCode
|
|
726
|
-
});
|
|
727
|
-
}
|
|
728
|
-
}, "de_BuildSuggestersCommandError");
|
|
729
701
|
var de_CreateDomainCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
730
702
|
if (output.statusCode >= 300) {
|
|
731
|
-
return
|
|
703
|
+
return de_CommandError(output, context);
|
|
732
704
|
}
|
|
733
705
|
const data = await parseBody(output.body, context);
|
|
734
706
|
let contents = {};
|
|
@@ -739,40 +711,9 @@ var de_CreateDomainCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
739
711
|
};
|
|
740
712
|
return response;
|
|
741
713
|
}, "de_CreateDomainCommand");
|
|
742
|
-
var de_CreateDomainCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
743
|
-
const parsedOutput = {
|
|
744
|
-
...output,
|
|
745
|
-
body: await parseErrorBody(output.body, context)
|
|
746
|
-
};
|
|
747
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
748
|
-
switch (errorCode) {
|
|
749
|
-
case "BaseException":
|
|
750
|
-
case "com.amazonaws.cloudsearch#BaseException":
|
|
751
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
752
|
-
case "InternalException":
|
|
753
|
-
case "com.amazonaws.cloudsearch#InternalException":
|
|
754
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
755
|
-
case "LimitExceeded":
|
|
756
|
-
case "com.amazonaws.cloudsearch#LimitExceededException":
|
|
757
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
758
|
-
case "ResourceAlreadyExists":
|
|
759
|
-
case "com.amazonaws.cloudsearch#ResourceAlreadyExistsException":
|
|
760
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
761
|
-
case "ValidationException":
|
|
762
|
-
case "com.amazonaws.cloudsearch#ValidationException":
|
|
763
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
764
|
-
default:
|
|
765
|
-
const parsedBody = parsedOutput.body;
|
|
766
|
-
return throwDefaultError({
|
|
767
|
-
output,
|
|
768
|
-
parsedBody: parsedBody.Error,
|
|
769
|
-
errorCode
|
|
770
|
-
});
|
|
771
|
-
}
|
|
772
|
-
}, "de_CreateDomainCommandError");
|
|
773
714
|
var de_DefineAnalysisSchemeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
774
715
|
if (output.statusCode >= 300) {
|
|
775
|
-
return
|
|
716
|
+
return de_CommandError(output, context);
|
|
776
717
|
}
|
|
777
718
|
const data = await parseBody(output.body, context);
|
|
778
719
|
let contents = {};
|
|
@@ -783,43 +724,9 @@ var de_DefineAnalysisSchemeCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
783
724
|
};
|
|
784
725
|
return response;
|
|
785
726
|
}, "de_DefineAnalysisSchemeCommand");
|
|
786
|
-
var de_DefineAnalysisSchemeCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
787
|
-
const parsedOutput = {
|
|
788
|
-
...output,
|
|
789
|
-
body: await parseErrorBody(output.body, context)
|
|
790
|
-
};
|
|
791
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
792
|
-
switch (errorCode) {
|
|
793
|
-
case "BaseException":
|
|
794
|
-
case "com.amazonaws.cloudsearch#BaseException":
|
|
795
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
796
|
-
case "InternalException":
|
|
797
|
-
case "com.amazonaws.cloudsearch#InternalException":
|
|
798
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
799
|
-
case "InvalidType":
|
|
800
|
-
case "com.amazonaws.cloudsearch#InvalidTypeException":
|
|
801
|
-
throw await de_InvalidTypeExceptionRes(parsedOutput, context);
|
|
802
|
-
case "LimitExceeded":
|
|
803
|
-
case "com.amazonaws.cloudsearch#LimitExceededException":
|
|
804
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
805
|
-
case "ResourceNotFound":
|
|
806
|
-
case "com.amazonaws.cloudsearch#ResourceNotFoundException":
|
|
807
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
808
|
-
case "ValidationException":
|
|
809
|
-
case "com.amazonaws.cloudsearch#ValidationException":
|
|
810
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
811
|
-
default:
|
|
812
|
-
const parsedBody = parsedOutput.body;
|
|
813
|
-
return throwDefaultError({
|
|
814
|
-
output,
|
|
815
|
-
parsedBody: parsedBody.Error,
|
|
816
|
-
errorCode
|
|
817
|
-
});
|
|
818
|
-
}
|
|
819
|
-
}, "de_DefineAnalysisSchemeCommandError");
|
|
820
727
|
var de_DefineExpressionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
821
728
|
if (output.statusCode >= 300) {
|
|
822
|
-
return
|
|
729
|
+
return de_CommandError(output, context);
|
|
823
730
|
}
|
|
824
731
|
const data = await parseBody(output.body, context);
|
|
825
732
|
let contents = {};
|
|
@@ -830,43 +737,9 @@ var de_DefineExpressionCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
830
737
|
};
|
|
831
738
|
return response;
|
|
832
739
|
}, "de_DefineExpressionCommand");
|
|
833
|
-
var de_DefineExpressionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
834
|
-
const parsedOutput = {
|
|
835
|
-
...output,
|
|
836
|
-
body: await parseErrorBody(output.body, context)
|
|
837
|
-
};
|
|
838
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
839
|
-
switch (errorCode) {
|
|
840
|
-
case "BaseException":
|
|
841
|
-
case "com.amazonaws.cloudsearch#BaseException":
|
|
842
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
843
|
-
case "InternalException":
|
|
844
|
-
case "com.amazonaws.cloudsearch#InternalException":
|
|
845
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
846
|
-
case "InvalidType":
|
|
847
|
-
case "com.amazonaws.cloudsearch#InvalidTypeException":
|
|
848
|
-
throw await de_InvalidTypeExceptionRes(parsedOutput, context);
|
|
849
|
-
case "LimitExceeded":
|
|
850
|
-
case "com.amazonaws.cloudsearch#LimitExceededException":
|
|
851
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
852
|
-
case "ResourceNotFound":
|
|
853
|
-
case "com.amazonaws.cloudsearch#ResourceNotFoundException":
|
|
854
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
855
|
-
case "ValidationException":
|
|
856
|
-
case "com.amazonaws.cloudsearch#ValidationException":
|
|
857
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
858
|
-
default:
|
|
859
|
-
const parsedBody = parsedOutput.body;
|
|
860
|
-
return throwDefaultError({
|
|
861
|
-
output,
|
|
862
|
-
parsedBody: parsedBody.Error,
|
|
863
|
-
errorCode
|
|
864
|
-
});
|
|
865
|
-
}
|
|
866
|
-
}, "de_DefineExpressionCommandError");
|
|
867
740
|
var de_DefineIndexFieldCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
868
741
|
if (output.statusCode >= 300) {
|
|
869
|
-
return
|
|
742
|
+
return de_CommandError(output, context);
|
|
870
743
|
}
|
|
871
744
|
const data = await parseBody(output.body, context);
|
|
872
745
|
let contents = {};
|
|
@@ -877,43 +750,9 @@ var de_DefineIndexFieldCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
877
750
|
};
|
|
878
751
|
return response;
|
|
879
752
|
}, "de_DefineIndexFieldCommand");
|
|
880
|
-
var de_DefineIndexFieldCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
881
|
-
const parsedOutput = {
|
|
882
|
-
...output,
|
|
883
|
-
body: await parseErrorBody(output.body, context)
|
|
884
|
-
};
|
|
885
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
886
|
-
switch (errorCode) {
|
|
887
|
-
case "BaseException":
|
|
888
|
-
case "com.amazonaws.cloudsearch#BaseException":
|
|
889
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
890
|
-
case "InternalException":
|
|
891
|
-
case "com.amazonaws.cloudsearch#InternalException":
|
|
892
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
893
|
-
case "InvalidType":
|
|
894
|
-
case "com.amazonaws.cloudsearch#InvalidTypeException":
|
|
895
|
-
throw await de_InvalidTypeExceptionRes(parsedOutput, context);
|
|
896
|
-
case "LimitExceeded":
|
|
897
|
-
case "com.amazonaws.cloudsearch#LimitExceededException":
|
|
898
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
899
|
-
case "ResourceNotFound":
|
|
900
|
-
case "com.amazonaws.cloudsearch#ResourceNotFoundException":
|
|
901
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
902
|
-
case "ValidationException":
|
|
903
|
-
case "com.amazonaws.cloudsearch#ValidationException":
|
|
904
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
905
|
-
default:
|
|
906
|
-
const parsedBody = parsedOutput.body;
|
|
907
|
-
return throwDefaultError({
|
|
908
|
-
output,
|
|
909
|
-
parsedBody: parsedBody.Error,
|
|
910
|
-
errorCode
|
|
911
|
-
});
|
|
912
|
-
}
|
|
913
|
-
}, "de_DefineIndexFieldCommandError");
|
|
914
753
|
var de_DefineSuggesterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
915
754
|
if (output.statusCode >= 300) {
|
|
916
|
-
return
|
|
755
|
+
return de_CommandError(output, context);
|
|
917
756
|
}
|
|
918
757
|
const data = await parseBody(output.body, context);
|
|
919
758
|
let contents = {};
|
|
@@ -924,43 +763,9 @@ var de_DefineSuggesterCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
924
763
|
};
|
|
925
764
|
return response;
|
|
926
765
|
}, "de_DefineSuggesterCommand");
|
|
927
|
-
var de_DefineSuggesterCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
928
|
-
const parsedOutput = {
|
|
929
|
-
...output,
|
|
930
|
-
body: await parseErrorBody(output.body, context)
|
|
931
|
-
};
|
|
932
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
933
|
-
switch (errorCode) {
|
|
934
|
-
case "BaseException":
|
|
935
|
-
case "com.amazonaws.cloudsearch#BaseException":
|
|
936
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
937
|
-
case "InternalException":
|
|
938
|
-
case "com.amazonaws.cloudsearch#InternalException":
|
|
939
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
940
|
-
case "InvalidType":
|
|
941
|
-
case "com.amazonaws.cloudsearch#InvalidTypeException":
|
|
942
|
-
throw await de_InvalidTypeExceptionRes(parsedOutput, context);
|
|
943
|
-
case "LimitExceeded":
|
|
944
|
-
case "com.amazonaws.cloudsearch#LimitExceededException":
|
|
945
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
946
|
-
case "ResourceNotFound":
|
|
947
|
-
case "com.amazonaws.cloudsearch#ResourceNotFoundException":
|
|
948
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
949
|
-
case "ValidationException":
|
|
950
|
-
case "com.amazonaws.cloudsearch#ValidationException":
|
|
951
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
952
|
-
default:
|
|
953
|
-
const parsedBody = parsedOutput.body;
|
|
954
|
-
return throwDefaultError({
|
|
955
|
-
output,
|
|
956
|
-
parsedBody: parsedBody.Error,
|
|
957
|
-
errorCode
|
|
958
|
-
});
|
|
959
|
-
}
|
|
960
|
-
}, "de_DefineSuggesterCommandError");
|
|
961
766
|
var de_DeleteAnalysisSchemeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
962
767
|
if (output.statusCode >= 300) {
|
|
963
|
-
return
|
|
768
|
+
return de_CommandError(output, context);
|
|
964
769
|
}
|
|
965
770
|
const data = await parseBody(output.body, context);
|
|
966
771
|
let contents = {};
|
|
@@ -971,40 +776,9 @@ var de_DeleteAnalysisSchemeCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
971
776
|
};
|
|
972
777
|
return response;
|
|
973
778
|
}, "de_DeleteAnalysisSchemeCommand");
|
|
974
|
-
var de_DeleteAnalysisSchemeCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
975
|
-
const parsedOutput = {
|
|
976
|
-
...output,
|
|
977
|
-
body: await parseErrorBody(output.body, context)
|
|
978
|
-
};
|
|
979
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
980
|
-
switch (errorCode) {
|
|
981
|
-
case "BaseException":
|
|
982
|
-
case "com.amazonaws.cloudsearch#BaseException":
|
|
983
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
984
|
-
case "InternalException":
|
|
985
|
-
case "com.amazonaws.cloudsearch#InternalException":
|
|
986
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
987
|
-
case "InvalidType":
|
|
988
|
-
case "com.amazonaws.cloudsearch#InvalidTypeException":
|
|
989
|
-
throw await de_InvalidTypeExceptionRes(parsedOutput, context);
|
|
990
|
-
case "ResourceNotFound":
|
|
991
|
-
case "com.amazonaws.cloudsearch#ResourceNotFoundException":
|
|
992
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
993
|
-
case "ValidationException":
|
|
994
|
-
case "com.amazonaws.cloudsearch#ValidationException":
|
|
995
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
996
|
-
default:
|
|
997
|
-
const parsedBody = parsedOutput.body;
|
|
998
|
-
return throwDefaultError({
|
|
999
|
-
output,
|
|
1000
|
-
parsedBody: parsedBody.Error,
|
|
1001
|
-
errorCode
|
|
1002
|
-
});
|
|
1003
|
-
}
|
|
1004
|
-
}, "de_DeleteAnalysisSchemeCommandError");
|
|
1005
779
|
var de_DeleteDomainCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1006
780
|
if (output.statusCode >= 300) {
|
|
1007
|
-
return
|
|
781
|
+
return de_CommandError(output, context);
|
|
1008
782
|
}
|
|
1009
783
|
const data = await parseBody(output.body, context);
|
|
1010
784
|
let contents = {};
|
|
@@ -1015,31 +789,9 @@ var de_DeleteDomainCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1015
789
|
};
|
|
1016
790
|
return response;
|
|
1017
791
|
}, "de_DeleteDomainCommand");
|
|
1018
|
-
var de_DeleteDomainCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1019
|
-
const parsedOutput = {
|
|
1020
|
-
...output,
|
|
1021
|
-
body: await parseErrorBody(output.body, context)
|
|
1022
|
-
};
|
|
1023
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1024
|
-
switch (errorCode) {
|
|
1025
|
-
case "BaseException":
|
|
1026
|
-
case "com.amazonaws.cloudsearch#BaseException":
|
|
1027
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
1028
|
-
case "InternalException":
|
|
1029
|
-
case "com.amazonaws.cloudsearch#InternalException":
|
|
1030
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1031
|
-
default:
|
|
1032
|
-
const parsedBody = parsedOutput.body;
|
|
1033
|
-
return throwDefaultError({
|
|
1034
|
-
output,
|
|
1035
|
-
parsedBody: parsedBody.Error,
|
|
1036
|
-
errorCode
|
|
1037
|
-
});
|
|
1038
|
-
}
|
|
1039
|
-
}, "de_DeleteDomainCommandError");
|
|
1040
792
|
var de_DeleteExpressionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1041
793
|
if (output.statusCode >= 300) {
|
|
1042
|
-
return
|
|
794
|
+
return de_CommandError(output, context);
|
|
1043
795
|
}
|
|
1044
796
|
const data = await parseBody(output.body, context);
|
|
1045
797
|
let contents = {};
|
|
@@ -1050,40 +802,9 @@ var de_DeleteExpressionCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1050
802
|
};
|
|
1051
803
|
return response;
|
|
1052
804
|
}, "de_DeleteExpressionCommand");
|
|
1053
|
-
var de_DeleteExpressionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1054
|
-
const parsedOutput = {
|
|
1055
|
-
...output,
|
|
1056
|
-
body: await parseErrorBody(output.body, context)
|
|
1057
|
-
};
|
|
1058
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1059
|
-
switch (errorCode) {
|
|
1060
|
-
case "BaseException":
|
|
1061
|
-
case "com.amazonaws.cloudsearch#BaseException":
|
|
1062
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
1063
|
-
case "InternalException":
|
|
1064
|
-
case "com.amazonaws.cloudsearch#InternalException":
|
|
1065
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1066
|
-
case "InvalidType":
|
|
1067
|
-
case "com.amazonaws.cloudsearch#InvalidTypeException":
|
|
1068
|
-
throw await de_InvalidTypeExceptionRes(parsedOutput, context);
|
|
1069
|
-
case "ResourceNotFound":
|
|
1070
|
-
case "com.amazonaws.cloudsearch#ResourceNotFoundException":
|
|
1071
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1072
|
-
case "ValidationException":
|
|
1073
|
-
case "com.amazonaws.cloudsearch#ValidationException":
|
|
1074
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1075
|
-
default:
|
|
1076
|
-
const parsedBody = parsedOutput.body;
|
|
1077
|
-
return throwDefaultError({
|
|
1078
|
-
output,
|
|
1079
|
-
parsedBody: parsedBody.Error,
|
|
1080
|
-
errorCode
|
|
1081
|
-
});
|
|
1082
|
-
}
|
|
1083
|
-
}, "de_DeleteExpressionCommandError");
|
|
1084
805
|
var de_DeleteIndexFieldCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1085
806
|
if (output.statusCode >= 300) {
|
|
1086
|
-
return
|
|
807
|
+
return de_CommandError(output, context);
|
|
1087
808
|
}
|
|
1088
809
|
const data = await parseBody(output.body, context);
|
|
1089
810
|
let contents = {};
|
|
@@ -1094,40 +815,9 @@ var de_DeleteIndexFieldCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1094
815
|
};
|
|
1095
816
|
return response;
|
|
1096
817
|
}, "de_DeleteIndexFieldCommand");
|
|
1097
|
-
var de_DeleteIndexFieldCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1098
|
-
const parsedOutput = {
|
|
1099
|
-
...output,
|
|
1100
|
-
body: await parseErrorBody(output.body, context)
|
|
1101
|
-
};
|
|
1102
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1103
|
-
switch (errorCode) {
|
|
1104
|
-
case "BaseException":
|
|
1105
|
-
case "com.amazonaws.cloudsearch#BaseException":
|
|
1106
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
1107
|
-
case "InternalException":
|
|
1108
|
-
case "com.amazonaws.cloudsearch#InternalException":
|
|
1109
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1110
|
-
case "InvalidType":
|
|
1111
|
-
case "com.amazonaws.cloudsearch#InvalidTypeException":
|
|
1112
|
-
throw await de_InvalidTypeExceptionRes(parsedOutput, context);
|
|
1113
|
-
case "ResourceNotFound":
|
|
1114
|
-
case "com.amazonaws.cloudsearch#ResourceNotFoundException":
|
|
1115
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1116
|
-
case "ValidationException":
|
|
1117
|
-
case "com.amazonaws.cloudsearch#ValidationException":
|
|
1118
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1119
|
-
default:
|
|
1120
|
-
const parsedBody = parsedOutput.body;
|
|
1121
|
-
return throwDefaultError({
|
|
1122
|
-
output,
|
|
1123
|
-
parsedBody: parsedBody.Error,
|
|
1124
|
-
errorCode
|
|
1125
|
-
});
|
|
1126
|
-
}
|
|
1127
|
-
}, "de_DeleteIndexFieldCommandError");
|
|
1128
818
|
var de_DeleteSuggesterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1129
819
|
if (output.statusCode >= 300) {
|
|
1130
|
-
return
|
|
820
|
+
return de_CommandError(output, context);
|
|
1131
821
|
}
|
|
1132
822
|
const data = await parseBody(output.body, context);
|
|
1133
823
|
let contents = {};
|
|
@@ -1138,40 +828,9 @@ var de_DeleteSuggesterCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1138
828
|
};
|
|
1139
829
|
return response;
|
|
1140
830
|
}, "de_DeleteSuggesterCommand");
|
|
1141
|
-
var de_DeleteSuggesterCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1142
|
-
const parsedOutput = {
|
|
1143
|
-
...output,
|
|
1144
|
-
body: await parseErrorBody(output.body, context)
|
|
1145
|
-
};
|
|
1146
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1147
|
-
switch (errorCode) {
|
|
1148
|
-
case "BaseException":
|
|
1149
|
-
case "com.amazonaws.cloudsearch#BaseException":
|
|
1150
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
1151
|
-
case "InternalException":
|
|
1152
|
-
case "com.amazonaws.cloudsearch#InternalException":
|
|
1153
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1154
|
-
case "InvalidType":
|
|
1155
|
-
case "com.amazonaws.cloudsearch#InvalidTypeException":
|
|
1156
|
-
throw await de_InvalidTypeExceptionRes(parsedOutput, context);
|
|
1157
|
-
case "ResourceNotFound":
|
|
1158
|
-
case "com.amazonaws.cloudsearch#ResourceNotFoundException":
|
|
1159
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1160
|
-
case "ValidationException":
|
|
1161
|
-
case "com.amazonaws.cloudsearch#ValidationException":
|
|
1162
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1163
|
-
default:
|
|
1164
|
-
const parsedBody = parsedOutput.body;
|
|
1165
|
-
return throwDefaultError({
|
|
1166
|
-
output,
|
|
1167
|
-
parsedBody: parsedBody.Error,
|
|
1168
|
-
errorCode
|
|
1169
|
-
});
|
|
1170
|
-
}
|
|
1171
|
-
}, "de_DeleteSuggesterCommandError");
|
|
1172
831
|
var de_DescribeAnalysisSchemesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1173
832
|
if (output.statusCode >= 300) {
|
|
1174
|
-
return
|
|
833
|
+
return de_CommandError(output, context);
|
|
1175
834
|
}
|
|
1176
835
|
const data = await parseBody(output.body, context);
|
|
1177
836
|
let contents = {};
|
|
@@ -1182,34 +841,9 @@ var de_DescribeAnalysisSchemesCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1182
841
|
};
|
|
1183
842
|
return response;
|
|
1184
843
|
}, "de_DescribeAnalysisSchemesCommand");
|
|
1185
|
-
var de_DescribeAnalysisSchemesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1186
|
-
const parsedOutput = {
|
|
1187
|
-
...output,
|
|
1188
|
-
body: await parseErrorBody(output.body, context)
|
|
1189
|
-
};
|
|
1190
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1191
|
-
switch (errorCode) {
|
|
1192
|
-
case "BaseException":
|
|
1193
|
-
case "com.amazonaws.cloudsearch#BaseException":
|
|
1194
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
1195
|
-
case "InternalException":
|
|
1196
|
-
case "com.amazonaws.cloudsearch#InternalException":
|
|
1197
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1198
|
-
case "ResourceNotFound":
|
|
1199
|
-
case "com.amazonaws.cloudsearch#ResourceNotFoundException":
|
|
1200
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1201
|
-
default:
|
|
1202
|
-
const parsedBody = parsedOutput.body;
|
|
1203
|
-
return throwDefaultError({
|
|
1204
|
-
output,
|
|
1205
|
-
parsedBody: parsedBody.Error,
|
|
1206
|
-
errorCode
|
|
1207
|
-
});
|
|
1208
|
-
}
|
|
1209
|
-
}, "de_DescribeAnalysisSchemesCommandError");
|
|
1210
844
|
var de_DescribeAvailabilityOptionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1211
845
|
if (output.statusCode >= 300) {
|
|
1212
|
-
return
|
|
846
|
+
return de_CommandError(output, context);
|
|
1213
847
|
}
|
|
1214
848
|
const data = await parseBody(output.body, context);
|
|
1215
849
|
let contents = {};
|
|
@@ -1220,43 +854,9 @@ var de_DescribeAvailabilityOptionsCommand = /* @__PURE__ */ __name(async (output
|
|
|
1220
854
|
};
|
|
1221
855
|
return response;
|
|
1222
856
|
}, "de_DescribeAvailabilityOptionsCommand");
|
|
1223
|
-
var de_DescribeAvailabilityOptionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1224
|
-
const parsedOutput = {
|
|
1225
|
-
...output,
|
|
1226
|
-
body: await parseErrorBody(output.body, context)
|
|
1227
|
-
};
|
|
1228
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1229
|
-
switch (errorCode) {
|
|
1230
|
-
case "BaseException":
|
|
1231
|
-
case "com.amazonaws.cloudsearch#BaseException":
|
|
1232
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
1233
|
-
case "DisabledAction":
|
|
1234
|
-
case "com.amazonaws.cloudsearch#DisabledOperationException":
|
|
1235
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
1236
|
-
case "InternalException":
|
|
1237
|
-
case "com.amazonaws.cloudsearch#InternalException":
|
|
1238
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1239
|
-
case "InvalidType":
|
|
1240
|
-
case "com.amazonaws.cloudsearch#InvalidTypeException":
|
|
1241
|
-
throw await de_InvalidTypeExceptionRes(parsedOutput, context);
|
|
1242
|
-
case "LimitExceeded":
|
|
1243
|
-
case "com.amazonaws.cloudsearch#LimitExceededException":
|
|
1244
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1245
|
-
case "ResourceNotFound":
|
|
1246
|
-
case "com.amazonaws.cloudsearch#ResourceNotFoundException":
|
|
1247
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1248
|
-
default:
|
|
1249
|
-
const parsedBody = parsedOutput.body;
|
|
1250
|
-
return throwDefaultError({
|
|
1251
|
-
output,
|
|
1252
|
-
parsedBody: parsedBody.Error,
|
|
1253
|
-
errorCode
|
|
1254
|
-
});
|
|
1255
|
-
}
|
|
1256
|
-
}, "de_DescribeAvailabilityOptionsCommandError");
|
|
1257
857
|
var de_DescribeDomainEndpointOptionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1258
858
|
if (output.statusCode >= 300) {
|
|
1259
|
-
return
|
|
859
|
+
return de_CommandError(output, context);
|
|
1260
860
|
}
|
|
1261
861
|
const data = await parseBody(output.body, context);
|
|
1262
862
|
let contents = {};
|
|
@@ -1267,40 +867,9 @@ var de_DescribeDomainEndpointOptionsCommand = /* @__PURE__ */ __name(async (outp
|
|
|
1267
867
|
};
|
|
1268
868
|
return response;
|
|
1269
869
|
}, "de_DescribeDomainEndpointOptionsCommand");
|
|
1270
|
-
var de_DescribeDomainEndpointOptionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1271
|
-
const parsedOutput = {
|
|
1272
|
-
...output,
|
|
1273
|
-
body: await parseErrorBody(output.body, context)
|
|
1274
|
-
};
|
|
1275
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1276
|
-
switch (errorCode) {
|
|
1277
|
-
case "BaseException":
|
|
1278
|
-
case "com.amazonaws.cloudsearch#BaseException":
|
|
1279
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
1280
|
-
case "DisabledAction":
|
|
1281
|
-
case "com.amazonaws.cloudsearch#DisabledOperationException":
|
|
1282
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
1283
|
-
case "InternalException":
|
|
1284
|
-
case "com.amazonaws.cloudsearch#InternalException":
|
|
1285
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1286
|
-
case "LimitExceeded":
|
|
1287
|
-
case "com.amazonaws.cloudsearch#LimitExceededException":
|
|
1288
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1289
|
-
case "ResourceNotFound":
|
|
1290
|
-
case "com.amazonaws.cloudsearch#ResourceNotFoundException":
|
|
1291
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1292
|
-
default:
|
|
1293
|
-
const parsedBody = parsedOutput.body;
|
|
1294
|
-
return throwDefaultError({
|
|
1295
|
-
output,
|
|
1296
|
-
parsedBody: parsedBody.Error,
|
|
1297
|
-
errorCode
|
|
1298
|
-
});
|
|
1299
|
-
}
|
|
1300
|
-
}, "de_DescribeDomainEndpointOptionsCommandError");
|
|
1301
870
|
var de_DescribeDomainsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1302
871
|
if (output.statusCode >= 300) {
|
|
1303
|
-
return
|
|
872
|
+
return de_CommandError(output, context);
|
|
1304
873
|
}
|
|
1305
874
|
const data = await parseBody(output.body, context);
|
|
1306
875
|
let contents = {};
|
|
@@ -1311,31 +880,9 @@ var de_DescribeDomainsCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1311
880
|
};
|
|
1312
881
|
return response;
|
|
1313
882
|
}, "de_DescribeDomainsCommand");
|
|
1314
|
-
var de_DescribeDomainsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1315
|
-
const parsedOutput = {
|
|
1316
|
-
...output,
|
|
1317
|
-
body: await parseErrorBody(output.body, context)
|
|
1318
|
-
};
|
|
1319
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1320
|
-
switch (errorCode) {
|
|
1321
|
-
case "BaseException":
|
|
1322
|
-
case "com.amazonaws.cloudsearch#BaseException":
|
|
1323
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
1324
|
-
case "InternalException":
|
|
1325
|
-
case "com.amazonaws.cloudsearch#InternalException":
|
|
1326
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1327
|
-
default:
|
|
1328
|
-
const parsedBody = parsedOutput.body;
|
|
1329
|
-
return throwDefaultError({
|
|
1330
|
-
output,
|
|
1331
|
-
parsedBody: parsedBody.Error,
|
|
1332
|
-
errorCode
|
|
1333
|
-
});
|
|
1334
|
-
}
|
|
1335
|
-
}, "de_DescribeDomainsCommandError");
|
|
1336
883
|
var de_DescribeExpressionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1337
884
|
if (output.statusCode >= 300) {
|
|
1338
|
-
return
|
|
885
|
+
return de_CommandError(output, context);
|
|
1339
886
|
}
|
|
1340
887
|
const data = await parseBody(output.body, context);
|
|
1341
888
|
let contents = {};
|
|
@@ -1345,35 +892,10 @@ var de_DescribeExpressionsCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1345
892
|
...contents
|
|
1346
893
|
};
|
|
1347
894
|
return response;
|
|
1348
|
-
}, "de_DescribeExpressionsCommand");
|
|
1349
|
-
var de_DescribeExpressionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1350
|
-
const parsedOutput = {
|
|
1351
|
-
...output,
|
|
1352
|
-
body: await parseErrorBody(output.body, context)
|
|
1353
|
-
};
|
|
1354
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1355
|
-
switch (errorCode) {
|
|
1356
|
-
case "BaseException":
|
|
1357
|
-
case "com.amazonaws.cloudsearch#BaseException":
|
|
1358
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
1359
|
-
case "InternalException":
|
|
1360
|
-
case "com.amazonaws.cloudsearch#InternalException":
|
|
1361
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1362
|
-
case "ResourceNotFound":
|
|
1363
|
-
case "com.amazonaws.cloudsearch#ResourceNotFoundException":
|
|
1364
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1365
|
-
default:
|
|
1366
|
-
const parsedBody = parsedOutput.body;
|
|
1367
|
-
return throwDefaultError({
|
|
1368
|
-
output,
|
|
1369
|
-
parsedBody: parsedBody.Error,
|
|
1370
|
-
errorCode
|
|
1371
|
-
});
|
|
1372
|
-
}
|
|
1373
|
-
}, "de_DescribeExpressionsCommandError");
|
|
895
|
+
}, "de_DescribeExpressionsCommand");
|
|
1374
896
|
var de_DescribeIndexFieldsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1375
897
|
if (output.statusCode >= 300) {
|
|
1376
|
-
return
|
|
898
|
+
return de_CommandError(output, context);
|
|
1377
899
|
}
|
|
1378
900
|
const data = await parseBody(output.body, context);
|
|
1379
901
|
let contents = {};
|
|
@@ -1384,34 +906,9 @@ var de_DescribeIndexFieldsCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1384
906
|
};
|
|
1385
907
|
return response;
|
|
1386
908
|
}, "de_DescribeIndexFieldsCommand");
|
|
1387
|
-
var de_DescribeIndexFieldsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1388
|
-
const parsedOutput = {
|
|
1389
|
-
...output,
|
|
1390
|
-
body: await parseErrorBody(output.body, context)
|
|
1391
|
-
};
|
|
1392
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1393
|
-
switch (errorCode) {
|
|
1394
|
-
case "BaseException":
|
|
1395
|
-
case "com.amazonaws.cloudsearch#BaseException":
|
|
1396
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
1397
|
-
case "InternalException":
|
|
1398
|
-
case "com.amazonaws.cloudsearch#InternalException":
|
|
1399
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1400
|
-
case "ResourceNotFound":
|
|
1401
|
-
case "com.amazonaws.cloudsearch#ResourceNotFoundException":
|
|
1402
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1403
|
-
default:
|
|
1404
|
-
const parsedBody = parsedOutput.body;
|
|
1405
|
-
return throwDefaultError({
|
|
1406
|
-
output,
|
|
1407
|
-
parsedBody: parsedBody.Error,
|
|
1408
|
-
errorCode
|
|
1409
|
-
});
|
|
1410
|
-
}
|
|
1411
|
-
}, "de_DescribeIndexFieldsCommandError");
|
|
1412
909
|
var de_DescribeScalingParametersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1413
910
|
if (output.statusCode >= 300) {
|
|
1414
|
-
return
|
|
911
|
+
return de_CommandError(output, context);
|
|
1415
912
|
}
|
|
1416
913
|
const data = await parseBody(output.body, context);
|
|
1417
914
|
let contents = {};
|
|
@@ -1422,34 +919,9 @@ var de_DescribeScalingParametersCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1422
919
|
};
|
|
1423
920
|
return response;
|
|
1424
921
|
}, "de_DescribeScalingParametersCommand");
|
|
1425
|
-
var de_DescribeScalingParametersCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1426
|
-
const parsedOutput = {
|
|
1427
|
-
...output,
|
|
1428
|
-
body: await parseErrorBody(output.body, context)
|
|
1429
|
-
};
|
|
1430
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1431
|
-
switch (errorCode) {
|
|
1432
|
-
case "BaseException":
|
|
1433
|
-
case "com.amazonaws.cloudsearch#BaseException":
|
|
1434
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
1435
|
-
case "InternalException":
|
|
1436
|
-
case "com.amazonaws.cloudsearch#InternalException":
|
|
1437
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1438
|
-
case "ResourceNotFound":
|
|
1439
|
-
case "com.amazonaws.cloudsearch#ResourceNotFoundException":
|
|
1440
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1441
|
-
default:
|
|
1442
|
-
const parsedBody = parsedOutput.body;
|
|
1443
|
-
return throwDefaultError({
|
|
1444
|
-
output,
|
|
1445
|
-
parsedBody: parsedBody.Error,
|
|
1446
|
-
errorCode
|
|
1447
|
-
});
|
|
1448
|
-
}
|
|
1449
|
-
}, "de_DescribeScalingParametersCommandError");
|
|
1450
922
|
var de_DescribeServiceAccessPoliciesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1451
923
|
if (output.statusCode >= 300) {
|
|
1452
|
-
return
|
|
924
|
+
return de_CommandError(output, context);
|
|
1453
925
|
}
|
|
1454
926
|
const data = await parseBody(output.body, context);
|
|
1455
927
|
let contents = {};
|
|
@@ -1460,34 +932,9 @@ var de_DescribeServiceAccessPoliciesCommand = /* @__PURE__ */ __name(async (outp
|
|
|
1460
932
|
};
|
|
1461
933
|
return response;
|
|
1462
934
|
}, "de_DescribeServiceAccessPoliciesCommand");
|
|
1463
|
-
var de_DescribeServiceAccessPoliciesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1464
|
-
const parsedOutput = {
|
|
1465
|
-
...output,
|
|
1466
|
-
body: await parseErrorBody(output.body, context)
|
|
1467
|
-
};
|
|
1468
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1469
|
-
switch (errorCode) {
|
|
1470
|
-
case "BaseException":
|
|
1471
|
-
case "com.amazonaws.cloudsearch#BaseException":
|
|
1472
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
1473
|
-
case "InternalException":
|
|
1474
|
-
case "com.amazonaws.cloudsearch#InternalException":
|
|
1475
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1476
|
-
case "ResourceNotFound":
|
|
1477
|
-
case "com.amazonaws.cloudsearch#ResourceNotFoundException":
|
|
1478
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1479
|
-
default:
|
|
1480
|
-
const parsedBody = parsedOutput.body;
|
|
1481
|
-
return throwDefaultError({
|
|
1482
|
-
output,
|
|
1483
|
-
parsedBody: parsedBody.Error,
|
|
1484
|
-
errorCode
|
|
1485
|
-
});
|
|
1486
|
-
}
|
|
1487
|
-
}, "de_DescribeServiceAccessPoliciesCommandError");
|
|
1488
935
|
var de_DescribeSuggestersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1489
936
|
if (output.statusCode >= 300) {
|
|
1490
|
-
return
|
|
937
|
+
return de_CommandError(output, context);
|
|
1491
938
|
}
|
|
1492
939
|
const data = await parseBody(output.body, context);
|
|
1493
940
|
let contents = {};
|
|
@@ -1498,34 +945,9 @@ var de_DescribeSuggestersCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1498
945
|
};
|
|
1499
946
|
return response;
|
|
1500
947
|
}, "de_DescribeSuggestersCommand");
|
|
1501
|
-
var de_DescribeSuggestersCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1502
|
-
const parsedOutput = {
|
|
1503
|
-
...output,
|
|
1504
|
-
body: await parseErrorBody(output.body, context)
|
|
1505
|
-
};
|
|
1506
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1507
|
-
switch (errorCode) {
|
|
1508
|
-
case "BaseException":
|
|
1509
|
-
case "com.amazonaws.cloudsearch#BaseException":
|
|
1510
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
1511
|
-
case "InternalException":
|
|
1512
|
-
case "com.amazonaws.cloudsearch#InternalException":
|
|
1513
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1514
|
-
case "ResourceNotFound":
|
|
1515
|
-
case "com.amazonaws.cloudsearch#ResourceNotFoundException":
|
|
1516
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1517
|
-
default:
|
|
1518
|
-
const parsedBody = parsedOutput.body;
|
|
1519
|
-
return throwDefaultError({
|
|
1520
|
-
output,
|
|
1521
|
-
parsedBody: parsedBody.Error,
|
|
1522
|
-
errorCode
|
|
1523
|
-
});
|
|
1524
|
-
}
|
|
1525
|
-
}, "de_DescribeSuggestersCommandError");
|
|
1526
948
|
var de_IndexDocumentsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1527
949
|
if (output.statusCode >= 300) {
|
|
1528
|
-
return
|
|
950
|
+
return de_CommandError(output, context);
|
|
1529
951
|
}
|
|
1530
952
|
const data = await parseBody(output.body, context);
|
|
1531
953
|
let contents = {};
|
|
@@ -1536,37 +958,9 @@ var de_IndexDocumentsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1536
958
|
};
|
|
1537
959
|
return response;
|
|
1538
960
|
}, "de_IndexDocumentsCommand");
|
|
1539
|
-
var de_IndexDocumentsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1540
|
-
const parsedOutput = {
|
|
1541
|
-
...output,
|
|
1542
|
-
body: await parseErrorBody(output.body, context)
|
|
1543
|
-
};
|
|
1544
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1545
|
-
switch (errorCode) {
|
|
1546
|
-
case "BaseException":
|
|
1547
|
-
case "com.amazonaws.cloudsearch#BaseException":
|
|
1548
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
1549
|
-
case "InternalException":
|
|
1550
|
-
case "com.amazonaws.cloudsearch#InternalException":
|
|
1551
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1552
|
-
case "ResourceNotFound":
|
|
1553
|
-
case "com.amazonaws.cloudsearch#ResourceNotFoundException":
|
|
1554
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1555
|
-
case "ValidationException":
|
|
1556
|
-
case "com.amazonaws.cloudsearch#ValidationException":
|
|
1557
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1558
|
-
default:
|
|
1559
|
-
const parsedBody = parsedOutput.body;
|
|
1560
|
-
return throwDefaultError({
|
|
1561
|
-
output,
|
|
1562
|
-
parsedBody: parsedBody.Error,
|
|
1563
|
-
errorCode
|
|
1564
|
-
});
|
|
1565
|
-
}
|
|
1566
|
-
}, "de_IndexDocumentsCommandError");
|
|
1567
961
|
var de_ListDomainNamesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1568
962
|
if (output.statusCode >= 300) {
|
|
1569
|
-
return
|
|
963
|
+
return de_CommandError(output, context);
|
|
1570
964
|
}
|
|
1571
965
|
const data = await parseBody(output.body, context);
|
|
1572
966
|
let contents = {};
|
|
@@ -1577,28 +971,9 @@ var de_ListDomainNamesCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1577
971
|
};
|
|
1578
972
|
return response;
|
|
1579
973
|
}, "de_ListDomainNamesCommand");
|
|
1580
|
-
var de_ListDomainNamesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1581
|
-
const parsedOutput = {
|
|
1582
|
-
...output,
|
|
1583
|
-
body: await parseErrorBody(output.body, context)
|
|
1584
|
-
};
|
|
1585
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1586
|
-
switch (errorCode) {
|
|
1587
|
-
case "BaseException":
|
|
1588
|
-
case "com.amazonaws.cloudsearch#BaseException":
|
|
1589
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
1590
|
-
default:
|
|
1591
|
-
const parsedBody = parsedOutput.body;
|
|
1592
|
-
return throwDefaultError({
|
|
1593
|
-
output,
|
|
1594
|
-
parsedBody: parsedBody.Error,
|
|
1595
|
-
errorCode
|
|
1596
|
-
});
|
|
1597
|
-
}
|
|
1598
|
-
}, "de_ListDomainNamesCommandError");
|
|
1599
974
|
var de_UpdateAvailabilityOptionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1600
975
|
if (output.statusCode >= 300) {
|
|
1601
|
-
return
|
|
976
|
+
return de_CommandError(output, context);
|
|
1602
977
|
}
|
|
1603
978
|
const data = await parseBody(output.body, context);
|
|
1604
979
|
let contents = {};
|
|
@@ -1609,46 +984,9 @@ var de_UpdateAvailabilityOptionsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1609
984
|
};
|
|
1610
985
|
return response;
|
|
1611
986
|
}, "de_UpdateAvailabilityOptionsCommand");
|
|
1612
|
-
var de_UpdateAvailabilityOptionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1613
|
-
const parsedOutput = {
|
|
1614
|
-
...output,
|
|
1615
|
-
body: await parseErrorBody(output.body, context)
|
|
1616
|
-
};
|
|
1617
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1618
|
-
switch (errorCode) {
|
|
1619
|
-
case "BaseException":
|
|
1620
|
-
case "com.amazonaws.cloudsearch#BaseException":
|
|
1621
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
1622
|
-
case "DisabledAction":
|
|
1623
|
-
case "com.amazonaws.cloudsearch#DisabledOperationException":
|
|
1624
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
1625
|
-
case "InternalException":
|
|
1626
|
-
case "com.amazonaws.cloudsearch#InternalException":
|
|
1627
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1628
|
-
case "InvalidType":
|
|
1629
|
-
case "com.amazonaws.cloudsearch#InvalidTypeException":
|
|
1630
|
-
throw await de_InvalidTypeExceptionRes(parsedOutput, context);
|
|
1631
|
-
case "LimitExceeded":
|
|
1632
|
-
case "com.amazonaws.cloudsearch#LimitExceededException":
|
|
1633
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1634
|
-
case "ResourceNotFound":
|
|
1635
|
-
case "com.amazonaws.cloudsearch#ResourceNotFoundException":
|
|
1636
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1637
|
-
case "ValidationException":
|
|
1638
|
-
case "com.amazonaws.cloudsearch#ValidationException":
|
|
1639
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1640
|
-
default:
|
|
1641
|
-
const parsedBody = parsedOutput.body;
|
|
1642
|
-
return throwDefaultError({
|
|
1643
|
-
output,
|
|
1644
|
-
parsedBody: parsedBody.Error,
|
|
1645
|
-
errorCode
|
|
1646
|
-
});
|
|
1647
|
-
}
|
|
1648
|
-
}, "de_UpdateAvailabilityOptionsCommandError");
|
|
1649
987
|
var de_UpdateDomainEndpointOptionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1650
988
|
if (output.statusCode >= 300) {
|
|
1651
|
-
return
|
|
989
|
+
return de_CommandError(output, context);
|
|
1652
990
|
}
|
|
1653
991
|
const data = await parseBody(output.body, context);
|
|
1654
992
|
let contents = {};
|
|
@@ -1659,46 +997,9 @@ var de_UpdateDomainEndpointOptionsCommand = /* @__PURE__ */ __name(async (output
|
|
|
1659
997
|
};
|
|
1660
998
|
return response;
|
|
1661
999
|
}, "de_UpdateDomainEndpointOptionsCommand");
|
|
1662
|
-
var de_UpdateDomainEndpointOptionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1663
|
-
const parsedOutput = {
|
|
1664
|
-
...output,
|
|
1665
|
-
body: await parseErrorBody(output.body, context)
|
|
1666
|
-
};
|
|
1667
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1668
|
-
switch (errorCode) {
|
|
1669
|
-
case "BaseException":
|
|
1670
|
-
case "com.amazonaws.cloudsearch#BaseException":
|
|
1671
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
1672
|
-
case "DisabledAction":
|
|
1673
|
-
case "com.amazonaws.cloudsearch#DisabledOperationException":
|
|
1674
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
1675
|
-
case "InternalException":
|
|
1676
|
-
case "com.amazonaws.cloudsearch#InternalException":
|
|
1677
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1678
|
-
case "InvalidType":
|
|
1679
|
-
case "com.amazonaws.cloudsearch#InvalidTypeException":
|
|
1680
|
-
throw await de_InvalidTypeExceptionRes(parsedOutput, context);
|
|
1681
|
-
case "LimitExceeded":
|
|
1682
|
-
case "com.amazonaws.cloudsearch#LimitExceededException":
|
|
1683
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1684
|
-
case "ResourceNotFound":
|
|
1685
|
-
case "com.amazonaws.cloudsearch#ResourceNotFoundException":
|
|
1686
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1687
|
-
case "ValidationException":
|
|
1688
|
-
case "com.amazonaws.cloudsearch#ValidationException":
|
|
1689
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1690
|
-
default:
|
|
1691
|
-
const parsedBody = parsedOutput.body;
|
|
1692
|
-
return throwDefaultError({
|
|
1693
|
-
output,
|
|
1694
|
-
parsedBody: parsedBody.Error,
|
|
1695
|
-
errorCode
|
|
1696
|
-
});
|
|
1697
|
-
}
|
|
1698
|
-
}, "de_UpdateDomainEndpointOptionsCommandError");
|
|
1699
1000
|
var de_UpdateScalingParametersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1700
1001
|
if (output.statusCode >= 300) {
|
|
1701
|
-
return
|
|
1002
|
+
return de_CommandError(output, context);
|
|
1702
1003
|
}
|
|
1703
1004
|
const data = await parseBody(output.body, context);
|
|
1704
1005
|
let contents = {};
|
|
@@ -1709,43 +1010,9 @@ var de_UpdateScalingParametersCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1709
1010
|
};
|
|
1710
1011
|
return response;
|
|
1711
1012
|
}, "de_UpdateScalingParametersCommand");
|
|
1712
|
-
var de_UpdateScalingParametersCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1713
|
-
const parsedOutput = {
|
|
1714
|
-
...output,
|
|
1715
|
-
body: await parseErrorBody(output.body, context)
|
|
1716
|
-
};
|
|
1717
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1718
|
-
switch (errorCode) {
|
|
1719
|
-
case "BaseException":
|
|
1720
|
-
case "com.amazonaws.cloudsearch#BaseException":
|
|
1721
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
1722
|
-
case "InternalException":
|
|
1723
|
-
case "com.amazonaws.cloudsearch#InternalException":
|
|
1724
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1725
|
-
case "InvalidType":
|
|
1726
|
-
case "com.amazonaws.cloudsearch#InvalidTypeException":
|
|
1727
|
-
throw await de_InvalidTypeExceptionRes(parsedOutput, context);
|
|
1728
|
-
case "LimitExceeded":
|
|
1729
|
-
case "com.amazonaws.cloudsearch#LimitExceededException":
|
|
1730
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1731
|
-
case "ResourceNotFound":
|
|
1732
|
-
case "com.amazonaws.cloudsearch#ResourceNotFoundException":
|
|
1733
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1734
|
-
case "ValidationException":
|
|
1735
|
-
case "com.amazonaws.cloudsearch#ValidationException":
|
|
1736
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1737
|
-
default:
|
|
1738
|
-
const parsedBody = parsedOutput.body;
|
|
1739
|
-
return throwDefaultError({
|
|
1740
|
-
output,
|
|
1741
|
-
parsedBody: parsedBody.Error,
|
|
1742
|
-
errorCode
|
|
1743
|
-
});
|
|
1744
|
-
}
|
|
1745
|
-
}, "de_UpdateScalingParametersCommandError");
|
|
1746
1013
|
var de_UpdateServiceAccessPoliciesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1747
1014
|
if (output.statusCode >= 300) {
|
|
1748
|
-
return
|
|
1015
|
+
return de_CommandError(output, context);
|
|
1749
1016
|
}
|
|
1750
1017
|
const data = await parseBody(output.body, context);
|
|
1751
1018
|
let contents = {};
|
|
@@ -1756,7 +1023,7 @@ var de_UpdateServiceAccessPoliciesCommand = /* @__PURE__ */ __name(async (output
|
|
|
1756
1023
|
};
|
|
1757
1024
|
return response;
|
|
1758
1025
|
}, "de_UpdateServiceAccessPoliciesCommand");
|
|
1759
|
-
var
|
|
1026
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1760
1027
|
const parsedOutput = {
|
|
1761
1028
|
...output,
|
|
1762
1029
|
body: await parseErrorBody(output.body, context)
|
|
@@ -1769,18 +1036,24 @@ var de_UpdateServiceAccessPoliciesCommandError = /* @__PURE__ */ __name(async (o
|
|
|
1769
1036
|
case "InternalException":
|
|
1770
1037
|
case "com.amazonaws.cloudsearch#InternalException":
|
|
1771
1038
|
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1772
|
-
case "InvalidType":
|
|
1773
|
-
case "com.amazonaws.cloudsearch#InvalidTypeException":
|
|
1774
|
-
throw await de_InvalidTypeExceptionRes(parsedOutput, context);
|
|
1775
|
-
case "LimitExceeded":
|
|
1776
|
-
case "com.amazonaws.cloudsearch#LimitExceededException":
|
|
1777
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1778
1039
|
case "ResourceNotFound":
|
|
1779
1040
|
case "com.amazonaws.cloudsearch#ResourceNotFoundException":
|
|
1780
1041
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1781
1042
|
case "ValidationException":
|
|
1782
1043
|
case "com.amazonaws.cloudsearch#ValidationException":
|
|
1783
1044
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1045
|
+
case "LimitExceeded":
|
|
1046
|
+
case "com.amazonaws.cloudsearch#LimitExceededException":
|
|
1047
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1048
|
+
case "ResourceAlreadyExists":
|
|
1049
|
+
case "com.amazonaws.cloudsearch#ResourceAlreadyExistsException":
|
|
1050
|
+
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1051
|
+
case "InvalidType":
|
|
1052
|
+
case "com.amazonaws.cloudsearch#InvalidTypeException":
|
|
1053
|
+
throw await de_InvalidTypeExceptionRes(parsedOutput, context);
|
|
1054
|
+
case "DisabledAction":
|
|
1055
|
+
case "com.amazonaws.cloudsearch#DisabledOperationException":
|
|
1056
|
+
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
1784
1057
|
default:
|
|
1785
1058
|
const parsedBody = parsedOutput.body;
|
|
1786
1059
|
return throwDefaultError({
|
|
@@ -1789,7 +1062,7 @@ var de_UpdateServiceAccessPoliciesCommandError = /* @__PURE__ */ __name(async (o
|
|
|
1789
1062
|
errorCode
|
|
1790
1063
|
});
|
|
1791
1064
|
}
|
|
1792
|
-
}, "
|
|
1065
|
+
}, "de_CommandError");
|
|
1793
1066
|
var de_BaseExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1794
1067
|
const body = parsedOutput.body;
|
|
1795
1068
|
const deserialized = de_BaseException(body.Error, context);
|