@aws-sdk/client-servicediscovery 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 +72 -710
- package/dist-es/protocols/Aws_json1_1.js +62 -700
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -725,7 +725,7 @@ var se_UpdateServiceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
725
725
|
}, "se_UpdateServiceCommand");
|
|
726
726
|
var de_CreateHttpNamespaceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
727
727
|
if (output.statusCode >= 300) {
|
|
728
|
-
return
|
|
728
|
+
return de_CommandError(output, context);
|
|
729
729
|
}
|
|
730
730
|
const data = await parseBody(output.body, context);
|
|
731
731
|
let contents = {};
|
|
@@ -736,40 +736,9 @@ var de_CreateHttpNamespaceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
736
736
|
};
|
|
737
737
|
return response;
|
|
738
738
|
}, "de_CreateHttpNamespaceCommand");
|
|
739
|
-
var de_CreateHttpNamespaceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
740
|
-
const parsedOutput = {
|
|
741
|
-
...output,
|
|
742
|
-
body: await parseErrorBody(output.body, context)
|
|
743
|
-
};
|
|
744
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
745
|
-
switch (errorCode) {
|
|
746
|
-
case "DuplicateRequest":
|
|
747
|
-
case "com.amazonaws.servicediscovery#DuplicateRequest":
|
|
748
|
-
throw await de_DuplicateRequestRes(parsedOutput, context);
|
|
749
|
-
case "InvalidInput":
|
|
750
|
-
case "com.amazonaws.servicediscovery#InvalidInput":
|
|
751
|
-
throw await de_InvalidInputRes(parsedOutput, context);
|
|
752
|
-
case "NamespaceAlreadyExists":
|
|
753
|
-
case "com.amazonaws.servicediscovery#NamespaceAlreadyExists":
|
|
754
|
-
throw await de_NamespaceAlreadyExistsRes(parsedOutput, context);
|
|
755
|
-
case "ResourceLimitExceeded":
|
|
756
|
-
case "com.amazonaws.servicediscovery#ResourceLimitExceeded":
|
|
757
|
-
throw await de_ResourceLimitExceededRes(parsedOutput, context);
|
|
758
|
-
case "TooManyTagsException":
|
|
759
|
-
case "com.amazonaws.servicediscovery#TooManyTagsException":
|
|
760
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
761
|
-
default:
|
|
762
|
-
const parsedBody = parsedOutput.body;
|
|
763
|
-
return throwDefaultError({
|
|
764
|
-
output,
|
|
765
|
-
parsedBody,
|
|
766
|
-
errorCode
|
|
767
|
-
});
|
|
768
|
-
}
|
|
769
|
-
}, "de_CreateHttpNamespaceCommandError");
|
|
770
739
|
var de_CreatePrivateDnsNamespaceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
771
740
|
if (output.statusCode >= 300) {
|
|
772
|
-
return
|
|
741
|
+
return de_CommandError(output, context);
|
|
773
742
|
}
|
|
774
743
|
const data = await parseBody(output.body, context);
|
|
775
744
|
let contents = {};
|
|
@@ -780,40 +749,9 @@ var de_CreatePrivateDnsNamespaceCommand = /* @__PURE__ */ __name(async (output,
|
|
|
780
749
|
};
|
|
781
750
|
return response;
|
|
782
751
|
}, "de_CreatePrivateDnsNamespaceCommand");
|
|
783
|
-
var de_CreatePrivateDnsNamespaceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
784
|
-
const parsedOutput = {
|
|
785
|
-
...output,
|
|
786
|
-
body: await parseErrorBody(output.body, context)
|
|
787
|
-
};
|
|
788
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
789
|
-
switch (errorCode) {
|
|
790
|
-
case "DuplicateRequest":
|
|
791
|
-
case "com.amazonaws.servicediscovery#DuplicateRequest":
|
|
792
|
-
throw await de_DuplicateRequestRes(parsedOutput, context);
|
|
793
|
-
case "InvalidInput":
|
|
794
|
-
case "com.amazonaws.servicediscovery#InvalidInput":
|
|
795
|
-
throw await de_InvalidInputRes(parsedOutput, context);
|
|
796
|
-
case "NamespaceAlreadyExists":
|
|
797
|
-
case "com.amazonaws.servicediscovery#NamespaceAlreadyExists":
|
|
798
|
-
throw await de_NamespaceAlreadyExistsRes(parsedOutput, context);
|
|
799
|
-
case "ResourceLimitExceeded":
|
|
800
|
-
case "com.amazonaws.servicediscovery#ResourceLimitExceeded":
|
|
801
|
-
throw await de_ResourceLimitExceededRes(parsedOutput, context);
|
|
802
|
-
case "TooManyTagsException":
|
|
803
|
-
case "com.amazonaws.servicediscovery#TooManyTagsException":
|
|
804
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
805
|
-
default:
|
|
806
|
-
const parsedBody = parsedOutput.body;
|
|
807
|
-
return throwDefaultError({
|
|
808
|
-
output,
|
|
809
|
-
parsedBody,
|
|
810
|
-
errorCode
|
|
811
|
-
});
|
|
812
|
-
}
|
|
813
|
-
}, "de_CreatePrivateDnsNamespaceCommandError");
|
|
814
752
|
var de_CreatePublicDnsNamespaceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
815
753
|
if (output.statusCode >= 300) {
|
|
816
|
-
return
|
|
754
|
+
return de_CommandError(output, context);
|
|
817
755
|
}
|
|
818
756
|
const data = await parseBody(output.body, context);
|
|
819
757
|
let contents = {};
|
|
@@ -824,40 +762,9 @@ var de_CreatePublicDnsNamespaceCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
824
762
|
};
|
|
825
763
|
return response;
|
|
826
764
|
}, "de_CreatePublicDnsNamespaceCommand");
|
|
827
|
-
var de_CreatePublicDnsNamespaceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
828
|
-
const parsedOutput = {
|
|
829
|
-
...output,
|
|
830
|
-
body: await parseErrorBody(output.body, context)
|
|
831
|
-
};
|
|
832
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
833
|
-
switch (errorCode) {
|
|
834
|
-
case "DuplicateRequest":
|
|
835
|
-
case "com.amazonaws.servicediscovery#DuplicateRequest":
|
|
836
|
-
throw await de_DuplicateRequestRes(parsedOutput, context);
|
|
837
|
-
case "InvalidInput":
|
|
838
|
-
case "com.amazonaws.servicediscovery#InvalidInput":
|
|
839
|
-
throw await de_InvalidInputRes(parsedOutput, context);
|
|
840
|
-
case "NamespaceAlreadyExists":
|
|
841
|
-
case "com.amazonaws.servicediscovery#NamespaceAlreadyExists":
|
|
842
|
-
throw await de_NamespaceAlreadyExistsRes(parsedOutput, context);
|
|
843
|
-
case "ResourceLimitExceeded":
|
|
844
|
-
case "com.amazonaws.servicediscovery#ResourceLimitExceeded":
|
|
845
|
-
throw await de_ResourceLimitExceededRes(parsedOutput, context);
|
|
846
|
-
case "TooManyTagsException":
|
|
847
|
-
case "com.amazonaws.servicediscovery#TooManyTagsException":
|
|
848
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
849
|
-
default:
|
|
850
|
-
const parsedBody = parsedOutput.body;
|
|
851
|
-
return throwDefaultError({
|
|
852
|
-
output,
|
|
853
|
-
parsedBody,
|
|
854
|
-
errorCode
|
|
855
|
-
});
|
|
856
|
-
}
|
|
857
|
-
}, "de_CreatePublicDnsNamespaceCommandError");
|
|
858
765
|
var de_CreateServiceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
859
766
|
if (output.statusCode >= 300) {
|
|
860
|
-
return
|
|
767
|
+
return de_CommandError(output, context);
|
|
861
768
|
}
|
|
862
769
|
const data = await parseBody(output.body, context);
|
|
863
770
|
let contents = {};
|
|
@@ -868,40 +775,9 @@ var de_CreateServiceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
868
775
|
};
|
|
869
776
|
return response;
|
|
870
777
|
}, "de_CreateServiceCommand");
|
|
871
|
-
var de_CreateServiceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
872
|
-
const parsedOutput = {
|
|
873
|
-
...output,
|
|
874
|
-
body: await parseErrorBody(output.body, context)
|
|
875
|
-
};
|
|
876
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
877
|
-
switch (errorCode) {
|
|
878
|
-
case "InvalidInput":
|
|
879
|
-
case "com.amazonaws.servicediscovery#InvalidInput":
|
|
880
|
-
throw await de_InvalidInputRes(parsedOutput, context);
|
|
881
|
-
case "NamespaceNotFound":
|
|
882
|
-
case "com.amazonaws.servicediscovery#NamespaceNotFound":
|
|
883
|
-
throw await de_NamespaceNotFoundRes(parsedOutput, context);
|
|
884
|
-
case "ResourceLimitExceeded":
|
|
885
|
-
case "com.amazonaws.servicediscovery#ResourceLimitExceeded":
|
|
886
|
-
throw await de_ResourceLimitExceededRes(parsedOutput, context);
|
|
887
|
-
case "ServiceAlreadyExists":
|
|
888
|
-
case "com.amazonaws.servicediscovery#ServiceAlreadyExists":
|
|
889
|
-
throw await de_ServiceAlreadyExistsRes(parsedOutput, context);
|
|
890
|
-
case "TooManyTagsException":
|
|
891
|
-
case "com.amazonaws.servicediscovery#TooManyTagsException":
|
|
892
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
893
|
-
default:
|
|
894
|
-
const parsedBody = parsedOutput.body;
|
|
895
|
-
return throwDefaultError({
|
|
896
|
-
output,
|
|
897
|
-
parsedBody,
|
|
898
|
-
errorCode
|
|
899
|
-
});
|
|
900
|
-
}
|
|
901
|
-
}, "de_CreateServiceCommandError");
|
|
902
778
|
var de_DeleteNamespaceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
903
779
|
if (output.statusCode >= 300) {
|
|
904
|
-
return
|
|
780
|
+
return de_CommandError(output, context);
|
|
905
781
|
}
|
|
906
782
|
const data = await parseBody(output.body, context);
|
|
907
783
|
let contents = {};
|
|
@@ -912,37 +788,9 @@ var de_DeleteNamespaceCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
912
788
|
};
|
|
913
789
|
return response;
|
|
914
790
|
}, "de_DeleteNamespaceCommand");
|
|
915
|
-
var de_DeleteNamespaceCommandError = /* @__PURE__ */ __name(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 "DuplicateRequest":
|
|
923
|
-
case "com.amazonaws.servicediscovery#DuplicateRequest":
|
|
924
|
-
throw await de_DuplicateRequestRes(parsedOutput, context);
|
|
925
|
-
case "InvalidInput":
|
|
926
|
-
case "com.amazonaws.servicediscovery#InvalidInput":
|
|
927
|
-
throw await de_InvalidInputRes(parsedOutput, context);
|
|
928
|
-
case "NamespaceNotFound":
|
|
929
|
-
case "com.amazonaws.servicediscovery#NamespaceNotFound":
|
|
930
|
-
throw await de_NamespaceNotFoundRes(parsedOutput, context);
|
|
931
|
-
case "ResourceInUse":
|
|
932
|
-
case "com.amazonaws.servicediscovery#ResourceInUse":
|
|
933
|
-
throw await de_ResourceInUseRes(parsedOutput, context);
|
|
934
|
-
default:
|
|
935
|
-
const parsedBody = parsedOutput.body;
|
|
936
|
-
return throwDefaultError({
|
|
937
|
-
output,
|
|
938
|
-
parsedBody,
|
|
939
|
-
errorCode
|
|
940
|
-
});
|
|
941
|
-
}
|
|
942
|
-
}, "de_DeleteNamespaceCommandError");
|
|
943
791
|
var de_DeleteServiceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
944
792
|
if (output.statusCode >= 300) {
|
|
945
|
-
return
|
|
793
|
+
return de_CommandError(output, context);
|
|
946
794
|
}
|
|
947
795
|
const data = await parseBody(output.body, context);
|
|
948
796
|
let contents = {};
|
|
@@ -953,34 +801,9 @@ var de_DeleteServiceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
953
801
|
};
|
|
954
802
|
return response;
|
|
955
803
|
}, "de_DeleteServiceCommand");
|
|
956
|
-
var de_DeleteServiceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
957
|
-
const parsedOutput = {
|
|
958
|
-
...output,
|
|
959
|
-
body: await parseErrorBody(output.body, context)
|
|
960
|
-
};
|
|
961
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
962
|
-
switch (errorCode) {
|
|
963
|
-
case "InvalidInput":
|
|
964
|
-
case "com.amazonaws.servicediscovery#InvalidInput":
|
|
965
|
-
throw await de_InvalidInputRes(parsedOutput, context);
|
|
966
|
-
case "ResourceInUse":
|
|
967
|
-
case "com.amazonaws.servicediscovery#ResourceInUse":
|
|
968
|
-
throw await de_ResourceInUseRes(parsedOutput, context);
|
|
969
|
-
case "ServiceNotFound":
|
|
970
|
-
case "com.amazonaws.servicediscovery#ServiceNotFound":
|
|
971
|
-
throw await de_ServiceNotFoundRes(parsedOutput, context);
|
|
972
|
-
default:
|
|
973
|
-
const parsedBody = parsedOutput.body;
|
|
974
|
-
return throwDefaultError({
|
|
975
|
-
output,
|
|
976
|
-
parsedBody,
|
|
977
|
-
errorCode
|
|
978
|
-
});
|
|
979
|
-
}
|
|
980
|
-
}, "de_DeleteServiceCommandError");
|
|
981
804
|
var de_DeregisterInstanceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
982
805
|
if (output.statusCode >= 300) {
|
|
983
|
-
return
|
|
806
|
+
return de_CommandError(output, context);
|
|
984
807
|
}
|
|
985
808
|
const data = await parseBody(output.body, context);
|
|
986
809
|
let contents = {};
|
|
@@ -991,40 +814,9 @@ var de_DeregisterInstanceCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
991
814
|
};
|
|
992
815
|
return response;
|
|
993
816
|
}, "de_DeregisterInstanceCommand");
|
|
994
|
-
var de_DeregisterInstanceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
995
|
-
const parsedOutput = {
|
|
996
|
-
...output,
|
|
997
|
-
body: await parseErrorBody(output.body, context)
|
|
998
|
-
};
|
|
999
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1000
|
-
switch (errorCode) {
|
|
1001
|
-
case "DuplicateRequest":
|
|
1002
|
-
case "com.amazonaws.servicediscovery#DuplicateRequest":
|
|
1003
|
-
throw await de_DuplicateRequestRes(parsedOutput, context);
|
|
1004
|
-
case "InstanceNotFound":
|
|
1005
|
-
case "com.amazonaws.servicediscovery#InstanceNotFound":
|
|
1006
|
-
throw await de_InstanceNotFoundRes(parsedOutput, context);
|
|
1007
|
-
case "InvalidInput":
|
|
1008
|
-
case "com.amazonaws.servicediscovery#InvalidInput":
|
|
1009
|
-
throw await de_InvalidInputRes(parsedOutput, context);
|
|
1010
|
-
case "ResourceInUse":
|
|
1011
|
-
case "com.amazonaws.servicediscovery#ResourceInUse":
|
|
1012
|
-
throw await de_ResourceInUseRes(parsedOutput, context);
|
|
1013
|
-
case "ServiceNotFound":
|
|
1014
|
-
case "com.amazonaws.servicediscovery#ServiceNotFound":
|
|
1015
|
-
throw await de_ServiceNotFoundRes(parsedOutput, context);
|
|
1016
|
-
default:
|
|
1017
|
-
const parsedBody = parsedOutput.body;
|
|
1018
|
-
return throwDefaultError({
|
|
1019
|
-
output,
|
|
1020
|
-
parsedBody,
|
|
1021
|
-
errorCode
|
|
1022
|
-
});
|
|
1023
|
-
}
|
|
1024
|
-
}, "de_DeregisterInstanceCommandError");
|
|
1025
817
|
var de_DiscoverInstancesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1026
818
|
if (output.statusCode >= 300) {
|
|
1027
|
-
return
|
|
819
|
+
return de_CommandError(output, context);
|
|
1028
820
|
}
|
|
1029
821
|
const data = await parseBody(output.body, context);
|
|
1030
822
|
let contents = {};
|
|
@@ -1035,37 +827,9 @@ var de_DiscoverInstancesCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1035
827
|
};
|
|
1036
828
|
return response;
|
|
1037
829
|
}, "de_DiscoverInstancesCommand");
|
|
1038
|
-
var de_DiscoverInstancesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1039
|
-
const parsedOutput = {
|
|
1040
|
-
...output,
|
|
1041
|
-
body: await parseErrorBody(output.body, context)
|
|
1042
|
-
};
|
|
1043
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1044
|
-
switch (errorCode) {
|
|
1045
|
-
case "InvalidInput":
|
|
1046
|
-
case "com.amazonaws.servicediscovery#InvalidInput":
|
|
1047
|
-
throw await de_InvalidInputRes(parsedOutput, context);
|
|
1048
|
-
case "NamespaceNotFound":
|
|
1049
|
-
case "com.amazonaws.servicediscovery#NamespaceNotFound":
|
|
1050
|
-
throw await de_NamespaceNotFoundRes(parsedOutput, context);
|
|
1051
|
-
case "RequestLimitExceeded":
|
|
1052
|
-
case "com.amazonaws.servicediscovery#RequestLimitExceeded":
|
|
1053
|
-
throw await de_RequestLimitExceededRes(parsedOutput, context);
|
|
1054
|
-
case "ServiceNotFound":
|
|
1055
|
-
case "com.amazonaws.servicediscovery#ServiceNotFound":
|
|
1056
|
-
throw await de_ServiceNotFoundRes(parsedOutput, context);
|
|
1057
|
-
default:
|
|
1058
|
-
const parsedBody = parsedOutput.body;
|
|
1059
|
-
return throwDefaultError({
|
|
1060
|
-
output,
|
|
1061
|
-
parsedBody,
|
|
1062
|
-
errorCode
|
|
1063
|
-
});
|
|
1064
|
-
}
|
|
1065
|
-
}, "de_DiscoverInstancesCommandError");
|
|
1066
830
|
var de_DiscoverInstancesRevisionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1067
831
|
if (output.statusCode >= 300) {
|
|
1068
|
-
return
|
|
832
|
+
return de_CommandError(output, context);
|
|
1069
833
|
}
|
|
1070
834
|
const data = await parseBody(output.body, context);
|
|
1071
835
|
let contents = {};
|
|
@@ -1076,37 +840,9 @@ var de_DiscoverInstancesRevisionCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1076
840
|
};
|
|
1077
841
|
return response;
|
|
1078
842
|
}, "de_DiscoverInstancesRevisionCommand");
|
|
1079
|
-
var de_DiscoverInstancesRevisionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1080
|
-
const parsedOutput = {
|
|
1081
|
-
...output,
|
|
1082
|
-
body: await parseErrorBody(output.body, context)
|
|
1083
|
-
};
|
|
1084
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1085
|
-
switch (errorCode) {
|
|
1086
|
-
case "InvalidInput":
|
|
1087
|
-
case "com.amazonaws.servicediscovery#InvalidInput":
|
|
1088
|
-
throw await de_InvalidInputRes(parsedOutput, context);
|
|
1089
|
-
case "NamespaceNotFound":
|
|
1090
|
-
case "com.amazonaws.servicediscovery#NamespaceNotFound":
|
|
1091
|
-
throw await de_NamespaceNotFoundRes(parsedOutput, context);
|
|
1092
|
-
case "RequestLimitExceeded":
|
|
1093
|
-
case "com.amazonaws.servicediscovery#RequestLimitExceeded":
|
|
1094
|
-
throw await de_RequestLimitExceededRes(parsedOutput, context);
|
|
1095
|
-
case "ServiceNotFound":
|
|
1096
|
-
case "com.amazonaws.servicediscovery#ServiceNotFound":
|
|
1097
|
-
throw await de_ServiceNotFoundRes(parsedOutput, context);
|
|
1098
|
-
default:
|
|
1099
|
-
const parsedBody = parsedOutput.body;
|
|
1100
|
-
return throwDefaultError({
|
|
1101
|
-
output,
|
|
1102
|
-
parsedBody,
|
|
1103
|
-
errorCode
|
|
1104
|
-
});
|
|
1105
|
-
}
|
|
1106
|
-
}, "de_DiscoverInstancesRevisionCommandError");
|
|
1107
843
|
var de_GetInstanceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1108
844
|
if (output.statusCode >= 300) {
|
|
1109
|
-
return
|
|
845
|
+
return de_CommandError(output, context);
|
|
1110
846
|
}
|
|
1111
847
|
const data = await parseBody(output.body, context);
|
|
1112
848
|
let contents = {};
|
|
@@ -1117,34 +853,9 @@ var de_GetInstanceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1117
853
|
};
|
|
1118
854
|
return response;
|
|
1119
855
|
}, "de_GetInstanceCommand");
|
|
1120
|
-
var de_GetInstanceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1121
|
-
const parsedOutput = {
|
|
1122
|
-
...output,
|
|
1123
|
-
body: await parseErrorBody(output.body, context)
|
|
1124
|
-
};
|
|
1125
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1126
|
-
switch (errorCode) {
|
|
1127
|
-
case "InstanceNotFound":
|
|
1128
|
-
case "com.amazonaws.servicediscovery#InstanceNotFound":
|
|
1129
|
-
throw await de_InstanceNotFoundRes(parsedOutput, context);
|
|
1130
|
-
case "InvalidInput":
|
|
1131
|
-
case "com.amazonaws.servicediscovery#InvalidInput":
|
|
1132
|
-
throw await de_InvalidInputRes(parsedOutput, context);
|
|
1133
|
-
case "ServiceNotFound":
|
|
1134
|
-
case "com.amazonaws.servicediscovery#ServiceNotFound":
|
|
1135
|
-
throw await de_ServiceNotFoundRes(parsedOutput, context);
|
|
1136
|
-
default:
|
|
1137
|
-
const parsedBody = parsedOutput.body;
|
|
1138
|
-
return throwDefaultError({
|
|
1139
|
-
output,
|
|
1140
|
-
parsedBody,
|
|
1141
|
-
errorCode
|
|
1142
|
-
});
|
|
1143
|
-
}
|
|
1144
|
-
}, "de_GetInstanceCommandError");
|
|
1145
856
|
var de_GetInstancesHealthStatusCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1146
857
|
if (output.statusCode >= 300) {
|
|
1147
|
-
return
|
|
858
|
+
return de_CommandError(output, context);
|
|
1148
859
|
}
|
|
1149
860
|
const data = await parseBody(output.body, context);
|
|
1150
861
|
let contents = {};
|
|
@@ -1155,34 +866,9 @@ var de_GetInstancesHealthStatusCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1155
866
|
};
|
|
1156
867
|
return response;
|
|
1157
868
|
}, "de_GetInstancesHealthStatusCommand");
|
|
1158
|
-
var de_GetInstancesHealthStatusCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1159
|
-
const parsedOutput = {
|
|
1160
|
-
...output,
|
|
1161
|
-
body: await parseErrorBody(output.body, context)
|
|
1162
|
-
};
|
|
1163
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1164
|
-
switch (errorCode) {
|
|
1165
|
-
case "InstanceNotFound":
|
|
1166
|
-
case "com.amazonaws.servicediscovery#InstanceNotFound":
|
|
1167
|
-
throw await de_InstanceNotFoundRes(parsedOutput, context);
|
|
1168
|
-
case "InvalidInput":
|
|
1169
|
-
case "com.amazonaws.servicediscovery#InvalidInput":
|
|
1170
|
-
throw await de_InvalidInputRes(parsedOutput, context);
|
|
1171
|
-
case "ServiceNotFound":
|
|
1172
|
-
case "com.amazonaws.servicediscovery#ServiceNotFound":
|
|
1173
|
-
throw await de_ServiceNotFoundRes(parsedOutput, context);
|
|
1174
|
-
default:
|
|
1175
|
-
const parsedBody = parsedOutput.body;
|
|
1176
|
-
return throwDefaultError({
|
|
1177
|
-
output,
|
|
1178
|
-
parsedBody,
|
|
1179
|
-
errorCode
|
|
1180
|
-
});
|
|
1181
|
-
}
|
|
1182
|
-
}, "de_GetInstancesHealthStatusCommandError");
|
|
1183
869
|
var de_GetNamespaceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1184
870
|
if (output.statusCode >= 300) {
|
|
1185
|
-
return
|
|
871
|
+
return de_CommandError(output, context);
|
|
1186
872
|
}
|
|
1187
873
|
const data = await parseBody(output.body, context);
|
|
1188
874
|
let contents = {};
|
|
@@ -1193,31 +879,9 @@ var de_GetNamespaceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1193
879
|
};
|
|
1194
880
|
return response;
|
|
1195
881
|
}, "de_GetNamespaceCommand");
|
|
1196
|
-
var de_GetNamespaceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1197
|
-
const parsedOutput = {
|
|
1198
|
-
...output,
|
|
1199
|
-
body: await parseErrorBody(output.body, context)
|
|
1200
|
-
};
|
|
1201
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1202
|
-
switch (errorCode) {
|
|
1203
|
-
case "InvalidInput":
|
|
1204
|
-
case "com.amazonaws.servicediscovery#InvalidInput":
|
|
1205
|
-
throw await de_InvalidInputRes(parsedOutput, context);
|
|
1206
|
-
case "NamespaceNotFound":
|
|
1207
|
-
case "com.amazonaws.servicediscovery#NamespaceNotFound":
|
|
1208
|
-
throw await de_NamespaceNotFoundRes(parsedOutput, context);
|
|
1209
|
-
default:
|
|
1210
|
-
const parsedBody = parsedOutput.body;
|
|
1211
|
-
return throwDefaultError({
|
|
1212
|
-
output,
|
|
1213
|
-
parsedBody,
|
|
1214
|
-
errorCode
|
|
1215
|
-
});
|
|
1216
|
-
}
|
|
1217
|
-
}, "de_GetNamespaceCommandError");
|
|
1218
882
|
var de_GetOperationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1219
883
|
if (output.statusCode >= 300) {
|
|
1220
|
-
return
|
|
884
|
+
return de_CommandError(output, context);
|
|
1221
885
|
}
|
|
1222
886
|
const data = await parseBody(output.body, context);
|
|
1223
887
|
let contents = {};
|
|
@@ -1228,31 +892,9 @@ var de_GetOperationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1228
892
|
};
|
|
1229
893
|
return response;
|
|
1230
894
|
}, "de_GetOperationCommand");
|
|
1231
|
-
var de_GetOperationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1232
|
-
const parsedOutput = {
|
|
1233
|
-
...output,
|
|
1234
|
-
body: await parseErrorBody(output.body, context)
|
|
1235
|
-
};
|
|
1236
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1237
|
-
switch (errorCode) {
|
|
1238
|
-
case "InvalidInput":
|
|
1239
|
-
case "com.amazonaws.servicediscovery#InvalidInput":
|
|
1240
|
-
throw await de_InvalidInputRes(parsedOutput, context);
|
|
1241
|
-
case "OperationNotFound":
|
|
1242
|
-
case "com.amazonaws.servicediscovery#OperationNotFound":
|
|
1243
|
-
throw await de_OperationNotFoundRes(parsedOutput, context);
|
|
1244
|
-
default:
|
|
1245
|
-
const parsedBody = parsedOutput.body;
|
|
1246
|
-
return throwDefaultError({
|
|
1247
|
-
output,
|
|
1248
|
-
parsedBody,
|
|
1249
|
-
errorCode
|
|
1250
|
-
});
|
|
1251
|
-
}
|
|
1252
|
-
}, "de_GetOperationCommandError");
|
|
1253
895
|
var de_GetServiceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1254
896
|
if (output.statusCode >= 300) {
|
|
1255
|
-
return
|
|
897
|
+
return de_CommandError(output, context);
|
|
1256
898
|
}
|
|
1257
899
|
const data = await parseBody(output.body, context);
|
|
1258
900
|
let contents = {};
|
|
@@ -1263,31 +905,9 @@ var de_GetServiceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1263
905
|
};
|
|
1264
906
|
return response;
|
|
1265
907
|
}, "de_GetServiceCommand");
|
|
1266
|
-
var de_GetServiceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1267
|
-
const parsedOutput = {
|
|
1268
|
-
...output,
|
|
1269
|
-
body: await parseErrorBody(output.body, context)
|
|
1270
|
-
};
|
|
1271
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1272
|
-
switch (errorCode) {
|
|
1273
|
-
case "InvalidInput":
|
|
1274
|
-
case "com.amazonaws.servicediscovery#InvalidInput":
|
|
1275
|
-
throw await de_InvalidInputRes(parsedOutput, context);
|
|
1276
|
-
case "ServiceNotFound":
|
|
1277
|
-
case "com.amazonaws.servicediscovery#ServiceNotFound":
|
|
1278
|
-
throw await de_ServiceNotFoundRes(parsedOutput, context);
|
|
1279
|
-
default:
|
|
1280
|
-
const parsedBody = parsedOutput.body;
|
|
1281
|
-
return throwDefaultError({
|
|
1282
|
-
output,
|
|
1283
|
-
parsedBody,
|
|
1284
|
-
errorCode
|
|
1285
|
-
});
|
|
1286
|
-
}
|
|
1287
|
-
}, "de_GetServiceCommandError");
|
|
1288
908
|
var de_ListInstancesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1289
909
|
if (output.statusCode >= 300) {
|
|
1290
|
-
return
|
|
910
|
+
return de_CommandError(output, context);
|
|
1291
911
|
}
|
|
1292
912
|
const data = await parseBody(output.body, context);
|
|
1293
913
|
let contents = {};
|
|
@@ -1298,31 +918,9 @@ var de_ListInstancesCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1298
918
|
};
|
|
1299
919
|
return response;
|
|
1300
920
|
}, "de_ListInstancesCommand");
|
|
1301
|
-
var de_ListInstancesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1302
|
-
const parsedOutput = {
|
|
1303
|
-
...output,
|
|
1304
|
-
body: await parseErrorBody(output.body, context)
|
|
1305
|
-
};
|
|
1306
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1307
|
-
switch (errorCode) {
|
|
1308
|
-
case "InvalidInput":
|
|
1309
|
-
case "com.amazonaws.servicediscovery#InvalidInput":
|
|
1310
|
-
throw await de_InvalidInputRes(parsedOutput, context);
|
|
1311
|
-
case "ServiceNotFound":
|
|
1312
|
-
case "com.amazonaws.servicediscovery#ServiceNotFound":
|
|
1313
|
-
throw await de_ServiceNotFoundRes(parsedOutput, context);
|
|
1314
|
-
default:
|
|
1315
|
-
const parsedBody = parsedOutput.body;
|
|
1316
|
-
return throwDefaultError({
|
|
1317
|
-
output,
|
|
1318
|
-
parsedBody,
|
|
1319
|
-
errorCode
|
|
1320
|
-
});
|
|
1321
|
-
}
|
|
1322
|
-
}, "de_ListInstancesCommandError");
|
|
1323
921
|
var de_ListNamespacesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1324
922
|
if (output.statusCode >= 300) {
|
|
1325
|
-
return
|
|
923
|
+
return de_CommandError(output, context);
|
|
1326
924
|
}
|
|
1327
925
|
const data = await parseBody(output.body, context);
|
|
1328
926
|
let contents = {};
|
|
@@ -1333,60 +931,22 @@ var de_ListNamespacesCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1333
931
|
};
|
|
1334
932
|
return response;
|
|
1335
933
|
}, "de_ListNamespacesCommand");
|
|
1336
|
-
var de_ListNamespacesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1337
|
-
const parsedOutput = {
|
|
1338
|
-
...output,
|
|
1339
|
-
body: await parseErrorBody(output.body, context)
|
|
1340
|
-
};
|
|
1341
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1342
|
-
switch (errorCode) {
|
|
1343
|
-
case "InvalidInput":
|
|
1344
|
-
case "com.amazonaws.servicediscovery#InvalidInput":
|
|
1345
|
-
throw await de_InvalidInputRes(parsedOutput, context);
|
|
1346
|
-
default:
|
|
1347
|
-
const parsedBody = parsedOutput.body;
|
|
1348
|
-
return throwDefaultError({
|
|
1349
|
-
output,
|
|
1350
|
-
parsedBody,
|
|
1351
|
-
errorCode
|
|
1352
|
-
});
|
|
1353
|
-
}
|
|
1354
|
-
}, "de_ListNamespacesCommandError");
|
|
1355
934
|
var de_ListOperationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1356
|
-
if (output.statusCode >= 300) {
|
|
1357
|
-
return
|
|
1358
|
-
}
|
|
1359
|
-
const data = await parseBody(output.body, context);
|
|
1360
|
-
let contents = {};
|
|
1361
|
-
contents = (0, import_smithy_client._json)(data);
|
|
1362
|
-
const response = {
|
|
1363
|
-
$metadata: deserializeMetadata(output),
|
|
1364
|
-
...contents
|
|
1365
|
-
};
|
|
1366
|
-
return response;
|
|
1367
|
-
}, "de_ListOperationsCommand");
|
|
1368
|
-
var de_ListOperationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1369
|
-
const parsedOutput = {
|
|
1370
|
-
...output,
|
|
1371
|
-
body: await parseErrorBody(output.body, context)
|
|
1372
|
-
};
|
|
1373
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1374
|
-
switch (errorCode) {
|
|
1375
|
-
case "InvalidInput":
|
|
1376
|
-
case "com.amazonaws.servicediscovery#InvalidInput":
|
|
1377
|
-
throw await de_InvalidInputRes(parsedOutput, context);
|
|
1378
|
-
default:
|
|
1379
|
-
const parsedBody = parsedOutput.body;
|
|
1380
|
-
return throwDefaultError({
|
|
1381
|
-
output,
|
|
1382
|
-
parsedBody,
|
|
1383
|
-
errorCode
|
|
1384
|
-
});
|
|
935
|
+
if (output.statusCode >= 300) {
|
|
936
|
+
return de_CommandError(output, context);
|
|
1385
937
|
}
|
|
1386
|
-
|
|
938
|
+
const data = await parseBody(output.body, context);
|
|
939
|
+
let contents = {};
|
|
940
|
+
contents = (0, import_smithy_client._json)(data);
|
|
941
|
+
const response = {
|
|
942
|
+
$metadata: deserializeMetadata(output),
|
|
943
|
+
...contents
|
|
944
|
+
};
|
|
945
|
+
return response;
|
|
946
|
+
}, "de_ListOperationsCommand");
|
|
1387
947
|
var de_ListServicesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1388
948
|
if (output.statusCode >= 300) {
|
|
1389
|
-
return
|
|
949
|
+
return de_CommandError(output, context);
|
|
1390
950
|
}
|
|
1391
951
|
const data = await parseBody(output.body, context);
|
|
1392
952
|
let contents = {};
|
|
@@ -1397,28 +957,9 @@ var de_ListServicesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1397
957
|
};
|
|
1398
958
|
return response;
|
|
1399
959
|
}, "de_ListServicesCommand");
|
|
1400
|
-
var de_ListServicesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1401
|
-
const parsedOutput = {
|
|
1402
|
-
...output,
|
|
1403
|
-
body: await parseErrorBody(output.body, context)
|
|
1404
|
-
};
|
|
1405
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1406
|
-
switch (errorCode) {
|
|
1407
|
-
case "InvalidInput":
|
|
1408
|
-
case "com.amazonaws.servicediscovery#InvalidInput":
|
|
1409
|
-
throw await de_InvalidInputRes(parsedOutput, context);
|
|
1410
|
-
default:
|
|
1411
|
-
const parsedBody = parsedOutput.body;
|
|
1412
|
-
return throwDefaultError({
|
|
1413
|
-
output,
|
|
1414
|
-
parsedBody,
|
|
1415
|
-
errorCode
|
|
1416
|
-
});
|
|
1417
|
-
}
|
|
1418
|
-
}, "de_ListServicesCommandError");
|
|
1419
960
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1420
961
|
if (output.statusCode >= 300) {
|
|
1421
|
-
return
|
|
962
|
+
return de_CommandError(output, context);
|
|
1422
963
|
}
|
|
1423
964
|
const data = await parseBody(output.body, context);
|
|
1424
965
|
let contents = {};
|
|
@@ -1429,31 +970,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1429
970
|
};
|
|
1430
971
|
return response;
|
|
1431
972
|
}, "de_ListTagsForResourceCommand");
|
|
1432
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1433
|
-
const parsedOutput = {
|
|
1434
|
-
...output,
|
|
1435
|
-
body: await parseErrorBody(output.body, context)
|
|
1436
|
-
};
|
|
1437
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1438
|
-
switch (errorCode) {
|
|
1439
|
-
case "InvalidInput":
|
|
1440
|
-
case "com.amazonaws.servicediscovery#InvalidInput":
|
|
1441
|
-
throw await de_InvalidInputRes(parsedOutput, context);
|
|
1442
|
-
case "ResourceNotFoundException":
|
|
1443
|
-
case "com.amazonaws.servicediscovery#ResourceNotFoundException":
|
|
1444
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1445
|
-
default:
|
|
1446
|
-
const parsedBody = parsedOutput.body;
|
|
1447
|
-
return throwDefaultError({
|
|
1448
|
-
output,
|
|
1449
|
-
parsedBody,
|
|
1450
|
-
errorCode
|
|
1451
|
-
});
|
|
1452
|
-
}
|
|
1453
|
-
}, "de_ListTagsForResourceCommandError");
|
|
1454
973
|
var de_RegisterInstanceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1455
974
|
if (output.statusCode >= 300) {
|
|
1456
|
-
return
|
|
975
|
+
return de_CommandError(output, context);
|
|
1457
976
|
}
|
|
1458
977
|
const data = await parseBody(output.body, context);
|
|
1459
978
|
let contents = {};
|
|
@@ -1464,40 +983,9 @@ var de_RegisterInstanceCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1464
983
|
};
|
|
1465
984
|
return response;
|
|
1466
985
|
}, "de_RegisterInstanceCommand");
|
|
1467
|
-
var de_RegisterInstanceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1468
|
-
const parsedOutput = {
|
|
1469
|
-
...output,
|
|
1470
|
-
body: await parseErrorBody(output.body, context)
|
|
1471
|
-
};
|
|
1472
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1473
|
-
switch (errorCode) {
|
|
1474
|
-
case "DuplicateRequest":
|
|
1475
|
-
case "com.amazonaws.servicediscovery#DuplicateRequest":
|
|
1476
|
-
throw await de_DuplicateRequestRes(parsedOutput, context);
|
|
1477
|
-
case "InvalidInput":
|
|
1478
|
-
case "com.amazonaws.servicediscovery#InvalidInput":
|
|
1479
|
-
throw await de_InvalidInputRes(parsedOutput, context);
|
|
1480
|
-
case "ResourceInUse":
|
|
1481
|
-
case "com.amazonaws.servicediscovery#ResourceInUse":
|
|
1482
|
-
throw await de_ResourceInUseRes(parsedOutput, context);
|
|
1483
|
-
case "ResourceLimitExceeded":
|
|
1484
|
-
case "com.amazonaws.servicediscovery#ResourceLimitExceeded":
|
|
1485
|
-
throw await de_ResourceLimitExceededRes(parsedOutput, context);
|
|
1486
|
-
case "ServiceNotFound":
|
|
1487
|
-
case "com.amazonaws.servicediscovery#ServiceNotFound":
|
|
1488
|
-
throw await de_ServiceNotFoundRes(parsedOutput, context);
|
|
1489
|
-
default:
|
|
1490
|
-
const parsedBody = parsedOutput.body;
|
|
1491
|
-
return throwDefaultError({
|
|
1492
|
-
output,
|
|
1493
|
-
parsedBody,
|
|
1494
|
-
errorCode
|
|
1495
|
-
});
|
|
1496
|
-
}
|
|
1497
|
-
}, "de_RegisterInstanceCommandError");
|
|
1498
986
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1499
987
|
if (output.statusCode >= 300) {
|
|
1500
|
-
return
|
|
988
|
+
return de_CommandError(output, context);
|
|
1501
989
|
}
|
|
1502
990
|
const data = await parseBody(output.body, context);
|
|
1503
991
|
let contents = {};
|
|
@@ -1508,34 +996,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1508
996
|
};
|
|
1509
997
|
return response;
|
|
1510
998
|
}, "de_TagResourceCommand");
|
|
1511
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1512
|
-
const parsedOutput = {
|
|
1513
|
-
...output,
|
|
1514
|
-
body: await parseErrorBody(output.body, context)
|
|
1515
|
-
};
|
|
1516
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1517
|
-
switch (errorCode) {
|
|
1518
|
-
case "InvalidInput":
|
|
1519
|
-
case "com.amazonaws.servicediscovery#InvalidInput":
|
|
1520
|
-
throw await de_InvalidInputRes(parsedOutput, context);
|
|
1521
|
-
case "ResourceNotFoundException":
|
|
1522
|
-
case "com.amazonaws.servicediscovery#ResourceNotFoundException":
|
|
1523
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1524
|
-
case "TooManyTagsException":
|
|
1525
|
-
case "com.amazonaws.servicediscovery#TooManyTagsException":
|
|
1526
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1527
|
-
default:
|
|
1528
|
-
const parsedBody = parsedOutput.body;
|
|
1529
|
-
return throwDefaultError({
|
|
1530
|
-
output,
|
|
1531
|
-
parsedBody,
|
|
1532
|
-
errorCode
|
|
1533
|
-
});
|
|
1534
|
-
}
|
|
1535
|
-
}, "de_TagResourceCommandError");
|
|
1536
999
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1537
1000
|
if (output.statusCode >= 300) {
|
|
1538
|
-
return
|
|
1001
|
+
return de_CommandError(output, context);
|
|
1539
1002
|
}
|
|
1540
1003
|
const data = await parseBody(output.body, context);
|
|
1541
1004
|
let contents = {};
|
|
@@ -1546,31 +1009,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1546
1009
|
};
|
|
1547
1010
|
return response;
|
|
1548
1011
|
}, "de_UntagResourceCommand");
|
|
1549
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1550
|
-
const parsedOutput = {
|
|
1551
|
-
...output,
|
|
1552
|
-
body: await parseErrorBody(output.body, context)
|
|
1553
|
-
};
|
|
1554
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1555
|
-
switch (errorCode) {
|
|
1556
|
-
case "InvalidInput":
|
|
1557
|
-
case "com.amazonaws.servicediscovery#InvalidInput":
|
|
1558
|
-
throw await de_InvalidInputRes(parsedOutput, context);
|
|
1559
|
-
case "ResourceNotFoundException":
|
|
1560
|
-
case "com.amazonaws.servicediscovery#ResourceNotFoundException":
|
|
1561
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1562
|
-
default:
|
|
1563
|
-
const parsedBody = parsedOutput.body;
|
|
1564
|
-
return throwDefaultError({
|
|
1565
|
-
output,
|
|
1566
|
-
parsedBody,
|
|
1567
|
-
errorCode
|
|
1568
|
-
});
|
|
1569
|
-
}
|
|
1570
|
-
}, "de_UntagResourceCommandError");
|
|
1571
1012
|
var de_UpdateHttpNamespaceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1572
1013
|
if (output.statusCode >= 300) {
|
|
1573
|
-
return
|
|
1014
|
+
return de_CommandError(output, context);
|
|
1574
1015
|
}
|
|
1575
1016
|
const data = await parseBody(output.body, context);
|
|
1576
1017
|
let contents = {};
|
|
@@ -1581,37 +1022,9 @@ var de_UpdateHttpNamespaceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1581
1022
|
};
|
|
1582
1023
|
return response;
|
|
1583
1024
|
}, "de_UpdateHttpNamespaceCommand");
|
|
1584
|
-
var de_UpdateHttpNamespaceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1585
|
-
const parsedOutput = {
|
|
1586
|
-
...output,
|
|
1587
|
-
body: await parseErrorBody(output.body, context)
|
|
1588
|
-
};
|
|
1589
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1590
|
-
switch (errorCode) {
|
|
1591
|
-
case "DuplicateRequest":
|
|
1592
|
-
case "com.amazonaws.servicediscovery#DuplicateRequest":
|
|
1593
|
-
throw await de_DuplicateRequestRes(parsedOutput, context);
|
|
1594
|
-
case "InvalidInput":
|
|
1595
|
-
case "com.amazonaws.servicediscovery#InvalidInput":
|
|
1596
|
-
throw await de_InvalidInputRes(parsedOutput, context);
|
|
1597
|
-
case "NamespaceNotFound":
|
|
1598
|
-
case "com.amazonaws.servicediscovery#NamespaceNotFound":
|
|
1599
|
-
throw await de_NamespaceNotFoundRes(parsedOutput, context);
|
|
1600
|
-
case "ResourceInUse":
|
|
1601
|
-
case "com.amazonaws.servicediscovery#ResourceInUse":
|
|
1602
|
-
throw await de_ResourceInUseRes(parsedOutput, context);
|
|
1603
|
-
default:
|
|
1604
|
-
const parsedBody = parsedOutput.body;
|
|
1605
|
-
return throwDefaultError({
|
|
1606
|
-
output,
|
|
1607
|
-
parsedBody,
|
|
1608
|
-
errorCode
|
|
1609
|
-
});
|
|
1610
|
-
}
|
|
1611
|
-
}, "de_UpdateHttpNamespaceCommandError");
|
|
1612
1025
|
var de_UpdateInstanceCustomHealthStatusCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1613
1026
|
if (output.statusCode >= 300) {
|
|
1614
|
-
return
|
|
1027
|
+
return de_CommandError(output, context);
|
|
1615
1028
|
}
|
|
1616
1029
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1617
1030
|
const response = {
|
|
@@ -1619,37 +1032,9 @@ var de_UpdateInstanceCustomHealthStatusCommand = /* @__PURE__ */ __name(async (o
|
|
|
1619
1032
|
};
|
|
1620
1033
|
return response;
|
|
1621
1034
|
}, "de_UpdateInstanceCustomHealthStatusCommand");
|
|
1622
|
-
var de_UpdateInstanceCustomHealthStatusCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1623
|
-
const parsedOutput = {
|
|
1624
|
-
...output,
|
|
1625
|
-
body: await parseErrorBody(output.body, context)
|
|
1626
|
-
};
|
|
1627
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1628
|
-
switch (errorCode) {
|
|
1629
|
-
case "CustomHealthNotFound":
|
|
1630
|
-
case "com.amazonaws.servicediscovery#CustomHealthNotFound":
|
|
1631
|
-
throw await de_CustomHealthNotFoundRes(parsedOutput, context);
|
|
1632
|
-
case "InstanceNotFound":
|
|
1633
|
-
case "com.amazonaws.servicediscovery#InstanceNotFound":
|
|
1634
|
-
throw await de_InstanceNotFoundRes(parsedOutput, context);
|
|
1635
|
-
case "InvalidInput":
|
|
1636
|
-
case "com.amazonaws.servicediscovery#InvalidInput":
|
|
1637
|
-
throw await de_InvalidInputRes(parsedOutput, context);
|
|
1638
|
-
case "ServiceNotFound":
|
|
1639
|
-
case "com.amazonaws.servicediscovery#ServiceNotFound":
|
|
1640
|
-
throw await de_ServiceNotFoundRes(parsedOutput, context);
|
|
1641
|
-
default:
|
|
1642
|
-
const parsedBody = parsedOutput.body;
|
|
1643
|
-
return throwDefaultError({
|
|
1644
|
-
output,
|
|
1645
|
-
parsedBody,
|
|
1646
|
-
errorCode
|
|
1647
|
-
});
|
|
1648
|
-
}
|
|
1649
|
-
}, "de_UpdateInstanceCustomHealthStatusCommandError");
|
|
1650
1035
|
var de_UpdatePrivateDnsNamespaceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1651
1036
|
if (output.statusCode >= 300) {
|
|
1652
|
-
return
|
|
1037
|
+
return de_CommandError(output, context);
|
|
1653
1038
|
}
|
|
1654
1039
|
const data = await parseBody(output.body, context);
|
|
1655
1040
|
let contents = {};
|
|
@@ -1660,37 +1045,9 @@ var de_UpdatePrivateDnsNamespaceCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1660
1045
|
};
|
|
1661
1046
|
return response;
|
|
1662
1047
|
}, "de_UpdatePrivateDnsNamespaceCommand");
|
|
1663
|
-
var de_UpdatePrivateDnsNamespaceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1664
|
-
const parsedOutput = {
|
|
1665
|
-
...output,
|
|
1666
|
-
body: await parseErrorBody(output.body, context)
|
|
1667
|
-
};
|
|
1668
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1669
|
-
switch (errorCode) {
|
|
1670
|
-
case "DuplicateRequest":
|
|
1671
|
-
case "com.amazonaws.servicediscovery#DuplicateRequest":
|
|
1672
|
-
throw await de_DuplicateRequestRes(parsedOutput, context);
|
|
1673
|
-
case "InvalidInput":
|
|
1674
|
-
case "com.amazonaws.servicediscovery#InvalidInput":
|
|
1675
|
-
throw await de_InvalidInputRes(parsedOutput, context);
|
|
1676
|
-
case "NamespaceNotFound":
|
|
1677
|
-
case "com.amazonaws.servicediscovery#NamespaceNotFound":
|
|
1678
|
-
throw await de_NamespaceNotFoundRes(parsedOutput, context);
|
|
1679
|
-
case "ResourceInUse":
|
|
1680
|
-
case "com.amazonaws.servicediscovery#ResourceInUse":
|
|
1681
|
-
throw await de_ResourceInUseRes(parsedOutput, context);
|
|
1682
|
-
default:
|
|
1683
|
-
const parsedBody = parsedOutput.body;
|
|
1684
|
-
return throwDefaultError({
|
|
1685
|
-
output,
|
|
1686
|
-
parsedBody,
|
|
1687
|
-
errorCode
|
|
1688
|
-
});
|
|
1689
|
-
}
|
|
1690
|
-
}, "de_UpdatePrivateDnsNamespaceCommandError");
|
|
1691
1048
|
var de_UpdatePublicDnsNamespaceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1692
1049
|
if (output.statusCode >= 300) {
|
|
1693
|
-
return
|
|
1050
|
+
return de_CommandError(output, context);
|
|
1694
1051
|
}
|
|
1695
1052
|
const data = await parseBody(output.body, context);
|
|
1696
1053
|
let contents = {};
|
|
@@ -1701,37 +1058,9 @@ var de_UpdatePublicDnsNamespaceCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1701
1058
|
};
|
|
1702
1059
|
return response;
|
|
1703
1060
|
}, "de_UpdatePublicDnsNamespaceCommand");
|
|
1704
|
-
var de_UpdatePublicDnsNamespaceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1705
|
-
const parsedOutput = {
|
|
1706
|
-
...output,
|
|
1707
|
-
body: await parseErrorBody(output.body, context)
|
|
1708
|
-
};
|
|
1709
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1710
|
-
switch (errorCode) {
|
|
1711
|
-
case "DuplicateRequest":
|
|
1712
|
-
case "com.amazonaws.servicediscovery#DuplicateRequest":
|
|
1713
|
-
throw await de_DuplicateRequestRes(parsedOutput, context);
|
|
1714
|
-
case "InvalidInput":
|
|
1715
|
-
case "com.amazonaws.servicediscovery#InvalidInput":
|
|
1716
|
-
throw await de_InvalidInputRes(parsedOutput, context);
|
|
1717
|
-
case "NamespaceNotFound":
|
|
1718
|
-
case "com.amazonaws.servicediscovery#NamespaceNotFound":
|
|
1719
|
-
throw await de_NamespaceNotFoundRes(parsedOutput, context);
|
|
1720
|
-
case "ResourceInUse":
|
|
1721
|
-
case "com.amazonaws.servicediscovery#ResourceInUse":
|
|
1722
|
-
throw await de_ResourceInUseRes(parsedOutput, context);
|
|
1723
|
-
default:
|
|
1724
|
-
const parsedBody = parsedOutput.body;
|
|
1725
|
-
return throwDefaultError({
|
|
1726
|
-
output,
|
|
1727
|
-
parsedBody,
|
|
1728
|
-
errorCode
|
|
1729
|
-
});
|
|
1730
|
-
}
|
|
1731
|
-
}, "de_UpdatePublicDnsNamespaceCommandError");
|
|
1732
1061
|
var de_UpdateServiceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1733
1062
|
if (output.statusCode >= 300) {
|
|
1734
|
-
return
|
|
1063
|
+
return de_CommandError(output, context);
|
|
1735
1064
|
}
|
|
1736
1065
|
const data = await parseBody(output.body, context);
|
|
1737
1066
|
let contents = {};
|
|
@@ -1742,7 +1071,7 @@ var de_UpdateServiceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1742
1071
|
};
|
|
1743
1072
|
return response;
|
|
1744
1073
|
}, "de_UpdateServiceCommand");
|
|
1745
|
-
var
|
|
1074
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1746
1075
|
const parsedOutput = {
|
|
1747
1076
|
...output,
|
|
1748
1077
|
body: await parseErrorBody(output.body, context)
|
|
@@ -1755,9 +1084,42 @@ var de_UpdateServiceCommandError = /* @__PURE__ */ __name(async (output, context
|
|
|
1755
1084
|
case "InvalidInput":
|
|
1756
1085
|
case "com.amazonaws.servicediscovery#InvalidInput":
|
|
1757
1086
|
throw await de_InvalidInputRes(parsedOutput, context);
|
|
1087
|
+
case "NamespaceAlreadyExists":
|
|
1088
|
+
case "com.amazonaws.servicediscovery#NamespaceAlreadyExists":
|
|
1089
|
+
throw await de_NamespaceAlreadyExistsRes(parsedOutput, context);
|
|
1090
|
+
case "ResourceLimitExceeded":
|
|
1091
|
+
case "com.amazonaws.servicediscovery#ResourceLimitExceeded":
|
|
1092
|
+
throw await de_ResourceLimitExceededRes(parsedOutput, context);
|
|
1093
|
+
case "TooManyTagsException":
|
|
1094
|
+
case "com.amazonaws.servicediscovery#TooManyTagsException":
|
|
1095
|
+
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1096
|
+
case "NamespaceNotFound":
|
|
1097
|
+
case "com.amazonaws.servicediscovery#NamespaceNotFound":
|
|
1098
|
+
throw await de_NamespaceNotFoundRes(parsedOutput, context);
|
|
1099
|
+
case "ServiceAlreadyExists":
|
|
1100
|
+
case "com.amazonaws.servicediscovery#ServiceAlreadyExists":
|
|
1101
|
+
throw await de_ServiceAlreadyExistsRes(parsedOutput, context);
|
|
1102
|
+
case "ResourceInUse":
|
|
1103
|
+
case "com.amazonaws.servicediscovery#ResourceInUse":
|
|
1104
|
+
throw await de_ResourceInUseRes(parsedOutput, context);
|
|
1758
1105
|
case "ServiceNotFound":
|
|
1759
1106
|
case "com.amazonaws.servicediscovery#ServiceNotFound":
|
|
1760
1107
|
throw await de_ServiceNotFoundRes(parsedOutput, context);
|
|
1108
|
+
case "InstanceNotFound":
|
|
1109
|
+
case "com.amazonaws.servicediscovery#InstanceNotFound":
|
|
1110
|
+
throw await de_InstanceNotFoundRes(parsedOutput, context);
|
|
1111
|
+
case "RequestLimitExceeded":
|
|
1112
|
+
case "com.amazonaws.servicediscovery#RequestLimitExceeded":
|
|
1113
|
+
throw await de_RequestLimitExceededRes(parsedOutput, context);
|
|
1114
|
+
case "OperationNotFound":
|
|
1115
|
+
case "com.amazonaws.servicediscovery#OperationNotFound":
|
|
1116
|
+
throw await de_OperationNotFoundRes(parsedOutput, context);
|
|
1117
|
+
case "ResourceNotFoundException":
|
|
1118
|
+
case "com.amazonaws.servicediscovery#ResourceNotFoundException":
|
|
1119
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1120
|
+
case "CustomHealthNotFound":
|
|
1121
|
+
case "com.amazonaws.servicediscovery#CustomHealthNotFound":
|
|
1122
|
+
throw await de_CustomHealthNotFoundRes(parsedOutput, context);
|
|
1761
1123
|
default:
|
|
1762
1124
|
const parsedBody = parsedOutput.body;
|
|
1763
1125
|
return throwDefaultError({
|
|
@@ -1766,7 +1128,7 @@ var de_UpdateServiceCommandError = /* @__PURE__ */ __name(async (output, context
|
|
|
1766
1128
|
errorCode
|
|
1767
1129
|
});
|
|
1768
1130
|
}
|
|
1769
|
-
}, "
|
|
1131
|
+
}, "de_CommandError");
|
|
1770
1132
|
var de_CustomHealthNotFoundRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1771
1133
|
const body = parsedOutput.body;
|
|
1772
1134
|
const deserialized = (0, import_smithy_client._json)(body);
|