@aws-sdk/client-config-service 3.138.0 → 3.144.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/CHANGELOG.md +30 -0
- package/README.md +1 -1
- package/dist-cjs/models/models_0.js +9 -0
- package/dist-cjs/protocols/Aws_json1_1.js +449 -836
- package/dist-es/models/models_0.js +9 -0
- package/dist-es/protocols/Aws_json1_1.js +713 -837
- package/dist-types/ConfigService.d.ts +61 -39
- package/dist-types/commands/ListConformancePackComplianceScoresCommand.d.ts +4 -1
- package/dist-types/commands/PutConfigRuleCommand.d.ts +27 -21
- package/dist-types/commands/PutConfigurationAggregatorCommand.d.ts +1 -1
- package/dist-types/commands/PutConformancePackCommand.d.ts +2 -2
- package/dist-types/commands/PutOrganizationConfigRuleCommand.d.ts +24 -11
- package/dist-types/commands/PutOrganizationConformancePackCommand.d.ts +2 -2
- package/dist-types/commands/SelectResourceConfigCommand.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +45 -27
- package/dist-types/models/models_1.d.ts +8 -4
- package/dist-types/ts3.4/models/models_0.d.ts +9 -0
- package/package.json +6 -6
|
@@ -917,7 +917,6 @@ const deserializeAws_json1_1BatchGetAggregateResourceConfigCommandError = async
|
|
|
917
917
|
...output,
|
|
918
918
|
body: await parseBody(output.body, context),
|
|
919
919
|
};
|
|
920
|
-
let response;
|
|
921
920
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
922
921
|
switch (errorCode) {
|
|
923
922
|
case "NoSuchConfigurationAggregatorException":
|
|
@@ -928,14 +927,12 @@ const deserializeAws_json1_1BatchGetAggregateResourceConfigCommandError = async
|
|
|
928
927
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
929
928
|
default:
|
|
930
929
|
const parsedBody = parsedOutput.body;
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
$metadata,
|
|
930
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
931
|
+
output,
|
|
932
|
+
parsedBody,
|
|
933
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
934
|
+
errorCode,
|
|
937
935
|
});
|
|
938
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
939
936
|
}
|
|
940
937
|
};
|
|
941
938
|
const deserializeAws_json1_1BatchGetResourceConfigCommand = async (output, context) => {
|
|
@@ -957,7 +954,6 @@ const deserializeAws_json1_1BatchGetResourceConfigCommandError = async (output,
|
|
|
957
954
|
...output,
|
|
958
955
|
body: await parseBody(output.body, context),
|
|
959
956
|
};
|
|
960
|
-
let response;
|
|
961
957
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
962
958
|
switch (errorCode) {
|
|
963
959
|
case "NoAvailableConfigurationRecorderException":
|
|
@@ -968,14 +964,12 @@ const deserializeAws_json1_1BatchGetResourceConfigCommandError = async (output,
|
|
|
968
964
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
969
965
|
default:
|
|
970
966
|
const parsedBody = parsedOutput.body;
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
$metadata,
|
|
967
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
968
|
+
output,
|
|
969
|
+
parsedBody,
|
|
970
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
971
|
+
errorCode,
|
|
977
972
|
});
|
|
978
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
979
973
|
}
|
|
980
974
|
};
|
|
981
975
|
const deserializeAws_json1_1DeleteAggregationAuthorizationCommand = async (output, context) => {
|
|
@@ -994,7 +988,6 @@ const deserializeAws_json1_1DeleteAggregationAuthorizationCommandError = async (
|
|
|
994
988
|
...output,
|
|
995
989
|
body: await parseBody(output.body, context),
|
|
996
990
|
};
|
|
997
|
-
let response;
|
|
998
991
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
999
992
|
switch (errorCode) {
|
|
1000
993
|
case "InvalidParameterValueException":
|
|
@@ -1002,14 +995,12 @@ const deserializeAws_json1_1DeleteAggregationAuthorizationCommandError = async (
|
|
|
1002
995
|
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
1003
996
|
default:
|
|
1004
997
|
const parsedBody = parsedOutput.body;
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
$metadata,
|
|
998
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
999
|
+
output,
|
|
1000
|
+
parsedBody,
|
|
1001
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
1002
|
+
errorCode,
|
|
1011
1003
|
});
|
|
1012
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1013
1004
|
}
|
|
1014
1005
|
};
|
|
1015
1006
|
const deserializeAws_json1_1DeleteConfigRuleCommand = async (output, context) => {
|
|
@@ -1028,7 +1019,6 @@ const deserializeAws_json1_1DeleteConfigRuleCommandError = async (output, contex
|
|
|
1028
1019
|
...output,
|
|
1029
1020
|
body: await parseBody(output.body, context),
|
|
1030
1021
|
};
|
|
1031
|
-
let response;
|
|
1032
1022
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1033
1023
|
switch (errorCode) {
|
|
1034
1024
|
case "NoSuchConfigRuleException":
|
|
@@ -1039,14 +1029,12 @@ const deserializeAws_json1_1DeleteConfigRuleCommandError = async (output, contex
|
|
|
1039
1029
|
throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
1040
1030
|
default:
|
|
1041
1031
|
const parsedBody = parsedOutput.body;
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
$metadata,
|
|
1032
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1033
|
+
output,
|
|
1034
|
+
parsedBody,
|
|
1035
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
1036
|
+
errorCode,
|
|
1048
1037
|
});
|
|
1049
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1050
1038
|
}
|
|
1051
1039
|
};
|
|
1052
1040
|
const deserializeAws_json1_1DeleteConfigurationAggregatorCommand = async (output, context) => {
|
|
@@ -1065,7 +1053,6 @@ const deserializeAws_json1_1DeleteConfigurationAggregatorCommandError = async (o
|
|
|
1065
1053
|
...output,
|
|
1066
1054
|
body: await parseBody(output.body, context),
|
|
1067
1055
|
};
|
|
1068
|
-
let response;
|
|
1069
1056
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1070
1057
|
switch (errorCode) {
|
|
1071
1058
|
case "NoSuchConfigurationAggregatorException":
|
|
@@ -1073,14 +1060,12 @@ const deserializeAws_json1_1DeleteConfigurationAggregatorCommandError = async (o
|
|
|
1073
1060
|
throw await deserializeAws_json1_1NoSuchConfigurationAggregatorExceptionResponse(parsedOutput, context);
|
|
1074
1061
|
default:
|
|
1075
1062
|
const parsedBody = parsedOutput.body;
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
$metadata,
|
|
1063
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1064
|
+
output,
|
|
1065
|
+
parsedBody,
|
|
1066
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
1067
|
+
errorCode,
|
|
1082
1068
|
});
|
|
1083
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1084
1069
|
}
|
|
1085
1070
|
};
|
|
1086
1071
|
const deserializeAws_json1_1DeleteConfigurationRecorderCommand = async (output, context) => {
|
|
@@ -1099,7 +1084,6 @@ const deserializeAws_json1_1DeleteConfigurationRecorderCommandError = async (out
|
|
|
1099
1084
|
...output,
|
|
1100
1085
|
body: await parseBody(output.body, context),
|
|
1101
1086
|
};
|
|
1102
|
-
let response;
|
|
1103
1087
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1104
1088
|
switch (errorCode) {
|
|
1105
1089
|
case "NoSuchConfigurationRecorderException":
|
|
@@ -1107,14 +1091,12 @@ const deserializeAws_json1_1DeleteConfigurationRecorderCommandError = async (out
|
|
|
1107
1091
|
throw await deserializeAws_json1_1NoSuchConfigurationRecorderExceptionResponse(parsedOutput, context);
|
|
1108
1092
|
default:
|
|
1109
1093
|
const parsedBody = parsedOutput.body;
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
$metadata,
|
|
1094
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1095
|
+
output,
|
|
1096
|
+
parsedBody,
|
|
1097
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
1098
|
+
errorCode,
|
|
1116
1099
|
});
|
|
1117
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1118
1100
|
}
|
|
1119
1101
|
};
|
|
1120
1102
|
const deserializeAws_json1_1DeleteConformancePackCommand = async (output, context) => {
|
|
@@ -1133,7 +1115,6 @@ const deserializeAws_json1_1DeleteConformancePackCommandError = async (output, c
|
|
|
1133
1115
|
...output,
|
|
1134
1116
|
body: await parseBody(output.body, context),
|
|
1135
1117
|
};
|
|
1136
|
-
let response;
|
|
1137
1118
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1138
1119
|
switch (errorCode) {
|
|
1139
1120
|
case "NoSuchConformancePackException":
|
|
@@ -1144,14 +1125,12 @@ const deserializeAws_json1_1DeleteConformancePackCommandError = async (output, c
|
|
|
1144
1125
|
throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
1145
1126
|
default:
|
|
1146
1127
|
const parsedBody = parsedOutput.body;
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
$metadata,
|
|
1128
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1129
|
+
output,
|
|
1130
|
+
parsedBody,
|
|
1131
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
1132
|
+
errorCode,
|
|
1153
1133
|
});
|
|
1154
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1155
1134
|
}
|
|
1156
1135
|
};
|
|
1157
1136
|
const deserializeAws_json1_1DeleteDeliveryChannelCommand = async (output, context) => {
|
|
@@ -1170,7 +1149,6 @@ const deserializeAws_json1_1DeleteDeliveryChannelCommandError = async (output, c
|
|
|
1170
1149
|
...output,
|
|
1171
1150
|
body: await parseBody(output.body, context),
|
|
1172
1151
|
};
|
|
1173
|
-
let response;
|
|
1174
1152
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1175
1153
|
switch (errorCode) {
|
|
1176
1154
|
case "LastDeliveryChannelDeleteFailedException":
|
|
@@ -1181,14 +1159,12 @@ const deserializeAws_json1_1DeleteDeliveryChannelCommandError = async (output, c
|
|
|
1181
1159
|
throw await deserializeAws_json1_1NoSuchDeliveryChannelExceptionResponse(parsedOutput, context);
|
|
1182
1160
|
default:
|
|
1183
1161
|
const parsedBody = parsedOutput.body;
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
$metadata,
|
|
1162
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1163
|
+
output,
|
|
1164
|
+
parsedBody,
|
|
1165
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
1166
|
+
errorCode,
|
|
1190
1167
|
});
|
|
1191
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1192
1168
|
}
|
|
1193
1169
|
};
|
|
1194
1170
|
const deserializeAws_json1_1DeleteEvaluationResultsCommand = async (output, context) => {
|
|
@@ -1210,7 +1186,6 @@ const deserializeAws_json1_1DeleteEvaluationResultsCommandError = async (output,
|
|
|
1210
1186
|
...output,
|
|
1211
1187
|
body: await parseBody(output.body, context),
|
|
1212
1188
|
};
|
|
1213
|
-
let response;
|
|
1214
1189
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1215
1190
|
switch (errorCode) {
|
|
1216
1191
|
case "NoSuchConfigRuleException":
|
|
@@ -1221,14 +1196,12 @@ const deserializeAws_json1_1DeleteEvaluationResultsCommandError = async (output,
|
|
|
1221
1196
|
throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
1222
1197
|
default:
|
|
1223
1198
|
const parsedBody = parsedOutput.body;
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
$metadata,
|
|
1199
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1200
|
+
output,
|
|
1201
|
+
parsedBody,
|
|
1202
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
1203
|
+
errorCode,
|
|
1230
1204
|
});
|
|
1231
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1232
1205
|
}
|
|
1233
1206
|
};
|
|
1234
1207
|
const deserializeAws_json1_1DeleteOrganizationConfigRuleCommand = async (output, context) => {
|
|
@@ -1247,7 +1220,6 @@ const deserializeAws_json1_1DeleteOrganizationConfigRuleCommandError = async (ou
|
|
|
1247
1220
|
...output,
|
|
1248
1221
|
body: await parseBody(output.body, context),
|
|
1249
1222
|
};
|
|
1250
|
-
let response;
|
|
1251
1223
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1252
1224
|
switch (errorCode) {
|
|
1253
1225
|
case "NoSuchOrganizationConfigRuleException":
|
|
@@ -1261,14 +1233,12 @@ const deserializeAws_json1_1DeleteOrganizationConfigRuleCommandError = async (ou
|
|
|
1261
1233
|
throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
1262
1234
|
default:
|
|
1263
1235
|
const parsedBody = parsedOutput.body;
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
$metadata,
|
|
1236
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1237
|
+
output,
|
|
1238
|
+
parsedBody,
|
|
1239
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
1240
|
+
errorCode,
|
|
1270
1241
|
});
|
|
1271
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1272
1242
|
}
|
|
1273
1243
|
};
|
|
1274
1244
|
const deserializeAws_json1_1DeleteOrganizationConformancePackCommand = async (output, context) => {
|
|
@@ -1287,7 +1257,6 @@ const deserializeAws_json1_1DeleteOrganizationConformancePackCommandError = asyn
|
|
|
1287
1257
|
...output,
|
|
1288
1258
|
body: await parseBody(output.body, context),
|
|
1289
1259
|
};
|
|
1290
|
-
let response;
|
|
1291
1260
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1292
1261
|
switch (errorCode) {
|
|
1293
1262
|
case "NoSuchOrganizationConformancePackException":
|
|
@@ -1301,14 +1270,12 @@ const deserializeAws_json1_1DeleteOrganizationConformancePackCommandError = asyn
|
|
|
1301
1270
|
throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
1302
1271
|
default:
|
|
1303
1272
|
const parsedBody = parsedOutput.body;
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
$metadata,
|
|
1273
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1274
|
+
output,
|
|
1275
|
+
parsedBody,
|
|
1276
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
1277
|
+
errorCode,
|
|
1310
1278
|
});
|
|
1311
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1312
1279
|
}
|
|
1313
1280
|
};
|
|
1314
1281
|
const deserializeAws_json1_1DeletePendingAggregationRequestCommand = async (output, context) => {
|
|
@@ -1327,7 +1294,6 @@ const deserializeAws_json1_1DeletePendingAggregationRequestCommandError = async
|
|
|
1327
1294
|
...output,
|
|
1328
1295
|
body: await parseBody(output.body, context),
|
|
1329
1296
|
};
|
|
1330
|
-
let response;
|
|
1331
1297
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1332
1298
|
switch (errorCode) {
|
|
1333
1299
|
case "InvalidParameterValueException":
|
|
@@ -1335,14 +1301,12 @@ const deserializeAws_json1_1DeletePendingAggregationRequestCommandError = async
|
|
|
1335
1301
|
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
1336
1302
|
default:
|
|
1337
1303
|
const parsedBody = parsedOutput.body;
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
$metadata,
|
|
1304
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1305
|
+
output,
|
|
1306
|
+
parsedBody,
|
|
1307
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
1308
|
+
errorCode,
|
|
1344
1309
|
});
|
|
1345
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1346
1310
|
}
|
|
1347
1311
|
};
|
|
1348
1312
|
const deserializeAws_json1_1DeleteRemediationConfigurationCommand = async (output, context) => {
|
|
@@ -1364,7 +1328,6 @@ const deserializeAws_json1_1DeleteRemediationConfigurationCommandError = async (
|
|
|
1364
1328
|
...output,
|
|
1365
1329
|
body: await parseBody(output.body, context),
|
|
1366
1330
|
};
|
|
1367
|
-
let response;
|
|
1368
1331
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1369
1332
|
switch (errorCode) {
|
|
1370
1333
|
case "InsufficientPermissionsException":
|
|
@@ -1381,14 +1344,12 @@ const deserializeAws_json1_1DeleteRemediationConfigurationCommandError = async (
|
|
|
1381
1344
|
throw await deserializeAws_json1_1RemediationInProgressExceptionResponse(parsedOutput, context);
|
|
1382
1345
|
default:
|
|
1383
1346
|
const parsedBody = parsedOutput.body;
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
$metadata,
|
|
1347
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1348
|
+
output,
|
|
1349
|
+
parsedBody,
|
|
1350
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
1351
|
+
errorCode,
|
|
1390
1352
|
});
|
|
1391
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1392
1353
|
}
|
|
1393
1354
|
};
|
|
1394
1355
|
const deserializeAws_json1_1DeleteRemediationExceptionsCommand = async (output, context) => {
|
|
@@ -1410,7 +1371,6 @@ const deserializeAws_json1_1DeleteRemediationExceptionsCommandError = async (out
|
|
|
1410
1371
|
...output,
|
|
1411
1372
|
body: await parseBody(output.body, context),
|
|
1412
1373
|
};
|
|
1413
|
-
let response;
|
|
1414
1374
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1415
1375
|
switch (errorCode) {
|
|
1416
1376
|
case "NoSuchRemediationExceptionException":
|
|
@@ -1418,14 +1378,12 @@ const deserializeAws_json1_1DeleteRemediationExceptionsCommandError = async (out
|
|
|
1418
1378
|
throw await deserializeAws_json1_1NoSuchRemediationExceptionExceptionResponse(parsedOutput, context);
|
|
1419
1379
|
default:
|
|
1420
1380
|
const parsedBody = parsedOutput.body;
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
$metadata,
|
|
1381
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1382
|
+
output,
|
|
1383
|
+
parsedBody,
|
|
1384
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
1385
|
+
errorCode,
|
|
1427
1386
|
});
|
|
1428
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1429
1387
|
}
|
|
1430
1388
|
};
|
|
1431
1389
|
const deserializeAws_json1_1DeleteResourceConfigCommand = async (output, context) => {
|
|
@@ -1444,7 +1402,6 @@ const deserializeAws_json1_1DeleteResourceConfigCommandError = async (output, co
|
|
|
1444
1402
|
...output,
|
|
1445
1403
|
body: await parseBody(output.body, context),
|
|
1446
1404
|
};
|
|
1447
|
-
let response;
|
|
1448
1405
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1449
1406
|
switch (errorCode) {
|
|
1450
1407
|
case "NoRunningConfigurationRecorderException":
|
|
@@ -1455,14 +1412,12 @@ const deserializeAws_json1_1DeleteResourceConfigCommandError = async (output, co
|
|
|
1455
1412
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1456
1413
|
default:
|
|
1457
1414
|
const parsedBody = parsedOutput.body;
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
$metadata,
|
|
1415
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1416
|
+
output,
|
|
1417
|
+
parsedBody,
|
|
1418
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
1419
|
+
errorCode,
|
|
1464
1420
|
});
|
|
1465
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1466
1421
|
}
|
|
1467
1422
|
};
|
|
1468
1423
|
const deserializeAws_json1_1DeleteRetentionConfigurationCommand = async (output, context) => {
|
|
@@ -1481,7 +1436,6 @@ const deserializeAws_json1_1DeleteRetentionConfigurationCommandError = async (ou
|
|
|
1481
1436
|
...output,
|
|
1482
1437
|
body: await parseBody(output.body, context),
|
|
1483
1438
|
};
|
|
1484
|
-
let response;
|
|
1485
1439
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1486
1440
|
switch (errorCode) {
|
|
1487
1441
|
case "InvalidParameterValueException":
|
|
@@ -1492,14 +1446,12 @@ const deserializeAws_json1_1DeleteRetentionConfigurationCommandError = async (ou
|
|
|
1492
1446
|
throw await deserializeAws_json1_1NoSuchRetentionConfigurationExceptionResponse(parsedOutput, context);
|
|
1493
1447
|
default:
|
|
1494
1448
|
const parsedBody = parsedOutput.body;
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
$metadata,
|
|
1449
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1450
|
+
output,
|
|
1451
|
+
parsedBody,
|
|
1452
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
1453
|
+
errorCode,
|
|
1501
1454
|
});
|
|
1502
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1503
1455
|
}
|
|
1504
1456
|
};
|
|
1505
1457
|
const deserializeAws_json1_1DeleteStoredQueryCommand = async (output, context) => {
|
|
@@ -1521,7 +1473,6 @@ const deserializeAws_json1_1DeleteStoredQueryCommandError = async (output, conte
|
|
|
1521
1473
|
...output,
|
|
1522
1474
|
body: await parseBody(output.body, context),
|
|
1523
1475
|
};
|
|
1524
|
-
let response;
|
|
1525
1476
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1526
1477
|
switch (errorCode) {
|
|
1527
1478
|
case "ResourceNotFoundException":
|
|
@@ -1532,14 +1483,12 @@ const deserializeAws_json1_1DeleteStoredQueryCommandError = async (output, conte
|
|
|
1532
1483
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1533
1484
|
default:
|
|
1534
1485
|
const parsedBody = parsedOutput.body;
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
$metadata,
|
|
1486
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1487
|
+
output,
|
|
1488
|
+
parsedBody,
|
|
1489
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
1490
|
+
errorCode,
|
|
1541
1491
|
});
|
|
1542
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1543
1492
|
}
|
|
1544
1493
|
};
|
|
1545
1494
|
const deserializeAws_json1_1DeliverConfigSnapshotCommand = async (output, context) => {
|
|
@@ -1561,7 +1510,6 @@ const deserializeAws_json1_1DeliverConfigSnapshotCommandError = async (output, c
|
|
|
1561
1510
|
...output,
|
|
1562
1511
|
body: await parseBody(output.body, context),
|
|
1563
1512
|
};
|
|
1564
|
-
let response;
|
|
1565
1513
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1566
1514
|
switch (errorCode) {
|
|
1567
1515
|
case "NoAvailableConfigurationRecorderException":
|
|
@@ -1575,14 +1523,12 @@ const deserializeAws_json1_1DeliverConfigSnapshotCommandError = async (output, c
|
|
|
1575
1523
|
throw await deserializeAws_json1_1NoSuchDeliveryChannelExceptionResponse(parsedOutput, context);
|
|
1576
1524
|
default:
|
|
1577
1525
|
const parsedBody = parsedOutput.body;
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
$metadata,
|
|
1526
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1527
|
+
output,
|
|
1528
|
+
parsedBody,
|
|
1529
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
1530
|
+
errorCode,
|
|
1584
1531
|
});
|
|
1585
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1586
1532
|
}
|
|
1587
1533
|
};
|
|
1588
1534
|
const deserializeAws_json1_1DescribeAggregateComplianceByConfigRulesCommand = async (output, context) => {
|
|
@@ -1604,7 +1550,6 @@ const deserializeAws_json1_1DescribeAggregateComplianceByConfigRulesCommandError
|
|
|
1604
1550
|
...output,
|
|
1605
1551
|
body: await parseBody(output.body, context),
|
|
1606
1552
|
};
|
|
1607
|
-
let response;
|
|
1608
1553
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1609
1554
|
switch (errorCode) {
|
|
1610
1555
|
case "InvalidLimitException":
|
|
@@ -1621,14 +1566,12 @@ const deserializeAws_json1_1DescribeAggregateComplianceByConfigRulesCommandError
|
|
|
1621
1566
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1622
1567
|
default:
|
|
1623
1568
|
const parsedBody = parsedOutput.body;
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
$metadata,
|
|
1569
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1570
|
+
output,
|
|
1571
|
+
parsedBody,
|
|
1572
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
1573
|
+
errorCode,
|
|
1630
1574
|
});
|
|
1631
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1632
1575
|
}
|
|
1633
1576
|
};
|
|
1634
1577
|
const deserializeAws_json1_1DescribeAggregateComplianceByConformancePacksCommand = async (output, context) => {
|
|
@@ -1650,7 +1593,6 @@ const deserializeAws_json1_1DescribeAggregateComplianceByConformancePacksCommand
|
|
|
1650
1593
|
...output,
|
|
1651
1594
|
body: await parseBody(output.body, context),
|
|
1652
1595
|
};
|
|
1653
|
-
let response;
|
|
1654
1596
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1655
1597
|
switch (errorCode) {
|
|
1656
1598
|
case "InvalidLimitException":
|
|
@@ -1667,14 +1609,12 @@ const deserializeAws_json1_1DescribeAggregateComplianceByConformancePacksCommand
|
|
|
1667
1609
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1668
1610
|
default:
|
|
1669
1611
|
const parsedBody = parsedOutput.body;
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
$metadata,
|
|
1612
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1613
|
+
output,
|
|
1614
|
+
parsedBody,
|
|
1615
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
1616
|
+
errorCode,
|
|
1676
1617
|
});
|
|
1677
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1678
1618
|
}
|
|
1679
1619
|
};
|
|
1680
1620
|
const deserializeAws_json1_1DescribeAggregationAuthorizationsCommand = async (output, context) => {
|
|
@@ -1696,7 +1636,6 @@ const deserializeAws_json1_1DescribeAggregationAuthorizationsCommandError = asyn
|
|
|
1696
1636
|
...output,
|
|
1697
1637
|
body: await parseBody(output.body, context),
|
|
1698
1638
|
};
|
|
1699
|
-
let response;
|
|
1700
1639
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1701
1640
|
switch (errorCode) {
|
|
1702
1641
|
case "InvalidLimitException":
|
|
@@ -1710,14 +1649,12 @@ const deserializeAws_json1_1DescribeAggregationAuthorizationsCommandError = asyn
|
|
|
1710
1649
|
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
1711
1650
|
default:
|
|
1712
1651
|
const parsedBody = parsedOutput.body;
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
$metadata,
|
|
1652
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1653
|
+
output,
|
|
1654
|
+
parsedBody,
|
|
1655
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
1656
|
+
errorCode,
|
|
1719
1657
|
});
|
|
1720
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1721
1658
|
}
|
|
1722
1659
|
};
|
|
1723
1660
|
const deserializeAws_json1_1DescribeComplianceByConfigRuleCommand = async (output, context) => {
|
|
@@ -1739,7 +1676,6 @@ const deserializeAws_json1_1DescribeComplianceByConfigRuleCommandError = async (
|
|
|
1739
1676
|
...output,
|
|
1740
1677
|
body: await parseBody(output.body, context),
|
|
1741
1678
|
};
|
|
1742
|
-
let response;
|
|
1743
1679
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1744
1680
|
switch (errorCode) {
|
|
1745
1681
|
case "InvalidNextTokenException":
|
|
@@ -1753,14 +1689,12 @@ const deserializeAws_json1_1DescribeComplianceByConfigRuleCommandError = async (
|
|
|
1753
1689
|
throw await deserializeAws_json1_1NoSuchConfigRuleExceptionResponse(parsedOutput, context);
|
|
1754
1690
|
default:
|
|
1755
1691
|
const parsedBody = parsedOutput.body;
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
$metadata,
|
|
1692
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1693
|
+
output,
|
|
1694
|
+
parsedBody,
|
|
1695
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
1696
|
+
errorCode,
|
|
1762
1697
|
});
|
|
1763
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1764
1698
|
}
|
|
1765
1699
|
};
|
|
1766
1700
|
const deserializeAws_json1_1DescribeComplianceByResourceCommand = async (output, context) => {
|
|
@@ -1782,7 +1716,6 @@ const deserializeAws_json1_1DescribeComplianceByResourceCommandError = async (ou
|
|
|
1782
1716
|
...output,
|
|
1783
1717
|
body: await parseBody(output.body, context),
|
|
1784
1718
|
};
|
|
1785
|
-
let response;
|
|
1786
1719
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1787
1720
|
switch (errorCode) {
|
|
1788
1721
|
case "InvalidNextTokenException":
|
|
@@ -1793,14 +1726,12 @@ const deserializeAws_json1_1DescribeComplianceByResourceCommandError = async (ou
|
|
|
1793
1726
|
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
1794
1727
|
default:
|
|
1795
1728
|
const parsedBody = parsedOutput.body;
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
$metadata,
|
|
1729
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1730
|
+
output,
|
|
1731
|
+
parsedBody,
|
|
1732
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
1733
|
+
errorCode,
|
|
1802
1734
|
});
|
|
1803
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1804
1735
|
}
|
|
1805
1736
|
};
|
|
1806
1737
|
const deserializeAws_json1_1DescribeConfigRuleEvaluationStatusCommand = async (output, context) => {
|
|
@@ -1822,7 +1753,6 @@ const deserializeAws_json1_1DescribeConfigRuleEvaluationStatusCommandError = asy
|
|
|
1822
1753
|
...output,
|
|
1823
1754
|
body: await parseBody(output.body, context),
|
|
1824
1755
|
};
|
|
1825
|
-
let response;
|
|
1826
1756
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1827
1757
|
switch (errorCode) {
|
|
1828
1758
|
case "InvalidNextTokenException":
|
|
@@ -1836,14 +1766,12 @@ const deserializeAws_json1_1DescribeConfigRuleEvaluationStatusCommandError = asy
|
|
|
1836
1766
|
throw await deserializeAws_json1_1NoSuchConfigRuleExceptionResponse(parsedOutput, context);
|
|
1837
1767
|
default:
|
|
1838
1768
|
const parsedBody = parsedOutput.body;
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
$metadata,
|
|
1769
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1770
|
+
output,
|
|
1771
|
+
parsedBody,
|
|
1772
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
1773
|
+
errorCode,
|
|
1845
1774
|
});
|
|
1846
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1847
1775
|
}
|
|
1848
1776
|
};
|
|
1849
1777
|
const deserializeAws_json1_1DescribeConfigRulesCommand = async (output, context) => {
|
|
@@ -1865,7 +1793,6 @@ const deserializeAws_json1_1DescribeConfigRulesCommandError = async (output, con
|
|
|
1865
1793
|
...output,
|
|
1866
1794
|
body: await parseBody(output.body, context),
|
|
1867
1795
|
};
|
|
1868
|
-
let response;
|
|
1869
1796
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1870
1797
|
switch (errorCode) {
|
|
1871
1798
|
case "InvalidNextTokenException":
|
|
@@ -1876,14 +1803,12 @@ const deserializeAws_json1_1DescribeConfigRulesCommandError = async (output, con
|
|
|
1876
1803
|
throw await deserializeAws_json1_1NoSuchConfigRuleExceptionResponse(parsedOutput, context);
|
|
1877
1804
|
default:
|
|
1878
1805
|
const parsedBody = parsedOutput.body;
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
$metadata,
|
|
1806
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1807
|
+
output,
|
|
1808
|
+
parsedBody,
|
|
1809
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
1810
|
+
errorCode,
|
|
1885
1811
|
});
|
|
1886
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1887
1812
|
}
|
|
1888
1813
|
};
|
|
1889
1814
|
const deserializeAws_json1_1DescribeConfigurationAggregatorsCommand = async (output, context) => {
|
|
@@ -1905,7 +1830,6 @@ const deserializeAws_json1_1DescribeConfigurationAggregatorsCommandError = async
|
|
|
1905
1830
|
...output,
|
|
1906
1831
|
body: await parseBody(output.body, context),
|
|
1907
1832
|
};
|
|
1908
|
-
let response;
|
|
1909
1833
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1910
1834
|
switch (errorCode) {
|
|
1911
1835
|
case "InvalidLimitException":
|
|
@@ -1922,14 +1846,12 @@ const deserializeAws_json1_1DescribeConfigurationAggregatorsCommandError = async
|
|
|
1922
1846
|
throw await deserializeAws_json1_1NoSuchConfigurationAggregatorExceptionResponse(parsedOutput, context);
|
|
1923
1847
|
default:
|
|
1924
1848
|
const parsedBody = parsedOutput.body;
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
$metadata,
|
|
1849
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1850
|
+
output,
|
|
1851
|
+
parsedBody,
|
|
1852
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
1853
|
+
errorCode,
|
|
1931
1854
|
});
|
|
1932
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1933
1855
|
}
|
|
1934
1856
|
};
|
|
1935
1857
|
const deserializeAws_json1_1DescribeConfigurationAggregatorSourcesStatusCommand = async (output, context) => {
|
|
@@ -1951,7 +1873,6 @@ const deserializeAws_json1_1DescribeConfigurationAggregatorSourcesStatusCommandE
|
|
|
1951
1873
|
...output,
|
|
1952
1874
|
body: await parseBody(output.body, context),
|
|
1953
1875
|
};
|
|
1954
|
-
let response;
|
|
1955
1876
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1956
1877
|
switch (errorCode) {
|
|
1957
1878
|
case "InvalidLimitException":
|
|
@@ -1968,14 +1889,12 @@ const deserializeAws_json1_1DescribeConfigurationAggregatorSourcesStatusCommandE
|
|
|
1968
1889
|
throw await deserializeAws_json1_1NoSuchConfigurationAggregatorExceptionResponse(parsedOutput, context);
|
|
1969
1890
|
default:
|
|
1970
1891
|
const parsedBody = parsedOutput.body;
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
$metadata,
|
|
1892
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1893
|
+
output,
|
|
1894
|
+
parsedBody,
|
|
1895
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
1896
|
+
errorCode,
|
|
1977
1897
|
});
|
|
1978
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1979
1898
|
}
|
|
1980
1899
|
};
|
|
1981
1900
|
const deserializeAws_json1_1DescribeConfigurationRecordersCommand = async (output, context) => {
|
|
@@ -1997,7 +1916,6 @@ const deserializeAws_json1_1DescribeConfigurationRecordersCommandError = async (
|
|
|
1997
1916
|
...output,
|
|
1998
1917
|
body: await parseBody(output.body, context),
|
|
1999
1918
|
};
|
|
2000
|
-
let response;
|
|
2001
1919
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2002
1920
|
switch (errorCode) {
|
|
2003
1921
|
case "NoSuchConfigurationRecorderException":
|
|
@@ -2005,14 +1923,12 @@ const deserializeAws_json1_1DescribeConfigurationRecordersCommandError = async (
|
|
|
2005
1923
|
throw await deserializeAws_json1_1NoSuchConfigurationRecorderExceptionResponse(parsedOutput, context);
|
|
2006
1924
|
default:
|
|
2007
1925
|
const parsedBody = parsedOutput.body;
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
$metadata,
|
|
1926
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1927
|
+
output,
|
|
1928
|
+
parsedBody,
|
|
1929
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
1930
|
+
errorCode,
|
|
2014
1931
|
});
|
|
2015
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2016
1932
|
}
|
|
2017
1933
|
};
|
|
2018
1934
|
const deserializeAws_json1_1DescribeConfigurationRecorderStatusCommand = async (output, context) => {
|
|
@@ -2034,7 +1950,6 @@ const deserializeAws_json1_1DescribeConfigurationRecorderStatusCommandError = as
|
|
|
2034
1950
|
...output,
|
|
2035
1951
|
body: await parseBody(output.body, context),
|
|
2036
1952
|
};
|
|
2037
|
-
let response;
|
|
2038
1953
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2039
1954
|
switch (errorCode) {
|
|
2040
1955
|
case "NoSuchConfigurationRecorderException":
|
|
@@ -2042,14 +1957,12 @@ const deserializeAws_json1_1DescribeConfigurationRecorderStatusCommandError = as
|
|
|
2042
1957
|
throw await deserializeAws_json1_1NoSuchConfigurationRecorderExceptionResponse(parsedOutput, context);
|
|
2043
1958
|
default:
|
|
2044
1959
|
const parsedBody = parsedOutput.body;
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
$metadata,
|
|
1960
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1961
|
+
output,
|
|
1962
|
+
parsedBody,
|
|
1963
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
1964
|
+
errorCode,
|
|
2051
1965
|
});
|
|
2052
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2053
1966
|
}
|
|
2054
1967
|
};
|
|
2055
1968
|
const deserializeAws_json1_1DescribeConformancePackComplianceCommand = async (output, context) => {
|
|
@@ -2071,7 +1984,6 @@ const deserializeAws_json1_1DescribeConformancePackComplianceCommandError = asyn
|
|
|
2071
1984
|
...output,
|
|
2072
1985
|
body: await parseBody(output.body, context),
|
|
2073
1986
|
};
|
|
2074
|
-
let response;
|
|
2075
1987
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2076
1988
|
switch (errorCode) {
|
|
2077
1989
|
case "InvalidLimitException":
|
|
@@ -2091,14 +2003,12 @@ const deserializeAws_json1_1DescribeConformancePackComplianceCommandError = asyn
|
|
|
2091
2003
|
throw await deserializeAws_json1_1NoSuchConformancePackExceptionResponse(parsedOutput, context);
|
|
2092
2004
|
default:
|
|
2093
2005
|
const parsedBody = parsedOutput.body;
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
$metadata,
|
|
2006
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2007
|
+
output,
|
|
2008
|
+
parsedBody,
|
|
2009
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
2010
|
+
errorCode,
|
|
2100
2011
|
});
|
|
2101
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2102
2012
|
}
|
|
2103
2013
|
};
|
|
2104
2014
|
const deserializeAws_json1_1DescribeConformancePacksCommand = async (output, context) => {
|
|
@@ -2120,7 +2030,6 @@ const deserializeAws_json1_1DescribeConformancePacksCommandError = async (output
|
|
|
2120
2030
|
...output,
|
|
2121
2031
|
body: await parseBody(output.body, context),
|
|
2122
2032
|
};
|
|
2123
|
-
let response;
|
|
2124
2033
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2125
2034
|
switch (errorCode) {
|
|
2126
2035
|
case "InvalidLimitException":
|
|
@@ -2137,14 +2046,12 @@ const deserializeAws_json1_1DescribeConformancePacksCommandError = async (output
|
|
|
2137
2046
|
throw await deserializeAws_json1_1NoSuchConformancePackExceptionResponse(parsedOutput, context);
|
|
2138
2047
|
default:
|
|
2139
2048
|
const parsedBody = parsedOutput.body;
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
$metadata,
|
|
2049
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2050
|
+
output,
|
|
2051
|
+
parsedBody,
|
|
2052
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
2053
|
+
errorCode,
|
|
2146
2054
|
});
|
|
2147
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2148
2055
|
}
|
|
2149
2056
|
};
|
|
2150
2057
|
const deserializeAws_json1_1DescribeConformancePackStatusCommand = async (output, context) => {
|
|
@@ -2166,7 +2073,6 @@ const deserializeAws_json1_1DescribeConformancePackStatusCommandError = async (o
|
|
|
2166
2073
|
...output,
|
|
2167
2074
|
body: await parseBody(output.body, context),
|
|
2168
2075
|
};
|
|
2169
|
-
let response;
|
|
2170
2076
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2171
2077
|
switch (errorCode) {
|
|
2172
2078
|
case "InvalidLimitException":
|
|
@@ -2180,14 +2086,12 @@ const deserializeAws_json1_1DescribeConformancePackStatusCommandError = async (o
|
|
|
2180
2086
|
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
2181
2087
|
default:
|
|
2182
2088
|
const parsedBody = parsedOutput.body;
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
$metadata,
|
|
2089
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2090
|
+
output,
|
|
2091
|
+
parsedBody,
|
|
2092
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
2093
|
+
errorCode,
|
|
2189
2094
|
});
|
|
2190
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2191
2095
|
}
|
|
2192
2096
|
};
|
|
2193
2097
|
const deserializeAws_json1_1DescribeDeliveryChannelsCommand = async (output, context) => {
|
|
@@ -2209,7 +2113,6 @@ const deserializeAws_json1_1DescribeDeliveryChannelsCommandError = async (output
|
|
|
2209
2113
|
...output,
|
|
2210
2114
|
body: await parseBody(output.body, context),
|
|
2211
2115
|
};
|
|
2212
|
-
let response;
|
|
2213
2116
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2214
2117
|
switch (errorCode) {
|
|
2215
2118
|
case "NoSuchDeliveryChannelException":
|
|
@@ -2217,14 +2120,12 @@ const deserializeAws_json1_1DescribeDeliveryChannelsCommandError = async (output
|
|
|
2217
2120
|
throw await deserializeAws_json1_1NoSuchDeliveryChannelExceptionResponse(parsedOutput, context);
|
|
2218
2121
|
default:
|
|
2219
2122
|
const parsedBody = parsedOutput.body;
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
$metadata,
|
|
2123
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2124
|
+
output,
|
|
2125
|
+
parsedBody,
|
|
2126
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
2127
|
+
errorCode,
|
|
2226
2128
|
});
|
|
2227
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2228
2129
|
}
|
|
2229
2130
|
};
|
|
2230
2131
|
const deserializeAws_json1_1DescribeDeliveryChannelStatusCommand = async (output, context) => {
|
|
@@ -2246,7 +2147,6 @@ const deserializeAws_json1_1DescribeDeliveryChannelStatusCommandError = async (o
|
|
|
2246
2147
|
...output,
|
|
2247
2148
|
body: await parseBody(output.body, context),
|
|
2248
2149
|
};
|
|
2249
|
-
let response;
|
|
2250
2150
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2251
2151
|
switch (errorCode) {
|
|
2252
2152
|
case "NoSuchDeliveryChannelException":
|
|
@@ -2254,14 +2154,12 @@ const deserializeAws_json1_1DescribeDeliveryChannelStatusCommandError = async (o
|
|
|
2254
2154
|
throw await deserializeAws_json1_1NoSuchDeliveryChannelExceptionResponse(parsedOutput, context);
|
|
2255
2155
|
default:
|
|
2256
2156
|
const parsedBody = parsedOutput.body;
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
$metadata,
|
|
2157
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2158
|
+
output,
|
|
2159
|
+
parsedBody,
|
|
2160
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
2161
|
+
errorCode,
|
|
2263
2162
|
});
|
|
2264
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2265
2163
|
}
|
|
2266
2164
|
};
|
|
2267
2165
|
const deserializeAws_json1_1DescribeOrganizationConfigRulesCommand = async (output, context) => {
|
|
@@ -2283,7 +2181,6 @@ const deserializeAws_json1_1DescribeOrganizationConfigRulesCommandError = async
|
|
|
2283
2181
|
...output,
|
|
2284
2182
|
body: await parseBody(output.body, context),
|
|
2285
2183
|
};
|
|
2286
|
-
let response;
|
|
2287
2184
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2288
2185
|
switch (errorCode) {
|
|
2289
2186
|
case "InvalidLimitException":
|
|
@@ -2300,14 +2197,12 @@ const deserializeAws_json1_1DescribeOrganizationConfigRulesCommandError = async
|
|
|
2300
2197
|
throw await deserializeAws_json1_1OrganizationAccessDeniedExceptionResponse(parsedOutput, context);
|
|
2301
2198
|
default:
|
|
2302
2199
|
const parsedBody = parsedOutput.body;
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
$metadata,
|
|
2200
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2201
|
+
output,
|
|
2202
|
+
parsedBody,
|
|
2203
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
2204
|
+
errorCode,
|
|
2309
2205
|
});
|
|
2310
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2311
2206
|
}
|
|
2312
2207
|
};
|
|
2313
2208
|
const deserializeAws_json1_1DescribeOrganizationConfigRuleStatusesCommand = async (output, context) => {
|
|
@@ -2329,7 +2224,6 @@ const deserializeAws_json1_1DescribeOrganizationConfigRuleStatusesCommandError =
|
|
|
2329
2224
|
...output,
|
|
2330
2225
|
body: await parseBody(output.body, context),
|
|
2331
2226
|
};
|
|
2332
|
-
let response;
|
|
2333
2227
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2334
2228
|
switch (errorCode) {
|
|
2335
2229
|
case "InvalidLimitException":
|
|
@@ -2346,14 +2240,12 @@ const deserializeAws_json1_1DescribeOrganizationConfigRuleStatusesCommandError =
|
|
|
2346
2240
|
throw await deserializeAws_json1_1OrganizationAccessDeniedExceptionResponse(parsedOutput, context);
|
|
2347
2241
|
default:
|
|
2348
2242
|
const parsedBody = parsedOutput.body;
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
$metadata,
|
|
2243
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2244
|
+
output,
|
|
2245
|
+
parsedBody,
|
|
2246
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
2247
|
+
errorCode,
|
|
2355
2248
|
});
|
|
2356
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2357
2249
|
}
|
|
2358
2250
|
};
|
|
2359
2251
|
const deserializeAws_json1_1DescribeOrganizationConformancePacksCommand = async (output, context) => {
|
|
@@ -2375,7 +2267,6 @@ const deserializeAws_json1_1DescribeOrganizationConformancePacksCommandError = a
|
|
|
2375
2267
|
...output,
|
|
2376
2268
|
body: await parseBody(output.body, context),
|
|
2377
2269
|
};
|
|
2378
|
-
let response;
|
|
2379
2270
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2380
2271
|
switch (errorCode) {
|
|
2381
2272
|
case "InvalidLimitException":
|
|
@@ -2392,14 +2283,12 @@ const deserializeAws_json1_1DescribeOrganizationConformancePacksCommandError = a
|
|
|
2392
2283
|
throw await deserializeAws_json1_1OrganizationAccessDeniedExceptionResponse(parsedOutput, context);
|
|
2393
2284
|
default:
|
|
2394
2285
|
const parsedBody = parsedOutput.body;
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
$metadata,
|
|
2286
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2287
|
+
output,
|
|
2288
|
+
parsedBody,
|
|
2289
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
2290
|
+
errorCode,
|
|
2401
2291
|
});
|
|
2402
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2403
2292
|
}
|
|
2404
2293
|
};
|
|
2405
2294
|
const deserializeAws_json1_1DescribeOrganizationConformancePackStatusesCommand = async (output, context) => {
|
|
@@ -2421,7 +2310,6 @@ const deserializeAws_json1_1DescribeOrganizationConformancePackStatusesCommandEr
|
|
|
2421
2310
|
...output,
|
|
2422
2311
|
body: await parseBody(output.body, context),
|
|
2423
2312
|
};
|
|
2424
|
-
let response;
|
|
2425
2313
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2426
2314
|
switch (errorCode) {
|
|
2427
2315
|
case "InvalidLimitException":
|
|
@@ -2438,14 +2326,12 @@ const deserializeAws_json1_1DescribeOrganizationConformancePackStatusesCommandEr
|
|
|
2438
2326
|
throw await deserializeAws_json1_1OrganizationAccessDeniedExceptionResponse(parsedOutput, context);
|
|
2439
2327
|
default:
|
|
2440
2328
|
const parsedBody = parsedOutput.body;
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
$metadata,
|
|
2329
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2330
|
+
output,
|
|
2331
|
+
parsedBody,
|
|
2332
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
2333
|
+
errorCode,
|
|
2447
2334
|
});
|
|
2448
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2449
2335
|
}
|
|
2450
2336
|
};
|
|
2451
2337
|
const deserializeAws_json1_1DescribePendingAggregationRequestsCommand = async (output, context) => {
|
|
@@ -2467,7 +2353,6 @@ const deserializeAws_json1_1DescribePendingAggregationRequestsCommandError = asy
|
|
|
2467
2353
|
...output,
|
|
2468
2354
|
body: await parseBody(output.body, context),
|
|
2469
2355
|
};
|
|
2470
|
-
let response;
|
|
2471
2356
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2472
2357
|
switch (errorCode) {
|
|
2473
2358
|
case "InvalidLimitException":
|
|
@@ -2481,14 +2366,12 @@ const deserializeAws_json1_1DescribePendingAggregationRequestsCommandError = asy
|
|
|
2481
2366
|
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
2482
2367
|
default:
|
|
2483
2368
|
const parsedBody = parsedOutput.body;
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
$metadata,
|
|
2369
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2370
|
+
output,
|
|
2371
|
+
parsedBody,
|
|
2372
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
2373
|
+
errorCode,
|
|
2490
2374
|
});
|
|
2491
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2492
2375
|
}
|
|
2493
2376
|
};
|
|
2494
2377
|
const deserializeAws_json1_1DescribeRemediationConfigurationsCommand = async (output, context) => {
|
|
@@ -2510,20 +2393,14 @@ const deserializeAws_json1_1DescribeRemediationConfigurationsCommandError = asyn
|
|
|
2510
2393
|
...output,
|
|
2511
2394
|
body: await parseBody(output.body, context),
|
|
2512
2395
|
};
|
|
2513
|
-
let response;
|
|
2514
2396
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
$fault: "client",
|
|
2523
|
-
$metadata,
|
|
2524
|
-
});
|
|
2525
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2526
|
-
}
|
|
2397
|
+
const parsedBody = parsedOutput.body;
|
|
2398
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2399
|
+
output,
|
|
2400
|
+
parsedBody,
|
|
2401
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
2402
|
+
errorCode,
|
|
2403
|
+
});
|
|
2527
2404
|
};
|
|
2528
2405
|
const deserializeAws_json1_1DescribeRemediationExceptionsCommand = async (output, context) => {
|
|
2529
2406
|
if (output.statusCode >= 300) {
|
|
@@ -2544,7 +2421,6 @@ const deserializeAws_json1_1DescribeRemediationExceptionsCommandError = async (o
|
|
|
2544
2421
|
...output,
|
|
2545
2422
|
body: await parseBody(output.body, context),
|
|
2546
2423
|
};
|
|
2547
|
-
let response;
|
|
2548
2424
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2549
2425
|
switch (errorCode) {
|
|
2550
2426
|
case "InvalidNextTokenException":
|
|
@@ -2555,14 +2431,12 @@ const deserializeAws_json1_1DescribeRemediationExceptionsCommandError = async (o
|
|
|
2555
2431
|
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
2556
2432
|
default:
|
|
2557
2433
|
const parsedBody = parsedOutput.body;
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
$metadata,
|
|
2434
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2435
|
+
output,
|
|
2436
|
+
parsedBody,
|
|
2437
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
2438
|
+
errorCode,
|
|
2564
2439
|
});
|
|
2565
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2566
2440
|
}
|
|
2567
2441
|
};
|
|
2568
2442
|
const deserializeAws_json1_1DescribeRemediationExecutionStatusCommand = async (output, context) => {
|
|
@@ -2584,7 +2458,6 @@ const deserializeAws_json1_1DescribeRemediationExecutionStatusCommandError = asy
|
|
|
2584
2458
|
...output,
|
|
2585
2459
|
body: await parseBody(output.body, context),
|
|
2586
2460
|
};
|
|
2587
|
-
let response;
|
|
2588
2461
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2589
2462
|
switch (errorCode) {
|
|
2590
2463
|
case "InvalidNextTokenException":
|
|
@@ -2598,14 +2471,12 @@ const deserializeAws_json1_1DescribeRemediationExecutionStatusCommandError = asy
|
|
|
2598
2471
|
throw await deserializeAws_json1_1NoSuchRemediationConfigurationExceptionResponse(parsedOutput, context);
|
|
2599
2472
|
default:
|
|
2600
2473
|
const parsedBody = parsedOutput.body;
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
$metadata,
|
|
2474
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2475
|
+
output,
|
|
2476
|
+
parsedBody,
|
|
2477
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
2478
|
+
errorCode,
|
|
2607
2479
|
});
|
|
2608
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2609
2480
|
}
|
|
2610
2481
|
};
|
|
2611
2482
|
const deserializeAws_json1_1DescribeRetentionConfigurationsCommand = async (output, context) => {
|
|
@@ -2627,7 +2498,6 @@ const deserializeAws_json1_1DescribeRetentionConfigurationsCommandError = async
|
|
|
2627
2498
|
...output,
|
|
2628
2499
|
body: await parseBody(output.body, context),
|
|
2629
2500
|
};
|
|
2630
|
-
let response;
|
|
2631
2501
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2632
2502
|
switch (errorCode) {
|
|
2633
2503
|
case "InvalidNextTokenException":
|
|
@@ -2641,14 +2511,12 @@ const deserializeAws_json1_1DescribeRetentionConfigurationsCommandError = async
|
|
|
2641
2511
|
throw await deserializeAws_json1_1NoSuchRetentionConfigurationExceptionResponse(parsedOutput, context);
|
|
2642
2512
|
default:
|
|
2643
2513
|
const parsedBody = parsedOutput.body;
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
$metadata,
|
|
2514
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2515
|
+
output,
|
|
2516
|
+
parsedBody,
|
|
2517
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
2518
|
+
errorCode,
|
|
2650
2519
|
});
|
|
2651
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2652
2520
|
}
|
|
2653
2521
|
};
|
|
2654
2522
|
const deserializeAws_json1_1GetAggregateComplianceDetailsByConfigRuleCommand = async (output, context) => {
|
|
@@ -2670,7 +2538,6 @@ const deserializeAws_json1_1GetAggregateComplianceDetailsByConfigRuleCommandErro
|
|
|
2670
2538
|
...output,
|
|
2671
2539
|
body: await parseBody(output.body, context),
|
|
2672
2540
|
};
|
|
2673
|
-
let response;
|
|
2674
2541
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2675
2542
|
switch (errorCode) {
|
|
2676
2543
|
case "InvalidLimitException":
|
|
@@ -2687,14 +2554,12 @@ const deserializeAws_json1_1GetAggregateComplianceDetailsByConfigRuleCommandErro
|
|
|
2687
2554
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2688
2555
|
default:
|
|
2689
2556
|
const parsedBody = parsedOutput.body;
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
$metadata,
|
|
2557
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2558
|
+
output,
|
|
2559
|
+
parsedBody,
|
|
2560
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
2561
|
+
errorCode,
|
|
2696
2562
|
});
|
|
2697
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2698
2563
|
}
|
|
2699
2564
|
};
|
|
2700
2565
|
const deserializeAws_json1_1GetAggregateConfigRuleComplianceSummaryCommand = async (output, context) => {
|
|
@@ -2716,7 +2581,6 @@ const deserializeAws_json1_1GetAggregateConfigRuleComplianceSummaryCommandError
|
|
|
2716
2581
|
...output,
|
|
2717
2582
|
body: await parseBody(output.body, context),
|
|
2718
2583
|
};
|
|
2719
|
-
let response;
|
|
2720
2584
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2721
2585
|
switch (errorCode) {
|
|
2722
2586
|
case "InvalidLimitException":
|
|
@@ -2733,14 +2597,12 @@ const deserializeAws_json1_1GetAggregateConfigRuleComplianceSummaryCommandError
|
|
|
2733
2597
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2734
2598
|
default:
|
|
2735
2599
|
const parsedBody = parsedOutput.body;
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
$metadata,
|
|
2600
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2601
|
+
output,
|
|
2602
|
+
parsedBody,
|
|
2603
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
2604
|
+
errorCode,
|
|
2742
2605
|
});
|
|
2743
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2744
2606
|
}
|
|
2745
2607
|
};
|
|
2746
2608
|
const deserializeAws_json1_1GetAggregateConformancePackComplianceSummaryCommand = async (output, context) => {
|
|
@@ -2762,7 +2624,6 @@ const deserializeAws_json1_1GetAggregateConformancePackComplianceSummaryCommandE
|
|
|
2762
2624
|
...output,
|
|
2763
2625
|
body: await parseBody(output.body, context),
|
|
2764
2626
|
};
|
|
2765
|
-
let response;
|
|
2766
2627
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2767
2628
|
switch (errorCode) {
|
|
2768
2629
|
case "InvalidLimitException":
|
|
@@ -2779,14 +2640,12 @@ const deserializeAws_json1_1GetAggregateConformancePackComplianceSummaryCommandE
|
|
|
2779
2640
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2780
2641
|
default:
|
|
2781
2642
|
const parsedBody = parsedOutput.body;
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
$metadata,
|
|
2643
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2644
|
+
output,
|
|
2645
|
+
parsedBody,
|
|
2646
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
2647
|
+
errorCode,
|
|
2788
2648
|
});
|
|
2789
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2790
2649
|
}
|
|
2791
2650
|
};
|
|
2792
2651
|
const deserializeAws_json1_1GetAggregateDiscoveredResourceCountsCommand = async (output, context) => {
|
|
@@ -2808,7 +2667,6 @@ const deserializeAws_json1_1GetAggregateDiscoveredResourceCountsCommandError = a
|
|
|
2808
2667
|
...output,
|
|
2809
2668
|
body: await parseBody(output.body, context),
|
|
2810
2669
|
};
|
|
2811
|
-
let response;
|
|
2812
2670
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2813
2671
|
switch (errorCode) {
|
|
2814
2672
|
case "InvalidLimitException":
|
|
@@ -2825,14 +2683,12 @@ const deserializeAws_json1_1GetAggregateDiscoveredResourceCountsCommandError = a
|
|
|
2825
2683
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2826
2684
|
default:
|
|
2827
2685
|
const parsedBody = parsedOutput.body;
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
$metadata,
|
|
2686
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2687
|
+
output,
|
|
2688
|
+
parsedBody,
|
|
2689
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
2690
|
+
errorCode,
|
|
2834
2691
|
});
|
|
2835
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2836
2692
|
}
|
|
2837
2693
|
};
|
|
2838
2694
|
const deserializeAws_json1_1GetAggregateResourceConfigCommand = async (output, context) => {
|
|
@@ -2854,7 +2710,6 @@ const deserializeAws_json1_1GetAggregateResourceConfigCommandError = async (outp
|
|
|
2854
2710
|
...output,
|
|
2855
2711
|
body: await parseBody(output.body, context),
|
|
2856
2712
|
};
|
|
2857
|
-
let response;
|
|
2858
2713
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2859
2714
|
switch (errorCode) {
|
|
2860
2715
|
case "NoSuchConfigurationAggregatorException":
|
|
@@ -2871,14 +2726,12 @@ const deserializeAws_json1_1GetAggregateResourceConfigCommandError = async (outp
|
|
|
2871
2726
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2872
2727
|
default:
|
|
2873
2728
|
const parsedBody = parsedOutput.body;
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
$metadata,
|
|
2729
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2730
|
+
output,
|
|
2731
|
+
parsedBody,
|
|
2732
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
2733
|
+
errorCode,
|
|
2880
2734
|
});
|
|
2881
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2882
2735
|
}
|
|
2883
2736
|
};
|
|
2884
2737
|
const deserializeAws_json1_1GetComplianceDetailsByConfigRuleCommand = async (output, context) => {
|
|
@@ -2900,7 +2753,6 @@ const deserializeAws_json1_1GetComplianceDetailsByConfigRuleCommandError = async
|
|
|
2900
2753
|
...output,
|
|
2901
2754
|
body: await parseBody(output.body, context),
|
|
2902
2755
|
};
|
|
2903
|
-
let response;
|
|
2904
2756
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2905
2757
|
switch (errorCode) {
|
|
2906
2758
|
case "InvalidNextTokenException":
|
|
@@ -2914,14 +2766,12 @@ const deserializeAws_json1_1GetComplianceDetailsByConfigRuleCommandError = async
|
|
|
2914
2766
|
throw await deserializeAws_json1_1NoSuchConfigRuleExceptionResponse(parsedOutput, context);
|
|
2915
2767
|
default:
|
|
2916
2768
|
const parsedBody = parsedOutput.body;
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
$metadata,
|
|
2769
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2770
|
+
output,
|
|
2771
|
+
parsedBody,
|
|
2772
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
2773
|
+
errorCode,
|
|
2923
2774
|
});
|
|
2924
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2925
2775
|
}
|
|
2926
2776
|
};
|
|
2927
2777
|
const deserializeAws_json1_1GetComplianceDetailsByResourceCommand = async (output, context) => {
|
|
@@ -2943,7 +2793,6 @@ const deserializeAws_json1_1GetComplianceDetailsByResourceCommandError = async (
|
|
|
2943
2793
|
...output,
|
|
2944
2794
|
body: await parseBody(output.body, context),
|
|
2945
2795
|
};
|
|
2946
|
-
let response;
|
|
2947
2796
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2948
2797
|
switch (errorCode) {
|
|
2949
2798
|
case "InvalidParameterValueException":
|
|
@@ -2951,14 +2800,12 @@ const deserializeAws_json1_1GetComplianceDetailsByResourceCommandError = async (
|
|
|
2951
2800
|
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
2952
2801
|
default:
|
|
2953
2802
|
const parsedBody = parsedOutput.body;
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
$metadata,
|
|
2803
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2804
|
+
output,
|
|
2805
|
+
parsedBody,
|
|
2806
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
2807
|
+
errorCode,
|
|
2960
2808
|
});
|
|
2961
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2962
2809
|
}
|
|
2963
2810
|
};
|
|
2964
2811
|
const deserializeAws_json1_1GetComplianceSummaryByConfigRuleCommand = async (output, context) => {
|
|
@@ -2980,20 +2827,14 @@ const deserializeAws_json1_1GetComplianceSummaryByConfigRuleCommandError = async
|
|
|
2980
2827
|
...output,
|
|
2981
2828
|
body: await parseBody(output.body, context),
|
|
2982
2829
|
};
|
|
2983
|
-
let response;
|
|
2984
2830
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
$fault: "client",
|
|
2993
|
-
$metadata,
|
|
2994
|
-
});
|
|
2995
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2996
|
-
}
|
|
2831
|
+
const parsedBody = parsedOutput.body;
|
|
2832
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2833
|
+
output,
|
|
2834
|
+
parsedBody,
|
|
2835
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
2836
|
+
errorCode,
|
|
2837
|
+
});
|
|
2997
2838
|
};
|
|
2998
2839
|
const deserializeAws_json1_1GetComplianceSummaryByResourceTypeCommand = async (output, context) => {
|
|
2999
2840
|
if (output.statusCode >= 300) {
|
|
@@ -3014,7 +2855,6 @@ const deserializeAws_json1_1GetComplianceSummaryByResourceTypeCommandError = asy
|
|
|
3014
2855
|
...output,
|
|
3015
2856
|
body: await parseBody(output.body, context),
|
|
3016
2857
|
};
|
|
3017
|
-
let response;
|
|
3018
2858
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3019
2859
|
switch (errorCode) {
|
|
3020
2860
|
case "InvalidParameterValueException":
|
|
@@ -3022,14 +2862,12 @@ const deserializeAws_json1_1GetComplianceSummaryByResourceTypeCommandError = asy
|
|
|
3022
2862
|
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
3023
2863
|
default:
|
|
3024
2864
|
const parsedBody = parsedOutput.body;
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
$metadata,
|
|
2865
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2866
|
+
output,
|
|
2867
|
+
parsedBody,
|
|
2868
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
2869
|
+
errorCode,
|
|
3031
2870
|
});
|
|
3032
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3033
2871
|
}
|
|
3034
2872
|
};
|
|
3035
2873
|
const deserializeAws_json1_1GetConformancePackComplianceDetailsCommand = async (output, context) => {
|
|
@@ -3051,7 +2889,6 @@ const deserializeAws_json1_1GetConformancePackComplianceDetailsCommandError = as
|
|
|
3051
2889
|
...output,
|
|
3052
2890
|
body: await parseBody(output.body, context),
|
|
3053
2891
|
};
|
|
3054
|
-
let response;
|
|
3055
2892
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3056
2893
|
switch (errorCode) {
|
|
3057
2894
|
case "InvalidLimitException":
|
|
@@ -3071,14 +2908,12 @@ const deserializeAws_json1_1GetConformancePackComplianceDetailsCommandError = as
|
|
|
3071
2908
|
throw await deserializeAws_json1_1NoSuchConformancePackExceptionResponse(parsedOutput, context);
|
|
3072
2909
|
default:
|
|
3073
2910
|
const parsedBody = parsedOutput.body;
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
$metadata,
|
|
2911
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2912
|
+
output,
|
|
2913
|
+
parsedBody,
|
|
2914
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
2915
|
+
errorCode,
|
|
3080
2916
|
});
|
|
3081
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3082
2917
|
}
|
|
3083
2918
|
};
|
|
3084
2919
|
const deserializeAws_json1_1GetConformancePackComplianceSummaryCommand = async (output, context) => {
|
|
@@ -3100,7 +2935,6 @@ const deserializeAws_json1_1GetConformancePackComplianceSummaryCommandError = as
|
|
|
3100
2935
|
...output,
|
|
3101
2936
|
body: await parseBody(output.body, context),
|
|
3102
2937
|
};
|
|
3103
|
-
let response;
|
|
3104
2938
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3105
2939
|
switch (errorCode) {
|
|
3106
2940
|
case "InvalidLimitException":
|
|
@@ -3114,14 +2948,12 @@ const deserializeAws_json1_1GetConformancePackComplianceSummaryCommandError = as
|
|
|
3114
2948
|
throw await deserializeAws_json1_1NoSuchConformancePackExceptionResponse(parsedOutput, context);
|
|
3115
2949
|
default:
|
|
3116
2950
|
const parsedBody = parsedOutput.body;
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
$metadata,
|
|
2951
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2952
|
+
output,
|
|
2953
|
+
parsedBody,
|
|
2954
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
2955
|
+
errorCode,
|
|
3123
2956
|
});
|
|
3124
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3125
2957
|
}
|
|
3126
2958
|
};
|
|
3127
2959
|
const deserializeAws_json1_1GetCustomRulePolicyCommand = async (output, context) => {
|
|
@@ -3143,7 +2975,6 @@ const deserializeAws_json1_1GetCustomRulePolicyCommandError = async (output, con
|
|
|
3143
2975
|
...output,
|
|
3144
2976
|
body: await parseBody(output.body, context),
|
|
3145
2977
|
};
|
|
3146
|
-
let response;
|
|
3147
2978
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3148
2979
|
switch (errorCode) {
|
|
3149
2980
|
case "NoSuchConfigRuleException":
|
|
@@ -3151,14 +2982,12 @@ const deserializeAws_json1_1GetCustomRulePolicyCommandError = async (output, con
|
|
|
3151
2982
|
throw await deserializeAws_json1_1NoSuchConfigRuleExceptionResponse(parsedOutput, context);
|
|
3152
2983
|
default:
|
|
3153
2984
|
const parsedBody = parsedOutput.body;
|
|
3154
|
-
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
$metadata,
|
|
2985
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2986
|
+
output,
|
|
2987
|
+
parsedBody,
|
|
2988
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
2989
|
+
errorCode,
|
|
3160
2990
|
});
|
|
3161
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3162
2991
|
}
|
|
3163
2992
|
};
|
|
3164
2993
|
const deserializeAws_json1_1GetDiscoveredResourceCountsCommand = async (output, context) => {
|
|
@@ -3180,7 +3009,6 @@ const deserializeAws_json1_1GetDiscoveredResourceCountsCommandError = async (out
|
|
|
3180
3009
|
...output,
|
|
3181
3010
|
body: await parseBody(output.body, context),
|
|
3182
3011
|
};
|
|
3183
|
-
let response;
|
|
3184
3012
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3185
3013
|
switch (errorCode) {
|
|
3186
3014
|
case "InvalidLimitException":
|
|
@@ -3194,14 +3022,12 @@ const deserializeAws_json1_1GetDiscoveredResourceCountsCommandError = async (out
|
|
|
3194
3022
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
3195
3023
|
default:
|
|
3196
3024
|
const parsedBody = parsedOutput.body;
|
|
3197
|
-
|
|
3198
|
-
|
|
3199
|
-
|
|
3200
|
-
|
|
3201
|
-
|
|
3202
|
-
$metadata,
|
|
3025
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3026
|
+
output,
|
|
3027
|
+
parsedBody,
|
|
3028
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
3029
|
+
errorCode,
|
|
3203
3030
|
});
|
|
3204
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3205
3031
|
}
|
|
3206
3032
|
};
|
|
3207
3033
|
const deserializeAws_json1_1GetOrganizationConfigRuleDetailedStatusCommand = async (output, context) => {
|
|
@@ -3223,7 +3049,6 @@ const deserializeAws_json1_1GetOrganizationConfigRuleDetailedStatusCommandError
|
|
|
3223
3049
|
...output,
|
|
3224
3050
|
body: await parseBody(output.body, context),
|
|
3225
3051
|
};
|
|
3226
|
-
let response;
|
|
3227
3052
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3228
3053
|
switch (errorCode) {
|
|
3229
3054
|
case "InvalidLimitException":
|
|
@@ -3240,14 +3065,12 @@ const deserializeAws_json1_1GetOrganizationConfigRuleDetailedStatusCommandError
|
|
|
3240
3065
|
throw await deserializeAws_json1_1OrganizationAccessDeniedExceptionResponse(parsedOutput, context);
|
|
3241
3066
|
default:
|
|
3242
3067
|
const parsedBody = parsedOutput.body;
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
$metadata,
|
|
3068
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3069
|
+
output,
|
|
3070
|
+
parsedBody,
|
|
3071
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
3072
|
+
errorCode,
|
|
3249
3073
|
});
|
|
3250
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3251
3074
|
}
|
|
3252
3075
|
};
|
|
3253
3076
|
const deserializeAws_json1_1GetOrganizationConformancePackDetailedStatusCommand = async (output, context) => {
|
|
@@ -3269,7 +3092,6 @@ const deserializeAws_json1_1GetOrganizationConformancePackDetailedStatusCommandE
|
|
|
3269
3092
|
...output,
|
|
3270
3093
|
body: await parseBody(output.body, context),
|
|
3271
3094
|
};
|
|
3272
|
-
let response;
|
|
3273
3095
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3274
3096
|
switch (errorCode) {
|
|
3275
3097
|
case "InvalidLimitException":
|
|
@@ -3286,14 +3108,12 @@ const deserializeAws_json1_1GetOrganizationConformancePackDetailedStatusCommandE
|
|
|
3286
3108
|
throw await deserializeAws_json1_1OrganizationAccessDeniedExceptionResponse(parsedOutput, context);
|
|
3287
3109
|
default:
|
|
3288
3110
|
const parsedBody = parsedOutput.body;
|
|
3289
|
-
|
|
3290
|
-
|
|
3291
|
-
|
|
3292
|
-
|
|
3293
|
-
|
|
3294
|
-
$metadata,
|
|
3111
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3112
|
+
output,
|
|
3113
|
+
parsedBody,
|
|
3114
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
3115
|
+
errorCode,
|
|
3295
3116
|
});
|
|
3296
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3297
3117
|
}
|
|
3298
3118
|
};
|
|
3299
3119
|
const deserializeAws_json1_1GetOrganizationCustomRulePolicyCommand = async (output, context) => {
|
|
@@ -3315,7 +3135,6 @@ const deserializeAws_json1_1GetOrganizationCustomRulePolicyCommandError = async
|
|
|
3315
3135
|
...output,
|
|
3316
3136
|
body: await parseBody(output.body, context),
|
|
3317
3137
|
};
|
|
3318
|
-
let response;
|
|
3319
3138
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3320
3139
|
switch (errorCode) {
|
|
3321
3140
|
case "NoSuchOrganizationConfigRuleException":
|
|
@@ -3326,14 +3145,12 @@ const deserializeAws_json1_1GetOrganizationCustomRulePolicyCommandError = async
|
|
|
3326
3145
|
throw await deserializeAws_json1_1OrganizationAccessDeniedExceptionResponse(parsedOutput, context);
|
|
3327
3146
|
default:
|
|
3328
3147
|
const parsedBody = parsedOutput.body;
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
|
|
3332
|
-
|
|
3333
|
-
|
|
3334
|
-
$metadata,
|
|
3148
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3149
|
+
output,
|
|
3150
|
+
parsedBody,
|
|
3151
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
3152
|
+
errorCode,
|
|
3335
3153
|
});
|
|
3336
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3337
3154
|
}
|
|
3338
3155
|
};
|
|
3339
3156
|
const deserializeAws_json1_1GetResourceConfigHistoryCommand = async (output, context) => {
|
|
@@ -3355,7 +3172,6 @@ const deserializeAws_json1_1GetResourceConfigHistoryCommandError = async (output
|
|
|
3355
3172
|
...output,
|
|
3356
3173
|
body: await parseBody(output.body, context),
|
|
3357
3174
|
};
|
|
3358
|
-
let response;
|
|
3359
3175
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3360
3176
|
switch (errorCode) {
|
|
3361
3177
|
case "InvalidLimitException":
|
|
@@ -3378,14 +3194,12 @@ const deserializeAws_json1_1GetResourceConfigHistoryCommandError = async (output
|
|
|
3378
3194
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
3379
3195
|
default:
|
|
3380
3196
|
const parsedBody = parsedOutput.body;
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
$metadata,
|
|
3197
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3198
|
+
output,
|
|
3199
|
+
parsedBody,
|
|
3200
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
3201
|
+
errorCode,
|
|
3387
3202
|
});
|
|
3388
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3389
3203
|
}
|
|
3390
3204
|
};
|
|
3391
3205
|
const deserializeAws_json1_1GetStoredQueryCommand = async (output, context) => {
|
|
@@ -3407,7 +3221,6 @@ const deserializeAws_json1_1GetStoredQueryCommandError = async (output, context)
|
|
|
3407
3221
|
...output,
|
|
3408
3222
|
body: await parseBody(output.body, context),
|
|
3409
3223
|
};
|
|
3410
|
-
let response;
|
|
3411
3224
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3412
3225
|
switch (errorCode) {
|
|
3413
3226
|
case "ResourceNotFoundException":
|
|
@@ -3418,14 +3231,12 @@ const deserializeAws_json1_1GetStoredQueryCommandError = async (output, context)
|
|
|
3418
3231
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
3419
3232
|
default:
|
|
3420
3233
|
const parsedBody = parsedOutput.body;
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
$metadata,
|
|
3234
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3235
|
+
output,
|
|
3236
|
+
parsedBody,
|
|
3237
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
3238
|
+
errorCode,
|
|
3427
3239
|
});
|
|
3428
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3429
3240
|
}
|
|
3430
3241
|
};
|
|
3431
3242
|
const deserializeAws_json1_1ListAggregateDiscoveredResourcesCommand = async (output, context) => {
|
|
@@ -3447,7 +3258,6 @@ const deserializeAws_json1_1ListAggregateDiscoveredResourcesCommandError = async
|
|
|
3447
3258
|
...output,
|
|
3448
3259
|
body: await parseBody(output.body, context),
|
|
3449
3260
|
};
|
|
3450
|
-
let response;
|
|
3451
3261
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3452
3262
|
switch (errorCode) {
|
|
3453
3263
|
case "InvalidLimitException":
|
|
@@ -3464,14 +3274,12 @@ const deserializeAws_json1_1ListAggregateDiscoveredResourcesCommandError = async
|
|
|
3464
3274
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
3465
3275
|
default:
|
|
3466
3276
|
const parsedBody = parsedOutput.body;
|
|
3467
|
-
|
|
3468
|
-
|
|
3469
|
-
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
$metadata,
|
|
3277
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3278
|
+
output,
|
|
3279
|
+
parsedBody,
|
|
3280
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
3281
|
+
errorCode,
|
|
3473
3282
|
});
|
|
3474
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3475
3283
|
}
|
|
3476
3284
|
};
|
|
3477
3285
|
const deserializeAws_json1_1ListConformancePackComplianceScoresCommand = async (output, context) => {
|
|
@@ -3493,7 +3301,6 @@ const deserializeAws_json1_1ListConformancePackComplianceScoresCommandError = as
|
|
|
3493
3301
|
...output,
|
|
3494
3302
|
body: await parseBody(output.body, context),
|
|
3495
3303
|
};
|
|
3496
|
-
let response;
|
|
3497
3304
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3498
3305
|
switch (errorCode) {
|
|
3499
3306
|
case "InvalidLimitException":
|
|
@@ -3507,14 +3314,12 @@ const deserializeAws_json1_1ListConformancePackComplianceScoresCommandError = as
|
|
|
3507
3314
|
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
3508
3315
|
default:
|
|
3509
3316
|
const parsedBody = parsedOutput.body;
|
|
3510
|
-
|
|
3511
|
-
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
|
|
3515
|
-
$metadata,
|
|
3317
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3318
|
+
output,
|
|
3319
|
+
parsedBody,
|
|
3320
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
3321
|
+
errorCode,
|
|
3516
3322
|
});
|
|
3517
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3518
3323
|
}
|
|
3519
3324
|
};
|
|
3520
3325
|
const deserializeAws_json1_1ListDiscoveredResourcesCommand = async (output, context) => {
|
|
@@ -3536,7 +3341,6 @@ const deserializeAws_json1_1ListDiscoveredResourcesCommandError = async (output,
|
|
|
3536
3341
|
...output,
|
|
3537
3342
|
body: await parseBody(output.body, context),
|
|
3538
3343
|
};
|
|
3539
|
-
let response;
|
|
3540
3344
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3541
3345
|
switch (errorCode) {
|
|
3542
3346
|
case "InvalidLimitException":
|
|
@@ -3553,14 +3357,12 @@ const deserializeAws_json1_1ListDiscoveredResourcesCommandError = async (output,
|
|
|
3553
3357
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
3554
3358
|
default:
|
|
3555
3359
|
const parsedBody = parsedOutput.body;
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
|
|
3559
|
-
|
|
3560
|
-
|
|
3561
|
-
$metadata,
|
|
3360
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3361
|
+
output,
|
|
3362
|
+
parsedBody,
|
|
3363
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
3364
|
+
errorCode,
|
|
3562
3365
|
});
|
|
3563
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3564
3366
|
}
|
|
3565
3367
|
};
|
|
3566
3368
|
const deserializeAws_json1_1ListStoredQueriesCommand = async (output, context) => {
|
|
@@ -3582,7 +3384,6 @@ const deserializeAws_json1_1ListStoredQueriesCommandError = async (output, conte
|
|
|
3582
3384
|
...output,
|
|
3583
3385
|
body: await parseBody(output.body, context),
|
|
3584
3386
|
};
|
|
3585
|
-
let response;
|
|
3586
3387
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3587
3388
|
switch (errorCode) {
|
|
3588
3389
|
case "InvalidNextTokenException":
|
|
@@ -3593,14 +3394,12 @@ const deserializeAws_json1_1ListStoredQueriesCommandError = async (output, conte
|
|
|
3593
3394
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
3594
3395
|
default:
|
|
3595
3396
|
const parsedBody = parsedOutput.body;
|
|
3596
|
-
|
|
3597
|
-
|
|
3598
|
-
|
|
3599
|
-
|
|
3600
|
-
|
|
3601
|
-
$metadata,
|
|
3397
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3398
|
+
output,
|
|
3399
|
+
parsedBody,
|
|
3400
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
3401
|
+
errorCode,
|
|
3602
3402
|
});
|
|
3603
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3604
3403
|
}
|
|
3605
3404
|
};
|
|
3606
3405
|
const deserializeAws_json1_1ListTagsForResourceCommand = async (output, context) => {
|
|
@@ -3622,7 +3421,6 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
3622
3421
|
...output,
|
|
3623
3422
|
body: await parseBody(output.body, context),
|
|
3624
3423
|
};
|
|
3625
|
-
let response;
|
|
3626
3424
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3627
3425
|
switch (errorCode) {
|
|
3628
3426
|
case "InvalidLimitException":
|
|
@@ -3639,14 +3437,12 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
3639
3437
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
3640
3438
|
default:
|
|
3641
3439
|
const parsedBody = parsedOutput.body;
|
|
3642
|
-
|
|
3643
|
-
|
|
3644
|
-
|
|
3645
|
-
|
|
3646
|
-
|
|
3647
|
-
$metadata,
|
|
3440
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3441
|
+
output,
|
|
3442
|
+
parsedBody,
|
|
3443
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
3444
|
+
errorCode,
|
|
3648
3445
|
});
|
|
3649
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3650
3446
|
}
|
|
3651
3447
|
};
|
|
3652
3448
|
const deserializeAws_json1_1PutAggregationAuthorizationCommand = async (output, context) => {
|
|
@@ -3668,7 +3464,6 @@ const deserializeAws_json1_1PutAggregationAuthorizationCommandError = async (out
|
|
|
3668
3464
|
...output,
|
|
3669
3465
|
body: await parseBody(output.body, context),
|
|
3670
3466
|
};
|
|
3671
|
-
let response;
|
|
3672
3467
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3673
3468
|
switch (errorCode) {
|
|
3674
3469
|
case "InvalidParameterValueException":
|
|
@@ -3676,14 +3471,12 @@ const deserializeAws_json1_1PutAggregationAuthorizationCommandError = async (out
|
|
|
3676
3471
|
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
3677
3472
|
default:
|
|
3678
3473
|
const parsedBody = parsedOutput.body;
|
|
3679
|
-
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
|
|
3684
|
-
$metadata,
|
|
3474
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3475
|
+
output,
|
|
3476
|
+
parsedBody,
|
|
3477
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
3478
|
+
errorCode,
|
|
3685
3479
|
});
|
|
3686
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3687
3480
|
}
|
|
3688
3481
|
};
|
|
3689
3482
|
const deserializeAws_json1_1PutConfigRuleCommand = async (output, context) => {
|
|
@@ -3702,7 +3495,6 @@ const deserializeAws_json1_1PutConfigRuleCommandError = async (output, context)
|
|
|
3702
3495
|
...output,
|
|
3703
3496
|
body: await parseBody(output.body, context),
|
|
3704
3497
|
};
|
|
3705
|
-
let response;
|
|
3706
3498
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3707
3499
|
switch (errorCode) {
|
|
3708
3500
|
case "InsufficientPermissionsException":
|
|
@@ -3722,14 +3514,12 @@ const deserializeAws_json1_1PutConfigRuleCommandError = async (output, context)
|
|
|
3722
3514
|
throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
3723
3515
|
default:
|
|
3724
3516
|
const parsedBody = parsedOutput.body;
|
|
3725
|
-
|
|
3726
|
-
|
|
3727
|
-
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
$metadata,
|
|
3517
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3518
|
+
output,
|
|
3519
|
+
parsedBody,
|
|
3520
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
3521
|
+
errorCode,
|
|
3731
3522
|
});
|
|
3732
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3733
3523
|
}
|
|
3734
3524
|
};
|
|
3735
3525
|
const deserializeAws_json1_1PutConfigurationAggregatorCommand = async (output, context) => {
|
|
@@ -3751,7 +3541,6 @@ const deserializeAws_json1_1PutConfigurationAggregatorCommandError = async (outp
|
|
|
3751
3541
|
...output,
|
|
3752
3542
|
body: await parseBody(output.body, context),
|
|
3753
3543
|
};
|
|
3754
|
-
let response;
|
|
3755
3544
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3756
3545
|
switch (errorCode) {
|
|
3757
3546
|
case "InvalidParameterValueException":
|
|
@@ -3774,14 +3563,12 @@ const deserializeAws_json1_1PutConfigurationAggregatorCommandError = async (outp
|
|
|
3774
3563
|
throw await deserializeAws_json1_1OrganizationAllFeaturesNotEnabledExceptionResponse(parsedOutput, context);
|
|
3775
3564
|
default:
|
|
3776
3565
|
const parsedBody = parsedOutput.body;
|
|
3777
|
-
|
|
3778
|
-
|
|
3779
|
-
|
|
3780
|
-
|
|
3781
|
-
|
|
3782
|
-
$metadata,
|
|
3566
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3567
|
+
output,
|
|
3568
|
+
parsedBody,
|
|
3569
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
3570
|
+
errorCode,
|
|
3783
3571
|
});
|
|
3784
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3785
3572
|
}
|
|
3786
3573
|
};
|
|
3787
3574
|
const deserializeAws_json1_1PutConfigurationRecorderCommand = async (output, context) => {
|
|
@@ -3800,7 +3587,6 @@ const deserializeAws_json1_1PutConfigurationRecorderCommandError = async (output
|
|
|
3800
3587
|
...output,
|
|
3801
3588
|
body: await parseBody(output.body, context),
|
|
3802
3589
|
};
|
|
3803
|
-
let response;
|
|
3804
3590
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3805
3591
|
switch (errorCode) {
|
|
3806
3592
|
case "InvalidConfigurationRecorderNameException":
|
|
@@ -3817,14 +3603,12 @@ const deserializeAws_json1_1PutConfigurationRecorderCommandError = async (output
|
|
|
3817
3603
|
throw await deserializeAws_json1_1MaxNumberOfConfigurationRecordersExceededExceptionResponse(parsedOutput, context);
|
|
3818
3604
|
default:
|
|
3819
3605
|
const parsedBody = parsedOutput.body;
|
|
3820
|
-
|
|
3821
|
-
|
|
3822
|
-
|
|
3823
|
-
|
|
3824
|
-
|
|
3825
|
-
$metadata,
|
|
3606
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3607
|
+
output,
|
|
3608
|
+
parsedBody,
|
|
3609
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
3610
|
+
errorCode,
|
|
3826
3611
|
});
|
|
3827
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3828
3612
|
}
|
|
3829
3613
|
};
|
|
3830
3614
|
const deserializeAws_json1_1PutConformancePackCommand = async (output, context) => {
|
|
@@ -3846,7 +3630,6 @@ const deserializeAws_json1_1PutConformancePackCommandError = async (output, cont
|
|
|
3846
3630
|
...output,
|
|
3847
3631
|
body: await parseBody(output.body, context),
|
|
3848
3632
|
};
|
|
3849
|
-
let response;
|
|
3850
3633
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3851
3634
|
switch (errorCode) {
|
|
3852
3635
|
case "ConformancePackTemplateValidationException":
|
|
@@ -3866,14 +3649,12 @@ const deserializeAws_json1_1PutConformancePackCommandError = async (output, cont
|
|
|
3866
3649
|
throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
3867
3650
|
default:
|
|
3868
3651
|
const parsedBody = parsedOutput.body;
|
|
3869
|
-
|
|
3870
|
-
|
|
3871
|
-
|
|
3872
|
-
|
|
3873
|
-
|
|
3874
|
-
$metadata,
|
|
3652
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3653
|
+
output,
|
|
3654
|
+
parsedBody,
|
|
3655
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
3656
|
+
errorCode,
|
|
3875
3657
|
});
|
|
3876
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3877
3658
|
}
|
|
3878
3659
|
};
|
|
3879
3660
|
const deserializeAws_json1_1PutDeliveryChannelCommand = async (output, context) => {
|
|
@@ -3892,7 +3673,6 @@ const deserializeAws_json1_1PutDeliveryChannelCommandError = async (output, cont
|
|
|
3892
3673
|
...output,
|
|
3893
3674
|
body: await parseBody(output.body, context),
|
|
3894
3675
|
};
|
|
3895
|
-
let response;
|
|
3896
3676
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3897
3677
|
switch (errorCode) {
|
|
3898
3678
|
case "InsufficientDeliveryPolicyException":
|
|
@@ -3921,14 +3701,12 @@ const deserializeAws_json1_1PutDeliveryChannelCommandError = async (output, cont
|
|
|
3921
3701
|
throw await deserializeAws_json1_1NoSuchBucketExceptionResponse(parsedOutput, context);
|
|
3922
3702
|
default:
|
|
3923
3703
|
const parsedBody = parsedOutput.body;
|
|
3924
|
-
|
|
3925
|
-
|
|
3926
|
-
|
|
3927
|
-
|
|
3928
|
-
|
|
3929
|
-
$metadata,
|
|
3704
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3705
|
+
output,
|
|
3706
|
+
parsedBody,
|
|
3707
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
3708
|
+
errorCode,
|
|
3930
3709
|
});
|
|
3931
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3932
3710
|
}
|
|
3933
3711
|
};
|
|
3934
3712
|
const deserializeAws_json1_1PutEvaluationsCommand = async (output, context) => {
|
|
@@ -3950,7 +3728,6 @@ const deserializeAws_json1_1PutEvaluationsCommandError = async (output, context)
|
|
|
3950
3728
|
...output,
|
|
3951
3729
|
body: await parseBody(output.body, context),
|
|
3952
3730
|
};
|
|
3953
|
-
let response;
|
|
3954
3731
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3955
3732
|
switch (errorCode) {
|
|
3956
3733
|
case "InvalidParameterValueException":
|
|
@@ -3964,14 +3741,12 @@ const deserializeAws_json1_1PutEvaluationsCommandError = async (output, context)
|
|
|
3964
3741
|
throw await deserializeAws_json1_1NoSuchConfigRuleExceptionResponse(parsedOutput, context);
|
|
3965
3742
|
default:
|
|
3966
3743
|
const parsedBody = parsedOutput.body;
|
|
3967
|
-
|
|
3968
|
-
|
|
3969
|
-
|
|
3970
|
-
|
|
3971
|
-
|
|
3972
|
-
$metadata,
|
|
3744
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3745
|
+
output,
|
|
3746
|
+
parsedBody,
|
|
3747
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
3748
|
+
errorCode,
|
|
3973
3749
|
});
|
|
3974
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3975
3750
|
}
|
|
3976
3751
|
};
|
|
3977
3752
|
const deserializeAws_json1_1PutExternalEvaluationCommand = async (output, context) => {
|
|
@@ -3993,7 +3768,6 @@ const deserializeAws_json1_1PutExternalEvaluationCommandError = async (output, c
|
|
|
3993
3768
|
...output,
|
|
3994
3769
|
body: await parseBody(output.body, context),
|
|
3995
3770
|
};
|
|
3996
|
-
let response;
|
|
3997
3771
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3998
3772
|
switch (errorCode) {
|
|
3999
3773
|
case "InvalidParameterValueException":
|
|
@@ -4004,14 +3778,12 @@ const deserializeAws_json1_1PutExternalEvaluationCommandError = async (output, c
|
|
|
4004
3778
|
throw await deserializeAws_json1_1NoSuchConfigRuleExceptionResponse(parsedOutput, context);
|
|
4005
3779
|
default:
|
|
4006
3780
|
const parsedBody = parsedOutput.body;
|
|
4007
|
-
|
|
4008
|
-
|
|
4009
|
-
|
|
4010
|
-
|
|
4011
|
-
|
|
4012
|
-
$metadata,
|
|
3781
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3782
|
+
output,
|
|
3783
|
+
parsedBody,
|
|
3784
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
3785
|
+
errorCode,
|
|
4013
3786
|
});
|
|
4014
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4015
3787
|
}
|
|
4016
3788
|
};
|
|
4017
3789
|
const deserializeAws_json1_1PutOrganizationConfigRuleCommand = async (output, context) => {
|
|
@@ -4033,7 +3805,6 @@ const deserializeAws_json1_1PutOrganizationConfigRuleCommandError = async (outpu
|
|
|
4033
3805
|
...output,
|
|
4034
3806
|
body: await parseBody(output.body, context),
|
|
4035
3807
|
};
|
|
4036
|
-
let response;
|
|
4037
3808
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4038
3809
|
switch (errorCode) {
|
|
4039
3810
|
case "InsufficientPermissionsException":
|
|
@@ -4062,14 +3833,12 @@ const deserializeAws_json1_1PutOrganizationConfigRuleCommandError = async (outpu
|
|
|
4062
3833
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
4063
3834
|
default:
|
|
4064
3835
|
const parsedBody = parsedOutput.body;
|
|
4065
|
-
|
|
4066
|
-
|
|
4067
|
-
|
|
4068
|
-
|
|
4069
|
-
|
|
4070
|
-
$metadata,
|
|
3836
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3837
|
+
output,
|
|
3838
|
+
parsedBody,
|
|
3839
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
3840
|
+
errorCode,
|
|
4071
3841
|
});
|
|
4072
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4073
3842
|
}
|
|
4074
3843
|
};
|
|
4075
3844
|
const deserializeAws_json1_1PutOrganizationConformancePackCommand = async (output, context) => {
|
|
@@ -4091,7 +3860,6 @@ const deserializeAws_json1_1PutOrganizationConformancePackCommandError = async (
|
|
|
4091
3860
|
...output,
|
|
4092
3861
|
body: await parseBody(output.body, context),
|
|
4093
3862
|
};
|
|
4094
|
-
let response;
|
|
4095
3863
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4096
3864
|
switch (errorCode) {
|
|
4097
3865
|
case "InsufficientPermissionsException":
|
|
@@ -4120,14 +3888,12 @@ const deserializeAws_json1_1PutOrganizationConformancePackCommandError = async (
|
|
|
4120
3888
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
4121
3889
|
default:
|
|
4122
3890
|
const parsedBody = parsedOutput.body;
|
|
4123
|
-
|
|
4124
|
-
|
|
4125
|
-
|
|
4126
|
-
|
|
4127
|
-
|
|
4128
|
-
$metadata,
|
|
3891
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3892
|
+
output,
|
|
3893
|
+
parsedBody,
|
|
3894
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
3895
|
+
errorCode,
|
|
4129
3896
|
});
|
|
4130
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4131
3897
|
}
|
|
4132
3898
|
};
|
|
4133
3899
|
const deserializeAws_json1_1PutRemediationConfigurationsCommand = async (output, context) => {
|
|
@@ -4149,7 +3915,6 @@ const deserializeAws_json1_1PutRemediationConfigurationsCommandError = async (ou
|
|
|
4149
3915
|
...output,
|
|
4150
3916
|
body: await parseBody(output.body, context),
|
|
4151
3917
|
};
|
|
4152
|
-
let response;
|
|
4153
3918
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4154
3919
|
switch (errorCode) {
|
|
4155
3920
|
case "InsufficientPermissionsException":
|
|
@@ -4160,14 +3925,12 @@ const deserializeAws_json1_1PutRemediationConfigurationsCommandError = async (ou
|
|
|
4160
3925
|
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
4161
3926
|
default:
|
|
4162
3927
|
const parsedBody = parsedOutput.body;
|
|
4163
|
-
|
|
4164
|
-
|
|
4165
|
-
|
|
4166
|
-
|
|
4167
|
-
|
|
4168
|
-
$metadata,
|
|
3928
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3929
|
+
output,
|
|
3930
|
+
parsedBody,
|
|
3931
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
3932
|
+
errorCode,
|
|
4169
3933
|
});
|
|
4170
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4171
3934
|
}
|
|
4172
3935
|
};
|
|
4173
3936
|
const deserializeAws_json1_1PutRemediationExceptionsCommand = async (output, context) => {
|
|
@@ -4189,7 +3952,6 @@ const deserializeAws_json1_1PutRemediationExceptionsCommandError = async (output
|
|
|
4189
3952
|
...output,
|
|
4190
3953
|
body: await parseBody(output.body, context),
|
|
4191
3954
|
};
|
|
4192
|
-
let response;
|
|
4193
3955
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4194
3956
|
switch (errorCode) {
|
|
4195
3957
|
case "InsufficientPermissionsException":
|
|
@@ -4200,14 +3962,12 @@ const deserializeAws_json1_1PutRemediationExceptionsCommandError = async (output
|
|
|
4200
3962
|
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
4201
3963
|
default:
|
|
4202
3964
|
const parsedBody = parsedOutput.body;
|
|
4203
|
-
|
|
4204
|
-
|
|
4205
|
-
|
|
4206
|
-
|
|
4207
|
-
|
|
4208
|
-
$metadata,
|
|
3965
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3966
|
+
output,
|
|
3967
|
+
parsedBody,
|
|
3968
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
3969
|
+
errorCode,
|
|
4209
3970
|
});
|
|
4210
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4211
3971
|
}
|
|
4212
3972
|
};
|
|
4213
3973
|
const deserializeAws_json1_1PutResourceConfigCommand = async (output, context) => {
|
|
@@ -4226,7 +3986,6 @@ const deserializeAws_json1_1PutResourceConfigCommandError = async (output, conte
|
|
|
4226
3986
|
...output,
|
|
4227
3987
|
body: await parseBody(output.body, context),
|
|
4228
3988
|
};
|
|
4229
|
-
let response;
|
|
4230
3989
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4231
3990
|
switch (errorCode) {
|
|
4232
3991
|
case "InsufficientPermissionsException":
|
|
@@ -4243,14 +4002,12 @@ const deserializeAws_json1_1PutResourceConfigCommandError = async (output, conte
|
|
|
4243
4002
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
4244
4003
|
default:
|
|
4245
4004
|
const parsedBody = parsedOutput.body;
|
|
4246
|
-
|
|
4247
|
-
|
|
4248
|
-
|
|
4249
|
-
|
|
4250
|
-
|
|
4251
|
-
$metadata,
|
|
4005
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4006
|
+
output,
|
|
4007
|
+
parsedBody,
|
|
4008
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
4009
|
+
errorCode,
|
|
4252
4010
|
});
|
|
4253
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4254
4011
|
}
|
|
4255
4012
|
};
|
|
4256
4013
|
const deserializeAws_json1_1PutRetentionConfigurationCommand = async (output, context) => {
|
|
@@ -4272,7 +4029,6 @@ const deserializeAws_json1_1PutRetentionConfigurationCommandError = async (outpu
|
|
|
4272
4029
|
...output,
|
|
4273
4030
|
body: await parseBody(output.body, context),
|
|
4274
4031
|
};
|
|
4275
|
-
let response;
|
|
4276
4032
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4277
4033
|
switch (errorCode) {
|
|
4278
4034
|
case "InvalidParameterValueException":
|
|
@@ -4283,14 +4039,12 @@ const deserializeAws_json1_1PutRetentionConfigurationCommandError = async (outpu
|
|
|
4283
4039
|
throw await deserializeAws_json1_1MaxNumberOfRetentionConfigurationsExceededExceptionResponse(parsedOutput, context);
|
|
4284
4040
|
default:
|
|
4285
4041
|
const parsedBody = parsedOutput.body;
|
|
4286
|
-
|
|
4287
|
-
|
|
4288
|
-
|
|
4289
|
-
|
|
4290
|
-
|
|
4291
|
-
$metadata,
|
|
4042
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4043
|
+
output,
|
|
4044
|
+
parsedBody,
|
|
4045
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
4046
|
+
errorCode,
|
|
4292
4047
|
});
|
|
4293
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4294
4048
|
}
|
|
4295
4049
|
};
|
|
4296
4050
|
const deserializeAws_json1_1PutStoredQueryCommand = async (output, context) => {
|
|
@@ -4312,7 +4066,6 @@ const deserializeAws_json1_1PutStoredQueryCommandError = async (output, context)
|
|
|
4312
4066
|
...output,
|
|
4313
4067
|
body: await parseBody(output.body, context),
|
|
4314
4068
|
};
|
|
4315
|
-
let response;
|
|
4316
4069
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4317
4070
|
switch (errorCode) {
|
|
4318
4071
|
case "ResourceConcurrentModificationException":
|
|
@@ -4326,14 +4079,12 @@ const deserializeAws_json1_1PutStoredQueryCommandError = async (output, context)
|
|
|
4326
4079
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
4327
4080
|
default:
|
|
4328
4081
|
const parsedBody = parsedOutput.body;
|
|
4329
|
-
|
|
4330
|
-
|
|
4331
|
-
|
|
4332
|
-
|
|
4333
|
-
|
|
4334
|
-
$metadata,
|
|
4082
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4083
|
+
output,
|
|
4084
|
+
parsedBody,
|
|
4085
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
4086
|
+
errorCode,
|
|
4335
4087
|
});
|
|
4336
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4337
4088
|
}
|
|
4338
4089
|
};
|
|
4339
4090
|
const deserializeAws_json1_1SelectAggregateResourceConfigCommand = async (output, context) => {
|
|
@@ -4355,7 +4106,6 @@ const deserializeAws_json1_1SelectAggregateResourceConfigCommandError = async (o
|
|
|
4355
4106
|
...output,
|
|
4356
4107
|
body: await parseBody(output.body, context),
|
|
4357
4108
|
};
|
|
4358
|
-
let response;
|
|
4359
4109
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4360
4110
|
switch (errorCode) {
|
|
4361
4111
|
case "InvalidExpressionException":
|
|
@@ -4372,14 +4122,12 @@ const deserializeAws_json1_1SelectAggregateResourceConfigCommandError = async (o
|
|
|
4372
4122
|
throw await deserializeAws_json1_1NoSuchConfigurationAggregatorExceptionResponse(parsedOutput, context);
|
|
4373
4123
|
default:
|
|
4374
4124
|
const parsedBody = parsedOutput.body;
|
|
4375
|
-
|
|
4376
|
-
|
|
4377
|
-
|
|
4378
|
-
|
|
4379
|
-
|
|
4380
|
-
$metadata,
|
|
4125
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4126
|
+
output,
|
|
4127
|
+
parsedBody,
|
|
4128
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
4129
|
+
errorCode,
|
|
4381
4130
|
});
|
|
4382
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4383
4131
|
}
|
|
4384
4132
|
};
|
|
4385
4133
|
const deserializeAws_json1_1SelectResourceConfigCommand = async (output, context) => {
|
|
@@ -4401,7 +4149,6 @@ const deserializeAws_json1_1SelectResourceConfigCommandError = async (output, co
|
|
|
4401
4149
|
...output,
|
|
4402
4150
|
body: await parseBody(output.body, context),
|
|
4403
4151
|
};
|
|
4404
|
-
let response;
|
|
4405
4152
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4406
4153
|
switch (errorCode) {
|
|
4407
4154
|
case "InvalidExpressionException":
|
|
@@ -4415,14 +4162,12 @@ const deserializeAws_json1_1SelectResourceConfigCommandError = async (output, co
|
|
|
4415
4162
|
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
4416
4163
|
default:
|
|
4417
4164
|
const parsedBody = parsedOutput.body;
|
|
4418
|
-
|
|
4419
|
-
|
|
4420
|
-
|
|
4421
|
-
|
|
4422
|
-
|
|
4423
|
-
$metadata,
|
|
4165
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4166
|
+
output,
|
|
4167
|
+
parsedBody,
|
|
4168
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
4169
|
+
errorCode,
|
|
4424
4170
|
});
|
|
4425
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4426
4171
|
}
|
|
4427
4172
|
};
|
|
4428
4173
|
const deserializeAws_json1_1StartConfigRulesEvaluationCommand = async (output, context) => {
|
|
@@ -4444,7 +4189,6 @@ const deserializeAws_json1_1StartConfigRulesEvaluationCommandError = async (outp
|
|
|
4444
4189
|
...output,
|
|
4445
4190
|
body: await parseBody(output.body, context),
|
|
4446
4191
|
};
|
|
4447
|
-
let response;
|
|
4448
4192
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4449
4193
|
switch (errorCode) {
|
|
4450
4194
|
case "InvalidParameterValueException":
|
|
@@ -4461,14 +4205,12 @@ const deserializeAws_json1_1StartConfigRulesEvaluationCommandError = async (outp
|
|
|
4461
4205
|
throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
4462
4206
|
default:
|
|
4463
4207
|
const parsedBody = parsedOutput.body;
|
|
4464
|
-
|
|
4465
|
-
|
|
4466
|
-
|
|
4467
|
-
|
|
4468
|
-
|
|
4469
|
-
$metadata,
|
|
4208
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4209
|
+
output,
|
|
4210
|
+
parsedBody,
|
|
4211
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
4212
|
+
errorCode,
|
|
4470
4213
|
});
|
|
4471
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4472
4214
|
}
|
|
4473
4215
|
};
|
|
4474
4216
|
const deserializeAws_json1_1StartConfigurationRecorderCommand = async (output, context) => {
|
|
@@ -4487,7 +4229,6 @@ const deserializeAws_json1_1StartConfigurationRecorderCommandError = async (outp
|
|
|
4487
4229
|
...output,
|
|
4488
4230
|
body: await parseBody(output.body, context),
|
|
4489
4231
|
};
|
|
4490
|
-
let response;
|
|
4491
4232
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4492
4233
|
switch (errorCode) {
|
|
4493
4234
|
case "NoAvailableDeliveryChannelException":
|
|
@@ -4498,14 +4239,12 @@ const deserializeAws_json1_1StartConfigurationRecorderCommandError = async (outp
|
|
|
4498
4239
|
throw await deserializeAws_json1_1NoSuchConfigurationRecorderExceptionResponse(parsedOutput, context);
|
|
4499
4240
|
default:
|
|
4500
4241
|
const parsedBody = parsedOutput.body;
|
|
4501
|
-
|
|
4502
|
-
|
|
4503
|
-
|
|
4504
|
-
|
|
4505
|
-
|
|
4506
|
-
$metadata,
|
|
4242
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4243
|
+
output,
|
|
4244
|
+
parsedBody,
|
|
4245
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
4246
|
+
errorCode,
|
|
4507
4247
|
});
|
|
4508
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4509
4248
|
}
|
|
4510
4249
|
};
|
|
4511
4250
|
const deserializeAws_json1_1StartRemediationExecutionCommand = async (output, context) => {
|
|
@@ -4527,7 +4266,6 @@ const deserializeAws_json1_1StartRemediationExecutionCommandError = async (outpu
|
|
|
4527
4266
|
...output,
|
|
4528
4267
|
body: await parseBody(output.body, context),
|
|
4529
4268
|
};
|
|
4530
|
-
let response;
|
|
4531
4269
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4532
4270
|
switch (errorCode) {
|
|
4533
4271
|
case "InsufficientPermissionsException":
|
|
@@ -4541,14 +4279,12 @@ const deserializeAws_json1_1StartRemediationExecutionCommandError = async (outpu
|
|
|
4541
4279
|
throw await deserializeAws_json1_1NoSuchRemediationConfigurationExceptionResponse(parsedOutput, context);
|
|
4542
4280
|
default:
|
|
4543
4281
|
const parsedBody = parsedOutput.body;
|
|
4544
|
-
|
|
4545
|
-
|
|
4546
|
-
|
|
4547
|
-
|
|
4548
|
-
|
|
4549
|
-
$metadata,
|
|
4282
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4283
|
+
output,
|
|
4284
|
+
parsedBody,
|
|
4285
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
4286
|
+
errorCode,
|
|
4550
4287
|
});
|
|
4551
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4552
4288
|
}
|
|
4553
4289
|
};
|
|
4554
4290
|
const deserializeAws_json1_1StopConfigurationRecorderCommand = async (output, context) => {
|
|
@@ -4567,7 +4303,6 @@ const deserializeAws_json1_1StopConfigurationRecorderCommandError = async (outpu
|
|
|
4567
4303
|
...output,
|
|
4568
4304
|
body: await parseBody(output.body, context),
|
|
4569
4305
|
};
|
|
4570
|
-
let response;
|
|
4571
4306
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4572
4307
|
switch (errorCode) {
|
|
4573
4308
|
case "NoSuchConfigurationRecorderException":
|
|
@@ -4575,14 +4310,12 @@ const deserializeAws_json1_1StopConfigurationRecorderCommandError = async (outpu
|
|
|
4575
4310
|
throw await deserializeAws_json1_1NoSuchConfigurationRecorderExceptionResponse(parsedOutput, context);
|
|
4576
4311
|
default:
|
|
4577
4312
|
const parsedBody = parsedOutput.body;
|
|
4578
|
-
|
|
4579
|
-
|
|
4580
|
-
|
|
4581
|
-
|
|
4582
|
-
|
|
4583
|
-
$metadata,
|
|
4313
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4314
|
+
output,
|
|
4315
|
+
parsedBody,
|
|
4316
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
4317
|
+
errorCode,
|
|
4584
4318
|
});
|
|
4585
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4586
4319
|
}
|
|
4587
4320
|
};
|
|
4588
4321
|
const deserializeAws_json1_1TagResourceCommand = async (output, context) => {
|
|
@@ -4601,7 +4334,6 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
4601
4334
|
...output,
|
|
4602
4335
|
body: await parseBody(output.body, context),
|
|
4603
4336
|
};
|
|
4604
|
-
let response;
|
|
4605
4337
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4606
4338
|
switch (errorCode) {
|
|
4607
4339
|
case "ResourceNotFoundException":
|
|
@@ -4615,14 +4347,12 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
4615
4347
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
4616
4348
|
default:
|
|
4617
4349
|
const parsedBody = parsedOutput.body;
|
|
4618
|
-
|
|
4619
|
-
|
|
4620
|
-
|
|
4621
|
-
|
|
4622
|
-
|
|
4623
|
-
$metadata,
|
|
4350
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4351
|
+
output,
|
|
4352
|
+
parsedBody,
|
|
4353
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
4354
|
+
errorCode,
|
|
4624
4355
|
});
|
|
4625
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4626
4356
|
}
|
|
4627
4357
|
};
|
|
4628
4358
|
const deserializeAws_json1_1UntagResourceCommand = async (output, context) => {
|
|
@@ -4641,7 +4371,6 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
4641
4371
|
...output,
|
|
4642
4372
|
body: await parseBody(output.body, context),
|
|
4643
4373
|
};
|
|
4644
|
-
let response;
|
|
4645
4374
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4646
4375
|
switch (errorCode) {
|
|
4647
4376
|
case "ResourceNotFoundException":
|
|
@@ -4652,14 +4381,12 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
4652
4381
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
4653
4382
|
default:
|
|
4654
4383
|
const parsedBody = parsedOutput.body;
|
|
4655
|
-
|
|
4656
|
-
|
|
4657
|
-
|
|
4658
|
-
|
|
4659
|
-
|
|
4660
|
-
$metadata,
|
|
4384
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4385
|
+
output,
|
|
4386
|
+
parsedBody,
|
|
4387
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
4388
|
+
errorCode,
|
|
4661
4389
|
});
|
|
4662
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4663
4390
|
}
|
|
4664
4391
|
};
|
|
4665
4392
|
const deserializeAws_json1_1ConformancePackTemplateValidationExceptionResponse = async (parsedOutput, context) => {
|
|
@@ -5154,9 +4881,6 @@ const serializeAws_json1_1AccountAggregationSourceAccountList = (input, context)
|
|
|
5154
4881
|
return input
|
|
5155
4882
|
.filter((e) => e != null)
|
|
5156
4883
|
.map((entry) => {
|
|
5157
|
-
if (entry === null) {
|
|
5158
|
-
return null;
|
|
5159
|
-
}
|
|
5160
4884
|
return entry;
|
|
5161
4885
|
});
|
|
5162
4886
|
};
|
|
@@ -5164,9 +4888,6 @@ const serializeAws_json1_1AccountAggregationSourceList = (input, context) => {
|
|
|
5164
4888
|
return input
|
|
5165
4889
|
.filter((e) => e != null)
|
|
5166
4890
|
.map((entry) => {
|
|
5167
|
-
if (entry === null) {
|
|
5168
|
-
return null;
|
|
5169
|
-
}
|
|
5170
4891
|
return serializeAws_json1_1AccountAggregationSource(entry, context);
|
|
5171
4892
|
});
|
|
5172
4893
|
};
|
|
@@ -5188,9 +4909,6 @@ const serializeAws_json1_1AggregatedSourceStatusTypeList = (input, context) => {
|
|
|
5188
4909
|
return input
|
|
5189
4910
|
.filter((e) => e != null)
|
|
5190
4911
|
.map((entry) => {
|
|
5191
|
-
if (entry === null) {
|
|
5192
|
-
return null;
|
|
5193
|
-
}
|
|
5194
4912
|
return entry;
|
|
5195
4913
|
});
|
|
5196
4914
|
};
|
|
@@ -5207,9 +4925,6 @@ const serializeAws_json1_1AggregatorRegionList = (input, context) => {
|
|
|
5207
4925
|
return input
|
|
5208
4926
|
.filter((e) => e != null)
|
|
5209
4927
|
.map((entry) => {
|
|
5210
|
-
if (entry === null) {
|
|
5211
|
-
return null;
|
|
5212
|
-
}
|
|
5213
4928
|
return entry;
|
|
5214
4929
|
});
|
|
5215
4930
|
};
|
|
@@ -5232,9 +4947,6 @@ const serializeAws_json1_1ComplianceResourceTypes = (input, context) => {
|
|
|
5232
4947
|
return input
|
|
5233
4948
|
.filter((e) => e != null)
|
|
5234
4949
|
.map((entry) => {
|
|
5235
|
-
if (entry === null) {
|
|
5236
|
-
return null;
|
|
5237
|
-
}
|
|
5238
4950
|
return entry;
|
|
5239
4951
|
});
|
|
5240
4952
|
};
|
|
@@ -5242,9 +4954,6 @@ const serializeAws_json1_1ComplianceTypes = (input, context) => {
|
|
|
5242
4954
|
return input
|
|
5243
4955
|
.filter((e) => e != null)
|
|
5244
4956
|
.map((entry) => {
|
|
5245
|
-
if (entry === null) {
|
|
5246
|
-
return null;
|
|
5247
|
-
}
|
|
5248
4957
|
return entry;
|
|
5249
4958
|
});
|
|
5250
4959
|
};
|
|
@@ -5280,9 +4989,6 @@ const serializeAws_json1_1ConfigRuleNames = (input, context) => {
|
|
|
5280
4989
|
return input
|
|
5281
4990
|
.filter((e) => e != null)
|
|
5282
4991
|
.map((entry) => {
|
|
5283
|
-
if (entry === null) {
|
|
5284
|
-
return null;
|
|
5285
|
-
}
|
|
5286
4992
|
return entry;
|
|
5287
4993
|
});
|
|
5288
4994
|
};
|
|
@@ -5295,9 +5001,6 @@ const serializeAws_json1_1ConfigurationAggregatorNameList = (input, context) =>
|
|
|
5295
5001
|
return input
|
|
5296
5002
|
.filter((e) => e != null)
|
|
5297
5003
|
.map((entry) => {
|
|
5298
|
-
if (entry === null) {
|
|
5299
|
-
return null;
|
|
5300
|
-
}
|
|
5301
5004
|
return entry;
|
|
5302
5005
|
});
|
|
5303
5006
|
};
|
|
@@ -5314,9 +5017,6 @@ const serializeAws_json1_1ConfigurationRecorderNameList = (input, context) => {
|
|
|
5314
5017
|
return input
|
|
5315
5018
|
.filter((e) => e != null)
|
|
5316
5019
|
.map((entry) => {
|
|
5317
|
-
if (entry === null) {
|
|
5318
|
-
return null;
|
|
5319
|
-
}
|
|
5320
5020
|
return entry;
|
|
5321
5021
|
});
|
|
5322
5022
|
};
|
|
@@ -5332,9 +5032,6 @@ const serializeAws_json1_1ConformancePackComplianceResourceIds = (input, context
|
|
|
5332
5032
|
return input
|
|
5333
5033
|
.filter((e) => e != null)
|
|
5334
5034
|
.map((entry) => {
|
|
5335
|
-
if (entry === null) {
|
|
5336
|
-
return null;
|
|
5337
|
-
}
|
|
5338
5035
|
return entry;
|
|
5339
5036
|
});
|
|
5340
5037
|
};
|
|
@@ -5349,9 +5046,6 @@ const serializeAws_json1_1ConformancePackConfigRuleNames = (input, context) => {
|
|
|
5349
5046
|
return input
|
|
5350
5047
|
.filter((e) => e != null)
|
|
5351
5048
|
.map((entry) => {
|
|
5352
|
-
if (entry === null) {
|
|
5353
|
-
return null;
|
|
5354
|
-
}
|
|
5355
5049
|
return entry;
|
|
5356
5050
|
});
|
|
5357
5051
|
};
|
|
@@ -5377,9 +5071,6 @@ const serializeAws_json1_1ConformancePackInputParameters = (input, context) => {
|
|
|
5377
5071
|
return input
|
|
5378
5072
|
.filter((e) => e != null)
|
|
5379
5073
|
.map((entry) => {
|
|
5380
|
-
if (entry === null) {
|
|
5381
|
-
return null;
|
|
5382
|
-
}
|
|
5383
5074
|
return serializeAws_json1_1ConformancePackInputParameter(entry, context);
|
|
5384
5075
|
});
|
|
5385
5076
|
};
|
|
@@ -5387,9 +5078,6 @@ const serializeAws_json1_1ConformancePackNameFilter = (input, context) => {
|
|
|
5387
5078
|
return input
|
|
5388
5079
|
.filter((e) => e != null)
|
|
5389
5080
|
.map((entry) => {
|
|
5390
|
-
if (entry === null) {
|
|
5391
|
-
return null;
|
|
5392
|
-
}
|
|
5393
5081
|
return entry;
|
|
5394
5082
|
});
|
|
5395
5083
|
};
|
|
@@ -5397,9 +5085,6 @@ const serializeAws_json1_1ConformancePackNamesList = (input, context) => {
|
|
|
5397
5085
|
return input
|
|
5398
5086
|
.filter((e) => e != null)
|
|
5399
5087
|
.map((entry) => {
|
|
5400
|
-
if (entry === null) {
|
|
5401
|
-
return null;
|
|
5402
|
-
}
|
|
5403
5088
|
return entry;
|
|
5404
5089
|
});
|
|
5405
5090
|
};
|
|
@@ -5407,9 +5092,6 @@ const serializeAws_json1_1ConformancePackNamesToSummarizeList = (input, context)
|
|
|
5407
5092
|
return input
|
|
5408
5093
|
.filter((e) => e != null)
|
|
5409
5094
|
.map((entry) => {
|
|
5410
|
-
if (entry === null) {
|
|
5411
|
-
return null;
|
|
5412
|
-
}
|
|
5413
5095
|
return entry;
|
|
5414
5096
|
});
|
|
5415
5097
|
};
|
|
@@ -5424,9 +5106,6 @@ const serializeAws_json1_1DebugLogDeliveryAccounts = (input, context) => {
|
|
|
5424
5106
|
return input
|
|
5425
5107
|
.filter((e) => e != null)
|
|
5426
5108
|
.map((entry) => {
|
|
5427
|
-
if (entry === null) {
|
|
5428
|
-
return null;
|
|
5429
|
-
}
|
|
5430
5109
|
return entry;
|
|
5431
5110
|
});
|
|
5432
5111
|
};
|
|
@@ -5537,9 +5216,6 @@ const serializeAws_json1_1DeliveryChannelNameList = (input, context) => {
|
|
|
5537
5216
|
return input
|
|
5538
5217
|
.filter((e) => e != null)
|
|
5539
5218
|
.map((entry) => {
|
|
5540
|
-
if (entry === null) {
|
|
5541
|
-
return null;
|
|
5542
|
-
}
|
|
5543
5219
|
return entry;
|
|
5544
5220
|
});
|
|
5545
5221
|
};
|
|
@@ -5775,9 +5451,6 @@ const serializeAws_json1_1Evaluations = (input, context) => {
|
|
|
5775
5451
|
return input
|
|
5776
5452
|
.filter((e) => e != null)
|
|
5777
5453
|
.map((entry) => {
|
|
5778
|
-
if (entry === null) {
|
|
5779
|
-
return null;
|
|
5780
|
-
}
|
|
5781
5454
|
return serializeAws_json1_1Evaluation(entry, context);
|
|
5782
5455
|
});
|
|
5783
5456
|
};
|
|
@@ -5785,9 +5458,6 @@ const serializeAws_json1_1ExcludedAccounts = (input, context) => {
|
|
|
5785
5458
|
return input
|
|
5786
5459
|
.filter((e) => e != null)
|
|
5787
5460
|
.map((entry) => {
|
|
5788
|
-
if (entry === null) {
|
|
5789
|
-
return null;
|
|
5790
|
-
}
|
|
5791
5461
|
return entry;
|
|
5792
5462
|
});
|
|
5793
5463
|
};
|
|
@@ -6024,9 +5694,6 @@ const serializeAws_json1_1OrganizationConfigRuleNames = (input, context) => {
|
|
|
6024
5694
|
return input
|
|
6025
5695
|
.filter((e) => e != null)
|
|
6026
5696
|
.map((entry) => {
|
|
6027
|
-
if (entry === null) {
|
|
6028
|
-
return null;
|
|
6029
|
-
}
|
|
6030
5697
|
return entry;
|
|
6031
5698
|
});
|
|
6032
5699
|
};
|
|
@@ -6034,9 +5701,6 @@ const serializeAws_json1_1OrganizationConfigRuleTriggerTypeNoSNs = (input, conte
|
|
|
6034
5701
|
return input
|
|
6035
5702
|
.filter((e) => e != null)
|
|
6036
5703
|
.map((entry) => {
|
|
6037
|
-
if (entry === null) {
|
|
6038
|
-
return null;
|
|
6039
|
-
}
|
|
6040
5704
|
return entry;
|
|
6041
5705
|
});
|
|
6042
5706
|
};
|
|
@@ -6044,9 +5708,6 @@ const serializeAws_json1_1OrganizationConfigRuleTriggerTypes = (input, context)
|
|
|
6044
5708
|
return input
|
|
6045
5709
|
.filter((e) => e != null)
|
|
6046
5710
|
.map((entry) => {
|
|
6047
|
-
if (entry === null) {
|
|
6048
|
-
return null;
|
|
6049
|
-
}
|
|
6050
5711
|
return entry;
|
|
6051
5712
|
});
|
|
6052
5713
|
};
|
|
@@ -6054,9 +5715,6 @@ const serializeAws_json1_1OrganizationConformancePackNames = (input, context) =>
|
|
|
6054
5715
|
return input
|
|
6055
5716
|
.filter((e) => e != null)
|
|
6056
5717
|
.map((entry) => {
|
|
6057
|
-
if (entry === null) {
|
|
6058
|
-
return null;
|
|
6059
|
-
}
|
|
6060
5718
|
return entry;
|
|
6061
5719
|
});
|
|
6062
5720
|
};
|
|
@@ -6271,9 +5929,6 @@ const serializeAws_json1_1ReevaluateConfigRuleNames = (input, context) => {
|
|
|
6271
5929
|
return input
|
|
6272
5930
|
.filter((e) => e != null)
|
|
6273
5931
|
.map((entry) => {
|
|
6274
|
-
if (entry === null) {
|
|
6275
|
-
return null;
|
|
6276
|
-
}
|
|
6277
5932
|
return entry;
|
|
6278
5933
|
});
|
|
6279
5934
|
};
|
|
@@ -6301,9 +5956,6 @@ const serializeAws_json1_1RemediationConfigurations = (input, context) => {
|
|
|
6301
5956
|
return input
|
|
6302
5957
|
.filter((e) => e != null)
|
|
6303
5958
|
.map((entry) => {
|
|
6304
|
-
if (entry === null) {
|
|
6305
|
-
return null;
|
|
6306
|
-
}
|
|
6307
5959
|
return serializeAws_json1_1RemediationConfiguration(entry, context);
|
|
6308
5960
|
});
|
|
6309
5961
|
};
|
|
@@ -6317,9 +5969,6 @@ const serializeAws_json1_1RemediationExceptionResourceKeys = (input, context) =>
|
|
|
6317
5969
|
return input
|
|
6318
5970
|
.filter((e) => e != null)
|
|
6319
5971
|
.map((entry) => {
|
|
6320
|
-
if (entry === null) {
|
|
6321
|
-
return null;
|
|
6322
|
-
}
|
|
6323
5972
|
return serializeAws_json1_1RemediationExceptionResourceKey(entry, context);
|
|
6324
5973
|
});
|
|
6325
5974
|
};
|
|
@@ -6361,9 +6010,6 @@ const serializeAws_json1_1ResourceIdentifiersList = (input, context) => {
|
|
|
6361
6010
|
return input
|
|
6362
6011
|
.filter((e) => e != null)
|
|
6363
6012
|
.map((entry) => {
|
|
6364
|
-
if (entry === null) {
|
|
6365
|
-
return null;
|
|
6366
|
-
}
|
|
6367
6013
|
return serializeAws_json1_1AggregateResourceIdentifier(entry, context);
|
|
6368
6014
|
});
|
|
6369
6015
|
};
|
|
@@ -6371,9 +6017,6 @@ const serializeAws_json1_1ResourceIdList = (input, context) => {
|
|
|
6371
6017
|
return input
|
|
6372
6018
|
.filter((e) => e != null)
|
|
6373
6019
|
.map((entry) => {
|
|
6374
|
-
if (entry === null) {
|
|
6375
|
-
return null;
|
|
6376
|
-
}
|
|
6377
6020
|
return entry;
|
|
6378
6021
|
});
|
|
6379
6022
|
};
|
|
@@ -6387,9 +6030,6 @@ const serializeAws_json1_1ResourceKeys = (input, context) => {
|
|
|
6387
6030
|
return input
|
|
6388
6031
|
.filter((e) => e != null)
|
|
6389
6032
|
.map((entry) => {
|
|
6390
|
-
if (entry === null) {
|
|
6391
|
-
return null;
|
|
6392
|
-
}
|
|
6393
6033
|
return serializeAws_json1_1ResourceKey(entry, context);
|
|
6394
6034
|
});
|
|
6395
6035
|
};
|
|
@@ -6397,9 +6037,6 @@ const serializeAws_json1_1ResourceTypeList = (input, context) => {
|
|
|
6397
6037
|
return input
|
|
6398
6038
|
.filter((e) => e != null)
|
|
6399
6039
|
.map((entry) => {
|
|
6400
|
-
if (entry === null) {
|
|
6401
|
-
return null;
|
|
6402
|
-
}
|
|
6403
6040
|
return entry;
|
|
6404
6041
|
});
|
|
6405
6042
|
};
|
|
@@ -6407,9 +6044,6 @@ const serializeAws_json1_1ResourceTypes = (input, context) => {
|
|
|
6407
6044
|
return input
|
|
6408
6045
|
.filter((e) => e != null)
|
|
6409
6046
|
.map((entry) => {
|
|
6410
|
-
if (entry === null) {
|
|
6411
|
-
return null;
|
|
6412
|
-
}
|
|
6413
6047
|
return entry;
|
|
6414
6048
|
});
|
|
6415
6049
|
};
|
|
@@ -6417,9 +6051,6 @@ const serializeAws_json1_1ResourceTypesScope = (input, context) => {
|
|
|
6417
6051
|
return input
|
|
6418
6052
|
.filter((e) => e != null)
|
|
6419
6053
|
.map((entry) => {
|
|
6420
|
-
if (entry === null) {
|
|
6421
|
-
return null;
|
|
6422
|
-
}
|
|
6423
6054
|
return entry;
|
|
6424
6055
|
});
|
|
6425
6056
|
};
|
|
@@ -6432,9 +6063,6 @@ const serializeAws_json1_1RetentionConfigurationNameList = (input, context) => {
|
|
|
6432
6063
|
return input
|
|
6433
6064
|
.filter((e) => e != null)
|
|
6434
6065
|
.map((entry) => {
|
|
6435
|
-
if (entry === null) {
|
|
6436
|
-
return null;
|
|
6437
|
-
}
|
|
6438
6066
|
return entry;
|
|
6439
6067
|
});
|
|
6440
6068
|
};
|
|
@@ -6489,9 +6117,6 @@ const serializeAws_json1_1SourceDetails = (input, context) => {
|
|
|
6489
6117
|
return input
|
|
6490
6118
|
.filter((e) => e != null)
|
|
6491
6119
|
.map((entry) => {
|
|
6492
|
-
if (entry === null) {
|
|
6493
|
-
return null;
|
|
6494
|
-
}
|
|
6495
6120
|
return serializeAws_json1_1SourceDetail(entry, context);
|
|
6496
6121
|
});
|
|
6497
6122
|
};
|
|
@@ -6525,9 +6150,6 @@ const serializeAws_json1_1StaticParameterValues = (input, context) => {
|
|
|
6525
6150
|
return input
|
|
6526
6151
|
.filter((e) => e != null)
|
|
6527
6152
|
.map((entry) => {
|
|
6528
|
-
if (entry === null) {
|
|
6529
|
-
return null;
|
|
6530
|
-
}
|
|
6531
6153
|
return entry;
|
|
6532
6154
|
});
|
|
6533
6155
|
};
|
|
@@ -6566,9 +6188,6 @@ const serializeAws_json1_1TagKeyList = (input, context) => {
|
|
|
6566
6188
|
return input
|
|
6567
6189
|
.filter((e) => e != null)
|
|
6568
6190
|
.map((entry) => {
|
|
6569
|
-
if (entry === null) {
|
|
6570
|
-
return null;
|
|
6571
|
-
}
|
|
6572
6191
|
return entry;
|
|
6573
6192
|
});
|
|
6574
6193
|
};
|
|
@@ -6576,9 +6195,6 @@ const serializeAws_json1_1TagList = (input, context) => {
|
|
|
6576
6195
|
return input
|
|
6577
6196
|
.filter((e) => e != null)
|
|
6578
6197
|
.map((entry) => {
|
|
6579
|
-
if (entry === null) {
|
|
6580
|
-
return null;
|
|
6581
|
-
}
|
|
6582
6198
|
return serializeAws_json1_1Tag(entry, context);
|
|
6583
6199
|
});
|
|
6584
6200
|
};
|
|
@@ -6603,9 +6219,6 @@ const serializeAws_json1_1TagsList = (input, context) => {
|
|
|
6603
6219
|
return input
|
|
6604
6220
|
.filter((e) => e != null)
|
|
6605
6221
|
.map((entry) => {
|
|
6606
|
-
if (entry === null) {
|
|
6607
|
-
return null;
|
|
6608
|
-
}
|
|
6609
6222
|
return serializeAws_json1_1Tag(entry, context);
|
|
6610
6223
|
});
|
|
6611
6224
|
};
|