@aws-sdk/client-auditmanager 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 +86 -1749
- package/dist-es/protocols/Aws_restJson1.js +112 -1775
- package/package.json +3 -3
|
@@ -823,7 +823,7 @@ export const se_ValidateAssessmentReportIntegrityCommand = async (input, context
|
|
|
823
823
|
};
|
|
824
824
|
export const de_AssociateAssessmentReportEvidenceFolderCommand = async (output, context) => {
|
|
825
825
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
826
|
-
return
|
|
826
|
+
return de_CommandError(output, context);
|
|
827
827
|
}
|
|
828
828
|
const contents = map({
|
|
829
829
|
$metadata: deserializeMetadata(output),
|
|
@@ -831,37 +831,9 @@ export const de_AssociateAssessmentReportEvidenceFolderCommand = async (output,
|
|
|
831
831
|
await collectBody(output.body, context);
|
|
832
832
|
return contents;
|
|
833
833
|
};
|
|
834
|
-
const de_AssociateAssessmentReportEvidenceFolderCommandError = async (output, context) => {
|
|
835
|
-
const parsedOutput = {
|
|
836
|
-
...output,
|
|
837
|
-
body: await parseErrorBody(output.body, context),
|
|
838
|
-
};
|
|
839
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
840
|
-
switch (errorCode) {
|
|
841
|
-
case "AccessDeniedException":
|
|
842
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
843
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
844
|
-
case "InternalServerException":
|
|
845
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
846
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
847
|
-
case "ResourceNotFoundException":
|
|
848
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
849
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
850
|
-
case "ValidationException":
|
|
851
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
852
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
853
|
-
default:
|
|
854
|
-
const parsedBody = parsedOutput.body;
|
|
855
|
-
return throwDefaultError({
|
|
856
|
-
output,
|
|
857
|
-
parsedBody,
|
|
858
|
-
errorCode,
|
|
859
|
-
});
|
|
860
|
-
}
|
|
861
|
-
};
|
|
862
834
|
export const de_BatchAssociateAssessmentReportEvidenceCommand = async (output, context) => {
|
|
863
835
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
864
|
-
return
|
|
836
|
+
return de_CommandError(output, context);
|
|
865
837
|
}
|
|
866
838
|
const contents = map({
|
|
867
839
|
$metadata: deserializeMetadata(output),
|
|
@@ -874,37 +846,9 @@ export const de_BatchAssociateAssessmentReportEvidenceCommand = async (output, c
|
|
|
874
846
|
Object.assign(contents, doc);
|
|
875
847
|
return contents;
|
|
876
848
|
};
|
|
877
|
-
const de_BatchAssociateAssessmentReportEvidenceCommandError = async (output, context) => {
|
|
878
|
-
const parsedOutput = {
|
|
879
|
-
...output,
|
|
880
|
-
body: await parseErrorBody(output.body, context),
|
|
881
|
-
};
|
|
882
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
883
|
-
switch (errorCode) {
|
|
884
|
-
case "AccessDeniedException":
|
|
885
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
886
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
887
|
-
case "InternalServerException":
|
|
888
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
889
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
890
|
-
case "ResourceNotFoundException":
|
|
891
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
892
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
893
|
-
case "ValidationException":
|
|
894
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
895
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
896
|
-
default:
|
|
897
|
-
const parsedBody = parsedOutput.body;
|
|
898
|
-
return throwDefaultError({
|
|
899
|
-
output,
|
|
900
|
-
parsedBody,
|
|
901
|
-
errorCode,
|
|
902
|
-
});
|
|
903
|
-
}
|
|
904
|
-
};
|
|
905
849
|
export const de_BatchCreateDelegationByAssessmentCommand = async (output, context) => {
|
|
906
850
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
907
|
-
return
|
|
851
|
+
return de_CommandError(output, context);
|
|
908
852
|
}
|
|
909
853
|
const contents = map({
|
|
910
854
|
$metadata: deserializeMetadata(output),
|
|
@@ -917,37 +861,9 @@ export const de_BatchCreateDelegationByAssessmentCommand = async (output, contex
|
|
|
917
861
|
Object.assign(contents, doc);
|
|
918
862
|
return contents;
|
|
919
863
|
};
|
|
920
|
-
const de_BatchCreateDelegationByAssessmentCommandError = async (output, context) => {
|
|
921
|
-
const parsedOutput = {
|
|
922
|
-
...output,
|
|
923
|
-
body: await parseErrorBody(output.body, context),
|
|
924
|
-
};
|
|
925
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
926
|
-
switch (errorCode) {
|
|
927
|
-
case "AccessDeniedException":
|
|
928
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
929
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
930
|
-
case "InternalServerException":
|
|
931
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
932
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
933
|
-
case "ResourceNotFoundException":
|
|
934
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
935
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
936
|
-
case "ValidationException":
|
|
937
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
938
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
939
|
-
default:
|
|
940
|
-
const parsedBody = parsedOutput.body;
|
|
941
|
-
return throwDefaultError({
|
|
942
|
-
output,
|
|
943
|
-
parsedBody,
|
|
944
|
-
errorCode,
|
|
945
|
-
});
|
|
946
|
-
}
|
|
947
|
-
};
|
|
948
864
|
export const de_BatchDeleteDelegationByAssessmentCommand = async (output, context) => {
|
|
949
865
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
950
|
-
return
|
|
866
|
+
return de_CommandError(output, context);
|
|
951
867
|
}
|
|
952
868
|
const contents = map({
|
|
953
869
|
$metadata: deserializeMetadata(output),
|
|
@@ -959,37 +875,9 @@ export const de_BatchDeleteDelegationByAssessmentCommand = async (output, contex
|
|
|
959
875
|
Object.assign(contents, doc);
|
|
960
876
|
return contents;
|
|
961
877
|
};
|
|
962
|
-
const de_BatchDeleteDelegationByAssessmentCommandError = async (output, context) => {
|
|
963
|
-
const parsedOutput = {
|
|
964
|
-
...output,
|
|
965
|
-
body: await parseErrorBody(output.body, context),
|
|
966
|
-
};
|
|
967
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
968
|
-
switch (errorCode) {
|
|
969
|
-
case "AccessDeniedException":
|
|
970
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
971
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
972
|
-
case "InternalServerException":
|
|
973
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
974
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
975
|
-
case "ResourceNotFoundException":
|
|
976
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
977
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
978
|
-
case "ValidationException":
|
|
979
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
980
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
981
|
-
default:
|
|
982
|
-
const parsedBody = parsedOutput.body;
|
|
983
|
-
return throwDefaultError({
|
|
984
|
-
output,
|
|
985
|
-
parsedBody,
|
|
986
|
-
errorCode,
|
|
987
|
-
});
|
|
988
|
-
}
|
|
989
|
-
};
|
|
990
878
|
export const de_BatchDisassociateAssessmentReportEvidenceCommand = async (output, context) => {
|
|
991
879
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
992
|
-
return
|
|
880
|
+
return de_CommandError(output, context);
|
|
993
881
|
}
|
|
994
882
|
const contents = map({
|
|
995
883
|
$metadata: deserializeMetadata(output),
|
|
@@ -1002,37 +890,9 @@ export const de_BatchDisassociateAssessmentReportEvidenceCommand = async (output
|
|
|
1002
890
|
Object.assign(contents, doc);
|
|
1003
891
|
return contents;
|
|
1004
892
|
};
|
|
1005
|
-
const de_BatchDisassociateAssessmentReportEvidenceCommandError = async (output, context) => {
|
|
1006
|
-
const parsedOutput = {
|
|
1007
|
-
...output,
|
|
1008
|
-
body: await parseErrorBody(output.body, context),
|
|
1009
|
-
};
|
|
1010
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1011
|
-
switch (errorCode) {
|
|
1012
|
-
case "AccessDeniedException":
|
|
1013
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
1014
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1015
|
-
case "InternalServerException":
|
|
1016
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
1017
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1018
|
-
case "ResourceNotFoundException":
|
|
1019
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
1020
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1021
|
-
case "ValidationException":
|
|
1022
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
1023
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1024
|
-
default:
|
|
1025
|
-
const parsedBody = parsedOutput.body;
|
|
1026
|
-
return throwDefaultError({
|
|
1027
|
-
output,
|
|
1028
|
-
parsedBody,
|
|
1029
|
-
errorCode,
|
|
1030
|
-
});
|
|
1031
|
-
}
|
|
1032
|
-
};
|
|
1033
893
|
export const de_BatchImportEvidenceToAssessmentControlCommand = async (output, context) => {
|
|
1034
894
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1035
|
-
return
|
|
895
|
+
return de_CommandError(output, context);
|
|
1036
896
|
}
|
|
1037
897
|
const contents = map({
|
|
1038
898
|
$metadata: deserializeMetadata(output),
|
|
@@ -1044,40 +904,9 @@ export const de_BatchImportEvidenceToAssessmentControlCommand = async (output, c
|
|
|
1044
904
|
Object.assign(contents, doc);
|
|
1045
905
|
return contents;
|
|
1046
906
|
};
|
|
1047
|
-
const de_BatchImportEvidenceToAssessmentControlCommandError = async (output, context) => {
|
|
1048
|
-
const parsedOutput = {
|
|
1049
|
-
...output,
|
|
1050
|
-
body: await parseErrorBody(output.body, context),
|
|
1051
|
-
};
|
|
1052
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1053
|
-
switch (errorCode) {
|
|
1054
|
-
case "AccessDeniedException":
|
|
1055
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
1056
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1057
|
-
case "InternalServerException":
|
|
1058
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
1059
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1060
|
-
case "ResourceNotFoundException":
|
|
1061
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
1062
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1063
|
-
case "ThrottlingException":
|
|
1064
|
-
case "com.amazonaws.auditmanager#ThrottlingException":
|
|
1065
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1066
|
-
case "ValidationException":
|
|
1067
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
1068
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1069
|
-
default:
|
|
1070
|
-
const parsedBody = parsedOutput.body;
|
|
1071
|
-
return throwDefaultError({
|
|
1072
|
-
output,
|
|
1073
|
-
parsedBody,
|
|
1074
|
-
errorCode,
|
|
1075
|
-
});
|
|
1076
|
-
}
|
|
1077
|
-
};
|
|
1078
907
|
export const de_CreateAssessmentCommand = async (output, context) => {
|
|
1079
908
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1080
|
-
return
|
|
909
|
+
return de_CommandError(output, context);
|
|
1081
910
|
}
|
|
1082
911
|
const contents = map({
|
|
1083
912
|
$metadata: deserializeMetadata(output),
|
|
@@ -1089,40 +918,9 @@ export const de_CreateAssessmentCommand = async (output, context) => {
|
|
|
1089
918
|
Object.assign(contents, doc);
|
|
1090
919
|
return contents;
|
|
1091
920
|
};
|
|
1092
|
-
const de_CreateAssessmentCommandError = async (output, context) => {
|
|
1093
|
-
const parsedOutput = {
|
|
1094
|
-
...output,
|
|
1095
|
-
body: await parseErrorBody(output.body, context),
|
|
1096
|
-
};
|
|
1097
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1098
|
-
switch (errorCode) {
|
|
1099
|
-
case "AccessDeniedException":
|
|
1100
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
1101
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1102
|
-
case "InternalServerException":
|
|
1103
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
1104
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1105
|
-
case "ResourceNotFoundException":
|
|
1106
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
1107
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1108
|
-
case "ServiceQuotaExceededException":
|
|
1109
|
-
case "com.amazonaws.auditmanager#ServiceQuotaExceededException":
|
|
1110
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1111
|
-
case "ValidationException":
|
|
1112
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
1113
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1114
|
-
default:
|
|
1115
|
-
const parsedBody = parsedOutput.body;
|
|
1116
|
-
return throwDefaultError({
|
|
1117
|
-
output,
|
|
1118
|
-
parsedBody,
|
|
1119
|
-
errorCode,
|
|
1120
|
-
});
|
|
1121
|
-
}
|
|
1122
|
-
};
|
|
1123
921
|
export const de_CreateAssessmentFrameworkCommand = async (output, context) => {
|
|
1124
922
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1125
|
-
return
|
|
923
|
+
return de_CommandError(output, context);
|
|
1126
924
|
}
|
|
1127
925
|
const contents = map({
|
|
1128
926
|
$metadata: deserializeMetadata(output),
|
|
@@ -1134,40 +932,9 @@ export const de_CreateAssessmentFrameworkCommand = async (output, context) => {
|
|
|
1134
932
|
Object.assign(contents, doc);
|
|
1135
933
|
return contents;
|
|
1136
934
|
};
|
|
1137
|
-
const de_CreateAssessmentFrameworkCommandError = async (output, context) => {
|
|
1138
|
-
const parsedOutput = {
|
|
1139
|
-
...output,
|
|
1140
|
-
body: await parseErrorBody(output.body, context),
|
|
1141
|
-
};
|
|
1142
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1143
|
-
switch (errorCode) {
|
|
1144
|
-
case "AccessDeniedException":
|
|
1145
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
1146
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1147
|
-
case "InternalServerException":
|
|
1148
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
1149
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1150
|
-
case "ResourceNotFoundException":
|
|
1151
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
1152
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1153
|
-
case "ServiceQuotaExceededException":
|
|
1154
|
-
case "com.amazonaws.auditmanager#ServiceQuotaExceededException":
|
|
1155
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1156
|
-
case "ValidationException":
|
|
1157
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
1158
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1159
|
-
default:
|
|
1160
|
-
const parsedBody = parsedOutput.body;
|
|
1161
|
-
return throwDefaultError({
|
|
1162
|
-
output,
|
|
1163
|
-
parsedBody,
|
|
1164
|
-
errorCode,
|
|
1165
|
-
});
|
|
1166
|
-
}
|
|
1167
|
-
};
|
|
1168
935
|
export const de_CreateAssessmentReportCommand = async (output, context) => {
|
|
1169
936
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1170
|
-
return
|
|
937
|
+
return de_CommandError(output, context);
|
|
1171
938
|
}
|
|
1172
939
|
const contents = map({
|
|
1173
940
|
$metadata: deserializeMetadata(output),
|
|
@@ -1179,37 +946,9 @@ export const de_CreateAssessmentReportCommand = async (output, context) => {
|
|
|
1179
946
|
Object.assign(contents, doc);
|
|
1180
947
|
return contents;
|
|
1181
948
|
};
|
|
1182
|
-
const de_CreateAssessmentReportCommandError = async (output, context) => {
|
|
1183
|
-
const parsedOutput = {
|
|
1184
|
-
...output,
|
|
1185
|
-
body: await parseErrorBody(output.body, context),
|
|
1186
|
-
};
|
|
1187
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1188
|
-
switch (errorCode) {
|
|
1189
|
-
case "AccessDeniedException":
|
|
1190
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
1191
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1192
|
-
case "InternalServerException":
|
|
1193
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
1194
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1195
|
-
case "ResourceNotFoundException":
|
|
1196
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
1197
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1198
|
-
case "ValidationException":
|
|
1199
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
1200
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1201
|
-
default:
|
|
1202
|
-
const parsedBody = parsedOutput.body;
|
|
1203
|
-
return throwDefaultError({
|
|
1204
|
-
output,
|
|
1205
|
-
parsedBody,
|
|
1206
|
-
errorCode,
|
|
1207
|
-
});
|
|
1208
|
-
}
|
|
1209
|
-
};
|
|
1210
949
|
export const de_CreateControlCommand = async (output, context) => {
|
|
1211
950
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1212
|
-
return
|
|
951
|
+
return de_CommandError(output, context);
|
|
1213
952
|
}
|
|
1214
953
|
const contents = map({
|
|
1215
954
|
$metadata: deserializeMetadata(output),
|
|
@@ -1221,40 +960,9 @@ export const de_CreateControlCommand = async (output, context) => {
|
|
|
1221
960
|
Object.assign(contents, doc);
|
|
1222
961
|
return contents;
|
|
1223
962
|
};
|
|
1224
|
-
const de_CreateControlCommandError = async (output, context) => {
|
|
1225
|
-
const parsedOutput = {
|
|
1226
|
-
...output,
|
|
1227
|
-
body: await parseErrorBody(output.body, context),
|
|
1228
|
-
};
|
|
1229
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1230
|
-
switch (errorCode) {
|
|
1231
|
-
case "AccessDeniedException":
|
|
1232
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
1233
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1234
|
-
case "InternalServerException":
|
|
1235
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
1236
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1237
|
-
case "ResourceNotFoundException":
|
|
1238
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
1239
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1240
|
-
case "ServiceQuotaExceededException":
|
|
1241
|
-
case "com.amazonaws.auditmanager#ServiceQuotaExceededException":
|
|
1242
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1243
|
-
case "ValidationException":
|
|
1244
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
1245
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1246
|
-
default:
|
|
1247
|
-
const parsedBody = parsedOutput.body;
|
|
1248
|
-
return throwDefaultError({
|
|
1249
|
-
output,
|
|
1250
|
-
parsedBody,
|
|
1251
|
-
errorCode,
|
|
1252
|
-
});
|
|
1253
|
-
}
|
|
1254
|
-
};
|
|
1255
963
|
export const de_DeleteAssessmentCommand = async (output, context) => {
|
|
1256
964
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1257
|
-
return
|
|
965
|
+
return de_CommandError(output, context);
|
|
1258
966
|
}
|
|
1259
967
|
const contents = map({
|
|
1260
968
|
$metadata: deserializeMetadata(output),
|
|
@@ -1262,37 +970,9 @@ export const de_DeleteAssessmentCommand = async (output, context) => {
|
|
|
1262
970
|
await collectBody(output.body, context);
|
|
1263
971
|
return contents;
|
|
1264
972
|
};
|
|
1265
|
-
const de_DeleteAssessmentCommandError = async (output, context) => {
|
|
1266
|
-
const parsedOutput = {
|
|
1267
|
-
...output,
|
|
1268
|
-
body: await parseErrorBody(output.body, context),
|
|
1269
|
-
};
|
|
1270
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1271
|
-
switch (errorCode) {
|
|
1272
|
-
case "AccessDeniedException":
|
|
1273
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
1274
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1275
|
-
case "InternalServerException":
|
|
1276
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
1277
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1278
|
-
case "ResourceNotFoundException":
|
|
1279
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
1280
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1281
|
-
case "ValidationException":
|
|
1282
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
1283
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1284
|
-
default:
|
|
1285
|
-
const parsedBody = parsedOutput.body;
|
|
1286
|
-
return throwDefaultError({
|
|
1287
|
-
output,
|
|
1288
|
-
parsedBody,
|
|
1289
|
-
errorCode,
|
|
1290
|
-
});
|
|
1291
|
-
}
|
|
1292
|
-
};
|
|
1293
973
|
export const de_DeleteAssessmentFrameworkCommand = async (output, context) => {
|
|
1294
974
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1295
|
-
return
|
|
975
|
+
return de_CommandError(output, context);
|
|
1296
976
|
}
|
|
1297
977
|
const contents = map({
|
|
1298
978
|
$metadata: deserializeMetadata(output),
|
|
@@ -1300,37 +980,9 @@ export const de_DeleteAssessmentFrameworkCommand = async (output, context) => {
|
|
|
1300
980
|
await collectBody(output.body, context);
|
|
1301
981
|
return contents;
|
|
1302
982
|
};
|
|
1303
|
-
const de_DeleteAssessmentFrameworkCommandError = async (output, context) => {
|
|
1304
|
-
const parsedOutput = {
|
|
1305
|
-
...output,
|
|
1306
|
-
body: await parseErrorBody(output.body, context),
|
|
1307
|
-
};
|
|
1308
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1309
|
-
switch (errorCode) {
|
|
1310
|
-
case "AccessDeniedException":
|
|
1311
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
1312
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1313
|
-
case "InternalServerException":
|
|
1314
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
1315
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1316
|
-
case "ResourceNotFoundException":
|
|
1317
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
1318
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1319
|
-
case "ValidationException":
|
|
1320
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
1321
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1322
|
-
default:
|
|
1323
|
-
const parsedBody = parsedOutput.body;
|
|
1324
|
-
return throwDefaultError({
|
|
1325
|
-
output,
|
|
1326
|
-
parsedBody,
|
|
1327
|
-
errorCode,
|
|
1328
|
-
});
|
|
1329
|
-
}
|
|
1330
|
-
};
|
|
1331
983
|
export const de_DeleteAssessmentFrameworkShareCommand = async (output, context) => {
|
|
1332
984
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1333
|
-
return
|
|
985
|
+
return de_CommandError(output, context);
|
|
1334
986
|
}
|
|
1335
987
|
const contents = map({
|
|
1336
988
|
$metadata: deserializeMetadata(output),
|
|
@@ -1338,37 +990,9 @@ export const de_DeleteAssessmentFrameworkShareCommand = async (output, context)
|
|
|
1338
990
|
await collectBody(output.body, context);
|
|
1339
991
|
return contents;
|
|
1340
992
|
};
|
|
1341
|
-
const de_DeleteAssessmentFrameworkShareCommandError = async (output, context) => {
|
|
1342
|
-
const parsedOutput = {
|
|
1343
|
-
...output,
|
|
1344
|
-
body: await parseErrorBody(output.body, context),
|
|
1345
|
-
};
|
|
1346
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1347
|
-
switch (errorCode) {
|
|
1348
|
-
case "AccessDeniedException":
|
|
1349
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
1350
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1351
|
-
case "InternalServerException":
|
|
1352
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
1353
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1354
|
-
case "ResourceNotFoundException":
|
|
1355
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
1356
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1357
|
-
case "ValidationException":
|
|
1358
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
1359
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1360
|
-
default:
|
|
1361
|
-
const parsedBody = parsedOutput.body;
|
|
1362
|
-
return throwDefaultError({
|
|
1363
|
-
output,
|
|
1364
|
-
parsedBody,
|
|
1365
|
-
errorCode,
|
|
1366
|
-
});
|
|
1367
|
-
}
|
|
1368
|
-
};
|
|
1369
993
|
export const de_DeleteAssessmentReportCommand = async (output, context) => {
|
|
1370
994
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1371
|
-
return
|
|
995
|
+
return de_CommandError(output, context);
|
|
1372
996
|
}
|
|
1373
997
|
const contents = map({
|
|
1374
998
|
$metadata: deserializeMetadata(output),
|
|
@@ -1376,37 +1000,9 @@ export const de_DeleteAssessmentReportCommand = async (output, context) => {
|
|
|
1376
1000
|
await collectBody(output.body, context);
|
|
1377
1001
|
return contents;
|
|
1378
1002
|
};
|
|
1379
|
-
const de_DeleteAssessmentReportCommandError = async (output, context) => {
|
|
1380
|
-
const parsedOutput = {
|
|
1381
|
-
...output,
|
|
1382
|
-
body: await parseErrorBody(output.body, context),
|
|
1383
|
-
};
|
|
1384
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1385
|
-
switch (errorCode) {
|
|
1386
|
-
case "AccessDeniedException":
|
|
1387
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
1388
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1389
|
-
case "InternalServerException":
|
|
1390
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
1391
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1392
|
-
case "ResourceNotFoundException":
|
|
1393
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
1394
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1395
|
-
case "ValidationException":
|
|
1396
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
1397
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1398
|
-
default:
|
|
1399
|
-
const parsedBody = parsedOutput.body;
|
|
1400
|
-
return throwDefaultError({
|
|
1401
|
-
output,
|
|
1402
|
-
parsedBody,
|
|
1403
|
-
errorCode,
|
|
1404
|
-
});
|
|
1405
|
-
}
|
|
1406
|
-
};
|
|
1407
1003
|
export const de_DeleteControlCommand = async (output, context) => {
|
|
1408
1004
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1409
|
-
return
|
|
1005
|
+
return de_CommandError(output, context);
|
|
1410
1006
|
}
|
|
1411
1007
|
const contents = map({
|
|
1412
1008
|
$metadata: deserializeMetadata(output),
|
|
@@ -1414,37 +1010,9 @@ export const de_DeleteControlCommand = async (output, context) => {
|
|
|
1414
1010
|
await collectBody(output.body, context);
|
|
1415
1011
|
return contents;
|
|
1416
1012
|
};
|
|
1417
|
-
const de_DeleteControlCommandError = async (output, context) => {
|
|
1418
|
-
const parsedOutput = {
|
|
1419
|
-
...output,
|
|
1420
|
-
body: await parseErrorBody(output.body, context),
|
|
1421
|
-
};
|
|
1422
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1423
|
-
switch (errorCode) {
|
|
1424
|
-
case "AccessDeniedException":
|
|
1425
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
1426
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1427
|
-
case "InternalServerException":
|
|
1428
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
1429
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1430
|
-
case "ResourceNotFoundException":
|
|
1431
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
1432
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1433
|
-
case "ValidationException":
|
|
1434
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
1435
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1436
|
-
default:
|
|
1437
|
-
const parsedBody = parsedOutput.body;
|
|
1438
|
-
return throwDefaultError({
|
|
1439
|
-
output,
|
|
1440
|
-
parsedBody,
|
|
1441
|
-
errorCode,
|
|
1442
|
-
});
|
|
1443
|
-
}
|
|
1444
|
-
};
|
|
1445
1013
|
export const de_DeregisterAccountCommand = async (output, context) => {
|
|
1446
1014
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1447
|
-
return
|
|
1015
|
+
return de_CommandError(output, context);
|
|
1448
1016
|
}
|
|
1449
1017
|
const contents = map({
|
|
1450
1018
|
$metadata: deserializeMetadata(output),
|
|
@@ -1456,37 +1024,9 @@ export const de_DeregisterAccountCommand = async (output, context) => {
|
|
|
1456
1024
|
Object.assign(contents, doc);
|
|
1457
1025
|
return contents;
|
|
1458
1026
|
};
|
|
1459
|
-
const de_DeregisterAccountCommandError = async (output, context) => {
|
|
1460
|
-
const parsedOutput = {
|
|
1461
|
-
...output,
|
|
1462
|
-
body: await parseErrorBody(output.body, context),
|
|
1463
|
-
};
|
|
1464
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1465
|
-
switch (errorCode) {
|
|
1466
|
-
case "AccessDeniedException":
|
|
1467
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
1468
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1469
|
-
case "InternalServerException":
|
|
1470
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
1471
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1472
|
-
case "ResourceNotFoundException":
|
|
1473
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
1474
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1475
|
-
case "ValidationException":
|
|
1476
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
1477
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1478
|
-
default:
|
|
1479
|
-
const parsedBody = parsedOutput.body;
|
|
1480
|
-
return throwDefaultError({
|
|
1481
|
-
output,
|
|
1482
|
-
parsedBody,
|
|
1483
|
-
errorCode,
|
|
1484
|
-
});
|
|
1485
|
-
}
|
|
1486
|
-
};
|
|
1487
1027
|
export const de_DeregisterOrganizationAdminAccountCommand = async (output, context) => {
|
|
1488
1028
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1489
|
-
return
|
|
1029
|
+
return de_CommandError(output, context);
|
|
1490
1030
|
}
|
|
1491
1031
|
const contents = map({
|
|
1492
1032
|
$metadata: deserializeMetadata(output),
|
|
@@ -1494,37 +1034,9 @@ export const de_DeregisterOrganizationAdminAccountCommand = async (output, conte
|
|
|
1494
1034
|
await collectBody(output.body, context);
|
|
1495
1035
|
return contents;
|
|
1496
1036
|
};
|
|
1497
|
-
const de_DeregisterOrganizationAdminAccountCommandError = async (output, context) => {
|
|
1498
|
-
const parsedOutput = {
|
|
1499
|
-
...output,
|
|
1500
|
-
body: await parseErrorBody(output.body, context),
|
|
1501
|
-
};
|
|
1502
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1503
|
-
switch (errorCode) {
|
|
1504
|
-
case "AccessDeniedException":
|
|
1505
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
1506
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1507
|
-
case "InternalServerException":
|
|
1508
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
1509
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1510
|
-
case "ResourceNotFoundException":
|
|
1511
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
1512
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1513
|
-
case "ValidationException":
|
|
1514
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
1515
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1516
|
-
default:
|
|
1517
|
-
const parsedBody = parsedOutput.body;
|
|
1518
|
-
return throwDefaultError({
|
|
1519
|
-
output,
|
|
1520
|
-
parsedBody,
|
|
1521
|
-
errorCode,
|
|
1522
|
-
});
|
|
1523
|
-
}
|
|
1524
|
-
};
|
|
1525
1037
|
export const de_DisassociateAssessmentReportEvidenceFolderCommand = async (output, context) => {
|
|
1526
1038
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1527
|
-
return
|
|
1039
|
+
return de_CommandError(output, context);
|
|
1528
1040
|
}
|
|
1529
1041
|
const contents = map({
|
|
1530
1042
|
$metadata: deserializeMetadata(output),
|
|
@@ -1532,37 +1044,9 @@ export const de_DisassociateAssessmentReportEvidenceFolderCommand = async (outpu
|
|
|
1532
1044
|
await collectBody(output.body, context);
|
|
1533
1045
|
return contents;
|
|
1534
1046
|
};
|
|
1535
|
-
const de_DisassociateAssessmentReportEvidenceFolderCommandError = async (output, context) => {
|
|
1536
|
-
const parsedOutput = {
|
|
1537
|
-
...output,
|
|
1538
|
-
body: await parseErrorBody(output.body, context),
|
|
1539
|
-
};
|
|
1540
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1541
|
-
switch (errorCode) {
|
|
1542
|
-
case "AccessDeniedException":
|
|
1543
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
1544
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1545
|
-
case "InternalServerException":
|
|
1546
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
1547
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1548
|
-
case "ResourceNotFoundException":
|
|
1549
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
1550
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1551
|
-
case "ValidationException":
|
|
1552
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
1553
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1554
|
-
default:
|
|
1555
|
-
const parsedBody = parsedOutput.body;
|
|
1556
|
-
return throwDefaultError({
|
|
1557
|
-
output,
|
|
1558
|
-
parsedBody,
|
|
1559
|
-
errorCode,
|
|
1560
|
-
});
|
|
1561
|
-
}
|
|
1562
|
-
};
|
|
1563
1047
|
export const de_GetAccountStatusCommand = async (output, context) => {
|
|
1564
1048
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1565
|
-
return
|
|
1049
|
+
return de_CommandError(output, context);
|
|
1566
1050
|
}
|
|
1567
1051
|
const contents = map({
|
|
1568
1052
|
$metadata: deserializeMetadata(output),
|
|
@@ -1574,28 +1058,9 @@ export const de_GetAccountStatusCommand = async (output, context) => {
|
|
|
1574
1058
|
Object.assign(contents, doc);
|
|
1575
1059
|
return contents;
|
|
1576
1060
|
};
|
|
1577
|
-
const de_GetAccountStatusCommandError = async (output, context) => {
|
|
1578
|
-
const parsedOutput = {
|
|
1579
|
-
...output,
|
|
1580
|
-
body: await parseErrorBody(output.body, context),
|
|
1581
|
-
};
|
|
1582
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1583
|
-
switch (errorCode) {
|
|
1584
|
-
case "InternalServerException":
|
|
1585
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
1586
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1587
|
-
default:
|
|
1588
|
-
const parsedBody = parsedOutput.body;
|
|
1589
|
-
return throwDefaultError({
|
|
1590
|
-
output,
|
|
1591
|
-
parsedBody,
|
|
1592
|
-
errorCode,
|
|
1593
|
-
});
|
|
1594
|
-
}
|
|
1595
|
-
};
|
|
1596
1061
|
export const de_GetAssessmentCommand = async (output, context) => {
|
|
1597
1062
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1598
|
-
return
|
|
1063
|
+
return de_CommandError(output, context);
|
|
1599
1064
|
}
|
|
1600
1065
|
const contents = map({
|
|
1601
1066
|
$metadata: deserializeMetadata(output),
|
|
@@ -1608,37 +1073,9 @@ export const de_GetAssessmentCommand = async (output, context) => {
|
|
|
1608
1073
|
Object.assign(contents, doc);
|
|
1609
1074
|
return contents;
|
|
1610
1075
|
};
|
|
1611
|
-
const de_GetAssessmentCommandError = async (output, context) => {
|
|
1612
|
-
const parsedOutput = {
|
|
1613
|
-
...output,
|
|
1614
|
-
body: await parseErrorBody(output.body, context),
|
|
1615
|
-
};
|
|
1616
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1617
|
-
switch (errorCode) {
|
|
1618
|
-
case "AccessDeniedException":
|
|
1619
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
1620
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1621
|
-
case "InternalServerException":
|
|
1622
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
1623
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1624
|
-
case "ResourceNotFoundException":
|
|
1625
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
1626
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1627
|
-
case "ValidationException":
|
|
1628
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
1629
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1630
|
-
default:
|
|
1631
|
-
const parsedBody = parsedOutput.body;
|
|
1632
|
-
return throwDefaultError({
|
|
1633
|
-
output,
|
|
1634
|
-
parsedBody,
|
|
1635
|
-
errorCode,
|
|
1636
|
-
});
|
|
1637
|
-
}
|
|
1638
|
-
};
|
|
1639
1076
|
export const de_GetAssessmentFrameworkCommand = async (output, context) => {
|
|
1640
1077
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1641
|
-
return
|
|
1078
|
+
return de_CommandError(output, context);
|
|
1642
1079
|
}
|
|
1643
1080
|
const contents = map({
|
|
1644
1081
|
$metadata: deserializeMetadata(output),
|
|
@@ -1650,37 +1087,9 @@ export const de_GetAssessmentFrameworkCommand = async (output, context) => {
|
|
|
1650
1087
|
Object.assign(contents, doc);
|
|
1651
1088
|
return contents;
|
|
1652
1089
|
};
|
|
1653
|
-
const de_GetAssessmentFrameworkCommandError = async (output, context) => {
|
|
1654
|
-
const parsedOutput = {
|
|
1655
|
-
...output,
|
|
1656
|
-
body: await parseErrorBody(output.body, context),
|
|
1657
|
-
};
|
|
1658
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1659
|
-
switch (errorCode) {
|
|
1660
|
-
case "AccessDeniedException":
|
|
1661
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
1662
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1663
|
-
case "InternalServerException":
|
|
1664
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
1665
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1666
|
-
case "ResourceNotFoundException":
|
|
1667
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
1668
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1669
|
-
case "ValidationException":
|
|
1670
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
1671
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1672
|
-
default:
|
|
1673
|
-
const parsedBody = parsedOutput.body;
|
|
1674
|
-
return throwDefaultError({
|
|
1675
|
-
output,
|
|
1676
|
-
parsedBody,
|
|
1677
|
-
errorCode,
|
|
1678
|
-
});
|
|
1679
|
-
}
|
|
1680
|
-
};
|
|
1681
1090
|
export const de_GetAssessmentReportUrlCommand = async (output, context) => {
|
|
1682
1091
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1683
|
-
return
|
|
1092
|
+
return de_CommandError(output, context);
|
|
1684
1093
|
}
|
|
1685
1094
|
const contents = map({
|
|
1686
1095
|
$metadata: deserializeMetadata(output),
|
|
@@ -1692,37 +1101,9 @@ export const de_GetAssessmentReportUrlCommand = async (output, context) => {
|
|
|
1692
1101
|
Object.assign(contents, doc);
|
|
1693
1102
|
return contents;
|
|
1694
1103
|
};
|
|
1695
|
-
const de_GetAssessmentReportUrlCommandError = async (output, context) => {
|
|
1696
|
-
const parsedOutput = {
|
|
1697
|
-
...output,
|
|
1698
|
-
body: await parseErrorBody(output.body, context),
|
|
1699
|
-
};
|
|
1700
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1701
|
-
switch (errorCode) {
|
|
1702
|
-
case "AccessDeniedException":
|
|
1703
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
1704
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1705
|
-
case "InternalServerException":
|
|
1706
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
1707
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1708
|
-
case "ResourceNotFoundException":
|
|
1709
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
1710
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1711
|
-
case "ValidationException":
|
|
1712
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
1713
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1714
|
-
default:
|
|
1715
|
-
const parsedBody = parsedOutput.body;
|
|
1716
|
-
return throwDefaultError({
|
|
1717
|
-
output,
|
|
1718
|
-
parsedBody,
|
|
1719
|
-
errorCode,
|
|
1720
|
-
});
|
|
1721
|
-
}
|
|
1722
|
-
};
|
|
1723
1104
|
export const de_GetChangeLogsCommand = async (output, context) => {
|
|
1724
1105
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1725
|
-
return
|
|
1106
|
+
return de_CommandError(output, context);
|
|
1726
1107
|
}
|
|
1727
1108
|
const contents = map({
|
|
1728
1109
|
$metadata: deserializeMetadata(output),
|
|
@@ -1735,37 +1116,9 @@ export const de_GetChangeLogsCommand = async (output, context) => {
|
|
|
1735
1116
|
Object.assign(contents, doc);
|
|
1736
1117
|
return contents;
|
|
1737
1118
|
};
|
|
1738
|
-
const de_GetChangeLogsCommandError = async (output, context) => {
|
|
1739
|
-
const parsedOutput = {
|
|
1740
|
-
...output,
|
|
1741
|
-
body: await parseErrorBody(output.body, context),
|
|
1742
|
-
};
|
|
1743
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1744
|
-
switch (errorCode) {
|
|
1745
|
-
case "AccessDeniedException":
|
|
1746
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
1747
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1748
|
-
case "InternalServerException":
|
|
1749
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
1750
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1751
|
-
case "ResourceNotFoundException":
|
|
1752
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
1753
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1754
|
-
case "ValidationException":
|
|
1755
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
1756
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1757
|
-
default:
|
|
1758
|
-
const parsedBody = parsedOutput.body;
|
|
1759
|
-
return throwDefaultError({
|
|
1760
|
-
output,
|
|
1761
|
-
parsedBody,
|
|
1762
|
-
errorCode,
|
|
1763
|
-
});
|
|
1764
|
-
}
|
|
1765
|
-
};
|
|
1766
1119
|
export const de_GetControlCommand = async (output, context) => {
|
|
1767
1120
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1768
|
-
return
|
|
1121
|
+
return de_CommandError(output, context);
|
|
1769
1122
|
}
|
|
1770
1123
|
const contents = map({
|
|
1771
1124
|
$metadata: deserializeMetadata(output),
|
|
@@ -1777,37 +1130,9 @@ export const de_GetControlCommand = async (output, context) => {
|
|
|
1777
1130
|
Object.assign(contents, doc);
|
|
1778
1131
|
return contents;
|
|
1779
1132
|
};
|
|
1780
|
-
const de_GetControlCommandError = async (output, context) => {
|
|
1781
|
-
const parsedOutput = {
|
|
1782
|
-
...output,
|
|
1783
|
-
body: await parseErrorBody(output.body, context),
|
|
1784
|
-
};
|
|
1785
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1786
|
-
switch (errorCode) {
|
|
1787
|
-
case "AccessDeniedException":
|
|
1788
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
1789
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1790
|
-
case "InternalServerException":
|
|
1791
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
1792
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1793
|
-
case "ResourceNotFoundException":
|
|
1794
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
1795
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1796
|
-
case "ValidationException":
|
|
1797
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
1798
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1799
|
-
default:
|
|
1800
|
-
const parsedBody = parsedOutput.body;
|
|
1801
|
-
return throwDefaultError({
|
|
1802
|
-
output,
|
|
1803
|
-
parsedBody,
|
|
1804
|
-
errorCode,
|
|
1805
|
-
});
|
|
1806
|
-
}
|
|
1807
|
-
};
|
|
1808
1133
|
export const de_GetDelegationsCommand = async (output, context) => {
|
|
1809
1134
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1810
|
-
return
|
|
1135
|
+
return de_CommandError(output, context);
|
|
1811
1136
|
}
|
|
1812
1137
|
const contents = map({
|
|
1813
1138
|
$metadata: deserializeMetadata(output),
|
|
@@ -1818,36 +1143,11 @@ export const de_GetDelegationsCommand = async (output, context) => {
|
|
|
1818
1143
|
nextToken: __expectString,
|
|
1819
1144
|
});
|
|
1820
1145
|
Object.assign(contents, doc);
|
|
1821
|
-
return contents;
|
|
1822
|
-
};
|
|
1823
|
-
const de_GetDelegationsCommandError = async (output, context) => {
|
|
1824
|
-
const parsedOutput = {
|
|
1825
|
-
...output,
|
|
1826
|
-
body: await parseErrorBody(output.body, context),
|
|
1827
|
-
};
|
|
1828
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1829
|
-
switch (errorCode) {
|
|
1830
|
-
case "AccessDeniedException":
|
|
1831
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
1832
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1833
|
-
case "InternalServerException":
|
|
1834
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
1835
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1836
|
-
case "ValidationException":
|
|
1837
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
1838
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1839
|
-
default:
|
|
1840
|
-
const parsedBody = parsedOutput.body;
|
|
1841
|
-
return throwDefaultError({
|
|
1842
|
-
output,
|
|
1843
|
-
parsedBody,
|
|
1844
|
-
errorCode,
|
|
1845
|
-
});
|
|
1846
|
-
}
|
|
1146
|
+
return contents;
|
|
1847
1147
|
};
|
|
1848
1148
|
export const de_GetEvidenceCommand = async (output, context) => {
|
|
1849
1149
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1850
|
-
return
|
|
1150
|
+
return de_CommandError(output, context);
|
|
1851
1151
|
}
|
|
1852
1152
|
const contents = map({
|
|
1853
1153
|
$metadata: deserializeMetadata(output),
|
|
@@ -1859,37 +1159,9 @@ export const de_GetEvidenceCommand = async (output, context) => {
|
|
|
1859
1159
|
Object.assign(contents, doc);
|
|
1860
1160
|
return contents;
|
|
1861
1161
|
};
|
|
1862
|
-
const de_GetEvidenceCommandError = async (output, context) => {
|
|
1863
|
-
const parsedOutput = {
|
|
1864
|
-
...output,
|
|
1865
|
-
body: await parseErrorBody(output.body, context),
|
|
1866
|
-
};
|
|
1867
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1868
|
-
switch (errorCode) {
|
|
1869
|
-
case "AccessDeniedException":
|
|
1870
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
1871
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1872
|
-
case "InternalServerException":
|
|
1873
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
1874
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1875
|
-
case "ResourceNotFoundException":
|
|
1876
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
1877
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1878
|
-
case "ValidationException":
|
|
1879
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
1880
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1881
|
-
default:
|
|
1882
|
-
const parsedBody = parsedOutput.body;
|
|
1883
|
-
return throwDefaultError({
|
|
1884
|
-
output,
|
|
1885
|
-
parsedBody,
|
|
1886
|
-
errorCode,
|
|
1887
|
-
});
|
|
1888
|
-
}
|
|
1889
|
-
};
|
|
1890
1162
|
export const de_GetEvidenceByEvidenceFolderCommand = async (output, context) => {
|
|
1891
1163
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1892
|
-
return
|
|
1164
|
+
return de_CommandError(output, context);
|
|
1893
1165
|
}
|
|
1894
1166
|
const contents = map({
|
|
1895
1167
|
$metadata: deserializeMetadata(output),
|
|
@@ -1902,37 +1174,9 @@ export const de_GetEvidenceByEvidenceFolderCommand = async (output, context) =>
|
|
|
1902
1174
|
Object.assign(contents, doc);
|
|
1903
1175
|
return contents;
|
|
1904
1176
|
};
|
|
1905
|
-
const de_GetEvidenceByEvidenceFolderCommandError = async (output, context) => {
|
|
1906
|
-
const parsedOutput = {
|
|
1907
|
-
...output,
|
|
1908
|
-
body: await parseErrorBody(output.body, context),
|
|
1909
|
-
};
|
|
1910
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1911
|
-
switch (errorCode) {
|
|
1912
|
-
case "AccessDeniedException":
|
|
1913
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
1914
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1915
|
-
case "InternalServerException":
|
|
1916
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
1917
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1918
|
-
case "ResourceNotFoundException":
|
|
1919
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
1920
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1921
|
-
case "ValidationException":
|
|
1922
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
1923
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1924
|
-
default:
|
|
1925
|
-
const parsedBody = parsedOutput.body;
|
|
1926
|
-
return throwDefaultError({
|
|
1927
|
-
output,
|
|
1928
|
-
parsedBody,
|
|
1929
|
-
errorCode,
|
|
1930
|
-
});
|
|
1931
|
-
}
|
|
1932
|
-
};
|
|
1933
1177
|
export const de_GetEvidenceFileUploadUrlCommand = async (output, context) => {
|
|
1934
1178
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1935
|
-
return
|
|
1179
|
+
return de_CommandError(output, context);
|
|
1936
1180
|
}
|
|
1937
1181
|
const contents = map({
|
|
1938
1182
|
$metadata: deserializeMetadata(output),
|
|
@@ -1945,37 +1189,9 @@ export const de_GetEvidenceFileUploadUrlCommand = async (output, context) => {
|
|
|
1945
1189
|
Object.assign(contents, doc);
|
|
1946
1190
|
return contents;
|
|
1947
1191
|
};
|
|
1948
|
-
const de_GetEvidenceFileUploadUrlCommandError = async (output, context) => {
|
|
1949
|
-
const parsedOutput = {
|
|
1950
|
-
...output,
|
|
1951
|
-
body: await parseErrorBody(output.body, context),
|
|
1952
|
-
};
|
|
1953
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1954
|
-
switch (errorCode) {
|
|
1955
|
-
case "AccessDeniedException":
|
|
1956
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
1957
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1958
|
-
case "InternalServerException":
|
|
1959
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
1960
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1961
|
-
case "ThrottlingException":
|
|
1962
|
-
case "com.amazonaws.auditmanager#ThrottlingException":
|
|
1963
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1964
|
-
case "ValidationException":
|
|
1965
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
1966
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1967
|
-
default:
|
|
1968
|
-
const parsedBody = parsedOutput.body;
|
|
1969
|
-
return throwDefaultError({
|
|
1970
|
-
output,
|
|
1971
|
-
parsedBody,
|
|
1972
|
-
errorCode,
|
|
1973
|
-
});
|
|
1974
|
-
}
|
|
1975
|
-
};
|
|
1976
1192
|
export const de_GetEvidenceFolderCommand = async (output, context) => {
|
|
1977
1193
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1978
|
-
return
|
|
1194
|
+
return de_CommandError(output, context);
|
|
1979
1195
|
}
|
|
1980
1196
|
const contents = map({
|
|
1981
1197
|
$metadata: deserializeMetadata(output),
|
|
@@ -1987,37 +1203,9 @@ export const de_GetEvidenceFolderCommand = async (output, context) => {
|
|
|
1987
1203
|
Object.assign(contents, doc);
|
|
1988
1204
|
return contents;
|
|
1989
1205
|
};
|
|
1990
|
-
const de_GetEvidenceFolderCommandError = async (output, context) => {
|
|
1991
|
-
const parsedOutput = {
|
|
1992
|
-
...output,
|
|
1993
|
-
body: await parseErrorBody(output.body, context),
|
|
1994
|
-
};
|
|
1995
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1996
|
-
switch (errorCode) {
|
|
1997
|
-
case "AccessDeniedException":
|
|
1998
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
1999
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2000
|
-
case "InternalServerException":
|
|
2001
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
2002
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2003
|
-
case "ResourceNotFoundException":
|
|
2004
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
2005
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2006
|
-
case "ValidationException":
|
|
2007
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
2008
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2009
|
-
default:
|
|
2010
|
-
const parsedBody = parsedOutput.body;
|
|
2011
|
-
return throwDefaultError({
|
|
2012
|
-
output,
|
|
2013
|
-
parsedBody,
|
|
2014
|
-
errorCode,
|
|
2015
|
-
});
|
|
2016
|
-
}
|
|
2017
|
-
};
|
|
2018
1206
|
export const de_GetEvidenceFoldersByAssessmentCommand = async (output, context) => {
|
|
2019
1207
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2020
|
-
return
|
|
1208
|
+
return de_CommandError(output, context);
|
|
2021
1209
|
}
|
|
2022
1210
|
const contents = map({
|
|
2023
1211
|
$metadata: deserializeMetadata(output),
|
|
@@ -2030,37 +1218,9 @@ export const de_GetEvidenceFoldersByAssessmentCommand = async (output, context)
|
|
|
2030
1218
|
Object.assign(contents, doc);
|
|
2031
1219
|
return contents;
|
|
2032
1220
|
};
|
|
2033
|
-
const de_GetEvidenceFoldersByAssessmentCommandError = async (output, context) => {
|
|
2034
|
-
const parsedOutput = {
|
|
2035
|
-
...output,
|
|
2036
|
-
body: await parseErrorBody(output.body, context),
|
|
2037
|
-
};
|
|
2038
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2039
|
-
switch (errorCode) {
|
|
2040
|
-
case "AccessDeniedException":
|
|
2041
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
2042
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2043
|
-
case "InternalServerException":
|
|
2044
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
2045
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2046
|
-
case "ResourceNotFoundException":
|
|
2047
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
2048
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2049
|
-
case "ValidationException":
|
|
2050
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
2051
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2052
|
-
default:
|
|
2053
|
-
const parsedBody = parsedOutput.body;
|
|
2054
|
-
return throwDefaultError({
|
|
2055
|
-
output,
|
|
2056
|
-
parsedBody,
|
|
2057
|
-
errorCode,
|
|
2058
|
-
});
|
|
2059
|
-
}
|
|
2060
|
-
};
|
|
2061
1221
|
export const de_GetEvidenceFoldersByAssessmentControlCommand = async (output, context) => {
|
|
2062
1222
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2063
|
-
return
|
|
1223
|
+
return de_CommandError(output, context);
|
|
2064
1224
|
}
|
|
2065
1225
|
const contents = map({
|
|
2066
1226
|
$metadata: deserializeMetadata(output),
|
|
@@ -2073,37 +1233,9 @@ export const de_GetEvidenceFoldersByAssessmentControlCommand = async (output, co
|
|
|
2073
1233
|
Object.assign(contents, doc);
|
|
2074
1234
|
return contents;
|
|
2075
1235
|
};
|
|
2076
|
-
const de_GetEvidenceFoldersByAssessmentControlCommandError = async (output, context) => {
|
|
2077
|
-
const parsedOutput = {
|
|
2078
|
-
...output,
|
|
2079
|
-
body: await parseErrorBody(output.body, context),
|
|
2080
|
-
};
|
|
2081
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2082
|
-
switch (errorCode) {
|
|
2083
|
-
case "AccessDeniedException":
|
|
2084
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
2085
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2086
|
-
case "InternalServerException":
|
|
2087
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
2088
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2089
|
-
case "ResourceNotFoundException":
|
|
2090
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
2091
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2092
|
-
case "ValidationException":
|
|
2093
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
2094
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2095
|
-
default:
|
|
2096
|
-
const parsedBody = parsedOutput.body;
|
|
2097
|
-
return throwDefaultError({
|
|
2098
|
-
output,
|
|
2099
|
-
parsedBody,
|
|
2100
|
-
errorCode,
|
|
2101
|
-
});
|
|
2102
|
-
}
|
|
2103
|
-
};
|
|
2104
1236
|
export const de_GetInsightsCommand = async (output, context) => {
|
|
2105
1237
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2106
|
-
return
|
|
1238
|
+
return de_CommandError(output, context);
|
|
2107
1239
|
}
|
|
2108
1240
|
const contents = map({
|
|
2109
1241
|
$metadata: deserializeMetadata(output),
|
|
@@ -2115,116 +1247,38 @@ export const de_GetInsightsCommand = async (output, context) => {
|
|
|
2115
1247
|
Object.assign(contents, doc);
|
|
2116
1248
|
return contents;
|
|
2117
1249
|
};
|
|
2118
|
-
const de_GetInsightsCommandError = async (output, context) => {
|
|
2119
|
-
const parsedOutput = {
|
|
2120
|
-
...output,
|
|
2121
|
-
body: await parseErrorBody(output.body, context),
|
|
2122
|
-
};
|
|
2123
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2124
|
-
switch (errorCode) {
|
|
2125
|
-
case "AccessDeniedException":
|
|
2126
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
2127
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2128
|
-
case "InternalServerException":
|
|
2129
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
2130
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2131
|
-
default:
|
|
2132
|
-
const parsedBody = parsedOutput.body;
|
|
2133
|
-
return throwDefaultError({
|
|
2134
|
-
output,
|
|
2135
|
-
parsedBody,
|
|
2136
|
-
errorCode,
|
|
2137
|
-
});
|
|
2138
|
-
}
|
|
2139
|
-
};
|
|
2140
1250
|
export const de_GetInsightsByAssessmentCommand = async (output, context) => {
|
|
2141
1251
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2142
|
-
return
|
|
2143
|
-
}
|
|
2144
|
-
const contents = map({
|
|
2145
|
-
$metadata: deserializeMetadata(output),
|
|
2146
|
-
});
|
|
2147
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2148
|
-
const doc = take(data, {
|
|
2149
|
-
insights: (_) => de_InsightsByAssessment(_, context),
|
|
2150
|
-
});
|
|
2151
|
-
Object.assign(contents, doc);
|
|
2152
|
-
return contents;
|
|
2153
|
-
};
|
|
2154
|
-
const de_GetInsightsByAssessmentCommandError = async (output, context) => {
|
|
2155
|
-
const parsedOutput = {
|
|
2156
|
-
...output,
|
|
2157
|
-
body: await parseErrorBody(output.body, context),
|
|
2158
|
-
};
|
|
2159
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2160
|
-
switch (errorCode) {
|
|
2161
|
-
case "AccessDeniedException":
|
|
2162
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
2163
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2164
|
-
case "InternalServerException":
|
|
2165
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
2166
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2167
|
-
case "ResourceNotFoundException":
|
|
2168
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
2169
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2170
|
-
case "ValidationException":
|
|
2171
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
2172
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2173
|
-
default:
|
|
2174
|
-
const parsedBody = parsedOutput.body;
|
|
2175
|
-
return throwDefaultError({
|
|
2176
|
-
output,
|
|
2177
|
-
parsedBody,
|
|
2178
|
-
errorCode,
|
|
2179
|
-
});
|
|
2180
|
-
}
|
|
2181
|
-
};
|
|
2182
|
-
export const de_GetOrganizationAdminAccountCommand = async (output, context) => {
|
|
2183
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2184
|
-
return de_GetOrganizationAdminAccountCommandError(output, context);
|
|
1252
|
+
return de_CommandError(output, context);
|
|
2185
1253
|
}
|
|
2186
1254
|
const contents = map({
|
|
2187
1255
|
$metadata: deserializeMetadata(output),
|
|
2188
1256
|
});
|
|
2189
1257
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2190
|
-
const doc = take(data, {
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
...output,
|
|
2200
|
-
body: await parseErrorBody(output.body, context),
|
|
2201
|
-
};
|
|
2202
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2203
|
-
switch (errorCode) {
|
|
2204
|
-
case "AccessDeniedException":
|
|
2205
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
2206
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2207
|
-
case "InternalServerException":
|
|
2208
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
2209
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2210
|
-
case "ResourceNotFoundException":
|
|
2211
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
2212
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2213
|
-
case "ValidationException":
|
|
2214
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
2215
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2216
|
-
default:
|
|
2217
|
-
const parsedBody = parsedOutput.body;
|
|
2218
|
-
return throwDefaultError({
|
|
2219
|
-
output,
|
|
2220
|
-
parsedBody,
|
|
2221
|
-
errorCode,
|
|
2222
|
-
});
|
|
1258
|
+
const doc = take(data, {
|
|
1259
|
+
insights: (_) => de_InsightsByAssessment(_, context),
|
|
1260
|
+
});
|
|
1261
|
+
Object.assign(contents, doc);
|
|
1262
|
+
return contents;
|
|
1263
|
+
};
|
|
1264
|
+
export const de_GetOrganizationAdminAccountCommand = async (output, context) => {
|
|
1265
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1266
|
+
return de_CommandError(output, context);
|
|
2223
1267
|
}
|
|
1268
|
+
const contents = map({
|
|
1269
|
+
$metadata: deserializeMetadata(output),
|
|
1270
|
+
});
|
|
1271
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1272
|
+
const doc = take(data, {
|
|
1273
|
+
adminAccountId: __expectString,
|
|
1274
|
+
organizationId: __expectString,
|
|
1275
|
+
});
|
|
1276
|
+
Object.assign(contents, doc);
|
|
1277
|
+
return contents;
|
|
2224
1278
|
};
|
|
2225
1279
|
export const de_GetServicesInScopeCommand = async (output, context) => {
|
|
2226
1280
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2227
|
-
return
|
|
1281
|
+
return de_CommandError(output, context);
|
|
2228
1282
|
}
|
|
2229
1283
|
const contents = map({
|
|
2230
1284
|
$metadata: deserializeMetadata(output),
|
|
@@ -2236,34 +1290,9 @@ export const de_GetServicesInScopeCommand = async (output, context) => {
|
|
|
2236
1290
|
Object.assign(contents, doc);
|
|
2237
1291
|
return contents;
|
|
2238
1292
|
};
|
|
2239
|
-
const de_GetServicesInScopeCommandError = async (output, context) => {
|
|
2240
|
-
const parsedOutput = {
|
|
2241
|
-
...output,
|
|
2242
|
-
body: await parseErrorBody(output.body, context),
|
|
2243
|
-
};
|
|
2244
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2245
|
-
switch (errorCode) {
|
|
2246
|
-
case "AccessDeniedException":
|
|
2247
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
2248
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2249
|
-
case "InternalServerException":
|
|
2250
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
2251
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2252
|
-
case "ValidationException":
|
|
2253
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
2254
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2255
|
-
default:
|
|
2256
|
-
const parsedBody = parsedOutput.body;
|
|
2257
|
-
return throwDefaultError({
|
|
2258
|
-
output,
|
|
2259
|
-
parsedBody,
|
|
2260
|
-
errorCode,
|
|
2261
|
-
});
|
|
2262
|
-
}
|
|
2263
|
-
};
|
|
2264
1293
|
export const de_GetSettingsCommand = async (output, context) => {
|
|
2265
1294
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2266
|
-
return
|
|
1295
|
+
return de_CommandError(output, context);
|
|
2267
1296
|
}
|
|
2268
1297
|
const contents = map({
|
|
2269
1298
|
$metadata: deserializeMetadata(output),
|
|
@@ -2275,31 +1304,9 @@ export const de_GetSettingsCommand = async (output, context) => {
|
|
|
2275
1304
|
Object.assign(contents, doc);
|
|
2276
1305
|
return contents;
|
|
2277
1306
|
};
|
|
2278
|
-
const de_GetSettingsCommandError = async (output, context) => {
|
|
2279
|
-
const parsedOutput = {
|
|
2280
|
-
...output,
|
|
2281
|
-
body: await parseErrorBody(output.body, context),
|
|
2282
|
-
};
|
|
2283
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2284
|
-
switch (errorCode) {
|
|
2285
|
-
case "AccessDeniedException":
|
|
2286
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
2287
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2288
|
-
case "InternalServerException":
|
|
2289
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
2290
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2291
|
-
default:
|
|
2292
|
-
const parsedBody = parsedOutput.body;
|
|
2293
|
-
return throwDefaultError({
|
|
2294
|
-
output,
|
|
2295
|
-
parsedBody,
|
|
2296
|
-
errorCode,
|
|
2297
|
-
});
|
|
2298
|
-
}
|
|
2299
|
-
};
|
|
2300
1307
|
export const de_ListAssessmentControlInsightsByControlDomainCommand = async (output, context) => {
|
|
2301
1308
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2302
|
-
return
|
|
1309
|
+
return de_CommandError(output, context);
|
|
2303
1310
|
}
|
|
2304
1311
|
const contents = map({
|
|
2305
1312
|
$metadata: deserializeMetadata(output),
|
|
@@ -2312,37 +1319,9 @@ export const de_ListAssessmentControlInsightsByControlDomainCommand = async (out
|
|
|
2312
1319
|
Object.assign(contents, doc);
|
|
2313
1320
|
return contents;
|
|
2314
1321
|
};
|
|
2315
|
-
const de_ListAssessmentControlInsightsByControlDomainCommandError = async (output, context) => {
|
|
2316
|
-
const parsedOutput = {
|
|
2317
|
-
...output,
|
|
2318
|
-
body: await parseErrorBody(output.body, context),
|
|
2319
|
-
};
|
|
2320
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2321
|
-
switch (errorCode) {
|
|
2322
|
-
case "AccessDeniedException":
|
|
2323
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
2324
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2325
|
-
case "InternalServerException":
|
|
2326
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
2327
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2328
|
-
case "ResourceNotFoundException":
|
|
2329
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
2330
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2331
|
-
case "ValidationException":
|
|
2332
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
2333
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2334
|
-
default:
|
|
2335
|
-
const parsedBody = parsedOutput.body;
|
|
2336
|
-
return throwDefaultError({
|
|
2337
|
-
output,
|
|
2338
|
-
parsedBody,
|
|
2339
|
-
errorCode,
|
|
2340
|
-
});
|
|
2341
|
-
}
|
|
2342
|
-
};
|
|
2343
1322
|
export const de_ListAssessmentFrameworksCommand = async (output, context) => {
|
|
2344
1323
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2345
|
-
return
|
|
1324
|
+
return de_CommandError(output, context);
|
|
2346
1325
|
}
|
|
2347
1326
|
const contents = map({
|
|
2348
1327
|
$metadata: deserializeMetadata(output),
|
|
@@ -2355,34 +1334,9 @@ export const de_ListAssessmentFrameworksCommand = async (output, context) => {
|
|
|
2355
1334
|
Object.assign(contents, doc);
|
|
2356
1335
|
return contents;
|
|
2357
1336
|
};
|
|
2358
|
-
const de_ListAssessmentFrameworksCommandError = async (output, context) => {
|
|
2359
|
-
const parsedOutput = {
|
|
2360
|
-
...output,
|
|
2361
|
-
body: await parseErrorBody(output.body, context),
|
|
2362
|
-
};
|
|
2363
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2364
|
-
switch (errorCode) {
|
|
2365
|
-
case "AccessDeniedException":
|
|
2366
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
2367
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2368
|
-
case "InternalServerException":
|
|
2369
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
2370
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2371
|
-
case "ValidationException":
|
|
2372
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
2373
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2374
|
-
default:
|
|
2375
|
-
const parsedBody = parsedOutput.body;
|
|
2376
|
-
return throwDefaultError({
|
|
2377
|
-
output,
|
|
2378
|
-
parsedBody,
|
|
2379
|
-
errorCode,
|
|
2380
|
-
});
|
|
2381
|
-
}
|
|
2382
|
-
};
|
|
2383
1337
|
export const de_ListAssessmentFrameworkShareRequestsCommand = async (output, context) => {
|
|
2384
1338
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2385
|
-
return
|
|
1339
|
+
return de_CommandError(output, context);
|
|
2386
1340
|
}
|
|
2387
1341
|
const contents = map({
|
|
2388
1342
|
$metadata: deserializeMetadata(output),
|
|
@@ -2395,34 +1349,9 @@ export const de_ListAssessmentFrameworkShareRequestsCommand = async (output, con
|
|
|
2395
1349
|
Object.assign(contents, doc);
|
|
2396
1350
|
return contents;
|
|
2397
1351
|
};
|
|
2398
|
-
const de_ListAssessmentFrameworkShareRequestsCommandError = async (output, context) => {
|
|
2399
|
-
const parsedOutput = {
|
|
2400
|
-
...output,
|
|
2401
|
-
body: await parseErrorBody(output.body, context),
|
|
2402
|
-
};
|
|
2403
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2404
|
-
switch (errorCode) {
|
|
2405
|
-
case "AccessDeniedException":
|
|
2406
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
2407
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2408
|
-
case "InternalServerException":
|
|
2409
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
2410
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2411
|
-
case "ValidationException":
|
|
2412
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
2413
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2414
|
-
default:
|
|
2415
|
-
const parsedBody = parsedOutput.body;
|
|
2416
|
-
return throwDefaultError({
|
|
2417
|
-
output,
|
|
2418
|
-
parsedBody,
|
|
2419
|
-
errorCode,
|
|
2420
|
-
});
|
|
2421
|
-
}
|
|
2422
|
-
};
|
|
2423
1352
|
export const de_ListAssessmentReportsCommand = async (output, context) => {
|
|
2424
1353
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2425
|
-
return
|
|
1354
|
+
return de_CommandError(output, context);
|
|
2426
1355
|
}
|
|
2427
1356
|
const contents = map({
|
|
2428
1357
|
$metadata: deserializeMetadata(output),
|
|
@@ -2435,34 +1364,9 @@ export const de_ListAssessmentReportsCommand = async (output, context) => {
|
|
|
2435
1364
|
Object.assign(contents, doc);
|
|
2436
1365
|
return contents;
|
|
2437
1366
|
};
|
|
2438
|
-
const de_ListAssessmentReportsCommandError = async (output, context) => {
|
|
2439
|
-
const parsedOutput = {
|
|
2440
|
-
...output,
|
|
2441
|
-
body: await parseErrorBody(output.body, context),
|
|
2442
|
-
};
|
|
2443
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2444
|
-
switch (errorCode) {
|
|
2445
|
-
case "AccessDeniedException":
|
|
2446
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
2447
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2448
|
-
case "InternalServerException":
|
|
2449
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
2450
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2451
|
-
case "ValidationException":
|
|
2452
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
2453
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2454
|
-
default:
|
|
2455
|
-
const parsedBody = parsedOutput.body;
|
|
2456
|
-
return throwDefaultError({
|
|
2457
|
-
output,
|
|
2458
|
-
parsedBody,
|
|
2459
|
-
errorCode,
|
|
2460
|
-
});
|
|
2461
|
-
}
|
|
2462
|
-
};
|
|
2463
1367
|
export const de_ListAssessmentsCommand = async (output, context) => {
|
|
2464
1368
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2465
|
-
return
|
|
1369
|
+
return de_CommandError(output, context);
|
|
2466
1370
|
}
|
|
2467
1371
|
const contents = map({
|
|
2468
1372
|
$metadata: deserializeMetadata(output),
|
|
@@ -2475,77 +1379,9 @@ export const de_ListAssessmentsCommand = async (output, context) => {
|
|
|
2475
1379
|
Object.assign(contents, doc);
|
|
2476
1380
|
return contents;
|
|
2477
1381
|
};
|
|
2478
|
-
const de_ListAssessmentsCommandError = async (output, context) => {
|
|
2479
|
-
const parsedOutput = {
|
|
2480
|
-
...output,
|
|
2481
|
-
body: await parseErrorBody(output.body, context),
|
|
2482
|
-
};
|
|
2483
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2484
|
-
switch (errorCode) {
|
|
2485
|
-
case "AccessDeniedException":
|
|
2486
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
2487
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2488
|
-
case "InternalServerException":
|
|
2489
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
2490
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2491
|
-
case "ValidationException":
|
|
2492
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
2493
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2494
|
-
default:
|
|
2495
|
-
const parsedBody = parsedOutput.body;
|
|
2496
|
-
return throwDefaultError({
|
|
2497
|
-
output,
|
|
2498
|
-
parsedBody,
|
|
2499
|
-
errorCode,
|
|
2500
|
-
});
|
|
2501
|
-
}
|
|
2502
|
-
};
|
|
2503
1382
|
export const de_ListControlDomainInsightsCommand = async (output, context) => {
|
|
2504
1383
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2505
|
-
return
|
|
2506
|
-
}
|
|
2507
|
-
const contents = map({
|
|
2508
|
-
$metadata: deserializeMetadata(output),
|
|
2509
|
-
});
|
|
2510
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2511
|
-
const doc = take(data, {
|
|
2512
|
-
controlDomainInsights: (_) => de_ControlDomainInsightsList(_, context),
|
|
2513
|
-
nextToken: __expectString,
|
|
2514
|
-
});
|
|
2515
|
-
Object.assign(contents, doc);
|
|
2516
|
-
return contents;
|
|
2517
|
-
};
|
|
2518
|
-
const de_ListControlDomainInsightsCommandError = async (output, context) => {
|
|
2519
|
-
const parsedOutput = {
|
|
2520
|
-
...output,
|
|
2521
|
-
body: await parseErrorBody(output.body, context),
|
|
2522
|
-
};
|
|
2523
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2524
|
-
switch (errorCode) {
|
|
2525
|
-
case "AccessDeniedException":
|
|
2526
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
2527
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2528
|
-
case "InternalServerException":
|
|
2529
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
2530
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2531
|
-
case "ResourceNotFoundException":
|
|
2532
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
2533
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2534
|
-
case "ValidationException":
|
|
2535
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
2536
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2537
|
-
default:
|
|
2538
|
-
const parsedBody = parsedOutput.body;
|
|
2539
|
-
return throwDefaultError({
|
|
2540
|
-
output,
|
|
2541
|
-
parsedBody,
|
|
2542
|
-
errorCode,
|
|
2543
|
-
});
|
|
2544
|
-
}
|
|
2545
|
-
};
|
|
2546
|
-
export const de_ListControlDomainInsightsByAssessmentCommand = async (output, context) => {
|
|
2547
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2548
|
-
return de_ListControlDomainInsightsByAssessmentCommandError(output, context);
|
|
1384
|
+
return de_CommandError(output, context);
|
|
2549
1385
|
}
|
|
2550
1386
|
const contents = map({
|
|
2551
1387
|
$metadata: deserializeMetadata(output),
|
|
@@ -2554,41 +1390,28 @@ export const de_ListControlDomainInsightsByAssessmentCommand = async (output, co
|
|
|
2554
1390
|
const doc = take(data, {
|
|
2555
1391
|
controlDomainInsights: (_) => de_ControlDomainInsightsList(_, context),
|
|
2556
1392
|
nextToken: __expectString,
|
|
2557
|
-
});
|
|
2558
|
-
Object.assign(contents, doc);
|
|
2559
|
-
return contents;
|
|
2560
|
-
};
|
|
2561
|
-
const
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
body: await parseErrorBody(output.body, context),
|
|
2565
|
-
};
|
|
2566
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2567
|
-
switch (errorCode) {
|
|
2568
|
-
case "AccessDeniedException":
|
|
2569
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
2570
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2571
|
-
case "InternalServerException":
|
|
2572
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
2573
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2574
|
-
case "ResourceNotFoundException":
|
|
2575
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
2576
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2577
|
-
case "ValidationException":
|
|
2578
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
2579
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2580
|
-
default:
|
|
2581
|
-
const parsedBody = parsedOutput.body;
|
|
2582
|
-
return throwDefaultError({
|
|
2583
|
-
output,
|
|
2584
|
-
parsedBody,
|
|
2585
|
-
errorCode,
|
|
2586
|
-
});
|
|
1393
|
+
});
|
|
1394
|
+
Object.assign(contents, doc);
|
|
1395
|
+
return contents;
|
|
1396
|
+
};
|
|
1397
|
+
export const de_ListControlDomainInsightsByAssessmentCommand = async (output, context) => {
|
|
1398
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1399
|
+
return de_CommandError(output, context);
|
|
2587
1400
|
}
|
|
1401
|
+
const contents = map({
|
|
1402
|
+
$metadata: deserializeMetadata(output),
|
|
1403
|
+
});
|
|
1404
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1405
|
+
const doc = take(data, {
|
|
1406
|
+
controlDomainInsights: (_) => de_ControlDomainInsightsList(_, context),
|
|
1407
|
+
nextToken: __expectString,
|
|
1408
|
+
});
|
|
1409
|
+
Object.assign(contents, doc);
|
|
1410
|
+
return contents;
|
|
2588
1411
|
};
|
|
2589
1412
|
export const de_ListControlInsightsByControlDomainCommand = async (output, context) => {
|
|
2590
1413
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2591
|
-
return
|
|
1414
|
+
return de_CommandError(output, context);
|
|
2592
1415
|
}
|
|
2593
1416
|
const contents = map({
|
|
2594
1417
|
$metadata: deserializeMetadata(output),
|
|
@@ -2601,37 +1424,9 @@ export const de_ListControlInsightsByControlDomainCommand = async (output, conte
|
|
|
2601
1424
|
Object.assign(contents, doc);
|
|
2602
1425
|
return contents;
|
|
2603
1426
|
};
|
|
2604
|
-
const de_ListControlInsightsByControlDomainCommandError = async (output, context) => {
|
|
2605
|
-
const parsedOutput = {
|
|
2606
|
-
...output,
|
|
2607
|
-
body: await parseErrorBody(output.body, context),
|
|
2608
|
-
};
|
|
2609
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2610
|
-
switch (errorCode) {
|
|
2611
|
-
case "AccessDeniedException":
|
|
2612
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
2613
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2614
|
-
case "InternalServerException":
|
|
2615
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
2616
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2617
|
-
case "ResourceNotFoundException":
|
|
2618
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
2619
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2620
|
-
case "ValidationException":
|
|
2621
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
2622
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2623
|
-
default:
|
|
2624
|
-
const parsedBody = parsedOutput.body;
|
|
2625
|
-
return throwDefaultError({
|
|
2626
|
-
output,
|
|
2627
|
-
parsedBody,
|
|
2628
|
-
errorCode,
|
|
2629
|
-
});
|
|
2630
|
-
}
|
|
2631
|
-
};
|
|
2632
1427
|
export const de_ListControlsCommand = async (output, context) => {
|
|
2633
1428
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2634
|
-
return
|
|
1429
|
+
return de_CommandError(output, context);
|
|
2635
1430
|
}
|
|
2636
1431
|
const contents = map({
|
|
2637
1432
|
$metadata: deserializeMetadata(output),
|
|
@@ -2644,34 +1439,9 @@ export const de_ListControlsCommand = async (output, context) => {
|
|
|
2644
1439
|
Object.assign(contents, doc);
|
|
2645
1440
|
return contents;
|
|
2646
1441
|
};
|
|
2647
|
-
const de_ListControlsCommandError = async (output, context) => {
|
|
2648
|
-
const parsedOutput = {
|
|
2649
|
-
...output,
|
|
2650
|
-
body: await parseErrorBody(output.body, context),
|
|
2651
|
-
};
|
|
2652
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2653
|
-
switch (errorCode) {
|
|
2654
|
-
case "AccessDeniedException":
|
|
2655
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
2656
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2657
|
-
case "InternalServerException":
|
|
2658
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
2659
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2660
|
-
case "ValidationException":
|
|
2661
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
2662
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2663
|
-
default:
|
|
2664
|
-
const parsedBody = parsedOutput.body;
|
|
2665
|
-
return throwDefaultError({
|
|
2666
|
-
output,
|
|
2667
|
-
parsedBody,
|
|
2668
|
-
errorCode,
|
|
2669
|
-
});
|
|
2670
|
-
}
|
|
2671
|
-
};
|
|
2672
1442
|
export const de_ListKeywordsForDataSourceCommand = async (output, context) => {
|
|
2673
1443
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2674
|
-
return
|
|
1444
|
+
return de_CommandError(output, context);
|
|
2675
1445
|
}
|
|
2676
1446
|
const contents = map({
|
|
2677
1447
|
$metadata: deserializeMetadata(output),
|
|
@@ -2684,34 +1454,9 @@ export const de_ListKeywordsForDataSourceCommand = async (output, context) => {
|
|
|
2684
1454
|
Object.assign(contents, doc);
|
|
2685
1455
|
return contents;
|
|
2686
1456
|
};
|
|
2687
|
-
const de_ListKeywordsForDataSourceCommandError = async (output, context) => {
|
|
2688
|
-
const parsedOutput = {
|
|
2689
|
-
...output,
|
|
2690
|
-
body: await parseErrorBody(output.body, context),
|
|
2691
|
-
};
|
|
2692
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2693
|
-
switch (errorCode) {
|
|
2694
|
-
case "AccessDeniedException":
|
|
2695
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
2696
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2697
|
-
case "InternalServerException":
|
|
2698
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
2699
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2700
|
-
case "ValidationException":
|
|
2701
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
2702
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2703
|
-
default:
|
|
2704
|
-
const parsedBody = parsedOutput.body;
|
|
2705
|
-
return throwDefaultError({
|
|
2706
|
-
output,
|
|
2707
|
-
parsedBody,
|
|
2708
|
-
errorCode,
|
|
2709
|
-
});
|
|
2710
|
-
}
|
|
2711
|
-
};
|
|
2712
1457
|
export const de_ListNotificationsCommand = async (output, context) => {
|
|
2713
1458
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2714
|
-
return
|
|
1459
|
+
return de_CommandError(output, context);
|
|
2715
1460
|
}
|
|
2716
1461
|
const contents = map({
|
|
2717
1462
|
$metadata: deserializeMetadata(output),
|
|
@@ -2724,34 +1469,9 @@ export const de_ListNotificationsCommand = async (output, context) => {
|
|
|
2724
1469
|
Object.assign(contents, doc);
|
|
2725
1470
|
return contents;
|
|
2726
1471
|
};
|
|
2727
|
-
const de_ListNotificationsCommandError = async (output, context) => {
|
|
2728
|
-
const parsedOutput = {
|
|
2729
|
-
...output,
|
|
2730
|
-
body: await parseErrorBody(output.body, context),
|
|
2731
|
-
};
|
|
2732
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2733
|
-
switch (errorCode) {
|
|
2734
|
-
case "AccessDeniedException":
|
|
2735
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
2736
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2737
|
-
case "InternalServerException":
|
|
2738
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
2739
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2740
|
-
case "ValidationException":
|
|
2741
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
2742
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2743
|
-
default:
|
|
2744
|
-
const parsedBody = parsedOutput.body;
|
|
2745
|
-
return throwDefaultError({
|
|
2746
|
-
output,
|
|
2747
|
-
parsedBody,
|
|
2748
|
-
errorCode,
|
|
2749
|
-
});
|
|
2750
|
-
}
|
|
2751
|
-
};
|
|
2752
1472
|
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
2753
1473
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2754
|
-
return
|
|
1474
|
+
return de_CommandError(output, context);
|
|
2755
1475
|
}
|
|
2756
1476
|
const contents = map({
|
|
2757
1477
|
$metadata: deserializeMetadata(output),
|
|
@@ -2763,34 +1483,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
2763
1483
|
Object.assign(contents, doc);
|
|
2764
1484
|
return contents;
|
|
2765
1485
|
};
|
|
2766
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
2767
|
-
const parsedOutput = {
|
|
2768
|
-
...output,
|
|
2769
|
-
body: await parseErrorBody(output.body, context),
|
|
2770
|
-
};
|
|
2771
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2772
|
-
switch (errorCode) {
|
|
2773
|
-
case "InternalServerException":
|
|
2774
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
2775
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2776
|
-
case "ResourceNotFoundException":
|
|
2777
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
2778
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2779
|
-
case "ValidationException":
|
|
2780
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
2781
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2782
|
-
default:
|
|
2783
|
-
const parsedBody = parsedOutput.body;
|
|
2784
|
-
return throwDefaultError({
|
|
2785
|
-
output,
|
|
2786
|
-
parsedBody,
|
|
2787
|
-
errorCode,
|
|
2788
|
-
});
|
|
2789
|
-
}
|
|
2790
|
-
};
|
|
2791
1486
|
export const de_RegisterAccountCommand = async (output, context) => {
|
|
2792
1487
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2793
|
-
return
|
|
1488
|
+
return de_CommandError(output, context);
|
|
2794
1489
|
}
|
|
2795
1490
|
const contents = map({
|
|
2796
1491
|
$metadata: deserializeMetadata(output),
|
|
@@ -2802,40 +1497,9 @@ export const de_RegisterAccountCommand = async (output, context) => {
|
|
|
2802
1497
|
Object.assign(contents, doc);
|
|
2803
1498
|
return contents;
|
|
2804
1499
|
};
|
|
2805
|
-
const de_RegisterAccountCommandError = async (output, context) => {
|
|
2806
|
-
const parsedOutput = {
|
|
2807
|
-
...output,
|
|
2808
|
-
body: await parseErrorBody(output.body, context),
|
|
2809
|
-
};
|
|
2810
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2811
|
-
switch (errorCode) {
|
|
2812
|
-
case "AccessDeniedException":
|
|
2813
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
2814
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2815
|
-
case "InternalServerException":
|
|
2816
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
2817
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2818
|
-
case "ResourceNotFoundException":
|
|
2819
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
2820
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2821
|
-
case "ThrottlingException":
|
|
2822
|
-
case "com.amazonaws.auditmanager#ThrottlingException":
|
|
2823
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2824
|
-
case "ValidationException":
|
|
2825
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
2826
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2827
|
-
default:
|
|
2828
|
-
const parsedBody = parsedOutput.body;
|
|
2829
|
-
return throwDefaultError({
|
|
2830
|
-
output,
|
|
2831
|
-
parsedBody,
|
|
2832
|
-
errorCode,
|
|
2833
|
-
});
|
|
2834
|
-
}
|
|
2835
|
-
};
|
|
2836
1500
|
export const de_RegisterOrganizationAdminAccountCommand = async (output, context) => {
|
|
2837
1501
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2838
|
-
return
|
|
1502
|
+
return de_CommandError(output, context);
|
|
2839
1503
|
}
|
|
2840
1504
|
const contents = map({
|
|
2841
1505
|
$metadata: deserializeMetadata(output),
|
|
@@ -2848,37 +1512,9 @@ export const de_RegisterOrganizationAdminAccountCommand = async (output, context
|
|
|
2848
1512
|
Object.assign(contents, doc);
|
|
2849
1513
|
return contents;
|
|
2850
1514
|
};
|
|
2851
|
-
const de_RegisterOrganizationAdminAccountCommandError = async (output, context) => {
|
|
2852
|
-
const parsedOutput = {
|
|
2853
|
-
...output,
|
|
2854
|
-
body: await parseErrorBody(output.body, context),
|
|
2855
|
-
};
|
|
2856
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2857
|
-
switch (errorCode) {
|
|
2858
|
-
case "AccessDeniedException":
|
|
2859
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
2860
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2861
|
-
case "InternalServerException":
|
|
2862
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
2863
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2864
|
-
case "ResourceNotFoundException":
|
|
2865
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
2866
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2867
|
-
case "ValidationException":
|
|
2868
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
2869
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2870
|
-
default:
|
|
2871
|
-
const parsedBody = parsedOutput.body;
|
|
2872
|
-
return throwDefaultError({
|
|
2873
|
-
output,
|
|
2874
|
-
parsedBody,
|
|
2875
|
-
errorCode,
|
|
2876
|
-
});
|
|
2877
|
-
}
|
|
2878
|
-
};
|
|
2879
1515
|
export const de_StartAssessmentFrameworkShareCommand = async (output, context) => {
|
|
2880
1516
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2881
|
-
return
|
|
1517
|
+
return de_CommandError(output, context);
|
|
2882
1518
|
}
|
|
2883
1519
|
const contents = map({
|
|
2884
1520
|
$metadata: deserializeMetadata(output),
|
|
@@ -2890,72 +1526,9 @@ export const de_StartAssessmentFrameworkShareCommand = async (output, context) =
|
|
|
2890
1526
|
Object.assign(contents, doc);
|
|
2891
1527
|
return contents;
|
|
2892
1528
|
};
|
|
2893
|
-
const
|
|
2894
|
-
const parsedOutput = {
|
|
2895
|
-
...output,
|
|
2896
|
-
body: await parseErrorBody(output.body, context),
|
|
2897
|
-
};
|
|
2898
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2899
|
-
switch (errorCode) {
|
|
2900
|
-
case "AccessDeniedException":
|
|
2901
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
2902
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2903
|
-
case "InternalServerException":
|
|
2904
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
2905
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2906
|
-
case "ResourceNotFoundException":
|
|
2907
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
2908
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2909
|
-
case "ValidationException":
|
|
2910
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
2911
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2912
|
-
default:
|
|
2913
|
-
const parsedBody = parsedOutput.body;
|
|
2914
|
-
return throwDefaultError({
|
|
2915
|
-
output,
|
|
2916
|
-
parsedBody,
|
|
2917
|
-
errorCode,
|
|
2918
|
-
});
|
|
2919
|
-
}
|
|
2920
|
-
};
|
|
2921
|
-
export const de_TagResourceCommand = async (output, context) => {
|
|
2922
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2923
|
-
return de_TagResourceCommandError(output, context);
|
|
2924
|
-
}
|
|
2925
|
-
const contents = map({
|
|
2926
|
-
$metadata: deserializeMetadata(output),
|
|
2927
|
-
});
|
|
2928
|
-
await collectBody(output.body, context);
|
|
2929
|
-
return contents;
|
|
2930
|
-
};
|
|
2931
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
2932
|
-
const parsedOutput = {
|
|
2933
|
-
...output,
|
|
2934
|
-
body: await parseErrorBody(output.body, context),
|
|
2935
|
-
};
|
|
2936
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2937
|
-
switch (errorCode) {
|
|
2938
|
-
case "InternalServerException":
|
|
2939
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
2940
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2941
|
-
case "ResourceNotFoundException":
|
|
2942
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
2943
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2944
|
-
case "ValidationException":
|
|
2945
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
2946
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2947
|
-
default:
|
|
2948
|
-
const parsedBody = parsedOutput.body;
|
|
2949
|
-
return throwDefaultError({
|
|
2950
|
-
output,
|
|
2951
|
-
parsedBody,
|
|
2952
|
-
errorCode,
|
|
2953
|
-
});
|
|
2954
|
-
}
|
|
2955
|
-
};
|
|
2956
|
-
export const de_UntagResourceCommand = async (output, context) => {
|
|
1529
|
+
export const de_TagResourceCommand = async (output, context) => {
|
|
2957
1530
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2958
|
-
return
|
|
1531
|
+
return de_CommandError(output, context);
|
|
2959
1532
|
}
|
|
2960
1533
|
const contents = map({
|
|
2961
1534
|
$metadata: deserializeMetadata(output),
|
|
@@ -2963,34 +1536,19 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
2963
1536
|
await collectBody(output.body, context);
|
|
2964
1537
|
return contents;
|
|
2965
1538
|
};
|
|
2966
|
-
const
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
body: await parseErrorBody(output.body, context),
|
|
2970
|
-
};
|
|
2971
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2972
|
-
switch (errorCode) {
|
|
2973
|
-
case "InternalServerException":
|
|
2974
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
2975
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2976
|
-
case "ResourceNotFoundException":
|
|
2977
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
2978
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2979
|
-
case "ValidationException":
|
|
2980
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
2981
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2982
|
-
default:
|
|
2983
|
-
const parsedBody = parsedOutput.body;
|
|
2984
|
-
return throwDefaultError({
|
|
2985
|
-
output,
|
|
2986
|
-
parsedBody,
|
|
2987
|
-
errorCode,
|
|
2988
|
-
});
|
|
1539
|
+
export const de_UntagResourceCommand = async (output, context) => {
|
|
1540
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1541
|
+
return de_CommandError(output, context);
|
|
2989
1542
|
}
|
|
1543
|
+
const contents = map({
|
|
1544
|
+
$metadata: deserializeMetadata(output),
|
|
1545
|
+
});
|
|
1546
|
+
await collectBody(output.body, context);
|
|
1547
|
+
return contents;
|
|
2990
1548
|
};
|
|
2991
1549
|
export const de_UpdateAssessmentCommand = async (output, context) => {
|
|
2992
1550
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2993
|
-
return
|
|
1551
|
+
return de_CommandError(output, context);
|
|
2994
1552
|
}
|
|
2995
1553
|
const contents = map({
|
|
2996
1554
|
$metadata: deserializeMetadata(output),
|
|
@@ -3002,37 +1560,9 @@ export const de_UpdateAssessmentCommand = async (output, context) => {
|
|
|
3002
1560
|
Object.assign(contents, doc);
|
|
3003
1561
|
return contents;
|
|
3004
1562
|
};
|
|
3005
|
-
const de_UpdateAssessmentCommandError = async (output, context) => {
|
|
3006
|
-
const parsedOutput = {
|
|
3007
|
-
...output,
|
|
3008
|
-
body: await parseErrorBody(output.body, context),
|
|
3009
|
-
};
|
|
3010
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3011
|
-
switch (errorCode) {
|
|
3012
|
-
case "AccessDeniedException":
|
|
3013
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
3014
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3015
|
-
case "InternalServerException":
|
|
3016
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
3017
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3018
|
-
case "ResourceNotFoundException":
|
|
3019
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
3020
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3021
|
-
case "ValidationException":
|
|
3022
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
3023
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3024
|
-
default:
|
|
3025
|
-
const parsedBody = parsedOutput.body;
|
|
3026
|
-
return throwDefaultError({
|
|
3027
|
-
output,
|
|
3028
|
-
parsedBody,
|
|
3029
|
-
errorCode,
|
|
3030
|
-
});
|
|
3031
|
-
}
|
|
3032
|
-
};
|
|
3033
1563
|
export const de_UpdateAssessmentControlCommand = async (output, context) => {
|
|
3034
1564
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3035
|
-
return
|
|
1565
|
+
return de_CommandError(output, context);
|
|
3036
1566
|
}
|
|
3037
1567
|
const contents = map({
|
|
3038
1568
|
$metadata: deserializeMetadata(output),
|
|
@@ -3044,37 +1574,9 @@ export const de_UpdateAssessmentControlCommand = async (output, context) => {
|
|
|
3044
1574
|
Object.assign(contents, doc);
|
|
3045
1575
|
return contents;
|
|
3046
1576
|
};
|
|
3047
|
-
const de_UpdateAssessmentControlCommandError = async (output, context) => {
|
|
3048
|
-
const parsedOutput = {
|
|
3049
|
-
...output,
|
|
3050
|
-
body: await parseErrorBody(output.body, context),
|
|
3051
|
-
};
|
|
3052
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3053
|
-
switch (errorCode) {
|
|
3054
|
-
case "AccessDeniedException":
|
|
3055
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
3056
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3057
|
-
case "InternalServerException":
|
|
3058
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
3059
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3060
|
-
case "ResourceNotFoundException":
|
|
3061
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
3062
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3063
|
-
case "ValidationException":
|
|
3064
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
3065
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3066
|
-
default:
|
|
3067
|
-
const parsedBody = parsedOutput.body;
|
|
3068
|
-
return throwDefaultError({
|
|
3069
|
-
output,
|
|
3070
|
-
parsedBody,
|
|
3071
|
-
errorCode,
|
|
3072
|
-
});
|
|
3073
|
-
}
|
|
3074
|
-
};
|
|
3075
1577
|
export const de_UpdateAssessmentControlSetStatusCommand = async (output, context) => {
|
|
3076
1578
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3077
|
-
return
|
|
1579
|
+
return de_CommandError(output, context);
|
|
3078
1580
|
}
|
|
3079
1581
|
const contents = map({
|
|
3080
1582
|
$metadata: deserializeMetadata(output),
|
|
@@ -3086,37 +1588,9 @@ export const de_UpdateAssessmentControlSetStatusCommand = async (output, context
|
|
|
3086
1588
|
Object.assign(contents, doc);
|
|
3087
1589
|
return contents;
|
|
3088
1590
|
};
|
|
3089
|
-
const de_UpdateAssessmentControlSetStatusCommandError = async (output, context) => {
|
|
3090
|
-
const parsedOutput = {
|
|
3091
|
-
...output,
|
|
3092
|
-
body: await parseErrorBody(output.body, context),
|
|
3093
|
-
};
|
|
3094
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3095
|
-
switch (errorCode) {
|
|
3096
|
-
case "AccessDeniedException":
|
|
3097
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
3098
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3099
|
-
case "InternalServerException":
|
|
3100
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
3101
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3102
|
-
case "ResourceNotFoundException":
|
|
3103
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
3104
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3105
|
-
case "ValidationException":
|
|
3106
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
3107
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3108
|
-
default:
|
|
3109
|
-
const parsedBody = parsedOutput.body;
|
|
3110
|
-
return throwDefaultError({
|
|
3111
|
-
output,
|
|
3112
|
-
parsedBody,
|
|
3113
|
-
errorCode,
|
|
3114
|
-
});
|
|
3115
|
-
}
|
|
3116
|
-
};
|
|
3117
1591
|
export const de_UpdateAssessmentFrameworkCommand = async (output, context) => {
|
|
3118
1592
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3119
|
-
return
|
|
1593
|
+
return de_CommandError(output, context);
|
|
3120
1594
|
}
|
|
3121
1595
|
const contents = map({
|
|
3122
1596
|
$metadata: deserializeMetadata(output),
|
|
@@ -3128,37 +1602,9 @@ export const de_UpdateAssessmentFrameworkCommand = async (output, context) => {
|
|
|
3128
1602
|
Object.assign(contents, doc);
|
|
3129
1603
|
return contents;
|
|
3130
1604
|
};
|
|
3131
|
-
const de_UpdateAssessmentFrameworkCommandError = async (output, context) => {
|
|
3132
|
-
const parsedOutput = {
|
|
3133
|
-
...output,
|
|
3134
|
-
body: await parseErrorBody(output.body, context),
|
|
3135
|
-
};
|
|
3136
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3137
|
-
switch (errorCode) {
|
|
3138
|
-
case "AccessDeniedException":
|
|
3139
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
3140
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3141
|
-
case "InternalServerException":
|
|
3142
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
3143
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3144
|
-
case "ResourceNotFoundException":
|
|
3145
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
3146
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3147
|
-
case "ValidationException":
|
|
3148
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
3149
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3150
|
-
default:
|
|
3151
|
-
const parsedBody = parsedOutput.body;
|
|
3152
|
-
return throwDefaultError({
|
|
3153
|
-
output,
|
|
3154
|
-
parsedBody,
|
|
3155
|
-
errorCode,
|
|
3156
|
-
});
|
|
3157
|
-
}
|
|
3158
|
-
};
|
|
3159
1605
|
export const de_UpdateAssessmentFrameworkShareCommand = async (output, context) => {
|
|
3160
1606
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3161
|
-
return
|
|
1607
|
+
return de_CommandError(output, context);
|
|
3162
1608
|
}
|
|
3163
1609
|
const contents = map({
|
|
3164
1610
|
$metadata: deserializeMetadata(output),
|
|
@@ -3170,40 +1616,9 @@ export const de_UpdateAssessmentFrameworkShareCommand = async (output, context)
|
|
|
3170
1616
|
Object.assign(contents, doc);
|
|
3171
1617
|
return contents;
|
|
3172
1618
|
};
|
|
3173
|
-
const de_UpdateAssessmentFrameworkShareCommandError = async (output, context) => {
|
|
3174
|
-
const parsedOutput = {
|
|
3175
|
-
...output,
|
|
3176
|
-
body: await parseErrorBody(output.body, context),
|
|
3177
|
-
};
|
|
3178
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3179
|
-
switch (errorCode) {
|
|
3180
|
-
case "AccessDeniedException":
|
|
3181
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
3182
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3183
|
-
case "InternalServerException":
|
|
3184
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
3185
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3186
|
-
case "ResourceNotFoundException":
|
|
3187
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
3188
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3189
|
-
case "ServiceQuotaExceededException":
|
|
3190
|
-
case "com.amazonaws.auditmanager#ServiceQuotaExceededException":
|
|
3191
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3192
|
-
case "ValidationException":
|
|
3193
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
3194
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3195
|
-
default:
|
|
3196
|
-
const parsedBody = parsedOutput.body;
|
|
3197
|
-
return throwDefaultError({
|
|
3198
|
-
output,
|
|
3199
|
-
parsedBody,
|
|
3200
|
-
errorCode,
|
|
3201
|
-
});
|
|
3202
|
-
}
|
|
3203
|
-
};
|
|
3204
1619
|
export const de_UpdateAssessmentStatusCommand = async (output, context) => {
|
|
3205
1620
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3206
|
-
return
|
|
1621
|
+
return de_CommandError(output, context);
|
|
3207
1622
|
}
|
|
3208
1623
|
const contents = map({
|
|
3209
1624
|
$metadata: deserializeMetadata(output),
|
|
@@ -3215,40 +1630,9 @@ export const de_UpdateAssessmentStatusCommand = async (output, context) => {
|
|
|
3215
1630
|
Object.assign(contents, doc);
|
|
3216
1631
|
return contents;
|
|
3217
1632
|
};
|
|
3218
|
-
const de_UpdateAssessmentStatusCommandError = async (output, context) => {
|
|
3219
|
-
const parsedOutput = {
|
|
3220
|
-
...output,
|
|
3221
|
-
body: await parseErrorBody(output.body, context),
|
|
3222
|
-
};
|
|
3223
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3224
|
-
switch (errorCode) {
|
|
3225
|
-
case "AccessDeniedException":
|
|
3226
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
3227
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3228
|
-
case "InternalServerException":
|
|
3229
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
3230
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3231
|
-
case "ResourceNotFoundException":
|
|
3232
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
3233
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3234
|
-
case "ServiceQuotaExceededException":
|
|
3235
|
-
case "com.amazonaws.auditmanager#ServiceQuotaExceededException":
|
|
3236
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3237
|
-
case "ValidationException":
|
|
3238
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
3239
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3240
|
-
default:
|
|
3241
|
-
const parsedBody = parsedOutput.body;
|
|
3242
|
-
return throwDefaultError({
|
|
3243
|
-
output,
|
|
3244
|
-
parsedBody,
|
|
3245
|
-
errorCode,
|
|
3246
|
-
});
|
|
3247
|
-
}
|
|
3248
|
-
};
|
|
3249
1633
|
export const de_UpdateControlCommand = async (output, context) => {
|
|
3250
1634
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3251
|
-
return
|
|
1635
|
+
return de_CommandError(output, context);
|
|
3252
1636
|
}
|
|
3253
1637
|
const contents = map({
|
|
3254
1638
|
$metadata: deserializeMetadata(output),
|
|
@@ -3260,37 +1644,9 @@ export const de_UpdateControlCommand = async (output, context) => {
|
|
|
3260
1644
|
Object.assign(contents, doc);
|
|
3261
1645
|
return contents;
|
|
3262
1646
|
};
|
|
3263
|
-
const de_UpdateControlCommandError = async (output, context) => {
|
|
3264
|
-
const parsedOutput = {
|
|
3265
|
-
...output,
|
|
3266
|
-
body: await parseErrorBody(output.body, context),
|
|
3267
|
-
};
|
|
3268
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3269
|
-
switch (errorCode) {
|
|
3270
|
-
case "AccessDeniedException":
|
|
3271
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
3272
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3273
|
-
case "InternalServerException":
|
|
3274
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
3275
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3276
|
-
case "ResourceNotFoundException":
|
|
3277
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
3278
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3279
|
-
case "ValidationException":
|
|
3280
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
3281
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3282
|
-
default:
|
|
3283
|
-
const parsedBody = parsedOutput.body;
|
|
3284
|
-
return throwDefaultError({
|
|
3285
|
-
output,
|
|
3286
|
-
parsedBody,
|
|
3287
|
-
errorCode,
|
|
3288
|
-
});
|
|
3289
|
-
}
|
|
3290
|
-
};
|
|
3291
1647
|
export const de_UpdateSettingsCommand = async (output, context) => {
|
|
3292
1648
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3293
|
-
return
|
|
1649
|
+
return de_CommandError(output, context);
|
|
3294
1650
|
}
|
|
3295
1651
|
const contents = map({
|
|
3296
1652
|
$metadata: deserializeMetadata(output),
|
|
@@ -3302,34 +1658,9 @@ export const de_UpdateSettingsCommand = async (output, context) => {
|
|
|
3302
1658
|
Object.assign(contents, doc);
|
|
3303
1659
|
return contents;
|
|
3304
1660
|
};
|
|
3305
|
-
const de_UpdateSettingsCommandError = async (output, context) => {
|
|
3306
|
-
const parsedOutput = {
|
|
3307
|
-
...output,
|
|
3308
|
-
body: await parseErrorBody(output.body, context),
|
|
3309
|
-
};
|
|
3310
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3311
|
-
switch (errorCode) {
|
|
3312
|
-
case "AccessDeniedException":
|
|
3313
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
3314
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3315
|
-
case "InternalServerException":
|
|
3316
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
3317
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3318
|
-
case "ValidationException":
|
|
3319
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
3320
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3321
|
-
default:
|
|
3322
|
-
const parsedBody = parsedOutput.body;
|
|
3323
|
-
return throwDefaultError({
|
|
3324
|
-
output,
|
|
3325
|
-
parsedBody,
|
|
3326
|
-
errorCode,
|
|
3327
|
-
});
|
|
3328
|
-
}
|
|
3329
|
-
};
|
|
3330
1661
|
export const de_ValidateAssessmentReportIntegrityCommand = async (output, context) => {
|
|
3331
1662
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3332
|
-
return
|
|
1663
|
+
return de_CommandError(output, context);
|
|
3333
1664
|
}
|
|
3334
1665
|
const contents = map({
|
|
3335
1666
|
$metadata: deserializeMetadata(output),
|
|
@@ -3345,7 +1676,7 @@ export const de_ValidateAssessmentReportIntegrityCommand = async (output, contex
|
|
|
3345
1676
|
Object.assign(contents, doc);
|
|
3346
1677
|
return contents;
|
|
3347
1678
|
};
|
|
3348
|
-
const
|
|
1679
|
+
const de_CommandError = async (output, context) => {
|
|
3349
1680
|
const parsedOutput = {
|
|
3350
1681
|
...output,
|
|
3351
1682
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3364,6 +1695,12 @@ const de_ValidateAssessmentReportIntegrityCommandError = async (output, context)
|
|
|
3364
1695
|
case "ValidationException":
|
|
3365
1696
|
case "com.amazonaws.auditmanager#ValidationException":
|
|
3366
1697
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1698
|
+
case "ThrottlingException":
|
|
1699
|
+
case "com.amazonaws.auditmanager#ThrottlingException":
|
|
1700
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1701
|
+
case "ServiceQuotaExceededException":
|
|
1702
|
+
case "com.amazonaws.auditmanager#ServiceQuotaExceededException":
|
|
1703
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3367
1704
|
default:
|
|
3368
1705
|
const parsedBody = parsedOutput.body;
|
|
3369
1706
|
return throwDefaultError({
|