@aws-sdk/client-workmail 3.141.0 → 3.150.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 +27 -0
- package/dist-cjs/protocols/Aws_json1_1.js +365 -620
- package/dist-es/protocols/Aws_json1_1.js +585 -621
- package/package.json +11 -6
|
@@ -757,7 +757,6 @@ const deserializeAws_json1_1AssociateDelegateToResourceCommandError = async (out
|
|
|
757
757
|
...output,
|
|
758
758
|
body: await parseBody(output.body, context),
|
|
759
759
|
};
|
|
760
|
-
let response;
|
|
761
760
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
762
761
|
switch (errorCode) {
|
|
763
762
|
case "EntityNotFoundException":
|
|
@@ -777,14 +776,12 @@ const deserializeAws_json1_1AssociateDelegateToResourceCommandError = async (out
|
|
|
777
776
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
778
777
|
default:
|
|
779
778
|
const parsedBody = parsedOutput.body;
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
$metadata,
|
|
779
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
780
|
+
output,
|
|
781
|
+
parsedBody,
|
|
782
|
+
exceptionCtor: WorkMailServiceException_1.WorkMailServiceException,
|
|
783
|
+
errorCode,
|
|
786
784
|
});
|
|
787
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
788
785
|
}
|
|
789
786
|
};
|
|
790
787
|
const deserializeAws_json1_1AssociateMemberToGroupCommand = async (output, context) => {
|
|
@@ -806,7 +803,6 @@ const deserializeAws_json1_1AssociateMemberToGroupCommandError = async (output,
|
|
|
806
803
|
...output,
|
|
807
804
|
body: await parseBody(output.body, context),
|
|
808
805
|
};
|
|
809
|
-
let response;
|
|
810
806
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
811
807
|
switch (errorCode) {
|
|
812
808
|
case "DirectoryServiceAuthenticationFailedException":
|
|
@@ -835,14 +831,12 @@ const deserializeAws_json1_1AssociateMemberToGroupCommandError = async (output,
|
|
|
835
831
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
836
832
|
default:
|
|
837
833
|
const parsedBody = parsedOutput.body;
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
$metadata,
|
|
834
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
835
|
+
output,
|
|
836
|
+
parsedBody,
|
|
837
|
+
exceptionCtor: WorkMailServiceException_1.WorkMailServiceException,
|
|
838
|
+
errorCode,
|
|
844
839
|
});
|
|
845
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
846
840
|
}
|
|
847
841
|
};
|
|
848
842
|
const deserializeAws_json1_1CancelMailboxExportJobCommand = async (output, context) => {
|
|
@@ -864,7 +858,6 @@ const deserializeAws_json1_1CancelMailboxExportJobCommandError = async (output,
|
|
|
864
858
|
...output,
|
|
865
859
|
body: await parseBody(output.body, context),
|
|
866
860
|
};
|
|
867
|
-
let response;
|
|
868
861
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
869
862
|
switch (errorCode) {
|
|
870
863
|
case "EntityNotFoundException":
|
|
@@ -881,14 +874,12 @@ const deserializeAws_json1_1CancelMailboxExportJobCommandError = async (output,
|
|
|
881
874
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
882
875
|
default:
|
|
883
876
|
const parsedBody = parsedOutput.body;
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
$metadata,
|
|
877
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
878
|
+
output,
|
|
879
|
+
parsedBody,
|
|
880
|
+
exceptionCtor: WorkMailServiceException_1.WorkMailServiceException,
|
|
881
|
+
errorCode,
|
|
890
882
|
});
|
|
891
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
892
883
|
}
|
|
893
884
|
};
|
|
894
885
|
const deserializeAws_json1_1CreateAliasCommand = async (output, context) => {
|
|
@@ -910,7 +901,6 @@ const deserializeAws_json1_1CreateAliasCommandError = async (output, context) =>
|
|
|
910
901
|
...output,
|
|
911
902
|
body: await parseBody(output.body, context),
|
|
912
903
|
};
|
|
913
|
-
let response;
|
|
914
904
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
915
905
|
switch (errorCode) {
|
|
916
906
|
case "EmailAddressInUseException":
|
|
@@ -942,14 +932,12 @@ const deserializeAws_json1_1CreateAliasCommandError = async (output, context) =>
|
|
|
942
932
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
943
933
|
default:
|
|
944
934
|
const parsedBody = parsedOutput.body;
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
$metadata,
|
|
935
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
936
|
+
output,
|
|
937
|
+
parsedBody,
|
|
938
|
+
exceptionCtor: WorkMailServiceException_1.WorkMailServiceException,
|
|
939
|
+
errorCode,
|
|
951
940
|
});
|
|
952
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
953
941
|
}
|
|
954
942
|
};
|
|
955
943
|
const deserializeAws_json1_1CreateAvailabilityConfigurationCommand = async (output, context) => {
|
|
@@ -971,7 +959,6 @@ const deserializeAws_json1_1CreateAvailabilityConfigurationCommandError = async
|
|
|
971
959
|
...output,
|
|
972
960
|
body: await parseBody(output.body, context),
|
|
973
961
|
};
|
|
974
|
-
let response;
|
|
975
962
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
976
963
|
switch (errorCode) {
|
|
977
964
|
case "InvalidParameterException":
|
|
@@ -991,14 +978,12 @@ const deserializeAws_json1_1CreateAvailabilityConfigurationCommandError = async
|
|
|
991
978
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
992
979
|
default:
|
|
993
980
|
const parsedBody = parsedOutput.body;
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
$metadata,
|
|
981
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
982
|
+
output,
|
|
983
|
+
parsedBody,
|
|
984
|
+
exceptionCtor: WorkMailServiceException_1.WorkMailServiceException,
|
|
985
|
+
errorCode,
|
|
1000
986
|
});
|
|
1001
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1002
987
|
}
|
|
1003
988
|
};
|
|
1004
989
|
const deserializeAws_json1_1CreateGroupCommand = async (output, context) => {
|
|
@@ -1020,7 +1005,6 @@ const deserializeAws_json1_1CreateGroupCommandError = async (output, context) =>
|
|
|
1020
1005
|
...output,
|
|
1021
1006
|
body: await parseBody(output.body, context),
|
|
1022
1007
|
};
|
|
1023
|
-
let response;
|
|
1024
1008
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1025
1009
|
switch (errorCode) {
|
|
1026
1010
|
case "DirectoryServiceAuthenticationFailedException":
|
|
@@ -1049,14 +1033,12 @@ const deserializeAws_json1_1CreateGroupCommandError = async (output, context) =>
|
|
|
1049
1033
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1050
1034
|
default:
|
|
1051
1035
|
const parsedBody = parsedOutput.body;
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
$metadata,
|
|
1036
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1037
|
+
output,
|
|
1038
|
+
parsedBody,
|
|
1039
|
+
exceptionCtor: WorkMailServiceException_1.WorkMailServiceException,
|
|
1040
|
+
errorCode,
|
|
1058
1041
|
});
|
|
1059
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1060
1042
|
}
|
|
1061
1043
|
};
|
|
1062
1044
|
const deserializeAws_json1_1CreateMobileDeviceAccessRuleCommand = async (output, context) => {
|
|
@@ -1078,7 +1060,6 @@ const deserializeAws_json1_1CreateMobileDeviceAccessRuleCommandError = async (ou
|
|
|
1078
1060
|
...output,
|
|
1079
1061
|
body: await parseBody(output.body, context),
|
|
1080
1062
|
};
|
|
1081
|
-
let response;
|
|
1082
1063
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1083
1064
|
switch (errorCode) {
|
|
1084
1065
|
case "InvalidParameterException":
|
|
@@ -1095,14 +1076,12 @@ const deserializeAws_json1_1CreateMobileDeviceAccessRuleCommandError = async (ou
|
|
|
1095
1076
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
1096
1077
|
default:
|
|
1097
1078
|
const parsedBody = parsedOutput.body;
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
$metadata,
|
|
1079
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1080
|
+
output,
|
|
1081
|
+
parsedBody,
|
|
1082
|
+
exceptionCtor: WorkMailServiceException_1.WorkMailServiceException,
|
|
1083
|
+
errorCode,
|
|
1104
1084
|
});
|
|
1105
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1106
1085
|
}
|
|
1107
1086
|
};
|
|
1108
1087
|
const deserializeAws_json1_1CreateOrganizationCommand = async (output, context) => {
|
|
@@ -1124,7 +1103,6 @@ const deserializeAws_json1_1CreateOrganizationCommandError = async (output, cont
|
|
|
1124
1103
|
...output,
|
|
1125
1104
|
body: await parseBody(output.body, context),
|
|
1126
1105
|
};
|
|
1127
|
-
let response;
|
|
1128
1106
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1129
1107
|
switch (errorCode) {
|
|
1130
1108
|
case "DirectoryInUseException":
|
|
@@ -1144,14 +1122,12 @@ const deserializeAws_json1_1CreateOrganizationCommandError = async (output, cont
|
|
|
1144
1122
|
throw await deserializeAws_json1_1NameAvailabilityExceptionResponse(parsedOutput, context);
|
|
1145
1123
|
default:
|
|
1146
1124
|
const parsedBody = parsedOutput.body;
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
$metadata,
|
|
1125
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1126
|
+
output,
|
|
1127
|
+
parsedBody,
|
|
1128
|
+
exceptionCtor: WorkMailServiceException_1.WorkMailServiceException,
|
|
1129
|
+
errorCode,
|
|
1153
1130
|
});
|
|
1154
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1155
1131
|
}
|
|
1156
1132
|
};
|
|
1157
1133
|
const deserializeAws_json1_1CreateResourceCommand = async (output, context) => {
|
|
@@ -1173,7 +1149,6 @@ const deserializeAws_json1_1CreateResourceCommandError = async (output, context)
|
|
|
1173
1149
|
...output,
|
|
1174
1150
|
body: await parseBody(output.body, context),
|
|
1175
1151
|
};
|
|
1176
|
-
let response;
|
|
1177
1152
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1178
1153
|
switch (errorCode) {
|
|
1179
1154
|
case "DirectoryServiceAuthenticationFailedException":
|
|
@@ -1199,14 +1174,12 @@ const deserializeAws_json1_1CreateResourceCommandError = async (output, context)
|
|
|
1199
1174
|
throw await deserializeAws_json1_1ReservedNameExceptionResponse(parsedOutput, context);
|
|
1200
1175
|
default:
|
|
1201
1176
|
const parsedBody = parsedOutput.body;
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
$metadata,
|
|
1177
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1178
|
+
output,
|
|
1179
|
+
parsedBody,
|
|
1180
|
+
exceptionCtor: WorkMailServiceException_1.WorkMailServiceException,
|
|
1181
|
+
errorCode,
|
|
1208
1182
|
});
|
|
1209
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1210
1183
|
}
|
|
1211
1184
|
};
|
|
1212
1185
|
const deserializeAws_json1_1CreateUserCommand = async (output, context) => {
|
|
@@ -1228,7 +1201,6 @@ const deserializeAws_json1_1CreateUserCommandError = async (output, context) =>
|
|
|
1228
1201
|
...output,
|
|
1229
1202
|
body: await parseBody(output.body, context),
|
|
1230
1203
|
};
|
|
1231
|
-
let response;
|
|
1232
1204
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1233
1205
|
switch (errorCode) {
|
|
1234
1206
|
case "DirectoryServiceAuthenticationFailedException":
|
|
@@ -1260,14 +1232,12 @@ const deserializeAws_json1_1CreateUserCommandError = async (output, context) =>
|
|
|
1260
1232
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1261
1233
|
default:
|
|
1262
1234
|
const parsedBody = parsedOutput.body;
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
$metadata,
|
|
1235
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1236
|
+
output,
|
|
1237
|
+
parsedBody,
|
|
1238
|
+
exceptionCtor: WorkMailServiceException_1.WorkMailServiceException,
|
|
1239
|
+
errorCode,
|
|
1269
1240
|
});
|
|
1270
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1271
1241
|
}
|
|
1272
1242
|
};
|
|
1273
1243
|
const deserializeAws_json1_1DeleteAccessControlRuleCommand = async (output, context) => {
|
|
@@ -1289,7 +1259,6 @@ const deserializeAws_json1_1DeleteAccessControlRuleCommandError = async (output,
|
|
|
1289
1259
|
...output,
|
|
1290
1260
|
body: await parseBody(output.body, context),
|
|
1291
1261
|
};
|
|
1292
|
-
let response;
|
|
1293
1262
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1294
1263
|
switch (errorCode) {
|
|
1295
1264
|
case "OrganizationNotFoundException":
|
|
@@ -1300,14 +1269,12 @@ const deserializeAws_json1_1DeleteAccessControlRuleCommandError = async (output,
|
|
|
1300
1269
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
1301
1270
|
default:
|
|
1302
1271
|
const parsedBody = parsedOutput.body;
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
$metadata,
|
|
1272
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1273
|
+
output,
|
|
1274
|
+
parsedBody,
|
|
1275
|
+
exceptionCtor: WorkMailServiceException_1.WorkMailServiceException,
|
|
1276
|
+
errorCode,
|
|
1309
1277
|
});
|
|
1310
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1311
1278
|
}
|
|
1312
1279
|
};
|
|
1313
1280
|
const deserializeAws_json1_1DeleteAliasCommand = async (output, context) => {
|
|
@@ -1329,7 +1296,6 @@ const deserializeAws_json1_1DeleteAliasCommandError = async (output, context) =>
|
|
|
1329
1296
|
...output,
|
|
1330
1297
|
body: await parseBody(output.body, context),
|
|
1331
1298
|
};
|
|
1332
|
-
let response;
|
|
1333
1299
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1334
1300
|
switch (errorCode) {
|
|
1335
1301
|
case "EntityNotFoundException":
|
|
@@ -1349,14 +1315,12 @@ const deserializeAws_json1_1DeleteAliasCommandError = async (output, context) =>
|
|
|
1349
1315
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
1350
1316
|
default:
|
|
1351
1317
|
const parsedBody = parsedOutput.body;
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
$metadata,
|
|
1318
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1319
|
+
output,
|
|
1320
|
+
parsedBody,
|
|
1321
|
+
exceptionCtor: WorkMailServiceException_1.WorkMailServiceException,
|
|
1322
|
+
errorCode,
|
|
1358
1323
|
});
|
|
1359
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1360
1324
|
}
|
|
1361
1325
|
};
|
|
1362
1326
|
const deserializeAws_json1_1DeleteAvailabilityConfigurationCommand = async (output, context) => {
|
|
@@ -1378,7 +1342,6 @@ const deserializeAws_json1_1DeleteAvailabilityConfigurationCommandError = async
|
|
|
1378
1342
|
...output,
|
|
1379
1343
|
body: await parseBody(output.body, context),
|
|
1380
1344
|
};
|
|
1381
|
-
let response;
|
|
1382
1345
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1383
1346
|
switch (errorCode) {
|
|
1384
1347
|
case "OrganizationNotFoundException":
|
|
@@ -1389,14 +1352,12 @@ const deserializeAws_json1_1DeleteAvailabilityConfigurationCommandError = async
|
|
|
1389
1352
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
1390
1353
|
default:
|
|
1391
1354
|
const parsedBody = parsedOutput.body;
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
$metadata,
|
|
1355
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1356
|
+
output,
|
|
1357
|
+
parsedBody,
|
|
1358
|
+
exceptionCtor: WorkMailServiceException_1.WorkMailServiceException,
|
|
1359
|
+
errorCode,
|
|
1398
1360
|
});
|
|
1399
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1400
1361
|
}
|
|
1401
1362
|
};
|
|
1402
1363
|
const deserializeAws_json1_1DeleteEmailMonitoringConfigurationCommand = async (output, context) => {
|
|
@@ -1418,7 +1379,6 @@ const deserializeAws_json1_1DeleteEmailMonitoringConfigurationCommandError = asy
|
|
|
1418
1379
|
...output,
|
|
1419
1380
|
body: await parseBody(output.body, context),
|
|
1420
1381
|
};
|
|
1421
|
-
let response;
|
|
1422
1382
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1423
1383
|
switch (errorCode) {
|
|
1424
1384
|
case "InvalidParameterException":
|
|
@@ -1432,14 +1392,12 @@ const deserializeAws_json1_1DeleteEmailMonitoringConfigurationCommandError = asy
|
|
|
1432
1392
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
1433
1393
|
default:
|
|
1434
1394
|
const parsedBody = parsedOutput.body;
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
$metadata,
|
|
1395
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1396
|
+
output,
|
|
1397
|
+
parsedBody,
|
|
1398
|
+
exceptionCtor: WorkMailServiceException_1.WorkMailServiceException,
|
|
1399
|
+
errorCode,
|
|
1441
1400
|
});
|
|
1442
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1443
1401
|
}
|
|
1444
1402
|
};
|
|
1445
1403
|
const deserializeAws_json1_1DeleteGroupCommand = async (output, context) => {
|
|
@@ -1461,7 +1419,6 @@ const deserializeAws_json1_1DeleteGroupCommandError = async (output, context) =>
|
|
|
1461
1419
|
...output,
|
|
1462
1420
|
body: await parseBody(output.body, context),
|
|
1463
1421
|
};
|
|
1464
|
-
let response;
|
|
1465
1422
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1466
1423
|
switch (errorCode) {
|
|
1467
1424
|
case "DirectoryServiceAuthenticationFailedException":
|
|
@@ -1487,14 +1444,12 @@ const deserializeAws_json1_1DeleteGroupCommandError = async (output, context) =>
|
|
|
1487
1444
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1488
1445
|
default:
|
|
1489
1446
|
const parsedBody = parsedOutput.body;
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
$metadata,
|
|
1447
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1448
|
+
output,
|
|
1449
|
+
parsedBody,
|
|
1450
|
+
exceptionCtor: WorkMailServiceException_1.WorkMailServiceException,
|
|
1451
|
+
errorCode,
|
|
1496
1452
|
});
|
|
1497
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1498
1453
|
}
|
|
1499
1454
|
};
|
|
1500
1455
|
const deserializeAws_json1_1DeleteMailboxPermissionsCommand = async (output, context) => {
|
|
@@ -1516,7 +1471,6 @@ const deserializeAws_json1_1DeleteMailboxPermissionsCommandError = async (output
|
|
|
1516
1471
|
...output,
|
|
1517
1472
|
body: await parseBody(output.body, context),
|
|
1518
1473
|
};
|
|
1519
|
-
let response;
|
|
1520
1474
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1521
1475
|
switch (errorCode) {
|
|
1522
1476
|
case "EntityNotFoundException":
|
|
@@ -1536,14 +1490,12 @@ const deserializeAws_json1_1DeleteMailboxPermissionsCommandError = async (output
|
|
|
1536
1490
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
1537
1491
|
default:
|
|
1538
1492
|
const parsedBody = parsedOutput.body;
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
$metadata,
|
|
1493
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1494
|
+
output,
|
|
1495
|
+
parsedBody,
|
|
1496
|
+
exceptionCtor: WorkMailServiceException_1.WorkMailServiceException,
|
|
1497
|
+
errorCode,
|
|
1545
1498
|
});
|
|
1546
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1547
1499
|
}
|
|
1548
1500
|
};
|
|
1549
1501
|
const deserializeAws_json1_1DeleteMobileDeviceAccessOverrideCommand = async (output, context) => {
|
|
@@ -1565,7 +1517,6 @@ const deserializeAws_json1_1DeleteMobileDeviceAccessOverrideCommandError = async
|
|
|
1565
1517
|
...output,
|
|
1566
1518
|
body: await parseBody(output.body, context),
|
|
1567
1519
|
};
|
|
1568
|
-
let response;
|
|
1569
1520
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1570
1521
|
switch (errorCode) {
|
|
1571
1522
|
case "EntityNotFoundException":
|
|
@@ -1582,14 +1533,12 @@ const deserializeAws_json1_1DeleteMobileDeviceAccessOverrideCommandError = async
|
|
|
1582
1533
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
1583
1534
|
default:
|
|
1584
1535
|
const parsedBody = parsedOutput.body;
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
$metadata,
|
|
1536
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1537
|
+
output,
|
|
1538
|
+
parsedBody,
|
|
1539
|
+
exceptionCtor: WorkMailServiceException_1.WorkMailServiceException,
|
|
1540
|
+
errorCode,
|
|
1591
1541
|
});
|
|
1592
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1593
1542
|
}
|
|
1594
1543
|
};
|
|
1595
1544
|
const deserializeAws_json1_1DeleteMobileDeviceAccessRuleCommand = async (output, context) => {
|
|
@@ -1611,7 +1560,6 @@ const deserializeAws_json1_1DeleteMobileDeviceAccessRuleCommandError = async (ou
|
|
|
1611
1560
|
...output,
|
|
1612
1561
|
body: await parseBody(output.body, context),
|
|
1613
1562
|
};
|
|
1614
|
-
let response;
|
|
1615
1563
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1616
1564
|
switch (errorCode) {
|
|
1617
1565
|
case "InvalidParameterException":
|
|
@@ -1625,14 +1573,12 @@ const deserializeAws_json1_1DeleteMobileDeviceAccessRuleCommandError = async (ou
|
|
|
1625
1573
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
1626
1574
|
default:
|
|
1627
1575
|
const parsedBody = parsedOutput.body;
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
$metadata,
|
|
1576
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1577
|
+
output,
|
|
1578
|
+
parsedBody,
|
|
1579
|
+
exceptionCtor: WorkMailServiceException_1.WorkMailServiceException,
|
|
1580
|
+
errorCode,
|
|
1634
1581
|
});
|
|
1635
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1636
1582
|
}
|
|
1637
1583
|
};
|
|
1638
1584
|
const deserializeAws_json1_1DeleteOrganizationCommand = async (output, context) => {
|
|
@@ -1654,7 +1600,6 @@ const deserializeAws_json1_1DeleteOrganizationCommandError = async (output, cont
|
|
|
1654
1600
|
...output,
|
|
1655
1601
|
body: await parseBody(output.body, context),
|
|
1656
1602
|
};
|
|
1657
|
-
let response;
|
|
1658
1603
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1659
1604
|
switch (errorCode) {
|
|
1660
1605
|
case "InvalidParameterException":
|
|
@@ -1668,14 +1613,12 @@ const deserializeAws_json1_1DeleteOrganizationCommandError = async (output, cont
|
|
|
1668
1613
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
1669
1614
|
default:
|
|
1670
1615
|
const parsedBody = parsedOutput.body;
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
$metadata,
|
|
1616
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1617
|
+
output,
|
|
1618
|
+
parsedBody,
|
|
1619
|
+
exceptionCtor: WorkMailServiceException_1.WorkMailServiceException,
|
|
1620
|
+
errorCode,
|
|
1677
1621
|
});
|
|
1678
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1679
1622
|
}
|
|
1680
1623
|
};
|
|
1681
1624
|
const deserializeAws_json1_1DeleteResourceCommand = async (output, context) => {
|
|
@@ -1697,7 +1640,6 @@ const deserializeAws_json1_1DeleteResourceCommandError = async (output, context)
|
|
|
1697
1640
|
...output,
|
|
1698
1641
|
body: await parseBody(output.body, context),
|
|
1699
1642
|
};
|
|
1700
|
-
let response;
|
|
1701
1643
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1702
1644
|
switch (errorCode) {
|
|
1703
1645
|
case "EntityStateException":
|
|
@@ -1714,14 +1656,12 @@ const deserializeAws_json1_1DeleteResourceCommandError = async (output, context)
|
|
|
1714
1656
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
1715
1657
|
default:
|
|
1716
1658
|
const parsedBody = parsedOutput.body;
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
$metadata,
|
|
1659
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1660
|
+
output,
|
|
1661
|
+
parsedBody,
|
|
1662
|
+
exceptionCtor: WorkMailServiceException_1.WorkMailServiceException,
|
|
1663
|
+
errorCode,
|
|
1723
1664
|
});
|
|
1724
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1725
1665
|
}
|
|
1726
1666
|
};
|
|
1727
1667
|
const deserializeAws_json1_1DeleteRetentionPolicyCommand = async (output, context) => {
|
|
@@ -1743,7 +1683,6 @@ const deserializeAws_json1_1DeleteRetentionPolicyCommandError = async (output, c
|
|
|
1743
1683
|
...output,
|
|
1744
1684
|
body: await parseBody(output.body, context),
|
|
1745
1685
|
};
|
|
1746
|
-
let response;
|
|
1747
1686
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1748
1687
|
switch (errorCode) {
|
|
1749
1688
|
case "InvalidParameterException":
|
|
@@ -1757,14 +1696,12 @@ const deserializeAws_json1_1DeleteRetentionPolicyCommandError = async (output, c
|
|
|
1757
1696
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
1758
1697
|
default:
|
|
1759
1698
|
const parsedBody = parsedOutput.body;
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
$metadata,
|
|
1699
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1700
|
+
output,
|
|
1701
|
+
parsedBody,
|
|
1702
|
+
exceptionCtor: WorkMailServiceException_1.WorkMailServiceException,
|
|
1703
|
+
errorCode,
|
|
1766
1704
|
});
|
|
1767
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1768
1705
|
}
|
|
1769
1706
|
};
|
|
1770
1707
|
const deserializeAws_json1_1DeleteUserCommand = async (output, context) => {
|
|
@@ -1786,7 +1723,6 @@ const deserializeAws_json1_1DeleteUserCommandError = async (output, context) =>
|
|
|
1786
1723
|
...output,
|
|
1787
1724
|
body: await parseBody(output.body, context),
|
|
1788
1725
|
};
|
|
1789
|
-
let response;
|
|
1790
1726
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1791
1727
|
switch (errorCode) {
|
|
1792
1728
|
case "DirectoryServiceAuthenticationFailedException":
|
|
@@ -1812,14 +1748,12 @@ const deserializeAws_json1_1DeleteUserCommandError = async (output, context) =>
|
|
|
1812
1748
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1813
1749
|
default:
|
|
1814
1750
|
const parsedBody = parsedOutput.body;
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
$metadata,
|
|
1751
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1752
|
+
output,
|
|
1753
|
+
parsedBody,
|
|
1754
|
+
exceptionCtor: WorkMailServiceException_1.WorkMailServiceException,
|
|
1755
|
+
errorCode,
|
|
1821
1756
|
});
|
|
1822
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1823
1757
|
}
|
|
1824
1758
|
};
|
|
1825
1759
|
const deserializeAws_json1_1DeregisterFromWorkMailCommand = async (output, context) => {
|
|
@@ -1841,7 +1775,6 @@ const deserializeAws_json1_1DeregisterFromWorkMailCommandError = async (output,
|
|
|
1841
1775
|
...output,
|
|
1842
1776
|
body: await parseBody(output.body, context),
|
|
1843
1777
|
};
|
|
1844
|
-
let response;
|
|
1845
1778
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1846
1779
|
switch (errorCode) {
|
|
1847
1780
|
case "EntityNotFoundException":
|
|
@@ -1861,14 +1794,12 @@ const deserializeAws_json1_1DeregisterFromWorkMailCommandError = async (output,
|
|
|
1861
1794
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
1862
1795
|
default:
|
|
1863
1796
|
const parsedBody = parsedOutput.body;
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
$metadata,
|
|
1797
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1798
|
+
output,
|
|
1799
|
+
parsedBody,
|
|
1800
|
+
exceptionCtor: WorkMailServiceException_1.WorkMailServiceException,
|
|
1801
|
+
errorCode,
|
|
1870
1802
|
});
|
|
1871
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1872
1803
|
}
|
|
1873
1804
|
};
|
|
1874
1805
|
const deserializeAws_json1_1DeregisterMailDomainCommand = async (output, context) => {
|
|
@@ -1890,7 +1821,6 @@ const deserializeAws_json1_1DeregisterMailDomainCommandError = async (output, co
|
|
|
1890
1821
|
...output,
|
|
1891
1822
|
body: await parseBody(output.body, context),
|
|
1892
1823
|
};
|
|
1893
|
-
let response;
|
|
1894
1824
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1895
1825
|
switch (errorCode) {
|
|
1896
1826
|
case "InvalidCustomSesConfigurationException":
|
|
@@ -1910,14 +1840,12 @@ const deserializeAws_json1_1DeregisterMailDomainCommandError = async (output, co
|
|
|
1910
1840
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
1911
1841
|
default:
|
|
1912
1842
|
const parsedBody = parsedOutput.body;
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
$metadata,
|
|
1843
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1844
|
+
output,
|
|
1845
|
+
parsedBody,
|
|
1846
|
+
exceptionCtor: WorkMailServiceException_1.WorkMailServiceException,
|
|
1847
|
+
errorCode,
|
|
1919
1848
|
});
|
|
1920
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1921
1849
|
}
|
|
1922
1850
|
};
|
|
1923
1851
|
const deserializeAws_json1_1DescribeEmailMonitoringConfigurationCommand = async (output, context) => {
|
|
@@ -1939,7 +1867,6 @@ const deserializeAws_json1_1DescribeEmailMonitoringConfigurationCommandError = a
|
|
|
1939
1867
|
...output,
|
|
1940
1868
|
body: await parseBody(output.body, context),
|
|
1941
1869
|
};
|
|
1942
|
-
let response;
|
|
1943
1870
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1944
1871
|
switch (errorCode) {
|
|
1945
1872
|
case "InvalidParameterException":
|
|
@@ -1956,14 +1883,12 @@ const deserializeAws_json1_1DescribeEmailMonitoringConfigurationCommandError = a
|
|
|
1956
1883
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1957
1884
|
default:
|
|
1958
1885
|
const parsedBody = parsedOutput.body;
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
$metadata,
|
|
1886
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1887
|
+
output,
|
|
1888
|
+
parsedBody,
|
|
1889
|
+
exceptionCtor: WorkMailServiceException_1.WorkMailServiceException,
|
|
1890
|
+
errorCode,
|
|
1965
1891
|
});
|
|
1966
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1967
1892
|
}
|
|
1968
1893
|
};
|
|
1969
1894
|
const deserializeAws_json1_1DescribeGroupCommand = async (output, context) => {
|
|
@@ -1985,7 +1910,6 @@ const deserializeAws_json1_1DescribeGroupCommandError = async (output, context)
|
|
|
1985
1910
|
...output,
|
|
1986
1911
|
body: await parseBody(output.body, context),
|
|
1987
1912
|
};
|
|
1988
|
-
let response;
|
|
1989
1913
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1990
1914
|
switch (errorCode) {
|
|
1991
1915
|
case "EntityNotFoundException":
|
|
@@ -2002,14 +1926,12 @@ const deserializeAws_json1_1DescribeGroupCommandError = async (output, context)
|
|
|
2002
1926
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
2003
1927
|
default:
|
|
2004
1928
|
const parsedBody = parsedOutput.body;
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
$metadata,
|
|
1929
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1930
|
+
output,
|
|
1931
|
+
parsedBody,
|
|
1932
|
+
exceptionCtor: WorkMailServiceException_1.WorkMailServiceException,
|
|
1933
|
+
errorCode,
|
|
2011
1934
|
});
|
|
2012
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2013
1935
|
}
|
|
2014
1936
|
};
|
|
2015
1937
|
const deserializeAws_json1_1DescribeInboundDmarcSettingsCommand = async (output, context) => {
|
|
@@ -2031,7 +1953,6 @@ const deserializeAws_json1_1DescribeInboundDmarcSettingsCommandError = async (ou
|
|
|
2031
1953
|
...output,
|
|
2032
1954
|
body: await parseBody(output.body, context),
|
|
2033
1955
|
};
|
|
2034
|
-
let response;
|
|
2035
1956
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2036
1957
|
switch (errorCode) {
|
|
2037
1958
|
case "OrganizationNotFoundException":
|
|
@@ -2042,14 +1963,12 @@ const deserializeAws_json1_1DescribeInboundDmarcSettingsCommandError = async (ou
|
|
|
2042
1963
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
2043
1964
|
default:
|
|
2044
1965
|
const parsedBody = parsedOutput.body;
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
$metadata,
|
|
1966
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1967
|
+
output,
|
|
1968
|
+
parsedBody,
|
|
1969
|
+
exceptionCtor: WorkMailServiceException_1.WorkMailServiceException,
|
|
1970
|
+
errorCode,
|
|
2051
1971
|
});
|
|
2052
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2053
1972
|
}
|
|
2054
1973
|
};
|
|
2055
1974
|
const deserializeAws_json1_1DescribeMailboxExportJobCommand = async (output, context) => {
|
|
@@ -2071,7 +1990,6 @@ const deserializeAws_json1_1DescribeMailboxExportJobCommandError = async (output
|
|
|
2071
1990
|
...output,
|
|
2072
1991
|
body: await parseBody(output.body, context),
|
|
2073
1992
|
};
|
|
2074
|
-
let response;
|
|
2075
1993
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2076
1994
|
switch (errorCode) {
|
|
2077
1995
|
case "EntityNotFoundException":
|
|
@@ -2088,14 +2006,12 @@ const deserializeAws_json1_1DescribeMailboxExportJobCommandError = async (output
|
|
|
2088
2006
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
2089
2007
|
default:
|
|
2090
2008
|
const parsedBody = parsedOutput.body;
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
$metadata,
|
|
2009
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2010
|
+
output,
|
|
2011
|
+
parsedBody,
|
|
2012
|
+
exceptionCtor: WorkMailServiceException_1.WorkMailServiceException,
|
|
2013
|
+
errorCode,
|
|
2097
2014
|
});
|
|
2098
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2099
2015
|
}
|
|
2100
2016
|
};
|
|
2101
2017
|
const deserializeAws_json1_1DescribeOrganizationCommand = async (output, context) => {
|
|
@@ -2117,7 +2033,6 @@ const deserializeAws_json1_1DescribeOrganizationCommandError = async (output, co
|
|
|
2117
2033
|
...output,
|
|
2118
2034
|
body: await parseBody(output.body, context),
|
|
2119
2035
|
};
|
|
2120
|
-
let response;
|
|
2121
2036
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2122
2037
|
switch (errorCode) {
|
|
2123
2038
|
case "InvalidParameterException":
|
|
@@ -2128,14 +2043,12 @@ const deserializeAws_json1_1DescribeOrganizationCommandError = async (output, co
|
|
|
2128
2043
|
throw await deserializeAws_json1_1OrganizationNotFoundExceptionResponse(parsedOutput, context);
|
|
2129
2044
|
default:
|
|
2130
2045
|
const parsedBody = parsedOutput.body;
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
$metadata,
|
|
2046
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2047
|
+
output,
|
|
2048
|
+
parsedBody,
|
|
2049
|
+
exceptionCtor: WorkMailServiceException_1.WorkMailServiceException,
|
|
2050
|
+
errorCode,
|
|
2137
2051
|
});
|
|
2138
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2139
2052
|
}
|
|
2140
2053
|
};
|
|
2141
2054
|
const deserializeAws_json1_1DescribeResourceCommand = async (output, context) => {
|
|
@@ -2157,7 +2070,6 @@ const deserializeAws_json1_1DescribeResourceCommandError = async (output, contex
|
|
|
2157
2070
|
...output,
|
|
2158
2071
|
body: await parseBody(output.body, context),
|
|
2159
2072
|
};
|
|
2160
|
-
let response;
|
|
2161
2073
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2162
2074
|
switch (errorCode) {
|
|
2163
2075
|
case "EntityNotFoundException":
|
|
@@ -2174,14 +2086,12 @@ const deserializeAws_json1_1DescribeResourceCommandError = async (output, contex
|
|
|
2174
2086
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
2175
2087
|
default:
|
|
2176
2088
|
const parsedBody = parsedOutput.body;
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
$metadata,
|
|
2089
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2090
|
+
output,
|
|
2091
|
+
parsedBody,
|
|
2092
|
+
exceptionCtor: WorkMailServiceException_1.WorkMailServiceException,
|
|
2093
|
+
errorCode,
|
|
2183
2094
|
});
|
|
2184
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2185
2095
|
}
|
|
2186
2096
|
};
|
|
2187
2097
|
const deserializeAws_json1_1DescribeUserCommand = async (output, context) => {
|
|
@@ -2203,7 +2113,6 @@ const deserializeAws_json1_1DescribeUserCommandError = async (output, context) =
|
|
|
2203
2113
|
...output,
|
|
2204
2114
|
body: await parseBody(output.body, context),
|
|
2205
2115
|
};
|
|
2206
|
-
let response;
|
|
2207
2116
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2208
2117
|
switch (errorCode) {
|
|
2209
2118
|
case "EntityNotFoundException":
|
|
@@ -2220,14 +2129,12 @@ const deserializeAws_json1_1DescribeUserCommandError = async (output, context) =
|
|
|
2220
2129
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
2221
2130
|
default:
|
|
2222
2131
|
const parsedBody = parsedOutput.body;
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
$metadata,
|
|
2132
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2133
|
+
output,
|
|
2134
|
+
parsedBody,
|
|
2135
|
+
exceptionCtor: WorkMailServiceException_1.WorkMailServiceException,
|
|
2136
|
+
errorCode,
|
|
2229
2137
|
});
|
|
2230
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2231
2138
|
}
|
|
2232
2139
|
};
|
|
2233
2140
|
const deserializeAws_json1_1DisassociateDelegateFromResourceCommand = async (output, context) => {
|
|
@@ -2249,7 +2156,6 @@ const deserializeAws_json1_1DisassociateDelegateFromResourceCommandError = async
|
|
|
2249
2156
|
...output,
|
|
2250
2157
|
body: await parseBody(output.body, context),
|
|
2251
2158
|
};
|
|
2252
|
-
let response;
|
|
2253
2159
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2254
2160
|
switch (errorCode) {
|
|
2255
2161
|
case "EntityNotFoundException":
|
|
@@ -2269,14 +2175,12 @@ const deserializeAws_json1_1DisassociateDelegateFromResourceCommandError = async
|
|
|
2269
2175
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
2270
2176
|
default:
|
|
2271
2177
|
const parsedBody = parsedOutput.body;
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
$metadata,
|
|
2178
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2179
|
+
output,
|
|
2180
|
+
parsedBody,
|
|
2181
|
+
exceptionCtor: WorkMailServiceException_1.WorkMailServiceException,
|
|
2182
|
+
errorCode,
|
|
2278
2183
|
});
|
|
2279
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2280
2184
|
}
|
|
2281
2185
|
};
|
|
2282
2186
|
const deserializeAws_json1_1DisassociateMemberFromGroupCommand = async (output, context) => {
|
|
@@ -2298,7 +2202,6 @@ const deserializeAws_json1_1DisassociateMemberFromGroupCommandError = async (out
|
|
|
2298
2202
|
...output,
|
|
2299
2203
|
body: await parseBody(output.body, context),
|
|
2300
2204
|
};
|
|
2301
|
-
let response;
|
|
2302
2205
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2303
2206
|
switch (errorCode) {
|
|
2304
2207
|
case "DirectoryServiceAuthenticationFailedException":
|
|
@@ -2327,14 +2230,12 @@ const deserializeAws_json1_1DisassociateMemberFromGroupCommandError = async (out
|
|
|
2327
2230
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
2328
2231
|
default:
|
|
2329
2232
|
const parsedBody = parsedOutput.body;
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
$metadata,
|
|
2233
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2234
|
+
output,
|
|
2235
|
+
parsedBody,
|
|
2236
|
+
exceptionCtor: WorkMailServiceException_1.WorkMailServiceException,
|
|
2237
|
+
errorCode,
|
|
2336
2238
|
});
|
|
2337
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2338
2239
|
}
|
|
2339
2240
|
};
|
|
2340
2241
|
const deserializeAws_json1_1GetAccessControlEffectCommand = async (output, context) => {
|
|
@@ -2356,7 +2257,6 @@ const deserializeAws_json1_1GetAccessControlEffectCommandError = async (output,
|
|
|
2356
2257
|
...output,
|
|
2357
2258
|
body: await parseBody(output.body, context),
|
|
2358
2259
|
};
|
|
2359
|
-
let response;
|
|
2360
2260
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2361
2261
|
switch (errorCode) {
|
|
2362
2262
|
case "EntityNotFoundException":
|
|
@@ -2373,14 +2273,12 @@ const deserializeAws_json1_1GetAccessControlEffectCommandError = async (output,
|
|
|
2373
2273
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
2374
2274
|
default:
|
|
2375
2275
|
const parsedBody = parsedOutput.body;
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
$metadata,
|
|
2276
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2277
|
+
output,
|
|
2278
|
+
parsedBody,
|
|
2279
|
+
exceptionCtor: WorkMailServiceException_1.WorkMailServiceException,
|
|
2280
|
+
errorCode,
|
|
2382
2281
|
});
|
|
2383
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2384
2282
|
}
|
|
2385
2283
|
};
|
|
2386
2284
|
const deserializeAws_json1_1GetDefaultRetentionPolicyCommand = async (output, context) => {
|
|
@@ -2402,7 +2300,6 @@ const deserializeAws_json1_1GetDefaultRetentionPolicyCommandError = async (outpu
|
|
|
2402
2300
|
...output,
|
|
2403
2301
|
body: await parseBody(output.body, context),
|
|
2404
2302
|
};
|
|
2405
|
-
let response;
|
|
2406
2303
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2407
2304
|
switch (errorCode) {
|
|
2408
2305
|
case "EntityNotFoundException":
|
|
@@ -2419,14 +2316,12 @@ const deserializeAws_json1_1GetDefaultRetentionPolicyCommandError = async (outpu
|
|
|
2419
2316
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
2420
2317
|
default:
|
|
2421
2318
|
const parsedBody = parsedOutput.body;
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
$metadata,
|
|
2319
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2320
|
+
output,
|
|
2321
|
+
parsedBody,
|
|
2322
|
+
exceptionCtor: WorkMailServiceException_1.WorkMailServiceException,
|
|
2323
|
+
errorCode,
|
|
2428
2324
|
});
|
|
2429
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2430
2325
|
}
|
|
2431
2326
|
};
|
|
2432
2327
|
const deserializeAws_json1_1GetMailboxDetailsCommand = async (output, context) => {
|
|
@@ -2448,7 +2343,6 @@ const deserializeAws_json1_1GetMailboxDetailsCommandError = async (output, conte
|
|
|
2448
2343
|
...output,
|
|
2449
2344
|
body: await parseBody(output.body, context),
|
|
2450
2345
|
};
|
|
2451
|
-
let response;
|
|
2452
2346
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2453
2347
|
switch (errorCode) {
|
|
2454
2348
|
case "EntityNotFoundException":
|
|
@@ -2462,14 +2356,12 @@ const deserializeAws_json1_1GetMailboxDetailsCommandError = async (output, conte
|
|
|
2462
2356
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
2463
2357
|
default:
|
|
2464
2358
|
const parsedBody = parsedOutput.body;
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
$metadata,
|
|
2359
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2360
|
+
output,
|
|
2361
|
+
parsedBody,
|
|
2362
|
+
exceptionCtor: WorkMailServiceException_1.WorkMailServiceException,
|
|
2363
|
+
errorCode,
|
|
2471
2364
|
});
|
|
2472
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2473
2365
|
}
|
|
2474
2366
|
};
|
|
2475
2367
|
const deserializeAws_json1_1GetMailDomainCommand = async (output, context) => {
|
|
@@ -2491,7 +2383,6 @@ const deserializeAws_json1_1GetMailDomainCommandError = async (output, context)
|
|
|
2491
2383
|
...output,
|
|
2492
2384
|
body: await parseBody(output.body, context),
|
|
2493
2385
|
};
|
|
2494
|
-
let response;
|
|
2495
2386
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2496
2387
|
switch (errorCode) {
|
|
2497
2388
|
case "InvalidParameterException":
|
|
@@ -2508,14 +2399,12 @@ const deserializeAws_json1_1GetMailDomainCommandError = async (output, context)
|
|
|
2508
2399
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
2509
2400
|
default:
|
|
2510
2401
|
const parsedBody = parsedOutput.body;
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
$metadata,
|
|
2402
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2403
|
+
output,
|
|
2404
|
+
parsedBody,
|
|
2405
|
+
exceptionCtor: WorkMailServiceException_1.WorkMailServiceException,
|
|
2406
|
+
errorCode,
|
|
2517
2407
|
});
|
|
2518
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2519
2408
|
}
|
|
2520
2409
|
};
|
|
2521
2410
|
const deserializeAws_json1_1GetMobileDeviceAccessEffectCommand = async (output, context) => {
|
|
@@ -2537,7 +2426,6 @@ const deserializeAws_json1_1GetMobileDeviceAccessEffectCommandError = async (out
|
|
|
2537
2426
|
...output,
|
|
2538
2427
|
body: await parseBody(output.body, context),
|
|
2539
2428
|
};
|
|
2540
|
-
let response;
|
|
2541
2429
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2542
2430
|
switch (errorCode) {
|
|
2543
2431
|
case "InvalidParameterException":
|
|
@@ -2551,14 +2439,12 @@ const deserializeAws_json1_1GetMobileDeviceAccessEffectCommandError = async (out
|
|
|
2551
2439
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
2552
2440
|
default:
|
|
2553
2441
|
const parsedBody = parsedOutput.body;
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
$metadata,
|
|
2442
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2443
|
+
output,
|
|
2444
|
+
parsedBody,
|
|
2445
|
+
exceptionCtor: WorkMailServiceException_1.WorkMailServiceException,
|
|
2446
|
+
errorCode,
|
|
2560
2447
|
});
|
|
2561
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2562
2448
|
}
|
|
2563
2449
|
};
|
|
2564
2450
|
const deserializeAws_json1_1GetMobileDeviceAccessOverrideCommand = async (output, context) => {
|
|
@@ -2580,7 +2466,6 @@ const deserializeAws_json1_1GetMobileDeviceAccessOverrideCommandError = async (o
|
|
|
2580
2466
|
...output,
|
|
2581
2467
|
body: await parseBody(output.body, context),
|
|
2582
2468
|
};
|
|
2583
|
-
let response;
|
|
2584
2469
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2585
2470
|
switch (errorCode) {
|
|
2586
2471
|
case "EntityNotFoundException":
|
|
@@ -2600,14 +2485,12 @@ const deserializeAws_json1_1GetMobileDeviceAccessOverrideCommandError = async (o
|
|
|
2600
2485
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2601
2486
|
default:
|
|
2602
2487
|
const parsedBody = parsedOutput.body;
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
$metadata,
|
|
2488
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2489
|
+
output,
|
|
2490
|
+
parsedBody,
|
|
2491
|
+
exceptionCtor: WorkMailServiceException_1.WorkMailServiceException,
|
|
2492
|
+
errorCode,
|
|
2609
2493
|
});
|
|
2610
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2611
2494
|
}
|
|
2612
2495
|
};
|
|
2613
2496
|
const deserializeAws_json1_1ListAccessControlRulesCommand = async (output, context) => {
|
|
@@ -2629,7 +2512,6 @@ const deserializeAws_json1_1ListAccessControlRulesCommandError = async (output,
|
|
|
2629
2512
|
...output,
|
|
2630
2513
|
body: await parseBody(output.body, context),
|
|
2631
2514
|
};
|
|
2632
|
-
let response;
|
|
2633
2515
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2634
2516
|
switch (errorCode) {
|
|
2635
2517
|
case "OrganizationNotFoundException":
|
|
@@ -2640,14 +2522,12 @@ const deserializeAws_json1_1ListAccessControlRulesCommandError = async (output,
|
|
|
2640
2522
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
2641
2523
|
default:
|
|
2642
2524
|
const parsedBody = parsedOutput.body;
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
$metadata,
|
|
2525
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2526
|
+
output,
|
|
2527
|
+
parsedBody,
|
|
2528
|
+
exceptionCtor: WorkMailServiceException_1.WorkMailServiceException,
|
|
2529
|
+
errorCode,
|
|
2649
2530
|
});
|
|
2650
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2651
2531
|
}
|
|
2652
2532
|
};
|
|
2653
2533
|
const deserializeAws_json1_1ListAliasesCommand = async (output, context) => {
|
|
@@ -2669,7 +2549,6 @@ const deserializeAws_json1_1ListAliasesCommandError = async (output, context) =>
|
|
|
2669
2549
|
...output,
|
|
2670
2550
|
body: await parseBody(output.body, context),
|
|
2671
2551
|
};
|
|
2672
|
-
let response;
|
|
2673
2552
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2674
2553
|
switch (errorCode) {
|
|
2675
2554
|
case "EntityNotFoundException":
|
|
@@ -2689,14 +2568,12 @@ const deserializeAws_json1_1ListAliasesCommandError = async (output, context) =>
|
|
|
2689
2568
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
2690
2569
|
default:
|
|
2691
2570
|
const parsedBody = parsedOutput.body;
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
$metadata,
|
|
2571
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2572
|
+
output,
|
|
2573
|
+
parsedBody,
|
|
2574
|
+
exceptionCtor: WorkMailServiceException_1.WorkMailServiceException,
|
|
2575
|
+
errorCode,
|
|
2698
2576
|
});
|
|
2699
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2700
2577
|
}
|
|
2701
2578
|
};
|
|
2702
2579
|
const deserializeAws_json1_1ListAvailabilityConfigurationsCommand = async (output, context) => {
|
|
@@ -2718,7 +2595,6 @@ const deserializeAws_json1_1ListAvailabilityConfigurationsCommandError = async (
|
|
|
2718
2595
|
...output,
|
|
2719
2596
|
body: await parseBody(output.body, context),
|
|
2720
2597
|
};
|
|
2721
|
-
let response;
|
|
2722
2598
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2723
2599
|
switch (errorCode) {
|
|
2724
2600
|
case "OrganizationNotFoundException":
|
|
@@ -2729,14 +2605,12 @@ const deserializeAws_json1_1ListAvailabilityConfigurationsCommandError = async (
|
|
|
2729
2605
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
2730
2606
|
default:
|
|
2731
2607
|
const parsedBody = parsedOutput.body;
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
$metadata,
|
|
2608
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2609
|
+
output,
|
|
2610
|
+
parsedBody,
|
|
2611
|
+
exceptionCtor: WorkMailServiceException_1.WorkMailServiceException,
|
|
2612
|
+
errorCode,
|
|
2738
2613
|
});
|
|
2739
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2740
2614
|
}
|
|
2741
2615
|
};
|
|
2742
2616
|
const deserializeAws_json1_1ListGroupMembersCommand = async (output, context) => {
|
|
@@ -2758,7 +2632,6 @@ const deserializeAws_json1_1ListGroupMembersCommandError = async (output, contex
|
|
|
2758
2632
|
...output,
|
|
2759
2633
|
body: await parseBody(output.body, context),
|
|
2760
2634
|
};
|
|
2761
|
-
let response;
|
|
2762
2635
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2763
2636
|
switch (errorCode) {
|
|
2764
2637
|
case "EntityNotFoundException":
|
|
@@ -2778,14 +2651,12 @@ const deserializeAws_json1_1ListGroupMembersCommandError = async (output, contex
|
|
|
2778
2651
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
2779
2652
|
default:
|
|
2780
2653
|
const parsedBody = parsedOutput.body;
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
$metadata,
|
|
2654
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2655
|
+
output,
|
|
2656
|
+
parsedBody,
|
|
2657
|
+
exceptionCtor: WorkMailServiceException_1.WorkMailServiceException,
|
|
2658
|
+
errorCode,
|
|
2787
2659
|
});
|
|
2788
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2789
2660
|
}
|
|
2790
2661
|
};
|
|
2791
2662
|
const deserializeAws_json1_1ListGroupsCommand = async (output, context) => {
|
|
@@ -2807,7 +2678,6 @@ const deserializeAws_json1_1ListGroupsCommandError = async (output, context) =>
|
|
|
2807
2678
|
...output,
|
|
2808
2679
|
body: await parseBody(output.body, context),
|
|
2809
2680
|
};
|
|
2810
|
-
let response;
|
|
2811
2681
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2812
2682
|
switch (errorCode) {
|
|
2813
2683
|
case "EntityNotFoundException":
|
|
@@ -2824,14 +2694,12 @@ const deserializeAws_json1_1ListGroupsCommandError = async (output, context) =>
|
|
|
2824
2694
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
2825
2695
|
default:
|
|
2826
2696
|
const parsedBody = parsedOutput.body;
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
$metadata,
|
|
2697
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2698
|
+
output,
|
|
2699
|
+
parsedBody,
|
|
2700
|
+
exceptionCtor: WorkMailServiceException_1.WorkMailServiceException,
|
|
2701
|
+
errorCode,
|
|
2833
2702
|
});
|
|
2834
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2835
2703
|
}
|
|
2836
2704
|
};
|
|
2837
2705
|
const deserializeAws_json1_1ListMailboxExportJobsCommand = async (output, context) => {
|
|
@@ -2853,7 +2721,6 @@ const deserializeAws_json1_1ListMailboxExportJobsCommandError = async (output, c
|
|
|
2853
2721
|
...output,
|
|
2854
2722
|
body: await parseBody(output.body, context),
|
|
2855
2723
|
};
|
|
2856
|
-
let response;
|
|
2857
2724
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2858
2725
|
switch (errorCode) {
|
|
2859
2726
|
case "InvalidParameterException":
|
|
@@ -2867,14 +2734,12 @@ const deserializeAws_json1_1ListMailboxExportJobsCommandError = async (output, c
|
|
|
2867
2734
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
2868
2735
|
default:
|
|
2869
2736
|
const parsedBody = parsedOutput.body;
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
$metadata,
|
|
2737
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2738
|
+
output,
|
|
2739
|
+
parsedBody,
|
|
2740
|
+
exceptionCtor: WorkMailServiceException_1.WorkMailServiceException,
|
|
2741
|
+
errorCode,
|
|
2876
2742
|
});
|
|
2877
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2878
2743
|
}
|
|
2879
2744
|
};
|
|
2880
2745
|
const deserializeAws_json1_1ListMailboxPermissionsCommand = async (output, context) => {
|
|
@@ -2896,7 +2761,6 @@ const deserializeAws_json1_1ListMailboxPermissionsCommandError = async (output,
|
|
|
2896
2761
|
...output,
|
|
2897
2762
|
body: await parseBody(output.body, context),
|
|
2898
2763
|
};
|
|
2899
|
-
let response;
|
|
2900
2764
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2901
2765
|
switch (errorCode) {
|
|
2902
2766
|
case "EntityNotFoundException":
|
|
@@ -2913,14 +2777,12 @@ const deserializeAws_json1_1ListMailboxPermissionsCommandError = async (output,
|
|
|
2913
2777
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
2914
2778
|
default:
|
|
2915
2779
|
const parsedBody = parsedOutput.body;
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
$metadata,
|
|
2780
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2781
|
+
output,
|
|
2782
|
+
parsedBody,
|
|
2783
|
+
exceptionCtor: WorkMailServiceException_1.WorkMailServiceException,
|
|
2784
|
+
errorCode,
|
|
2922
2785
|
});
|
|
2923
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2924
2786
|
}
|
|
2925
2787
|
};
|
|
2926
2788
|
const deserializeAws_json1_1ListMailDomainsCommand = async (output, context) => {
|
|
@@ -2942,7 +2804,6 @@ const deserializeAws_json1_1ListMailDomainsCommandError = async (output, context
|
|
|
2942
2804
|
...output,
|
|
2943
2805
|
body: await parseBody(output.body, context),
|
|
2944
2806
|
};
|
|
2945
|
-
let response;
|
|
2946
2807
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2947
2808
|
switch (errorCode) {
|
|
2948
2809
|
case "InvalidParameterException":
|
|
@@ -2956,14 +2817,12 @@ const deserializeAws_json1_1ListMailDomainsCommandError = async (output, context
|
|
|
2956
2817
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
2957
2818
|
default:
|
|
2958
2819
|
const parsedBody = parsedOutput.body;
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
$metadata,
|
|
2820
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2821
|
+
output,
|
|
2822
|
+
parsedBody,
|
|
2823
|
+
exceptionCtor: WorkMailServiceException_1.WorkMailServiceException,
|
|
2824
|
+
errorCode,
|
|
2965
2825
|
});
|
|
2966
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2967
2826
|
}
|
|
2968
2827
|
};
|
|
2969
2828
|
const deserializeAws_json1_1ListMobileDeviceAccessOverridesCommand = async (output, context) => {
|
|
@@ -2985,7 +2844,6 @@ const deserializeAws_json1_1ListMobileDeviceAccessOverridesCommandError = async
|
|
|
2985
2844
|
...output,
|
|
2986
2845
|
body: await parseBody(output.body, context),
|
|
2987
2846
|
};
|
|
2988
|
-
let response;
|
|
2989
2847
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2990
2848
|
switch (errorCode) {
|
|
2991
2849
|
case "EntityNotFoundException":
|
|
@@ -3002,14 +2860,12 @@ const deserializeAws_json1_1ListMobileDeviceAccessOverridesCommandError = async
|
|
|
3002
2860
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
3003
2861
|
default:
|
|
3004
2862
|
const parsedBody = parsedOutput.body;
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
$metadata,
|
|
2863
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2864
|
+
output,
|
|
2865
|
+
parsedBody,
|
|
2866
|
+
exceptionCtor: WorkMailServiceException_1.WorkMailServiceException,
|
|
2867
|
+
errorCode,
|
|
3011
2868
|
});
|
|
3012
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3013
2869
|
}
|
|
3014
2870
|
};
|
|
3015
2871
|
const deserializeAws_json1_1ListMobileDeviceAccessRulesCommand = async (output, context) => {
|
|
@@ -3031,7 +2887,6 @@ const deserializeAws_json1_1ListMobileDeviceAccessRulesCommandError = async (out
|
|
|
3031
2887
|
...output,
|
|
3032
2888
|
body: await parseBody(output.body, context),
|
|
3033
2889
|
};
|
|
3034
|
-
let response;
|
|
3035
2890
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3036
2891
|
switch (errorCode) {
|
|
3037
2892
|
case "InvalidParameterException":
|
|
@@ -3045,14 +2900,12 @@ const deserializeAws_json1_1ListMobileDeviceAccessRulesCommandError = async (out
|
|
|
3045
2900
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
3046
2901
|
default:
|
|
3047
2902
|
const parsedBody = parsedOutput.body;
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
$metadata,
|
|
2903
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2904
|
+
output,
|
|
2905
|
+
parsedBody,
|
|
2906
|
+
exceptionCtor: WorkMailServiceException_1.WorkMailServiceException,
|
|
2907
|
+
errorCode,
|
|
3054
2908
|
});
|
|
3055
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3056
2909
|
}
|
|
3057
2910
|
};
|
|
3058
2911
|
const deserializeAws_json1_1ListOrganizationsCommand = async (output, context) => {
|
|
@@ -3074,7 +2927,6 @@ const deserializeAws_json1_1ListOrganizationsCommandError = async (output, conte
|
|
|
3074
2927
|
...output,
|
|
3075
2928
|
body: await parseBody(output.body, context),
|
|
3076
2929
|
};
|
|
3077
|
-
let response;
|
|
3078
2930
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3079
2931
|
switch (errorCode) {
|
|
3080
2932
|
case "InvalidParameterException":
|
|
@@ -3082,14 +2934,12 @@ const deserializeAws_json1_1ListOrganizationsCommandError = async (output, conte
|
|
|
3082
2934
|
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
3083
2935
|
default:
|
|
3084
2936
|
const parsedBody = parsedOutput.body;
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
$metadata,
|
|
2937
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2938
|
+
output,
|
|
2939
|
+
parsedBody,
|
|
2940
|
+
exceptionCtor: WorkMailServiceException_1.WorkMailServiceException,
|
|
2941
|
+
errorCode,
|
|
3091
2942
|
});
|
|
3092
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3093
2943
|
}
|
|
3094
2944
|
};
|
|
3095
2945
|
const deserializeAws_json1_1ListResourceDelegatesCommand = async (output, context) => {
|
|
@@ -3111,7 +2961,6 @@ const deserializeAws_json1_1ListResourceDelegatesCommandError = async (output, c
|
|
|
3111
2961
|
...output,
|
|
3112
2962
|
body: await parseBody(output.body, context),
|
|
3113
2963
|
};
|
|
3114
|
-
let response;
|
|
3115
2964
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3116
2965
|
switch (errorCode) {
|
|
3117
2966
|
case "EntityNotFoundException":
|
|
@@ -3131,14 +2980,12 @@ const deserializeAws_json1_1ListResourceDelegatesCommandError = async (output, c
|
|
|
3131
2980
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
3132
2981
|
default:
|
|
3133
2982
|
const parsedBody = parsedOutput.body;
|
|
3134
|
-
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
|
|
3138
|
-
|
|
3139
|
-
$metadata,
|
|
2983
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2984
|
+
output,
|
|
2985
|
+
parsedBody,
|
|
2986
|
+
exceptionCtor: WorkMailServiceException_1.WorkMailServiceException,
|
|
2987
|
+
errorCode,
|
|
3140
2988
|
});
|
|
3141
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3142
2989
|
}
|
|
3143
2990
|
};
|
|
3144
2991
|
const deserializeAws_json1_1ListResourcesCommand = async (output, context) => {
|
|
@@ -3160,7 +3007,6 @@ const deserializeAws_json1_1ListResourcesCommandError = async (output, context)
|
|
|
3160
3007
|
...output,
|
|
3161
3008
|
body: await parseBody(output.body, context),
|
|
3162
3009
|
};
|
|
3163
|
-
let response;
|
|
3164
3010
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3165
3011
|
switch (errorCode) {
|
|
3166
3012
|
case "InvalidParameterException":
|
|
@@ -3174,14 +3020,12 @@ const deserializeAws_json1_1ListResourcesCommandError = async (output, context)
|
|
|
3174
3020
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
3175
3021
|
default:
|
|
3176
3022
|
const parsedBody = parsedOutput.body;
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
|
|
3180
|
-
|
|
3181
|
-
|
|
3182
|
-
$metadata,
|
|
3023
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3024
|
+
output,
|
|
3025
|
+
parsedBody,
|
|
3026
|
+
exceptionCtor: WorkMailServiceException_1.WorkMailServiceException,
|
|
3027
|
+
errorCode,
|
|
3183
3028
|
});
|
|
3184
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3185
3029
|
}
|
|
3186
3030
|
};
|
|
3187
3031
|
const deserializeAws_json1_1ListTagsForResourceCommand = async (output, context) => {
|
|
@@ -3203,7 +3047,6 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
3203
3047
|
...output,
|
|
3204
3048
|
body: await parseBody(output.body, context),
|
|
3205
3049
|
};
|
|
3206
|
-
let response;
|
|
3207
3050
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3208
3051
|
switch (errorCode) {
|
|
3209
3052
|
case "ResourceNotFoundException":
|
|
@@ -3211,14 +3054,12 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
3211
3054
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3212
3055
|
default:
|
|
3213
3056
|
const parsedBody = parsedOutput.body;
|
|
3214
|
-
|
|
3215
|
-
|
|
3216
|
-
|
|
3217
|
-
|
|
3218
|
-
|
|
3219
|
-
$metadata,
|
|
3057
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3058
|
+
output,
|
|
3059
|
+
parsedBody,
|
|
3060
|
+
exceptionCtor: WorkMailServiceException_1.WorkMailServiceException,
|
|
3061
|
+
errorCode,
|
|
3220
3062
|
});
|
|
3221
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3222
3063
|
}
|
|
3223
3064
|
};
|
|
3224
3065
|
const deserializeAws_json1_1ListUsersCommand = async (output, context) => {
|
|
@@ -3240,7 +3081,6 @@ const deserializeAws_json1_1ListUsersCommandError = async (output, context) => {
|
|
|
3240
3081
|
...output,
|
|
3241
3082
|
body: await parseBody(output.body, context),
|
|
3242
3083
|
};
|
|
3243
|
-
let response;
|
|
3244
3084
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3245
3085
|
switch (errorCode) {
|
|
3246
3086
|
case "InvalidParameterException":
|
|
@@ -3254,14 +3094,12 @@ const deserializeAws_json1_1ListUsersCommandError = async (output, context) => {
|
|
|
3254
3094
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
3255
3095
|
default:
|
|
3256
3096
|
const parsedBody = parsedOutput.body;
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
|
|
3262
|
-
$metadata,
|
|
3097
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3098
|
+
output,
|
|
3099
|
+
parsedBody,
|
|
3100
|
+
exceptionCtor: WorkMailServiceException_1.WorkMailServiceException,
|
|
3101
|
+
errorCode,
|
|
3263
3102
|
});
|
|
3264
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3265
3103
|
}
|
|
3266
3104
|
};
|
|
3267
3105
|
const deserializeAws_json1_1PutAccessControlRuleCommand = async (output, context) => {
|
|
@@ -3283,7 +3121,6 @@ const deserializeAws_json1_1PutAccessControlRuleCommandError = async (output, co
|
|
|
3283
3121
|
...output,
|
|
3284
3122
|
body: await parseBody(output.body, context),
|
|
3285
3123
|
};
|
|
3286
|
-
let response;
|
|
3287
3124
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3288
3125
|
switch (errorCode) {
|
|
3289
3126
|
case "EntityNotFoundException":
|
|
@@ -3303,14 +3140,12 @@ const deserializeAws_json1_1PutAccessControlRuleCommandError = async (output, co
|
|
|
3303
3140
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
3304
3141
|
default:
|
|
3305
3142
|
const parsedBody = parsedOutput.body;
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
|
|
3310
|
-
|
|
3311
|
-
$metadata,
|
|
3143
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3144
|
+
output,
|
|
3145
|
+
parsedBody,
|
|
3146
|
+
exceptionCtor: WorkMailServiceException_1.WorkMailServiceException,
|
|
3147
|
+
errorCode,
|
|
3312
3148
|
});
|
|
3313
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3314
3149
|
}
|
|
3315
3150
|
};
|
|
3316
3151
|
const deserializeAws_json1_1PutEmailMonitoringConfigurationCommand = async (output, context) => {
|
|
@@ -3332,7 +3167,6 @@ const deserializeAws_json1_1PutEmailMonitoringConfigurationCommandError = async
|
|
|
3332
3167
|
...output,
|
|
3333
3168
|
body: await parseBody(output.body, context),
|
|
3334
3169
|
};
|
|
3335
|
-
let response;
|
|
3336
3170
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3337
3171
|
switch (errorCode) {
|
|
3338
3172
|
case "InvalidParameterException":
|
|
@@ -3349,14 +3183,12 @@ const deserializeAws_json1_1PutEmailMonitoringConfigurationCommandError = async
|
|
|
3349
3183
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3350
3184
|
default:
|
|
3351
3185
|
const parsedBody = parsedOutput.body;
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
$metadata,
|
|
3186
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3187
|
+
output,
|
|
3188
|
+
parsedBody,
|
|
3189
|
+
exceptionCtor: WorkMailServiceException_1.WorkMailServiceException,
|
|
3190
|
+
errorCode,
|
|
3358
3191
|
});
|
|
3359
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3360
3192
|
}
|
|
3361
3193
|
};
|
|
3362
3194
|
const deserializeAws_json1_1PutInboundDmarcSettingsCommand = async (output, context) => {
|
|
@@ -3378,7 +3210,6 @@ const deserializeAws_json1_1PutInboundDmarcSettingsCommandError = async (output,
|
|
|
3378
3210
|
...output,
|
|
3379
3211
|
body: await parseBody(output.body, context),
|
|
3380
3212
|
};
|
|
3381
|
-
let response;
|
|
3382
3213
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3383
3214
|
switch (errorCode) {
|
|
3384
3215
|
case "OrganizationNotFoundException":
|
|
@@ -3389,14 +3220,12 @@ const deserializeAws_json1_1PutInboundDmarcSettingsCommandError = async (output,
|
|
|
3389
3220
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
3390
3221
|
default:
|
|
3391
3222
|
const parsedBody = parsedOutput.body;
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
-
$metadata,
|
|
3223
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3224
|
+
output,
|
|
3225
|
+
parsedBody,
|
|
3226
|
+
exceptionCtor: WorkMailServiceException_1.WorkMailServiceException,
|
|
3227
|
+
errorCode,
|
|
3398
3228
|
});
|
|
3399
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3400
3229
|
}
|
|
3401
3230
|
};
|
|
3402
3231
|
const deserializeAws_json1_1PutMailboxPermissionsCommand = async (output, context) => {
|
|
@@ -3418,7 +3247,6 @@ const deserializeAws_json1_1PutMailboxPermissionsCommandError = async (output, c
|
|
|
3418
3247
|
...output,
|
|
3419
3248
|
body: await parseBody(output.body, context),
|
|
3420
3249
|
};
|
|
3421
|
-
let response;
|
|
3422
3250
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3423
3251
|
switch (errorCode) {
|
|
3424
3252
|
case "EntityNotFoundException":
|
|
@@ -3438,14 +3266,12 @@ const deserializeAws_json1_1PutMailboxPermissionsCommandError = async (output, c
|
|
|
3438
3266
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
3439
3267
|
default:
|
|
3440
3268
|
const parsedBody = parsedOutput.body;
|
|
3441
|
-
|
|
3442
|
-
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
|
|
3446
|
-
$metadata,
|
|
3269
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3270
|
+
output,
|
|
3271
|
+
parsedBody,
|
|
3272
|
+
exceptionCtor: WorkMailServiceException_1.WorkMailServiceException,
|
|
3273
|
+
errorCode,
|
|
3447
3274
|
});
|
|
3448
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3449
3275
|
}
|
|
3450
3276
|
};
|
|
3451
3277
|
const deserializeAws_json1_1PutMobileDeviceAccessOverrideCommand = async (output, context) => {
|
|
@@ -3467,7 +3293,6 @@ const deserializeAws_json1_1PutMobileDeviceAccessOverrideCommandError = async (o
|
|
|
3467
3293
|
...output,
|
|
3468
3294
|
body: await parseBody(output.body, context),
|
|
3469
3295
|
};
|
|
3470
|
-
let response;
|
|
3471
3296
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3472
3297
|
switch (errorCode) {
|
|
3473
3298
|
case "EntityNotFoundException":
|
|
@@ -3487,14 +3312,12 @@ const deserializeAws_json1_1PutMobileDeviceAccessOverrideCommandError = async (o
|
|
|
3487
3312
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
3488
3313
|
default:
|
|
3489
3314
|
const parsedBody = parsedOutput.body;
|
|
3490
|
-
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
$metadata,
|
|
3315
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3316
|
+
output,
|
|
3317
|
+
parsedBody,
|
|
3318
|
+
exceptionCtor: WorkMailServiceException_1.WorkMailServiceException,
|
|
3319
|
+
errorCode,
|
|
3496
3320
|
});
|
|
3497
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3498
3321
|
}
|
|
3499
3322
|
};
|
|
3500
3323
|
const deserializeAws_json1_1PutRetentionPolicyCommand = async (output, context) => {
|
|
@@ -3516,7 +3339,6 @@ const deserializeAws_json1_1PutRetentionPolicyCommandError = async (output, cont
|
|
|
3516
3339
|
...output,
|
|
3517
3340
|
body: await parseBody(output.body, context),
|
|
3518
3341
|
};
|
|
3519
|
-
let response;
|
|
3520
3342
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3521
3343
|
switch (errorCode) {
|
|
3522
3344
|
case "InvalidParameterException":
|
|
@@ -3533,14 +3355,12 @@ const deserializeAws_json1_1PutRetentionPolicyCommandError = async (output, cont
|
|
|
3533
3355
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
3534
3356
|
default:
|
|
3535
3357
|
const parsedBody = parsedOutput.body;
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
|
|
3541
|
-
$metadata,
|
|
3358
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3359
|
+
output,
|
|
3360
|
+
parsedBody,
|
|
3361
|
+
exceptionCtor: WorkMailServiceException_1.WorkMailServiceException,
|
|
3362
|
+
errorCode,
|
|
3542
3363
|
});
|
|
3543
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3544
3364
|
}
|
|
3545
3365
|
};
|
|
3546
3366
|
const deserializeAws_json1_1RegisterMailDomainCommand = async (output, context) => {
|
|
@@ -3562,7 +3382,6 @@ const deserializeAws_json1_1RegisterMailDomainCommandError = async (output, cont
|
|
|
3562
3382
|
...output,
|
|
3563
3383
|
body: await parseBody(output.body, context),
|
|
3564
3384
|
};
|
|
3565
|
-
let response;
|
|
3566
3385
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3567
3386
|
switch (errorCode) {
|
|
3568
3387
|
case "InvalidParameterException":
|
|
@@ -3582,14 +3401,12 @@ const deserializeAws_json1_1RegisterMailDomainCommandError = async (output, cont
|
|
|
3582
3401
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
3583
3402
|
default:
|
|
3584
3403
|
const parsedBody = parsedOutput.body;
|
|
3585
|
-
|
|
3586
|
-
|
|
3587
|
-
|
|
3588
|
-
|
|
3589
|
-
|
|
3590
|
-
$metadata,
|
|
3404
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3405
|
+
output,
|
|
3406
|
+
parsedBody,
|
|
3407
|
+
exceptionCtor: WorkMailServiceException_1.WorkMailServiceException,
|
|
3408
|
+
errorCode,
|
|
3591
3409
|
});
|
|
3592
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3593
3410
|
}
|
|
3594
3411
|
};
|
|
3595
3412
|
const deserializeAws_json1_1RegisterToWorkMailCommand = async (output, context) => {
|
|
@@ -3611,7 +3428,6 @@ const deserializeAws_json1_1RegisterToWorkMailCommandError = async (output, cont
|
|
|
3611
3428
|
...output,
|
|
3612
3429
|
body: await parseBody(output.body, context),
|
|
3613
3430
|
};
|
|
3614
|
-
let response;
|
|
3615
3431
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3616
3432
|
switch (errorCode) {
|
|
3617
3433
|
case "DirectoryServiceAuthenticationFailedException":
|
|
@@ -3649,14 +3465,12 @@ const deserializeAws_json1_1RegisterToWorkMailCommandError = async (output, cont
|
|
|
3649
3465
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
3650
3466
|
default:
|
|
3651
3467
|
const parsedBody = parsedOutput.body;
|
|
3652
|
-
|
|
3653
|
-
|
|
3654
|
-
|
|
3655
|
-
|
|
3656
|
-
|
|
3657
|
-
$metadata,
|
|
3468
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3469
|
+
output,
|
|
3470
|
+
parsedBody,
|
|
3471
|
+
exceptionCtor: WorkMailServiceException_1.WorkMailServiceException,
|
|
3472
|
+
errorCode,
|
|
3658
3473
|
});
|
|
3659
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3660
3474
|
}
|
|
3661
3475
|
};
|
|
3662
3476
|
const deserializeAws_json1_1ResetPasswordCommand = async (output, context) => {
|
|
@@ -3678,7 +3492,6 @@ const deserializeAws_json1_1ResetPasswordCommandError = async (output, context)
|
|
|
3678
3492
|
...output,
|
|
3679
3493
|
body: await parseBody(output.body, context),
|
|
3680
3494
|
};
|
|
3681
|
-
let response;
|
|
3682
3495
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3683
3496
|
switch (errorCode) {
|
|
3684
3497
|
case "DirectoryServiceAuthenticationFailedException":
|
|
@@ -3710,14 +3523,12 @@ const deserializeAws_json1_1ResetPasswordCommandError = async (output, context)
|
|
|
3710
3523
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
3711
3524
|
default:
|
|
3712
3525
|
const parsedBody = parsedOutput.body;
|
|
3713
|
-
|
|
3714
|
-
|
|
3715
|
-
|
|
3716
|
-
|
|
3717
|
-
|
|
3718
|
-
$metadata,
|
|
3526
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3527
|
+
output,
|
|
3528
|
+
parsedBody,
|
|
3529
|
+
exceptionCtor: WorkMailServiceException_1.WorkMailServiceException,
|
|
3530
|
+
errorCode,
|
|
3719
3531
|
});
|
|
3720
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3721
3532
|
}
|
|
3722
3533
|
};
|
|
3723
3534
|
const deserializeAws_json1_1StartMailboxExportJobCommand = async (output, context) => {
|
|
@@ -3739,7 +3550,6 @@ const deserializeAws_json1_1StartMailboxExportJobCommandError = async (output, c
|
|
|
3739
3550
|
...output,
|
|
3740
3551
|
body: await parseBody(output.body, context),
|
|
3741
3552
|
};
|
|
3742
|
-
let response;
|
|
3743
3553
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3744
3554
|
switch (errorCode) {
|
|
3745
3555
|
case "EntityNotFoundException":
|
|
@@ -3759,14 +3569,12 @@ const deserializeAws_json1_1StartMailboxExportJobCommandError = async (output, c
|
|
|
3759
3569
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
3760
3570
|
default:
|
|
3761
3571
|
const parsedBody = parsedOutput.body;
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
|
|
3766
|
-
|
|
3767
|
-
$metadata,
|
|
3572
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3573
|
+
output,
|
|
3574
|
+
parsedBody,
|
|
3575
|
+
exceptionCtor: WorkMailServiceException_1.WorkMailServiceException,
|
|
3576
|
+
errorCode,
|
|
3768
3577
|
});
|
|
3769
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3770
3578
|
}
|
|
3771
3579
|
};
|
|
3772
3580
|
const deserializeAws_json1_1TagResourceCommand = async (output, context) => {
|
|
@@ -3788,7 +3596,6 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
3788
3596
|
...output,
|
|
3789
3597
|
body: await parseBody(output.body, context),
|
|
3790
3598
|
};
|
|
3791
|
-
let response;
|
|
3792
3599
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3793
3600
|
switch (errorCode) {
|
|
3794
3601
|
case "OrganizationStateException":
|
|
@@ -3802,14 +3609,12 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
3802
3609
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
3803
3610
|
default:
|
|
3804
3611
|
const parsedBody = parsedOutput.body;
|
|
3805
|
-
|
|
3806
|
-
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
|
|
3810
|
-
$metadata,
|
|
3612
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3613
|
+
output,
|
|
3614
|
+
parsedBody,
|
|
3615
|
+
exceptionCtor: WorkMailServiceException_1.WorkMailServiceException,
|
|
3616
|
+
errorCode,
|
|
3811
3617
|
});
|
|
3812
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3813
3618
|
}
|
|
3814
3619
|
};
|
|
3815
3620
|
const deserializeAws_json1_1TestAvailabilityConfigurationCommand = async (output, context) => {
|
|
@@ -3831,7 +3636,6 @@ const deserializeAws_json1_1TestAvailabilityConfigurationCommandError = async (o
|
|
|
3831
3636
|
...output,
|
|
3832
3637
|
body: await parseBody(output.body, context),
|
|
3833
3638
|
};
|
|
3834
|
-
let response;
|
|
3835
3639
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3836
3640
|
switch (errorCode) {
|
|
3837
3641
|
case "InvalidParameterException":
|
|
@@ -3848,14 +3652,12 @@ const deserializeAws_json1_1TestAvailabilityConfigurationCommandError = async (o
|
|
|
3848
3652
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3849
3653
|
default:
|
|
3850
3654
|
const parsedBody = parsedOutput.body;
|
|
3851
|
-
|
|
3852
|
-
|
|
3853
|
-
|
|
3854
|
-
|
|
3855
|
-
|
|
3856
|
-
$metadata,
|
|
3655
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3656
|
+
output,
|
|
3657
|
+
parsedBody,
|
|
3658
|
+
exceptionCtor: WorkMailServiceException_1.WorkMailServiceException,
|
|
3659
|
+
errorCode,
|
|
3857
3660
|
});
|
|
3858
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3859
3661
|
}
|
|
3860
3662
|
};
|
|
3861
3663
|
const deserializeAws_json1_1UntagResourceCommand = async (output, context) => {
|
|
@@ -3877,7 +3679,6 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
3877
3679
|
...output,
|
|
3878
3680
|
body: await parseBody(output.body, context),
|
|
3879
3681
|
};
|
|
3880
|
-
let response;
|
|
3881
3682
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3882
3683
|
switch (errorCode) {
|
|
3883
3684
|
case "ResourceNotFoundException":
|
|
@@ -3885,14 +3686,12 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
3885
3686
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3886
3687
|
default:
|
|
3887
3688
|
const parsedBody = parsedOutput.body;
|
|
3888
|
-
|
|
3889
|
-
|
|
3890
|
-
|
|
3891
|
-
|
|
3892
|
-
|
|
3893
|
-
$metadata,
|
|
3689
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3690
|
+
output,
|
|
3691
|
+
parsedBody,
|
|
3692
|
+
exceptionCtor: WorkMailServiceException_1.WorkMailServiceException,
|
|
3693
|
+
errorCode,
|
|
3894
3694
|
});
|
|
3895
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3896
3695
|
}
|
|
3897
3696
|
};
|
|
3898
3697
|
const deserializeAws_json1_1UpdateAvailabilityConfigurationCommand = async (output, context) => {
|
|
@@ -3914,7 +3713,6 @@ const deserializeAws_json1_1UpdateAvailabilityConfigurationCommandError = async
|
|
|
3914
3713
|
...output,
|
|
3915
3714
|
body: await parseBody(output.body, context),
|
|
3916
3715
|
};
|
|
3917
|
-
let response;
|
|
3918
3716
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3919
3717
|
switch (errorCode) {
|
|
3920
3718
|
case "InvalidParameterException":
|
|
@@ -3931,14 +3729,12 @@ const deserializeAws_json1_1UpdateAvailabilityConfigurationCommandError = async
|
|
|
3931
3729
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3932
3730
|
default:
|
|
3933
3731
|
const parsedBody = parsedOutput.body;
|
|
3934
|
-
|
|
3935
|
-
|
|
3936
|
-
|
|
3937
|
-
|
|
3938
|
-
|
|
3939
|
-
$metadata,
|
|
3732
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3733
|
+
output,
|
|
3734
|
+
parsedBody,
|
|
3735
|
+
exceptionCtor: WorkMailServiceException_1.WorkMailServiceException,
|
|
3736
|
+
errorCode,
|
|
3940
3737
|
});
|
|
3941
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3942
3738
|
}
|
|
3943
3739
|
};
|
|
3944
3740
|
const deserializeAws_json1_1UpdateDefaultMailDomainCommand = async (output, context) => {
|
|
@@ -3960,7 +3756,6 @@ const deserializeAws_json1_1UpdateDefaultMailDomainCommandError = async (output,
|
|
|
3960
3756
|
...output,
|
|
3961
3757
|
body: await parseBody(output.body, context),
|
|
3962
3758
|
};
|
|
3963
|
-
let response;
|
|
3964
3759
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3965
3760
|
switch (errorCode) {
|
|
3966
3761
|
case "InvalidParameterException":
|
|
@@ -3980,14 +3775,12 @@ const deserializeAws_json1_1UpdateDefaultMailDomainCommandError = async (output,
|
|
|
3980
3775
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
3981
3776
|
default:
|
|
3982
3777
|
const parsedBody = parsedOutput.body;
|
|
3983
|
-
|
|
3984
|
-
|
|
3985
|
-
|
|
3986
|
-
|
|
3987
|
-
|
|
3988
|
-
$metadata,
|
|
3778
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3779
|
+
output,
|
|
3780
|
+
parsedBody,
|
|
3781
|
+
exceptionCtor: WorkMailServiceException_1.WorkMailServiceException,
|
|
3782
|
+
errorCode,
|
|
3989
3783
|
});
|
|
3990
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3991
3784
|
}
|
|
3992
3785
|
};
|
|
3993
3786
|
const deserializeAws_json1_1UpdateMailboxQuotaCommand = async (output, context) => {
|
|
@@ -4009,7 +3802,6 @@ const deserializeAws_json1_1UpdateMailboxQuotaCommandError = async (output, cont
|
|
|
4009
3802
|
...output,
|
|
4010
3803
|
body: await parseBody(output.body, context),
|
|
4011
3804
|
};
|
|
4012
|
-
let response;
|
|
4013
3805
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4014
3806
|
switch (errorCode) {
|
|
4015
3807
|
case "EntityNotFoundException":
|
|
@@ -4029,14 +3821,12 @@ const deserializeAws_json1_1UpdateMailboxQuotaCommandError = async (output, cont
|
|
|
4029
3821
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
4030
3822
|
default:
|
|
4031
3823
|
const parsedBody = parsedOutput.body;
|
|
4032
|
-
|
|
4033
|
-
|
|
4034
|
-
|
|
4035
|
-
|
|
4036
|
-
|
|
4037
|
-
$metadata,
|
|
3824
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3825
|
+
output,
|
|
3826
|
+
parsedBody,
|
|
3827
|
+
exceptionCtor: WorkMailServiceException_1.WorkMailServiceException,
|
|
3828
|
+
errorCode,
|
|
4038
3829
|
});
|
|
4039
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4040
3830
|
}
|
|
4041
3831
|
};
|
|
4042
3832
|
const deserializeAws_json1_1UpdateMobileDeviceAccessRuleCommand = async (output, context) => {
|
|
@@ -4058,7 +3848,6 @@ const deserializeAws_json1_1UpdateMobileDeviceAccessRuleCommandError = async (ou
|
|
|
4058
3848
|
...output,
|
|
4059
3849
|
body: await parseBody(output.body, context),
|
|
4060
3850
|
};
|
|
4061
|
-
let response;
|
|
4062
3851
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4063
3852
|
switch (errorCode) {
|
|
4064
3853
|
case "EntityNotFoundException":
|
|
@@ -4075,14 +3864,12 @@ const deserializeAws_json1_1UpdateMobileDeviceAccessRuleCommandError = async (ou
|
|
|
4075
3864
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
4076
3865
|
default:
|
|
4077
3866
|
const parsedBody = parsedOutput.body;
|
|
4078
|
-
|
|
4079
|
-
|
|
4080
|
-
|
|
4081
|
-
|
|
4082
|
-
|
|
4083
|
-
$metadata,
|
|
3867
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3868
|
+
output,
|
|
3869
|
+
parsedBody,
|
|
3870
|
+
exceptionCtor: WorkMailServiceException_1.WorkMailServiceException,
|
|
3871
|
+
errorCode,
|
|
4084
3872
|
});
|
|
4085
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4086
3873
|
}
|
|
4087
3874
|
};
|
|
4088
3875
|
const deserializeAws_json1_1UpdatePrimaryEmailAddressCommand = async (output, context) => {
|
|
@@ -4104,7 +3891,6 @@ const deserializeAws_json1_1UpdatePrimaryEmailAddressCommandError = async (outpu
|
|
|
4104
3891
|
...output,
|
|
4105
3892
|
body: await parseBody(output.body, context),
|
|
4106
3893
|
};
|
|
4107
|
-
let response;
|
|
4108
3894
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4109
3895
|
switch (errorCode) {
|
|
4110
3896
|
case "DirectoryServiceAuthenticationFailedException":
|
|
@@ -4142,14 +3928,12 @@ const deserializeAws_json1_1UpdatePrimaryEmailAddressCommandError = async (outpu
|
|
|
4142
3928
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
4143
3929
|
default:
|
|
4144
3930
|
const parsedBody = parsedOutput.body;
|
|
4145
|
-
|
|
4146
|
-
|
|
4147
|
-
|
|
4148
|
-
|
|
4149
|
-
|
|
4150
|
-
$metadata,
|
|
3931
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3932
|
+
output,
|
|
3933
|
+
parsedBody,
|
|
3934
|
+
exceptionCtor: WorkMailServiceException_1.WorkMailServiceException,
|
|
3935
|
+
errorCode,
|
|
4151
3936
|
});
|
|
4152
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4153
3937
|
}
|
|
4154
3938
|
};
|
|
4155
3939
|
const deserializeAws_json1_1UpdateResourceCommand = async (output, context) => {
|
|
@@ -4171,7 +3955,6 @@ const deserializeAws_json1_1UpdateResourceCommandError = async (output, context)
|
|
|
4171
3955
|
...output,
|
|
4172
3956
|
body: await parseBody(output.body, context),
|
|
4173
3957
|
};
|
|
4174
|
-
let response;
|
|
4175
3958
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4176
3959
|
switch (errorCode) {
|
|
4177
3960
|
case "DirectoryUnavailableException":
|
|
@@ -4206,14 +3989,12 @@ const deserializeAws_json1_1UpdateResourceCommandError = async (output, context)
|
|
|
4206
3989
|
throw await deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context);
|
|
4207
3990
|
default:
|
|
4208
3991
|
const parsedBody = parsedOutput.body;
|
|
4209
|
-
|
|
4210
|
-
|
|
4211
|
-
|
|
4212
|
-
|
|
4213
|
-
|
|
4214
|
-
$metadata,
|
|
3992
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3993
|
+
output,
|
|
3994
|
+
parsedBody,
|
|
3995
|
+
exceptionCtor: WorkMailServiceException_1.WorkMailServiceException,
|
|
3996
|
+
errorCode,
|
|
4215
3997
|
});
|
|
4216
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4217
3998
|
}
|
|
4218
3999
|
};
|
|
4219
4000
|
const deserializeAws_json1_1DirectoryInUseExceptionResponse = async (parsedOutput, context) => {
|
|
@@ -4418,9 +4199,6 @@ const serializeAws_json1_1ActionsList = (input, context) => {
|
|
|
4418
4199
|
return input
|
|
4419
4200
|
.filter((e) => e != null)
|
|
4420
4201
|
.map((entry) => {
|
|
4421
|
-
if (entry === null) {
|
|
4422
|
-
return null;
|
|
4423
|
-
}
|
|
4424
4202
|
return entry;
|
|
4425
4203
|
});
|
|
4426
4204
|
};
|
|
@@ -4673,9 +4451,6 @@ const serializeAws_json1_1DeviceModelList = (input, context) => {
|
|
|
4673
4451
|
return input
|
|
4674
4452
|
.filter((e) => e != null)
|
|
4675
4453
|
.map((entry) => {
|
|
4676
|
-
if (entry === null) {
|
|
4677
|
-
return null;
|
|
4678
|
-
}
|
|
4679
4454
|
return entry;
|
|
4680
4455
|
});
|
|
4681
4456
|
};
|
|
@@ -4683,9 +4458,6 @@ const serializeAws_json1_1DeviceOperatingSystemList = (input, context) => {
|
|
|
4683
4458
|
return input
|
|
4684
4459
|
.filter((e) => e != null)
|
|
4685
4460
|
.map((entry) => {
|
|
4686
|
-
if (entry === null) {
|
|
4687
|
-
return null;
|
|
4688
|
-
}
|
|
4689
4461
|
return entry;
|
|
4690
4462
|
});
|
|
4691
4463
|
};
|
|
@@ -4693,9 +4465,6 @@ const serializeAws_json1_1DeviceTypeList = (input, context) => {
|
|
|
4693
4465
|
return input
|
|
4694
4466
|
.filter((e) => e != null)
|
|
4695
4467
|
.map((entry) => {
|
|
4696
|
-
if (entry === null) {
|
|
4697
|
-
return null;
|
|
4698
|
-
}
|
|
4699
4468
|
return entry;
|
|
4700
4469
|
});
|
|
4701
4470
|
};
|
|
@@ -4703,9 +4472,6 @@ const serializeAws_json1_1DeviceUserAgentList = (input, context) => {
|
|
|
4703
4472
|
return input
|
|
4704
4473
|
.filter((e) => e != null)
|
|
4705
4474
|
.map((entry) => {
|
|
4706
|
-
if (entry === null) {
|
|
4707
|
-
return null;
|
|
4708
|
-
}
|
|
4709
4475
|
return entry;
|
|
4710
4476
|
});
|
|
4711
4477
|
};
|
|
@@ -4733,9 +4499,6 @@ const serializeAws_json1_1Domains = (input, context) => {
|
|
|
4733
4499
|
return input
|
|
4734
4500
|
.filter((e) => e != null)
|
|
4735
4501
|
.map((entry) => {
|
|
4736
|
-
if (entry === null) {
|
|
4737
|
-
return null;
|
|
4738
|
-
}
|
|
4739
4502
|
return serializeAws_json1_1Domain(entry, context);
|
|
4740
4503
|
});
|
|
4741
4504
|
};
|
|
@@ -4757,9 +4520,6 @@ const serializeAws_json1_1FolderConfigurations = (input, context) => {
|
|
|
4757
4520
|
return input
|
|
4758
4521
|
.filter((e) => e != null)
|
|
4759
4522
|
.map((entry) => {
|
|
4760
|
-
if (entry === null) {
|
|
4761
|
-
return null;
|
|
4762
|
-
}
|
|
4763
4523
|
return serializeAws_json1_1FolderConfiguration(entry, context);
|
|
4764
4524
|
});
|
|
4765
4525
|
};
|
|
@@ -4808,9 +4568,6 @@ const serializeAws_json1_1IpRangeList = (input, context) => {
|
|
|
4808
4568
|
return input
|
|
4809
4569
|
.filter((e) => e != null)
|
|
4810
4570
|
.map((entry) => {
|
|
4811
|
-
if (entry === null) {
|
|
4812
|
-
return null;
|
|
4813
|
-
}
|
|
4814
4571
|
return entry;
|
|
4815
4572
|
});
|
|
4816
4573
|
};
|
|
@@ -4927,9 +4684,6 @@ const serializeAws_json1_1PermissionValues = (input, context) => {
|
|
|
4927
4684
|
return input
|
|
4928
4685
|
.filter((e) => e != null)
|
|
4929
4686
|
.map((entry) => {
|
|
4930
|
-
if (entry === null) {
|
|
4931
|
-
return null;
|
|
4932
|
-
}
|
|
4933
4687
|
return entry;
|
|
4934
4688
|
});
|
|
4935
4689
|
};
|
|
@@ -5035,9 +4789,6 @@ const serializeAws_json1_1TagKeyList = (input, context) => {
|
|
|
5035
4789
|
return input
|
|
5036
4790
|
.filter((e) => e != null)
|
|
5037
4791
|
.map((entry) => {
|
|
5038
|
-
if (entry === null) {
|
|
5039
|
-
return null;
|
|
5040
|
-
}
|
|
5041
4792
|
return entry;
|
|
5042
4793
|
});
|
|
5043
4794
|
};
|
|
@@ -5045,9 +4796,6 @@ const serializeAws_json1_1TagList = (input, context) => {
|
|
|
5045
4796
|
return input
|
|
5046
4797
|
.filter((e) => e != null)
|
|
5047
4798
|
.map((entry) => {
|
|
5048
|
-
if (entry === null) {
|
|
5049
|
-
return null;
|
|
5050
|
-
}
|
|
5051
4799
|
return serializeAws_json1_1Tag(entry, context);
|
|
5052
4800
|
});
|
|
5053
4801
|
};
|
|
@@ -5152,9 +4900,6 @@ const serializeAws_json1_1UserIdList = (input, context) => {
|
|
|
5152
4900
|
return input
|
|
5153
4901
|
.filter((e) => e != null)
|
|
5154
4902
|
.map((entry) => {
|
|
5155
|
-
if (entry === null) {
|
|
5156
|
-
return null;
|
|
5157
|
-
}
|
|
5158
4903
|
return entry;
|
|
5159
4904
|
});
|
|
5160
4905
|
};
|