@aws-sdk/client-inspector 3.504.0 → 3.509.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +89 -1112
- package/dist-es/protocols/Aws_json1_1.js +150 -1173
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -824,7 +824,7 @@ var se_UpdateAssessmentTargetCommand = /* @__PURE__ */ __name(async (input, cont
|
|
|
824
824
|
}, "se_UpdateAssessmentTargetCommand");
|
|
825
825
|
var de_AddAttributesToFindingsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
826
826
|
if (output.statusCode >= 300) {
|
|
827
|
-
return
|
|
827
|
+
return de_CommandError(output, context);
|
|
828
828
|
}
|
|
829
829
|
const data = await parseBody(output.body, context);
|
|
830
830
|
let contents = {};
|
|
@@ -835,40 +835,9 @@ var de_AddAttributesToFindingsCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
835
835
|
};
|
|
836
836
|
return response;
|
|
837
837
|
}, "de_AddAttributesToFindingsCommand");
|
|
838
|
-
var de_AddAttributesToFindingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
839
|
-
const parsedOutput = {
|
|
840
|
-
...output,
|
|
841
|
-
body: await parseErrorBody(output.body, context)
|
|
842
|
-
};
|
|
843
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
844
|
-
switch (errorCode) {
|
|
845
|
-
case "AccessDeniedException":
|
|
846
|
-
case "com.amazonaws.inspector#AccessDeniedException":
|
|
847
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
848
|
-
case "InternalException":
|
|
849
|
-
case "com.amazonaws.inspector#InternalException":
|
|
850
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
851
|
-
case "InvalidInputException":
|
|
852
|
-
case "com.amazonaws.inspector#InvalidInputException":
|
|
853
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
854
|
-
case "NoSuchEntityException":
|
|
855
|
-
case "com.amazonaws.inspector#NoSuchEntityException":
|
|
856
|
-
throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
|
|
857
|
-
case "ServiceTemporarilyUnavailableException":
|
|
858
|
-
case "com.amazonaws.inspector#ServiceTemporarilyUnavailableException":
|
|
859
|
-
throw await de_ServiceTemporarilyUnavailableExceptionRes(parsedOutput, context);
|
|
860
|
-
default:
|
|
861
|
-
const parsedBody = parsedOutput.body;
|
|
862
|
-
return throwDefaultError({
|
|
863
|
-
output,
|
|
864
|
-
parsedBody,
|
|
865
|
-
errorCode
|
|
866
|
-
});
|
|
867
|
-
}
|
|
868
|
-
}, "de_AddAttributesToFindingsCommandError");
|
|
869
838
|
var de_CreateAssessmentTargetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
870
839
|
if (output.statusCode >= 300) {
|
|
871
|
-
return
|
|
840
|
+
return de_CommandError(output, context);
|
|
872
841
|
}
|
|
873
842
|
const data = await parseBody(output.body, context);
|
|
874
843
|
let contents = {};
|
|
@@ -879,46 +848,9 @@ var de_CreateAssessmentTargetCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
879
848
|
};
|
|
880
849
|
return response;
|
|
881
850
|
}, "de_CreateAssessmentTargetCommand");
|
|
882
|
-
var de_CreateAssessmentTargetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
883
|
-
const parsedOutput = {
|
|
884
|
-
...output,
|
|
885
|
-
body: await parseErrorBody(output.body, context)
|
|
886
|
-
};
|
|
887
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
888
|
-
switch (errorCode) {
|
|
889
|
-
case "AccessDeniedException":
|
|
890
|
-
case "com.amazonaws.inspector#AccessDeniedException":
|
|
891
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
892
|
-
case "InternalException":
|
|
893
|
-
case "com.amazonaws.inspector#InternalException":
|
|
894
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
895
|
-
case "InvalidCrossAccountRoleException":
|
|
896
|
-
case "com.amazonaws.inspector#InvalidCrossAccountRoleException":
|
|
897
|
-
throw await de_InvalidCrossAccountRoleExceptionRes(parsedOutput, context);
|
|
898
|
-
case "InvalidInputException":
|
|
899
|
-
case "com.amazonaws.inspector#InvalidInputException":
|
|
900
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
901
|
-
case "LimitExceededException":
|
|
902
|
-
case "com.amazonaws.inspector#LimitExceededException":
|
|
903
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
904
|
-
case "NoSuchEntityException":
|
|
905
|
-
case "com.amazonaws.inspector#NoSuchEntityException":
|
|
906
|
-
throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
|
|
907
|
-
case "ServiceTemporarilyUnavailableException":
|
|
908
|
-
case "com.amazonaws.inspector#ServiceTemporarilyUnavailableException":
|
|
909
|
-
throw await de_ServiceTemporarilyUnavailableExceptionRes(parsedOutput, context);
|
|
910
|
-
default:
|
|
911
|
-
const parsedBody = parsedOutput.body;
|
|
912
|
-
return throwDefaultError({
|
|
913
|
-
output,
|
|
914
|
-
parsedBody,
|
|
915
|
-
errorCode
|
|
916
|
-
});
|
|
917
|
-
}
|
|
918
|
-
}, "de_CreateAssessmentTargetCommandError");
|
|
919
851
|
var de_CreateAssessmentTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
920
852
|
if (output.statusCode >= 300) {
|
|
921
|
-
return
|
|
853
|
+
return de_CommandError(output, context);
|
|
922
854
|
}
|
|
923
855
|
const data = await parseBody(output.body, context);
|
|
924
856
|
let contents = {};
|
|
@@ -929,43 +861,9 @@ var de_CreateAssessmentTemplateCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
929
861
|
};
|
|
930
862
|
return response;
|
|
931
863
|
}, "de_CreateAssessmentTemplateCommand");
|
|
932
|
-
var de_CreateAssessmentTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
933
|
-
const parsedOutput = {
|
|
934
|
-
...output,
|
|
935
|
-
body: await parseErrorBody(output.body, context)
|
|
936
|
-
};
|
|
937
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
938
|
-
switch (errorCode) {
|
|
939
|
-
case "AccessDeniedException":
|
|
940
|
-
case "com.amazonaws.inspector#AccessDeniedException":
|
|
941
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
942
|
-
case "InternalException":
|
|
943
|
-
case "com.amazonaws.inspector#InternalException":
|
|
944
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
945
|
-
case "InvalidInputException":
|
|
946
|
-
case "com.amazonaws.inspector#InvalidInputException":
|
|
947
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
948
|
-
case "LimitExceededException":
|
|
949
|
-
case "com.amazonaws.inspector#LimitExceededException":
|
|
950
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
951
|
-
case "NoSuchEntityException":
|
|
952
|
-
case "com.amazonaws.inspector#NoSuchEntityException":
|
|
953
|
-
throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
|
|
954
|
-
case "ServiceTemporarilyUnavailableException":
|
|
955
|
-
case "com.amazonaws.inspector#ServiceTemporarilyUnavailableException":
|
|
956
|
-
throw await de_ServiceTemporarilyUnavailableExceptionRes(parsedOutput, context);
|
|
957
|
-
default:
|
|
958
|
-
const parsedBody = parsedOutput.body;
|
|
959
|
-
return throwDefaultError({
|
|
960
|
-
output,
|
|
961
|
-
parsedBody,
|
|
962
|
-
errorCode
|
|
963
|
-
});
|
|
964
|
-
}
|
|
965
|
-
}, "de_CreateAssessmentTemplateCommandError");
|
|
966
864
|
var de_CreateExclusionsPreviewCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
967
865
|
if (output.statusCode >= 300) {
|
|
968
|
-
return
|
|
866
|
+
return de_CommandError(output, context);
|
|
969
867
|
}
|
|
970
868
|
const data = await parseBody(output.body, context);
|
|
971
869
|
let contents = {};
|
|
@@ -976,43 +874,9 @@ var de_CreateExclusionsPreviewCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
976
874
|
};
|
|
977
875
|
return response;
|
|
978
876
|
}, "de_CreateExclusionsPreviewCommand");
|
|
979
|
-
var de_CreateExclusionsPreviewCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
980
|
-
const parsedOutput = {
|
|
981
|
-
...output,
|
|
982
|
-
body: await parseErrorBody(output.body, context)
|
|
983
|
-
};
|
|
984
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
985
|
-
switch (errorCode) {
|
|
986
|
-
case "AccessDeniedException":
|
|
987
|
-
case "com.amazonaws.inspector#AccessDeniedException":
|
|
988
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
989
|
-
case "InternalException":
|
|
990
|
-
case "com.amazonaws.inspector#InternalException":
|
|
991
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
992
|
-
case "InvalidInputException":
|
|
993
|
-
case "com.amazonaws.inspector#InvalidInputException":
|
|
994
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
995
|
-
case "NoSuchEntityException":
|
|
996
|
-
case "com.amazonaws.inspector#NoSuchEntityException":
|
|
997
|
-
throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
|
|
998
|
-
case "PreviewGenerationInProgressException":
|
|
999
|
-
case "com.amazonaws.inspector#PreviewGenerationInProgressException":
|
|
1000
|
-
throw await de_PreviewGenerationInProgressExceptionRes(parsedOutput, context);
|
|
1001
|
-
case "ServiceTemporarilyUnavailableException":
|
|
1002
|
-
case "com.amazonaws.inspector#ServiceTemporarilyUnavailableException":
|
|
1003
|
-
throw await de_ServiceTemporarilyUnavailableExceptionRes(parsedOutput, context);
|
|
1004
|
-
default:
|
|
1005
|
-
const parsedBody = parsedOutput.body;
|
|
1006
|
-
return throwDefaultError({
|
|
1007
|
-
output,
|
|
1008
|
-
parsedBody,
|
|
1009
|
-
errorCode
|
|
1010
|
-
});
|
|
1011
|
-
}
|
|
1012
|
-
}, "de_CreateExclusionsPreviewCommandError");
|
|
1013
877
|
var de_CreateResourceGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1014
878
|
if (output.statusCode >= 300) {
|
|
1015
|
-
return
|
|
879
|
+
return de_CommandError(output, context);
|
|
1016
880
|
}
|
|
1017
881
|
const data = await parseBody(output.body, context);
|
|
1018
882
|
let contents = {};
|
|
@@ -1023,40 +887,9 @@ var de_CreateResourceGroupCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1023
887
|
};
|
|
1024
888
|
return response;
|
|
1025
889
|
}, "de_CreateResourceGroupCommand");
|
|
1026
|
-
var de_CreateResourceGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1027
|
-
const parsedOutput = {
|
|
1028
|
-
...output,
|
|
1029
|
-
body: await parseErrorBody(output.body, context)
|
|
1030
|
-
};
|
|
1031
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1032
|
-
switch (errorCode) {
|
|
1033
|
-
case "AccessDeniedException":
|
|
1034
|
-
case "com.amazonaws.inspector#AccessDeniedException":
|
|
1035
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1036
|
-
case "InternalException":
|
|
1037
|
-
case "com.amazonaws.inspector#InternalException":
|
|
1038
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1039
|
-
case "InvalidInputException":
|
|
1040
|
-
case "com.amazonaws.inspector#InvalidInputException":
|
|
1041
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1042
|
-
case "LimitExceededException":
|
|
1043
|
-
case "com.amazonaws.inspector#LimitExceededException":
|
|
1044
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1045
|
-
case "ServiceTemporarilyUnavailableException":
|
|
1046
|
-
case "com.amazonaws.inspector#ServiceTemporarilyUnavailableException":
|
|
1047
|
-
throw await de_ServiceTemporarilyUnavailableExceptionRes(parsedOutput, context);
|
|
1048
|
-
default:
|
|
1049
|
-
const parsedBody = parsedOutput.body;
|
|
1050
|
-
return throwDefaultError({
|
|
1051
|
-
output,
|
|
1052
|
-
parsedBody,
|
|
1053
|
-
errorCode
|
|
1054
|
-
});
|
|
1055
|
-
}
|
|
1056
|
-
}, "de_CreateResourceGroupCommandError");
|
|
1057
890
|
var de_DeleteAssessmentRunCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1058
891
|
if (output.statusCode >= 300) {
|
|
1059
|
-
return
|
|
892
|
+
return de_CommandError(output, context);
|
|
1060
893
|
}
|
|
1061
894
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1062
895
|
const response = {
|
|
@@ -1064,43 +897,9 @@ var de_DeleteAssessmentRunCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1064
897
|
};
|
|
1065
898
|
return response;
|
|
1066
899
|
}, "de_DeleteAssessmentRunCommand");
|
|
1067
|
-
var de_DeleteAssessmentRunCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1068
|
-
const parsedOutput = {
|
|
1069
|
-
...output,
|
|
1070
|
-
body: await parseErrorBody(output.body, context)
|
|
1071
|
-
};
|
|
1072
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1073
|
-
switch (errorCode) {
|
|
1074
|
-
case "AccessDeniedException":
|
|
1075
|
-
case "com.amazonaws.inspector#AccessDeniedException":
|
|
1076
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1077
|
-
case "AssessmentRunInProgressException":
|
|
1078
|
-
case "com.amazonaws.inspector#AssessmentRunInProgressException":
|
|
1079
|
-
throw await de_AssessmentRunInProgressExceptionRes(parsedOutput, context);
|
|
1080
|
-
case "InternalException":
|
|
1081
|
-
case "com.amazonaws.inspector#InternalException":
|
|
1082
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1083
|
-
case "InvalidInputException":
|
|
1084
|
-
case "com.amazonaws.inspector#InvalidInputException":
|
|
1085
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1086
|
-
case "NoSuchEntityException":
|
|
1087
|
-
case "com.amazonaws.inspector#NoSuchEntityException":
|
|
1088
|
-
throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
|
|
1089
|
-
case "ServiceTemporarilyUnavailableException":
|
|
1090
|
-
case "com.amazonaws.inspector#ServiceTemporarilyUnavailableException":
|
|
1091
|
-
throw await de_ServiceTemporarilyUnavailableExceptionRes(parsedOutput, context);
|
|
1092
|
-
default:
|
|
1093
|
-
const parsedBody = parsedOutput.body;
|
|
1094
|
-
return throwDefaultError({
|
|
1095
|
-
output,
|
|
1096
|
-
parsedBody,
|
|
1097
|
-
errorCode
|
|
1098
|
-
});
|
|
1099
|
-
}
|
|
1100
|
-
}, "de_DeleteAssessmentRunCommandError");
|
|
1101
900
|
var de_DeleteAssessmentTargetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1102
901
|
if (output.statusCode >= 300) {
|
|
1103
|
-
return
|
|
902
|
+
return de_CommandError(output, context);
|
|
1104
903
|
}
|
|
1105
904
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1106
905
|
const response = {
|
|
@@ -1108,43 +907,9 @@ var de_DeleteAssessmentTargetCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1108
907
|
};
|
|
1109
908
|
return response;
|
|
1110
909
|
}, "de_DeleteAssessmentTargetCommand");
|
|
1111
|
-
var de_DeleteAssessmentTargetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1112
|
-
const parsedOutput = {
|
|
1113
|
-
...output,
|
|
1114
|
-
body: await parseErrorBody(output.body, context)
|
|
1115
|
-
};
|
|
1116
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1117
|
-
switch (errorCode) {
|
|
1118
|
-
case "AccessDeniedException":
|
|
1119
|
-
case "com.amazonaws.inspector#AccessDeniedException":
|
|
1120
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1121
|
-
case "AssessmentRunInProgressException":
|
|
1122
|
-
case "com.amazonaws.inspector#AssessmentRunInProgressException":
|
|
1123
|
-
throw await de_AssessmentRunInProgressExceptionRes(parsedOutput, context);
|
|
1124
|
-
case "InternalException":
|
|
1125
|
-
case "com.amazonaws.inspector#InternalException":
|
|
1126
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1127
|
-
case "InvalidInputException":
|
|
1128
|
-
case "com.amazonaws.inspector#InvalidInputException":
|
|
1129
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1130
|
-
case "NoSuchEntityException":
|
|
1131
|
-
case "com.amazonaws.inspector#NoSuchEntityException":
|
|
1132
|
-
throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
|
|
1133
|
-
case "ServiceTemporarilyUnavailableException":
|
|
1134
|
-
case "com.amazonaws.inspector#ServiceTemporarilyUnavailableException":
|
|
1135
|
-
throw await de_ServiceTemporarilyUnavailableExceptionRes(parsedOutput, context);
|
|
1136
|
-
default:
|
|
1137
|
-
const parsedBody = parsedOutput.body;
|
|
1138
|
-
return throwDefaultError({
|
|
1139
|
-
output,
|
|
1140
|
-
parsedBody,
|
|
1141
|
-
errorCode
|
|
1142
|
-
});
|
|
1143
|
-
}
|
|
1144
|
-
}, "de_DeleteAssessmentTargetCommandError");
|
|
1145
910
|
var de_DeleteAssessmentTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1146
911
|
if (output.statusCode >= 300) {
|
|
1147
|
-
return
|
|
912
|
+
return de_CommandError(output, context);
|
|
1148
913
|
}
|
|
1149
914
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1150
915
|
const response = {
|
|
@@ -1152,43 +917,9 @@ var de_DeleteAssessmentTemplateCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1152
917
|
};
|
|
1153
918
|
return response;
|
|
1154
919
|
}, "de_DeleteAssessmentTemplateCommand");
|
|
1155
|
-
var de_DeleteAssessmentTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1156
|
-
const parsedOutput = {
|
|
1157
|
-
...output,
|
|
1158
|
-
body: await parseErrorBody(output.body, context)
|
|
1159
|
-
};
|
|
1160
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1161
|
-
switch (errorCode) {
|
|
1162
|
-
case "AccessDeniedException":
|
|
1163
|
-
case "com.amazonaws.inspector#AccessDeniedException":
|
|
1164
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1165
|
-
case "AssessmentRunInProgressException":
|
|
1166
|
-
case "com.amazonaws.inspector#AssessmentRunInProgressException":
|
|
1167
|
-
throw await de_AssessmentRunInProgressExceptionRes(parsedOutput, context);
|
|
1168
|
-
case "InternalException":
|
|
1169
|
-
case "com.amazonaws.inspector#InternalException":
|
|
1170
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1171
|
-
case "InvalidInputException":
|
|
1172
|
-
case "com.amazonaws.inspector#InvalidInputException":
|
|
1173
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1174
|
-
case "NoSuchEntityException":
|
|
1175
|
-
case "com.amazonaws.inspector#NoSuchEntityException":
|
|
1176
|
-
throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
|
|
1177
|
-
case "ServiceTemporarilyUnavailableException":
|
|
1178
|
-
case "com.amazonaws.inspector#ServiceTemporarilyUnavailableException":
|
|
1179
|
-
throw await de_ServiceTemporarilyUnavailableExceptionRes(parsedOutput, context);
|
|
1180
|
-
default:
|
|
1181
|
-
const parsedBody = parsedOutput.body;
|
|
1182
|
-
return throwDefaultError({
|
|
1183
|
-
output,
|
|
1184
|
-
parsedBody,
|
|
1185
|
-
errorCode
|
|
1186
|
-
});
|
|
1187
|
-
}
|
|
1188
|
-
}, "de_DeleteAssessmentTemplateCommandError");
|
|
1189
920
|
var de_DescribeAssessmentRunsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1190
921
|
if (output.statusCode >= 300) {
|
|
1191
|
-
return
|
|
922
|
+
return de_CommandError(output, context);
|
|
1192
923
|
}
|
|
1193
924
|
const data = await parseBody(output.body, context);
|
|
1194
925
|
let contents = {};
|
|
@@ -1199,31 +930,9 @@ var de_DescribeAssessmentRunsCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1199
930
|
};
|
|
1200
931
|
return response;
|
|
1201
932
|
}, "de_DescribeAssessmentRunsCommand");
|
|
1202
|
-
var de_DescribeAssessmentRunsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1203
|
-
const parsedOutput = {
|
|
1204
|
-
...output,
|
|
1205
|
-
body: await parseErrorBody(output.body, context)
|
|
1206
|
-
};
|
|
1207
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1208
|
-
switch (errorCode) {
|
|
1209
|
-
case "InternalException":
|
|
1210
|
-
case "com.amazonaws.inspector#InternalException":
|
|
1211
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1212
|
-
case "InvalidInputException":
|
|
1213
|
-
case "com.amazonaws.inspector#InvalidInputException":
|
|
1214
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1215
|
-
default:
|
|
1216
|
-
const parsedBody = parsedOutput.body;
|
|
1217
|
-
return throwDefaultError({
|
|
1218
|
-
output,
|
|
1219
|
-
parsedBody,
|
|
1220
|
-
errorCode
|
|
1221
|
-
});
|
|
1222
|
-
}
|
|
1223
|
-
}, "de_DescribeAssessmentRunsCommandError");
|
|
1224
933
|
var de_DescribeAssessmentTargetsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1225
934
|
if (output.statusCode >= 300) {
|
|
1226
|
-
return
|
|
935
|
+
return de_CommandError(output, context);
|
|
1227
936
|
}
|
|
1228
937
|
const data = await parseBody(output.body, context);
|
|
1229
938
|
let contents = {};
|
|
@@ -1234,31 +943,9 @@ var de_DescribeAssessmentTargetsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1234
943
|
};
|
|
1235
944
|
return response;
|
|
1236
945
|
}, "de_DescribeAssessmentTargetsCommand");
|
|
1237
|
-
var de_DescribeAssessmentTargetsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1238
|
-
const parsedOutput = {
|
|
1239
|
-
...output,
|
|
1240
|
-
body: await parseErrorBody(output.body, context)
|
|
1241
|
-
};
|
|
1242
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1243
|
-
switch (errorCode) {
|
|
1244
|
-
case "InternalException":
|
|
1245
|
-
case "com.amazonaws.inspector#InternalException":
|
|
1246
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1247
|
-
case "InvalidInputException":
|
|
1248
|
-
case "com.amazonaws.inspector#InvalidInputException":
|
|
1249
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1250
|
-
default:
|
|
1251
|
-
const parsedBody = parsedOutput.body;
|
|
1252
|
-
return throwDefaultError({
|
|
1253
|
-
output,
|
|
1254
|
-
parsedBody,
|
|
1255
|
-
errorCode
|
|
1256
|
-
});
|
|
1257
|
-
}
|
|
1258
|
-
}, "de_DescribeAssessmentTargetsCommandError");
|
|
1259
946
|
var de_DescribeAssessmentTemplatesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1260
947
|
if (output.statusCode >= 300) {
|
|
1261
|
-
return
|
|
948
|
+
return de_CommandError(output, context);
|
|
1262
949
|
}
|
|
1263
950
|
const data = await parseBody(output.body, context);
|
|
1264
951
|
let contents = {};
|
|
@@ -1269,31 +956,9 @@ var de_DescribeAssessmentTemplatesCommand = /* @__PURE__ */ __name(async (output
|
|
|
1269
956
|
};
|
|
1270
957
|
return response;
|
|
1271
958
|
}, "de_DescribeAssessmentTemplatesCommand");
|
|
1272
|
-
var de_DescribeAssessmentTemplatesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1273
|
-
const parsedOutput = {
|
|
1274
|
-
...output,
|
|
1275
|
-
body: await parseErrorBody(output.body, context)
|
|
1276
|
-
};
|
|
1277
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1278
|
-
switch (errorCode) {
|
|
1279
|
-
case "InternalException":
|
|
1280
|
-
case "com.amazonaws.inspector#InternalException":
|
|
1281
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1282
|
-
case "InvalidInputException":
|
|
1283
|
-
case "com.amazonaws.inspector#InvalidInputException":
|
|
1284
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1285
|
-
default:
|
|
1286
|
-
const parsedBody = parsedOutput.body;
|
|
1287
|
-
return throwDefaultError({
|
|
1288
|
-
output,
|
|
1289
|
-
parsedBody,
|
|
1290
|
-
errorCode
|
|
1291
|
-
});
|
|
1292
|
-
}
|
|
1293
|
-
}, "de_DescribeAssessmentTemplatesCommandError");
|
|
1294
959
|
var de_DescribeCrossAccountAccessRoleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1295
960
|
if (output.statusCode >= 300) {
|
|
1296
|
-
return
|
|
961
|
+
return de_CommandError(output, context);
|
|
1297
962
|
}
|
|
1298
963
|
const data = await parseBody(output.body, context);
|
|
1299
964
|
let contents = {};
|
|
@@ -1304,28 +969,9 @@ var de_DescribeCrossAccountAccessRoleCommand = /* @__PURE__ */ __name(async (out
|
|
|
1304
969
|
};
|
|
1305
970
|
return response;
|
|
1306
971
|
}, "de_DescribeCrossAccountAccessRoleCommand");
|
|
1307
|
-
var de_DescribeCrossAccountAccessRoleCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1308
|
-
const parsedOutput = {
|
|
1309
|
-
...output,
|
|
1310
|
-
body: await parseErrorBody(output.body, context)
|
|
1311
|
-
};
|
|
1312
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1313
|
-
switch (errorCode) {
|
|
1314
|
-
case "InternalException":
|
|
1315
|
-
case "com.amazonaws.inspector#InternalException":
|
|
1316
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1317
|
-
default:
|
|
1318
|
-
const parsedBody = parsedOutput.body;
|
|
1319
|
-
return throwDefaultError({
|
|
1320
|
-
output,
|
|
1321
|
-
parsedBody,
|
|
1322
|
-
errorCode
|
|
1323
|
-
});
|
|
1324
|
-
}
|
|
1325
|
-
}, "de_DescribeCrossAccountAccessRoleCommandError");
|
|
1326
972
|
var de_DescribeExclusionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1327
973
|
if (output.statusCode >= 300) {
|
|
1328
|
-
return
|
|
974
|
+
return de_CommandError(output, context);
|
|
1329
975
|
}
|
|
1330
976
|
const data = await parseBody(output.body, context);
|
|
1331
977
|
let contents = {};
|
|
@@ -1336,31 +982,9 @@ var de_DescribeExclusionsCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1336
982
|
};
|
|
1337
983
|
return response;
|
|
1338
984
|
}, "de_DescribeExclusionsCommand");
|
|
1339
|
-
var de_DescribeExclusionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1340
|
-
const parsedOutput = {
|
|
1341
|
-
...output,
|
|
1342
|
-
body: await parseErrorBody(output.body, context)
|
|
1343
|
-
};
|
|
1344
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1345
|
-
switch (errorCode) {
|
|
1346
|
-
case "InternalException":
|
|
1347
|
-
case "com.amazonaws.inspector#InternalException":
|
|
1348
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1349
|
-
case "InvalidInputException":
|
|
1350
|
-
case "com.amazonaws.inspector#InvalidInputException":
|
|
1351
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1352
|
-
default:
|
|
1353
|
-
const parsedBody = parsedOutput.body;
|
|
1354
|
-
return throwDefaultError({
|
|
1355
|
-
output,
|
|
1356
|
-
parsedBody,
|
|
1357
|
-
errorCode
|
|
1358
|
-
});
|
|
1359
|
-
}
|
|
1360
|
-
}, "de_DescribeExclusionsCommandError");
|
|
1361
985
|
var de_DescribeFindingsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1362
986
|
if (output.statusCode >= 300) {
|
|
1363
|
-
return
|
|
987
|
+
return de_CommandError(output, context);
|
|
1364
988
|
}
|
|
1365
989
|
const data = await parseBody(output.body, context);
|
|
1366
990
|
let contents = {};
|
|
@@ -1371,31 +995,9 @@ var de_DescribeFindingsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1371
995
|
};
|
|
1372
996
|
return response;
|
|
1373
997
|
}, "de_DescribeFindingsCommand");
|
|
1374
|
-
var de_DescribeFindingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1375
|
-
const parsedOutput = {
|
|
1376
|
-
...output,
|
|
1377
|
-
body: await parseErrorBody(output.body, context)
|
|
1378
|
-
};
|
|
1379
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1380
|
-
switch (errorCode) {
|
|
1381
|
-
case "InternalException":
|
|
1382
|
-
case "com.amazonaws.inspector#InternalException":
|
|
1383
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1384
|
-
case "InvalidInputException":
|
|
1385
|
-
case "com.amazonaws.inspector#InvalidInputException":
|
|
1386
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1387
|
-
default:
|
|
1388
|
-
const parsedBody = parsedOutput.body;
|
|
1389
|
-
return throwDefaultError({
|
|
1390
|
-
output,
|
|
1391
|
-
parsedBody,
|
|
1392
|
-
errorCode
|
|
1393
|
-
});
|
|
1394
|
-
}
|
|
1395
|
-
}, "de_DescribeFindingsCommandError");
|
|
1396
998
|
var de_DescribeResourceGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1397
999
|
if (output.statusCode >= 300) {
|
|
1398
|
-
return
|
|
1000
|
+
return de_CommandError(output, context);
|
|
1399
1001
|
}
|
|
1400
1002
|
const data = await parseBody(output.body, context);
|
|
1401
1003
|
let contents = {};
|
|
@@ -1406,31 +1008,9 @@ var de_DescribeResourceGroupsCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1406
1008
|
};
|
|
1407
1009
|
return response;
|
|
1408
1010
|
}, "de_DescribeResourceGroupsCommand");
|
|
1409
|
-
var de_DescribeResourceGroupsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1410
|
-
const parsedOutput = {
|
|
1411
|
-
...output,
|
|
1412
|
-
body: await parseErrorBody(output.body, context)
|
|
1413
|
-
};
|
|
1414
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1415
|
-
switch (errorCode) {
|
|
1416
|
-
case "InternalException":
|
|
1417
|
-
case "com.amazonaws.inspector#InternalException":
|
|
1418
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1419
|
-
case "InvalidInputException":
|
|
1420
|
-
case "com.amazonaws.inspector#InvalidInputException":
|
|
1421
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1422
|
-
default:
|
|
1423
|
-
const parsedBody = parsedOutput.body;
|
|
1424
|
-
return throwDefaultError({
|
|
1425
|
-
output,
|
|
1426
|
-
parsedBody,
|
|
1427
|
-
errorCode
|
|
1428
|
-
});
|
|
1429
|
-
}
|
|
1430
|
-
}, "de_DescribeResourceGroupsCommandError");
|
|
1431
1011
|
var de_DescribeRulesPackagesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1432
1012
|
if (output.statusCode >= 300) {
|
|
1433
|
-
return
|
|
1013
|
+
return de_CommandError(output, context);
|
|
1434
1014
|
}
|
|
1435
1015
|
const data = await parseBody(output.body, context);
|
|
1436
1016
|
let contents = {};
|
|
@@ -1441,31 +1021,9 @@ var de_DescribeRulesPackagesCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1441
1021
|
};
|
|
1442
1022
|
return response;
|
|
1443
1023
|
}, "de_DescribeRulesPackagesCommand");
|
|
1444
|
-
var de_DescribeRulesPackagesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1445
|
-
const parsedOutput = {
|
|
1446
|
-
...output,
|
|
1447
|
-
body: await parseErrorBody(output.body, context)
|
|
1448
|
-
};
|
|
1449
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1450
|
-
switch (errorCode) {
|
|
1451
|
-
case "InternalException":
|
|
1452
|
-
case "com.amazonaws.inspector#InternalException":
|
|
1453
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1454
|
-
case "InvalidInputException":
|
|
1455
|
-
case "com.amazonaws.inspector#InvalidInputException":
|
|
1456
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1457
|
-
default:
|
|
1458
|
-
const parsedBody = parsedOutput.body;
|
|
1459
|
-
return throwDefaultError({
|
|
1460
|
-
output,
|
|
1461
|
-
parsedBody,
|
|
1462
|
-
errorCode
|
|
1463
|
-
});
|
|
1464
|
-
}
|
|
1465
|
-
}, "de_DescribeRulesPackagesCommandError");
|
|
1466
1024
|
var de_GetAssessmentReportCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1467
1025
|
if (output.statusCode >= 300) {
|
|
1468
|
-
return
|
|
1026
|
+
return de_CommandError(output, context);
|
|
1469
1027
|
}
|
|
1470
1028
|
const data = await parseBody(output.body, context);
|
|
1471
1029
|
let contents = {};
|
|
@@ -1476,46 +1034,9 @@ var de_GetAssessmentReportCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1476
1034
|
};
|
|
1477
1035
|
return response;
|
|
1478
1036
|
}, "de_GetAssessmentReportCommand");
|
|
1479
|
-
var de_GetAssessmentReportCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1480
|
-
const parsedOutput = {
|
|
1481
|
-
...output,
|
|
1482
|
-
body: await parseErrorBody(output.body, context)
|
|
1483
|
-
};
|
|
1484
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1485
|
-
switch (errorCode) {
|
|
1486
|
-
case "AccessDeniedException":
|
|
1487
|
-
case "com.amazonaws.inspector#AccessDeniedException":
|
|
1488
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1489
|
-
case "AssessmentRunInProgressException":
|
|
1490
|
-
case "com.amazonaws.inspector#AssessmentRunInProgressException":
|
|
1491
|
-
throw await de_AssessmentRunInProgressExceptionRes(parsedOutput, context);
|
|
1492
|
-
case "InternalException":
|
|
1493
|
-
case "com.amazonaws.inspector#InternalException":
|
|
1494
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1495
|
-
case "InvalidInputException":
|
|
1496
|
-
case "com.amazonaws.inspector#InvalidInputException":
|
|
1497
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1498
|
-
case "NoSuchEntityException":
|
|
1499
|
-
case "com.amazonaws.inspector#NoSuchEntityException":
|
|
1500
|
-
throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
|
|
1501
|
-
case "ServiceTemporarilyUnavailableException":
|
|
1502
|
-
case "com.amazonaws.inspector#ServiceTemporarilyUnavailableException":
|
|
1503
|
-
throw await de_ServiceTemporarilyUnavailableExceptionRes(parsedOutput, context);
|
|
1504
|
-
case "UnsupportedFeatureException":
|
|
1505
|
-
case "com.amazonaws.inspector#UnsupportedFeatureException":
|
|
1506
|
-
throw await de_UnsupportedFeatureExceptionRes(parsedOutput, context);
|
|
1507
|
-
default:
|
|
1508
|
-
const parsedBody = parsedOutput.body;
|
|
1509
|
-
return throwDefaultError({
|
|
1510
|
-
output,
|
|
1511
|
-
parsedBody,
|
|
1512
|
-
errorCode
|
|
1513
|
-
});
|
|
1514
|
-
}
|
|
1515
|
-
}, "de_GetAssessmentReportCommandError");
|
|
1516
1037
|
var de_GetExclusionsPreviewCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1517
1038
|
if (output.statusCode >= 300) {
|
|
1518
|
-
return
|
|
1039
|
+
return de_CommandError(output, context);
|
|
1519
1040
|
}
|
|
1520
1041
|
const data = await parseBody(output.body, context);
|
|
1521
1042
|
let contents = {};
|
|
@@ -1526,37 +1047,9 @@ var de_GetExclusionsPreviewCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1526
1047
|
};
|
|
1527
1048
|
return response;
|
|
1528
1049
|
}, "de_GetExclusionsPreviewCommand");
|
|
1529
|
-
var de_GetExclusionsPreviewCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1530
|
-
const parsedOutput = {
|
|
1531
|
-
...output,
|
|
1532
|
-
body: await parseErrorBody(output.body, context)
|
|
1533
|
-
};
|
|
1534
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1535
|
-
switch (errorCode) {
|
|
1536
|
-
case "AccessDeniedException":
|
|
1537
|
-
case "com.amazonaws.inspector#AccessDeniedException":
|
|
1538
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1539
|
-
case "InternalException":
|
|
1540
|
-
case "com.amazonaws.inspector#InternalException":
|
|
1541
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1542
|
-
case "InvalidInputException":
|
|
1543
|
-
case "com.amazonaws.inspector#InvalidInputException":
|
|
1544
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1545
|
-
case "NoSuchEntityException":
|
|
1546
|
-
case "com.amazonaws.inspector#NoSuchEntityException":
|
|
1547
|
-
throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
|
|
1548
|
-
default:
|
|
1549
|
-
const parsedBody = parsedOutput.body;
|
|
1550
|
-
return throwDefaultError({
|
|
1551
|
-
output,
|
|
1552
|
-
parsedBody,
|
|
1553
|
-
errorCode
|
|
1554
|
-
});
|
|
1555
|
-
}
|
|
1556
|
-
}, "de_GetExclusionsPreviewCommandError");
|
|
1557
1050
|
var de_GetTelemetryMetadataCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1558
1051
|
if (output.statusCode >= 300) {
|
|
1559
|
-
return
|
|
1052
|
+
return de_CommandError(output, context);
|
|
1560
1053
|
}
|
|
1561
1054
|
const data = await parseBody(output.body, context);
|
|
1562
1055
|
let contents = {};
|
|
@@ -1567,37 +1060,9 @@ var de_GetTelemetryMetadataCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1567
1060
|
};
|
|
1568
1061
|
return response;
|
|
1569
1062
|
}, "de_GetTelemetryMetadataCommand");
|
|
1570
|
-
var de_GetTelemetryMetadataCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1571
|
-
const parsedOutput = {
|
|
1572
|
-
...output,
|
|
1573
|
-
body: await parseErrorBody(output.body, context)
|
|
1574
|
-
};
|
|
1575
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1576
|
-
switch (errorCode) {
|
|
1577
|
-
case "AccessDeniedException":
|
|
1578
|
-
case "com.amazonaws.inspector#AccessDeniedException":
|
|
1579
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1580
|
-
case "InternalException":
|
|
1581
|
-
case "com.amazonaws.inspector#InternalException":
|
|
1582
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1583
|
-
case "InvalidInputException":
|
|
1584
|
-
case "com.amazonaws.inspector#InvalidInputException":
|
|
1585
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1586
|
-
case "NoSuchEntityException":
|
|
1587
|
-
case "com.amazonaws.inspector#NoSuchEntityException":
|
|
1588
|
-
throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
|
|
1589
|
-
default:
|
|
1590
|
-
const parsedBody = parsedOutput.body;
|
|
1591
|
-
return throwDefaultError({
|
|
1592
|
-
output,
|
|
1593
|
-
parsedBody,
|
|
1594
|
-
errorCode
|
|
1595
|
-
});
|
|
1596
|
-
}
|
|
1597
|
-
}, "de_GetTelemetryMetadataCommandError");
|
|
1598
1063
|
var de_ListAssessmentRunAgentsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1599
1064
|
if (output.statusCode >= 300) {
|
|
1600
|
-
return
|
|
1065
|
+
return de_CommandError(output, context);
|
|
1601
1066
|
}
|
|
1602
1067
|
const data = await parseBody(output.body, context);
|
|
1603
1068
|
let contents = {};
|
|
@@ -1608,78 +1073,22 @@ var de_ListAssessmentRunAgentsCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1608
1073
|
};
|
|
1609
1074
|
return response;
|
|
1610
1075
|
}, "de_ListAssessmentRunAgentsCommand");
|
|
1611
|
-
var
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
case "InternalException":
|
|
1622
|
-
case "com.amazonaws.inspector#InternalException":
|
|
1623
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1624
|
-
case "InvalidInputException":
|
|
1625
|
-
case "com.amazonaws.inspector#InvalidInputException":
|
|
1626
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1627
|
-
case "NoSuchEntityException":
|
|
1628
|
-
case "com.amazonaws.inspector#NoSuchEntityException":
|
|
1629
|
-
throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
|
|
1630
|
-
default:
|
|
1631
|
-
const parsedBody = parsedOutput.body;
|
|
1632
|
-
return throwDefaultError({
|
|
1633
|
-
output,
|
|
1634
|
-
parsedBody,
|
|
1635
|
-
errorCode
|
|
1636
|
-
});
|
|
1637
|
-
}
|
|
1638
|
-
}, "de_ListAssessmentRunAgentsCommandError");
|
|
1639
|
-
var de_ListAssessmentRunsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1640
|
-
if (output.statusCode >= 300) {
|
|
1641
|
-
return de_ListAssessmentRunsCommandError(output, context);
|
|
1642
|
-
}
|
|
1643
|
-
const data = await parseBody(output.body, context);
|
|
1644
|
-
let contents = {};
|
|
1645
|
-
contents = (0, import_smithy_client._json)(data);
|
|
1646
|
-
const response = {
|
|
1647
|
-
$metadata: deserializeMetadata(output),
|
|
1648
|
-
...contents
|
|
1076
|
+
var de_ListAssessmentRunsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1077
|
+
if (output.statusCode >= 300) {
|
|
1078
|
+
return de_CommandError(output, context);
|
|
1079
|
+
}
|
|
1080
|
+
const data = await parseBody(output.body, context);
|
|
1081
|
+
let contents = {};
|
|
1082
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1083
|
+
const response = {
|
|
1084
|
+
$metadata: deserializeMetadata(output),
|
|
1085
|
+
...contents
|
|
1649
1086
|
};
|
|
1650
1087
|
return response;
|
|
1651
1088
|
}, "de_ListAssessmentRunsCommand");
|
|
1652
|
-
var de_ListAssessmentRunsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1653
|
-
const parsedOutput = {
|
|
1654
|
-
...output,
|
|
1655
|
-
body: await parseErrorBody(output.body, context)
|
|
1656
|
-
};
|
|
1657
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1658
|
-
switch (errorCode) {
|
|
1659
|
-
case "AccessDeniedException":
|
|
1660
|
-
case "com.amazonaws.inspector#AccessDeniedException":
|
|
1661
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1662
|
-
case "InternalException":
|
|
1663
|
-
case "com.amazonaws.inspector#InternalException":
|
|
1664
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1665
|
-
case "InvalidInputException":
|
|
1666
|
-
case "com.amazonaws.inspector#InvalidInputException":
|
|
1667
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1668
|
-
case "NoSuchEntityException":
|
|
1669
|
-
case "com.amazonaws.inspector#NoSuchEntityException":
|
|
1670
|
-
throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
|
|
1671
|
-
default:
|
|
1672
|
-
const parsedBody = parsedOutput.body;
|
|
1673
|
-
return throwDefaultError({
|
|
1674
|
-
output,
|
|
1675
|
-
parsedBody,
|
|
1676
|
-
errorCode
|
|
1677
|
-
});
|
|
1678
|
-
}
|
|
1679
|
-
}, "de_ListAssessmentRunsCommandError");
|
|
1680
1089
|
var de_ListAssessmentTargetsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1681
1090
|
if (output.statusCode >= 300) {
|
|
1682
|
-
return
|
|
1091
|
+
return de_CommandError(output, context);
|
|
1683
1092
|
}
|
|
1684
1093
|
const data = await parseBody(output.body, context);
|
|
1685
1094
|
let contents = {};
|
|
@@ -1690,34 +1099,9 @@ var de_ListAssessmentTargetsCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1690
1099
|
};
|
|
1691
1100
|
return response;
|
|
1692
1101
|
}, "de_ListAssessmentTargetsCommand");
|
|
1693
|
-
var de_ListAssessmentTargetsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1694
|
-
const parsedOutput = {
|
|
1695
|
-
...output,
|
|
1696
|
-
body: await parseErrorBody(output.body, context)
|
|
1697
|
-
};
|
|
1698
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1699
|
-
switch (errorCode) {
|
|
1700
|
-
case "AccessDeniedException":
|
|
1701
|
-
case "com.amazonaws.inspector#AccessDeniedException":
|
|
1702
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1703
|
-
case "InternalException":
|
|
1704
|
-
case "com.amazonaws.inspector#InternalException":
|
|
1705
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1706
|
-
case "InvalidInputException":
|
|
1707
|
-
case "com.amazonaws.inspector#InvalidInputException":
|
|
1708
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1709
|
-
default:
|
|
1710
|
-
const parsedBody = parsedOutput.body;
|
|
1711
|
-
return throwDefaultError({
|
|
1712
|
-
output,
|
|
1713
|
-
parsedBody,
|
|
1714
|
-
errorCode
|
|
1715
|
-
});
|
|
1716
|
-
}
|
|
1717
|
-
}, "de_ListAssessmentTargetsCommandError");
|
|
1718
1102
|
var de_ListAssessmentTemplatesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1719
1103
|
if (output.statusCode >= 300) {
|
|
1720
|
-
return
|
|
1104
|
+
return de_CommandError(output, context);
|
|
1721
1105
|
}
|
|
1722
1106
|
const data = await parseBody(output.body, context);
|
|
1723
1107
|
let contents = {};
|
|
@@ -1728,37 +1112,9 @@ var de_ListAssessmentTemplatesCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1728
1112
|
};
|
|
1729
1113
|
return response;
|
|
1730
1114
|
}, "de_ListAssessmentTemplatesCommand");
|
|
1731
|
-
var de_ListAssessmentTemplatesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1732
|
-
const parsedOutput = {
|
|
1733
|
-
...output,
|
|
1734
|
-
body: await parseErrorBody(output.body, context)
|
|
1735
|
-
};
|
|
1736
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1737
|
-
switch (errorCode) {
|
|
1738
|
-
case "AccessDeniedException":
|
|
1739
|
-
case "com.amazonaws.inspector#AccessDeniedException":
|
|
1740
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1741
|
-
case "InternalException":
|
|
1742
|
-
case "com.amazonaws.inspector#InternalException":
|
|
1743
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1744
|
-
case "InvalidInputException":
|
|
1745
|
-
case "com.amazonaws.inspector#InvalidInputException":
|
|
1746
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1747
|
-
case "NoSuchEntityException":
|
|
1748
|
-
case "com.amazonaws.inspector#NoSuchEntityException":
|
|
1749
|
-
throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
|
|
1750
|
-
default:
|
|
1751
|
-
const parsedBody = parsedOutput.body;
|
|
1752
|
-
return throwDefaultError({
|
|
1753
|
-
output,
|
|
1754
|
-
parsedBody,
|
|
1755
|
-
errorCode
|
|
1756
|
-
});
|
|
1757
|
-
}
|
|
1758
|
-
}, "de_ListAssessmentTemplatesCommandError");
|
|
1759
1115
|
var de_ListEventSubscriptionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1760
1116
|
if (output.statusCode >= 300) {
|
|
1761
|
-
return
|
|
1117
|
+
return de_CommandError(output, context);
|
|
1762
1118
|
}
|
|
1763
1119
|
const data = await parseBody(output.body, context);
|
|
1764
1120
|
let contents = {};
|
|
@@ -1769,37 +1125,9 @@ var de_ListEventSubscriptionsCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1769
1125
|
};
|
|
1770
1126
|
return response;
|
|
1771
1127
|
}, "de_ListEventSubscriptionsCommand");
|
|
1772
|
-
var de_ListEventSubscriptionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1773
|
-
const parsedOutput = {
|
|
1774
|
-
...output,
|
|
1775
|
-
body: await parseErrorBody(output.body, context)
|
|
1776
|
-
};
|
|
1777
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1778
|
-
switch (errorCode) {
|
|
1779
|
-
case "AccessDeniedException":
|
|
1780
|
-
case "com.amazonaws.inspector#AccessDeniedException":
|
|
1781
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1782
|
-
case "InternalException":
|
|
1783
|
-
case "com.amazonaws.inspector#InternalException":
|
|
1784
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1785
|
-
case "InvalidInputException":
|
|
1786
|
-
case "com.amazonaws.inspector#InvalidInputException":
|
|
1787
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1788
|
-
case "NoSuchEntityException":
|
|
1789
|
-
case "com.amazonaws.inspector#NoSuchEntityException":
|
|
1790
|
-
throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
|
|
1791
|
-
default:
|
|
1792
|
-
const parsedBody = parsedOutput.body;
|
|
1793
|
-
return throwDefaultError({
|
|
1794
|
-
output,
|
|
1795
|
-
parsedBody,
|
|
1796
|
-
errorCode
|
|
1797
|
-
});
|
|
1798
|
-
}
|
|
1799
|
-
}, "de_ListEventSubscriptionsCommandError");
|
|
1800
1128
|
var de_ListExclusionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1801
1129
|
if (output.statusCode >= 300) {
|
|
1802
|
-
return
|
|
1130
|
+
return de_CommandError(output, context);
|
|
1803
1131
|
}
|
|
1804
1132
|
const data = await parseBody(output.body, context);
|
|
1805
1133
|
let contents = {};
|
|
@@ -1810,37 +1138,9 @@ var de_ListExclusionsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1810
1138
|
};
|
|
1811
1139
|
return response;
|
|
1812
1140
|
}, "de_ListExclusionsCommand");
|
|
1813
|
-
var de_ListExclusionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1814
|
-
const parsedOutput = {
|
|
1815
|
-
...output,
|
|
1816
|
-
body: await parseErrorBody(output.body, context)
|
|
1817
|
-
};
|
|
1818
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1819
|
-
switch (errorCode) {
|
|
1820
|
-
case "AccessDeniedException":
|
|
1821
|
-
case "com.amazonaws.inspector#AccessDeniedException":
|
|
1822
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1823
|
-
case "InternalException":
|
|
1824
|
-
case "com.amazonaws.inspector#InternalException":
|
|
1825
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1826
|
-
case "InvalidInputException":
|
|
1827
|
-
case "com.amazonaws.inspector#InvalidInputException":
|
|
1828
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1829
|
-
case "NoSuchEntityException":
|
|
1830
|
-
case "com.amazonaws.inspector#NoSuchEntityException":
|
|
1831
|
-
throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
|
|
1832
|
-
default:
|
|
1833
|
-
const parsedBody = parsedOutput.body;
|
|
1834
|
-
return throwDefaultError({
|
|
1835
|
-
output,
|
|
1836
|
-
parsedBody,
|
|
1837
|
-
errorCode
|
|
1838
|
-
});
|
|
1839
|
-
}
|
|
1840
|
-
}, "de_ListExclusionsCommandError");
|
|
1841
1141
|
var de_ListFindingsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1842
1142
|
if (output.statusCode >= 300) {
|
|
1843
|
-
return
|
|
1143
|
+
return de_CommandError(output, context);
|
|
1844
1144
|
}
|
|
1845
1145
|
const data = await parseBody(output.body, context);
|
|
1846
1146
|
let contents = {};
|
|
@@ -1851,37 +1151,9 @@ var de_ListFindingsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1851
1151
|
};
|
|
1852
1152
|
return response;
|
|
1853
1153
|
}, "de_ListFindingsCommand");
|
|
1854
|
-
var de_ListFindingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1855
|
-
const parsedOutput = {
|
|
1856
|
-
...output,
|
|
1857
|
-
body: await parseErrorBody(output.body, context)
|
|
1858
|
-
};
|
|
1859
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1860
|
-
switch (errorCode) {
|
|
1861
|
-
case "AccessDeniedException":
|
|
1862
|
-
case "com.amazonaws.inspector#AccessDeniedException":
|
|
1863
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1864
|
-
case "InternalException":
|
|
1865
|
-
case "com.amazonaws.inspector#InternalException":
|
|
1866
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1867
|
-
case "InvalidInputException":
|
|
1868
|
-
case "com.amazonaws.inspector#InvalidInputException":
|
|
1869
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1870
|
-
case "NoSuchEntityException":
|
|
1871
|
-
case "com.amazonaws.inspector#NoSuchEntityException":
|
|
1872
|
-
throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
|
|
1873
|
-
default:
|
|
1874
|
-
const parsedBody = parsedOutput.body;
|
|
1875
|
-
return throwDefaultError({
|
|
1876
|
-
output,
|
|
1877
|
-
parsedBody,
|
|
1878
|
-
errorCode
|
|
1879
|
-
});
|
|
1880
|
-
}
|
|
1881
|
-
}, "de_ListFindingsCommandError");
|
|
1882
1154
|
var de_ListRulesPackagesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1883
1155
|
if (output.statusCode >= 300) {
|
|
1884
|
-
return
|
|
1156
|
+
return de_CommandError(output, context);
|
|
1885
1157
|
}
|
|
1886
1158
|
const data = await parseBody(output.body, context);
|
|
1887
1159
|
let contents = {};
|
|
@@ -1892,119 +1164,35 @@ var de_ListRulesPackagesCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1892
1164
|
};
|
|
1893
1165
|
return response;
|
|
1894
1166
|
}, "de_ListRulesPackagesCommand");
|
|
1895
|
-
var
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
default:
|
|
1912
|
-
const parsedBody = parsedOutput.body;
|
|
1913
|
-
return throwDefaultError({
|
|
1914
|
-
output,
|
|
1915
|
-
parsedBody,
|
|
1916
|
-
errorCode
|
|
1917
|
-
});
|
|
1918
|
-
}
|
|
1919
|
-
}, "de_ListRulesPackagesCommandError");
|
|
1920
|
-
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1921
|
-
if (output.statusCode >= 300) {
|
|
1922
|
-
return de_ListTagsForResourceCommandError(output, context);
|
|
1923
|
-
}
|
|
1924
|
-
const data = await parseBody(output.body, context);
|
|
1925
|
-
let contents = {};
|
|
1926
|
-
contents = (0, import_smithy_client._json)(data);
|
|
1927
|
-
const response = {
|
|
1928
|
-
$metadata: deserializeMetadata(output),
|
|
1929
|
-
...contents
|
|
1930
|
-
};
|
|
1931
|
-
return response;
|
|
1932
|
-
}, "de_ListTagsForResourceCommand");
|
|
1933
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1934
|
-
const parsedOutput = {
|
|
1935
|
-
...output,
|
|
1936
|
-
body: await parseErrorBody(output.body, context)
|
|
1937
|
-
};
|
|
1938
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1939
|
-
switch (errorCode) {
|
|
1940
|
-
case "AccessDeniedException":
|
|
1941
|
-
case "com.amazonaws.inspector#AccessDeniedException":
|
|
1942
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1943
|
-
case "InternalException":
|
|
1944
|
-
case "com.amazonaws.inspector#InternalException":
|
|
1945
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1946
|
-
case "InvalidInputException":
|
|
1947
|
-
case "com.amazonaws.inspector#InvalidInputException":
|
|
1948
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1949
|
-
case "NoSuchEntityException":
|
|
1950
|
-
case "com.amazonaws.inspector#NoSuchEntityException":
|
|
1951
|
-
throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
|
|
1952
|
-
default:
|
|
1953
|
-
const parsedBody = parsedOutput.body;
|
|
1954
|
-
return throwDefaultError({
|
|
1955
|
-
output,
|
|
1956
|
-
parsedBody,
|
|
1957
|
-
errorCode
|
|
1958
|
-
});
|
|
1959
|
-
}
|
|
1960
|
-
}, "de_ListTagsForResourceCommandError");
|
|
1961
|
-
var de_PreviewAgentsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1962
|
-
if (output.statusCode >= 300) {
|
|
1963
|
-
return de_PreviewAgentsCommandError(output, context);
|
|
1964
|
-
}
|
|
1965
|
-
const data = await parseBody(output.body, context);
|
|
1966
|
-
let contents = {};
|
|
1967
|
-
contents = (0, import_smithy_client._json)(data);
|
|
1968
|
-
const response = {
|
|
1969
|
-
$metadata: deserializeMetadata(output),
|
|
1970
|
-
...contents
|
|
1971
|
-
};
|
|
1972
|
-
return response;
|
|
1973
|
-
}, "de_PreviewAgentsCommand");
|
|
1974
|
-
var de_PreviewAgentsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1975
|
-
const parsedOutput = {
|
|
1976
|
-
...output,
|
|
1977
|
-
body: await parseErrorBody(output.body, context)
|
|
1978
|
-
};
|
|
1979
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1980
|
-
switch (errorCode) {
|
|
1981
|
-
case "AccessDeniedException":
|
|
1982
|
-
case "com.amazonaws.inspector#AccessDeniedException":
|
|
1983
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1984
|
-
case "InternalException":
|
|
1985
|
-
case "com.amazonaws.inspector#InternalException":
|
|
1986
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1987
|
-
case "InvalidCrossAccountRoleException":
|
|
1988
|
-
case "com.amazonaws.inspector#InvalidCrossAccountRoleException":
|
|
1989
|
-
throw await de_InvalidCrossAccountRoleExceptionRes(parsedOutput, context);
|
|
1990
|
-
case "InvalidInputException":
|
|
1991
|
-
case "com.amazonaws.inspector#InvalidInputException":
|
|
1992
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1993
|
-
case "NoSuchEntityException":
|
|
1994
|
-
case "com.amazonaws.inspector#NoSuchEntityException":
|
|
1995
|
-
throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
|
|
1996
|
-
default:
|
|
1997
|
-
const parsedBody = parsedOutput.body;
|
|
1998
|
-
return throwDefaultError({
|
|
1999
|
-
output,
|
|
2000
|
-
parsedBody,
|
|
2001
|
-
errorCode
|
|
2002
|
-
});
|
|
1167
|
+
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1168
|
+
if (output.statusCode >= 300) {
|
|
1169
|
+
return de_CommandError(output, context);
|
|
1170
|
+
}
|
|
1171
|
+
const data = await parseBody(output.body, context);
|
|
1172
|
+
let contents = {};
|
|
1173
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1174
|
+
const response = {
|
|
1175
|
+
$metadata: deserializeMetadata(output),
|
|
1176
|
+
...contents
|
|
1177
|
+
};
|
|
1178
|
+
return response;
|
|
1179
|
+
}, "de_ListTagsForResourceCommand");
|
|
1180
|
+
var de_PreviewAgentsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1181
|
+
if (output.statusCode >= 300) {
|
|
1182
|
+
return de_CommandError(output, context);
|
|
2003
1183
|
}
|
|
2004
|
-
|
|
1184
|
+
const data = await parseBody(output.body, context);
|
|
1185
|
+
let contents = {};
|
|
1186
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1187
|
+
const response = {
|
|
1188
|
+
$metadata: deserializeMetadata(output),
|
|
1189
|
+
...contents
|
|
1190
|
+
};
|
|
1191
|
+
return response;
|
|
1192
|
+
}, "de_PreviewAgentsCommand");
|
|
2005
1193
|
var de_RegisterCrossAccountAccessRoleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2006
1194
|
if (output.statusCode >= 300) {
|
|
2007
|
-
return
|
|
1195
|
+
return de_CommandError(output, context);
|
|
2008
1196
|
}
|
|
2009
1197
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2010
1198
|
const response = {
|
|
@@ -2012,40 +1200,9 @@ var de_RegisterCrossAccountAccessRoleCommand = /* @__PURE__ */ __name(async (out
|
|
|
2012
1200
|
};
|
|
2013
1201
|
return response;
|
|
2014
1202
|
}, "de_RegisterCrossAccountAccessRoleCommand");
|
|
2015
|
-
var de_RegisterCrossAccountAccessRoleCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2016
|
-
const parsedOutput = {
|
|
2017
|
-
...output,
|
|
2018
|
-
body: await parseErrorBody(output.body, context)
|
|
2019
|
-
};
|
|
2020
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2021
|
-
switch (errorCode) {
|
|
2022
|
-
case "AccessDeniedException":
|
|
2023
|
-
case "com.amazonaws.inspector#AccessDeniedException":
|
|
2024
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2025
|
-
case "InternalException":
|
|
2026
|
-
case "com.amazonaws.inspector#InternalException":
|
|
2027
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2028
|
-
case "InvalidCrossAccountRoleException":
|
|
2029
|
-
case "com.amazonaws.inspector#InvalidCrossAccountRoleException":
|
|
2030
|
-
throw await de_InvalidCrossAccountRoleExceptionRes(parsedOutput, context);
|
|
2031
|
-
case "InvalidInputException":
|
|
2032
|
-
case "com.amazonaws.inspector#InvalidInputException":
|
|
2033
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2034
|
-
case "ServiceTemporarilyUnavailableException":
|
|
2035
|
-
case "com.amazonaws.inspector#ServiceTemporarilyUnavailableException":
|
|
2036
|
-
throw await de_ServiceTemporarilyUnavailableExceptionRes(parsedOutput, context);
|
|
2037
|
-
default:
|
|
2038
|
-
const parsedBody = parsedOutput.body;
|
|
2039
|
-
return throwDefaultError({
|
|
2040
|
-
output,
|
|
2041
|
-
parsedBody,
|
|
2042
|
-
errorCode
|
|
2043
|
-
});
|
|
2044
|
-
}
|
|
2045
|
-
}, "de_RegisterCrossAccountAccessRoleCommandError");
|
|
2046
1203
|
var de_RemoveAttributesFromFindingsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2047
1204
|
if (output.statusCode >= 300) {
|
|
2048
|
-
return
|
|
1205
|
+
return de_CommandError(output, context);
|
|
2049
1206
|
}
|
|
2050
1207
|
const data = await parseBody(output.body, context);
|
|
2051
1208
|
let contents = {};
|
|
@@ -2056,40 +1213,9 @@ var de_RemoveAttributesFromFindingsCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
2056
1213
|
};
|
|
2057
1214
|
return response;
|
|
2058
1215
|
}, "de_RemoveAttributesFromFindingsCommand");
|
|
2059
|
-
var de_RemoveAttributesFromFindingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2060
|
-
const parsedOutput = {
|
|
2061
|
-
...output,
|
|
2062
|
-
body: await parseErrorBody(output.body, context)
|
|
2063
|
-
};
|
|
2064
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2065
|
-
switch (errorCode) {
|
|
2066
|
-
case "AccessDeniedException":
|
|
2067
|
-
case "com.amazonaws.inspector#AccessDeniedException":
|
|
2068
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2069
|
-
case "InternalException":
|
|
2070
|
-
case "com.amazonaws.inspector#InternalException":
|
|
2071
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2072
|
-
case "InvalidInputException":
|
|
2073
|
-
case "com.amazonaws.inspector#InvalidInputException":
|
|
2074
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2075
|
-
case "NoSuchEntityException":
|
|
2076
|
-
case "com.amazonaws.inspector#NoSuchEntityException":
|
|
2077
|
-
throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
|
|
2078
|
-
case "ServiceTemporarilyUnavailableException":
|
|
2079
|
-
case "com.amazonaws.inspector#ServiceTemporarilyUnavailableException":
|
|
2080
|
-
throw await de_ServiceTemporarilyUnavailableExceptionRes(parsedOutput, context);
|
|
2081
|
-
default:
|
|
2082
|
-
const parsedBody = parsedOutput.body;
|
|
2083
|
-
return throwDefaultError({
|
|
2084
|
-
output,
|
|
2085
|
-
parsedBody,
|
|
2086
|
-
errorCode
|
|
2087
|
-
});
|
|
2088
|
-
}
|
|
2089
|
-
}, "de_RemoveAttributesFromFindingsCommandError");
|
|
2090
1216
|
var de_SetTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2091
1217
|
if (output.statusCode >= 300) {
|
|
2092
|
-
return
|
|
1218
|
+
return de_CommandError(output, context);
|
|
2093
1219
|
}
|
|
2094
1220
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2095
1221
|
const response = {
|
|
@@ -2097,40 +1223,9 @@ var de_SetTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2097
1223
|
};
|
|
2098
1224
|
return response;
|
|
2099
1225
|
}, "de_SetTagsForResourceCommand");
|
|
2100
|
-
var de_SetTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2101
|
-
const parsedOutput = {
|
|
2102
|
-
...output,
|
|
2103
|
-
body: await parseErrorBody(output.body, context)
|
|
2104
|
-
};
|
|
2105
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2106
|
-
switch (errorCode) {
|
|
2107
|
-
case "AccessDeniedException":
|
|
2108
|
-
case "com.amazonaws.inspector#AccessDeniedException":
|
|
2109
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2110
|
-
case "InternalException":
|
|
2111
|
-
case "com.amazonaws.inspector#InternalException":
|
|
2112
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2113
|
-
case "InvalidInputException":
|
|
2114
|
-
case "com.amazonaws.inspector#InvalidInputException":
|
|
2115
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2116
|
-
case "NoSuchEntityException":
|
|
2117
|
-
case "com.amazonaws.inspector#NoSuchEntityException":
|
|
2118
|
-
throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
|
|
2119
|
-
case "ServiceTemporarilyUnavailableException":
|
|
2120
|
-
case "com.amazonaws.inspector#ServiceTemporarilyUnavailableException":
|
|
2121
|
-
throw await de_ServiceTemporarilyUnavailableExceptionRes(parsedOutput, context);
|
|
2122
|
-
default:
|
|
2123
|
-
const parsedBody = parsedOutput.body;
|
|
2124
|
-
return throwDefaultError({
|
|
2125
|
-
output,
|
|
2126
|
-
parsedBody,
|
|
2127
|
-
errorCode
|
|
2128
|
-
});
|
|
2129
|
-
}
|
|
2130
|
-
}, "de_SetTagsForResourceCommandError");
|
|
2131
1226
|
var de_StartAssessmentRunCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2132
1227
|
if (output.statusCode >= 300) {
|
|
2133
|
-
return
|
|
1228
|
+
return de_CommandError(output, context);
|
|
2134
1229
|
}
|
|
2135
1230
|
const data = await parseBody(output.body, context);
|
|
2136
1231
|
let contents = {};
|
|
@@ -2141,49 +1236,9 @@ var de_StartAssessmentRunCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2141
1236
|
};
|
|
2142
1237
|
return response;
|
|
2143
1238
|
}, "de_StartAssessmentRunCommand");
|
|
2144
|
-
var de_StartAssessmentRunCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2145
|
-
const parsedOutput = {
|
|
2146
|
-
...output,
|
|
2147
|
-
body: await parseErrorBody(output.body, context)
|
|
2148
|
-
};
|
|
2149
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2150
|
-
switch (errorCode) {
|
|
2151
|
-
case "AccessDeniedException":
|
|
2152
|
-
case "com.amazonaws.inspector#AccessDeniedException":
|
|
2153
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2154
|
-
case "AgentsAlreadyRunningAssessmentException":
|
|
2155
|
-
case "com.amazonaws.inspector#AgentsAlreadyRunningAssessmentException":
|
|
2156
|
-
throw await de_AgentsAlreadyRunningAssessmentExceptionRes(parsedOutput, context);
|
|
2157
|
-
case "InternalException":
|
|
2158
|
-
case "com.amazonaws.inspector#InternalException":
|
|
2159
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2160
|
-
case "InvalidCrossAccountRoleException":
|
|
2161
|
-
case "com.amazonaws.inspector#InvalidCrossAccountRoleException":
|
|
2162
|
-
throw await de_InvalidCrossAccountRoleExceptionRes(parsedOutput, context);
|
|
2163
|
-
case "InvalidInputException":
|
|
2164
|
-
case "com.amazonaws.inspector#InvalidInputException":
|
|
2165
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2166
|
-
case "LimitExceededException":
|
|
2167
|
-
case "com.amazonaws.inspector#LimitExceededException":
|
|
2168
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2169
|
-
case "NoSuchEntityException":
|
|
2170
|
-
case "com.amazonaws.inspector#NoSuchEntityException":
|
|
2171
|
-
throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
|
|
2172
|
-
case "ServiceTemporarilyUnavailableException":
|
|
2173
|
-
case "com.amazonaws.inspector#ServiceTemporarilyUnavailableException":
|
|
2174
|
-
throw await de_ServiceTemporarilyUnavailableExceptionRes(parsedOutput, context);
|
|
2175
|
-
default:
|
|
2176
|
-
const parsedBody = parsedOutput.body;
|
|
2177
|
-
return throwDefaultError({
|
|
2178
|
-
output,
|
|
2179
|
-
parsedBody,
|
|
2180
|
-
errorCode
|
|
2181
|
-
});
|
|
2182
|
-
}
|
|
2183
|
-
}, "de_StartAssessmentRunCommandError");
|
|
2184
1239
|
var de_StopAssessmentRunCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2185
1240
|
if (output.statusCode >= 300) {
|
|
2186
|
-
return
|
|
1241
|
+
return de_CommandError(output, context);
|
|
2187
1242
|
}
|
|
2188
1243
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2189
1244
|
const response = {
|
|
@@ -2191,40 +1246,9 @@ var de_StopAssessmentRunCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2191
1246
|
};
|
|
2192
1247
|
return response;
|
|
2193
1248
|
}, "de_StopAssessmentRunCommand");
|
|
2194
|
-
var de_StopAssessmentRunCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2195
|
-
const parsedOutput = {
|
|
2196
|
-
...output,
|
|
2197
|
-
body: await parseErrorBody(output.body, context)
|
|
2198
|
-
};
|
|
2199
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2200
|
-
switch (errorCode) {
|
|
2201
|
-
case "AccessDeniedException":
|
|
2202
|
-
case "com.amazonaws.inspector#AccessDeniedException":
|
|
2203
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2204
|
-
case "InternalException":
|
|
2205
|
-
case "com.amazonaws.inspector#InternalException":
|
|
2206
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2207
|
-
case "InvalidInputException":
|
|
2208
|
-
case "com.amazonaws.inspector#InvalidInputException":
|
|
2209
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2210
|
-
case "NoSuchEntityException":
|
|
2211
|
-
case "com.amazonaws.inspector#NoSuchEntityException":
|
|
2212
|
-
throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
|
|
2213
|
-
case "ServiceTemporarilyUnavailableException":
|
|
2214
|
-
case "com.amazonaws.inspector#ServiceTemporarilyUnavailableException":
|
|
2215
|
-
throw await de_ServiceTemporarilyUnavailableExceptionRes(parsedOutput, context);
|
|
2216
|
-
default:
|
|
2217
|
-
const parsedBody = parsedOutput.body;
|
|
2218
|
-
return throwDefaultError({
|
|
2219
|
-
output,
|
|
2220
|
-
parsedBody,
|
|
2221
|
-
errorCode
|
|
2222
|
-
});
|
|
2223
|
-
}
|
|
2224
|
-
}, "de_StopAssessmentRunCommandError");
|
|
2225
1249
|
var de_SubscribeToEventCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2226
1250
|
if (output.statusCode >= 300) {
|
|
2227
|
-
return
|
|
1251
|
+
return de_CommandError(output, context);
|
|
2228
1252
|
}
|
|
2229
1253
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2230
1254
|
const response = {
|
|
@@ -2232,43 +1256,9 @@ var de_SubscribeToEventCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2232
1256
|
};
|
|
2233
1257
|
return response;
|
|
2234
1258
|
}, "de_SubscribeToEventCommand");
|
|
2235
|
-
var de_SubscribeToEventCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2236
|
-
const parsedOutput = {
|
|
2237
|
-
...output,
|
|
2238
|
-
body: await parseErrorBody(output.body, context)
|
|
2239
|
-
};
|
|
2240
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2241
|
-
switch (errorCode) {
|
|
2242
|
-
case "AccessDeniedException":
|
|
2243
|
-
case "com.amazonaws.inspector#AccessDeniedException":
|
|
2244
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2245
|
-
case "InternalException":
|
|
2246
|
-
case "com.amazonaws.inspector#InternalException":
|
|
2247
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2248
|
-
case "InvalidInputException":
|
|
2249
|
-
case "com.amazonaws.inspector#InvalidInputException":
|
|
2250
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2251
|
-
case "LimitExceededException":
|
|
2252
|
-
case "com.amazonaws.inspector#LimitExceededException":
|
|
2253
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2254
|
-
case "NoSuchEntityException":
|
|
2255
|
-
case "com.amazonaws.inspector#NoSuchEntityException":
|
|
2256
|
-
throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
|
|
2257
|
-
case "ServiceTemporarilyUnavailableException":
|
|
2258
|
-
case "com.amazonaws.inspector#ServiceTemporarilyUnavailableException":
|
|
2259
|
-
throw await de_ServiceTemporarilyUnavailableExceptionRes(parsedOutput, context);
|
|
2260
|
-
default:
|
|
2261
|
-
const parsedBody = parsedOutput.body;
|
|
2262
|
-
return throwDefaultError({
|
|
2263
|
-
output,
|
|
2264
|
-
parsedBody,
|
|
2265
|
-
errorCode
|
|
2266
|
-
});
|
|
2267
|
-
}
|
|
2268
|
-
}, "de_SubscribeToEventCommandError");
|
|
2269
1259
|
var de_UnsubscribeFromEventCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2270
1260
|
if (output.statusCode >= 300) {
|
|
2271
|
-
return
|
|
1261
|
+
return de_CommandError(output, context);
|
|
2272
1262
|
}
|
|
2273
1263
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2274
1264
|
const response = {
|
|
@@ -2276,40 +1266,9 @@ var de_UnsubscribeFromEventCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
2276
1266
|
};
|
|
2277
1267
|
return response;
|
|
2278
1268
|
}, "de_UnsubscribeFromEventCommand");
|
|
2279
|
-
var de_UnsubscribeFromEventCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2280
|
-
const parsedOutput = {
|
|
2281
|
-
...output,
|
|
2282
|
-
body: await parseErrorBody(output.body, context)
|
|
2283
|
-
};
|
|
2284
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2285
|
-
switch (errorCode) {
|
|
2286
|
-
case "AccessDeniedException":
|
|
2287
|
-
case "com.amazonaws.inspector#AccessDeniedException":
|
|
2288
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2289
|
-
case "InternalException":
|
|
2290
|
-
case "com.amazonaws.inspector#InternalException":
|
|
2291
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2292
|
-
case "InvalidInputException":
|
|
2293
|
-
case "com.amazonaws.inspector#InvalidInputException":
|
|
2294
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2295
|
-
case "NoSuchEntityException":
|
|
2296
|
-
case "com.amazonaws.inspector#NoSuchEntityException":
|
|
2297
|
-
throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
|
|
2298
|
-
case "ServiceTemporarilyUnavailableException":
|
|
2299
|
-
case "com.amazonaws.inspector#ServiceTemporarilyUnavailableException":
|
|
2300
|
-
throw await de_ServiceTemporarilyUnavailableExceptionRes(parsedOutput, context);
|
|
2301
|
-
default:
|
|
2302
|
-
const parsedBody = parsedOutput.body;
|
|
2303
|
-
return throwDefaultError({
|
|
2304
|
-
output,
|
|
2305
|
-
parsedBody,
|
|
2306
|
-
errorCode
|
|
2307
|
-
});
|
|
2308
|
-
}
|
|
2309
|
-
}, "de_UnsubscribeFromEventCommandError");
|
|
2310
1269
|
var de_UpdateAssessmentTargetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2311
1270
|
if (output.statusCode >= 300) {
|
|
2312
|
-
return
|
|
1271
|
+
return de_CommandError(output, context);
|
|
2313
1272
|
}
|
|
2314
1273
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2315
1274
|
const response = {
|
|
@@ -2317,7 +1276,7 @@ var de_UpdateAssessmentTargetCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
2317
1276
|
};
|
|
2318
1277
|
return response;
|
|
2319
1278
|
}, "de_UpdateAssessmentTargetCommand");
|
|
2320
|
-
var
|
|
1279
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2321
1280
|
const parsedOutput = {
|
|
2322
1281
|
...output,
|
|
2323
1282
|
body: await parseErrorBody(output.body, context)
|
|
@@ -2339,6 +1298,24 @@ var de_UpdateAssessmentTargetCommandError = /* @__PURE__ */ __name(async (output
|
|
|
2339
1298
|
case "ServiceTemporarilyUnavailableException":
|
|
2340
1299
|
case "com.amazonaws.inspector#ServiceTemporarilyUnavailableException":
|
|
2341
1300
|
throw await de_ServiceTemporarilyUnavailableExceptionRes(parsedOutput, context);
|
|
1301
|
+
case "InvalidCrossAccountRoleException":
|
|
1302
|
+
case "com.amazonaws.inspector#InvalidCrossAccountRoleException":
|
|
1303
|
+
throw await de_InvalidCrossAccountRoleExceptionRes(parsedOutput, context);
|
|
1304
|
+
case "LimitExceededException":
|
|
1305
|
+
case "com.amazonaws.inspector#LimitExceededException":
|
|
1306
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1307
|
+
case "PreviewGenerationInProgressException":
|
|
1308
|
+
case "com.amazonaws.inspector#PreviewGenerationInProgressException":
|
|
1309
|
+
throw await de_PreviewGenerationInProgressExceptionRes(parsedOutput, context);
|
|
1310
|
+
case "AssessmentRunInProgressException":
|
|
1311
|
+
case "com.amazonaws.inspector#AssessmentRunInProgressException":
|
|
1312
|
+
throw await de_AssessmentRunInProgressExceptionRes(parsedOutput, context);
|
|
1313
|
+
case "UnsupportedFeatureException":
|
|
1314
|
+
case "com.amazonaws.inspector#UnsupportedFeatureException":
|
|
1315
|
+
throw await de_UnsupportedFeatureExceptionRes(parsedOutput, context);
|
|
1316
|
+
case "AgentsAlreadyRunningAssessmentException":
|
|
1317
|
+
case "com.amazonaws.inspector#AgentsAlreadyRunningAssessmentException":
|
|
1318
|
+
throw await de_AgentsAlreadyRunningAssessmentExceptionRes(parsedOutput, context);
|
|
2342
1319
|
default:
|
|
2343
1320
|
const parsedBody = parsedOutput.body;
|
|
2344
1321
|
return throwDefaultError({
|
|
@@ -2347,7 +1324,7 @@ var de_UpdateAssessmentTargetCommandError = /* @__PURE__ */ __name(async (output
|
|
|
2347
1324
|
errorCode
|
|
2348
1325
|
});
|
|
2349
1326
|
}
|
|
2350
|
-
}, "
|
|
1327
|
+
}, "de_CommandError");
|
|
2351
1328
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
2352
1329
|
const body = parsedOutput.body;
|
|
2353
1330
|
const deserialized = (0, import_smithy_client._json)(body);
|