@aws-sdk/client-fms 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 +91 -1203
- package/dist-es/protocols/Aws_json1_1.js +110 -1222
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -713,7 +713,7 @@ var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
713
713
|
}, "se_UntagResourceCommand");
|
|
714
714
|
var de_AssociateAdminAccountCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
715
715
|
if (output.statusCode >= 300) {
|
|
716
|
-
return
|
|
716
|
+
return de_CommandError(output, context);
|
|
717
717
|
}
|
|
718
718
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
719
719
|
const response = {
|
|
@@ -721,40 +721,9 @@ var de_AssociateAdminAccountCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
721
721
|
};
|
|
722
722
|
return response;
|
|
723
723
|
}, "de_AssociateAdminAccountCommand");
|
|
724
|
-
var de_AssociateAdminAccountCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
725
|
-
const parsedOutput = {
|
|
726
|
-
...output,
|
|
727
|
-
body: await parseErrorBody(output.body, context)
|
|
728
|
-
};
|
|
729
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
730
|
-
switch (errorCode) {
|
|
731
|
-
case "InternalErrorException":
|
|
732
|
-
case "com.amazonaws.fms#InternalErrorException":
|
|
733
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
734
|
-
case "InvalidInputException":
|
|
735
|
-
case "com.amazonaws.fms#InvalidInputException":
|
|
736
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
737
|
-
case "InvalidOperationException":
|
|
738
|
-
case "com.amazonaws.fms#InvalidOperationException":
|
|
739
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
740
|
-
case "LimitExceededException":
|
|
741
|
-
case "com.amazonaws.fms#LimitExceededException":
|
|
742
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
743
|
-
case "ResourceNotFoundException":
|
|
744
|
-
case "com.amazonaws.fms#ResourceNotFoundException":
|
|
745
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
746
|
-
default:
|
|
747
|
-
const parsedBody = parsedOutput.body;
|
|
748
|
-
return throwDefaultError({
|
|
749
|
-
output,
|
|
750
|
-
parsedBody,
|
|
751
|
-
errorCode
|
|
752
|
-
});
|
|
753
|
-
}
|
|
754
|
-
}, "de_AssociateAdminAccountCommandError");
|
|
755
724
|
var de_AssociateThirdPartyFirewallCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
756
725
|
if (output.statusCode >= 300) {
|
|
757
|
-
return
|
|
726
|
+
return de_CommandError(output, context);
|
|
758
727
|
}
|
|
759
728
|
const data = await parseBody(output.body, context);
|
|
760
729
|
let contents = {};
|
|
@@ -765,37 +734,9 @@ var de_AssociateThirdPartyFirewallCommand = /* @__PURE__ */ __name(async (output
|
|
|
765
734
|
};
|
|
766
735
|
return response;
|
|
767
736
|
}, "de_AssociateThirdPartyFirewallCommand");
|
|
768
|
-
var de_AssociateThirdPartyFirewallCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
769
|
-
const parsedOutput = {
|
|
770
|
-
...output,
|
|
771
|
-
body: await parseErrorBody(output.body, context)
|
|
772
|
-
};
|
|
773
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
774
|
-
switch (errorCode) {
|
|
775
|
-
case "InternalErrorException":
|
|
776
|
-
case "com.amazonaws.fms#InternalErrorException":
|
|
777
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
778
|
-
case "InvalidInputException":
|
|
779
|
-
case "com.amazonaws.fms#InvalidInputException":
|
|
780
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
781
|
-
case "InvalidOperationException":
|
|
782
|
-
case "com.amazonaws.fms#InvalidOperationException":
|
|
783
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
784
|
-
case "ResourceNotFoundException":
|
|
785
|
-
case "com.amazonaws.fms#ResourceNotFoundException":
|
|
786
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
787
|
-
default:
|
|
788
|
-
const parsedBody = parsedOutput.body;
|
|
789
|
-
return throwDefaultError({
|
|
790
|
-
output,
|
|
791
|
-
parsedBody,
|
|
792
|
-
errorCode
|
|
793
|
-
});
|
|
794
|
-
}
|
|
795
|
-
}, "de_AssociateThirdPartyFirewallCommandError");
|
|
796
737
|
var de_BatchAssociateResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
797
738
|
if (output.statusCode >= 300) {
|
|
798
|
-
return
|
|
739
|
+
return de_CommandError(output, context);
|
|
799
740
|
}
|
|
800
741
|
const data = await parseBody(output.body, context);
|
|
801
742
|
let contents = {};
|
|
@@ -806,40 +747,9 @@ var de_BatchAssociateResourceCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
806
747
|
};
|
|
807
748
|
return response;
|
|
808
749
|
}, "de_BatchAssociateResourceCommand");
|
|
809
|
-
var de_BatchAssociateResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
810
|
-
const parsedOutput = {
|
|
811
|
-
...output,
|
|
812
|
-
body: await parseErrorBody(output.body, context)
|
|
813
|
-
};
|
|
814
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
815
|
-
switch (errorCode) {
|
|
816
|
-
case "InternalErrorException":
|
|
817
|
-
case "com.amazonaws.fms#InternalErrorException":
|
|
818
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
819
|
-
case "InvalidInputException":
|
|
820
|
-
case "com.amazonaws.fms#InvalidInputException":
|
|
821
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
822
|
-
case "InvalidOperationException":
|
|
823
|
-
case "com.amazonaws.fms#InvalidOperationException":
|
|
824
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
825
|
-
case "LimitExceededException":
|
|
826
|
-
case "com.amazonaws.fms#LimitExceededException":
|
|
827
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
828
|
-
case "ResourceNotFoundException":
|
|
829
|
-
case "com.amazonaws.fms#ResourceNotFoundException":
|
|
830
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
831
|
-
default:
|
|
832
|
-
const parsedBody = parsedOutput.body;
|
|
833
|
-
return throwDefaultError({
|
|
834
|
-
output,
|
|
835
|
-
parsedBody,
|
|
836
|
-
errorCode
|
|
837
|
-
});
|
|
838
|
-
}
|
|
839
|
-
}, "de_BatchAssociateResourceCommandError");
|
|
840
750
|
var de_BatchDisassociateResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
841
751
|
if (output.statusCode >= 300) {
|
|
842
|
-
return
|
|
752
|
+
return de_CommandError(output, context);
|
|
843
753
|
}
|
|
844
754
|
const data = await parseBody(output.body, context);
|
|
845
755
|
let contents = {};
|
|
@@ -850,37 +760,9 @@ var de_BatchDisassociateResourceCommand = /* @__PURE__ */ __name(async (output,
|
|
|
850
760
|
};
|
|
851
761
|
return response;
|
|
852
762
|
}, "de_BatchDisassociateResourceCommand");
|
|
853
|
-
var de_BatchDisassociateResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
854
|
-
const parsedOutput = {
|
|
855
|
-
...output,
|
|
856
|
-
body: await parseErrorBody(output.body, context)
|
|
857
|
-
};
|
|
858
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
859
|
-
switch (errorCode) {
|
|
860
|
-
case "InternalErrorException":
|
|
861
|
-
case "com.amazonaws.fms#InternalErrorException":
|
|
862
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
863
|
-
case "InvalidInputException":
|
|
864
|
-
case "com.amazonaws.fms#InvalidInputException":
|
|
865
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
866
|
-
case "InvalidOperationException":
|
|
867
|
-
case "com.amazonaws.fms#InvalidOperationException":
|
|
868
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
869
|
-
case "ResourceNotFoundException":
|
|
870
|
-
case "com.amazonaws.fms#ResourceNotFoundException":
|
|
871
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
872
|
-
default:
|
|
873
|
-
const parsedBody = parsedOutput.body;
|
|
874
|
-
return throwDefaultError({
|
|
875
|
-
output,
|
|
876
|
-
parsedBody,
|
|
877
|
-
errorCode
|
|
878
|
-
});
|
|
879
|
-
}
|
|
880
|
-
}, "de_BatchDisassociateResourceCommandError");
|
|
881
763
|
var de_DeleteAppsListCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
882
764
|
if (output.statusCode >= 300) {
|
|
883
|
-
return
|
|
765
|
+
return de_CommandError(output, context);
|
|
884
766
|
}
|
|
885
767
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
886
768
|
const response = {
|
|
@@ -888,34 +770,9 @@ var de_DeleteAppsListCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
888
770
|
};
|
|
889
771
|
return response;
|
|
890
772
|
}, "de_DeleteAppsListCommand");
|
|
891
|
-
var de_DeleteAppsListCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
892
|
-
const parsedOutput = {
|
|
893
|
-
...output,
|
|
894
|
-
body: await parseErrorBody(output.body, context)
|
|
895
|
-
};
|
|
896
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
897
|
-
switch (errorCode) {
|
|
898
|
-
case "InternalErrorException":
|
|
899
|
-
case "com.amazonaws.fms#InternalErrorException":
|
|
900
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
901
|
-
case "InvalidOperationException":
|
|
902
|
-
case "com.amazonaws.fms#InvalidOperationException":
|
|
903
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
904
|
-
case "ResourceNotFoundException":
|
|
905
|
-
case "com.amazonaws.fms#ResourceNotFoundException":
|
|
906
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
907
|
-
default:
|
|
908
|
-
const parsedBody = parsedOutput.body;
|
|
909
|
-
return throwDefaultError({
|
|
910
|
-
output,
|
|
911
|
-
parsedBody,
|
|
912
|
-
errorCode
|
|
913
|
-
});
|
|
914
|
-
}
|
|
915
|
-
}, "de_DeleteAppsListCommandError");
|
|
916
773
|
var de_DeleteNotificationChannelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
917
774
|
if (output.statusCode >= 300) {
|
|
918
|
-
return
|
|
775
|
+
return de_CommandError(output, context);
|
|
919
776
|
}
|
|
920
777
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
921
778
|
const response = {
|
|
@@ -923,34 +780,9 @@ var de_DeleteNotificationChannelCommand = /* @__PURE__ */ __name(async (output,
|
|
|
923
780
|
};
|
|
924
781
|
return response;
|
|
925
782
|
}, "de_DeleteNotificationChannelCommand");
|
|
926
|
-
var de_DeleteNotificationChannelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
927
|
-
const parsedOutput = {
|
|
928
|
-
...output,
|
|
929
|
-
body: await parseErrorBody(output.body, context)
|
|
930
|
-
};
|
|
931
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
932
|
-
switch (errorCode) {
|
|
933
|
-
case "InternalErrorException":
|
|
934
|
-
case "com.amazonaws.fms#InternalErrorException":
|
|
935
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
936
|
-
case "InvalidOperationException":
|
|
937
|
-
case "com.amazonaws.fms#InvalidOperationException":
|
|
938
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
939
|
-
case "ResourceNotFoundException":
|
|
940
|
-
case "com.amazonaws.fms#ResourceNotFoundException":
|
|
941
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
942
|
-
default:
|
|
943
|
-
const parsedBody = parsedOutput.body;
|
|
944
|
-
return throwDefaultError({
|
|
945
|
-
output,
|
|
946
|
-
parsedBody,
|
|
947
|
-
errorCode
|
|
948
|
-
});
|
|
949
|
-
}
|
|
950
|
-
}, "de_DeleteNotificationChannelCommandError");
|
|
951
783
|
var de_DeletePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
952
784
|
if (output.statusCode >= 300) {
|
|
953
|
-
return
|
|
785
|
+
return de_CommandError(output, context);
|
|
954
786
|
}
|
|
955
787
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
956
788
|
const response = {
|
|
@@ -958,40 +790,9 @@ var de_DeletePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
958
790
|
};
|
|
959
791
|
return response;
|
|
960
792
|
}, "de_DeletePolicyCommand");
|
|
961
|
-
var de_DeletePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
962
|
-
const parsedOutput = {
|
|
963
|
-
...output,
|
|
964
|
-
body: await parseErrorBody(output.body, context)
|
|
965
|
-
};
|
|
966
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
967
|
-
switch (errorCode) {
|
|
968
|
-
case "InternalErrorException":
|
|
969
|
-
case "com.amazonaws.fms#InternalErrorException":
|
|
970
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
971
|
-
case "InvalidInputException":
|
|
972
|
-
case "com.amazonaws.fms#InvalidInputException":
|
|
973
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
974
|
-
case "InvalidOperationException":
|
|
975
|
-
case "com.amazonaws.fms#InvalidOperationException":
|
|
976
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
977
|
-
case "LimitExceededException":
|
|
978
|
-
case "com.amazonaws.fms#LimitExceededException":
|
|
979
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
980
|
-
case "ResourceNotFoundException":
|
|
981
|
-
case "com.amazonaws.fms#ResourceNotFoundException":
|
|
982
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
983
|
-
default:
|
|
984
|
-
const parsedBody = parsedOutput.body;
|
|
985
|
-
return throwDefaultError({
|
|
986
|
-
output,
|
|
987
|
-
parsedBody,
|
|
988
|
-
errorCode
|
|
989
|
-
});
|
|
990
|
-
}
|
|
991
|
-
}, "de_DeletePolicyCommandError");
|
|
992
793
|
var de_DeleteProtocolsListCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
993
794
|
if (output.statusCode >= 300) {
|
|
994
|
-
return
|
|
795
|
+
return de_CommandError(output, context);
|
|
995
796
|
}
|
|
996
797
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
997
798
|
const response = {
|
|
@@ -999,34 +800,9 @@ var de_DeleteProtocolsListCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
999
800
|
};
|
|
1000
801
|
return response;
|
|
1001
802
|
}, "de_DeleteProtocolsListCommand");
|
|
1002
|
-
var de_DeleteProtocolsListCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1003
|
-
const parsedOutput = {
|
|
1004
|
-
...output,
|
|
1005
|
-
body: await parseErrorBody(output.body, context)
|
|
1006
|
-
};
|
|
1007
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1008
|
-
switch (errorCode) {
|
|
1009
|
-
case "InternalErrorException":
|
|
1010
|
-
case "com.amazonaws.fms#InternalErrorException":
|
|
1011
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1012
|
-
case "InvalidOperationException":
|
|
1013
|
-
case "com.amazonaws.fms#InvalidOperationException":
|
|
1014
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
1015
|
-
case "ResourceNotFoundException":
|
|
1016
|
-
case "com.amazonaws.fms#ResourceNotFoundException":
|
|
1017
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1018
|
-
default:
|
|
1019
|
-
const parsedBody = parsedOutput.body;
|
|
1020
|
-
return throwDefaultError({
|
|
1021
|
-
output,
|
|
1022
|
-
parsedBody,
|
|
1023
|
-
errorCode
|
|
1024
|
-
});
|
|
1025
|
-
}
|
|
1026
|
-
}, "de_DeleteProtocolsListCommandError");
|
|
1027
803
|
var de_DeleteResourceSetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1028
804
|
if (output.statusCode >= 300) {
|
|
1029
|
-
return
|
|
805
|
+
return de_CommandError(output, context);
|
|
1030
806
|
}
|
|
1031
807
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1032
808
|
const response = {
|
|
@@ -1034,37 +810,9 @@ var de_DeleteResourceSetCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1034
810
|
};
|
|
1035
811
|
return response;
|
|
1036
812
|
}, "de_DeleteResourceSetCommand");
|
|
1037
|
-
var de_DeleteResourceSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1038
|
-
const parsedOutput = {
|
|
1039
|
-
...output,
|
|
1040
|
-
body: await parseErrorBody(output.body, context)
|
|
1041
|
-
};
|
|
1042
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1043
|
-
switch (errorCode) {
|
|
1044
|
-
case "InternalErrorException":
|
|
1045
|
-
case "com.amazonaws.fms#InternalErrorException":
|
|
1046
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1047
|
-
case "InvalidInputException":
|
|
1048
|
-
case "com.amazonaws.fms#InvalidInputException":
|
|
1049
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1050
|
-
case "InvalidOperationException":
|
|
1051
|
-
case "com.amazonaws.fms#InvalidOperationException":
|
|
1052
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
1053
|
-
case "ResourceNotFoundException":
|
|
1054
|
-
case "com.amazonaws.fms#ResourceNotFoundException":
|
|
1055
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1056
|
-
default:
|
|
1057
|
-
const parsedBody = parsedOutput.body;
|
|
1058
|
-
return throwDefaultError({
|
|
1059
|
-
output,
|
|
1060
|
-
parsedBody,
|
|
1061
|
-
errorCode
|
|
1062
|
-
});
|
|
1063
|
-
}
|
|
1064
|
-
}, "de_DeleteResourceSetCommandError");
|
|
1065
813
|
var de_DisassociateAdminAccountCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1066
814
|
if (output.statusCode >= 300) {
|
|
1067
|
-
return
|
|
815
|
+
return de_CommandError(output, context);
|
|
1068
816
|
}
|
|
1069
817
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1070
818
|
const response = {
|
|
@@ -1072,34 +820,9 @@ var de_DisassociateAdminAccountCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1072
820
|
};
|
|
1073
821
|
return response;
|
|
1074
822
|
}, "de_DisassociateAdminAccountCommand");
|
|
1075
|
-
var de_DisassociateAdminAccountCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1076
|
-
const parsedOutput = {
|
|
1077
|
-
...output,
|
|
1078
|
-
body: await parseErrorBody(output.body, context)
|
|
1079
|
-
};
|
|
1080
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1081
|
-
switch (errorCode) {
|
|
1082
|
-
case "InternalErrorException":
|
|
1083
|
-
case "com.amazonaws.fms#InternalErrorException":
|
|
1084
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1085
|
-
case "InvalidOperationException":
|
|
1086
|
-
case "com.amazonaws.fms#InvalidOperationException":
|
|
1087
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
1088
|
-
case "ResourceNotFoundException":
|
|
1089
|
-
case "com.amazonaws.fms#ResourceNotFoundException":
|
|
1090
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1091
|
-
default:
|
|
1092
|
-
const parsedBody = parsedOutput.body;
|
|
1093
|
-
return throwDefaultError({
|
|
1094
|
-
output,
|
|
1095
|
-
parsedBody,
|
|
1096
|
-
errorCode
|
|
1097
|
-
});
|
|
1098
|
-
}
|
|
1099
|
-
}, "de_DisassociateAdminAccountCommandError");
|
|
1100
823
|
var de_DisassociateThirdPartyFirewallCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1101
824
|
if (output.statusCode >= 300) {
|
|
1102
|
-
return
|
|
825
|
+
return de_CommandError(output, context);
|
|
1103
826
|
}
|
|
1104
827
|
const data = await parseBody(output.body, context);
|
|
1105
828
|
let contents = {};
|
|
@@ -1110,119 +833,35 @@ var de_DisassociateThirdPartyFirewallCommand = /* @__PURE__ */ __name(async (out
|
|
|
1110
833
|
};
|
|
1111
834
|
return response;
|
|
1112
835
|
}, "de_DisassociateThirdPartyFirewallCommand");
|
|
1113
|
-
var de_DisassociateThirdPartyFirewallCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1114
|
-
const parsedOutput = {
|
|
1115
|
-
...output,
|
|
1116
|
-
body: await parseErrorBody(output.body, context)
|
|
1117
|
-
};
|
|
1118
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1119
|
-
switch (errorCode) {
|
|
1120
|
-
case "InternalErrorException":
|
|
1121
|
-
case "com.amazonaws.fms#InternalErrorException":
|
|
1122
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1123
|
-
case "InvalidInputException":
|
|
1124
|
-
case "com.amazonaws.fms#InvalidInputException":
|
|
1125
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1126
|
-
case "InvalidOperationException":
|
|
1127
|
-
case "com.amazonaws.fms#InvalidOperationException":
|
|
1128
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
1129
|
-
case "ResourceNotFoundException":
|
|
1130
|
-
case "com.amazonaws.fms#ResourceNotFoundException":
|
|
1131
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1132
|
-
default:
|
|
1133
|
-
const parsedBody = parsedOutput.body;
|
|
1134
|
-
return throwDefaultError({
|
|
1135
|
-
output,
|
|
1136
|
-
parsedBody,
|
|
1137
|
-
errorCode
|
|
1138
|
-
});
|
|
1139
|
-
}
|
|
1140
|
-
}, "de_DisassociateThirdPartyFirewallCommandError");
|
|
1141
836
|
var de_GetAdminAccountCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1142
837
|
if (output.statusCode >= 300) {
|
|
1143
|
-
return
|
|
1144
|
-
}
|
|
1145
|
-
const data = await parseBody(output.body, context);
|
|
1146
|
-
let contents = {};
|
|
1147
|
-
contents = (0, import_smithy_client._json)(data);
|
|
1148
|
-
const response = {
|
|
1149
|
-
$metadata: deserializeMetadata(output),
|
|
1150
|
-
...contents
|
|
1151
|
-
};
|
|
1152
|
-
return response;
|
|
1153
|
-
}, "de_GetAdminAccountCommand");
|
|
1154
|
-
var de_GetAdminAccountCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1155
|
-
const parsedOutput = {
|
|
1156
|
-
...output,
|
|
1157
|
-
body: await parseErrorBody(output.body, context)
|
|
1158
|
-
};
|
|
1159
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1160
|
-
switch (errorCode) {
|
|
1161
|
-
case "InternalErrorException":
|
|
1162
|
-
case "com.amazonaws.fms#InternalErrorException":
|
|
1163
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1164
|
-
case "InvalidOperationException":
|
|
1165
|
-
case "com.amazonaws.fms#InvalidOperationException":
|
|
1166
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
1167
|
-
case "ResourceNotFoundException":
|
|
1168
|
-
case "com.amazonaws.fms#ResourceNotFoundException":
|
|
1169
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1170
|
-
default:
|
|
1171
|
-
const parsedBody = parsedOutput.body;
|
|
1172
|
-
return throwDefaultError({
|
|
1173
|
-
output,
|
|
1174
|
-
parsedBody,
|
|
1175
|
-
errorCode
|
|
1176
|
-
});
|
|
1177
|
-
}
|
|
1178
|
-
}, "de_GetAdminAccountCommandError");
|
|
1179
|
-
var de_GetAdminScopeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1180
|
-
if (output.statusCode >= 300) {
|
|
1181
|
-
return de_GetAdminScopeCommandError(output, context);
|
|
1182
|
-
}
|
|
1183
|
-
const data = await parseBody(output.body, context);
|
|
1184
|
-
let contents = {};
|
|
1185
|
-
contents = (0, import_smithy_client._json)(data);
|
|
1186
|
-
const response = {
|
|
1187
|
-
$metadata: deserializeMetadata(output),
|
|
1188
|
-
...contents
|
|
1189
|
-
};
|
|
1190
|
-
return response;
|
|
1191
|
-
}, "de_GetAdminScopeCommand");
|
|
1192
|
-
var de_GetAdminScopeCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1193
|
-
const parsedOutput = {
|
|
1194
|
-
...output,
|
|
1195
|
-
body: await parseErrorBody(output.body, context)
|
|
1196
|
-
};
|
|
1197
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1198
|
-
switch (errorCode) {
|
|
1199
|
-
case "InternalErrorException":
|
|
1200
|
-
case "com.amazonaws.fms#InternalErrorException":
|
|
1201
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1202
|
-
case "InvalidInputException":
|
|
1203
|
-
case "com.amazonaws.fms#InvalidInputException":
|
|
1204
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1205
|
-
case "InvalidOperationException":
|
|
1206
|
-
case "com.amazonaws.fms#InvalidOperationException":
|
|
1207
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
1208
|
-
case "LimitExceededException":
|
|
1209
|
-
case "com.amazonaws.fms#LimitExceededException":
|
|
1210
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1211
|
-
case "ResourceNotFoundException":
|
|
1212
|
-
case "com.amazonaws.fms#ResourceNotFoundException":
|
|
1213
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1214
|
-
default:
|
|
1215
|
-
const parsedBody = parsedOutput.body;
|
|
1216
|
-
return throwDefaultError({
|
|
1217
|
-
output,
|
|
1218
|
-
parsedBody,
|
|
1219
|
-
errorCode
|
|
1220
|
-
});
|
|
838
|
+
return de_CommandError(output, context);
|
|
1221
839
|
}
|
|
1222
|
-
|
|
840
|
+
const data = await parseBody(output.body, context);
|
|
841
|
+
let contents = {};
|
|
842
|
+
contents = (0, import_smithy_client._json)(data);
|
|
843
|
+
const response = {
|
|
844
|
+
$metadata: deserializeMetadata(output),
|
|
845
|
+
...contents
|
|
846
|
+
};
|
|
847
|
+
return response;
|
|
848
|
+
}, "de_GetAdminAccountCommand");
|
|
849
|
+
var de_GetAdminScopeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
850
|
+
if (output.statusCode >= 300) {
|
|
851
|
+
return de_CommandError(output, context);
|
|
852
|
+
}
|
|
853
|
+
const data = await parseBody(output.body, context);
|
|
854
|
+
let contents = {};
|
|
855
|
+
contents = (0, import_smithy_client._json)(data);
|
|
856
|
+
const response = {
|
|
857
|
+
$metadata: deserializeMetadata(output),
|
|
858
|
+
...contents
|
|
859
|
+
};
|
|
860
|
+
return response;
|
|
861
|
+
}, "de_GetAdminScopeCommand");
|
|
1223
862
|
var de_GetAppsListCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1224
863
|
if (output.statusCode >= 300) {
|
|
1225
|
-
return
|
|
864
|
+
return de_CommandError(output, context);
|
|
1226
865
|
}
|
|
1227
866
|
const data = await parseBody(output.body, context);
|
|
1228
867
|
let contents = {};
|
|
@@ -1233,34 +872,9 @@ var de_GetAppsListCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1233
872
|
};
|
|
1234
873
|
return response;
|
|
1235
874
|
}, "de_GetAppsListCommand");
|
|
1236
|
-
var de_GetAppsListCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1237
|
-
const parsedOutput = {
|
|
1238
|
-
...output,
|
|
1239
|
-
body: await parseErrorBody(output.body, context)
|
|
1240
|
-
};
|
|
1241
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1242
|
-
switch (errorCode) {
|
|
1243
|
-
case "InternalErrorException":
|
|
1244
|
-
case "com.amazonaws.fms#InternalErrorException":
|
|
1245
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1246
|
-
case "InvalidOperationException":
|
|
1247
|
-
case "com.amazonaws.fms#InvalidOperationException":
|
|
1248
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
1249
|
-
case "ResourceNotFoundException":
|
|
1250
|
-
case "com.amazonaws.fms#ResourceNotFoundException":
|
|
1251
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1252
|
-
default:
|
|
1253
|
-
const parsedBody = parsedOutput.body;
|
|
1254
|
-
return throwDefaultError({
|
|
1255
|
-
output,
|
|
1256
|
-
parsedBody,
|
|
1257
|
-
errorCode
|
|
1258
|
-
});
|
|
1259
|
-
}
|
|
1260
|
-
}, "de_GetAppsListCommandError");
|
|
1261
875
|
var de_GetComplianceDetailCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1262
876
|
if (output.statusCode >= 300) {
|
|
1263
|
-
return
|
|
877
|
+
return de_CommandError(output, context);
|
|
1264
878
|
}
|
|
1265
879
|
const data = await parseBody(output.body, context);
|
|
1266
880
|
let contents = {};
|
|
@@ -1271,37 +885,9 @@ var de_GetComplianceDetailCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1271
885
|
};
|
|
1272
886
|
return response;
|
|
1273
887
|
}, "de_GetComplianceDetailCommand");
|
|
1274
|
-
var de_GetComplianceDetailCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1275
|
-
const parsedOutput = {
|
|
1276
|
-
...output,
|
|
1277
|
-
body: await parseErrorBody(output.body, context)
|
|
1278
|
-
};
|
|
1279
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1280
|
-
switch (errorCode) {
|
|
1281
|
-
case "InternalErrorException":
|
|
1282
|
-
case "com.amazonaws.fms#InternalErrorException":
|
|
1283
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1284
|
-
case "InvalidInputException":
|
|
1285
|
-
case "com.amazonaws.fms#InvalidInputException":
|
|
1286
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1287
|
-
case "InvalidOperationException":
|
|
1288
|
-
case "com.amazonaws.fms#InvalidOperationException":
|
|
1289
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
1290
|
-
case "ResourceNotFoundException":
|
|
1291
|
-
case "com.amazonaws.fms#ResourceNotFoundException":
|
|
1292
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1293
|
-
default:
|
|
1294
|
-
const parsedBody = parsedOutput.body;
|
|
1295
|
-
return throwDefaultError({
|
|
1296
|
-
output,
|
|
1297
|
-
parsedBody,
|
|
1298
|
-
errorCode
|
|
1299
|
-
});
|
|
1300
|
-
}
|
|
1301
|
-
}, "de_GetComplianceDetailCommandError");
|
|
1302
888
|
var de_GetNotificationChannelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1303
889
|
if (output.statusCode >= 300) {
|
|
1304
|
-
return
|
|
890
|
+
return de_CommandError(output, context);
|
|
1305
891
|
}
|
|
1306
892
|
const data = await parseBody(output.body, context);
|
|
1307
893
|
let contents = {};
|
|
@@ -1312,34 +898,9 @@ var de_GetNotificationChannelCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1312
898
|
};
|
|
1313
899
|
return response;
|
|
1314
900
|
}, "de_GetNotificationChannelCommand");
|
|
1315
|
-
var de_GetNotificationChannelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1316
|
-
const parsedOutput = {
|
|
1317
|
-
...output,
|
|
1318
|
-
body: await parseErrorBody(output.body, context)
|
|
1319
|
-
};
|
|
1320
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1321
|
-
switch (errorCode) {
|
|
1322
|
-
case "InternalErrorException":
|
|
1323
|
-
case "com.amazonaws.fms#InternalErrorException":
|
|
1324
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1325
|
-
case "InvalidOperationException":
|
|
1326
|
-
case "com.amazonaws.fms#InvalidOperationException":
|
|
1327
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
1328
|
-
case "ResourceNotFoundException":
|
|
1329
|
-
case "com.amazonaws.fms#ResourceNotFoundException":
|
|
1330
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1331
|
-
default:
|
|
1332
|
-
const parsedBody = parsedOutput.body;
|
|
1333
|
-
return throwDefaultError({
|
|
1334
|
-
output,
|
|
1335
|
-
parsedBody,
|
|
1336
|
-
errorCode
|
|
1337
|
-
});
|
|
1338
|
-
}
|
|
1339
|
-
}, "de_GetNotificationChannelCommandError");
|
|
1340
901
|
var de_GetPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1341
902
|
if (output.statusCode >= 300) {
|
|
1342
|
-
return
|
|
903
|
+
return de_CommandError(output, context);
|
|
1343
904
|
}
|
|
1344
905
|
const data = await parseBody(output.body, context);
|
|
1345
906
|
let contents = {};
|
|
@@ -1350,37 +911,9 @@ var de_GetPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1350
911
|
};
|
|
1351
912
|
return response;
|
|
1352
913
|
}, "de_GetPolicyCommand");
|
|
1353
|
-
var de_GetPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1354
|
-
const parsedOutput = {
|
|
1355
|
-
...output,
|
|
1356
|
-
body: await parseErrorBody(output.body, context)
|
|
1357
|
-
};
|
|
1358
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1359
|
-
switch (errorCode) {
|
|
1360
|
-
case "InternalErrorException":
|
|
1361
|
-
case "com.amazonaws.fms#InternalErrorException":
|
|
1362
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1363
|
-
case "InvalidOperationException":
|
|
1364
|
-
case "com.amazonaws.fms#InvalidOperationException":
|
|
1365
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
1366
|
-
case "InvalidTypeException":
|
|
1367
|
-
case "com.amazonaws.fms#InvalidTypeException":
|
|
1368
|
-
throw await de_InvalidTypeExceptionRes(parsedOutput, context);
|
|
1369
|
-
case "ResourceNotFoundException":
|
|
1370
|
-
case "com.amazonaws.fms#ResourceNotFoundException":
|
|
1371
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1372
|
-
default:
|
|
1373
|
-
const parsedBody = parsedOutput.body;
|
|
1374
|
-
return throwDefaultError({
|
|
1375
|
-
output,
|
|
1376
|
-
parsedBody,
|
|
1377
|
-
errorCode
|
|
1378
|
-
});
|
|
1379
|
-
}
|
|
1380
|
-
}, "de_GetPolicyCommandError");
|
|
1381
914
|
var de_GetProtectionStatusCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1382
915
|
if (output.statusCode >= 300) {
|
|
1383
|
-
return
|
|
916
|
+
return de_CommandError(output, context);
|
|
1384
917
|
}
|
|
1385
918
|
const data = await parseBody(output.body, context);
|
|
1386
919
|
let contents = {};
|
|
@@ -1391,34 +924,9 @@ var de_GetProtectionStatusCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1391
924
|
};
|
|
1392
925
|
return response;
|
|
1393
926
|
}, "de_GetProtectionStatusCommand");
|
|
1394
|
-
var de_GetProtectionStatusCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1395
|
-
const parsedOutput = {
|
|
1396
|
-
...output,
|
|
1397
|
-
body: await parseErrorBody(output.body, context)
|
|
1398
|
-
};
|
|
1399
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1400
|
-
switch (errorCode) {
|
|
1401
|
-
case "InternalErrorException":
|
|
1402
|
-
case "com.amazonaws.fms#InternalErrorException":
|
|
1403
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1404
|
-
case "InvalidInputException":
|
|
1405
|
-
case "com.amazonaws.fms#InvalidInputException":
|
|
1406
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1407
|
-
case "ResourceNotFoundException":
|
|
1408
|
-
case "com.amazonaws.fms#ResourceNotFoundException":
|
|
1409
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1410
|
-
default:
|
|
1411
|
-
const parsedBody = parsedOutput.body;
|
|
1412
|
-
return throwDefaultError({
|
|
1413
|
-
output,
|
|
1414
|
-
parsedBody,
|
|
1415
|
-
errorCode
|
|
1416
|
-
});
|
|
1417
|
-
}
|
|
1418
|
-
}, "de_GetProtectionStatusCommandError");
|
|
1419
927
|
var de_GetProtocolsListCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1420
928
|
if (output.statusCode >= 300) {
|
|
1421
|
-
return
|
|
929
|
+
return de_CommandError(output, context);
|
|
1422
930
|
}
|
|
1423
931
|
const data = await parseBody(output.body, context);
|
|
1424
932
|
let contents = {};
|
|
@@ -1429,34 +937,9 @@ var de_GetProtocolsListCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1429
937
|
};
|
|
1430
938
|
return response;
|
|
1431
939
|
}, "de_GetProtocolsListCommand");
|
|
1432
|
-
var de_GetProtocolsListCommandError = /* @__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 "InternalErrorException":
|
|
1440
|
-
case "com.amazonaws.fms#InternalErrorException":
|
|
1441
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1442
|
-
case "InvalidOperationException":
|
|
1443
|
-
case "com.amazonaws.fms#InvalidOperationException":
|
|
1444
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
1445
|
-
case "ResourceNotFoundException":
|
|
1446
|
-
case "com.amazonaws.fms#ResourceNotFoundException":
|
|
1447
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1448
|
-
default:
|
|
1449
|
-
const parsedBody = parsedOutput.body;
|
|
1450
|
-
return throwDefaultError({
|
|
1451
|
-
output,
|
|
1452
|
-
parsedBody,
|
|
1453
|
-
errorCode
|
|
1454
|
-
});
|
|
1455
|
-
}
|
|
1456
|
-
}, "de_GetProtocolsListCommandError");
|
|
1457
940
|
var de_GetResourceSetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1458
941
|
if (output.statusCode >= 300) {
|
|
1459
|
-
return
|
|
942
|
+
return de_CommandError(output, context);
|
|
1460
943
|
}
|
|
1461
944
|
const data = await parseBody(output.body, context);
|
|
1462
945
|
let contents = {};
|
|
@@ -1467,116 +950,35 @@ var de_GetResourceSetCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1467
950
|
};
|
|
1468
951
|
return response;
|
|
1469
952
|
}, "de_GetResourceSetCommand");
|
|
1470
|
-
var de_GetResourceSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1471
|
-
const parsedOutput = {
|
|
1472
|
-
...output,
|
|
1473
|
-
body: await parseErrorBody(output.body, context)
|
|
1474
|
-
};
|
|
1475
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1476
|
-
switch (errorCode) {
|
|
1477
|
-
case "InternalErrorException":
|
|
1478
|
-
case "com.amazonaws.fms#InternalErrorException":
|
|
1479
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1480
|
-
case "InvalidInputException":
|
|
1481
|
-
case "com.amazonaws.fms#InvalidInputException":
|
|
1482
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1483
|
-
case "InvalidOperationException":
|
|
1484
|
-
case "com.amazonaws.fms#InvalidOperationException":
|
|
1485
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
1486
|
-
case "ResourceNotFoundException":
|
|
1487
|
-
case "com.amazonaws.fms#ResourceNotFoundException":
|
|
1488
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1489
|
-
default:
|
|
1490
|
-
const parsedBody = parsedOutput.body;
|
|
1491
|
-
return throwDefaultError({
|
|
1492
|
-
output,
|
|
1493
|
-
parsedBody,
|
|
1494
|
-
errorCode
|
|
1495
|
-
});
|
|
1496
|
-
}
|
|
1497
|
-
}, "de_GetResourceSetCommandError");
|
|
1498
953
|
var de_GetThirdPartyFirewallAssociationStatusCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1499
954
|
if (output.statusCode >= 300) {
|
|
1500
|
-
return
|
|
955
|
+
return de_CommandError(output, context);
|
|
1501
956
|
}
|
|
1502
957
|
const data = await parseBody(output.body, context);
|
|
1503
958
|
let contents = {};
|
|
1504
959
|
contents = (0, import_smithy_client._json)(data);
|
|
1505
960
|
const response = {
|
|
1506
|
-
$metadata: deserializeMetadata(output),
|
|
1507
|
-
...contents
|
|
1508
|
-
};
|
|
1509
|
-
return response;
|
|
1510
|
-
}, "de_GetThirdPartyFirewallAssociationStatusCommand");
|
|
1511
|
-
var
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
body: await parseErrorBody(output.body, context)
|
|
1515
|
-
};
|
|
1516
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1517
|
-
switch (errorCode) {
|
|
1518
|
-
case "InternalErrorException":
|
|
1519
|
-
case "com.amazonaws.fms#InternalErrorException":
|
|
1520
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1521
|
-
case "InvalidInputException":
|
|
1522
|
-
case "com.amazonaws.fms#InvalidInputException":
|
|
1523
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1524
|
-
case "InvalidOperationException":
|
|
1525
|
-
case "com.amazonaws.fms#InvalidOperationException":
|
|
1526
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
1527
|
-
case "ResourceNotFoundException":
|
|
1528
|
-
case "com.amazonaws.fms#ResourceNotFoundException":
|
|
1529
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1530
|
-
default:
|
|
1531
|
-
const parsedBody = parsedOutput.body;
|
|
1532
|
-
return throwDefaultError({
|
|
1533
|
-
output,
|
|
1534
|
-
parsedBody,
|
|
1535
|
-
errorCode
|
|
1536
|
-
});
|
|
1537
|
-
}
|
|
1538
|
-
}, "de_GetThirdPartyFirewallAssociationStatusCommandError");
|
|
1539
|
-
var de_GetViolationDetailsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1540
|
-
if (output.statusCode >= 300) {
|
|
1541
|
-
return de_GetViolationDetailsCommandError(output, context);
|
|
1542
|
-
}
|
|
1543
|
-
const data = await parseBody(output.body, context);
|
|
1544
|
-
let contents = {};
|
|
1545
|
-
contents = de_GetViolationDetailsResponse(data, context);
|
|
1546
|
-
const response = {
|
|
1547
|
-
$metadata: deserializeMetadata(output),
|
|
1548
|
-
...contents
|
|
1549
|
-
};
|
|
1550
|
-
return response;
|
|
1551
|
-
}, "de_GetViolationDetailsCommand");
|
|
1552
|
-
var de_GetViolationDetailsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1553
|
-
const parsedOutput = {
|
|
1554
|
-
...output,
|
|
1555
|
-
body: await parseErrorBody(output.body, context)
|
|
1556
|
-
};
|
|
1557
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1558
|
-
switch (errorCode) {
|
|
1559
|
-
case "InternalErrorException":
|
|
1560
|
-
case "com.amazonaws.fms#InternalErrorException":
|
|
1561
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1562
|
-
case "InvalidInputException":
|
|
1563
|
-
case "com.amazonaws.fms#InvalidInputException":
|
|
1564
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1565
|
-
case "ResourceNotFoundException":
|
|
1566
|
-
case "com.amazonaws.fms#ResourceNotFoundException":
|
|
1567
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1568
|
-
default:
|
|
1569
|
-
const parsedBody = parsedOutput.body;
|
|
1570
|
-
return throwDefaultError({
|
|
1571
|
-
output,
|
|
1572
|
-
parsedBody,
|
|
1573
|
-
errorCode
|
|
1574
|
-
});
|
|
961
|
+
$metadata: deserializeMetadata(output),
|
|
962
|
+
...contents
|
|
963
|
+
};
|
|
964
|
+
return response;
|
|
965
|
+
}, "de_GetThirdPartyFirewallAssociationStatusCommand");
|
|
966
|
+
var de_GetViolationDetailsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
967
|
+
if (output.statusCode >= 300) {
|
|
968
|
+
return de_CommandError(output, context);
|
|
1575
969
|
}
|
|
1576
|
-
|
|
970
|
+
const data = await parseBody(output.body, context);
|
|
971
|
+
let contents = {};
|
|
972
|
+
contents = de_GetViolationDetailsResponse(data, context);
|
|
973
|
+
const response = {
|
|
974
|
+
$metadata: deserializeMetadata(output),
|
|
975
|
+
...contents
|
|
976
|
+
};
|
|
977
|
+
return response;
|
|
978
|
+
}, "de_GetViolationDetailsCommand");
|
|
1577
979
|
var de_ListAdminAccountsForOrganizationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1578
980
|
if (output.statusCode >= 300) {
|
|
1579
|
-
return
|
|
981
|
+
return de_CommandError(output, context);
|
|
1580
982
|
}
|
|
1581
983
|
const data = await parseBody(output.body, context);
|
|
1582
984
|
let contents = {};
|
|
@@ -1587,37 +989,9 @@ var de_ListAdminAccountsForOrganizationCommand = /* @__PURE__ */ __name(async (o
|
|
|
1587
989
|
};
|
|
1588
990
|
return response;
|
|
1589
991
|
}, "de_ListAdminAccountsForOrganizationCommand");
|
|
1590
|
-
var de_ListAdminAccountsForOrganizationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1591
|
-
const parsedOutput = {
|
|
1592
|
-
...output,
|
|
1593
|
-
body: await parseErrorBody(output.body, context)
|
|
1594
|
-
};
|
|
1595
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1596
|
-
switch (errorCode) {
|
|
1597
|
-
case "InternalErrorException":
|
|
1598
|
-
case "com.amazonaws.fms#InternalErrorException":
|
|
1599
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1600
|
-
case "InvalidOperationException":
|
|
1601
|
-
case "com.amazonaws.fms#InvalidOperationException":
|
|
1602
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
1603
|
-
case "LimitExceededException":
|
|
1604
|
-
case "com.amazonaws.fms#LimitExceededException":
|
|
1605
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1606
|
-
case "ResourceNotFoundException":
|
|
1607
|
-
case "com.amazonaws.fms#ResourceNotFoundException":
|
|
1608
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1609
|
-
default:
|
|
1610
|
-
const parsedBody = parsedOutput.body;
|
|
1611
|
-
return throwDefaultError({
|
|
1612
|
-
output,
|
|
1613
|
-
parsedBody,
|
|
1614
|
-
errorCode
|
|
1615
|
-
});
|
|
1616
|
-
}
|
|
1617
|
-
}, "de_ListAdminAccountsForOrganizationCommandError");
|
|
1618
992
|
var de_ListAdminsManagingAccountCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1619
993
|
if (output.statusCode >= 300) {
|
|
1620
|
-
return
|
|
994
|
+
return de_CommandError(output, context);
|
|
1621
995
|
}
|
|
1622
996
|
const data = await parseBody(output.body, context);
|
|
1623
997
|
let contents = {};
|
|
@@ -1628,34 +1002,9 @@ var de_ListAdminsManagingAccountCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1628
1002
|
};
|
|
1629
1003
|
return response;
|
|
1630
1004
|
}, "de_ListAdminsManagingAccountCommand");
|
|
1631
|
-
var de_ListAdminsManagingAccountCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1632
|
-
const parsedOutput = {
|
|
1633
|
-
...output,
|
|
1634
|
-
body: await parseErrorBody(output.body, context)
|
|
1635
|
-
};
|
|
1636
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1637
|
-
switch (errorCode) {
|
|
1638
|
-
case "InternalErrorException":
|
|
1639
|
-
case "com.amazonaws.fms#InternalErrorException":
|
|
1640
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1641
|
-
case "InvalidInputException":
|
|
1642
|
-
case "com.amazonaws.fms#InvalidInputException":
|
|
1643
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1644
|
-
case "ResourceNotFoundException":
|
|
1645
|
-
case "com.amazonaws.fms#ResourceNotFoundException":
|
|
1646
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1647
|
-
default:
|
|
1648
|
-
const parsedBody = parsedOutput.body;
|
|
1649
|
-
return throwDefaultError({
|
|
1650
|
-
output,
|
|
1651
|
-
parsedBody,
|
|
1652
|
-
errorCode
|
|
1653
|
-
});
|
|
1654
|
-
}
|
|
1655
|
-
}, "de_ListAdminsManagingAccountCommandError");
|
|
1656
1005
|
var de_ListAppsListsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1657
1006
|
if (output.statusCode >= 300) {
|
|
1658
|
-
return
|
|
1007
|
+
return de_CommandError(output, context);
|
|
1659
1008
|
}
|
|
1660
1009
|
const data = await parseBody(output.body, context);
|
|
1661
1010
|
let contents = {};
|
|
@@ -1666,37 +1015,9 @@ var de_ListAppsListsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1666
1015
|
};
|
|
1667
1016
|
return response;
|
|
1668
1017
|
}, "de_ListAppsListsCommand");
|
|
1669
|
-
var de_ListAppsListsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1670
|
-
const parsedOutput = {
|
|
1671
|
-
...output,
|
|
1672
|
-
body: await parseErrorBody(output.body, context)
|
|
1673
|
-
};
|
|
1674
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1675
|
-
switch (errorCode) {
|
|
1676
|
-
case "InternalErrorException":
|
|
1677
|
-
case "com.amazonaws.fms#InternalErrorException":
|
|
1678
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1679
|
-
case "InvalidOperationException":
|
|
1680
|
-
case "com.amazonaws.fms#InvalidOperationException":
|
|
1681
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
1682
|
-
case "LimitExceededException":
|
|
1683
|
-
case "com.amazonaws.fms#LimitExceededException":
|
|
1684
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1685
|
-
case "ResourceNotFoundException":
|
|
1686
|
-
case "com.amazonaws.fms#ResourceNotFoundException":
|
|
1687
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1688
|
-
default:
|
|
1689
|
-
const parsedBody = parsedOutput.body;
|
|
1690
|
-
return throwDefaultError({
|
|
1691
|
-
output,
|
|
1692
|
-
parsedBody,
|
|
1693
|
-
errorCode
|
|
1694
|
-
});
|
|
1695
|
-
}
|
|
1696
|
-
}, "de_ListAppsListsCommandError");
|
|
1697
1018
|
var de_ListComplianceStatusCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1698
1019
|
if (output.statusCode >= 300) {
|
|
1699
|
-
return
|
|
1020
|
+
return de_CommandError(output, context);
|
|
1700
1021
|
}
|
|
1701
1022
|
const data = await parseBody(output.body, context);
|
|
1702
1023
|
let contents = {};
|
|
@@ -1707,31 +1028,9 @@ var de_ListComplianceStatusCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1707
1028
|
};
|
|
1708
1029
|
return response;
|
|
1709
1030
|
}, "de_ListComplianceStatusCommand");
|
|
1710
|
-
var de_ListComplianceStatusCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1711
|
-
const parsedOutput = {
|
|
1712
|
-
...output,
|
|
1713
|
-
body: await parseErrorBody(output.body, context)
|
|
1714
|
-
};
|
|
1715
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1716
|
-
switch (errorCode) {
|
|
1717
|
-
case "InternalErrorException":
|
|
1718
|
-
case "com.amazonaws.fms#InternalErrorException":
|
|
1719
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1720
|
-
case "ResourceNotFoundException":
|
|
1721
|
-
case "com.amazonaws.fms#ResourceNotFoundException":
|
|
1722
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1723
|
-
default:
|
|
1724
|
-
const parsedBody = parsedOutput.body;
|
|
1725
|
-
return throwDefaultError({
|
|
1726
|
-
output,
|
|
1727
|
-
parsedBody,
|
|
1728
|
-
errorCode
|
|
1729
|
-
});
|
|
1730
|
-
}
|
|
1731
|
-
}, "de_ListComplianceStatusCommandError");
|
|
1732
1031
|
var de_ListDiscoveredResourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1733
1032
|
if (output.statusCode >= 300) {
|
|
1734
|
-
return
|
|
1033
|
+
return de_CommandError(output, context);
|
|
1735
1034
|
}
|
|
1736
1035
|
const data = await parseBody(output.body, context);
|
|
1737
1036
|
let contents = {};
|
|
@@ -1742,34 +1041,9 @@ var de_ListDiscoveredResourcesCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1742
1041
|
};
|
|
1743
1042
|
return response;
|
|
1744
1043
|
}, "de_ListDiscoveredResourcesCommand");
|
|
1745
|
-
var de_ListDiscoveredResourcesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1746
|
-
const parsedOutput = {
|
|
1747
|
-
...output,
|
|
1748
|
-
body: await parseErrorBody(output.body, context)
|
|
1749
|
-
};
|
|
1750
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1751
|
-
switch (errorCode) {
|
|
1752
|
-
case "InternalErrorException":
|
|
1753
|
-
case "com.amazonaws.fms#InternalErrorException":
|
|
1754
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1755
|
-
case "InvalidInputException":
|
|
1756
|
-
case "com.amazonaws.fms#InvalidInputException":
|
|
1757
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1758
|
-
case "InvalidOperationException":
|
|
1759
|
-
case "com.amazonaws.fms#InvalidOperationException":
|
|
1760
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
1761
|
-
default:
|
|
1762
|
-
const parsedBody = parsedOutput.body;
|
|
1763
|
-
return throwDefaultError({
|
|
1764
|
-
output,
|
|
1765
|
-
parsedBody,
|
|
1766
|
-
errorCode
|
|
1767
|
-
});
|
|
1768
|
-
}
|
|
1769
|
-
}, "de_ListDiscoveredResourcesCommandError");
|
|
1770
1044
|
var de_ListMemberAccountsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1771
1045
|
if (output.statusCode >= 300) {
|
|
1772
|
-
return
|
|
1046
|
+
return de_CommandError(output, context);
|
|
1773
1047
|
}
|
|
1774
1048
|
const data = await parseBody(output.body, context);
|
|
1775
1049
|
let contents = {};
|
|
@@ -1780,31 +1054,9 @@ var de_ListMemberAccountsCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1780
1054
|
};
|
|
1781
1055
|
return response;
|
|
1782
1056
|
}, "de_ListMemberAccountsCommand");
|
|
1783
|
-
var de_ListMemberAccountsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1784
|
-
const parsedOutput = {
|
|
1785
|
-
...output,
|
|
1786
|
-
body: await parseErrorBody(output.body, context)
|
|
1787
|
-
};
|
|
1788
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1789
|
-
switch (errorCode) {
|
|
1790
|
-
case "InternalErrorException":
|
|
1791
|
-
case "com.amazonaws.fms#InternalErrorException":
|
|
1792
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1793
|
-
case "ResourceNotFoundException":
|
|
1794
|
-
case "com.amazonaws.fms#ResourceNotFoundException":
|
|
1795
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1796
|
-
default:
|
|
1797
|
-
const parsedBody = parsedOutput.body;
|
|
1798
|
-
return throwDefaultError({
|
|
1799
|
-
output,
|
|
1800
|
-
parsedBody,
|
|
1801
|
-
errorCode
|
|
1802
|
-
});
|
|
1803
|
-
}
|
|
1804
|
-
}, "de_ListMemberAccountsCommandError");
|
|
1805
1057
|
var de_ListPoliciesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1806
1058
|
if (output.statusCode >= 300) {
|
|
1807
|
-
return
|
|
1059
|
+
return de_CommandError(output, context);
|
|
1808
1060
|
}
|
|
1809
1061
|
const data = await parseBody(output.body, context);
|
|
1810
1062
|
let contents = {};
|
|
@@ -1815,37 +1067,9 @@ var de_ListPoliciesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1815
1067
|
};
|
|
1816
1068
|
return response;
|
|
1817
1069
|
}, "de_ListPoliciesCommand");
|
|
1818
|
-
var de_ListPoliciesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1819
|
-
const parsedOutput = {
|
|
1820
|
-
...output,
|
|
1821
|
-
body: await parseErrorBody(output.body, context)
|
|
1822
|
-
};
|
|
1823
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1824
|
-
switch (errorCode) {
|
|
1825
|
-
case "InternalErrorException":
|
|
1826
|
-
case "com.amazonaws.fms#InternalErrorException":
|
|
1827
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1828
|
-
case "InvalidOperationException":
|
|
1829
|
-
case "com.amazonaws.fms#InvalidOperationException":
|
|
1830
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
1831
|
-
case "LimitExceededException":
|
|
1832
|
-
case "com.amazonaws.fms#LimitExceededException":
|
|
1833
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1834
|
-
case "ResourceNotFoundException":
|
|
1835
|
-
case "com.amazonaws.fms#ResourceNotFoundException":
|
|
1836
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1837
|
-
default:
|
|
1838
|
-
const parsedBody = parsedOutput.body;
|
|
1839
|
-
return throwDefaultError({
|
|
1840
|
-
output,
|
|
1841
|
-
parsedBody,
|
|
1842
|
-
errorCode
|
|
1843
|
-
});
|
|
1844
|
-
}
|
|
1845
|
-
}, "de_ListPoliciesCommandError");
|
|
1846
1070
|
var de_ListProtocolsListsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1847
1071
|
if (output.statusCode >= 300) {
|
|
1848
|
-
return
|
|
1072
|
+
return de_CommandError(output, context);
|
|
1849
1073
|
}
|
|
1850
1074
|
const data = await parseBody(output.body, context);
|
|
1851
1075
|
let contents = {};
|
|
@@ -1856,34 +1080,9 @@ var de_ListProtocolsListsCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1856
1080
|
};
|
|
1857
1081
|
return response;
|
|
1858
1082
|
}, "de_ListProtocolsListsCommand");
|
|
1859
|
-
var de_ListProtocolsListsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1860
|
-
const parsedOutput = {
|
|
1861
|
-
...output,
|
|
1862
|
-
body: await parseErrorBody(output.body, context)
|
|
1863
|
-
};
|
|
1864
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1865
|
-
switch (errorCode) {
|
|
1866
|
-
case "InternalErrorException":
|
|
1867
|
-
case "com.amazonaws.fms#InternalErrorException":
|
|
1868
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1869
|
-
case "InvalidOperationException":
|
|
1870
|
-
case "com.amazonaws.fms#InvalidOperationException":
|
|
1871
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
1872
|
-
case "ResourceNotFoundException":
|
|
1873
|
-
case "com.amazonaws.fms#ResourceNotFoundException":
|
|
1874
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1875
|
-
default:
|
|
1876
|
-
const parsedBody = parsedOutput.body;
|
|
1877
|
-
return throwDefaultError({
|
|
1878
|
-
output,
|
|
1879
|
-
parsedBody,
|
|
1880
|
-
errorCode
|
|
1881
|
-
});
|
|
1882
|
-
}
|
|
1883
|
-
}, "de_ListProtocolsListsCommandError");
|
|
1884
1083
|
var de_ListResourceSetResourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1885
1084
|
if (output.statusCode >= 300) {
|
|
1886
|
-
return
|
|
1085
|
+
return de_CommandError(output, context);
|
|
1887
1086
|
}
|
|
1888
1087
|
const data = await parseBody(output.body, context);
|
|
1889
1088
|
let contents = {};
|
|
@@ -1894,75 +1093,22 @@ var de_ListResourceSetResourcesCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1894
1093
|
};
|
|
1895
1094
|
return response;
|
|
1896
1095
|
}, "de_ListResourceSetResourcesCommand");
|
|
1897
|
-
var de_ListResourceSetResourcesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1898
|
-
const parsedOutput = {
|
|
1899
|
-
...output,
|
|
1900
|
-
body: await parseErrorBody(output.body, context)
|
|
1901
|
-
};
|
|
1902
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1903
|
-
switch (errorCode) {
|
|
1904
|
-
case "InternalErrorException":
|
|
1905
|
-
case "com.amazonaws.fms#InternalErrorException":
|
|
1906
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1907
|
-
case "InvalidInputException":
|
|
1908
|
-
case "com.amazonaws.fms#InvalidInputException":
|
|
1909
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1910
|
-
case "InvalidOperationException":
|
|
1911
|
-
case "com.amazonaws.fms#InvalidOperationException":
|
|
1912
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
1913
|
-
case "ResourceNotFoundException":
|
|
1914
|
-
case "com.amazonaws.fms#ResourceNotFoundException":
|
|
1915
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1916
|
-
default:
|
|
1917
|
-
const parsedBody = parsedOutput.body;
|
|
1918
|
-
return throwDefaultError({
|
|
1919
|
-
output,
|
|
1920
|
-
parsedBody,
|
|
1921
|
-
errorCode
|
|
1922
|
-
});
|
|
1923
|
-
}
|
|
1924
|
-
}, "de_ListResourceSetResourcesCommandError");
|
|
1925
1096
|
var de_ListResourceSetsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1926
1097
|
if (output.statusCode >= 300) {
|
|
1927
|
-
return
|
|
1098
|
+
return de_CommandError(output, context);
|
|
1928
1099
|
}
|
|
1929
1100
|
const data = await parseBody(output.body, context);
|
|
1930
1101
|
let contents = {};
|
|
1931
1102
|
contents = de_ListResourceSetsResponse(data, context);
|
|
1932
1103
|
const response = {
|
|
1933
1104
|
$metadata: deserializeMetadata(output),
|
|
1934
|
-
...contents
|
|
1935
|
-
};
|
|
1936
|
-
return response;
|
|
1937
|
-
}, "de_ListResourceSetsCommand");
|
|
1938
|
-
var de_ListResourceSetsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1939
|
-
const parsedOutput = {
|
|
1940
|
-
...output,
|
|
1941
|
-
body: await parseErrorBody(output.body, context)
|
|
1942
|
-
};
|
|
1943
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1944
|
-
switch (errorCode) {
|
|
1945
|
-
case "InternalErrorException":
|
|
1946
|
-
case "com.amazonaws.fms#InternalErrorException":
|
|
1947
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1948
|
-
case "InvalidInputException":
|
|
1949
|
-
case "com.amazonaws.fms#InvalidInputException":
|
|
1950
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1951
|
-
case "InvalidOperationException":
|
|
1952
|
-
case "com.amazonaws.fms#InvalidOperationException":
|
|
1953
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
1954
|
-
default:
|
|
1955
|
-
const parsedBody = parsedOutput.body;
|
|
1956
|
-
return throwDefaultError({
|
|
1957
|
-
output,
|
|
1958
|
-
parsedBody,
|
|
1959
|
-
errorCode
|
|
1960
|
-
});
|
|
1961
|
-
}
|
|
1962
|
-
}, "de_ListResourceSetsCommandError");
|
|
1105
|
+
...contents
|
|
1106
|
+
};
|
|
1107
|
+
return response;
|
|
1108
|
+
}, "de_ListResourceSetsCommand");
|
|
1963
1109
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1964
1110
|
if (output.statusCode >= 300) {
|
|
1965
|
-
return
|
|
1111
|
+
return de_CommandError(output, context);
|
|
1966
1112
|
}
|
|
1967
1113
|
const data = await parseBody(output.body, context);
|
|
1968
1114
|
let contents = {};
|
|
@@ -1973,37 +1119,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1973
1119
|
};
|
|
1974
1120
|
return response;
|
|
1975
1121
|
}, "de_ListTagsForResourceCommand");
|
|
1976
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1977
|
-
const parsedOutput = {
|
|
1978
|
-
...output,
|
|
1979
|
-
body: await parseErrorBody(output.body, context)
|
|
1980
|
-
};
|
|
1981
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1982
|
-
switch (errorCode) {
|
|
1983
|
-
case "InternalErrorException":
|
|
1984
|
-
case "com.amazonaws.fms#InternalErrorException":
|
|
1985
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1986
|
-
case "InvalidInputException":
|
|
1987
|
-
case "com.amazonaws.fms#InvalidInputException":
|
|
1988
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1989
|
-
case "InvalidOperationException":
|
|
1990
|
-
case "com.amazonaws.fms#InvalidOperationException":
|
|
1991
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
1992
|
-
case "ResourceNotFoundException":
|
|
1993
|
-
case "com.amazonaws.fms#ResourceNotFoundException":
|
|
1994
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1995
|
-
default:
|
|
1996
|
-
const parsedBody = parsedOutput.body;
|
|
1997
|
-
return throwDefaultError({
|
|
1998
|
-
output,
|
|
1999
|
-
parsedBody,
|
|
2000
|
-
errorCode
|
|
2001
|
-
});
|
|
2002
|
-
}
|
|
2003
|
-
}, "de_ListTagsForResourceCommandError");
|
|
2004
1122
|
var de_ListThirdPartyFirewallFirewallPoliciesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2005
1123
|
if (output.statusCode >= 300) {
|
|
2006
|
-
return
|
|
1124
|
+
return de_CommandError(output, context);
|
|
2007
1125
|
}
|
|
2008
1126
|
const data = await parseBody(output.body, context);
|
|
2009
1127
|
let contents = {};
|
|
@@ -2014,37 +1132,9 @@ var de_ListThirdPartyFirewallFirewallPoliciesCommand = /* @__PURE__ */ __name(as
|
|
|
2014
1132
|
};
|
|
2015
1133
|
return response;
|
|
2016
1134
|
}, "de_ListThirdPartyFirewallFirewallPoliciesCommand");
|
|
2017
|
-
var de_ListThirdPartyFirewallFirewallPoliciesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2018
|
-
const parsedOutput = {
|
|
2019
|
-
...output,
|
|
2020
|
-
body: await parseErrorBody(output.body, context)
|
|
2021
|
-
};
|
|
2022
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2023
|
-
switch (errorCode) {
|
|
2024
|
-
case "InternalErrorException":
|
|
2025
|
-
case "com.amazonaws.fms#InternalErrorException":
|
|
2026
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
2027
|
-
case "InvalidInputException":
|
|
2028
|
-
case "com.amazonaws.fms#InvalidInputException":
|
|
2029
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2030
|
-
case "InvalidOperationException":
|
|
2031
|
-
case "com.amazonaws.fms#InvalidOperationException":
|
|
2032
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
2033
|
-
case "ResourceNotFoundException":
|
|
2034
|
-
case "com.amazonaws.fms#ResourceNotFoundException":
|
|
2035
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2036
|
-
default:
|
|
2037
|
-
const parsedBody = parsedOutput.body;
|
|
2038
|
-
return throwDefaultError({
|
|
2039
|
-
output,
|
|
2040
|
-
parsedBody,
|
|
2041
|
-
errorCode
|
|
2042
|
-
});
|
|
2043
|
-
}
|
|
2044
|
-
}, "de_ListThirdPartyFirewallFirewallPoliciesCommandError");
|
|
2045
1135
|
var de_PutAdminAccountCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2046
1136
|
if (output.statusCode >= 300) {
|
|
2047
|
-
return
|
|
1137
|
+
return de_CommandError(output, context);
|
|
2048
1138
|
}
|
|
2049
1139
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2050
1140
|
const response = {
|
|
@@ -2052,37 +1142,9 @@ var de_PutAdminAccountCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
2052
1142
|
};
|
|
2053
1143
|
return response;
|
|
2054
1144
|
}, "de_PutAdminAccountCommand");
|
|
2055
|
-
var de_PutAdminAccountCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2056
|
-
const parsedOutput = {
|
|
2057
|
-
...output,
|
|
2058
|
-
body: await parseErrorBody(output.body, context)
|
|
2059
|
-
};
|
|
2060
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2061
|
-
switch (errorCode) {
|
|
2062
|
-
case "InternalErrorException":
|
|
2063
|
-
case "com.amazonaws.fms#InternalErrorException":
|
|
2064
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
2065
|
-
case "InvalidInputException":
|
|
2066
|
-
case "com.amazonaws.fms#InvalidInputException":
|
|
2067
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2068
|
-
case "InvalidOperationException":
|
|
2069
|
-
case "com.amazonaws.fms#InvalidOperationException":
|
|
2070
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
2071
|
-
case "LimitExceededException":
|
|
2072
|
-
case "com.amazonaws.fms#LimitExceededException":
|
|
2073
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2074
|
-
default:
|
|
2075
|
-
const parsedBody = parsedOutput.body;
|
|
2076
|
-
return throwDefaultError({
|
|
2077
|
-
output,
|
|
2078
|
-
parsedBody,
|
|
2079
|
-
errorCode
|
|
2080
|
-
});
|
|
2081
|
-
}
|
|
2082
|
-
}, "de_PutAdminAccountCommandError");
|
|
2083
1145
|
var de_PutAppsListCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2084
1146
|
if (output.statusCode >= 300) {
|
|
2085
|
-
return
|
|
1147
|
+
return de_CommandError(output, context);
|
|
2086
1148
|
}
|
|
2087
1149
|
const data = await parseBody(output.body, context);
|
|
2088
1150
|
let contents = {};
|
|
@@ -2093,40 +1155,9 @@ var de_PutAppsListCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2093
1155
|
};
|
|
2094
1156
|
return response;
|
|
2095
1157
|
}, "de_PutAppsListCommand");
|
|
2096
|
-
var de_PutAppsListCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2097
|
-
const parsedOutput = {
|
|
2098
|
-
...output,
|
|
2099
|
-
body: await parseErrorBody(output.body, context)
|
|
2100
|
-
};
|
|
2101
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2102
|
-
switch (errorCode) {
|
|
2103
|
-
case "InternalErrorException":
|
|
2104
|
-
case "com.amazonaws.fms#InternalErrorException":
|
|
2105
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
2106
|
-
case "InvalidInputException":
|
|
2107
|
-
case "com.amazonaws.fms#InvalidInputException":
|
|
2108
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2109
|
-
case "InvalidOperationException":
|
|
2110
|
-
case "com.amazonaws.fms#InvalidOperationException":
|
|
2111
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
2112
|
-
case "LimitExceededException":
|
|
2113
|
-
case "com.amazonaws.fms#LimitExceededException":
|
|
2114
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2115
|
-
case "ResourceNotFoundException":
|
|
2116
|
-
case "com.amazonaws.fms#ResourceNotFoundException":
|
|
2117
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2118
|
-
default:
|
|
2119
|
-
const parsedBody = parsedOutput.body;
|
|
2120
|
-
return throwDefaultError({
|
|
2121
|
-
output,
|
|
2122
|
-
parsedBody,
|
|
2123
|
-
errorCode
|
|
2124
|
-
});
|
|
2125
|
-
}
|
|
2126
|
-
}, "de_PutAppsListCommandError");
|
|
2127
1158
|
var de_PutNotificationChannelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2128
1159
|
if (output.statusCode >= 300) {
|
|
2129
|
-
return
|
|
1160
|
+
return de_CommandError(output, context);
|
|
2130
1161
|
}
|
|
2131
1162
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2132
1163
|
const response = {
|
|
@@ -2134,34 +1165,9 @@ var de_PutNotificationChannelCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
2134
1165
|
};
|
|
2135
1166
|
return response;
|
|
2136
1167
|
}, "de_PutNotificationChannelCommand");
|
|
2137
|
-
var de_PutNotificationChannelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2138
|
-
const parsedOutput = {
|
|
2139
|
-
...output,
|
|
2140
|
-
body: await parseErrorBody(output.body, context)
|
|
2141
|
-
};
|
|
2142
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2143
|
-
switch (errorCode) {
|
|
2144
|
-
case "InternalErrorException":
|
|
2145
|
-
case "com.amazonaws.fms#InternalErrorException":
|
|
2146
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
2147
|
-
case "InvalidOperationException":
|
|
2148
|
-
case "com.amazonaws.fms#InvalidOperationException":
|
|
2149
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
2150
|
-
case "ResourceNotFoundException":
|
|
2151
|
-
case "com.amazonaws.fms#ResourceNotFoundException":
|
|
2152
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2153
|
-
default:
|
|
2154
|
-
const parsedBody = parsedOutput.body;
|
|
2155
|
-
return throwDefaultError({
|
|
2156
|
-
output,
|
|
2157
|
-
parsedBody,
|
|
2158
|
-
errorCode
|
|
2159
|
-
});
|
|
2160
|
-
}
|
|
2161
|
-
}, "de_PutNotificationChannelCommandError");
|
|
2162
1168
|
var de_PutPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2163
1169
|
if (output.statusCode >= 300) {
|
|
2164
|
-
return
|
|
1170
|
+
return de_CommandError(output, context);
|
|
2165
1171
|
}
|
|
2166
1172
|
const data = await parseBody(output.body, context);
|
|
2167
1173
|
let contents = {};
|
|
@@ -2172,43 +1178,9 @@ var de_PutPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2172
1178
|
};
|
|
2173
1179
|
return response;
|
|
2174
1180
|
}, "de_PutPolicyCommand");
|
|
2175
|
-
var de_PutPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2176
|
-
const parsedOutput = {
|
|
2177
|
-
...output,
|
|
2178
|
-
body: await parseErrorBody(output.body, context)
|
|
2179
|
-
};
|
|
2180
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2181
|
-
switch (errorCode) {
|
|
2182
|
-
case "InternalErrorException":
|
|
2183
|
-
case "com.amazonaws.fms#InternalErrorException":
|
|
2184
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
2185
|
-
case "InvalidInputException":
|
|
2186
|
-
case "com.amazonaws.fms#InvalidInputException":
|
|
2187
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2188
|
-
case "InvalidOperationException":
|
|
2189
|
-
case "com.amazonaws.fms#InvalidOperationException":
|
|
2190
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
2191
|
-
case "InvalidTypeException":
|
|
2192
|
-
case "com.amazonaws.fms#InvalidTypeException":
|
|
2193
|
-
throw await de_InvalidTypeExceptionRes(parsedOutput, context);
|
|
2194
|
-
case "LimitExceededException":
|
|
2195
|
-
case "com.amazonaws.fms#LimitExceededException":
|
|
2196
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2197
|
-
case "ResourceNotFoundException":
|
|
2198
|
-
case "com.amazonaws.fms#ResourceNotFoundException":
|
|
2199
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2200
|
-
default:
|
|
2201
|
-
const parsedBody = parsedOutput.body;
|
|
2202
|
-
return throwDefaultError({
|
|
2203
|
-
output,
|
|
2204
|
-
parsedBody,
|
|
2205
|
-
errorCode
|
|
2206
|
-
});
|
|
2207
|
-
}
|
|
2208
|
-
}, "de_PutPolicyCommandError");
|
|
2209
1181
|
var de_PutProtocolsListCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2210
1182
|
if (output.statusCode >= 300) {
|
|
2211
|
-
return
|
|
1183
|
+
return de_CommandError(output, context);
|
|
2212
1184
|
}
|
|
2213
1185
|
const data = await parseBody(output.body, context);
|
|
2214
1186
|
let contents = {};
|
|
@@ -2219,40 +1191,9 @@ var de_PutProtocolsListCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2219
1191
|
};
|
|
2220
1192
|
return response;
|
|
2221
1193
|
}, "de_PutProtocolsListCommand");
|
|
2222
|
-
var de_PutProtocolsListCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2223
|
-
const parsedOutput = {
|
|
2224
|
-
...output,
|
|
2225
|
-
body: await parseErrorBody(output.body, context)
|
|
2226
|
-
};
|
|
2227
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2228
|
-
switch (errorCode) {
|
|
2229
|
-
case "InternalErrorException":
|
|
2230
|
-
case "com.amazonaws.fms#InternalErrorException":
|
|
2231
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
2232
|
-
case "InvalidInputException":
|
|
2233
|
-
case "com.amazonaws.fms#InvalidInputException":
|
|
2234
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2235
|
-
case "InvalidOperationException":
|
|
2236
|
-
case "com.amazonaws.fms#InvalidOperationException":
|
|
2237
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
2238
|
-
case "LimitExceededException":
|
|
2239
|
-
case "com.amazonaws.fms#LimitExceededException":
|
|
2240
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2241
|
-
case "ResourceNotFoundException":
|
|
2242
|
-
case "com.amazonaws.fms#ResourceNotFoundException":
|
|
2243
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2244
|
-
default:
|
|
2245
|
-
const parsedBody = parsedOutput.body;
|
|
2246
|
-
return throwDefaultError({
|
|
2247
|
-
output,
|
|
2248
|
-
parsedBody,
|
|
2249
|
-
errorCode
|
|
2250
|
-
});
|
|
2251
|
-
}
|
|
2252
|
-
}, "de_PutProtocolsListCommandError");
|
|
2253
1194
|
var de_PutResourceSetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2254
1195
|
if (output.statusCode >= 300) {
|
|
2255
|
-
return
|
|
1196
|
+
return de_CommandError(output, context);
|
|
2256
1197
|
}
|
|
2257
1198
|
const data = await parseBody(output.body, context);
|
|
2258
1199
|
let contents = {};
|
|
@@ -2263,37 +1204,9 @@ var de_PutResourceSetCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2263
1204
|
};
|
|
2264
1205
|
return response;
|
|
2265
1206
|
}, "de_PutResourceSetCommand");
|
|
2266
|
-
var de_PutResourceSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2267
|
-
const parsedOutput = {
|
|
2268
|
-
...output,
|
|
2269
|
-
body: await parseErrorBody(output.body, context)
|
|
2270
|
-
};
|
|
2271
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2272
|
-
switch (errorCode) {
|
|
2273
|
-
case "InternalErrorException":
|
|
2274
|
-
case "com.amazonaws.fms#InternalErrorException":
|
|
2275
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
2276
|
-
case "InvalidInputException":
|
|
2277
|
-
case "com.amazonaws.fms#InvalidInputException":
|
|
2278
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2279
|
-
case "InvalidOperationException":
|
|
2280
|
-
case "com.amazonaws.fms#InvalidOperationException":
|
|
2281
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
2282
|
-
case "LimitExceededException":
|
|
2283
|
-
case "com.amazonaws.fms#LimitExceededException":
|
|
2284
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2285
|
-
default:
|
|
2286
|
-
const parsedBody = parsedOutput.body;
|
|
2287
|
-
return throwDefaultError({
|
|
2288
|
-
output,
|
|
2289
|
-
parsedBody,
|
|
2290
|
-
errorCode
|
|
2291
|
-
});
|
|
2292
|
-
}
|
|
2293
|
-
}, "de_PutResourceSetCommandError");
|
|
2294
1207
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2295
1208
|
if (output.statusCode >= 300) {
|
|
2296
|
-
return
|
|
1209
|
+
return de_CommandError(output, context);
|
|
2297
1210
|
}
|
|
2298
1211
|
const data = await parseBody(output.body, context);
|
|
2299
1212
|
let contents = {};
|
|
@@ -2304,40 +1217,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2304
1217
|
};
|
|
2305
1218
|
return response;
|
|
2306
1219
|
}, "de_TagResourceCommand");
|
|
2307
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2308
|
-
const parsedOutput = {
|
|
2309
|
-
...output,
|
|
2310
|
-
body: await parseErrorBody(output.body, context)
|
|
2311
|
-
};
|
|
2312
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2313
|
-
switch (errorCode) {
|
|
2314
|
-
case "InternalErrorException":
|
|
2315
|
-
case "com.amazonaws.fms#InternalErrorException":
|
|
2316
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
2317
|
-
case "InvalidInputException":
|
|
2318
|
-
case "com.amazonaws.fms#InvalidInputException":
|
|
2319
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2320
|
-
case "InvalidOperationException":
|
|
2321
|
-
case "com.amazonaws.fms#InvalidOperationException":
|
|
2322
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
2323
|
-
case "LimitExceededException":
|
|
2324
|
-
case "com.amazonaws.fms#LimitExceededException":
|
|
2325
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2326
|
-
case "ResourceNotFoundException":
|
|
2327
|
-
case "com.amazonaws.fms#ResourceNotFoundException":
|
|
2328
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2329
|
-
default:
|
|
2330
|
-
const parsedBody = parsedOutput.body;
|
|
2331
|
-
return throwDefaultError({
|
|
2332
|
-
output,
|
|
2333
|
-
parsedBody,
|
|
2334
|
-
errorCode
|
|
2335
|
-
});
|
|
2336
|
-
}
|
|
2337
|
-
}, "de_TagResourceCommandError");
|
|
2338
1220
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2339
1221
|
if (output.statusCode >= 300) {
|
|
2340
|
-
return
|
|
1222
|
+
return de_CommandError(output, context);
|
|
2341
1223
|
}
|
|
2342
1224
|
const data = await parseBody(output.body, context);
|
|
2343
1225
|
let contents = {};
|
|
@@ -2348,7 +1230,7 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2348
1230
|
};
|
|
2349
1231
|
return response;
|
|
2350
1232
|
}, "de_UntagResourceCommand");
|
|
2351
|
-
var
|
|
1233
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2352
1234
|
const parsedOutput = {
|
|
2353
1235
|
...output,
|
|
2354
1236
|
body: await parseErrorBody(output.body, context)
|
|
@@ -2364,9 +1246,15 @@ var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context
|
|
|
2364
1246
|
case "InvalidOperationException":
|
|
2365
1247
|
case "com.amazonaws.fms#InvalidOperationException":
|
|
2366
1248
|
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
1249
|
+
case "LimitExceededException":
|
|
1250
|
+
case "com.amazonaws.fms#LimitExceededException":
|
|
1251
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2367
1252
|
case "ResourceNotFoundException":
|
|
2368
1253
|
case "com.amazonaws.fms#ResourceNotFoundException":
|
|
2369
1254
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1255
|
+
case "InvalidTypeException":
|
|
1256
|
+
case "com.amazonaws.fms#InvalidTypeException":
|
|
1257
|
+
throw await de_InvalidTypeExceptionRes(parsedOutput, context);
|
|
2370
1258
|
default:
|
|
2371
1259
|
const parsedBody = parsedOutput.body;
|
|
2372
1260
|
return throwDefaultError({
|
|
@@ -2375,7 +1263,7 @@ var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context
|
|
|
2375
1263
|
errorCode
|
|
2376
1264
|
});
|
|
2377
1265
|
}
|
|
2378
|
-
}, "
|
|
1266
|
+
}, "de_CommandError");
|
|
2379
1267
|
var de_InternalErrorExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
2380
1268
|
const body = parsedOutput.body;
|
|
2381
1269
|
const deserialized = (0, import_smithy_client._json)(body);
|