@aws-sdk/client-resiliencehub 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 +88 -1821
- package/dist-es/protocols/Aws_restJson1.js +80 -1813
- package/package.json +3 -3
|
@@ -864,7 +864,7 @@ export const se_UpdateResiliencyPolicyCommand = async (input, context) => {
|
|
|
864
864
|
};
|
|
865
865
|
export const de_AddDraftAppVersionResourceMappingsCommand = async (output, context) => {
|
|
866
866
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
867
|
-
return
|
|
867
|
+
return de_CommandError(output, context);
|
|
868
868
|
}
|
|
869
869
|
const contents = map({
|
|
870
870
|
$metadata: deserializeMetadata(output),
|
|
@@ -878,43 +878,9 @@ export const de_AddDraftAppVersionResourceMappingsCommand = async (output, conte
|
|
|
878
878
|
Object.assign(contents, doc);
|
|
879
879
|
return contents;
|
|
880
880
|
};
|
|
881
|
-
const de_AddDraftAppVersionResourceMappingsCommandError = async (output, context) => {
|
|
882
|
-
const parsedOutput = {
|
|
883
|
-
...output,
|
|
884
|
-
body: await parseErrorBody(output.body, context),
|
|
885
|
-
};
|
|
886
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
887
|
-
switch (errorCode) {
|
|
888
|
-
case "AccessDeniedException":
|
|
889
|
-
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
890
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
891
|
-
case "ConflictException":
|
|
892
|
-
case "com.amazonaws.resiliencehub#ConflictException":
|
|
893
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
894
|
-
case "InternalServerException":
|
|
895
|
-
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
896
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
897
|
-
case "ResourceNotFoundException":
|
|
898
|
-
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
899
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
900
|
-
case "ThrottlingException":
|
|
901
|
-
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
902
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
903
|
-
case "ValidationException":
|
|
904
|
-
case "com.amazonaws.resiliencehub#ValidationException":
|
|
905
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
906
|
-
default:
|
|
907
|
-
const parsedBody = parsedOutput.body;
|
|
908
|
-
return throwDefaultError({
|
|
909
|
-
output,
|
|
910
|
-
parsedBody,
|
|
911
|
-
errorCode,
|
|
912
|
-
});
|
|
913
|
-
}
|
|
914
|
-
};
|
|
915
881
|
export const de_BatchUpdateRecommendationStatusCommand = async (output, context) => {
|
|
916
882
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
917
|
-
return
|
|
883
|
+
return de_CommandError(output, context);
|
|
918
884
|
}
|
|
919
885
|
const contents = map({
|
|
920
886
|
$metadata: deserializeMetadata(output),
|
|
@@ -928,40 +894,9 @@ export const de_BatchUpdateRecommendationStatusCommand = async (output, context)
|
|
|
928
894
|
Object.assign(contents, doc);
|
|
929
895
|
return contents;
|
|
930
896
|
};
|
|
931
|
-
const de_BatchUpdateRecommendationStatusCommandError = async (output, context) => {
|
|
932
|
-
const parsedOutput = {
|
|
933
|
-
...output,
|
|
934
|
-
body: await parseErrorBody(output.body, context),
|
|
935
|
-
};
|
|
936
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
937
|
-
switch (errorCode) {
|
|
938
|
-
case "AccessDeniedException":
|
|
939
|
-
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
940
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
941
|
-
case "InternalServerException":
|
|
942
|
-
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
943
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
944
|
-
case "ResourceNotFoundException":
|
|
945
|
-
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
946
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
947
|
-
case "ThrottlingException":
|
|
948
|
-
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
949
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
950
|
-
case "ValidationException":
|
|
951
|
-
case "com.amazonaws.resiliencehub#ValidationException":
|
|
952
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
953
|
-
default:
|
|
954
|
-
const parsedBody = parsedOutput.body;
|
|
955
|
-
return throwDefaultError({
|
|
956
|
-
output,
|
|
957
|
-
parsedBody,
|
|
958
|
-
errorCode,
|
|
959
|
-
});
|
|
960
|
-
}
|
|
961
|
-
};
|
|
962
897
|
export const de_CreateAppCommand = async (output, context) => {
|
|
963
898
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
964
|
-
return
|
|
899
|
+
return de_CommandError(output, context);
|
|
965
900
|
}
|
|
966
901
|
const contents = map({
|
|
967
902
|
$metadata: deserializeMetadata(output),
|
|
@@ -973,46 +908,9 @@ export const de_CreateAppCommand = async (output, context) => {
|
|
|
973
908
|
Object.assign(contents, doc);
|
|
974
909
|
return contents;
|
|
975
910
|
};
|
|
976
|
-
const de_CreateAppCommandError = async (output, context) => {
|
|
977
|
-
const parsedOutput = {
|
|
978
|
-
...output,
|
|
979
|
-
body: await parseErrorBody(output.body, context),
|
|
980
|
-
};
|
|
981
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
982
|
-
switch (errorCode) {
|
|
983
|
-
case "AccessDeniedException":
|
|
984
|
-
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
985
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
986
|
-
case "ConflictException":
|
|
987
|
-
case "com.amazonaws.resiliencehub#ConflictException":
|
|
988
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
989
|
-
case "InternalServerException":
|
|
990
|
-
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
991
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
992
|
-
case "ResourceNotFoundException":
|
|
993
|
-
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
994
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
995
|
-
case "ServiceQuotaExceededException":
|
|
996
|
-
case "com.amazonaws.resiliencehub#ServiceQuotaExceededException":
|
|
997
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
998
|
-
case "ThrottlingException":
|
|
999
|
-
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
1000
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1001
|
-
case "ValidationException":
|
|
1002
|
-
case "com.amazonaws.resiliencehub#ValidationException":
|
|
1003
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1004
|
-
default:
|
|
1005
|
-
const parsedBody = parsedOutput.body;
|
|
1006
|
-
return throwDefaultError({
|
|
1007
|
-
output,
|
|
1008
|
-
parsedBody,
|
|
1009
|
-
errorCode,
|
|
1010
|
-
});
|
|
1011
|
-
}
|
|
1012
|
-
};
|
|
1013
911
|
export const de_CreateAppVersionAppComponentCommand = async (output, context) => {
|
|
1014
912
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1015
|
-
return
|
|
913
|
+
return de_CommandError(output, context);
|
|
1016
914
|
}
|
|
1017
915
|
const contents = map({
|
|
1018
916
|
$metadata: deserializeMetadata(output),
|
|
@@ -1026,46 +924,9 @@ export const de_CreateAppVersionAppComponentCommand = async (output, context) =>
|
|
|
1026
924
|
Object.assign(contents, doc);
|
|
1027
925
|
return contents;
|
|
1028
926
|
};
|
|
1029
|
-
const de_CreateAppVersionAppComponentCommandError = async (output, context) => {
|
|
1030
|
-
const parsedOutput = {
|
|
1031
|
-
...output,
|
|
1032
|
-
body: await parseErrorBody(output.body, context),
|
|
1033
|
-
};
|
|
1034
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1035
|
-
switch (errorCode) {
|
|
1036
|
-
case "AccessDeniedException":
|
|
1037
|
-
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
1038
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1039
|
-
case "ConflictException":
|
|
1040
|
-
case "com.amazonaws.resiliencehub#ConflictException":
|
|
1041
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1042
|
-
case "InternalServerException":
|
|
1043
|
-
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
1044
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1045
|
-
case "ResourceNotFoundException":
|
|
1046
|
-
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
1047
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1048
|
-
case "ServiceQuotaExceededException":
|
|
1049
|
-
case "com.amazonaws.resiliencehub#ServiceQuotaExceededException":
|
|
1050
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1051
|
-
case "ThrottlingException":
|
|
1052
|
-
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
1053
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1054
|
-
case "ValidationException":
|
|
1055
|
-
case "com.amazonaws.resiliencehub#ValidationException":
|
|
1056
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1057
|
-
default:
|
|
1058
|
-
const parsedBody = parsedOutput.body;
|
|
1059
|
-
return throwDefaultError({
|
|
1060
|
-
output,
|
|
1061
|
-
parsedBody,
|
|
1062
|
-
errorCode,
|
|
1063
|
-
});
|
|
1064
|
-
}
|
|
1065
|
-
};
|
|
1066
927
|
export const de_CreateAppVersionResourceCommand = async (output, context) => {
|
|
1067
928
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1068
|
-
return
|
|
929
|
+
return de_CommandError(output, context);
|
|
1069
930
|
}
|
|
1070
931
|
const contents = map({
|
|
1071
932
|
$metadata: deserializeMetadata(output),
|
|
@@ -1079,46 +940,9 @@ export const de_CreateAppVersionResourceCommand = async (output, context) => {
|
|
|
1079
940
|
Object.assign(contents, doc);
|
|
1080
941
|
return contents;
|
|
1081
942
|
};
|
|
1082
|
-
const de_CreateAppVersionResourceCommandError = async (output, context) => {
|
|
1083
|
-
const parsedOutput = {
|
|
1084
|
-
...output,
|
|
1085
|
-
body: await parseErrorBody(output.body, context),
|
|
1086
|
-
};
|
|
1087
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1088
|
-
switch (errorCode) {
|
|
1089
|
-
case "AccessDeniedException":
|
|
1090
|
-
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
1091
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1092
|
-
case "ConflictException":
|
|
1093
|
-
case "com.amazonaws.resiliencehub#ConflictException":
|
|
1094
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1095
|
-
case "InternalServerException":
|
|
1096
|
-
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
1097
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1098
|
-
case "ResourceNotFoundException":
|
|
1099
|
-
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
1100
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1101
|
-
case "ServiceQuotaExceededException":
|
|
1102
|
-
case "com.amazonaws.resiliencehub#ServiceQuotaExceededException":
|
|
1103
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1104
|
-
case "ThrottlingException":
|
|
1105
|
-
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
1106
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1107
|
-
case "ValidationException":
|
|
1108
|
-
case "com.amazonaws.resiliencehub#ValidationException":
|
|
1109
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1110
|
-
default:
|
|
1111
|
-
const parsedBody = parsedOutput.body;
|
|
1112
|
-
return throwDefaultError({
|
|
1113
|
-
output,
|
|
1114
|
-
parsedBody,
|
|
1115
|
-
errorCode,
|
|
1116
|
-
});
|
|
1117
|
-
}
|
|
1118
|
-
};
|
|
1119
943
|
export const de_CreateRecommendationTemplateCommand = async (output, context) => {
|
|
1120
944
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1121
|
-
return
|
|
945
|
+
return de_CommandError(output, context);
|
|
1122
946
|
}
|
|
1123
947
|
const contents = map({
|
|
1124
948
|
$metadata: deserializeMetadata(output),
|
|
@@ -1130,46 +954,9 @@ export const de_CreateRecommendationTemplateCommand = async (output, context) =>
|
|
|
1130
954
|
Object.assign(contents, doc);
|
|
1131
955
|
return contents;
|
|
1132
956
|
};
|
|
1133
|
-
const de_CreateRecommendationTemplateCommandError = async (output, context) => {
|
|
1134
|
-
const parsedOutput = {
|
|
1135
|
-
...output,
|
|
1136
|
-
body: await parseErrorBody(output.body, context),
|
|
1137
|
-
};
|
|
1138
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1139
|
-
switch (errorCode) {
|
|
1140
|
-
case "AccessDeniedException":
|
|
1141
|
-
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
1142
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1143
|
-
case "ConflictException":
|
|
1144
|
-
case "com.amazonaws.resiliencehub#ConflictException":
|
|
1145
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1146
|
-
case "InternalServerException":
|
|
1147
|
-
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
1148
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1149
|
-
case "ResourceNotFoundException":
|
|
1150
|
-
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
1151
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1152
|
-
case "ServiceQuotaExceededException":
|
|
1153
|
-
case "com.amazonaws.resiliencehub#ServiceQuotaExceededException":
|
|
1154
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1155
|
-
case "ThrottlingException":
|
|
1156
|
-
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
1157
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1158
|
-
case "ValidationException":
|
|
1159
|
-
case "com.amazonaws.resiliencehub#ValidationException":
|
|
1160
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1161
|
-
default:
|
|
1162
|
-
const parsedBody = parsedOutput.body;
|
|
1163
|
-
return throwDefaultError({
|
|
1164
|
-
output,
|
|
1165
|
-
parsedBody,
|
|
1166
|
-
errorCode,
|
|
1167
|
-
});
|
|
1168
|
-
}
|
|
1169
|
-
};
|
|
1170
957
|
export const de_CreateResiliencyPolicyCommand = async (output, context) => {
|
|
1171
958
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1172
|
-
return
|
|
959
|
+
return de_CommandError(output, context);
|
|
1173
960
|
}
|
|
1174
961
|
const contents = map({
|
|
1175
962
|
$metadata: deserializeMetadata(output),
|
|
@@ -1181,43 +968,9 @@ export const de_CreateResiliencyPolicyCommand = async (output, context) => {
|
|
|
1181
968
|
Object.assign(contents, doc);
|
|
1182
969
|
return contents;
|
|
1183
970
|
};
|
|
1184
|
-
const de_CreateResiliencyPolicyCommandError = async (output, context) => {
|
|
1185
|
-
const parsedOutput = {
|
|
1186
|
-
...output,
|
|
1187
|
-
body: await parseErrorBody(output.body, context),
|
|
1188
|
-
};
|
|
1189
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1190
|
-
switch (errorCode) {
|
|
1191
|
-
case "AccessDeniedException":
|
|
1192
|
-
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
1193
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1194
|
-
case "ConflictException":
|
|
1195
|
-
case "com.amazonaws.resiliencehub#ConflictException":
|
|
1196
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1197
|
-
case "InternalServerException":
|
|
1198
|
-
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
1199
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1200
|
-
case "ServiceQuotaExceededException":
|
|
1201
|
-
case "com.amazonaws.resiliencehub#ServiceQuotaExceededException":
|
|
1202
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1203
|
-
case "ThrottlingException":
|
|
1204
|
-
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
1205
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1206
|
-
case "ValidationException":
|
|
1207
|
-
case "com.amazonaws.resiliencehub#ValidationException":
|
|
1208
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1209
|
-
default:
|
|
1210
|
-
const parsedBody = parsedOutput.body;
|
|
1211
|
-
return throwDefaultError({
|
|
1212
|
-
output,
|
|
1213
|
-
parsedBody,
|
|
1214
|
-
errorCode,
|
|
1215
|
-
});
|
|
1216
|
-
}
|
|
1217
|
-
};
|
|
1218
971
|
export const de_DeleteAppCommand = async (output, context) => {
|
|
1219
972
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1220
|
-
return
|
|
973
|
+
return de_CommandError(output, context);
|
|
1221
974
|
}
|
|
1222
975
|
const contents = map({
|
|
1223
976
|
$metadata: deserializeMetadata(output),
|
|
@@ -1229,40 +982,9 @@ export const de_DeleteAppCommand = async (output, context) => {
|
|
|
1229
982
|
Object.assign(contents, doc);
|
|
1230
983
|
return contents;
|
|
1231
984
|
};
|
|
1232
|
-
const de_DeleteAppCommandError = async (output, context) => {
|
|
1233
|
-
const parsedOutput = {
|
|
1234
|
-
...output,
|
|
1235
|
-
body: await parseErrorBody(output.body, context),
|
|
1236
|
-
};
|
|
1237
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1238
|
-
switch (errorCode) {
|
|
1239
|
-
case "ConflictException":
|
|
1240
|
-
case "com.amazonaws.resiliencehub#ConflictException":
|
|
1241
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1242
|
-
case "InternalServerException":
|
|
1243
|
-
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
1244
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1245
|
-
case "ResourceNotFoundException":
|
|
1246
|
-
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
1247
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1248
|
-
case "ThrottlingException":
|
|
1249
|
-
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
1250
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1251
|
-
case "ValidationException":
|
|
1252
|
-
case "com.amazonaws.resiliencehub#ValidationException":
|
|
1253
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1254
|
-
default:
|
|
1255
|
-
const parsedBody = parsedOutput.body;
|
|
1256
|
-
return throwDefaultError({
|
|
1257
|
-
output,
|
|
1258
|
-
parsedBody,
|
|
1259
|
-
errorCode,
|
|
1260
|
-
});
|
|
1261
|
-
}
|
|
1262
|
-
};
|
|
1263
985
|
export const de_DeleteAppAssessmentCommand = async (output, context) => {
|
|
1264
986
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1265
|
-
return
|
|
987
|
+
return de_CommandError(output, context);
|
|
1266
988
|
}
|
|
1267
989
|
const contents = map({
|
|
1268
990
|
$metadata: deserializeMetadata(output),
|
|
@@ -1275,43 +997,9 @@ export const de_DeleteAppAssessmentCommand = async (output, context) => {
|
|
|
1275
997
|
Object.assign(contents, doc);
|
|
1276
998
|
return contents;
|
|
1277
999
|
};
|
|
1278
|
-
const de_DeleteAppAssessmentCommandError = async (output, context) => {
|
|
1279
|
-
const parsedOutput = {
|
|
1280
|
-
...output,
|
|
1281
|
-
body: await parseErrorBody(output.body, context),
|
|
1282
|
-
};
|
|
1283
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1284
|
-
switch (errorCode) {
|
|
1285
|
-
case "AccessDeniedException":
|
|
1286
|
-
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
1287
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1288
|
-
case "ConflictException":
|
|
1289
|
-
case "com.amazonaws.resiliencehub#ConflictException":
|
|
1290
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1291
|
-
case "InternalServerException":
|
|
1292
|
-
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
1293
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1294
|
-
case "ResourceNotFoundException":
|
|
1295
|
-
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
1296
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1297
|
-
case "ThrottlingException":
|
|
1298
|
-
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
1299
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1300
|
-
case "ValidationException":
|
|
1301
|
-
case "com.amazonaws.resiliencehub#ValidationException":
|
|
1302
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1303
|
-
default:
|
|
1304
|
-
const parsedBody = parsedOutput.body;
|
|
1305
|
-
return throwDefaultError({
|
|
1306
|
-
output,
|
|
1307
|
-
parsedBody,
|
|
1308
|
-
errorCode,
|
|
1309
|
-
});
|
|
1310
|
-
}
|
|
1311
|
-
};
|
|
1312
1000
|
export const de_DeleteAppInputSourceCommand = async (output, context) => {
|
|
1313
1001
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1314
|
-
return
|
|
1002
|
+
return de_CommandError(output, context);
|
|
1315
1003
|
}
|
|
1316
1004
|
const contents = map({
|
|
1317
1005
|
$metadata: deserializeMetadata(output),
|
|
@@ -1324,43 +1012,9 @@ export const de_DeleteAppInputSourceCommand = async (output, context) => {
|
|
|
1324
1012
|
Object.assign(contents, doc);
|
|
1325
1013
|
return contents;
|
|
1326
1014
|
};
|
|
1327
|
-
const de_DeleteAppInputSourceCommandError = async (output, context) => {
|
|
1328
|
-
const parsedOutput = {
|
|
1329
|
-
...output,
|
|
1330
|
-
body: await parseErrorBody(output.body, context),
|
|
1331
|
-
};
|
|
1332
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1333
|
-
switch (errorCode) {
|
|
1334
|
-
case "AccessDeniedException":
|
|
1335
|
-
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
1336
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1337
|
-
case "ConflictException":
|
|
1338
|
-
case "com.amazonaws.resiliencehub#ConflictException":
|
|
1339
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1340
|
-
case "InternalServerException":
|
|
1341
|
-
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
1342
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1343
|
-
case "ResourceNotFoundException":
|
|
1344
|
-
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
1345
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1346
|
-
case "ThrottlingException":
|
|
1347
|
-
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
1348
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1349
|
-
case "ValidationException":
|
|
1350
|
-
case "com.amazonaws.resiliencehub#ValidationException":
|
|
1351
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1352
|
-
default:
|
|
1353
|
-
const parsedBody = parsedOutput.body;
|
|
1354
|
-
return throwDefaultError({
|
|
1355
|
-
output,
|
|
1356
|
-
parsedBody,
|
|
1357
|
-
errorCode,
|
|
1358
|
-
});
|
|
1359
|
-
}
|
|
1360
|
-
};
|
|
1361
1015
|
export const de_DeleteAppVersionAppComponentCommand = async (output, context) => {
|
|
1362
1016
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1363
|
-
return
|
|
1017
|
+
return de_CommandError(output, context);
|
|
1364
1018
|
}
|
|
1365
1019
|
const contents = map({
|
|
1366
1020
|
$metadata: deserializeMetadata(output),
|
|
@@ -1374,43 +1028,9 @@ export const de_DeleteAppVersionAppComponentCommand = async (output, context) =>
|
|
|
1374
1028
|
Object.assign(contents, doc);
|
|
1375
1029
|
return contents;
|
|
1376
1030
|
};
|
|
1377
|
-
const de_DeleteAppVersionAppComponentCommandError = async (output, context) => {
|
|
1378
|
-
const parsedOutput = {
|
|
1379
|
-
...output,
|
|
1380
|
-
body: await parseErrorBody(output.body, context),
|
|
1381
|
-
};
|
|
1382
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1383
|
-
switch (errorCode) {
|
|
1384
|
-
case "AccessDeniedException":
|
|
1385
|
-
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
1386
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1387
|
-
case "ConflictException":
|
|
1388
|
-
case "com.amazonaws.resiliencehub#ConflictException":
|
|
1389
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1390
|
-
case "InternalServerException":
|
|
1391
|
-
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
1392
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1393
|
-
case "ResourceNotFoundException":
|
|
1394
|
-
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
1395
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1396
|
-
case "ThrottlingException":
|
|
1397
|
-
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
1398
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1399
|
-
case "ValidationException":
|
|
1400
|
-
case "com.amazonaws.resiliencehub#ValidationException":
|
|
1401
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1402
|
-
default:
|
|
1403
|
-
const parsedBody = parsedOutput.body;
|
|
1404
|
-
return throwDefaultError({
|
|
1405
|
-
output,
|
|
1406
|
-
parsedBody,
|
|
1407
|
-
errorCode,
|
|
1408
|
-
});
|
|
1409
|
-
}
|
|
1410
|
-
};
|
|
1411
1031
|
export const de_DeleteAppVersionResourceCommand = async (output, context) => {
|
|
1412
1032
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1413
|
-
return
|
|
1033
|
+
return de_CommandError(output, context);
|
|
1414
1034
|
}
|
|
1415
1035
|
const contents = map({
|
|
1416
1036
|
$metadata: deserializeMetadata(output),
|
|
@@ -1424,43 +1044,9 @@ export const de_DeleteAppVersionResourceCommand = async (output, context) => {
|
|
|
1424
1044
|
Object.assign(contents, doc);
|
|
1425
1045
|
return contents;
|
|
1426
1046
|
};
|
|
1427
|
-
const de_DeleteAppVersionResourceCommandError = async (output, context) => {
|
|
1428
|
-
const parsedOutput = {
|
|
1429
|
-
...output,
|
|
1430
|
-
body: await parseErrorBody(output.body, context),
|
|
1431
|
-
};
|
|
1432
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1433
|
-
switch (errorCode) {
|
|
1434
|
-
case "AccessDeniedException":
|
|
1435
|
-
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
1436
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1437
|
-
case "ConflictException":
|
|
1438
|
-
case "com.amazonaws.resiliencehub#ConflictException":
|
|
1439
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1440
|
-
case "InternalServerException":
|
|
1441
|
-
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
1442
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1443
|
-
case "ResourceNotFoundException":
|
|
1444
|
-
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
1445
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1446
|
-
case "ThrottlingException":
|
|
1447
|
-
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
1448
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1449
|
-
case "ValidationException":
|
|
1450
|
-
case "com.amazonaws.resiliencehub#ValidationException":
|
|
1451
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1452
|
-
default:
|
|
1453
|
-
const parsedBody = parsedOutput.body;
|
|
1454
|
-
return throwDefaultError({
|
|
1455
|
-
output,
|
|
1456
|
-
parsedBody,
|
|
1457
|
-
errorCode,
|
|
1458
|
-
});
|
|
1459
|
-
}
|
|
1460
|
-
};
|
|
1461
1047
|
export const de_DeleteRecommendationTemplateCommand = async (output, context) => {
|
|
1462
1048
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1463
|
-
return
|
|
1049
|
+
return de_CommandError(output, context);
|
|
1464
1050
|
}
|
|
1465
1051
|
const contents = map({
|
|
1466
1052
|
$metadata: deserializeMetadata(output),
|
|
@@ -1473,40 +1059,9 @@ export const de_DeleteRecommendationTemplateCommand = async (output, context) =>
|
|
|
1473
1059
|
Object.assign(contents, doc);
|
|
1474
1060
|
return contents;
|
|
1475
1061
|
};
|
|
1476
|
-
const de_DeleteRecommendationTemplateCommandError = async (output, context) => {
|
|
1477
|
-
const parsedOutput = {
|
|
1478
|
-
...output,
|
|
1479
|
-
body: await parseErrorBody(output.body, context),
|
|
1480
|
-
};
|
|
1481
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1482
|
-
switch (errorCode) {
|
|
1483
|
-
case "AccessDeniedException":
|
|
1484
|
-
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
1485
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1486
|
-
case "InternalServerException":
|
|
1487
|
-
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
1488
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1489
|
-
case "ResourceNotFoundException":
|
|
1490
|
-
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
1491
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1492
|
-
case "ThrottlingException":
|
|
1493
|
-
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
1494
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1495
|
-
case "ValidationException":
|
|
1496
|
-
case "com.amazonaws.resiliencehub#ValidationException":
|
|
1497
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1498
|
-
default:
|
|
1499
|
-
const parsedBody = parsedOutput.body;
|
|
1500
|
-
return throwDefaultError({
|
|
1501
|
-
output,
|
|
1502
|
-
parsedBody,
|
|
1503
|
-
errorCode,
|
|
1504
|
-
});
|
|
1505
|
-
}
|
|
1506
|
-
};
|
|
1507
1062
|
export const de_DeleteResiliencyPolicyCommand = async (output, context) => {
|
|
1508
1063
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1509
|
-
return
|
|
1064
|
+
return de_CommandError(output, context);
|
|
1510
1065
|
}
|
|
1511
1066
|
const contents = map({
|
|
1512
1067
|
$metadata: deserializeMetadata(output),
|
|
@@ -1518,43 +1073,9 @@ export const de_DeleteResiliencyPolicyCommand = async (output, context) => {
|
|
|
1518
1073
|
Object.assign(contents, doc);
|
|
1519
1074
|
return contents;
|
|
1520
1075
|
};
|
|
1521
|
-
const de_DeleteResiliencyPolicyCommandError = async (output, context) => {
|
|
1522
|
-
const parsedOutput = {
|
|
1523
|
-
...output,
|
|
1524
|
-
body: await parseErrorBody(output.body, context),
|
|
1525
|
-
};
|
|
1526
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1527
|
-
switch (errorCode) {
|
|
1528
|
-
case "AccessDeniedException":
|
|
1529
|
-
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
1530
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1531
|
-
case "ConflictException":
|
|
1532
|
-
case "com.amazonaws.resiliencehub#ConflictException":
|
|
1533
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1534
|
-
case "InternalServerException":
|
|
1535
|
-
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
1536
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1537
|
-
case "ResourceNotFoundException":
|
|
1538
|
-
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
1539
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1540
|
-
case "ThrottlingException":
|
|
1541
|
-
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
1542
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1543
|
-
case "ValidationException":
|
|
1544
|
-
case "com.amazonaws.resiliencehub#ValidationException":
|
|
1545
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1546
|
-
default:
|
|
1547
|
-
const parsedBody = parsedOutput.body;
|
|
1548
|
-
return throwDefaultError({
|
|
1549
|
-
output,
|
|
1550
|
-
parsedBody,
|
|
1551
|
-
errorCode,
|
|
1552
|
-
});
|
|
1553
|
-
}
|
|
1554
|
-
};
|
|
1555
1076
|
export const de_DescribeAppCommand = async (output, context) => {
|
|
1556
1077
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1557
|
-
return
|
|
1078
|
+
return de_CommandError(output, context);
|
|
1558
1079
|
}
|
|
1559
1080
|
const contents = map({
|
|
1560
1081
|
$metadata: deserializeMetadata(output),
|
|
@@ -1566,40 +1087,9 @@ export const de_DescribeAppCommand = async (output, context) => {
|
|
|
1566
1087
|
Object.assign(contents, doc);
|
|
1567
1088
|
return contents;
|
|
1568
1089
|
};
|
|
1569
|
-
const de_DescribeAppCommandError = async (output, context) => {
|
|
1570
|
-
const parsedOutput = {
|
|
1571
|
-
...output,
|
|
1572
|
-
body: await parseErrorBody(output.body, context),
|
|
1573
|
-
};
|
|
1574
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1575
|
-
switch (errorCode) {
|
|
1576
|
-
case "AccessDeniedException":
|
|
1577
|
-
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
1578
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1579
|
-
case "InternalServerException":
|
|
1580
|
-
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
1581
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1582
|
-
case "ResourceNotFoundException":
|
|
1583
|
-
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
1584
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1585
|
-
case "ThrottlingException":
|
|
1586
|
-
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
1587
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1588
|
-
case "ValidationException":
|
|
1589
|
-
case "com.amazonaws.resiliencehub#ValidationException":
|
|
1590
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1591
|
-
default:
|
|
1592
|
-
const parsedBody = parsedOutput.body;
|
|
1593
|
-
return throwDefaultError({
|
|
1594
|
-
output,
|
|
1595
|
-
parsedBody,
|
|
1596
|
-
errorCode,
|
|
1597
|
-
});
|
|
1598
|
-
}
|
|
1599
|
-
};
|
|
1600
1090
|
export const de_DescribeAppAssessmentCommand = async (output, context) => {
|
|
1601
1091
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1602
|
-
return
|
|
1092
|
+
return de_CommandError(output, context);
|
|
1603
1093
|
}
|
|
1604
1094
|
const contents = map({
|
|
1605
1095
|
$metadata: deserializeMetadata(output),
|
|
@@ -1611,40 +1101,9 @@ export const de_DescribeAppAssessmentCommand = async (output, context) => {
|
|
|
1611
1101
|
Object.assign(contents, doc);
|
|
1612
1102
|
return contents;
|
|
1613
1103
|
};
|
|
1614
|
-
const de_DescribeAppAssessmentCommandError = async (output, context) => {
|
|
1615
|
-
const parsedOutput = {
|
|
1616
|
-
...output,
|
|
1617
|
-
body: await parseErrorBody(output.body, context),
|
|
1618
|
-
};
|
|
1619
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1620
|
-
switch (errorCode) {
|
|
1621
|
-
case "AccessDeniedException":
|
|
1622
|
-
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
1623
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1624
|
-
case "InternalServerException":
|
|
1625
|
-
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
1626
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1627
|
-
case "ResourceNotFoundException":
|
|
1628
|
-
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
1629
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1630
|
-
case "ThrottlingException":
|
|
1631
|
-
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
1632
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1633
|
-
case "ValidationException":
|
|
1634
|
-
case "com.amazonaws.resiliencehub#ValidationException":
|
|
1635
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1636
|
-
default:
|
|
1637
|
-
const parsedBody = parsedOutput.body;
|
|
1638
|
-
return throwDefaultError({
|
|
1639
|
-
output,
|
|
1640
|
-
parsedBody,
|
|
1641
|
-
errorCode,
|
|
1642
|
-
});
|
|
1643
|
-
}
|
|
1644
|
-
};
|
|
1645
1104
|
export const de_DescribeAppVersionCommand = async (output, context) => {
|
|
1646
1105
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1647
|
-
return
|
|
1106
|
+
return de_CommandError(output, context);
|
|
1648
1107
|
}
|
|
1649
1108
|
const contents = map({
|
|
1650
1109
|
$metadata: deserializeMetadata(output),
|
|
@@ -1658,40 +1117,9 @@ export const de_DescribeAppVersionCommand = async (output, context) => {
|
|
|
1658
1117
|
Object.assign(contents, doc);
|
|
1659
1118
|
return contents;
|
|
1660
1119
|
};
|
|
1661
|
-
const de_DescribeAppVersionCommandError = async (output, context) => {
|
|
1662
|
-
const parsedOutput = {
|
|
1663
|
-
...output,
|
|
1664
|
-
body: await parseErrorBody(output.body, context),
|
|
1665
|
-
};
|
|
1666
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1667
|
-
switch (errorCode) {
|
|
1668
|
-
case "AccessDeniedException":
|
|
1669
|
-
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
1670
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1671
|
-
case "InternalServerException":
|
|
1672
|
-
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
1673
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1674
|
-
case "ResourceNotFoundException":
|
|
1675
|
-
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
1676
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1677
|
-
case "ThrottlingException":
|
|
1678
|
-
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
1679
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1680
|
-
case "ValidationException":
|
|
1681
|
-
case "com.amazonaws.resiliencehub#ValidationException":
|
|
1682
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1683
|
-
default:
|
|
1684
|
-
const parsedBody = parsedOutput.body;
|
|
1685
|
-
return throwDefaultError({
|
|
1686
|
-
output,
|
|
1687
|
-
parsedBody,
|
|
1688
|
-
errorCode,
|
|
1689
|
-
});
|
|
1690
|
-
}
|
|
1691
|
-
};
|
|
1692
1120
|
export const de_DescribeAppVersionAppComponentCommand = async (output, context) => {
|
|
1693
1121
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1694
|
-
return
|
|
1122
|
+
return de_CommandError(output, context);
|
|
1695
1123
|
}
|
|
1696
1124
|
const contents = map({
|
|
1697
1125
|
$metadata: deserializeMetadata(output),
|
|
@@ -1705,43 +1133,9 @@ export const de_DescribeAppVersionAppComponentCommand = async (output, context)
|
|
|
1705
1133
|
Object.assign(contents, doc);
|
|
1706
1134
|
return contents;
|
|
1707
1135
|
};
|
|
1708
|
-
const de_DescribeAppVersionAppComponentCommandError = async (output, context) => {
|
|
1709
|
-
const parsedOutput = {
|
|
1710
|
-
...output,
|
|
1711
|
-
body: await parseErrorBody(output.body, context),
|
|
1712
|
-
};
|
|
1713
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1714
|
-
switch (errorCode) {
|
|
1715
|
-
case "AccessDeniedException":
|
|
1716
|
-
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
1717
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1718
|
-
case "ConflictException":
|
|
1719
|
-
case "com.amazonaws.resiliencehub#ConflictException":
|
|
1720
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1721
|
-
case "InternalServerException":
|
|
1722
|
-
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
1723
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1724
|
-
case "ResourceNotFoundException":
|
|
1725
|
-
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
1726
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1727
|
-
case "ThrottlingException":
|
|
1728
|
-
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
1729
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1730
|
-
case "ValidationException":
|
|
1731
|
-
case "com.amazonaws.resiliencehub#ValidationException":
|
|
1732
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1733
|
-
default:
|
|
1734
|
-
const parsedBody = parsedOutput.body;
|
|
1735
|
-
return throwDefaultError({
|
|
1736
|
-
output,
|
|
1737
|
-
parsedBody,
|
|
1738
|
-
errorCode,
|
|
1739
|
-
});
|
|
1740
|
-
}
|
|
1741
|
-
};
|
|
1742
1136
|
export const de_DescribeAppVersionResourceCommand = async (output, context) => {
|
|
1743
1137
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1744
|
-
return
|
|
1138
|
+
return de_CommandError(output, context);
|
|
1745
1139
|
}
|
|
1746
1140
|
const contents = map({
|
|
1747
1141
|
$metadata: deserializeMetadata(output),
|
|
@@ -1755,43 +1149,9 @@ export const de_DescribeAppVersionResourceCommand = async (output, context) => {
|
|
|
1755
1149
|
Object.assign(contents, doc);
|
|
1756
1150
|
return contents;
|
|
1757
1151
|
};
|
|
1758
|
-
const de_DescribeAppVersionResourceCommandError = async (output, context) => {
|
|
1759
|
-
const parsedOutput = {
|
|
1760
|
-
...output,
|
|
1761
|
-
body: await parseErrorBody(output.body, context),
|
|
1762
|
-
};
|
|
1763
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1764
|
-
switch (errorCode) {
|
|
1765
|
-
case "AccessDeniedException":
|
|
1766
|
-
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
1767
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1768
|
-
case "ConflictException":
|
|
1769
|
-
case "com.amazonaws.resiliencehub#ConflictException":
|
|
1770
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1771
|
-
case "InternalServerException":
|
|
1772
|
-
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
1773
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1774
|
-
case "ResourceNotFoundException":
|
|
1775
|
-
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
1776
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1777
|
-
case "ThrottlingException":
|
|
1778
|
-
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
1779
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1780
|
-
case "ValidationException":
|
|
1781
|
-
case "com.amazonaws.resiliencehub#ValidationException":
|
|
1782
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1783
|
-
default:
|
|
1784
|
-
const parsedBody = parsedOutput.body;
|
|
1785
|
-
return throwDefaultError({
|
|
1786
|
-
output,
|
|
1787
|
-
parsedBody,
|
|
1788
|
-
errorCode,
|
|
1789
|
-
});
|
|
1790
|
-
}
|
|
1791
|
-
};
|
|
1792
1152
|
export const de_DescribeAppVersionResourcesResolutionStatusCommand = async (output, context) => {
|
|
1793
1153
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1794
|
-
return
|
|
1154
|
+
return de_CommandError(output, context);
|
|
1795
1155
|
}
|
|
1796
1156
|
const contents = map({
|
|
1797
1157
|
$metadata: deserializeMetadata(output),
|
|
@@ -1807,40 +1167,9 @@ export const de_DescribeAppVersionResourcesResolutionStatusCommand = async (outp
|
|
|
1807
1167
|
Object.assign(contents, doc);
|
|
1808
1168
|
return contents;
|
|
1809
1169
|
};
|
|
1810
|
-
const de_DescribeAppVersionResourcesResolutionStatusCommandError = async (output, context) => {
|
|
1811
|
-
const parsedOutput = {
|
|
1812
|
-
...output,
|
|
1813
|
-
body: await parseErrorBody(output.body, context),
|
|
1814
|
-
};
|
|
1815
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1816
|
-
switch (errorCode) {
|
|
1817
|
-
case "AccessDeniedException":
|
|
1818
|
-
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
1819
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1820
|
-
case "InternalServerException":
|
|
1821
|
-
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
1822
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1823
|
-
case "ResourceNotFoundException":
|
|
1824
|
-
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
1825
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1826
|
-
case "ThrottlingException":
|
|
1827
|
-
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
1828
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1829
|
-
case "ValidationException":
|
|
1830
|
-
case "com.amazonaws.resiliencehub#ValidationException":
|
|
1831
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1832
|
-
default:
|
|
1833
|
-
const parsedBody = parsedOutput.body;
|
|
1834
|
-
return throwDefaultError({
|
|
1835
|
-
output,
|
|
1836
|
-
parsedBody,
|
|
1837
|
-
errorCode,
|
|
1838
|
-
});
|
|
1839
|
-
}
|
|
1840
|
-
};
|
|
1841
1170
|
export const de_DescribeAppVersionTemplateCommand = async (output, context) => {
|
|
1842
1171
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1843
|
-
return
|
|
1172
|
+
return de_CommandError(output, context);
|
|
1844
1173
|
}
|
|
1845
1174
|
const contents = map({
|
|
1846
1175
|
$metadata: deserializeMetadata(output),
|
|
@@ -1854,40 +1183,9 @@ export const de_DescribeAppVersionTemplateCommand = async (output, context) => {
|
|
|
1854
1183
|
Object.assign(contents, doc);
|
|
1855
1184
|
return contents;
|
|
1856
1185
|
};
|
|
1857
|
-
const de_DescribeAppVersionTemplateCommandError = async (output, context) => {
|
|
1858
|
-
const parsedOutput = {
|
|
1859
|
-
...output,
|
|
1860
|
-
body: await parseErrorBody(output.body, context),
|
|
1861
|
-
};
|
|
1862
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1863
|
-
switch (errorCode) {
|
|
1864
|
-
case "AccessDeniedException":
|
|
1865
|
-
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
1866
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1867
|
-
case "InternalServerException":
|
|
1868
|
-
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
1869
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1870
|
-
case "ResourceNotFoundException":
|
|
1871
|
-
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
1872
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1873
|
-
case "ThrottlingException":
|
|
1874
|
-
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
1875
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1876
|
-
case "ValidationException":
|
|
1877
|
-
case "com.amazonaws.resiliencehub#ValidationException":
|
|
1878
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1879
|
-
default:
|
|
1880
|
-
const parsedBody = parsedOutput.body;
|
|
1881
|
-
return throwDefaultError({
|
|
1882
|
-
output,
|
|
1883
|
-
parsedBody,
|
|
1884
|
-
errorCode,
|
|
1885
|
-
});
|
|
1886
|
-
}
|
|
1887
|
-
};
|
|
1888
1186
|
export const de_DescribeDraftAppVersionResourcesImportStatusCommand = async (output, context) => {
|
|
1889
1187
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1890
|
-
return
|
|
1188
|
+
return de_CommandError(output, context);
|
|
1891
1189
|
}
|
|
1892
1190
|
const contents = map({
|
|
1893
1191
|
$metadata: deserializeMetadata(output),
|
|
@@ -1903,40 +1201,9 @@ export const de_DescribeDraftAppVersionResourcesImportStatusCommand = async (out
|
|
|
1903
1201
|
Object.assign(contents, doc);
|
|
1904
1202
|
return contents;
|
|
1905
1203
|
};
|
|
1906
|
-
const de_DescribeDraftAppVersionResourcesImportStatusCommandError = async (output, context) => {
|
|
1907
|
-
const parsedOutput = {
|
|
1908
|
-
...output,
|
|
1909
|
-
body: await parseErrorBody(output.body, context),
|
|
1910
|
-
};
|
|
1911
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1912
|
-
switch (errorCode) {
|
|
1913
|
-
case "AccessDeniedException":
|
|
1914
|
-
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
1915
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1916
|
-
case "InternalServerException":
|
|
1917
|
-
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
1918
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1919
|
-
case "ResourceNotFoundException":
|
|
1920
|
-
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
1921
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1922
|
-
case "ThrottlingException":
|
|
1923
|
-
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
1924
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1925
|
-
case "ValidationException":
|
|
1926
|
-
case "com.amazonaws.resiliencehub#ValidationException":
|
|
1927
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1928
|
-
default:
|
|
1929
|
-
const parsedBody = parsedOutput.body;
|
|
1930
|
-
return throwDefaultError({
|
|
1931
|
-
output,
|
|
1932
|
-
parsedBody,
|
|
1933
|
-
errorCode,
|
|
1934
|
-
});
|
|
1935
|
-
}
|
|
1936
|
-
};
|
|
1937
1204
|
export const de_DescribeResiliencyPolicyCommand = async (output, context) => {
|
|
1938
1205
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1939
|
-
return
|
|
1206
|
+
return de_CommandError(output, context);
|
|
1940
1207
|
}
|
|
1941
1208
|
const contents = map({
|
|
1942
1209
|
$metadata: deserializeMetadata(output),
|
|
@@ -1948,40 +1215,9 @@ export const de_DescribeResiliencyPolicyCommand = async (output, context) => {
|
|
|
1948
1215
|
Object.assign(contents, doc);
|
|
1949
1216
|
return contents;
|
|
1950
1217
|
};
|
|
1951
|
-
const de_DescribeResiliencyPolicyCommandError = async (output, context) => {
|
|
1952
|
-
const parsedOutput = {
|
|
1953
|
-
...output,
|
|
1954
|
-
body: await parseErrorBody(output.body, context),
|
|
1955
|
-
};
|
|
1956
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1957
|
-
switch (errorCode) {
|
|
1958
|
-
case "AccessDeniedException":
|
|
1959
|
-
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
1960
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1961
|
-
case "InternalServerException":
|
|
1962
|
-
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
1963
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1964
|
-
case "ResourceNotFoundException":
|
|
1965
|
-
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
1966
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1967
|
-
case "ThrottlingException":
|
|
1968
|
-
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
1969
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1970
|
-
case "ValidationException":
|
|
1971
|
-
case "com.amazonaws.resiliencehub#ValidationException":
|
|
1972
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1973
|
-
default:
|
|
1974
|
-
const parsedBody = parsedOutput.body;
|
|
1975
|
-
return throwDefaultError({
|
|
1976
|
-
output,
|
|
1977
|
-
parsedBody,
|
|
1978
|
-
errorCode,
|
|
1979
|
-
});
|
|
1980
|
-
}
|
|
1981
|
-
};
|
|
1982
1218
|
export const de_ImportResourcesToDraftAppVersionCommand = async (output, context) => {
|
|
1983
1219
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1984
|
-
return
|
|
1220
|
+
return de_CommandError(output, context);
|
|
1985
1221
|
}
|
|
1986
1222
|
const contents = map({
|
|
1987
1223
|
$metadata: deserializeMetadata(output),
|
|
@@ -1998,46 +1234,9 @@ export const de_ImportResourcesToDraftAppVersionCommand = async (output, context
|
|
|
1998
1234
|
Object.assign(contents, doc);
|
|
1999
1235
|
return contents;
|
|
2000
1236
|
};
|
|
2001
|
-
const de_ImportResourcesToDraftAppVersionCommandError = async (output, context) => {
|
|
2002
|
-
const parsedOutput = {
|
|
2003
|
-
...output,
|
|
2004
|
-
body: await parseErrorBody(output.body, context),
|
|
2005
|
-
};
|
|
2006
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2007
|
-
switch (errorCode) {
|
|
2008
|
-
case "AccessDeniedException":
|
|
2009
|
-
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
2010
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2011
|
-
case "ConflictException":
|
|
2012
|
-
case "com.amazonaws.resiliencehub#ConflictException":
|
|
2013
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2014
|
-
case "InternalServerException":
|
|
2015
|
-
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
2016
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2017
|
-
case "ResourceNotFoundException":
|
|
2018
|
-
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
2019
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2020
|
-
case "ServiceQuotaExceededException":
|
|
2021
|
-
case "com.amazonaws.resiliencehub#ServiceQuotaExceededException":
|
|
2022
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2023
|
-
case "ThrottlingException":
|
|
2024
|
-
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
2025
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2026
|
-
case "ValidationException":
|
|
2027
|
-
case "com.amazonaws.resiliencehub#ValidationException":
|
|
2028
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2029
|
-
default:
|
|
2030
|
-
const parsedBody = parsedOutput.body;
|
|
2031
|
-
return throwDefaultError({
|
|
2032
|
-
output,
|
|
2033
|
-
parsedBody,
|
|
2034
|
-
errorCode,
|
|
2035
|
-
});
|
|
2036
|
-
}
|
|
2037
|
-
};
|
|
2038
1237
|
export const de_ListAlarmRecommendationsCommand = async (output, context) => {
|
|
2039
1238
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2040
|
-
return
|
|
1239
|
+
return de_CommandError(output, context);
|
|
2041
1240
|
}
|
|
2042
1241
|
const contents = map({
|
|
2043
1242
|
$metadata: deserializeMetadata(output),
|
|
@@ -2050,40 +1249,9 @@ export const de_ListAlarmRecommendationsCommand = async (output, context) => {
|
|
|
2050
1249
|
Object.assign(contents, doc);
|
|
2051
1250
|
return contents;
|
|
2052
1251
|
};
|
|
2053
|
-
const de_ListAlarmRecommendationsCommandError = async (output, context) => {
|
|
2054
|
-
const parsedOutput = {
|
|
2055
|
-
...output,
|
|
2056
|
-
body: await parseErrorBody(output.body, context),
|
|
2057
|
-
};
|
|
2058
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2059
|
-
switch (errorCode) {
|
|
2060
|
-
case "AccessDeniedException":
|
|
2061
|
-
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
2062
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2063
|
-
case "InternalServerException":
|
|
2064
|
-
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
2065
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2066
|
-
case "ResourceNotFoundException":
|
|
2067
|
-
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
2068
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2069
|
-
case "ThrottlingException":
|
|
2070
|
-
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
2071
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2072
|
-
case "ValidationException":
|
|
2073
|
-
case "com.amazonaws.resiliencehub#ValidationException":
|
|
2074
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2075
|
-
default:
|
|
2076
|
-
const parsedBody = parsedOutput.body;
|
|
2077
|
-
return throwDefaultError({
|
|
2078
|
-
output,
|
|
2079
|
-
parsedBody,
|
|
2080
|
-
errorCode,
|
|
2081
|
-
});
|
|
2082
|
-
}
|
|
2083
|
-
};
|
|
2084
1252
|
export const de_ListAppAssessmentComplianceDriftsCommand = async (output, context) => {
|
|
2085
1253
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2086
|
-
return
|
|
1254
|
+
return de_CommandError(output, context);
|
|
2087
1255
|
}
|
|
2088
1256
|
const contents = map({
|
|
2089
1257
|
$metadata: deserializeMetadata(output),
|
|
@@ -2096,37 +1264,9 @@ export const de_ListAppAssessmentComplianceDriftsCommand = async (output, contex
|
|
|
2096
1264
|
Object.assign(contents, doc);
|
|
2097
1265
|
return contents;
|
|
2098
1266
|
};
|
|
2099
|
-
const de_ListAppAssessmentComplianceDriftsCommandError = async (output, context) => {
|
|
2100
|
-
const parsedOutput = {
|
|
2101
|
-
...output,
|
|
2102
|
-
body: await parseErrorBody(output.body, context),
|
|
2103
|
-
};
|
|
2104
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2105
|
-
switch (errorCode) {
|
|
2106
|
-
case "AccessDeniedException":
|
|
2107
|
-
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
2108
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2109
|
-
case "InternalServerException":
|
|
2110
|
-
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
2111
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2112
|
-
case "ThrottlingException":
|
|
2113
|
-
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
2114
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2115
|
-
case "ValidationException":
|
|
2116
|
-
case "com.amazonaws.resiliencehub#ValidationException":
|
|
2117
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2118
|
-
default:
|
|
2119
|
-
const parsedBody = parsedOutput.body;
|
|
2120
|
-
return throwDefaultError({
|
|
2121
|
-
output,
|
|
2122
|
-
parsedBody,
|
|
2123
|
-
errorCode,
|
|
2124
|
-
});
|
|
2125
|
-
}
|
|
2126
|
-
};
|
|
2127
1267
|
export const de_ListAppAssessmentsCommand = async (output, context) => {
|
|
2128
1268
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2129
|
-
return
|
|
1269
|
+
return de_CommandError(output, context);
|
|
2130
1270
|
}
|
|
2131
1271
|
const contents = map({
|
|
2132
1272
|
$metadata: deserializeMetadata(output),
|
|
@@ -2139,40 +1279,9 @@ export const de_ListAppAssessmentsCommand = async (output, context) => {
|
|
|
2139
1279
|
Object.assign(contents, doc);
|
|
2140
1280
|
return contents;
|
|
2141
1281
|
};
|
|
2142
|
-
const de_ListAppAssessmentsCommandError = async (output, context) => {
|
|
2143
|
-
const parsedOutput = {
|
|
2144
|
-
...output,
|
|
2145
|
-
body: await parseErrorBody(output.body, context),
|
|
2146
|
-
};
|
|
2147
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2148
|
-
switch (errorCode) {
|
|
2149
|
-
case "AccessDeniedException":
|
|
2150
|
-
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
2151
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2152
|
-
case "InternalServerException":
|
|
2153
|
-
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
2154
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2155
|
-
case "ResourceNotFoundException":
|
|
2156
|
-
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
2157
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2158
|
-
case "ThrottlingException":
|
|
2159
|
-
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
2160
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2161
|
-
case "ValidationException":
|
|
2162
|
-
case "com.amazonaws.resiliencehub#ValidationException":
|
|
2163
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2164
|
-
default:
|
|
2165
|
-
const parsedBody = parsedOutput.body;
|
|
2166
|
-
return throwDefaultError({
|
|
2167
|
-
output,
|
|
2168
|
-
parsedBody,
|
|
2169
|
-
errorCode,
|
|
2170
|
-
});
|
|
2171
|
-
}
|
|
2172
|
-
};
|
|
2173
1282
|
export const de_ListAppComponentCompliancesCommand = async (output, context) => {
|
|
2174
1283
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2175
|
-
return
|
|
1284
|
+
return de_CommandError(output, context);
|
|
2176
1285
|
}
|
|
2177
1286
|
const contents = map({
|
|
2178
1287
|
$metadata: deserializeMetadata(output),
|
|
@@ -2185,40 +1294,9 @@ export const de_ListAppComponentCompliancesCommand = async (output, context) =>
|
|
|
2185
1294
|
Object.assign(contents, doc);
|
|
2186
1295
|
return contents;
|
|
2187
1296
|
};
|
|
2188
|
-
const de_ListAppComponentCompliancesCommandError = async (output, context) => {
|
|
2189
|
-
const parsedOutput = {
|
|
2190
|
-
...output,
|
|
2191
|
-
body: await parseErrorBody(output.body, context),
|
|
2192
|
-
};
|
|
2193
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2194
|
-
switch (errorCode) {
|
|
2195
|
-
case "AccessDeniedException":
|
|
2196
|
-
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
2197
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2198
|
-
case "InternalServerException":
|
|
2199
|
-
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
2200
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2201
|
-
case "ResourceNotFoundException":
|
|
2202
|
-
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
2203
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2204
|
-
case "ThrottlingException":
|
|
2205
|
-
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
2206
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2207
|
-
case "ValidationException":
|
|
2208
|
-
case "com.amazonaws.resiliencehub#ValidationException":
|
|
2209
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2210
|
-
default:
|
|
2211
|
-
const parsedBody = parsedOutput.body;
|
|
2212
|
-
return throwDefaultError({
|
|
2213
|
-
output,
|
|
2214
|
-
parsedBody,
|
|
2215
|
-
errorCode,
|
|
2216
|
-
});
|
|
2217
|
-
}
|
|
2218
|
-
};
|
|
2219
1297
|
export const de_ListAppComponentRecommendationsCommand = async (output, context) => {
|
|
2220
1298
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2221
|
-
return
|
|
1299
|
+
return de_CommandError(output, context);
|
|
2222
1300
|
}
|
|
2223
1301
|
const contents = map({
|
|
2224
1302
|
$metadata: deserializeMetadata(output),
|
|
@@ -2231,40 +1309,9 @@ export const de_ListAppComponentRecommendationsCommand = async (output, context)
|
|
|
2231
1309
|
Object.assign(contents, doc);
|
|
2232
1310
|
return contents;
|
|
2233
1311
|
};
|
|
2234
|
-
const de_ListAppComponentRecommendationsCommandError = async (output, context) => {
|
|
2235
|
-
const parsedOutput = {
|
|
2236
|
-
...output,
|
|
2237
|
-
body: await parseErrorBody(output.body, context),
|
|
2238
|
-
};
|
|
2239
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2240
|
-
switch (errorCode) {
|
|
2241
|
-
case "AccessDeniedException":
|
|
2242
|
-
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
2243
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2244
|
-
case "InternalServerException":
|
|
2245
|
-
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
2246
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2247
|
-
case "ResourceNotFoundException":
|
|
2248
|
-
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
2249
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2250
|
-
case "ThrottlingException":
|
|
2251
|
-
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
2252
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2253
|
-
case "ValidationException":
|
|
2254
|
-
case "com.amazonaws.resiliencehub#ValidationException":
|
|
2255
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2256
|
-
default:
|
|
2257
|
-
const parsedBody = parsedOutput.body;
|
|
2258
|
-
return throwDefaultError({
|
|
2259
|
-
output,
|
|
2260
|
-
parsedBody,
|
|
2261
|
-
errorCode,
|
|
2262
|
-
});
|
|
2263
|
-
}
|
|
2264
|
-
};
|
|
2265
1312
|
export const de_ListAppInputSourcesCommand = async (output, context) => {
|
|
2266
1313
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2267
|
-
return
|
|
1314
|
+
return de_CommandError(output, context);
|
|
2268
1315
|
}
|
|
2269
1316
|
const contents = map({
|
|
2270
1317
|
$metadata: deserializeMetadata(output),
|
|
@@ -2277,40 +1324,9 @@ export const de_ListAppInputSourcesCommand = async (output, context) => {
|
|
|
2277
1324
|
Object.assign(contents, doc);
|
|
2278
1325
|
return contents;
|
|
2279
1326
|
};
|
|
2280
|
-
const de_ListAppInputSourcesCommandError = async (output, context) => {
|
|
2281
|
-
const parsedOutput = {
|
|
2282
|
-
...output,
|
|
2283
|
-
body: await parseErrorBody(output.body, context),
|
|
2284
|
-
};
|
|
2285
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2286
|
-
switch (errorCode) {
|
|
2287
|
-
case "AccessDeniedException":
|
|
2288
|
-
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
2289
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2290
|
-
case "InternalServerException":
|
|
2291
|
-
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
2292
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2293
|
-
case "ResourceNotFoundException":
|
|
2294
|
-
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
2295
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2296
|
-
case "ThrottlingException":
|
|
2297
|
-
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
2298
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2299
|
-
case "ValidationException":
|
|
2300
|
-
case "com.amazonaws.resiliencehub#ValidationException":
|
|
2301
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2302
|
-
default:
|
|
2303
|
-
const parsedBody = parsedOutput.body;
|
|
2304
|
-
return throwDefaultError({
|
|
2305
|
-
output,
|
|
2306
|
-
parsedBody,
|
|
2307
|
-
errorCode,
|
|
2308
|
-
});
|
|
2309
|
-
}
|
|
2310
|
-
};
|
|
2311
1327
|
export const de_ListAppsCommand = async (output, context) => {
|
|
2312
1328
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2313
|
-
return
|
|
1329
|
+
return de_CommandError(output, context);
|
|
2314
1330
|
}
|
|
2315
1331
|
const contents = map({
|
|
2316
1332
|
$metadata: deserializeMetadata(output),
|
|
@@ -2323,37 +1339,9 @@ export const de_ListAppsCommand = async (output, context) => {
|
|
|
2323
1339
|
Object.assign(contents, doc);
|
|
2324
1340
|
return contents;
|
|
2325
1341
|
};
|
|
2326
|
-
const de_ListAppsCommandError = async (output, context) => {
|
|
2327
|
-
const parsedOutput = {
|
|
2328
|
-
...output,
|
|
2329
|
-
body: await parseErrorBody(output.body, context),
|
|
2330
|
-
};
|
|
2331
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2332
|
-
switch (errorCode) {
|
|
2333
|
-
case "AccessDeniedException":
|
|
2334
|
-
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
2335
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2336
|
-
case "InternalServerException":
|
|
2337
|
-
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
2338
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2339
|
-
case "ThrottlingException":
|
|
2340
|
-
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
2341
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2342
|
-
case "ValidationException":
|
|
2343
|
-
case "com.amazonaws.resiliencehub#ValidationException":
|
|
2344
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2345
|
-
default:
|
|
2346
|
-
const parsedBody = parsedOutput.body;
|
|
2347
|
-
return throwDefaultError({
|
|
2348
|
-
output,
|
|
2349
|
-
parsedBody,
|
|
2350
|
-
errorCode,
|
|
2351
|
-
});
|
|
2352
|
-
}
|
|
2353
|
-
};
|
|
2354
1342
|
export const de_ListAppVersionAppComponentsCommand = async (output, context) => {
|
|
2355
1343
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2356
|
-
return
|
|
1344
|
+
return de_CommandError(output, context);
|
|
2357
1345
|
}
|
|
2358
1346
|
const contents = map({
|
|
2359
1347
|
$metadata: deserializeMetadata(output),
|
|
@@ -2368,43 +1356,9 @@ export const de_ListAppVersionAppComponentsCommand = async (output, context) =>
|
|
|
2368
1356
|
Object.assign(contents, doc);
|
|
2369
1357
|
return contents;
|
|
2370
1358
|
};
|
|
2371
|
-
const de_ListAppVersionAppComponentsCommandError = async (output, context) => {
|
|
2372
|
-
const parsedOutput = {
|
|
2373
|
-
...output,
|
|
2374
|
-
body: await parseErrorBody(output.body, context),
|
|
2375
|
-
};
|
|
2376
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2377
|
-
switch (errorCode) {
|
|
2378
|
-
case "AccessDeniedException":
|
|
2379
|
-
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
2380
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2381
|
-
case "ConflictException":
|
|
2382
|
-
case "com.amazonaws.resiliencehub#ConflictException":
|
|
2383
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2384
|
-
case "InternalServerException":
|
|
2385
|
-
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
2386
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2387
|
-
case "ResourceNotFoundException":
|
|
2388
|
-
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
2389
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2390
|
-
case "ThrottlingException":
|
|
2391
|
-
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
2392
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2393
|
-
case "ValidationException":
|
|
2394
|
-
case "com.amazonaws.resiliencehub#ValidationException":
|
|
2395
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2396
|
-
default:
|
|
2397
|
-
const parsedBody = parsedOutput.body;
|
|
2398
|
-
return throwDefaultError({
|
|
2399
|
-
output,
|
|
2400
|
-
parsedBody,
|
|
2401
|
-
errorCode,
|
|
2402
|
-
});
|
|
2403
|
-
}
|
|
2404
|
-
};
|
|
2405
1359
|
export const de_ListAppVersionResourceMappingsCommand = async (output, context) => {
|
|
2406
1360
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2407
|
-
return
|
|
1361
|
+
return de_CommandError(output, context);
|
|
2408
1362
|
}
|
|
2409
1363
|
const contents = map({
|
|
2410
1364
|
$metadata: deserializeMetadata(output),
|
|
@@ -2417,40 +1371,9 @@ export const de_ListAppVersionResourceMappingsCommand = async (output, context)
|
|
|
2417
1371
|
Object.assign(contents, doc);
|
|
2418
1372
|
return contents;
|
|
2419
1373
|
};
|
|
2420
|
-
const de_ListAppVersionResourceMappingsCommandError = async (output, context) => {
|
|
2421
|
-
const parsedOutput = {
|
|
2422
|
-
...output,
|
|
2423
|
-
body: await parseErrorBody(output.body, context),
|
|
2424
|
-
};
|
|
2425
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2426
|
-
switch (errorCode) {
|
|
2427
|
-
case "AccessDeniedException":
|
|
2428
|
-
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
2429
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2430
|
-
case "InternalServerException":
|
|
2431
|
-
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
2432
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2433
|
-
case "ResourceNotFoundException":
|
|
2434
|
-
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
2435
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2436
|
-
case "ThrottlingException":
|
|
2437
|
-
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
2438
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2439
|
-
case "ValidationException":
|
|
2440
|
-
case "com.amazonaws.resiliencehub#ValidationException":
|
|
2441
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2442
|
-
default:
|
|
2443
|
-
const parsedBody = parsedOutput.body;
|
|
2444
|
-
return throwDefaultError({
|
|
2445
|
-
output,
|
|
2446
|
-
parsedBody,
|
|
2447
|
-
errorCode,
|
|
2448
|
-
});
|
|
2449
|
-
}
|
|
2450
|
-
};
|
|
2451
1374
|
export const de_ListAppVersionResourcesCommand = async (output, context) => {
|
|
2452
1375
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2453
|
-
return
|
|
1376
|
+
return de_CommandError(output, context);
|
|
2454
1377
|
}
|
|
2455
1378
|
const contents = map({
|
|
2456
1379
|
$metadata: deserializeMetadata(output),
|
|
@@ -2464,43 +1387,9 @@ export const de_ListAppVersionResourcesCommand = async (output, context) => {
|
|
|
2464
1387
|
Object.assign(contents, doc);
|
|
2465
1388
|
return contents;
|
|
2466
1389
|
};
|
|
2467
|
-
const de_ListAppVersionResourcesCommandError = async (output, context) => {
|
|
2468
|
-
const parsedOutput = {
|
|
2469
|
-
...output,
|
|
2470
|
-
body: await parseErrorBody(output.body, context),
|
|
2471
|
-
};
|
|
2472
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2473
|
-
switch (errorCode) {
|
|
2474
|
-
case "AccessDeniedException":
|
|
2475
|
-
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
2476
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2477
|
-
case "ConflictException":
|
|
2478
|
-
case "com.amazonaws.resiliencehub#ConflictException":
|
|
2479
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2480
|
-
case "InternalServerException":
|
|
2481
|
-
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
2482
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2483
|
-
case "ResourceNotFoundException":
|
|
2484
|
-
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
2485
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2486
|
-
case "ThrottlingException":
|
|
2487
|
-
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
2488
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2489
|
-
case "ValidationException":
|
|
2490
|
-
case "com.amazonaws.resiliencehub#ValidationException":
|
|
2491
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2492
|
-
default:
|
|
2493
|
-
const parsedBody = parsedOutput.body;
|
|
2494
|
-
return throwDefaultError({
|
|
2495
|
-
output,
|
|
2496
|
-
parsedBody,
|
|
2497
|
-
errorCode,
|
|
2498
|
-
});
|
|
2499
|
-
}
|
|
2500
|
-
};
|
|
2501
1390
|
export const de_ListAppVersionsCommand = async (output, context) => {
|
|
2502
1391
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2503
|
-
return
|
|
1392
|
+
return de_CommandError(output, context);
|
|
2504
1393
|
}
|
|
2505
1394
|
const contents = map({
|
|
2506
1395
|
$metadata: deserializeMetadata(output),
|
|
@@ -2513,37 +1402,9 @@ export const de_ListAppVersionsCommand = async (output, context) => {
|
|
|
2513
1402
|
Object.assign(contents, doc);
|
|
2514
1403
|
return contents;
|
|
2515
1404
|
};
|
|
2516
|
-
const de_ListAppVersionsCommandError = async (output, context) => {
|
|
2517
|
-
const parsedOutput = {
|
|
2518
|
-
...output,
|
|
2519
|
-
body: await parseErrorBody(output.body, context),
|
|
2520
|
-
};
|
|
2521
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2522
|
-
switch (errorCode) {
|
|
2523
|
-
case "AccessDeniedException":
|
|
2524
|
-
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
2525
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2526
|
-
case "InternalServerException":
|
|
2527
|
-
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
2528
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2529
|
-
case "ResourceNotFoundException":
|
|
2530
|
-
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
2531
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2532
|
-
case "ValidationException":
|
|
2533
|
-
case "com.amazonaws.resiliencehub#ValidationException":
|
|
2534
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2535
|
-
default:
|
|
2536
|
-
const parsedBody = parsedOutput.body;
|
|
2537
|
-
return throwDefaultError({
|
|
2538
|
-
output,
|
|
2539
|
-
parsedBody,
|
|
2540
|
-
errorCode,
|
|
2541
|
-
});
|
|
2542
|
-
}
|
|
2543
|
-
};
|
|
2544
1405
|
export const de_ListRecommendationTemplatesCommand = async (output, context) => {
|
|
2545
1406
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2546
|
-
return
|
|
1407
|
+
return de_CommandError(output, context);
|
|
2547
1408
|
}
|
|
2548
1409
|
const contents = map({
|
|
2549
1410
|
$metadata: deserializeMetadata(output),
|
|
@@ -2556,37 +1417,9 @@ export const de_ListRecommendationTemplatesCommand = async (output, context) =>
|
|
|
2556
1417
|
Object.assign(contents, doc);
|
|
2557
1418
|
return contents;
|
|
2558
1419
|
};
|
|
2559
|
-
const de_ListRecommendationTemplatesCommandError = async (output, context) => {
|
|
2560
|
-
const parsedOutput = {
|
|
2561
|
-
...output,
|
|
2562
|
-
body: await parseErrorBody(output.body, context),
|
|
2563
|
-
};
|
|
2564
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2565
|
-
switch (errorCode) {
|
|
2566
|
-
case "AccessDeniedException":
|
|
2567
|
-
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
2568
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2569
|
-
case "InternalServerException":
|
|
2570
|
-
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
2571
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2572
|
-
case "ThrottlingException":
|
|
2573
|
-
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
2574
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2575
|
-
case "ValidationException":
|
|
2576
|
-
case "com.amazonaws.resiliencehub#ValidationException":
|
|
2577
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2578
|
-
default:
|
|
2579
|
-
const parsedBody = parsedOutput.body;
|
|
2580
|
-
return throwDefaultError({
|
|
2581
|
-
output,
|
|
2582
|
-
parsedBody,
|
|
2583
|
-
errorCode,
|
|
2584
|
-
});
|
|
2585
|
-
}
|
|
2586
|
-
};
|
|
2587
1420
|
export const de_ListResiliencyPoliciesCommand = async (output, context) => {
|
|
2588
1421
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2589
|
-
return
|
|
1422
|
+
return de_CommandError(output, context);
|
|
2590
1423
|
}
|
|
2591
1424
|
const contents = map({
|
|
2592
1425
|
$metadata: deserializeMetadata(output),
|
|
@@ -2599,40 +1432,9 @@ export const de_ListResiliencyPoliciesCommand = async (output, context) => {
|
|
|
2599
1432
|
Object.assign(contents, doc);
|
|
2600
1433
|
return contents;
|
|
2601
1434
|
};
|
|
2602
|
-
const de_ListResiliencyPoliciesCommandError = async (output, context) => {
|
|
2603
|
-
const parsedOutput = {
|
|
2604
|
-
...output,
|
|
2605
|
-
body: await parseErrorBody(output.body, context),
|
|
2606
|
-
};
|
|
2607
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2608
|
-
switch (errorCode) {
|
|
2609
|
-
case "AccessDeniedException":
|
|
2610
|
-
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
2611
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2612
|
-
case "InternalServerException":
|
|
2613
|
-
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
2614
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2615
|
-
case "ResourceNotFoundException":
|
|
2616
|
-
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
2617
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2618
|
-
case "ThrottlingException":
|
|
2619
|
-
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
2620
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2621
|
-
case "ValidationException":
|
|
2622
|
-
case "com.amazonaws.resiliencehub#ValidationException":
|
|
2623
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2624
|
-
default:
|
|
2625
|
-
const parsedBody = parsedOutput.body;
|
|
2626
|
-
return throwDefaultError({
|
|
2627
|
-
output,
|
|
2628
|
-
parsedBody,
|
|
2629
|
-
errorCode,
|
|
2630
|
-
});
|
|
2631
|
-
}
|
|
2632
|
-
};
|
|
2633
1435
|
export const de_ListSopRecommendationsCommand = async (output, context) => {
|
|
2634
1436
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2635
|
-
return
|
|
1437
|
+
return de_CommandError(output, context);
|
|
2636
1438
|
}
|
|
2637
1439
|
const contents = map({
|
|
2638
1440
|
$metadata: deserializeMetadata(output),
|
|
@@ -2645,43 +1447,9 @@ export const de_ListSopRecommendationsCommand = async (output, context) => {
|
|
|
2645
1447
|
Object.assign(contents, doc);
|
|
2646
1448
|
return contents;
|
|
2647
1449
|
};
|
|
2648
|
-
const de_ListSopRecommendationsCommandError = async (output, context) => {
|
|
2649
|
-
const parsedOutput = {
|
|
2650
|
-
...output,
|
|
2651
|
-
body: await parseErrorBody(output.body, context),
|
|
2652
|
-
};
|
|
2653
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2654
|
-
switch (errorCode) {
|
|
2655
|
-
case "AccessDeniedException":
|
|
2656
|
-
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
2657
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2658
|
-
case "ConflictException":
|
|
2659
|
-
case "com.amazonaws.resiliencehub#ConflictException":
|
|
2660
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2661
|
-
case "InternalServerException":
|
|
2662
|
-
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
2663
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2664
|
-
case "ResourceNotFoundException":
|
|
2665
|
-
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
2666
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2667
|
-
case "ThrottlingException":
|
|
2668
|
-
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
2669
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2670
|
-
case "ValidationException":
|
|
2671
|
-
case "com.amazonaws.resiliencehub#ValidationException":
|
|
2672
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2673
|
-
default:
|
|
2674
|
-
const parsedBody = parsedOutput.body;
|
|
2675
|
-
return throwDefaultError({
|
|
2676
|
-
output,
|
|
2677
|
-
parsedBody,
|
|
2678
|
-
errorCode,
|
|
2679
|
-
});
|
|
2680
|
-
}
|
|
2681
|
-
};
|
|
2682
1450
|
export const de_ListSuggestedResiliencyPoliciesCommand = async (output, context) => {
|
|
2683
1451
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2684
|
-
return
|
|
1452
|
+
return de_CommandError(output, context);
|
|
2685
1453
|
}
|
|
2686
1454
|
const contents = map({
|
|
2687
1455
|
$metadata: deserializeMetadata(output),
|
|
@@ -2694,40 +1462,9 @@ export const de_ListSuggestedResiliencyPoliciesCommand = async (output, context)
|
|
|
2694
1462
|
Object.assign(contents, doc);
|
|
2695
1463
|
return contents;
|
|
2696
1464
|
};
|
|
2697
|
-
const de_ListSuggestedResiliencyPoliciesCommandError = async (output, context) => {
|
|
2698
|
-
const parsedOutput = {
|
|
2699
|
-
...output,
|
|
2700
|
-
body: await parseErrorBody(output.body, context),
|
|
2701
|
-
};
|
|
2702
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2703
|
-
switch (errorCode) {
|
|
2704
|
-
case "AccessDeniedException":
|
|
2705
|
-
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
2706
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2707
|
-
case "InternalServerException":
|
|
2708
|
-
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
2709
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2710
|
-
case "ResourceNotFoundException":
|
|
2711
|
-
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
2712
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2713
|
-
case "ThrottlingException":
|
|
2714
|
-
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
2715
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2716
|
-
case "ValidationException":
|
|
2717
|
-
case "com.amazonaws.resiliencehub#ValidationException":
|
|
2718
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2719
|
-
default:
|
|
2720
|
-
const parsedBody = parsedOutput.body;
|
|
2721
|
-
return throwDefaultError({
|
|
2722
|
-
output,
|
|
2723
|
-
parsedBody,
|
|
2724
|
-
errorCode,
|
|
2725
|
-
});
|
|
2726
|
-
}
|
|
2727
|
-
};
|
|
2728
1465
|
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
2729
1466
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2730
|
-
return
|
|
1467
|
+
return de_CommandError(output, context);
|
|
2731
1468
|
}
|
|
2732
1469
|
const contents = map({
|
|
2733
1470
|
$metadata: deserializeMetadata(output),
|
|
@@ -2739,40 +1476,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
2739
1476
|
Object.assign(contents, doc);
|
|
2740
1477
|
return contents;
|
|
2741
1478
|
};
|
|
2742
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
2743
|
-
const parsedOutput = {
|
|
2744
|
-
...output,
|
|
2745
|
-
body: await parseErrorBody(output.body, context),
|
|
2746
|
-
};
|
|
2747
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2748
|
-
switch (errorCode) {
|
|
2749
|
-
case "AccessDeniedException":
|
|
2750
|
-
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
2751
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2752
|
-
case "InternalServerException":
|
|
2753
|
-
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
2754
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2755
|
-
case "ResourceNotFoundException":
|
|
2756
|
-
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
2757
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2758
|
-
case "ThrottlingException":
|
|
2759
|
-
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
2760
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2761
|
-
case "ValidationException":
|
|
2762
|
-
case "com.amazonaws.resiliencehub#ValidationException":
|
|
2763
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2764
|
-
default:
|
|
2765
|
-
const parsedBody = parsedOutput.body;
|
|
2766
|
-
return throwDefaultError({
|
|
2767
|
-
output,
|
|
2768
|
-
parsedBody,
|
|
2769
|
-
errorCode,
|
|
2770
|
-
});
|
|
2771
|
-
}
|
|
2772
|
-
};
|
|
2773
1479
|
export const de_ListTestRecommendationsCommand = async (output, context) => {
|
|
2774
1480
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2775
|
-
return
|
|
1481
|
+
return de_CommandError(output, context);
|
|
2776
1482
|
}
|
|
2777
1483
|
const contents = map({
|
|
2778
1484
|
$metadata: deserializeMetadata(output),
|
|
@@ -2785,43 +1491,9 @@ export const de_ListTestRecommendationsCommand = async (output, context) => {
|
|
|
2785
1491
|
Object.assign(contents, doc);
|
|
2786
1492
|
return contents;
|
|
2787
1493
|
};
|
|
2788
|
-
const de_ListTestRecommendationsCommandError = async (output, context) => {
|
|
2789
|
-
const parsedOutput = {
|
|
2790
|
-
...output,
|
|
2791
|
-
body: await parseErrorBody(output.body, context),
|
|
2792
|
-
};
|
|
2793
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2794
|
-
switch (errorCode) {
|
|
2795
|
-
case "AccessDeniedException":
|
|
2796
|
-
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
2797
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2798
|
-
case "ConflictException":
|
|
2799
|
-
case "com.amazonaws.resiliencehub#ConflictException":
|
|
2800
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2801
|
-
case "InternalServerException":
|
|
2802
|
-
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
2803
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2804
|
-
case "ResourceNotFoundException":
|
|
2805
|
-
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
2806
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2807
|
-
case "ThrottlingException":
|
|
2808
|
-
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
2809
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2810
|
-
case "ValidationException":
|
|
2811
|
-
case "com.amazonaws.resiliencehub#ValidationException":
|
|
2812
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2813
|
-
default:
|
|
2814
|
-
const parsedBody = parsedOutput.body;
|
|
2815
|
-
return throwDefaultError({
|
|
2816
|
-
output,
|
|
2817
|
-
parsedBody,
|
|
2818
|
-
errorCode,
|
|
2819
|
-
});
|
|
2820
|
-
}
|
|
2821
|
-
};
|
|
2822
1494
|
export const de_ListUnsupportedAppVersionResourcesCommand = async (output, context) => {
|
|
2823
1495
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2824
|
-
return
|
|
1496
|
+
return de_CommandError(output, context);
|
|
2825
1497
|
}
|
|
2826
1498
|
const contents = map({
|
|
2827
1499
|
$metadata: deserializeMetadata(output),
|
|
@@ -2835,43 +1507,9 @@ export const de_ListUnsupportedAppVersionResourcesCommand = async (output, conte
|
|
|
2835
1507
|
Object.assign(contents, doc);
|
|
2836
1508
|
return contents;
|
|
2837
1509
|
};
|
|
2838
|
-
const de_ListUnsupportedAppVersionResourcesCommandError = async (output, context) => {
|
|
2839
|
-
const parsedOutput = {
|
|
2840
|
-
...output,
|
|
2841
|
-
body: await parseErrorBody(output.body, context),
|
|
2842
|
-
};
|
|
2843
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2844
|
-
switch (errorCode) {
|
|
2845
|
-
case "AccessDeniedException":
|
|
2846
|
-
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
2847
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2848
|
-
case "ConflictException":
|
|
2849
|
-
case "com.amazonaws.resiliencehub#ConflictException":
|
|
2850
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2851
|
-
case "InternalServerException":
|
|
2852
|
-
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
2853
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2854
|
-
case "ResourceNotFoundException":
|
|
2855
|
-
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
2856
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2857
|
-
case "ThrottlingException":
|
|
2858
|
-
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
2859
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2860
|
-
case "ValidationException":
|
|
2861
|
-
case "com.amazonaws.resiliencehub#ValidationException":
|
|
2862
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2863
|
-
default:
|
|
2864
|
-
const parsedBody = parsedOutput.body;
|
|
2865
|
-
return throwDefaultError({
|
|
2866
|
-
output,
|
|
2867
|
-
parsedBody,
|
|
2868
|
-
errorCode,
|
|
2869
|
-
});
|
|
2870
|
-
}
|
|
2871
|
-
};
|
|
2872
1510
|
export const de_PublishAppVersionCommand = async (output, context) => {
|
|
2873
1511
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2874
|
-
return
|
|
1512
|
+
return de_CommandError(output, context);
|
|
2875
1513
|
}
|
|
2876
1514
|
const contents = map({
|
|
2877
1515
|
$metadata: deserializeMetadata(output),
|
|
@@ -2886,43 +1524,9 @@ export const de_PublishAppVersionCommand = async (output, context) => {
|
|
|
2886
1524
|
Object.assign(contents, doc);
|
|
2887
1525
|
return contents;
|
|
2888
1526
|
};
|
|
2889
|
-
const de_PublishAppVersionCommandError = async (output, context) => {
|
|
2890
|
-
const parsedOutput = {
|
|
2891
|
-
...output,
|
|
2892
|
-
body: await parseErrorBody(output.body, context),
|
|
2893
|
-
};
|
|
2894
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2895
|
-
switch (errorCode) {
|
|
2896
|
-
case "AccessDeniedException":
|
|
2897
|
-
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
2898
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2899
|
-
case "ConflictException":
|
|
2900
|
-
case "com.amazonaws.resiliencehub#ConflictException":
|
|
2901
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2902
|
-
case "InternalServerException":
|
|
2903
|
-
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
2904
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2905
|
-
case "ResourceNotFoundException":
|
|
2906
|
-
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
2907
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2908
|
-
case "ThrottlingException":
|
|
2909
|
-
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
2910
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2911
|
-
case "ValidationException":
|
|
2912
|
-
case "com.amazonaws.resiliencehub#ValidationException":
|
|
2913
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2914
|
-
default:
|
|
2915
|
-
const parsedBody = parsedOutput.body;
|
|
2916
|
-
return throwDefaultError({
|
|
2917
|
-
output,
|
|
2918
|
-
parsedBody,
|
|
2919
|
-
errorCode,
|
|
2920
|
-
});
|
|
2921
|
-
}
|
|
2922
|
-
};
|
|
2923
1527
|
export const de_PutDraftAppVersionTemplateCommand = async (output, context) => {
|
|
2924
1528
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2925
|
-
return
|
|
1529
|
+
return de_CommandError(output, context);
|
|
2926
1530
|
}
|
|
2927
1531
|
const contents = map({
|
|
2928
1532
|
$metadata: deserializeMetadata(output),
|
|
@@ -2935,143 +1539,41 @@ export const de_PutDraftAppVersionTemplateCommand = async (output, context) => {
|
|
|
2935
1539
|
Object.assign(contents, doc);
|
|
2936
1540
|
return contents;
|
|
2937
1541
|
};
|
|
2938
|
-
const de_PutDraftAppVersionTemplateCommandError = async (output, context) => {
|
|
2939
|
-
const parsedOutput = {
|
|
2940
|
-
...output,
|
|
2941
|
-
body: await parseErrorBody(output.body, context),
|
|
2942
|
-
};
|
|
2943
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2944
|
-
switch (errorCode) {
|
|
2945
|
-
case "AccessDeniedException":
|
|
2946
|
-
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
2947
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2948
|
-
case "ConflictException":
|
|
2949
|
-
case "com.amazonaws.resiliencehub#ConflictException":
|
|
2950
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2951
|
-
case "InternalServerException":
|
|
2952
|
-
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
2953
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2954
|
-
case "ResourceNotFoundException":
|
|
2955
|
-
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
2956
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2957
|
-
case "ThrottlingException":
|
|
2958
|
-
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
2959
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2960
|
-
case "ValidationException":
|
|
2961
|
-
case "com.amazonaws.resiliencehub#ValidationException":
|
|
2962
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2963
|
-
default:
|
|
2964
|
-
const parsedBody = parsedOutput.body;
|
|
2965
|
-
return throwDefaultError({
|
|
2966
|
-
output,
|
|
2967
|
-
parsedBody,
|
|
2968
|
-
errorCode,
|
|
2969
|
-
});
|
|
2970
|
-
}
|
|
2971
|
-
};
|
|
2972
1542
|
export const de_RemoveDraftAppVersionResourceMappingsCommand = async (output, context) => {
|
|
2973
1543
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2974
|
-
return
|
|
2975
|
-
}
|
|
2976
|
-
const contents = map({
|
|
2977
|
-
$metadata: deserializeMetadata(output),
|
|
2978
|
-
});
|
|
2979
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2980
|
-
const doc = take(data, {
|
|
2981
|
-
appArn: __expectString,
|
|
2982
|
-
appVersion: __expectString,
|
|
2983
|
-
});
|
|
2984
|
-
Object.assign(contents, doc);
|
|
2985
|
-
return contents;
|
|
2986
|
-
};
|
|
2987
|
-
const de_RemoveDraftAppVersionResourceMappingsCommandError = async (output, context) => {
|
|
2988
|
-
const parsedOutput = {
|
|
2989
|
-
...output,
|
|
2990
|
-
body: await parseErrorBody(output.body, context),
|
|
2991
|
-
};
|
|
2992
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2993
|
-
switch (errorCode) {
|
|
2994
|
-
case "AccessDeniedException":
|
|
2995
|
-
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
2996
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2997
|
-
case "ConflictException":
|
|
2998
|
-
case "com.amazonaws.resiliencehub#ConflictException":
|
|
2999
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3000
|
-
case "InternalServerException":
|
|
3001
|
-
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
3002
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3003
|
-
case "ResourceNotFoundException":
|
|
3004
|
-
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
3005
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3006
|
-
case "ThrottlingException":
|
|
3007
|
-
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
3008
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3009
|
-
case "ValidationException":
|
|
3010
|
-
case "com.amazonaws.resiliencehub#ValidationException":
|
|
3011
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3012
|
-
default:
|
|
3013
|
-
const parsedBody = parsedOutput.body;
|
|
3014
|
-
return throwDefaultError({
|
|
3015
|
-
output,
|
|
3016
|
-
parsedBody,
|
|
3017
|
-
errorCode,
|
|
3018
|
-
});
|
|
3019
|
-
}
|
|
3020
|
-
};
|
|
3021
|
-
export const de_ResolveAppVersionResourcesCommand = async (output, context) => {
|
|
3022
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3023
|
-
return de_ResolveAppVersionResourcesCommandError(output, context);
|
|
1544
|
+
return de_CommandError(output, context);
|
|
3024
1545
|
}
|
|
3025
1546
|
const contents = map({
|
|
3026
1547
|
$metadata: deserializeMetadata(output),
|
|
3027
1548
|
});
|
|
3028
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3029
|
-
const doc = take(data, {
|
|
3030
|
-
appArn: __expectString,
|
|
3031
|
-
appVersion: __expectString,
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
const parsedOutput = {
|
|
3040
|
-
...output,
|
|
3041
|
-
body: await parseErrorBody(output.body, context),
|
|
3042
|
-
};
|
|
3043
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3044
|
-
switch (errorCode) {
|
|
3045
|
-
case "AccessDeniedException":
|
|
3046
|
-
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
3047
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3048
|
-
case "ConflictException":
|
|
3049
|
-
case "com.amazonaws.resiliencehub#ConflictException":
|
|
3050
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3051
|
-
case "InternalServerException":
|
|
3052
|
-
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
3053
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3054
|
-
case "ResourceNotFoundException":
|
|
3055
|
-
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
3056
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3057
|
-
case "ThrottlingException":
|
|
3058
|
-
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
3059
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3060
|
-
case "ValidationException":
|
|
3061
|
-
case "com.amazonaws.resiliencehub#ValidationException":
|
|
3062
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3063
|
-
default:
|
|
3064
|
-
const parsedBody = parsedOutput.body;
|
|
3065
|
-
return throwDefaultError({
|
|
3066
|
-
output,
|
|
3067
|
-
parsedBody,
|
|
3068
|
-
errorCode,
|
|
3069
|
-
});
|
|
1549
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1550
|
+
const doc = take(data, {
|
|
1551
|
+
appArn: __expectString,
|
|
1552
|
+
appVersion: __expectString,
|
|
1553
|
+
});
|
|
1554
|
+
Object.assign(contents, doc);
|
|
1555
|
+
return contents;
|
|
1556
|
+
};
|
|
1557
|
+
export const de_ResolveAppVersionResourcesCommand = async (output, context) => {
|
|
1558
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1559
|
+
return de_CommandError(output, context);
|
|
3070
1560
|
}
|
|
1561
|
+
const contents = map({
|
|
1562
|
+
$metadata: deserializeMetadata(output),
|
|
1563
|
+
});
|
|
1564
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1565
|
+
const doc = take(data, {
|
|
1566
|
+
appArn: __expectString,
|
|
1567
|
+
appVersion: __expectString,
|
|
1568
|
+
resolutionId: __expectString,
|
|
1569
|
+
status: __expectString,
|
|
1570
|
+
});
|
|
1571
|
+
Object.assign(contents, doc);
|
|
1572
|
+
return contents;
|
|
3071
1573
|
};
|
|
3072
1574
|
export const de_StartAppAssessmentCommand = async (output, context) => {
|
|
3073
1575
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3074
|
-
return
|
|
1576
|
+
return de_CommandError(output, context);
|
|
3075
1577
|
}
|
|
3076
1578
|
const contents = map({
|
|
3077
1579
|
$metadata: deserializeMetadata(output),
|
|
@@ -3083,46 +1585,9 @@ export const de_StartAppAssessmentCommand = async (output, context) => {
|
|
|
3083
1585
|
Object.assign(contents, doc);
|
|
3084
1586
|
return contents;
|
|
3085
1587
|
};
|
|
3086
|
-
const de_StartAppAssessmentCommandError = async (output, context) => {
|
|
3087
|
-
const parsedOutput = {
|
|
3088
|
-
...output,
|
|
3089
|
-
body: await parseErrorBody(output.body, context),
|
|
3090
|
-
};
|
|
3091
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3092
|
-
switch (errorCode) {
|
|
3093
|
-
case "AccessDeniedException":
|
|
3094
|
-
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
3095
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3096
|
-
case "ConflictException":
|
|
3097
|
-
case "com.amazonaws.resiliencehub#ConflictException":
|
|
3098
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3099
|
-
case "InternalServerException":
|
|
3100
|
-
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
3101
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3102
|
-
case "ResourceNotFoundException":
|
|
3103
|
-
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
3104
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3105
|
-
case "ServiceQuotaExceededException":
|
|
3106
|
-
case "com.amazonaws.resiliencehub#ServiceQuotaExceededException":
|
|
3107
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3108
|
-
case "ThrottlingException":
|
|
3109
|
-
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
3110
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3111
|
-
case "ValidationException":
|
|
3112
|
-
case "com.amazonaws.resiliencehub#ValidationException":
|
|
3113
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3114
|
-
default:
|
|
3115
|
-
const parsedBody = parsedOutput.body;
|
|
3116
|
-
return throwDefaultError({
|
|
3117
|
-
output,
|
|
3118
|
-
parsedBody,
|
|
3119
|
-
errorCode,
|
|
3120
|
-
});
|
|
3121
|
-
}
|
|
3122
|
-
};
|
|
3123
1588
|
export const de_TagResourceCommand = async (output, context) => {
|
|
3124
1589
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3125
|
-
return
|
|
1590
|
+
return de_CommandError(output, context);
|
|
3126
1591
|
}
|
|
3127
1592
|
const contents = map({
|
|
3128
1593
|
$metadata: deserializeMetadata(output),
|
|
@@ -3130,40 +1595,9 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
3130
1595
|
await collectBody(output.body, context);
|
|
3131
1596
|
return contents;
|
|
3132
1597
|
};
|
|
3133
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
3134
|
-
const parsedOutput = {
|
|
3135
|
-
...output,
|
|
3136
|
-
body: await parseErrorBody(output.body, context),
|
|
3137
|
-
};
|
|
3138
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3139
|
-
switch (errorCode) {
|
|
3140
|
-
case "AccessDeniedException":
|
|
3141
|
-
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
3142
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3143
|
-
case "InternalServerException":
|
|
3144
|
-
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
3145
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3146
|
-
case "ResourceNotFoundException":
|
|
3147
|
-
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
3148
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3149
|
-
case "ThrottlingException":
|
|
3150
|
-
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
3151
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3152
|
-
case "ValidationException":
|
|
3153
|
-
case "com.amazonaws.resiliencehub#ValidationException":
|
|
3154
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3155
|
-
default:
|
|
3156
|
-
const parsedBody = parsedOutput.body;
|
|
3157
|
-
return throwDefaultError({
|
|
3158
|
-
output,
|
|
3159
|
-
parsedBody,
|
|
3160
|
-
errorCode,
|
|
3161
|
-
});
|
|
3162
|
-
}
|
|
3163
|
-
};
|
|
3164
1598
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
3165
1599
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3166
|
-
return
|
|
1600
|
+
return de_CommandError(output, context);
|
|
3167
1601
|
}
|
|
3168
1602
|
const contents = map({
|
|
3169
1603
|
$metadata: deserializeMetadata(output),
|
|
@@ -3171,40 +1605,9 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
3171
1605
|
await collectBody(output.body, context);
|
|
3172
1606
|
return contents;
|
|
3173
1607
|
};
|
|
3174
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
3175
|
-
const parsedOutput = {
|
|
3176
|
-
...output,
|
|
3177
|
-
body: await parseErrorBody(output.body, context),
|
|
3178
|
-
};
|
|
3179
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3180
|
-
switch (errorCode) {
|
|
3181
|
-
case "AccessDeniedException":
|
|
3182
|
-
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
3183
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3184
|
-
case "InternalServerException":
|
|
3185
|
-
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
3186
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3187
|
-
case "ResourceNotFoundException":
|
|
3188
|
-
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
3189
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3190
|
-
case "ThrottlingException":
|
|
3191
|
-
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
3192
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3193
|
-
case "ValidationException":
|
|
3194
|
-
case "com.amazonaws.resiliencehub#ValidationException":
|
|
3195
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3196
|
-
default:
|
|
3197
|
-
const parsedBody = parsedOutput.body;
|
|
3198
|
-
return throwDefaultError({
|
|
3199
|
-
output,
|
|
3200
|
-
parsedBody,
|
|
3201
|
-
errorCode,
|
|
3202
|
-
});
|
|
3203
|
-
}
|
|
3204
|
-
};
|
|
3205
1608
|
export const de_UpdateAppCommand = async (output, context) => {
|
|
3206
1609
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3207
|
-
return
|
|
1610
|
+
return de_CommandError(output, context);
|
|
3208
1611
|
}
|
|
3209
1612
|
const contents = map({
|
|
3210
1613
|
$metadata: deserializeMetadata(output),
|
|
@@ -3216,43 +1619,9 @@ export const de_UpdateAppCommand = async (output, context) => {
|
|
|
3216
1619
|
Object.assign(contents, doc);
|
|
3217
1620
|
return contents;
|
|
3218
1621
|
};
|
|
3219
|
-
const de_UpdateAppCommandError = async (output, context) => {
|
|
3220
|
-
const parsedOutput = {
|
|
3221
|
-
...output,
|
|
3222
|
-
body: await parseErrorBody(output.body, context),
|
|
3223
|
-
};
|
|
3224
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3225
|
-
switch (errorCode) {
|
|
3226
|
-
case "AccessDeniedException":
|
|
3227
|
-
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
3228
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3229
|
-
case "ConflictException":
|
|
3230
|
-
case "com.amazonaws.resiliencehub#ConflictException":
|
|
3231
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3232
|
-
case "InternalServerException":
|
|
3233
|
-
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
3234
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3235
|
-
case "ResourceNotFoundException":
|
|
3236
|
-
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
3237
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3238
|
-
case "ThrottlingException":
|
|
3239
|
-
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
3240
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3241
|
-
case "ValidationException":
|
|
3242
|
-
case "com.amazonaws.resiliencehub#ValidationException":
|
|
3243
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3244
|
-
default:
|
|
3245
|
-
const parsedBody = parsedOutput.body;
|
|
3246
|
-
return throwDefaultError({
|
|
3247
|
-
output,
|
|
3248
|
-
parsedBody,
|
|
3249
|
-
errorCode,
|
|
3250
|
-
});
|
|
3251
|
-
}
|
|
3252
|
-
};
|
|
3253
1622
|
export const de_UpdateAppVersionCommand = async (output, context) => {
|
|
3254
1623
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3255
|
-
return
|
|
1624
|
+
return de_CommandError(output, context);
|
|
3256
1625
|
}
|
|
3257
1626
|
const contents = map({
|
|
3258
1627
|
$metadata: deserializeMetadata(output),
|
|
@@ -3266,43 +1635,9 @@ export const de_UpdateAppVersionCommand = async (output, context) => {
|
|
|
3266
1635
|
Object.assign(contents, doc);
|
|
3267
1636
|
return contents;
|
|
3268
1637
|
};
|
|
3269
|
-
const de_UpdateAppVersionCommandError = async (output, context) => {
|
|
3270
|
-
const parsedOutput = {
|
|
3271
|
-
...output,
|
|
3272
|
-
body: await parseErrorBody(output.body, context),
|
|
3273
|
-
};
|
|
3274
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3275
|
-
switch (errorCode) {
|
|
3276
|
-
case "AccessDeniedException":
|
|
3277
|
-
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
3278
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3279
|
-
case "ConflictException":
|
|
3280
|
-
case "com.amazonaws.resiliencehub#ConflictException":
|
|
3281
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3282
|
-
case "InternalServerException":
|
|
3283
|
-
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
3284
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3285
|
-
case "ResourceNotFoundException":
|
|
3286
|
-
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
3287
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3288
|
-
case "ThrottlingException":
|
|
3289
|
-
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
3290
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3291
|
-
case "ValidationException":
|
|
3292
|
-
case "com.amazonaws.resiliencehub#ValidationException":
|
|
3293
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3294
|
-
default:
|
|
3295
|
-
const parsedBody = parsedOutput.body;
|
|
3296
|
-
return throwDefaultError({
|
|
3297
|
-
output,
|
|
3298
|
-
parsedBody,
|
|
3299
|
-
errorCode,
|
|
3300
|
-
});
|
|
3301
|
-
}
|
|
3302
|
-
};
|
|
3303
1638
|
export const de_UpdateAppVersionAppComponentCommand = async (output, context) => {
|
|
3304
1639
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3305
|
-
return
|
|
1640
|
+
return de_CommandError(output, context);
|
|
3306
1641
|
}
|
|
3307
1642
|
const contents = map({
|
|
3308
1643
|
$metadata: deserializeMetadata(output),
|
|
@@ -3316,43 +1651,9 @@ export const de_UpdateAppVersionAppComponentCommand = async (output, context) =>
|
|
|
3316
1651
|
Object.assign(contents, doc);
|
|
3317
1652
|
return contents;
|
|
3318
1653
|
};
|
|
3319
|
-
const de_UpdateAppVersionAppComponentCommandError = async (output, context) => {
|
|
3320
|
-
const parsedOutput = {
|
|
3321
|
-
...output,
|
|
3322
|
-
body: await parseErrorBody(output.body, context),
|
|
3323
|
-
};
|
|
3324
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3325
|
-
switch (errorCode) {
|
|
3326
|
-
case "AccessDeniedException":
|
|
3327
|
-
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
3328
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3329
|
-
case "ConflictException":
|
|
3330
|
-
case "com.amazonaws.resiliencehub#ConflictException":
|
|
3331
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3332
|
-
case "InternalServerException":
|
|
3333
|
-
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
3334
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3335
|
-
case "ResourceNotFoundException":
|
|
3336
|
-
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
3337
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3338
|
-
case "ThrottlingException":
|
|
3339
|
-
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
3340
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3341
|
-
case "ValidationException":
|
|
3342
|
-
case "com.amazonaws.resiliencehub#ValidationException":
|
|
3343
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3344
|
-
default:
|
|
3345
|
-
const parsedBody = parsedOutput.body;
|
|
3346
|
-
return throwDefaultError({
|
|
3347
|
-
output,
|
|
3348
|
-
parsedBody,
|
|
3349
|
-
errorCode,
|
|
3350
|
-
});
|
|
3351
|
-
}
|
|
3352
|
-
};
|
|
3353
1654
|
export const de_UpdateAppVersionResourceCommand = async (output, context) => {
|
|
3354
1655
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3355
|
-
return
|
|
1656
|
+
return de_CommandError(output, context);
|
|
3356
1657
|
}
|
|
3357
1658
|
const contents = map({
|
|
3358
1659
|
$metadata: deserializeMetadata(output),
|
|
@@ -3366,46 +1667,9 @@ export const de_UpdateAppVersionResourceCommand = async (output, context) => {
|
|
|
3366
1667
|
Object.assign(contents, doc);
|
|
3367
1668
|
return contents;
|
|
3368
1669
|
};
|
|
3369
|
-
const de_UpdateAppVersionResourceCommandError = async (output, context) => {
|
|
3370
|
-
const parsedOutput = {
|
|
3371
|
-
...output,
|
|
3372
|
-
body: await parseErrorBody(output.body, context),
|
|
3373
|
-
};
|
|
3374
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3375
|
-
switch (errorCode) {
|
|
3376
|
-
case "AccessDeniedException":
|
|
3377
|
-
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
3378
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3379
|
-
case "ConflictException":
|
|
3380
|
-
case "com.amazonaws.resiliencehub#ConflictException":
|
|
3381
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3382
|
-
case "InternalServerException":
|
|
3383
|
-
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
3384
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3385
|
-
case "ResourceNotFoundException":
|
|
3386
|
-
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
3387
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3388
|
-
case "ServiceQuotaExceededException":
|
|
3389
|
-
case "com.amazonaws.resiliencehub#ServiceQuotaExceededException":
|
|
3390
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3391
|
-
case "ThrottlingException":
|
|
3392
|
-
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
3393
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3394
|
-
case "ValidationException":
|
|
3395
|
-
case "com.amazonaws.resiliencehub#ValidationException":
|
|
3396
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3397
|
-
default:
|
|
3398
|
-
const parsedBody = parsedOutput.body;
|
|
3399
|
-
return throwDefaultError({
|
|
3400
|
-
output,
|
|
3401
|
-
parsedBody,
|
|
3402
|
-
errorCode,
|
|
3403
|
-
});
|
|
3404
|
-
}
|
|
3405
|
-
};
|
|
3406
1670
|
export const de_UpdateResiliencyPolicyCommand = async (output, context) => {
|
|
3407
1671
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3408
|
-
return
|
|
1672
|
+
return de_CommandError(output, context);
|
|
3409
1673
|
}
|
|
3410
1674
|
const contents = map({
|
|
3411
1675
|
$metadata: deserializeMetadata(output),
|
|
@@ -3417,7 +1681,7 @@ export const de_UpdateResiliencyPolicyCommand = async (output, context) => {
|
|
|
3417
1681
|
Object.assign(contents, doc);
|
|
3418
1682
|
return contents;
|
|
3419
1683
|
};
|
|
3420
|
-
const
|
|
1684
|
+
const de_CommandError = async (output, context) => {
|
|
3421
1685
|
const parsedOutput = {
|
|
3422
1686
|
...output,
|
|
3423
1687
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3442,6 +1706,9 @@ const de_UpdateResiliencyPolicyCommandError = async (output, context) => {
|
|
|
3442
1706
|
case "ValidationException":
|
|
3443
1707
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
3444
1708
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1709
|
+
case "ServiceQuotaExceededException":
|
|
1710
|
+
case "com.amazonaws.resiliencehub#ServiceQuotaExceededException":
|
|
1711
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3445
1712
|
default:
|
|
3446
1713
|
const parsedBody = parsedOutput.body;
|
|
3447
1714
|
return throwDefaultError({
|