@aws-sdk/client-cognito-identity-provider 3.141.0 → 3.145.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +30 -0
- package/dist-cjs/commands/SignUpCommand.js +2 -1
- package/dist-cjs/models/models_0.js +19 -10
- package/dist-cjs/models/models_1.js +5 -1
- package/dist-cjs/protocols/Aws_json1_1.js +594 -886
- package/dist-es/commands/SignUpCommand.js +2 -1
- package/dist-es/models/models_0.js +12 -1
- package/dist-es/models/models_1.js +1 -0
- package/dist-es/protocols/Aws_json1_1.js +1746 -1710
- package/dist-types/CognitoIdentityProvider.d.ts +1 -1
- package/dist-types/commands/AssociateSoftwareTokenCommand.d.ts +1 -1
- package/dist-types/commands/SignUpCommand.d.ts +2 -1
- package/dist-types/models/models_0.d.ts +76 -88
- package/dist-types/models/models_1.d.ts +30 -3
- package/dist-types/ts3.4/commands/SignUpCommand.d.ts +2 -1
- package/dist-types/ts3.4/models/models_0.d.ts +7 -11
- package/dist-types/ts3.4/models/models_1.d.ts +11 -0
- package/package.json +11 -6
|
@@ -1039,7 +1039,6 @@ const deserializeAws_json1_1AddCustomAttributesCommandError = async (output, con
|
|
|
1039
1039
|
...output,
|
|
1040
1040
|
body: await parseBody(output.body, context),
|
|
1041
1041
|
};
|
|
1042
|
-
let response;
|
|
1043
1042
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1044
1043
|
switch (errorCode) {
|
|
1045
1044
|
case "InternalErrorException":
|
|
@@ -1062,14 +1061,12 @@ const deserializeAws_json1_1AddCustomAttributesCommandError = async (output, con
|
|
|
1062
1061
|
throw await deserializeAws_json1_1UserImportInProgressExceptionResponse(parsedOutput, context);
|
|
1063
1062
|
default:
|
|
1064
1063
|
const parsedBody = parsedOutput.body;
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
$metadata,
|
|
1064
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1065
|
+
output,
|
|
1066
|
+
parsedBody,
|
|
1067
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
1068
|
+
errorCode,
|
|
1071
1069
|
});
|
|
1072
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1073
1070
|
}
|
|
1074
1071
|
};
|
|
1075
1072
|
const deserializeAws_json1_1AdminAddUserToGroupCommand = async (output, context) => {
|
|
@@ -1088,7 +1085,6 @@ const deserializeAws_json1_1AdminAddUserToGroupCommandError = async (output, con
|
|
|
1088
1085
|
...output,
|
|
1089
1086
|
body: await parseBody(output.body, context),
|
|
1090
1087
|
};
|
|
1091
|
-
let response;
|
|
1092
1088
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1093
1089
|
switch (errorCode) {
|
|
1094
1090
|
case "InternalErrorException":
|
|
@@ -1111,14 +1107,12 @@ const deserializeAws_json1_1AdminAddUserToGroupCommandError = async (output, con
|
|
|
1111
1107
|
throw await deserializeAws_json1_1UserNotFoundExceptionResponse(parsedOutput, context);
|
|
1112
1108
|
default:
|
|
1113
1109
|
const parsedBody = parsedOutput.body;
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
$metadata,
|
|
1110
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1111
|
+
output,
|
|
1112
|
+
parsedBody,
|
|
1113
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
1114
|
+
errorCode,
|
|
1120
1115
|
});
|
|
1121
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1122
1116
|
}
|
|
1123
1117
|
};
|
|
1124
1118
|
const deserializeAws_json1_1AdminConfirmSignUpCommand = async (output, context) => {
|
|
@@ -1140,7 +1134,6 @@ const deserializeAws_json1_1AdminConfirmSignUpCommandError = async (output, cont
|
|
|
1140
1134
|
...output,
|
|
1141
1135
|
body: await parseBody(output.body, context),
|
|
1142
1136
|
};
|
|
1143
|
-
let response;
|
|
1144
1137
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1145
1138
|
switch (errorCode) {
|
|
1146
1139
|
case "InternalErrorException":
|
|
@@ -1178,14 +1171,12 @@ const deserializeAws_json1_1AdminConfirmSignUpCommandError = async (output, cont
|
|
|
1178
1171
|
throw await deserializeAws_json1_1UserNotFoundExceptionResponse(parsedOutput, context);
|
|
1179
1172
|
default:
|
|
1180
1173
|
const parsedBody = parsedOutput.body;
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
$metadata,
|
|
1174
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1175
|
+
output,
|
|
1176
|
+
parsedBody,
|
|
1177
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
1178
|
+
errorCode,
|
|
1187
1179
|
});
|
|
1188
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1189
1180
|
}
|
|
1190
1181
|
};
|
|
1191
1182
|
const deserializeAws_json1_1AdminCreateUserCommand = async (output, context) => {
|
|
@@ -1207,7 +1198,6 @@ const deserializeAws_json1_1AdminCreateUserCommandError = async (output, context
|
|
|
1207
1198
|
...output,
|
|
1208
1199
|
body: await parseBody(output.body, context),
|
|
1209
1200
|
};
|
|
1210
|
-
let response;
|
|
1211
1201
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1212
1202
|
switch (errorCode) {
|
|
1213
1203
|
case "CodeDeliveryFailureException":
|
|
@@ -1260,14 +1250,12 @@ const deserializeAws_json1_1AdminCreateUserCommandError = async (output, context
|
|
|
1260
1250
|
throw await deserializeAws_json1_1UserNotFoundExceptionResponse(parsedOutput, context);
|
|
1261
1251
|
default:
|
|
1262
1252
|
const parsedBody = parsedOutput.body;
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
$metadata,
|
|
1253
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1254
|
+
output,
|
|
1255
|
+
parsedBody,
|
|
1256
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
1257
|
+
errorCode,
|
|
1269
1258
|
});
|
|
1270
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1271
1259
|
}
|
|
1272
1260
|
};
|
|
1273
1261
|
const deserializeAws_json1_1AdminDeleteUserCommand = async (output, context) => {
|
|
@@ -1286,7 +1274,6 @@ const deserializeAws_json1_1AdminDeleteUserCommandError = async (output, context
|
|
|
1286
1274
|
...output,
|
|
1287
1275
|
body: await parseBody(output.body, context),
|
|
1288
1276
|
};
|
|
1289
|
-
let response;
|
|
1290
1277
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1291
1278
|
switch (errorCode) {
|
|
1292
1279
|
case "InternalErrorException":
|
|
@@ -1309,14 +1296,12 @@ const deserializeAws_json1_1AdminDeleteUserCommandError = async (output, context
|
|
|
1309
1296
|
throw await deserializeAws_json1_1UserNotFoundExceptionResponse(parsedOutput, context);
|
|
1310
1297
|
default:
|
|
1311
1298
|
const parsedBody = parsedOutput.body;
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
$metadata,
|
|
1299
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1300
|
+
output,
|
|
1301
|
+
parsedBody,
|
|
1302
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
1303
|
+
errorCode,
|
|
1318
1304
|
});
|
|
1319
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1320
1305
|
}
|
|
1321
1306
|
};
|
|
1322
1307
|
const deserializeAws_json1_1AdminDeleteUserAttributesCommand = async (output, context) => {
|
|
@@ -1338,7 +1323,6 @@ const deserializeAws_json1_1AdminDeleteUserAttributesCommandError = async (outpu
|
|
|
1338
1323
|
...output,
|
|
1339
1324
|
body: await parseBody(output.body, context),
|
|
1340
1325
|
};
|
|
1341
|
-
let response;
|
|
1342
1326
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1343
1327
|
switch (errorCode) {
|
|
1344
1328
|
case "InternalErrorException":
|
|
@@ -1361,14 +1345,12 @@ const deserializeAws_json1_1AdminDeleteUserAttributesCommandError = async (outpu
|
|
|
1361
1345
|
throw await deserializeAws_json1_1UserNotFoundExceptionResponse(parsedOutput, context);
|
|
1362
1346
|
default:
|
|
1363
1347
|
const parsedBody = parsedOutput.body;
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
$metadata,
|
|
1348
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1349
|
+
output,
|
|
1350
|
+
parsedBody,
|
|
1351
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
1352
|
+
errorCode,
|
|
1370
1353
|
});
|
|
1371
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1372
1354
|
}
|
|
1373
1355
|
};
|
|
1374
1356
|
const deserializeAws_json1_1AdminDisableProviderForUserCommand = async (output, context) => {
|
|
@@ -1390,7 +1372,6 @@ const deserializeAws_json1_1AdminDisableProviderForUserCommandError = async (out
|
|
|
1390
1372
|
...output,
|
|
1391
1373
|
body: await parseBody(output.body, context),
|
|
1392
1374
|
};
|
|
1393
|
-
let response;
|
|
1394
1375
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1395
1376
|
switch (errorCode) {
|
|
1396
1377
|
case "AliasExistsException":
|
|
@@ -1416,14 +1397,12 @@ const deserializeAws_json1_1AdminDisableProviderForUserCommandError = async (out
|
|
|
1416
1397
|
throw await deserializeAws_json1_1UserNotFoundExceptionResponse(parsedOutput, context);
|
|
1417
1398
|
default:
|
|
1418
1399
|
const parsedBody = parsedOutput.body;
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
$metadata,
|
|
1400
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1401
|
+
output,
|
|
1402
|
+
parsedBody,
|
|
1403
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
1404
|
+
errorCode,
|
|
1425
1405
|
});
|
|
1426
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1427
1406
|
}
|
|
1428
1407
|
};
|
|
1429
1408
|
const deserializeAws_json1_1AdminDisableUserCommand = async (output, context) => {
|
|
@@ -1445,7 +1424,6 @@ const deserializeAws_json1_1AdminDisableUserCommandError = async (output, contex
|
|
|
1445
1424
|
...output,
|
|
1446
1425
|
body: await parseBody(output.body, context),
|
|
1447
1426
|
};
|
|
1448
|
-
let response;
|
|
1449
1427
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1450
1428
|
switch (errorCode) {
|
|
1451
1429
|
case "InternalErrorException":
|
|
@@ -1468,14 +1446,12 @@ const deserializeAws_json1_1AdminDisableUserCommandError = async (output, contex
|
|
|
1468
1446
|
throw await deserializeAws_json1_1UserNotFoundExceptionResponse(parsedOutput, context);
|
|
1469
1447
|
default:
|
|
1470
1448
|
const parsedBody = parsedOutput.body;
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
$metadata,
|
|
1449
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1450
|
+
output,
|
|
1451
|
+
parsedBody,
|
|
1452
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
1453
|
+
errorCode,
|
|
1477
1454
|
});
|
|
1478
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1479
1455
|
}
|
|
1480
1456
|
};
|
|
1481
1457
|
const deserializeAws_json1_1AdminEnableUserCommand = async (output, context) => {
|
|
@@ -1497,7 +1473,6 @@ const deserializeAws_json1_1AdminEnableUserCommandError = async (output, context
|
|
|
1497
1473
|
...output,
|
|
1498
1474
|
body: await parseBody(output.body, context),
|
|
1499
1475
|
};
|
|
1500
|
-
let response;
|
|
1501
1476
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1502
1477
|
switch (errorCode) {
|
|
1503
1478
|
case "InternalErrorException":
|
|
@@ -1520,14 +1495,12 @@ const deserializeAws_json1_1AdminEnableUserCommandError = async (output, context
|
|
|
1520
1495
|
throw await deserializeAws_json1_1UserNotFoundExceptionResponse(parsedOutput, context);
|
|
1521
1496
|
default:
|
|
1522
1497
|
const parsedBody = parsedOutput.body;
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
$metadata,
|
|
1498
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1499
|
+
output,
|
|
1500
|
+
parsedBody,
|
|
1501
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
1502
|
+
errorCode,
|
|
1529
1503
|
});
|
|
1530
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1531
1504
|
}
|
|
1532
1505
|
};
|
|
1533
1506
|
const deserializeAws_json1_1AdminForgetDeviceCommand = async (output, context) => {
|
|
@@ -1546,7 +1519,6 @@ const deserializeAws_json1_1AdminForgetDeviceCommandError = async (output, conte
|
|
|
1546
1519
|
...output,
|
|
1547
1520
|
body: await parseBody(output.body, context),
|
|
1548
1521
|
};
|
|
1549
|
-
let response;
|
|
1550
1522
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1551
1523
|
switch (errorCode) {
|
|
1552
1524
|
case "InternalErrorException":
|
|
@@ -1572,14 +1544,12 @@ const deserializeAws_json1_1AdminForgetDeviceCommandError = async (output, conte
|
|
|
1572
1544
|
throw await deserializeAws_json1_1UserNotFoundExceptionResponse(parsedOutput, context);
|
|
1573
1545
|
default:
|
|
1574
1546
|
const parsedBody = parsedOutput.body;
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
$metadata,
|
|
1547
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1548
|
+
output,
|
|
1549
|
+
parsedBody,
|
|
1550
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
1551
|
+
errorCode,
|
|
1581
1552
|
});
|
|
1582
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1583
1553
|
}
|
|
1584
1554
|
};
|
|
1585
1555
|
const deserializeAws_json1_1AdminGetDeviceCommand = async (output, context) => {
|
|
@@ -1601,7 +1571,6 @@ const deserializeAws_json1_1AdminGetDeviceCommandError = async (output, context)
|
|
|
1601
1571
|
...output,
|
|
1602
1572
|
body: await parseBody(output.body, context),
|
|
1603
1573
|
};
|
|
1604
|
-
let response;
|
|
1605
1574
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1606
1575
|
switch (errorCode) {
|
|
1607
1576
|
case "InternalErrorException":
|
|
@@ -1624,14 +1593,12 @@ const deserializeAws_json1_1AdminGetDeviceCommandError = async (output, context)
|
|
|
1624
1593
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1625
1594
|
default:
|
|
1626
1595
|
const parsedBody = parsedOutput.body;
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
$metadata,
|
|
1596
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1597
|
+
output,
|
|
1598
|
+
parsedBody,
|
|
1599
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
1600
|
+
errorCode,
|
|
1633
1601
|
});
|
|
1634
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1635
1602
|
}
|
|
1636
1603
|
};
|
|
1637
1604
|
const deserializeAws_json1_1AdminGetUserCommand = async (output, context) => {
|
|
@@ -1653,7 +1620,6 @@ const deserializeAws_json1_1AdminGetUserCommandError = async (output, context) =
|
|
|
1653
1620
|
...output,
|
|
1654
1621
|
body: await parseBody(output.body, context),
|
|
1655
1622
|
};
|
|
1656
|
-
let response;
|
|
1657
1623
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1658
1624
|
switch (errorCode) {
|
|
1659
1625
|
case "InternalErrorException":
|
|
@@ -1676,14 +1642,12 @@ const deserializeAws_json1_1AdminGetUserCommandError = async (output, context) =
|
|
|
1676
1642
|
throw await deserializeAws_json1_1UserNotFoundExceptionResponse(parsedOutput, context);
|
|
1677
1643
|
default:
|
|
1678
1644
|
const parsedBody = parsedOutput.body;
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
$metadata,
|
|
1645
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1646
|
+
output,
|
|
1647
|
+
parsedBody,
|
|
1648
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
1649
|
+
errorCode,
|
|
1685
1650
|
});
|
|
1686
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1687
1651
|
}
|
|
1688
1652
|
};
|
|
1689
1653
|
const deserializeAws_json1_1AdminInitiateAuthCommand = async (output, context) => {
|
|
@@ -1705,7 +1669,6 @@ const deserializeAws_json1_1AdminInitiateAuthCommandError = async (output, conte
|
|
|
1705
1669
|
...output,
|
|
1706
1670
|
body: await parseBody(output.body, context),
|
|
1707
1671
|
};
|
|
1708
|
-
let response;
|
|
1709
1672
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1710
1673
|
switch (errorCode) {
|
|
1711
1674
|
case "InternalErrorException":
|
|
@@ -1755,14 +1718,12 @@ const deserializeAws_json1_1AdminInitiateAuthCommandError = async (output, conte
|
|
|
1755
1718
|
throw await deserializeAws_json1_1UserNotFoundExceptionResponse(parsedOutput, context);
|
|
1756
1719
|
default:
|
|
1757
1720
|
const parsedBody = parsedOutput.body;
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
$metadata,
|
|
1721
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1722
|
+
output,
|
|
1723
|
+
parsedBody,
|
|
1724
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
1725
|
+
errorCode,
|
|
1764
1726
|
});
|
|
1765
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1766
1727
|
}
|
|
1767
1728
|
};
|
|
1768
1729
|
const deserializeAws_json1_1AdminLinkProviderForUserCommand = async (output, context) => {
|
|
@@ -1784,7 +1745,6 @@ const deserializeAws_json1_1AdminLinkProviderForUserCommandError = async (output
|
|
|
1784
1745
|
...output,
|
|
1785
1746
|
body: await parseBody(output.body, context),
|
|
1786
1747
|
};
|
|
1787
|
-
let response;
|
|
1788
1748
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1789
1749
|
switch (errorCode) {
|
|
1790
1750
|
case "AliasExistsException":
|
|
@@ -1813,14 +1773,12 @@ const deserializeAws_json1_1AdminLinkProviderForUserCommandError = async (output
|
|
|
1813
1773
|
throw await deserializeAws_json1_1UserNotFoundExceptionResponse(parsedOutput, context);
|
|
1814
1774
|
default:
|
|
1815
1775
|
const parsedBody = parsedOutput.body;
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
$metadata,
|
|
1776
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1777
|
+
output,
|
|
1778
|
+
parsedBody,
|
|
1779
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
1780
|
+
errorCode,
|
|
1822
1781
|
});
|
|
1823
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1824
1782
|
}
|
|
1825
1783
|
};
|
|
1826
1784
|
const deserializeAws_json1_1AdminListDevicesCommand = async (output, context) => {
|
|
@@ -1842,7 +1800,6 @@ const deserializeAws_json1_1AdminListDevicesCommandError = async (output, contex
|
|
|
1842
1800
|
...output,
|
|
1843
1801
|
body: await parseBody(output.body, context),
|
|
1844
1802
|
};
|
|
1845
|
-
let response;
|
|
1846
1803
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1847
1804
|
switch (errorCode) {
|
|
1848
1805
|
case "InternalErrorException":
|
|
@@ -1865,14 +1822,12 @@ const deserializeAws_json1_1AdminListDevicesCommandError = async (output, contex
|
|
|
1865
1822
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1866
1823
|
default:
|
|
1867
1824
|
const parsedBody = parsedOutput.body;
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
$metadata,
|
|
1825
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1826
|
+
output,
|
|
1827
|
+
parsedBody,
|
|
1828
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
1829
|
+
errorCode,
|
|
1874
1830
|
});
|
|
1875
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1876
1831
|
}
|
|
1877
1832
|
};
|
|
1878
1833
|
const deserializeAws_json1_1AdminListGroupsForUserCommand = async (output, context) => {
|
|
@@ -1894,7 +1849,6 @@ const deserializeAws_json1_1AdminListGroupsForUserCommandError = async (output,
|
|
|
1894
1849
|
...output,
|
|
1895
1850
|
body: await parseBody(output.body, context),
|
|
1896
1851
|
};
|
|
1897
|
-
let response;
|
|
1898
1852
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1899
1853
|
switch (errorCode) {
|
|
1900
1854
|
case "InternalErrorException":
|
|
@@ -1917,14 +1871,12 @@ const deserializeAws_json1_1AdminListGroupsForUserCommandError = async (output,
|
|
|
1917
1871
|
throw await deserializeAws_json1_1UserNotFoundExceptionResponse(parsedOutput, context);
|
|
1918
1872
|
default:
|
|
1919
1873
|
const parsedBody = parsedOutput.body;
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
$metadata,
|
|
1874
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1875
|
+
output,
|
|
1876
|
+
parsedBody,
|
|
1877
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
1878
|
+
errorCode,
|
|
1926
1879
|
});
|
|
1927
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1928
1880
|
}
|
|
1929
1881
|
};
|
|
1930
1882
|
const deserializeAws_json1_1AdminListUserAuthEventsCommand = async (output, context) => {
|
|
@@ -1946,7 +1898,6 @@ const deserializeAws_json1_1AdminListUserAuthEventsCommandError = async (output,
|
|
|
1946
1898
|
...output,
|
|
1947
1899
|
body: await parseBody(output.body, context),
|
|
1948
1900
|
};
|
|
1949
|
-
let response;
|
|
1950
1901
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1951
1902
|
switch (errorCode) {
|
|
1952
1903
|
case "InternalErrorException":
|
|
@@ -1972,14 +1923,12 @@ const deserializeAws_json1_1AdminListUserAuthEventsCommandError = async (output,
|
|
|
1972
1923
|
throw await deserializeAws_json1_1UserPoolAddOnNotEnabledExceptionResponse(parsedOutput, context);
|
|
1973
1924
|
default:
|
|
1974
1925
|
const parsedBody = parsedOutput.body;
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
$metadata,
|
|
1926
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1927
|
+
output,
|
|
1928
|
+
parsedBody,
|
|
1929
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
1930
|
+
errorCode,
|
|
1981
1931
|
});
|
|
1982
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1983
1932
|
}
|
|
1984
1933
|
};
|
|
1985
1934
|
const deserializeAws_json1_1AdminRemoveUserFromGroupCommand = async (output, context) => {
|
|
@@ -1998,7 +1947,6 @@ const deserializeAws_json1_1AdminRemoveUserFromGroupCommandError = async (output
|
|
|
1998
1947
|
...output,
|
|
1999
1948
|
body: await parseBody(output.body, context),
|
|
2000
1949
|
};
|
|
2001
|
-
let response;
|
|
2002
1950
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2003
1951
|
switch (errorCode) {
|
|
2004
1952
|
case "InternalErrorException":
|
|
@@ -2021,14 +1969,12 @@ const deserializeAws_json1_1AdminRemoveUserFromGroupCommandError = async (output
|
|
|
2021
1969
|
throw await deserializeAws_json1_1UserNotFoundExceptionResponse(parsedOutput, context);
|
|
2022
1970
|
default:
|
|
2023
1971
|
const parsedBody = parsedOutput.body;
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
$metadata,
|
|
1972
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1973
|
+
output,
|
|
1974
|
+
parsedBody,
|
|
1975
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
1976
|
+
errorCode,
|
|
2030
1977
|
});
|
|
2031
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2032
1978
|
}
|
|
2033
1979
|
};
|
|
2034
1980
|
const deserializeAws_json1_1AdminResetUserPasswordCommand = async (output, context) => {
|
|
@@ -2050,7 +1996,6 @@ const deserializeAws_json1_1AdminResetUserPasswordCommandError = async (output,
|
|
|
2050
1996
|
...output,
|
|
2051
1997
|
body: await parseBody(output.body, context),
|
|
2052
1998
|
};
|
|
2053
|
-
let response;
|
|
2054
1999
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2055
2000
|
switch (errorCode) {
|
|
2056
2001
|
case "InternalErrorException":
|
|
@@ -2094,14 +2039,12 @@ const deserializeAws_json1_1AdminResetUserPasswordCommandError = async (output,
|
|
|
2094
2039
|
throw await deserializeAws_json1_1UserNotFoundExceptionResponse(parsedOutput, context);
|
|
2095
2040
|
default:
|
|
2096
2041
|
const parsedBody = parsedOutput.body;
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
$metadata,
|
|
2042
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2043
|
+
output,
|
|
2044
|
+
parsedBody,
|
|
2045
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
2046
|
+
errorCode,
|
|
2103
2047
|
});
|
|
2104
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2105
2048
|
}
|
|
2106
2049
|
};
|
|
2107
2050
|
const deserializeAws_json1_1AdminRespondToAuthChallengeCommand = async (output, context) => {
|
|
@@ -2123,7 +2066,6 @@ const deserializeAws_json1_1AdminRespondToAuthChallengeCommandError = async (out
|
|
|
2123
2066
|
...output,
|
|
2124
2067
|
body: await parseBody(output.body, context),
|
|
2125
2068
|
};
|
|
2126
|
-
let response;
|
|
2127
2069
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2128
2070
|
switch (errorCode) {
|
|
2129
2071
|
case "AliasExistsException":
|
|
@@ -2188,14 +2130,12 @@ const deserializeAws_json1_1AdminRespondToAuthChallengeCommandError = async (out
|
|
|
2188
2130
|
throw await deserializeAws_json1_1UserNotFoundExceptionResponse(parsedOutput, context);
|
|
2189
2131
|
default:
|
|
2190
2132
|
const parsedBody = parsedOutput.body;
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
$metadata,
|
|
2133
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2134
|
+
output,
|
|
2135
|
+
parsedBody,
|
|
2136
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
2137
|
+
errorCode,
|
|
2197
2138
|
});
|
|
2198
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2199
2139
|
}
|
|
2200
2140
|
};
|
|
2201
2141
|
const deserializeAws_json1_1AdminSetUserMFAPreferenceCommand = async (output, context) => {
|
|
@@ -2217,7 +2157,6 @@ const deserializeAws_json1_1AdminSetUserMFAPreferenceCommandError = async (outpu
|
|
|
2217
2157
|
...output,
|
|
2218
2158
|
body: await parseBody(output.body, context),
|
|
2219
2159
|
};
|
|
2220
|
-
let response;
|
|
2221
2160
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2222
2161
|
switch (errorCode) {
|
|
2223
2162
|
case "InternalErrorException":
|
|
@@ -2243,14 +2182,12 @@ const deserializeAws_json1_1AdminSetUserMFAPreferenceCommandError = async (outpu
|
|
|
2243
2182
|
throw await deserializeAws_json1_1UserNotFoundExceptionResponse(parsedOutput, context);
|
|
2244
2183
|
default:
|
|
2245
2184
|
const parsedBody = parsedOutput.body;
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
$metadata,
|
|
2185
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2186
|
+
output,
|
|
2187
|
+
parsedBody,
|
|
2188
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
2189
|
+
errorCode,
|
|
2252
2190
|
});
|
|
2253
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2254
2191
|
}
|
|
2255
2192
|
};
|
|
2256
2193
|
const deserializeAws_json1_1AdminSetUserPasswordCommand = async (output, context) => {
|
|
@@ -2272,7 +2209,6 @@ const deserializeAws_json1_1AdminSetUserPasswordCommandError = async (output, co
|
|
|
2272
2209
|
...output,
|
|
2273
2210
|
body: await parseBody(output.body, context),
|
|
2274
2211
|
};
|
|
2275
|
-
let response;
|
|
2276
2212
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2277
2213
|
switch (errorCode) {
|
|
2278
2214
|
case "InternalErrorException":
|
|
@@ -2298,14 +2234,12 @@ const deserializeAws_json1_1AdminSetUserPasswordCommandError = async (output, co
|
|
|
2298
2234
|
throw await deserializeAws_json1_1UserNotFoundExceptionResponse(parsedOutput, context);
|
|
2299
2235
|
default:
|
|
2300
2236
|
const parsedBody = parsedOutput.body;
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
$metadata,
|
|
2237
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2238
|
+
output,
|
|
2239
|
+
parsedBody,
|
|
2240
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
2241
|
+
errorCode,
|
|
2307
2242
|
});
|
|
2308
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2309
2243
|
}
|
|
2310
2244
|
};
|
|
2311
2245
|
const deserializeAws_json1_1AdminSetUserSettingsCommand = async (output, context) => {
|
|
@@ -2327,7 +2261,6 @@ const deserializeAws_json1_1AdminSetUserSettingsCommandError = async (output, co
|
|
|
2327
2261
|
...output,
|
|
2328
2262
|
body: await parseBody(output.body, context),
|
|
2329
2263
|
};
|
|
2330
|
-
let response;
|
|
2331
2264
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2332
2265
|
switch (errorCode) {
|
|
2333
2266
|
case "InternalErrorException":
|
|
@@ -2347,14 +2280,12 @@ const deserializeAws_json1_1AdminSetUserSettingsCommandError = async (output, co
|
|
|
2347
2280
|
throw await deserializeAws_json1_1UserNotFoundExceptionResponse(parsedOutput, context);
|
|
2348
2281
|
default:
|
|
2349
2282
|
const parsedBody = parsedOutput.body;
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
$metadata,
|
|
2283
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2284
|
+
output,
|
|
2285
|
+
parsedBody,
|
|
2286
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
2287
|
+
errorCode,
|
|
2356
2288
|
});
|
|
2357
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2358
2289
|
}
|
|
2359
2290
|
};
|
|
2360
2291
|
const deserializeAws_json1_1AdminUpdateAuthEventFeedbackCommand = async (output, context) => {
|
|
@@ -2376,7 +2307,6 @@ const deserializeAws_json1_1AdminUpdateAuthEventFeedbackCommandError = async (ou
|
|
|
2376
2307
|
...output,
|
|
2377
2308
|
body: await parseBody(output.body, context),
|
|
2378
2309
|
};
|
|
2379
|
-
let response;
|
|
2380
2310
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2381
2311
|
switch (errorCode) {
|
|
2382
2312
|
case "InternalErrorException":
|
|
@@ -2402,14 +2332,12 @@ const deserializeAws_json1_1AdminUpdateAuthEventFeedbackCommandError = async (ou
|
|
|
2402
2332
|
throw await deserializeAws_json1_1UserPoolAddOnNotEnabledExceptionResponse(parsedOutput, context);
|
|
2403
2333
|
default:
|
|
2404
2334
|
const parsedBody = parsedOutput.body;
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
$metadata,
|
|
2335
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2336
|
+
output,
|
|
2337
|
+
parsedBody,
|
|
2338
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
2339
|
+
errorCode,
|
|
2411
2340
|
});
|
|
2412
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2413
2341
|
}
|
|
2414
2342
|
};
|
|
2415
2343
|
const deserializeAws_json1_1AdminUpdateDeviceStatusCommand = async (output, context) => {
|
|
@@ -2431,7 +2359,6 @@ const deserializeAws_json1_1AdminUpdateDeviceStatusCommandError = async (output,
|
|
|
2431
2359
|
...output,
|
|
2432
2360
|
body: await parseBody(output.body, context),
|
|
2433
2361
|
};
|
|
2434
|
-
let response;
|
|
2435
2362
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2436
2363
|
switch (errorCode) {
|
|
2437
2364
|
case "InternalErrorException":
|
|
@@ -2457,14 +2384,12 @@ const deserializeAws_json1_1AdminUpdateDeviceStatusCommandError = async (output,
|
|
|
2457
2384
|
throw await deserializeAws_json1_1UserNotFoundExceptionResponse(parsedOutput, context);
|
|
2458
2385
|
default:
|
|
2459
2386
|
const parsedBody = parsedOutput.body;
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
$metadata,
|
|
2387
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2388
|
+
output,
|
|
2389
|
+
parsedBody,
|
|
2390
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
2391
|
+
errorCode,
|
|
2466
2392
|
});
|
|
2467
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2468
2393
|
}
|
|
2469
2394
|
};
|
|
2470
2395
|
const deserializeAws_json1_1AdminUpdateUserAttributesCommand = async (output, context) => {
|
|
@@ -2486,7 +2411,6 @@ const deserializeAws_json1_1AdminUpdateUserAttributesCommandError = async (outpu
|
|
|
2486
2411
|
...output,
|
|
2487
2412
|
body: await parseBody(output.body, context),
|
|
2488
2413
|
};
|
|
2489
|
-
let response;
|
|
2490
2414
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2491
2415
|
switch (errorCode) {
|
|
2492
2416
|
case "AliasExistsException":
|
|
@@ -2530,14 +2454,12 @@ const deserializeAws_json1_1AdminUpdateUserAttributesCommandError = async (outpu
|
|
|
2530
2454
|
throw await deserializeAws_json1_1UserNotFoundExceptionResponse(parsedOutput, context);
|
|
2531
2455
|
default:
|
|
2532
2456
|
const parsedBody = parsedOutput.body;
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
$metadata,
|
|
2457
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2458
|
+
output,
|
|
2459
|
+
parsedBody,
|
|
2460
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
2461
|
+
errorCode,
|
|
2539
2462
|
});
|
|
2540
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2541
2463
|
}
|
|
2542
2464
|
};
|
|
2543
2465
|
const deserializeAws_json1_1AdminUserGlobalSignOutCommand = async (output, context) => {
|
|
@@ -2559,7 +2481,6 @@ const deserializeAws_json1_1AdminUserGlobalSignOutCommandError = async (output,
|
|
|
2559
2481
|
...output,
|
|
2560
2482
|
body: await parseBody(output.body, context),
|
|
2561
2483
|
};
|
|
2562
|
-
let response;
|
|
2563
2484
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2564
2485
|
switch (errorCode) {
|
|
2565
2486
|
case "InternalErrorException":
|
|
@@ -2582,14 +2503,12 @@ const deserializeAws_json1_1AdminUserGlobalSignOutCommandError = async (output,
|
|
|
2582
2503
|
throw await deserializeAws_json1_1UserNotFoundExceptionResponse(parsedOutput, context);
|
|
2583
2504
|
default:
|
|
2584
2505
|
const parsedBody = parsedOutput.body;
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
$metadata,
|
|
2506
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2507
|
+
output,
|
|
2508
|
+
parsedBody,
|
|
2509
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
2510
|
+
errorCode,
|
|
2591
2511
|
});
|
|
2592
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2593
2512
|
}
|
|
2594
2513
|
};
|
|
2595
2514
|
const deserializeAws_json1_1AssociateSoftwareTokenCommand = async (output, context) => {
|
|
@@ -2611,12 +2530,14 @@ const deserializeAws_json1_1AssociateSoftwareTokenCommandError = async (output,
|
|
|
2611
2530
|
...output,
|
|
2612
2531
|
body: await parseBody(output.body, context),
|
|
2613
2532
|
};
|
|
2614
|
-
let response;
|
|
2615
2533
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2616
2534
|
switch (errorCode) {
|
|
2617
2535
|
case "ConcurrentModificationException":
|
|
2618
2536
|
case "com.amazonaws.cognitoidentityprovider#ConcurrentModificationException":
|
|
2619
2537
|
throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
2538
|
+
case "ForbiddenException":
|
|
2539
|
+
case "com.amazonaws.cognitoidentityprovider#ForbiddenException":
|
|
2540
|
+
throw await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context);
|
|
2620
2541
|
case "InternalErrorException":
|
|
2621
2542
|
case "com.amazonaws.cognitoidentityprovider#InternalErrorException":
|
|
2622
2543
|
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
@@ -2634,14 +2555,12 @@ const deserializeAws_json1_1AssociateSoftwareTokenCommandError = async (output,
|
|
|
2634
2555
|
throw await deserializeAws_json1_1SoftwareTokenMFANotFoundExceptionResponse(parsedOutput, context);
|
|
2635
2556
|
default:
|
|
2636
2557
|
const parsedBody = parsedOutput.body;
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
$metadata,
|
|
2558
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2559
|
+
output,
|
|
2560
|
+
parsedBody,
|
|
2561
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
2562
|
+
errorCode,
|
|
2643
2563
|
});
|
|
2644
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2645
2564
|
}
|
|
2646
2565
|
};
|
|
2647
2566
|
const deserializeAws_json1_1ChangePasswordCommand = async (output, context) => {
|
|
@@ -2663,9 +2582,11 @@ const deserializeAws_json1_1ChangePasswordCommandError = async (output, context)
|
|
|
2663
2582
|
...output,
|
|
2664
2583
|
body: await parseBody(output.body, context),
|
|
2665
2584
|
};
|
|
2666
|
-
let response;
|
|
2667
2585
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2668
2586
|
switch (errorCode) {
|
|
2587
|
+
case "ForbiddenException":
|
|
2588
|
+
case "com.amazonaws.cognitoidentityprovider#ForbiddenException":
|
|
2589
|
+
throw await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context);
|
|
2669
2590
|
case "InternalErrorException":
|
|
2670
2591
|
case "com.amazonaws.cognitoidentityprovider#InternalErrorException":
|
|
2671
2592
|
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
@@ -2698,14 +2619,12 @@ const deserializeAws_json1_1ChangePasswordCommandError = async (output, context)
|
|
|
2698
2619
|
throw await deserializeAws_json1_1UserNotFoundExceptionResponse(parsedOutput, context);
|
|
2699
2620
|
default:
|
|
2700
2621
|
const parsedBody = parsedOutput.body;
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
$metadata,
|
|
2622
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2623
|
+
output,
|
|
2624
|
+
parsedBody,
|
|
2625
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
2626
|
+
errorCode,
|
|
2707
2627
|
});
|
|
2708
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2709
2628
|
}
|
|
2710
2629
|
};
|
|
2711
2630
|
const deserializeAws_json1_1ConfirmDeviceCommand = async (output, context) => {
|
|
@@ -2727,9 +2646,11 @@ const deserializeAws_json1_1ConfirmDeviceCommandError = async (output, context)
|
|
|
2727
2646
|
...output,
|
|
2728
2647
|
body: await parseBody(output.body, context),
|
|
2729
2648
|
};
|
|
2730
|
-
let response;
|
|
2731
2649
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2732
2650
|
switch (errorCode) {
|
|
2651
|
+
case "ForbiddenException":
|
|
2652
|
+
case "com.amazonaws.cognitoidentityprovider#ForbiddenException":
|
|
2653
|
+
throw await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context);
|
|
2733
2654
|
case "InternalErrorException":
|
|
2734
2655
|
case "com.amazonaws.cognitoidentityprovider#InternalErrorException":
|
|
2735
2656
|
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
@@ -2768,14 +2689,12 @@ const deserializeAws_json1_1ConfirmDeviceCommandError = async (output, context)
|
|
|
2768
2689
|
throw await deserializeAws_json1_1UserNotFoundExceptionResponse(parsedOutput, context);
|
|
2769
2690
|
default:
|
|
2770
2691
|
const parsedBody = parsedOutput.body;
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
$metadata,
|
|
2692
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2693
|
+
output,
|
|
2694
|
+
parsedBody,
|
|
2695
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
2696
|
+
errorCode,
|
|
2777
2697
|
});
|
|
2778
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2779
2698
|
}
|
|
2780
2699
|
};
|
|
2781
2700
|
const deserializeAws_json1_1ConfirmForgotPasswordCommand = async (output, context) => {
|
|
@@ -2797,7 +2716,6 @@ const deserializeAws_json1_1ConfirmForgotPasswordCommandError = async (output, c
|
|
|
2797
2716
|
...output,
|
|
2798
2717
|
body: await parseBody(output.body, context),
|
|
2799
2718
|
};
|
|
2800
|
-
let response;
|
|
2801
2719
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2802
2720
|
switch (errorCode) {
|
|
2803
2721
|
case "CodeMismatchException":
|
|
@@ -2806,6 +2724,9 @@ const deserializeAws_json1_1ConfirmForgotPasswordCommandError = async (output, c
|
|
|
2806
2724
|
case "ExpiredCodeException":
|
|
2807
2725
|
case "com.amazonaws.cognitoidentityprovider#ExpiredCodeException":
|
|
2808
2726
|
throw await deserializeAws_json1_1ExpiredCodeExceptionResponse(parsedOutput, context);
|
|
2727
|
+
case "ForbiddenException":
|
|
2728
|
+
case "com.amazonaws.cognitoidentityprovider#ForbiddenException":
|
|
2729
|
+
throw await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context);
|
|
2809
2730
|
case "InternalErrorException":
|
|
2810
2731
|
case "com.amazonaws.cognitoidentityprovider#InternalErrorException":
|
|
2811
2732
|
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
@@ -2847,14 +2768,12 @@ const deserializeAws_json1_1ConfirmForgotPasswordCommandError = async (output, c
|
|
|
2847
2768
|
throw await deserializeAws_json1_1UserNotFoundExceptionResponse(parsedOutput, context);
|
|
2848
2769
|
default:
|
|
2849
2770
|
const parsedBody = parsedOutput.body;
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
$metadata,
|
|
2771
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2772
|
+
output,
|
|
2773
|
+
parsedBody,
|
|
2774
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
2775
|
+
errorCode,
|
|
2856
2776
|
});
|
|
2857
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2858
2777
|
}
|
|
2859
2778
|
};
|
|
2860
2779
|
const deserializeAws_json1_1ConfirmSignUpCommand = async (output, context) => {
|
|
@@ -2876,7 +2795,6 @@ const deserializeAws_json1_1ConfirmSignUpCommandError = async (output, context)
|
|
|
2876
2795
|
...output,
|
|
2877
2796
|
body: await parseBody(output.body, context),
|
|
2878
2797
|
};
|
|
2879
|
-
let response;
|
|
2880
2798
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2881
2799
|
switch (errorCode) {
|
|
2882
2800
|
case "AliasExistsException":
|
|
@@ -2888,6 +2806,9 @@ const deserializeAws_json1_1ConfirmSignUpCommandError = async (output, context)
|
|
|
2888
2806
|
case "ExpiredCodeException":
|
|
2889
2807
|
case "com.amazonaws.cognitoidentityprovider#ExpiredCodeException":
|
|
2890
2808
|
throw await deserializeAws_json1_1ExpiredCodeExceptionResponse(parsedOutput, context);
|
|
2809
|
+
case "ForbiddenException":
|
|
2810
|
+
case "com.amazonaws.cognitoidentityprovider#ForbiddenException":
|
|
2811
|
+
throw await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context);
|
|
2891
2812
|
case "InternalErrorException":
|
|
2892
2813
|
case "com.amazonaws.cognitoidentityprovider#InternalErrorException":
|
|
2893
2814
|
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
@@ -2923,14 +2844,12 @@ const deserializeAws_json1_1ConfirmSignUpCommandError = async (output, context)
|
|
|
2923
2844
|
throw await deserializeAws_json1_1UserNotFoundExceptionResponse(parsedOutput, context);
|
|
2924
2845
|
default:
|
|
2925
2846
|
const parsedBody = parsedOutput.body;
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
|
|
2930
|
-
|
|
2931
|
-
$metadata,
|
|
2847
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2848
|
+
output,
|
|
2849
|
+
parsedBody,
|
|
2850
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
2851
|
+
errorCode,
|
|
2932
2852
|
});
|
|
2933
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2934
2853
|
}
|
|
2935
2854
|
};
|
|
2936
2855
|
const deserializeAws_json1_1CreateGroupCommand = async (output, context) => {
|
|
@@ -2952,7 +2871,6 @@ const deserializeAws_json1_1CreateGroupCommandError = async (output, context) =>
|
|
|
2952
2871
|
...output,
|
|
2953
2872
|
body: await parseBody(output.body, context),
|
|
2954
2873
|
};
|
|
2955
|
-
let response;
|
|
2956
2874
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2957
2875
|
switch (errorCode) {
|
|
2958
2876
|
case "GroupExistsException":
|
|
@@ -2978,14 +2896,12 @@ const deserializeAws_json1_1CreateGroupCommandError = async (output, context) =>
|
|
|
2978
2896
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2979
2897
|
default:
|
|
2980
2898
|
const parsedBody = parsedOutput.body;
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
$metadata,
|
|
2899
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2900
|
+
output,
|
|
2901
|
+
parsedBody,
|
|
2902
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
2903
|
+
errorCode,
|
|
2987
2904
|
});
|
|
2988
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2989
2905
|
}
|
|
2990
2906
|
};
|
|
2991
2907
|
const deserializeAws_json1_1CreateIdentityProviderCommand = async (output, context) => {
|
|
@@ -3007,7 +2923,6 @@ const deserializeAws_json1_1CreateIdentityProviderCommandError = async (output,
|
|
|
3007
2923
|
...output,
|
|
3008
2924
|
body: await parseBody(output.body, context),
|
|
3009
2925
|
};
|
|
3010
|
-
let response;
|
|
3011
2926
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3012
2927
|
switch (errorCode) {
|
|
3013
2928
|
case "DuplicateProviderException":
|
|
@@ -3033,14 +2948,12 @@ const deserializeAws_json1_1CreateIdentityProviderCommandError = async (output,
|
|
|
3033
2948
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3034
2949
|
default:
|
|
3035
2950
|
const parsedBody = parsedOutput.body;
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
$metadata,
|
|
2951
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2952
|
+
output,
|
|
2953
|
+
parsedBody,
|
|
2954
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
2955
|
+
errorCode,
|
|
3042
2956
|
});
|
|
3043
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3044
2957
|
}
|
|
3045
2958
|
};
|
|
3046
2959
|
const deserializeAws_json1_1CreateResourceServerCommand = async (output, context) => {
|
|
@@ -3062,7 +2975,6 @@ const deserializeAws_json1_1CreateResourceServerCommandError = async (output, co
|
|
|
3062
2975
|
...output,
|
|
3063
2976
|
body: await parseBody(output.body, context),
|
|
3064
2977
|
};
|
|
3065
|
-
let response;
|
|
3066
2978
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3067
2979
|
switch (errorCode) {
|
|
3068
2980
|
case "InternalErrorException":
|
|
@@ -3085,14 +2997,12 @@ const deserializeAws_json1_1CreateResourceServerCommandError = async (output, co
|
|
|
3085
2997
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3086
2998
|
default:
|
|
3087
2999
|
const parsedBody = parsedOutput.body;
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
$metadata,
|
|
3000
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3001
|
+
output,
|
|
3002
|
+
parsedBody,
|
|
3003
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
3004
|
+
errorCode,
|
|
3094
3005
|
});
|
|
3095
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3096
3006
|
}
|
|
3097
3007
|
};
|
|
3098
3008
|
const deserializeAws_json1_1CreateUserImportJobCommand = async (output, context) => {
|
|
@@ -3114,7 +3024,6 @@ const deserializeAws_json1_1CreateUserImportJobCommandError = async (output, con
|
|
|
3114
3024
|
...output,
|
|
3115
3025
|
body: await parseBody(output.body, context),
|
|
3116
3026
|
};
|
|
3117
|
-
let response;
|
|
3118
3027
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3119
3028
|
switch (errorCode) {
|
|
3120
3029
|
case "InternalErrorException":
|
|
@@ -3140,14 +3049,12 @@ const deserializeAws_json1_1CreateUserImportJobCommandError = async (output, con
|
|
|
3140
3049
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3141
3050
|
default:
|
|
3142
3051
|
const parsedBody = parsedOutput.body;
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
|
|
3148
|
-
$metadata,
|
|
3052
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3053
|
+
output,
|
|
3054
|
+
parsedBody,
|
|
3055
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
3056
|
+
errorCode,
|
|
3149
3057
|
});
|
|
3150
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3151
3058
|
}
|
|
3152
3059
|
};
|
|
3153
3060
|
const deserializeAws_json1_1CreateUserPoolCommand = async (output, context) => {
|
|
@@ -3169,7 +3076,6 @@ const deserializeAws_json1_1CreateUserPoolCommandError = async (output, context)
|
|
|
3169
3076
|
...output,
|
|
3170
3077
|
body: await parseBody(output.body, context),
|
|
3171
3078
|
};
|
|
3172
|
-
let response;
|
|
3173
3079
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3174
3080
|
switch (errorCode) {
|
|
3175
3081
|
case "InternalErrorException":
|
|
@@ -3201,14 +3107,12 @@ const deserializeAws_json1_1CreateUserPoolCommandError = async (output, context)
|
|
|
3201
3107
|
throw await deserializeAws_json1_1UserPoolTaggingExceptionResponse(parsedOutput, context);
|
|
3202
3108
|
default:
|
|
3203
3109
|
const parsedBody = parsedOutput.body;
|
|
3204
|
-
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
|
|
3208
|
-
|
|
3209
|
-
$metadata,
|
|
3110
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3111
|
+
output,
|
|
3112
|
+
parsedBody,
|
|
3113
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
3114
|
+
errorCode,
|
|
3210
3115
|
});
|
|
3211
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3212
3116
|
}
|
|
3213
3117
|
};
|
|
3214
3118
|
const deserializeAws_json1_1CreateUserPoolClientCommand = async (output, context) => {
|
|
@@ -3230,7 +3134,6 @@ const deserializeAws_json1_1CreateUserPoolClientCommandError = async (output, co
|
|
|
3230
3134
|
...output,
|
|
3231
3135
|
body: await parseBody(output.body, context),
|
|
3232
3136
|
};
|
|
3233
|
-
let response;
|
|
3234
3137
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3235
3138
|
switch (errorCode) {
|
|
3236
3139
|
case "InternalErrorException":
|
|
@@ -3259,14 +3162,12 @@ const deserializeAws_json1_1CreateUserPoolClientCommandError = async (output, co
|
|
|
3259
3162
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3260
3163
|
default:
|
|
3261
3164
|
const parsedBody = parsedOutput.body;
|
|
3262
|
-
|
|
3263
|
-
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
|
|
3267
|
-
$metadata,
|
|
3165
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3166
|
+
output,
|
|
3167
|
+
parsedBody,
|
|
3168
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
3169
|
+
errorCode,
|
|
3268
3170
|
});
|
|
3269
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3270
3171
|
}
|
|
3271
3172
|
};
|
|
3272
3173
|
const deserializeAws_json1_1CreateUserPoolDomainCommand = async (output, context) => {
|
|
@@ -3288,7 +3189,6 @@ const deserializeAws_json1_1CreateUserPoolDomainCommandError = async (output, co
|
|
|
3288
3189
|
...output,
|
|
3289
3190
|
body: await parseBody(output.body, context),
|
|
3290
3191
|
};
|
|
3291
|
-
let response;
|
|
3292
3192
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3293
3193
|
switch (errorCode) {
|
|
3294
3194
|
case "InternalErrorException":
|
|
@@ -3308,14 +3208,12 @@ const deserializeAws_json1_1CreateUserPoolDomainCommandError = async (output, co
|
|
|
3308
3208
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3309
3209
|
default:
|
|
3310
3210
|
const parsedBody = parsedOutput.body;
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
$metadata,
|
|
3211
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3212
|
+
output,
|
|
3213
|
+
parsedBody,
|
|
3214
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
3215
|
+
errorCode,
|
|
3317
3216
|
});
|
|
3318
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3319
3217
|
}
|
|
3320
3218
|
};
|
|
3321
3219
|
const deserializeAws_json1_1DeleteGroupCommand = async (output, context) => {
|
|
@@ -3334,7 +3232,6 @@ const deserializeAws_json1_1DeleteGroupCommandError = async (output, context) =>
|
|
|
3334
3232
|
...output,
|
|
3335
3233
|
body: await parseBody(output.body, context),
|
|
3336
3234
|
};
|
|
3337
|
-
let response;
|
|
3338
3235
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3339
3236
|
switch (errorCode) {
|
|
3340
3237
|
case "InternalErrorException":
|
|
@@ -3354,14 +3251,12 @@ const deserializeAws_json1_1DeleteGroupCommandError = async (output, context) =>
|
|
|
3354
3251
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3355
3252
|
default:
|
|
3356
3253
|
const parsedBody = parsedOutput.body;
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
|
|
3362
|
-
$metadata,
|
|
3254
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3255
|
+
output,
|
|
3256
|
+
parsedBody,
|
|
3257
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
3258
|
+
errorCode,
|
|
3363
3259
|
});
|
|
3364
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3365
3260
|
}
|
|
3366
3261
|
};
|
|
3367
3262
|
const deserializeAws_json1_1DeleteIdentityProviderCommand = async (output, context) => {
|
|
@@ -3380,7 +3275,6 @@ const deserializeAws_json1_1DeleteIdentityProviderCommandError = async (output,
|
|
|
3380
3275
|
...output,
|
|
3381
3276
|
body: await parseBody(output.body, context),
|
|
3382
3277
|
};
|
|
3383
|
-
let response;
|
|
3384
3278
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3385
3279
|
switch (errorCode) {
|
|
3386
3280
|
case "InternalErrorException":
|
|
@@ -3403,14 +3297,12 @@ const deserializeAws_json1_1DeleteIdentityProviderCommandError = async (output,
|
|
|
3403
3297
|
throw await deserializeAws_json1_1UnsupportedIdentityProviderExceptionResponse(parsedOutput, context);
|
|
3404
3298
|
default:
|
|
3405
3299
|
const parsedBody = parsedOutput.body;
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
$metadata,
|
|
3300
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3301
|
+
output,
|
|
3302
|
+
parsedBody,
|
|
3303
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
3304
|
+
errorCode,
|
|
3412
3305
|
});
|
|
3413
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3414
3306
|
}
|
|
3415
3307
|
};
|
|
3416
3308
|
const deserializeAws_json1_1DeleteResourceServerCommand = async (output, context) => {
|
|
@@ -3429,7 +3321,6 @@ const deserializeAws_json1_1DeleteResourceServerCommandError = async (output, co
|
|
|
3429
3321
|
...output,
|
|
3430
3322
|
body: await parseBody(output.body, context),
|
|
3431
3323
|
};
|
|
3432
|
-
let response;
|
|
3433
3324
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3434
3325
|
switch (errorCode) {
|
|
3435
3326
|
case "InternalErrorException":
|
|
@@ -3449,14 +3340,12 @@ const deserializeAws_json1_1DeleteResourceServerCommandError = async (output, co
|
|
|
3449
3340
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3450
3341
|
default:
|
|
3451
3342
|
const parsedBody = parsedOutput.body;
|
|
3452
|
-
|
|
3453
|
-
|
|
3454
|
-
|
|
3455
|
-
|
|
3456
|
-
|
|
3457
|
-
$metadata,
|
|
3343
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3344
|
+
output,
|
|
3345
|
+
parsedBody,
|
|
3346
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
3347
|
+
errorCode,
|
|
3458
3348
|
});
|
|
3459
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3460
3349
|
}
|
|
3461
3350
|
};
|
|
3462
3351
|
const deserializeAws_json1_1DeleteUserCommand = async (output, context) => {
|
|
@@ -3475,9 +3364,11 @@ const deserializeAws_json1_1DeleteUserCommandError = async (output, context) =>
|
|
|
3475
3364
|
...output,
|
|
3476
3365
|
body: await parseBody(output.body, context),
|
|
3477
3366
|
};
|
|
3478
|
-
let response;
|
|
3479
3367
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3480
3368
|
switch (errorCode) {
|
|
3369
|
+
case "ForbiddenException":
|
|
3370
|
+
case "com.amazonaws.cognitoidentityprovider#ForbiddenException":
|
|
3371
|
+
throw await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context);
|
|
3481
3372
|
case "InternalErrorException":
|
|
3482
3373
|
case "com.amazonaws.cognitoidentityprovider#InternalErrorException":
|
|
3483
3374
|
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
@@ -3504,14 +3395,12 @@ const deserializeAws_json1_1DeleteUserCommandError = async (output, context) =>
|
|
|
3504
3395
|
throw await deserializeAws_json1_1UserNotFoundExceptionResponse(parsedOutput, context);
|
|
3505
3396
|
default:
|
|
3506
3397
|
const parsedBody = parsedOutput.body;
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
-
|
|
3510
|
-
|
|
3511
|
-
|
|
3512
|
-
$metadata,
|
|
3398
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3399
|
+
output,
|
|
3400
|
+
parsedBody,
|
|
3401
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
3402
|
+
errorCode,
|
|
3513
3403
|
});
|
|
3514
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3515
3404
|
}
|
|
3516
3405
|
};
|
|
3517
3406
|
const deserializeAws_json1_1DeleteUserAttributesCommand = async (output, context) => {
|
|
@@ -3533,9 +3422,11 @@ const deserializeAws_json1_1DeleteUserAttributesCommandError = async (output, co
|
|
|
3533
3422
|
...output,
|
|
3534
3423
|
body: await parseBody(output.body, context),
|
|
3535
3424
|
};
|
|
3536
|
-
let response;
|
|
3537
3425
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3538
3426
|
switch (errorCode) {
|
|
3427
|
+
case "ForbiddenException":
|
|
3428
|
+
case "com.amazonaws.cognitoidentityprovider#ForbiddenException":
|
|
3429
|
+
throw await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context);
|
|
3539
3430
|
case "InternalErrorException":
|
|
3540
3431
|
case "com.amazonaws.cognitoidentityprovider#InternalErrorException":
|
|
3541
3432
|
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
@@ -3562,14 +3453,12 @@ const deserializeAws_json1_1DeleteUserAttributesCommandError = async (output, co
|
|
|
3562
3453
|
throw await deserializeAws_json1_1UserNotFoundExceptionResponse(parsedOutput, context);
|
|
3563
3454
|
default:
|
|
3564
3455
|
const parsedBody = parsedOutput.body;
|
|
3565
|
-
|
|
3566
|
-
|
|
3567
|
-
|
|
3568
|
-
|
|
3569
|
-
|
|
3570
|
-
$metadata,
|
|
3456
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3457
|
+
output,
|
|
3458
|
+
parsedBody,
|
|
3459
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
3460
|
+
errorCode,
|
|
3571
3461
|
});
|
|
3572
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3573
3462
|
}
|
|
3574
3463
|
};
|
|
3575
3464
|
const deserializeAws_json1_1DeleteUserPoolCommand = async (output, context) => {
|
|
@@ -3588,7 +3477,6 @@ const deserializeAws_json1_1DeleteUserPoolCommandError = async (output, context)
|
|
|
3588
3477
|
...output,
|
|
3589
3478
|
body: await parseBody(output.body, context),
|
|
3590
3479
|
};
|
|
3591
|
-
let response;
|
|
3592
3480
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3593
3481
|
switch (errorCode) {
|
|
3594
3482
|
case "InternalErrorException":
|
|
@@ -3611,14 +3499,12 @@ const deserializeAws_json1_1DeleteUserPoolCommandError = async (output, context)
|
|
|
3611
3499
|
throw await deserializeAws_json1_1UserImportInProgressExceptionResponse(parsedOutput, context);
|
|
3612
3500
|
default:
|
|
3613
3501
|
const parsedBody = parsedOutput.body;
|
|
3614
|
-
|
|
3615
|
-
|
|
3616
|
-
|
|
3617
|
-
|
|
3618
|
-
|
|
3619
|
-
$metadata,
|
|
3502
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3503
|
+
output,
|
|
3504
|
+
parsedBody,
|
|
3505
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
3506
|
+
errorCode,
|
|
3620
3507
|
});
|
|
3621
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3622
3508
|
}
|
|
3623
3509
|
};
|
|
3624
3510
|
const deserializeAws_json1_1DeleteUserPoolClientCommand = async (output, context) => {
|
|
@@ -3637,7 +3523,6 @@ const deserializeAws_json1_1DeleteUserPoolClientCommandError = async (output, co
|
|
|
3637
3523
|
...output,
|
|
3638
3524
|
body: await parseBody(output.body, context),
|
|
3639
3525
|
};
|
|
3640
|
-
let response;
|
|
3641
3526
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3642
3527
|
switch (errorCode) {
|
|
3643
3528
|
case "InternalErrorException":
|
|
@@ -3657,14 +3542,12 @@ const deserializeAws_json1_1DeleteUserPoolClientCommandError = async (output, co
|
|
|
3657
3542
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3658
3543
|
default:
|
|
3659
3544
|
const parsedBody = parsedOutput.body;
|
|
3660
|
-
|
|
3661
|
-
|
|
3662
|
-
|
|
3663
|
-
|
|
3664
|
-
|
|
3665
|
-
$metadata,
|
|
3545
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3546
|
+
output,
|
|
3547
|
+
parsedBody,
|
|
3548
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
3549
|
+
errorCode,
|
|
3666
3550
|
});
|
|
3667
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3668
3551
|
}
|
|
3669
3552
|
};
|
|
3670
3553
|
const deserializeAws_json1_1DeleteUserPoolDomainCommand = async (output, context) => {
|
|
@@ -3686,7 +3569,6 @@ const deserializeAws_json1_1DeleteUserPoolDomainCommandError = async (output, co
|
|
|
3686
3569
|
...output,
|
|
3687
3570
|
body: await parseBody(output.body, context),
|
|
3688
3571
|
};
|
|
3689
|
-
let response;
|
|
3690
3572
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3691
3573
|
switch (errorCode) {
|
|
3692
3574
|
case "InternalErrorException":
|
|
@@ -3703,14 +3585,12 @@ const deserializeAws_json1_1DeleteUserPoolDomainCommandError = async (output, co
|
|
|
3703
3585
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3704
3586
|
default:
|
|
3705
3587
|
const parsedBody = parsedOutput.body;
|
|
3706
|
-
|
|
3707
|
-
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
$metadata,
|
|
3588
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3589
|
+
output,
|
|
3590
|
+
parsedBody,
|
|
3591
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
3592
|
+
errorCode,
|
|
3712
3593
|
});
|
|
3713
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3714
3594
|
}
|
|
3715
3595
|
};
|
|
3716
3596
|
const deserializeAws_json1_1DescribeIdentityProviderCommand = async (output, context) => {
|
|
@@ -3732,7 +3612,6 @@ const deserializeAws_json1_1DescribeIdentityProviderCommandError = async (output
|
|
|
3732
3612
|
...output,
|
|
3733
3613
|
body: await parseBody(output.body, context),
|
|
3734
3614
|
};
|
|
3735
|
-
let response;
|
|
3736
3615
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3737
3616
|
switch (errorCode) {
|
|
3738
3617
|
case "InternalErrorException":
|
|
@@ -3752,14 +3631,12 @@ const deserializeAws_json1_1DescribeIdentityProviderCommandError = async (output
|
|
|
3752
3631
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3753
3632
|
default:
|
|
3754
3633
|
const parsedBody = parsedOutput.body;
|
|
3755
|
-
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
|
|
3759
|
-
|
|
3760
|
-
$metadata,
|
|
3634
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3635
|
+
output,
|
|
3636
|
+
parsedBody,
|
|
3637
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
3638
|
+
errorCode,
|
|
3761
3639
|
});
|
|
3762
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3763
3640
|
}
|
|
3764
3641
|
};
|
|
3765
3642
|
const deserializeAws_json1_1DescribeResourceServerCommand = async (output, context) => {
|
|
@@ -3781,7 +3658,6 @@ const deserializeAws_json1_1DescribeResourceServerCommandError = async (output,
|
|
|
3781
3658
|
...output,
|
|
3782
3659
|
body: await parseBody(output.body, context),
|
|
3783
3660
|
};
|
|
3784
|
-
let response;
|
|
3785
3661
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3786
3662
|
switch (errorCode) {
|
|
3787
3663
|
case "InternalErrorException":
|
|
@@ -3801,14 +3677,12 @@ const deserializeAws_json1_1DescribeResourceServerCommandError = async (output,
|
|
|
3801
3677
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3802
3678
|
default:
|
|
3803
3679
|
const parsedBody = parsedOutput.body;
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
$metadata,
|
|
3680
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3681
|
+
output,
|
|
3682
|
+
parsedBody,
|
|
3683
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
3684
|
+
errorCode,
|
|
3810
3685
|
});
|
|
3811
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3812
3686
|
}
|
|
3813
3687
|
};
|
|
3814
3688
|
const deserializeAws_json1_1DescribeRiskConfigurationCommand = async (output, context) => {
|
|
@@ -3830,7 +3704,6 @@ const deserializeAws_json1_1DescribeRiskConfigurationCommandError = async (outpu
|
|
|
3830
3704
|
...output,
|
|
3831
3705
|
body: await parseBody(output.body, context),
|
|
3832
3706
|
};
|
|
3833
|
-
let response;
|
|
3834
3707
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3835
3708
|
switch (errorCode) {
|
|
3836
3709
|
case "InternalErrorException":
|
|
@@ -3853,14 +3726,12 @@ const deserializeAws_json1_1DescribeRiskConfigurationCommandError = async (outpu
|
|
|
3853
3726
|
throw await deserializeAws_json1_1UserPoolAddOnNotEnabledExceptionResponse(parsedOutput, context);
|
|
3854
3727
|
default:
|
|
3855
3728
|
const parsedBody = parsedOutput.body;
|
|
3856
|
-
|
|
3857
|
-
|
|
3858
|
-
|
|
3859
|
-
|
|
3860
|
-
|
|
3861
|
-
$metadata,
|
|
3729
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3730
|
+
output,
|
|
3731
|
+
parsedBody,
|
|
3732
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
3733
|
+
errorCode,
|
|
3862
3734
|
});
|
|
3863
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3864
3735
|
}
|
|
3865
3736
|
};
|
|
3866
3737
|
const deserializeAws_json1_1DescribeUserImportJobCommand = async (output, context) => {
|
|
@@ -3882,7 +3753,6 @@ const deserializeAws_json1_1DescribeUserImportJobCommandError = async (output, c
|
|
|
3882
3753
|
...output,
|
|
3883
3754
|
body: await parseBody(output.body, context),
|
|
3884
3755
|
};
|
|
3885
|
-
let response;
|
|
3886
3756
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3887
3757
|
switch (errorCode) {
|
|
3888
3758
|
case "InternalErrorException":
|
|
@@ -3902,14 +3772,12 @@ const deserializeAws_json1_1DescribeUserImportJobCommandError = async (output, c
|
|
|
3902
3772
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3903
3773
|
default:
|
|
3904
3774
|
const parsedBody = parsedOutput.body;
|
|
3905
|
-
|
|
3906
|
-
|
|
3907
|
-
|
|
3908
|
-
|
|
3909
|
-
|
|
3910
|
-
$metadata,
|
|
3775
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3776
|
+
output,
|
|
3777
|
+
parsedBody,
|
|
3778
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
3779
|
+
errorCode,
|
|
3911
3780
|
});
|
|
3912
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3913
3781
|
}
|
|
3914
3782
|
};
|
|
3915
3783
|
const deserializeAws_json1_1DescribeUserPoolCommand = async (output, context) => {
|
|
@@ -3931,7 +3799,6 @@ const deserializeAws_json1_1DescribeUserPoolCommandError = async (output, contex
|
|
|
3931
3799
|
...output,
|
|
3932
3800
|
body: await parseBody(output.body, context),
|
|
3933
3801
|
};
|
|
3934
|
-
let response;
|
|
3935
3802
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3936
3803
|
switch (errorCode) {
|
|
3937
3804
|
case "InternalErrorException":
|
|
@@ -3954,14 +3821,12 @@ const deserializeAws_json1_1DescribeUserPoolCommandError = async (output, contex
|
|
|
3954
3821
|
throw await deserializeAws_json1_1UserPoolTaggingExceptionResponse(parsedOutput, context);
|
|
3955
3822
|
default:
|
|
3956
3823
|
const parsedBody = parsedOutput.body;
|
|
3957
|
-
|
|
3958
|
-
|
|
3959
|
-
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
$metadata,
|
|
3824
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3825
|
+
output,
|
|
3826
|
+
parsedBody,
|
|
3827
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
3828
|
+
errorCode,
|
|
3963
3829
|
});
|
|
3964
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3965
3830
|
}
|
|
3966
3831
|
};
|
|
3967
3832
|
const deserializeAws_json1_1DescribeUserPoolClientCommand = async (output, context) => {
|
|
@@ -3983,7 +3848,6 @@ const deserializeAws_json1_1DescribeUserPoolClientCommandError = async (output,
|
|
|
3983
3848
|
...output,
|
|
3984
3849
|
body: await parseBody(output.body, context),
|
|
3985
3850
|
};
|
|
3986
|
-
let response;
|
|
3987
3851
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3988
3852
|
switch (errorCode) {
|
|
3989
3853
|
case "InternalErrorException":
|
|
@@ -4003,14 +3867,12 @@ const deserializeAws_json1_1DescribeUserPoolClientCommandError = async (output,
|
|
|
4003
3867
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4004
3868
|
default:
|
|
4005
3869
|
const parsedBody = parsedOutput.body;
|
|
4006
|
-
|
|
4007
|
-
|
|
4008
|
-
|
|
4009
|
-
|
|
4010
|
-
|
|
4011
|
-
$metadata,
|
|
3870
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3871
|
+
output,
|
|
3872
|
+
parsedBody,
|
|
3873
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
3874
|
+
errorCode,
|
|
4012
3875
|
});
|
|
4013
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4014
3876
|
}
|
|
4015
3877
|
};
|
|
4016
3878
|
const deserializeAws_json1_1DescribeUserPoolDomainCommand = async (output, context) => {
|
|
@@ -4032,7 +3894,6 @@ const deserializeAws_json1_1DescribeUserPoolDomainCommandError = async (output,
|
|
|
4032
3894
|
...output,
|
|
4033
3895
|
body: await parseBody(output.body, context),
|
|
4034
3896
|
};
|
|
4035
|
-
let response;
|
|
4036
3897
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4037
3898
|
switch (errorCode) {
|
|
4038
3899
|
case "InternalErrorException":
|
|
@@ -4049,14 +3910,12 @@ const deserializeAws_json1_1DescribeUserPoolDomainCommandError = async (output,
|
|
|
4049
3910
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
4050
3911
|
default:
|
|
4051
3912
|
const parsedBody = parsedOutput.body;
|
|
4052
|
-
|
|
4053
|
-
|
|
4054
|
-
|
|
4055
|
-
|
|
4056
|
-
|
|
4057
|
-
$metadata,
|
|
3913
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3914
|
+
output,
|
|
3915
|
+
parsedBody,
|
|
3916
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
3917
|
+
errorCode,
|
|
4058
3918
|
});
|
|
4059
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4060
3919
|
}
|
|
4061
3920
|
};
|
|
4062
3921
|
const deserializeAws_json1_1ForgetDeviceCommand = async (output, context) => {
|
|
@@ -4075,9 +3934,11 @@ const deserializeAws_json1_1ForgetDeviceCommandError = async (output, context) =
|
|
|
4075
3934
|
...output,
|
|
4076
3935
|
body: await parseBody(output.body, context),
|
|
4077
3936
|
};
|
|
4078
|
-
let response;
|
|
4079
3937
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4080
3938
|
switch (errorCode) {
|
|
3939
|
+
case "ForbiddenException":
|
|
3940
|
+
case "com.amazonaws.cognitoidentityprovider#ForbiddenException":
|
|
3941
|
+
throw await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context);
|
|
4081
3942
|
case "InternalErrorException":
|
|
4082
3943
|
case "com.amazonaws.cognitoidentityprovider#InternalErrorException":
|
|
4083
3944
|
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
@@ -4107,14 +3968,12 @@ const deserializeAws_json1_1ForgetDeviceCommandError = async (output, context) =
|
|
|
4107
3968
|
throw await deserializeAws_json1_1UserNotFoundExceptionResponse(parsedOutput, context);
|
|
4108
3969
|
default:
|
|
4109
3970
|
const parsedBody = parsedOutput.body;
|
|
4110
|
-
|
|
4111
|
-
|
|
4112
|
-
|
|
4113
|
-
|
|
4114
|
-
|
|
4115
|
-
$metadata,
|
|
3971
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3972
|
+
output,
|
|
3973
|
+
parsedBody,
|
|
3974
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
3975
|
+
errorCode,
|
|
4116
3976
|
});
|
|
4117
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4118
3977
|
}
|
|
4119
3978
|
};
|
|
4120
3979
|
const deserializeAws_json1_1ForgotPasswordCommand = async (output, context) => {
|
|
@@ -4136,12 +3995,14 @@ const deserializeAws_json1_1ForgotPasswordCommandError = async (output, context)
|
|
|
4136
3995
|
...output,
|
|
4137
3996
|
body: await parseBody(output.body, context),
|
|
4138
3997
|
};
|
|
4139
|
-
let response;
|
|
4140
3998
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4141
3999
|
switch (errorCode) {
|
|
4142
4000
|
case "CodeDeliveryFailureException":
|
|
4143
4001
|
case "com.amazonaws.cognitoidentityprovider#CodeDeliveryFailureException":
|
|
4144
4002
|
throw await deserializeAws_json1_1CodeDeliveryFailureExceptionResponse(parsedOutput, context);
|
|
4003
|
+
case "ForbiddenException":
|
|
4004
|
+
case "com.amazonaws.cognitoidentityprovider#ForbiddenException":
|
|
4005
|
+
throw await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context);
|
|
4145
4006
|
case "InternalErrorException":
|
|
4146
4007
|
case "com.amazonaws.cognitoidentityprovider#InternalErrorException":
|
|
4147
4008
|
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
@@ -4183,14 +4044,12 @@ const deserializeAws_json1_1ForgotPasswordCommandError = async (output, context)
|
|
|
4183
4044
|
throw await deserializeAws_json1_1UserNotFoundExceptionResponse(parsedOutput, context);
|
|
4184
4045
|
default:
|
|
4185
4046
|
const parsedBody = parsedOutput.body;
|
|
4186
|
-
|
|
4187
|
-
|
|
4188
|
-
|
|
4189
|
-
|
|
4190
|
-
|
|
4191
|
-
$metadata,
|
|
4047
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4048
|
+
output,
|
|
4049
|
+
parsedBody,
|
|
4050
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
4051
|
+
errorCode,
|
|
4192
4052
|
});
|
|
4193
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4194
4053
|
}
|
|
4195
4054
|
};
|
|
4196
4055
|
const deserializeAws_json1_1GetCSVHeaderCommand = async (output, context) => {
|
|
@@ -4212,7 +4071,6 @@ const deserializeAws_json1_1GetCSVHeaderCommandError = async (output, context) =
|
|
|
4212
4071
|
...output,
|
|
4213
4072
|
body: await parseBody(output.body, context),
|
|
4214
4073
|
};
|
|
4215
|
-
let response;
|
|
4216
4074
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4217
4075
|
switch (errorCode) {
|
|
4218
4076
|
case "InternalErrorException":
|
|
@@ -4232,14 +4090,12 @@ const deserializeAws_json1_1GetCSVHeaderCommandError = async (output, context) =
|
|
|
4232
4090
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4233
4091
|
default:
|
|
4234
4092
|
const parsedBody = parsedOutput.body;
|
|
4235
|
-
|
|
4236
|
-
|
|
4237
|
-
|
|
4238
|
-
|
|
4239
|
-
|
|
4240
|
-
$metadata,
|
|
4093
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4094
|
+
output,
|
|
4095
|
+
parsedBody,
|
|
4096
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
4097
|
+
errorCode,
|
|
4241
4098
|
});
|
|
4242
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4243
4099
|
}
|
|
4244
4100
|
};
|
|
4245
4101
|
const deserializeAws_json1_1GetDeviceCommand = async (output, context) => {
|
|
@@ -4261,9 +4117,11 @@ const deserializeAws_json1_1GetDeviceCommandError = async (output, context) => {
|
|
|
4261
4117
|
...output,
|
|
4262
4118
|
body: await parseBody(output.body, context),
|
|
4263
4119
|
};
|
|
4264
|
-
let response;
|
|
4265
4120
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4266
4121
|
switch (errorCode) {
|
|
4122
|
+
case "ForbiddenException":
|
|
4123
|
+
case "com.amazonaws.cognitoidentityprovider#ForbiddenException":
|
|
4124
|
+
throw await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context);
|
|
4267
4125
|
case "InternalErrorException":
|
|
4268
4126
|
case "com.amazonaws.cognitoidentityprovider#InternalErrorException":
|
|
4269
4127
|
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
@@ -4293,14 +4151,12 @@ const deserializeAws_json1_1GetDeviceCommandError = async (output, context) => {
|
|
|
4293
4151
|
throw await deserializeAws_json1_1UserNotFoundExceptionResponse(parsedOutput, context);
|
|
4294
4152
|
default:
|
|
4295
4153
|
const parsedBody = parsedOutput.body;
|
|
4296
|
-
|
|
4297
|
-
|
|
4298
|
-
|
|
4299
|
-
|
|
4300
|
-
|
|
4301
|
-
$metadata,
|
|
4154
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4155
|
+
output,
|
|
4156
|
+
parsedBody,
|
|
4157
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
4158
|
+
errorCode,
|
|
4302
4159
|
});
|
|
4303
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4304
4160
|
}
|
|
4305
4161
|
};
|
|
4306
4162
|
const deserializeAws_json1_1GetGroupCommand = async (output, context) => {
|
|
@@ -4322,7 +4178,6 @@ const deserializeAws_json1_1GetGroupCommandError = async (output, context) => {
|
|
|
4322
4178
|
...output,
|
|
4323
4179
|
body: await parseBody(output.body, context),
|
|
4324
4180
|
};
|
|
4325
|
-
let response;
|
|
4326
4181
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4327
4182
|
switch (errorCode) {
|
|
4328
4183
|
case "InternalErrorException":
|
|
@@ -4342,14 +4197,12 @@ const deserializeAws_json1_1GetGroupCommandError = async (output, context) => {
|
|
|
4342
4197
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4343
4198
|
default:
|
|
4344
4199
|
const parsedBody = parsedOutput.body;
|
|
4345
|
-
|
|
4346
|
-
|
|
4347
|
-
|
|
4348
|
-
|
|
4349
|
-
|
|
4350
|
-
$metadata,
|
|
4200
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4201
|
+
output,
|
|
4202
|
+
parsedBody,
|
|
4203
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
4204
|
+
errorCode,
|
|
4351
4205
|
});
|
|
4352
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4353
4206
|
}
|
|
4354
4207
|
};
|
|
4355
4208
|
const deserializeAws_json1_1GetIdentityProviderByIdentifierCommand = async (output, context) => {
|
|
@@ -4371,7 +4224,6 @@ const deserializeAws_json1_1GetIdentityProviderByIdentifierCommandError = async
|
|
|
4371
4224
|
...output,
|
|
4372
4225
|
body: await parseBody(output.body, context),
|
|
4373
4226
|
};
|
|
4374
|
-
let response;
|
|
4375
4227
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4376
4228
|
switch (errorCode) {
|
|
4377
4229
|
case "InternalErrorException":
|
|
@@ -4391,14 +4243,12 @@ const deserializeAws_json1_1GetIdentityProviderByIdentifierCommandError = async
|
|
|
4391
4243
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4392
4244
|
default:
|
|
4393
4245
|
const parsedBody = parsedOutput.body;
|
|
4394
|
-
|
|
4395
|
-
|
|
4396
|
-
|
|
4397
|
-
|
|
4398
|
-
|
|
4399
|
-
$metadata,
|
|
4246
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4247
|
+
output,
|
|
4248
|
+
parsedBody,
|
|
4249
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
4250
|
+
errorCode,
|
|
4400
4251
|
});
|
|
4401
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4402
4252
|
}
|
|
4403
4253
|
};
|
|
4404
4254
|
const deserializeAws_json1_1GetSigningCertificateCommand = async (output, context) => {
|
|
@@ -4420,7 +4270,6 @@ const deserializeAws_json1_1GetSigningCertificateCommandError = async (output, c
|
|
|
4420
4270
|
...output,
|
|
4421
4271
|
body: await parseBody(output.body, context),
|
|
4422
4272
|
};
|
|
4423
|
-
let response;
|
|
4424
4273
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4425
4274
|
switch (errorCode) {
|
|
4426
4275
|
case "InternalErrorException":
|
|
@@ -4434,14 +4283,12 @@ const deserializeAws_json1_1GetSigningCertificateCommandError = async (output, c
|
|
|
4434
4283
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
4435
4284
|
default:
|
|
4436
4285
|
const parsedBody = parsedOutput.body;
|
|
4437
|
-
|
|
4438
|
-
|
|
4439
|
-
|
|
4440
|
-
|
|
4441
|
-
|
|
4442
|
-
$metadata,
|
|
4286
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4287
|
+
output,
|
|
4288
|
+
parsedBody,
|
|
4289
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
4290
|
+
errorCode,
|
|
4443
4291
|
});
|
|
4444
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4445
4292
|
}
|
|
4446
4293
|
};
|
|
4447
4294
|
const deserializeAws_json1_1GetUICustomizationCommand = async (output, context) => {
|
|
@@ -4463,7 +4310,6 @@ const deserializeAws_json1_1GetUICustomizationCommandError = async (output, cont
|
|
|
4463
4310
|
...output,
|
|
4464
4311
|
body: await parseBody(output.body, context),
|
|
4465
4312
|
};
|
|
4466
|
-
let response;
|
|
4467
4313
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4468
4314
|
switch (errorCode) {
|
|
4469
4315
|
case "InternalErrorException":
|
|
@@ -4483,14 +4329,12 @@ const deserializeAws_json1_1GetUICustomizationCommandError = async (output, cont
|
|
|
4483
4329
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4484
4330
|
default:
|
|
4485
4331
|
const parsedBody = parsedOutput.body;
|
|
4486
|
-
|
|
4487
|
-
|
|
4488
|
-
|
|
4489
|
-
|
|
4490
|
-
|
|
4491
|
-
$metadata,
|
|
4332
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4333
|
+
output,
|
|
4334
|
+
parsedBody,
|
|
4335
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
4336
|
+
errorCode,
|
|
4492
4337
|
});
|
|
4493
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4494
4338
|
}
|
|
4495
4339
|
};
|
|
4496
4340
|
const deserializeAws_json1_1GetUserCommand = async (output, context) => {
|
|
@@ -4512,9 +4356,11 @@ const deserializeAws_json1_1GetUserCommandError = async (output, context) => {
|
|
|
4512
4356
|
...output,
|
|
4513
4357
|
body: await parseBody(output.body, context),
|
|
4514
4358
|
};
|
|
4515
|
-
let response;
|
|
4516
4359
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4517
4360
|
switch (errorCode) {
|
|
4361
|
+
case "ForbiddenException":
|
|
4362
|
+
case "com.amazonaws.cognitoidentityprovider#ForbiddenException":
|
|
4363
|
+
throw await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context);
|
|
4518
4364
|
case "InternalErrorException":
|
|
4519
4365
|
case "com.amazonaws.cognitoidentityprovider#InternalErrorException":
|
|
4520
4366
|
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
@@ -4541,14 +4387,12 @@ const deserializeAws_json1_1GetUserCommandError = async (output, context) => {
|
|
|
4541
4387
|
throw await deserializeAws_json1_1UserNotFoundExceptionResponse(parsedOutput, context);
|
|
4542
4388
|
default:
|
|
4543
4389
|
const parsedBody = parsedOutput.body;
|
|
4544
|
-
|
|
4545
|
-
|
|
4546
|
-
|
|
4547
|
-
|
|
4548
|
-
|
|
4549
|
-
$metadata,
|
|
4390
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4391
|
+
output,
|
|
4392
|
+
parsedBody,
|
|
4393
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
4394
|
+
errorCode,
|
|
4550
4395
|
});
|
|
4551
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4552
4396
|
}
|
|
4553
4397
|
};
|
|
4554
4398
|
const deserializeAws_json1_1GetUserAttributeVerificationCodeCommand = async (output, context) => {
|
|
@@ -4570,12 +4414,14 @@ const deserializeAws_json1_1GetUserAttributeVerificationCodeCommandError = async
|
|
|
4570
4414
|
...output,
|
|
4571
4415
|
body: await parseBody(output.body, context),
|
|
4572
4416
|
};
|
|
4573
|
-
let response;
|
|
4574
4417
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4575
4418
|
switch (errorCode) {
|
|
4576
4419
|
case "CodeDeliveryFailureException":
|
|
4577
4420
|
case "com.amazonaws.cognitoidentityprovider#CodeDeliveryFailureException":
|
|
4578
4421
|
throw await deserializeAws_json1_1CodeDeliveryFailureExceptionResponse(parsedOutput, context);
|
|
4422
|
+
case "ForbiddenException":
|
|
4423
|
+
case "com.amazonaws.cognitoidentityprovider#ForbiddenException":
|
|
4424
|
+
throw await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context);
|
|
4579
4425
|
case "InternalErrorException":
|
|
4580
4426
|
case "com.amazonaws.cognitoidentityprovider#InternalErrorException":
|
|
4581
4427
|
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
@@ -4623,14 +4469,12 @@ const deserializeAws_json1_1GetUserAttributeVerificationCodeCommandError = async
|
|
|
4623
4469
|
throw await deserializeAws_json1_1UserNotFoundExceptionResponse(parsedOutput, context);
|
|
4624
4470
|
default:
|
|
4625
4471
|
const parsedBody = parsedOutput.body;
|
|
4626
|
-
|
|
4627
|
-
|
|
4628
|
-
|
|
4629
|
-
|
|
4630
|
-
|
|
4631
|
-
$metadata,
|
|
4472
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4473
|
+
output,
|
|
4474
|
+
parsedBody,
|
|
4475
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
4476
|
+
errorCode,
|
|
4632
4477
|
});
|
|
4633
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4634
4478
|
}
|
|
4635
4479
|
};
|
|
4636
4480
|
const deserializeAws_json1_1GetUserPoolMfaConfigCommand = async (output, context) => {
|
|
@@ -4652,7 +4496,6 @@ const deserializeAws_json1_1GetUserPoolMfaConfigCommandError = async (output, co
|
|
|
4652
4496
|
...output,
|
|
4653
4497
|
body: await parseBody(output.body, context),
|
|
4654
4498
|
};
|
|
4655
|
-
let response;
|
|
4656
4499
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4657
4500
|
switch (errorCode) {
|
|
4658
4501
|
case "InternalErrorException":
|
|
@@ -4672,14 +4515,12 @@ const deserializeAws_json1_1GetUserPoolMfaConfigCommandError = async (output, co
|
|
|
4672
4515
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4673
4516
|
default:
|
|
4674
4517
|
const parsedBody = parsedOutput.body;
|
|
4675
|
-
|
|
4676
|
-
|
|
4677
|
-
|
|
4678
|
-
|
|
4679
|
-
|
|
4680
|
-
$metadata,
|
|
4518
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4519
|
+
output,
|
|
4520
|
+
parsedBody,
|
|
4521
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
4522
|
+
errorCode,
|
|
4681
4523
|
});
|
|
4682
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4683
4524
|
}
|
|
4684
4525
|
};
|
|
4685
4526
|
const deserializeAws_json1_1GlobalSignOutCommand = async (output, context) => {
|
|
@@ -4701,9 +4542,11 @@ const deserializeAws_json1_1GlobalSignOutCommandError = async (output, context)
|
|
|
4701
4542
|
...output,
|
|
4702
4543
|
body: await parseBody(output.body, context),
|
|
4703
4544
|
};
|
|
4704
|
-
let response;
|
|
4705
4545
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4706
4546
|
switch (errorCode) {
|
|
4547
|
+
case "ForbiddenException":
|
|
4548
|
+
case "com.amazonaws.cognitoidentityprovider#ForbiddenException":
|
|
4549
|
+
throw await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context);
|
|
4707
4550
|
case "InternalErrorException":
|
|
4708
4551
|
case "com.amazonaws.cognitoidentityprovider#InternalErrorException":
|
|
4709
4552
|
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
@@ -4727,14 +4570,12 @@ const deserializeAws_json1_1GlobalSignOutCommandError = async (output, context)
|
|
|
4727
4570
|
throw await deserializeAws_json1_1UserNotConfirmedExceptionResponse(parsedOutput, context);
|
|
4728
4571
|
default:
|
|
4729
4572
|
const parsedBody = parsedOutput.body;
|
|
4730
|
-
|
|
4731
|
-
|
|
4732
|
-
|
|
4733
|
-
|
|
4734
|
-
|
|
4735
|
-
$metadata,
|
|
4573
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4574
|
+
output,
|
|
4575
|
+
parsedBody,
|
|
4576
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
4577
|
+
errorCode,
|
|
4736
4578
|
});
|
|
4737
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4738
4579
|
}
|
|
4739
4580
|
};
|
|
4740
4581
|
const deserializeAws_json1_1InitiateAuthCommand = async (output, context) => {
|
|
@@ -4756,9 +4597,11 @@ const deserializeAws_json1_1InitiateAuthCommandError = async (output, context) =
|
|
|
4756
4597
|
...output,
|
|
4757
4598
|
body: await parseBody(output.body, context),
|
|
4758
4599
|
};
|
|
4759
|
-
let response;
|
|
4760
4600
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4761
4601
|
switch (errorCode) {
|
|
4602
|
+
case "ForbiddenException":
|
|
4603
|
+
case "com.amazonaws.cognitoidentityprovider#ForbiddenException":
|
|
4604
|
+
throw await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context);
|
|
4762
4605
|
case "InternalErrorException":
|
|
4763
4606
|
case "com.amazonaws.cognitoidentityprovider#InternalErrorException":
|
|
4764
4607
|
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
@@ -4803,14 +4646,12 @@ const deserializeAws_json1_1InitiateAuthCommandError = async (output, context) =
|
|
|
4803
4646
|
throw await deserializeAws_json1_1UserNotFoundExceptionResponse(parsedOutput, context);
|
|
4804
4647
|
default:
|
|
4805
4648
|
const parsedBody = parsedOutput.body;
|
|
4806
|
-
|
|
4807
|
-
|
|
4808
|
-
|
|
4809
|
-
|
|
4810
|
-
|
|
4811
|
-
$metadata,
|
|
4649
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4650
|
+
output,
|
|
4651
|
+
parsedBody,
|
|
4652
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
4653
|
+
errorCode,
|
|
4812
4654
|
});
|
|
4813
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4814
4655
|
}
|
|
4815
4656
|
};
|
|
4816
4657
|
const deserializeAws_json1_1ListDevicesCommand = async (output, context) => {
|
|
@@ -4832,9 +4673,11 @@ const deserializeAws_json1_1ListDevicesCommandError = async (output, context) =>
|
|
|
4832
4673
|
...output,
|
|
4833
4674
|
body: await parseBody(output.body, context),
|
|
4834
4675
|
};
|
|
4835
|
-
let response;
|
|
4836
4676
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4837
4677
|
switch (errorCode) {
|
|
4678
|
+
case "ForbiddenException":
|
|
4679
|
+
case "com.amazonaws.cognitoidentityprovider#ForbiddenException":
|
|
4680
|
+
throw await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context);
|
|
4838
4681
|
case "InternalErrorException":
|
|
4839
4682
|
case "com.amazonaws.cognitoidentityprovider#InternalErrorException":
|
|
4840
4683
|
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
@@ -4864,14 +4707,12 @@ const deserializeAws_json1_1ListDevicesCommandError = async (output, context) =>
|
|
|
4864
4707
|
throw await deserializeAws_json1_1UserNotFoundExceptionResponse(parsedOutput, context);
|
|
4865
4708
|
default:
|
|
4866
4709
|
const parsedBody = parsedOutput.body;
|
|
4867
|
-
|
|
4868
|
-
|
|
4869
|
-
|
|
4870
|
-
|
|
4871
|
-
|
|
4872
|
-
$metadata,
|
|
4710
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4711
|
+
output,
|
|
4712
|
+
parsedBody,
|
|
4713
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
4714
|
+
errorCode,
|
|
4873
4715
|
});
|
|
4874
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4875
4716
|
}
|
|
4876
4717
|
};
|
|
4877
4718
|
const deserializeAws_json1_1ListGroupsCommand = async (output, context) => {
|
|
@@ -4893,7 +4734,6 @@ const deserializeAws_json1_1ListGroupsCommandError = async (output, context) =>
|
|
|
4893
4734
|
...output,
|
|
4894
4735
|
body: await parseBody(output.body, context),
|
|
4895
4736
|
};
|
|
4896
|
-
let response;
|
|
4897
4737
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4898
4738
|
switch (errorCode) {
|
|
4899
4739
|
case "InternalErrorException":
|
|
@@ -4913,14 +4753,12 @@ const deserializeAws_json1_1ListGroupsCommandError = async (output, context) =>
|
|
|
4913
4753
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4914
4754
|
default:
|
|
4915
4755
|
const parsedBody = parsedOutput.body;
|
|
4916
|
-
|
|
4917
|
-
|
|
4918
|
-
|
|
4919
|
-
|
|
4920
|
-
|
|
4921
|
-
$metadata,
|
|
4756
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4757
|
+
output,
|
|
4758
|
+
parsedBody,
|
|
4759
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
4760
|
+
errorCode,
|
|
4922
4761
|
});
|
|
4923
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4924
4762
|
}
|
|
4925
4763
|
};
|
|
4926
4764
|
const deserializeAws_json1_1ListIdentityProvidersCommand = async (output, context) => {
|
|
@@ -4942,7 +4780,6 @@ const deserializeAws_json1_1ListIdentityProvidersCommandError = async (output, c
|
|
|
4942
4780
|
...output,
|
|
4943
4781
|
body: await parseBody(output.body, context),
|
|
4944
4782
|
};
|
|
4945
|
-
let response;
|
|
4946
4783
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4947
4784
|
switch (errorCode) {
|
|
4948
4785
|
case "InternalErrorException":
|
|
@@ -4962,14 +4799,12 @@ const deserializeAws_json1_1ListIdentityProvidersCommandError = async (output, c
|
|
|
4962
4799
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4963
4800
|
default:
|
|
4964
4801
|
const parsedBody = parsedOutput.body;
|
|
4965
|
-
|
|
4966
|
-
|
|
4967
|
-
|
|
4968
|
-
|
|
4969
|
-
|
|
4970
|
-
$metadata,
|
|
4802
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4803
|
+
output,
|
|
4804
|
+
parsedBody,
|
|
4805
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
4806
|
+
errorCode,
|
|
4971
4807
|
});
|
|
4972
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4973
4808
|
}
|
|
4974
4809
|
};
|
|
4975
4810
|
const deserializeAws_json1_1ListResourceServersCommand = async (output, context) => {
|
|
@@ -4991,7 +4826,6 @@ const deserializeAws_json1_1ListResourceServersCommandError = async (output, con
|
|
|
4991
4826
|
...output,
|
|
4992
4827
|
body: await parseBody(output.body, context),
|
|
4993
4828
|
};
|
|
4994
|
-
let response;
|
|
4995
4829
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4996
4830
|
switch (errorCode) {
|
|
4997
4831
|
case "InternalErrorException":
|
|
@@ -5011,14 +4845,12 @@ const deserializeAws_json1_1ListResourceServersCommandError = async (output, con
|
|
|
5011
4845
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
5012
4846
|
default:
|
|
5013
4847
|
const parsedBody = parsedOutput.body;
|
|
5014
|
-
|
|
5015
|
-
|
|
5016
|
-
|
|
5017
|
-
|
|
5018
|
-
|
|
5019
|
-
$metadata,
|
|
4848
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4849
|
+
output,
|
|
4850
|
+
parsedBody,
|
|
4851
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
4852
|
+
errorCode,
|
|
5020
4853
|
});
|
|
5021
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5022
4854
|
}
|
|
5023
4855
|
};
|
|
5024
4856
|
const deserializeAws_json1_1ListTagsForResourceCommand = async (output, context) => {
|
|
@@ -5040,7 +4872,6 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
5040
4872
|
...output,
|
|
5041
4873
|
body: await parseBody(output.body, context),
|
|
5042
4874
|
};
|
|
5043
|
-
let response;
|
|
5044
4875
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5045
4876
|
switch (errorCode) {
|
|
5046
4877
|
case "InternalErrorException":
|
|
@@ -5060,14 +4891,12 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
5060
4891
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
5061
4892
|
default:
|
|
5062
4893
|
const parsedBody = parsedOutput.body;
|
|
5063
|
-
|
|
5064
|
-
|
|
5065
|
-
|
|
5066
|
-
|
|
5067
|
-
|
|
5068
|
-
$metadata,
|
|
4894
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4895
|
+
output,
|
|
4896
|
+
parsedBody,
|
|
4897
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
4898
|
+
errorCode,
|
|
5069
4899
|
});
|
|
5070
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5071
4900
|
}
|
|
5072
4901
|
};
|
|
5073
4902
|
const deserializeAws_json1_1ListUserImportJobsCommand = async (output, context) => {
|
|
@@ -5089,7 +4918,6 @@ const deserializeAws_json1_1ListUserImportJobsCommandError = async (output, cont
|
|
|
5089
4918
|
...output,
|
|
5090
4919
|
body: await parseBody(output.body, context),
|
|
5091
4920
|
};
|
|
5092
|
-
let response;
|
|
5093
4921
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5094
4922
|
switch (errorCode) {
|
|
5095
4923
|
case "InternalErrorException":
|
|
@@ -5109,14 +4937,12 @@ const deserializeAws_json1_1ListUserImportJobsCommandError = async (output, cont
|
|
|
5109
4937
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
5110
4938
|
default:
|
|
5111
4939
|
const parsedBody = parsedOutput.body;
|
|
5112
|
-
|
|
5113
|
-
|
|
5114
|
-
|
|
5115
|
-
|
|
5116
|
-
|
|
5117
|
-
$metadata,
|
|
4940
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4941
|
+
output,
|
|
4942
|
+
parsedBody,
|
|
4943
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
4944
|
+
errorCode,
|
|
5118
4945
|
});
|
|
5119
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5120
4946
|
}
|
|
5121
4947
|
};
|
|
5122
4948
|
const deserializeAws_json1_1ListUserPoolClientsCommand = async (output, context) => {
|
|
@@ -5138,7 +4964,6 @@ const deserializeAws_json1_1ListUserPoolClientsCommandError = async (output, con
|
|
|
5138
4964
|
...output,
|
|
5139
4965
|
body: await parseBody(output.body, context),
|
|
5140
4966
|
};
|
|
5141
|
-
let response;
|
|
5142
4967
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5143
4968
|
switch (errorCode) {
|
|
5144
4969
|
case "InternalErrorException":
|
|
@@ -5158,14 +4983,12 @@ const deserializeAws_json1_1ListUserPoolClientsCommandError = async (output, con
|
|
|
5158
4983
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
5159
4984
|
default:
|
|
5160
4985
|
const parsedBody = parsedOutput.body;
|
|
5161
|
-
|
|
5162
|
-
|
|
5163
|
-
|
|
5164
|
-
|
|
5165
|
-
|
|
5166
|
-
$metadata,
|
|
4986
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4987
|
+
output,
|
|
4988
|
+
parsedBody,
|
|
4989
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
4990
|
+
errorCode,
|
|
5167
4991
|
});
|
|
5168
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5169
4992
|
}
|
|
5170
4993
|
};
|
|
5171
4994
|
const deserializeAws_json1_1ListUserPoolsCommand = async (output, context) => {
|
|
@@ -5187,7 +5010,6 @@ const deserializeAws_json1_1ListUserPoolsCommandError = async (output, context)
|
|
|
5187
5010
|
...output,
|
|
5188
5011
|
body: await parseBody(output.body, context),
|
|
5189
5012
|
};
|
|
5190
|
-
let response;
|
|
5191
5013
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5192
5014
|
switch (errorCode) {
|
|
5193
5015
|
case "InternalErrorException":
|
|
@@ -5204,14 +5026,12 @@ const deserializeAws_json1_1ListUserPoolsCommandError = async (output, context)
|
|
|
5204
5026
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
5205
5027
|
default:
|
|
5206
5028
|
const parsedBody = parsedOutput.body;
|
|
5207
|
-
|
|
5208
|
-
|
|
5209
|
-
|
|
5210
|
-
|
|
5211
|
-
|
|
5212
|
-
$metadata,
|
|
5029
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
5030
|
+
output,
|
|
5031
|
+
parsedBody,
|
|
5032
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
5033
|
+
errorCode,
|
|
5213
5034
|
});
|
|
5214
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5215
5035
|
}
|
|
5216
5036
|
};
|
|
5217
5037
|
const deserializeAws_json1_1ListUsersCommand = async (output, context) => {
|
|
@@ -5233,7 +5053,6 @@ const deserializeAws_json1_1ListUsersCommandError = async (output, context) => {
|
|
|
5233
5053
|
...output,
|
|
5234
5054
|
body: await parseBody(output.body, context),
|
|
5235
5055
|
};
|
|
5236
|
-
let response;
|
|
5237
5056
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5238
5057
|
switch (errorCode) {
|
|
5239
5058
|
case "InternalErrorException":
|
|
@@ -5253,14 +5072,12 @@ const deserializeAws_json1_1ListUsersCommandError = async (output, context) => {
|
|
|
5253
5072
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
5254
5073
|
default:
|
|
5255
5074
|
const parsedBody = parsedOutput.body;
|
|
5256
|
-
|
|
5257
|
-
|
|
5258
|
-
|
|
5259
|
-
|
|
5260
|
-
|
|
5261
|
-
$metadata,
|
|
5075
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
5076
|
+
output,
|
|
5077
|
+
parsedBody,
|
|
5078
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
5079
|
+
errorCode,
|
|
5262
5080
|
});
|
|
5263
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5264
5081
|
}
|
|
5265
5082
|
};
|
|
5266
5083
|
const deserializeAws_json1_1ListUsersInGroupCommand = async (output, context) => {
|
|
@@ -5282,7 +5099,6 @@ const deserializeAws_json1_1ListUsersInGroupCommandError = async (output, contex
|
|
|
5282
5099
|
...output,
|
|
5283
5100
|
body: await parseBody(output.body, context),
|
|
5284
5101
|
};
|
|
5285
|
-
let response;
|
|
5286
5102
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5287
5103
|
switch (errorCode) {
|
|
5288
5104
|
case "InternalErrorException":
|
|
@@ -5302,14 +5118,12 @@ const deserializeAws_json1_1ListUsersInGroupCommandError = async (output, contex
|
|
|
5302
5118
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
5303
5119
|
default:
|
|
5304
5120
|
const parsedBody = parsedOutput.body;
|
|
5305
|
-
|
|
5306
|
-
|
|
5307
|
-
|
|
5308
|
-
|
|
5309
|
-
|
|
5310
|
-
$metadata,
|
|
5121
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
5122
|
+
output,
|
|
5123
|
+
parsedBody,
|
|
5124
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
5125
|
+
errorCode,
|
|
5311
5126
|
});
|
|
5312
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5313
5127
|
}
|
|
5314
5128
|
};
|
|
5315
5129
|
const deserializeAws_json1_1ResendConfirmationCodeCommand = async (output, context) => {
|
|
@@ -5331,12 +5145,14 @@ const deserializeAws_json1_1ResendConfirmationCodeCommandError = async (output,
|
|
|
5331
5145
|
...output,
|
|
5332
5146
|
body: await parseBody(output.body, context),
|
|
5333
5147
|
};
|
|
5334
|
-
let response;
|
|
5335
5148
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5336
5149
|
switch (errorCode) {
|
|
5337
5150
|
case "CodeDeliveryFailureException":
|
|
5338
5151
|
case "com.amazonaws.cognitoidentityprovider#CodeDeliveryFailureException":
|
|
5339
5152
|
throw await deserializeAws_json1_1CodeDeliveryFailureExceptionResponse(parsedOutput, context);
|
|
5153
|
+
case "ForbiddenException":
|
|
5154
|
+
case "com.amazonaws.cognitoidentityprovider#ForbiddenException":
|
|
5155
|
+
throw await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context);
|
|
5340
5156
|
case "InternalErrorException":
|
|
5341
5157
|
case "com.amazonaws.cognitoidentityprovider#InternalErrorException":
|
|
5342
5158
|
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
@@ -5378,14 +5194,12 @@ const deserializeAws_json1_1ResendConfirmationCodeCommandError = async (output,
|
|
|
5378
5194
|
throw await deserializeAws_json1_1UserNotFoundExceptionResponse(parsedOutput, context);
|
|
5379
5195
|
default:
|
|
5380
5196
|
const parsedBody = parsedOutput.body;
|
|
5381
|
-
|
|
5382
|
-
|
|
5383
|
-
|
|
5384
|
-
|
|
5385
|
-
|
|
5386
|
-
$metadata,
|
|
5197
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
5198
|
+
output,
|
|
5199
|
+
parsedBody,
|
|
5200
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
5201
|
+
errorCode,
|
|
5387
5202
|
});
|
|
5388
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5389
5203
|
}
|
|
5390
5204
|
};
|
|
5391
5205
|
const deserializeAws_json1_1RespondToAuthChallengeCommand = async (output, context) => {
|
|
@@ -5407,7 +5221,6 @@ const deserializeAws_json1_1RespondToAuthChallengeCommandError = async (output,
|
|
|
5407
5221
|
...output,
|
|
5408
5222
|
body: await parseBody(output.body, context),
|
|
5409
5223
|
};
|
|
5410
|
-
let response;
|
|
5411
5224
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5412
5225
|
switch (errorCode) {
|
|
5413
5226
|
case "AliasExistsException":
|
|
@@ -5419,6 +5232,9 @@ const deserializeAws_json1_1RespondToAuthChallengeCommandError = async (output,
|
|
|
5419
5232
|
case "ExpiredCodeException":
|
|
5420
5233
|
case "com.amazonaws.cognitoidentityprovider#ExpiredCodeException":
|
|
5421
5234
|
throw await deserializeAws_json1_1ExpiredCodeExceptionResponse(parsedOutput, context);
|
|
5235
|
+
case "ForbiddenException":
|
|
5236
|
+
case "com.amazonaws.cognitoidentityprovider#ForbiddenException":
|
|
5237
|
+
throw await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context);
|
|
5422
5238
|
case "InternalErrorException":
|
|
5423
5239
|
case "com.amazonaws.cognitoidentityprovider#InternalErrorException":
|
|
5424
5240
|
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
@@ -5472,14 +5288,12 @@ const deserializeAws_json1_1RespondToAuthChallengeCommandError = async (output,
|
|
|
5472
5288
|
throw await deserializeAws_json1_1UserNotFoundExceptionResponse(parsedOutput, context);
|
|
5473
5289
|
default:
|
|
5474
5290
|
const parsedBody = parsedOutput.body;
|
|
5475
|
-
|
|
5476
|
-
|
|
5477
|
-
|
|
5478
|
-
|
|
5479
|
-
|
|
5480
|
-
$metadata,
|
|
5291
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
5292
|
+
output,
|
|
5293
|
+
parsedBody,
|
|
5294
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
5295
|
+
errorCode,
|
|
5481
5296
|
});
|
|
5482
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5483
5297
|
}
|
|
5484
5298
|
};
|
|
5485
5299
|
const deserializeAws_json1_1RevokeTokenCommand = async (output, context) => {
|
|
@@ -5501,9 +5315,11 @@ const deserializeAws_json1_1RevokeTokenCommandError = async (output, context) =>
|
|
|
5501
5315
|
...output,
|
|
5502
5316
|
body: await parseBody(output.body, context),
|
|
5503
5317
|
};
|
|
5504
|
-
let response;
|
|
5505
5318
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5506
5319
|
switch (errorCode) {
|
|
5320
|
+
case "ForbiddenException":
|
|
5321
|
+
case "com.amazonaws.cognitoidentityprovider#ForbiddenException":
|
|
5322
|
+
throw await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context);
|
|
5507
5323
|
case "InternalErrorException":
|
|
5508
5324
|
case "com.amazonaws.cognitoidentityprovider#InternalErrorException":
|
|
5509
5325
|
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
@@ -5524,14 +5340,12 @@ const deserializeAws_json1_1RevokeTokenCommandError = async (output, context) =>
|
|
|
5524
5340
|
throw await deserializeAws_json1_1UnsupportedTokenTypeExceptionResponse(parsedOutput, context);
|
|
5525
5341
|
default:
|
|
5526
5342
|
const parsedBody = parsedOutput.body;
|
|
5527
|
-
|
|
5528
|
-
|
|
5529
|
-
|
|
5530
|
-
|
|
5531
|
-
|
|
5532
|
-
$metadata,
|
|
5343
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
5344
|
+
output,
|
|
5345
|
+
parsedBody,
|
|
5346
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
5347
|
+
errorCode,
|
|
5533
5348
|
});
|
|
5534
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5535
5349
|
}
|
|
5536
5350
|
};
|
|
5537
5351
|
const deserializeAws_json1_1SetRiskConfigurationCommand = async (output, context) => {
|
|
@@ -5553,7 +5367,6 @@ const deserializeAws_json1_1SetRiskConfigurationCommandError = async (output, co
|
|
|
5553
5367
|
...output,
|
|
5554
5368
|
body: await parseBody(output.body, context),
|
|
5555
5369
|
};
|
|
5556
|
-
let response;
|
|
5557
5370
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5558
5371
|
switch (errorCode) {
|
|
5559
5372
|
case "CodeDeliveryFailureException":
|
|
@@ -5582,14 +5395,12 @@ const deserializeAws_json1_1SetRiskConfigurationCommandError = async (output, co
|
|
|
5582
5395
|
throw await deserializeAws_json1_1UserPoolAddOnNotEnabledExceptionResponse(parsedOutput, context);
|
|
5583
5396
|
default:
|
|
5584
5397
|
const parsedBody = parsedOutput.body;
|
|
5585
|
-
|
|
5586
|
-
|
|
5587
|
-
|
|
5588
|
-
|
|
5589
|
-
|
|
5590
|
-
$metadata,
|
|
5398
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
5399
|
+
output,
|
|
5400
|
+
parsedBody,
|
|
5401
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
5402
|
+
errorCode,
|
|
5591
5403
|
});
|
|
5592
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5593
5404
|
}
|
|
5594
5405
|
};
|
|
5595
5406
|
const deserializeAws_json1_1SetUICustomizationCommand = async (output, context) => {
|
|
@@ -5611,7 +5422,6 @@ const deserializeAws_json1_1SetUICustomizationCommandError = async (output, cont
|
|
|
5611
5422
|
...output,
|
|
5612
5423
|
body: await parseBody(output.body, context),
|
|
5613
5424
|
};
|
|
5614
|
-
let response;
|
|
5615
5425
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5616
5426
|
switch (errorCode) {
|
|
5617
5427
|
case "InternalErrorException":
|
|
@@ -5631,14 +5441,12 @@ const deserializeAws_json1_1SetUICustomizationCommandError = async (output, cont
|
|
|
5631
5441
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
5632
5442
|
default:
|
|
5633
5443
|
const parsedBody = parsedOutput.body;
|
|
5634
|
-
|
|
5635
|
-
|
|
5636
|
-
|
|
5637
|
-
|
|
5638
|
-
|
|
5639
|
-
$metadata,
|
|
5444
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
5445
|
+
output,
|
|
5446
|
+
parsedBody,
|
|
5447
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
5448
|
+
errorCode,
|
|
5640
5449
|
});
|
|
5641
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5642
5450
|
}
|
|
5643
5451
|
};
|
|
5644
5452
|
const deserializeAws_json1_1SetUserMFAPreferenceCommand = async (output, context) => {
|
|
@@ -5660,9 +5468,11 @@ const deserializeAws_json1_1SetUserMFAPreferenceCommandError = async (output, co
|
|
|
5660
5468
|
...output,
|
|
5661
5469
|
body: await parseBody(output.body, context),
|
|
5662
5470
|
};
|
|
5663
|
-
let response;
|
|
5664
5471
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5665
5472
|
switch (errorCode) {
|
|
5473
|
+
case "ForbiddenException":
|
|
5474
|
+
case "com.amazonaws.cognitoidentityprovider#ForbiddenException":
|
|
5475
|
+
throw await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context);
|
|
5666
5476
|
case "InternalErrorException":
|
|
5667
5477
|
case "com.amazonaws.cognitoidentityprovider#InternalErrorException":
|
|
5668
5478
|
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
@@ -5686,14 +5496,12 @@ const deserializeAws_json1_1SetUserMFAPreferenceCommandError = async (output, co
|
|
|
5686
5496
|
throw await deserializeAws_json1_1UserNotFoundExceptionResponse(parsedOutput, context);
|
|
5687
5497
|
default:
|
|
5688
5498
|
const parsedBody = parsedOutput.body;
|
|
5689
|
-
|
|
5690
|
-
|
|
5691
|
-
|
|
5692
|
-
|
|
5693
|
-
|
|
5694
|
-
$metadata,
|
|
5499
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
5500
|
+
output,
|
|
5501
|
+
parsedBody,
|
|
5502
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
5503
|
+
errorCode,
|
|
5695
5504
|
});
|
|
5696
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5697
5505
|
}
|
|
5698
5506
|
};
|
|
5699
5507
|
const deserializeAws_json1_1SetUserPoolMfaConfigCommand = async (output, context) => {
|
|
@@ -5715,7 +5523,6 @@ const deserializeAws_json1_1SetUserPoolMfaConfigCommandError = async (output, co
|
|
|
5715
5523
|
...output,
|
|
5716
5524
|
body: await parseBody(output.body, context),
|
|
5717
5525
|
};
|
|
5718
|
-
let response;
|
|
5719
5526
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5720
5527
|
switch (errorCode) {
|
|
5721
5528
|
case "InternalErrorException":
|
|
@@ -5741,14 +5548,12 @@ const deserializeAws_json1_1SetUserPoolMfaConfigCommandError = async (output, co
|
|
|
5741
5548
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
5742
5549
|
default:
|
|
5743
5550
|
const parsedBody = parsedOutput.body;
|
|
5744
|
-
|
|
5745
|
-
|
|
5746
|
-
|
|
5747
|
-
|
|
5748
|
-
|
|
5749
|
-
$metadata,
|
|
5551
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
5552
|
+
output,
|
|
5553
|
+
parsedBody,
|
|
5554
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
5555
|
+
errorCode,
|
|
5750
5556
|
});
|
|
5751
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5752
5557
|
}
|
|
5753
5558
|
};
|
|
5754
5559
|
const deserializeAws_json1_1SetUserSettingsCommand = async (output, context) => {
|
|
@@ -5770,9 +5575,11 @@ const deserializeAws_json1_1SetUserSettingsCommandError = async (output, context
|
|
|
5770
5575
|
...output,
|
|
5771
5576
|
body: await parseBody(output.body, context),
|
|
5772
5577
|
};
|
|
5773
|
-
let response;
|
|
5774
5578
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5775
5579
|
switch (errorCode) {
|
|
5580
|
+
case "ForbiddenException":
|
|
5581
|
+
case "com.amazonaws.cognitoidentityprovider#ForbiddenException":
|
|
5582
|
+
throw await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context);
|
|
5776
5583
|
case "InternalErrorException":
|
|
5777
5584
|
case "com.amazonaws.cognitoidentityprovider#InternalErrorException":
|
|
5778
5585
|
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
@@ -5796,14 +5603,12 @@ const deserializeAws_json1_1SetUserSettingsCommandError = async (output, context
|
|
|
5796
5603
|
throw await deserializeAws_json1_1UserNotFoundExceptionResponse(parsedOutput, context);
|
|
5797
5604
|
default:
|
|
5798
5605
|
const parsedBody = parsedOutput.body;
|
|
5799
|
-
|
|
5800
|
-
|
|
5801
|
-
|
|
5802
|
-
|
|
5803
|
-
|
|
5804
|
-
$metadata,
|
|
5606
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
5607
|
+
output,
|
|
5608
|
+
parsedBody,
|
|
5609
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
5610
|
+
errorCode,
|
|
5805
5611
|
});
|
|
5806
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5807
5612
|
}
|
|
5808
5613
|
};
|
|
5809
5614
|
const deserializeAws_json1_1SignUpCommand = async (output, context) => {
|
|
@@ -5825,12 +5630,14 @@ const deserializeAws_json1_1SignUpCommandError = async (output, context) => {
|
|
|
5825
5630
|
...output,
|
|
5826
5631
|
body: await parseBody(output.body, context),
|
|
5827
5632
|
};
|
|
5828
|
-
let response;
|
|
5829
5633
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5830
5634
|
switch (errorCode) {
|
|
5831
5635
|
case "CodeDeliveryFailureException":
|
|
5832
5636
|
case "com.amazonaws.cognitoidentityprovider#CodeDeliveryFailureException":
|
|
5833
5637
|
throw await deserializeAws_json1_1CodeDeliveryFailureExceptionResponse(parsedOutput, context);
|
|
5638
|
+
case "ForbiddenException":
|
|
5639
|
+
case "com.amazonaws.cognitoidentityprovider#ForbiddenException":
|
|
5640
|
+
throw await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context);
|
|
5834
5641
|
case "InternalErrorException":
|
|
5835
5642
|
case "com.amazonaws.cognitoidentityprovider#InternalErrorException":
|
|
5836
5643
|
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
@@ -5872,14 +5679,12 @@ const deserializeAws_json1_1SignUpCommandError = async (output, context) => {
|
|
|
5872
5679
|
throw await deserializeAws_json1_1UsernameExistsExceptionResponse(parsedOutput, context);
|
|
5873
5680
|
default:
|
|
5874
5681
|
const parsedBody = parsedOutput.body;
|
|
5875
|
-
|
|
5876
|
-
|
|
5877
|
-
|
|
5878
|
-
|
|
5879
|
-
|
|
5880
|
-
$metadata,
|
|
5682
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
5683
|
+
output,
|
|
5684
|
+
parsedBody,
|
|
5685
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
5686
|
+
errorCode,
|
|
5881
5687
|
});
|
|
5882
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5883
5688
|
}
|
|
5884
5689
|
};
|
|
5885
5690
|
const deserializeAws_json1_1StartUserImportJobCommand = async (output, context) => {
|
|
@@ -5901,7 +5706,6 @@ const deserializeAws_json1_1StartUserImportJobCommandError = async (output, cont
|
|
|
5901
5706
|
...output,
|
|
5902
5707
|
body: await parseBody(output.body, context),
|
|
5903
5708
|
};
|
|
5904
|
-
let response;
|
|
5905
5709
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5906
5710
|
switch (errorCode) {
|
|
5907
5711
|
case "InternalErrorException":
|
|
@@ -5924,14 +5728,12 @@ const deserializeAws_json1_1StartUserImportJobCommandError = async (output, cont
|
|
|
5924
5728
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
5925
5729
|
default:
|
|
5926
5730
|
const parsedBody = parsedOutput.body;
|
|
5927
|
-
|
|
5928
|
-
|
|
5929
|
-
|
|
5930
|
-
|
|
5931
|
-
|
|
5932
|
-
$metadata,
|
|
5731
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
5732
|
+
output,
|
|
5733
|
+
parsedBody,
|
|
5734
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
5735
|
+
errorCode,
|
|
5933
5736
|
});
|
|
5934
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5935
5737
|
}
|
|
5936
5738
|
};
|
|
5937
5739
|
const deserializeAws_json1_1StopUserImportJobCommand = async (output, context) => {
|
|
@@ -5953,7 +5755,6 @@ const deserializeAws_json1_1StopUserImportJobCommandError = async (output, conte
|
|
|
5953
5755
|
...output,
|
|
5954
5756
|
body: await parseBody(output.body, context),
|
|
5955
5757
|
};
|
|
5956
|
-
let response;
|
|
5957
5758
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5958
5759
|
switch (errorCode) {
|
|
5959
5760
|
case "InternalErrorException":
|
|
@@ -5976,14 +5777,12 @@ const deserializeAws_json1_1StopUserImportJobCommandError = async (output, conte
|
|
|
5976
5777
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
5977
5778
|
default:
|
|
5978
5779
|
const parsedBody = parsedOutput.body;
|
|
5979
|
-
|
|
5980
|
-
|
|
5981
|
-
|
|
5982
|
-
|
|
5983
|
-
|
|
5984
|
-
$metadata,
|
|
5780
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
5781
|
+
output,
|
|
5782
|
+
parsedBody,
|
|
5783
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
5784
|
+
errorCode,
|
|
5985
5785
|
});
|
|
5986
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5987
5786
|
}
|
|
5988
5787
|
};
|
|
5989
5788
|
const deserializeAws_json1_1TagResourceCommand = async (output, context) => {
|
|
@@ -6005,7 +5804,6 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
6005
5804
|
...output,
|
|
6006
5805
|
body: await parseBody(output.body, context),
|
|
6007
5806
|
};
|
|
6008
|
-
let response;
|
|
6009
5807
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6010
5808
|
switch (errorCode) {
|
|
6011
5809
|
case "InternalErrorException":
|
|
@@ -6025,14 +5823,12 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
6025
5823
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
6026
5824
|
default:
|
|
6027
5825
|
const parsedBody = parsedOutput.body;
|
|
6028
|
-
|
|
6029
|
-
|
|
6030
|
-
|
|
6031
|
-
|
|
6032
|
-
|
|
6033
|
-
$metadata,
|
|
5826
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
5827
|
+
output,
|
|
5828
|
+
parsedBody,
|
|
5829
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
5830
|
+
errorCode,
|
|
6034
5831
|
});
|
|
6035
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6036
5832
|
}
|
|
6037
5833
|
};
|
|
6038
5834
|
const deserializeAws_json1_1UntagResourceCommand = async (output, context) => {
|
|
@@ -6054,7 +5850,6 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
6054
5850
|
...output,
|
|
6055
5851
|
body: await parseBody(output.body, context),
|
|
6056
5852
|
};
|
|
6057
|
-
let response;
|
|
6058
5853
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6059
5854
|
switch (errorCode) {
|
|
6060
5855
|
case "InternalErrorException":
|
|
@@ -6074,14 +5869,12 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
6074
5869
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
6075
5870
|
default:
|
|
6076
5871
|
const parsedBody = parsedOutput.body;
|
|
6077
|
-
|
|
6078
|
-
|
|
6079
|
-
|
|
6080
|
-
|
|
6081
|
-
|
|
6082
|
-
$metadata,
|
|
5872
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
5873
|
+
output,
|
|
5874
|
+
parsedBody,
|
|
5875
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
5876
|
+
errorCode,
|
|
6083
5877
|
});
|
|
6084
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6085
5878
|
}
|
|
6086
5879
|
};
|
|
6087
5880
|
const deserializeAws_json1_1UpdateAuthEventFeedbackCommand = async (output, context) => {
|
|
@@ -6103,7 +5896,6 @@ const deserializeAws_json1_1UpdateAuthEventFeedbackCommandError = async (output,
|
|
|
6103
5896
|
...output,
|
|
6104
5897
|
body: await parseBody(output.body, context),
|
|
6105
5898
|
};
|
|
6106
|
-
let response;
|
|
6107
5899
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6108
5900
|
switch (errorCode) {
|
|
6109
5901
|
case "InternalErrorException":
|
|
@@ -6129,14 +5921,12 @@ const deserializeAws_json1_1UpdateAuthEventFeedbackCommandError = async (output,
|
|
|
6129
5921
|
throw await deserializeAws_json1_1UserPoolAddOnNotEnabledExceptionResponse(parsedOutput, context);
|
|
6130
5922
|
default:
|
|
6131
5923
|
const parsedBody = parsedOutput.body;
|
|
6132
|
-
|
|
6133
|
-
|
|
6134
|
-
|
|
6135
|
-
|
|
6136
|
-
|
|
6137
|
-
$metadata,
|
|
5924
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
5925
|
+
output,
|
|
5926
|
+
parsedBody,
|
|
5927
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
5928
|
+
errorCode,
|
|
6138
5929
|
});
|
|
6139
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6140
5930
|
}
|
|
6141
5931
|
};
|
|
6142
5932
|
const deserializeAws_json1_1UpdateDeviceStatusCommand = async (output, context) => {
|
|
@@ -6158,9 +5948,11 @@ const deserializeAws_json1_1UpdateDeviceStatusCommandError = async (output, cont
|
|
|
6158
5948
|
...output,
|
|
6159
5949
|
body: await parseBody(output.body, context),
|
|
6160
5950
|
};
|
|
6161
|
-
let response;
|
|
6162
5951
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6163
5952
|
switch (errorCode) {
|
|
5953
|
+
case "ForbiddenException":
|
|
5954
|
+
case "com.amazonaws.cognitoidentityprovider#ForbiddenException":
|
|
5955
|
+
throw await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context);
|
|
6164
5956
|
case "InternalErrorException":
|
|
6165
5957
|
case "com.amazonaws.cognitoidentityprovider#InternalErrorException":
|
|
6166
5958
|
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
@@ -6190,14 +5982,12 @@ const deserializeAws_json1_1UpdateDeviceStatusCommandError = async (output, cont
|
|
|
6190
5982
|
throw await deserializeAws_json1_1UserNotFoundExceptionResponse(parsedOutput, context);
|
|
6191
5983
|
default:
|
|
6192
5984
|
const parsedBody = parsedOutput.body;
|
|
6193
|
-
|
|
6194
|
-
|
|
6195
|
-
|
|
6196
|
-
|
|
6197
|
-
|
|
6198
|
-
$metadata,
|
|
5985
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
5986
|
+
output,
|
|
5987
|
+
parsedBody,
|
|
5988
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
5989
|
+
errorCode,
|
|
6199
5990
|
});
|
|
6200
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6201
5991
|
}
|
|
6202
5992
|
};
|
|
6203
5993
|
const deserializeAws_json1_1UpdateGroupCommand = async (output, context) => {
|
|
@@ -6219,7 +6009,6 @@ const deserializeAws_json1_1UpdateGroupCommandError = async (output, context) =>
|
|
|
6219
6009
|
...output,
|
|
6220
6010
|
body: await parseBody(output.body, context),
|
|
6221
6011
|
};
|
|
6222
|
-
let response;
|
|
6223
6012
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6224
6013
|
switch (errorCode) {
|
|
6225
6014
|
case "InternalErrorException":
|
|
@@ -6239,14 +6028,12 @@ const deserializeAws_json1_1UpdateGroupCommandError = async (output, context) =>
|
|
|
6239
6028
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
6240
6029
|
default:
|
|
6241
6030
|
const parsedBody = parsedOutput.body;
|
|
6242
|
-
|
|
6243
|
-
|
|
6244
|
-
|
|
6245
|
-
|
|
6246
|
-
|
|
6247
|
-
$metadata,
|
|
6031
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
6032
|
+
output,
|
|
6033
|
+
parsedBody,
|
|
6034
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
6035
|
+
errorCode,
|
|
6248
6036
|
});
|
|
6249
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6250
6037
|
}
|
|
6251
6038
|
};
|
|
6252
6039
|
const deserializeAws_json1_1UpdateIdentityProviderCommand = async (output, context) => {
|
|
@@ -6268,7 +6055,6 @@ const deserializeAws_json1_1UpdateIdentityProviderCommandError = async (output,
|
|
|
6268
6055
|
...output,
|
|
6269
6056
|
body: await parseBody(output.body, context),
|
|
6270
6057
|
};
|
|
6271
|
-
let response;
|
|
6272
6058
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6273
6059
|
switch (errorCode) {
|
|
6274
6060
|
case "InternalErrorException":
|
|
@@ -6291,14 +6077,12 @@ const deserializeAws_json1_1UpdateIdentityProviderCommandError = async (output,
|
|
|
6291
6077
|
throw await deserializeAws_json1_1UnsupportedIdentityProviderExceptionResponse(parsedOutput, context);
|
|
6292
6078
|
default:
|
|
6293
6079
|
const parsedBody = parsedOutput.body;
|
|
6294
|
-
|
|
6295
|
-
|
|
6296
|
-
|
|
6297
|
-
|
|
6298
|
-
|
|
6299
|
-
$metadata,
|
|
6080
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
6081
|
+
output,
|
|
6082
|
+
parsedBody,
|
|
6083
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
6084
|
+
errorCode,
|
|
6300
6085
|
});
|
|
6301
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6302
6086
|
}
|
|
6303
6087
|
};
|
|
6304
6088
|
const deserializeAws_json1_1UpdateResourceServerCommand = async (output, context) => {
|
|
@@ -6320,7 +6104,6 @@ const deserializeAws_json1_1UpdateResourceServerCommandError = async (output, co
|
|
|
6320
6104
|
...output,
|
|
6321
6105
|
body: await parseBody(output.body, context),
|
|
6322
6106
|
};
|
|
6323
|
-
let response;
|
|
6324
6107
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6325
6108
|
switch (errorCode) {
|
|
6326
6109
|
case "InternalErrorException":
|
|
@@ -6340,14 +6123,12 @@ const deserializeAws_json1_1UpdateResourceServerCommandError = async (output, co
|
|
|
6340
6123
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
6341
6124
|
default:
|
|
6342
6125
|
const parsedBody = parsedOutput.body;
|
|
6343
|
-
|
|
6344
|
-
|
|
6345
|
-
|
|
6346
|
-
|
|
6347
|
-
|
|
6348
|
-
$metadata,
|
|
6126
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
6127
|
+
output,
|
|
6128
|
+
parsedBody,
|
|
6129
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
6130
|
+
errorCode,
|
|
6349
6131
|
});
|
|
6350
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6351
6132
|
}
|
|
6352
6133
|
};
|
|
6353
6134
|
const deserializeAws_json1_1UpdateUserAttributesCommand = async (output, context) => {
|
|
@@ -6369,7 +6150,6 @@ const deserializeAws_json1_1UpdateUserAttributesCommandError = async (output, co
|
|
|
6369
6150
|
...output,
|
|
6370
6151
|
body: await parseBody(output.body, context),
|
|
6371
6152
|
};
|
|
6372
|
-
let response;
|
|
6373
6153
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6374
6154
|
switch (errorCode) {
|
|
6375
6155
|
case "AliasExistsException":
|
|
@@ -6384,6 +6164,9 @@ const deserializeAws_json1_1UpdateUserAttributesCommandError = async (output, co
|
|
|
6384
6164
|
case "ExpiredCodeException":
|
|
6385
6165
|
case "com.amazonaws.cognitoidentityprovider#ExpiredCodeException":
|
|
6386
6166
|
throw await deserializeAws_json1_1ExpiredCodeExceptionResponse(parsedOutput, context);
|
|
6167
|
+
case "ForbiddenException":
|
|
6168
|
+
case "com.amazonaws.cognitoidentityprovider#ForbiddenException":
|
|
6169
|
+
throw await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context);
|
|
6387
6170
|
case "InternalErrorException":
|
|
6388
6171
|
case "com.amazonaws.cognitoidentityprovider#InternalErrorException":
|
|
6389
6172
|
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
@@ -6428,14 +6211,12 @@ const deserializeAws_json1_1UpdateUserAttributesCommandError = async (output, co
|
|
|
6428
6211
|
throw await deserializeAws_json1_1UserNotFoundExceptionResponse(parsedOutput, context);
|
|
6429
6212
|
default:
|
|
6430
6213
|
const parsedBody = parsedOutput.body;
|
|
6431
|
-
|
|
6432
|
-
|
|
6433
|
-
|
|
6434
|
-
|
|
6435
|
-
|
|
6436
|
-
$metadata,
|
|
6214
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
6215
|
+
output,
|
|
6216
|
+
parsedBody,
|
|
6217
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
6218
|
+
errorCode,
|
|
6437
6219
|
});
|
|
6438
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6439
6220
|
}
|
|
6440
6221
|
};
|
|
6441
6222
|
const deserializeAws_json1_1UpdateUserPoolCommand = async (output, context) => {
|
|
@@ -6457,7 +6238,6 @@ const deserializeAws_json1_1UpdateUserPoolCommandError = async (output, context)
|
|
|
6457
6238
|
...output,
|
|
6458
6239
|
body: await parseBody(output.body, context),
|
|
6459
6240
|
};
|
|
6460
|
-
let response;
|
|
6461
6241
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6462
6242
|
switch (errorCode) {
|
|
6463
6243
|
case "ConcurrentModificationException":
|
|
@@ -6495,14 +6275,12 @@ const deserializeAws_json1_1UpdateUserPoolCommandError = async (output, context)
|
|
|
6495
6275
|
throw await deserializeAws_json1_1UserPoolTaggingExceptionResponse(parsedOutput, context);
|
|
6496
6276
|
default:
|
|
6497
6277
|
const parsedBody = parsedOutput.body;
|
|
6498
|
-
|
|
6499
|
-
|
|
6500
|
-
|
|
6501
|
-
|
|
6502
|
-
|
|
6503
|
-
$metadata,
|
|
6278
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
6279
|
+
output,
|
|
6280
|
+
parsedBody,
|
|
6281
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
6282
|
+
errorCode,
|
|
6504
6283
|
});
|
|
6505
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6506
6284
|
}
|
|
6507
6285
|
};
|
|
6508
6286
|
const deserializeAws_json1_1UpdateUserPoolClientCommand = async (output, context) => {
|
|
@@ -6524,7 +6302,6 @@ const deserializeAws_json1_1UpdateUserPoolClientCommandError = async (output, co
|
|
|
6524
6302
|
...output,
|
|
6525
6303
|
body: await parseBody(output.body, context),
|
|
6526
6304
|
};
|
|
6527
|
-
let response;
|
|
6528
6305
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6529
6306
|
switch (errorCode) {
|
|
6530
6307
|
case "ConcurrentModificationException":
|
|
@@ -6553,14 +6330,12 @@ const deserializeAws_json1_1UpdateUserPoolClientCommandError = async (output, co
|
|
|
6553
6330
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
6554
6331
|
default:
|
|
6555
6332
|
const parsedBody = parsedOutput.body;
|
|
6556
|
-
|
|
6557
|
-
|
|
6558
|
-
|
|
6559
|
-
|
|
6560
|
-
|
|
6561
|
-
$metadata,
|
|
6333
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
6334
|
+
output,
|
|
6335
|
+
parsedBody,
|
|
6336
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
6337
|
+
errorCode,
|
|
6562
6338
|
});
|
|
6563
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6564
6339
|
}
|
|
6565
6340
|
};
|
|
6566
6341
|
const deserializeAws_json1_1UpdateUserPoolDomainCommand = async (output, context) => {
|
|
@@ -6582,7 +6357,6 @@ const deserializeAws_json1_1UpdateUserPoolDomainCommandError = async (output, co
|
|
|
6582
6357
|
...output,
|
|
6583
6358
|
body: await parseBody(output.body, context),
|
|
6584
6359
|
};
|
|
6585
|
-
let response;
|
|
6586
6360
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6587
6361
|
switch (errorCode) {
|
|
6588
6362
|
case "InternalErrorException":
|
|
@@ -6602,14 +6376,12 @@ const deserializeAws_json1_1UpdateUserPoolDomainCommandError = async (output, co
|
|
|
6602
6376
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
6603
6377
|
default:
|
|
6604
6378
|
const parsedBody = parsedOutput.body;
|
|
6605
|
-
|
|
6606
|
-
|
|
6607
|
-
|
|
6608
|
-
|
|
6609
|
-
|
|
6610
|
-
$metadata,
|
|
6379
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
6380
|
+
output,
|
|
6381
|
+
parsedBody,
|
|
6382
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
6383
|
+
errorCode,
|
|
6611
6384
|
});
|
|
6612
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6613
6385
|
}
|
|
6614
6386
|
};
|
|
6615
6387
|
const deserializeAws_json1_1VerifySoftwareTokenCommand = async (output, context) => {
|
|
@@ -6631,7 +6403,6 @@ const deserializeAws_json1_1VerifySoftwareTokenCommandError = async (output, con
|
|
|
6631
6403
|
...output,
|
|
6632
6404
|
body: await parseBody(output.body, context),
|
|
6633
6405
|
};
|
|
6634
|
-
let response;
|
|
6635
6406
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6636
6407
|
switch (errorCode) {
|
|
6637
6408
|
case "CodeMismatchException":
|
|
@@ -6640,6 +6411,9 @@ const deserializeAws_json1_1VerifySoftwareTokenCommandError = async (output, con
|
|
|
6640
6411
|
case "EnableSoftwareTokenMFAException":
|
|
6641
6412
|
case "com.amazonaws.cognitoidentityprovider#EnableSoftwareTokenMFAException":
|
|
6642
6413
|
throw await deserializeAws_json1_1EnableSoftwareTokenMFAExceptionResponse(parsedOutput, context);
|
|
6414
|
+
case "ForbiddenException":
|
|
6415
|
+
case "com.amazonaws.cognitoidentityprovider#ForbiddenException":
|
|
6416
|
+
throw await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context);
|
|
6643
6417
|
case "InternalErrorException":
|
|
6644
6418
|
case "com.amazonaws.cognitoidentityprovider#InternalErrorException":
|
|
6645
6419
|
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
@@ -6672,14 +6446,12 @@ const deserializeAws_json1_1VerifySoftwareTokenCommandError = async (output, con
|
|
|
6672
6446
|
throw await deserializeAws_json1_1UserNotFoundExceptionResponse(parsedOutput, context);
|
|
6673
6447
|
default:
|
|
6674
6448
|
const parsedBody = parsedOutput.body;
|
|
6675
|
-
|
|
6676
|
-
|
|
6677
|
-
|
|
6678
|
-
|
|
6679
|
-
|
|
6680
|
-
$metadata,
|
|
6449
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
6450
|
+
output,
|
|
6451
|
+
parsedBody,
|
|
6452
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
6453
|
+
errorCode,
|
|
6681
6454
|
});
|
|
6682
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6683
6455
|
}
|
|
6684
6456
|
};
|
|
6685
6457
|
const deserializeAws_json1_1VerifyUserAttributeCommand = async (output, context) => {
|
|
@@ -6701,7 +6473,6 @@ const deserializeAws_json1_1VerifyUserAttributeCommandError = async (output, con
|
|
|
6701
6473
|
...output,
|
|
6702
6474
|
body: await parseBody(output.body, context),
|
|
6703
6475
|
};
|
|
6704
|
-
let response;
|
|
6705
6476
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6706
6477
|
switch (errorCode) {
|
|
6707
6478
|
case "AliasExistsException":
|
|
@@ -6713,6 +6484,9 @@ const deserializeAws_json1_1VerifyUserAttributeCommandError = async (output, con
|
|
|
6713
6484
|
case "ExpiredCodeException":
|
|
6714
6485
|
case "com.amazonaws.cognitoidentityprovider#ExpiredCodeException":
|
|
6715
6486
|
throw await deserializeAws_json1_1ExpiredCodeExceptionResponse(parsedOutput, context);
|
|
6487
|
+
case "ForbiddenException":
|
|
6488
|
+
case "com.amazonaws.cognitoidentityprovider#ForbiddenException":
|
|
6489
|
+
throw await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context);
|
|
6716
6490
|
case "InternalErrorException":
|
|
6717
6491
|
case "com.amazonaws.cognitoidentityprovider#InternalErrorException":
|
|
6718
6492
|
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
@@ -6742,14 +6516,12 @@ const deserializeAws_json1_1VerifyUserAttributeCommandError = async (output, con
|
|
|
6742
6516
|
throw await deserializeAws_json1_1UserNotFoundExceptionResponse(parsedOutput, context);
|
|
6743
6517
|
default:
|
|
6744
6518
|
const parsedBody = parsedOutput.body;
|
|
6745
|
-
|
|
6746
|
-
|
|
6747
|
-
|
|
6748
|
-
|
|
6749
|
-
|
|
6750
|
-
$metadata,
|
|
6519
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
6520
|
+
output,
|
|
6521
|
+
parsedBody,
|
|
6522
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
6523
|
+
errorCode,
|
|
6751
6524
|
});
|
|
6752
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6753
6525
|
}
|
|
6754
6526
|
};
|
|
6755
6527
|
const deserializeAws_json1_1AliasExistsExceptionResponse = async (parsedOutput, context) => {
|
|
@@ -6815,6 +6587,15 @@ const deserializeAws_json1_1ExpiredCodeExceptionResponse = async (parsedOutput,
|
|
|
6815
6587
|
});
|
|
6816
6588
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
6817
6589
|
};
|
|
6590
|
+
const deserializeAws_json1_1ForbiddenExceptionResponse = async (parsedOutput, context) => {
|
|
6591
|
+
const body = parsedOutput.body;
|
|
6592
|
+
const deserialized = deserializeAws_json1_1ForbiddenException(body, context);
|
|
6593
|
+
const exception = new models_0_1.ForbiddenException({
|
|
6594
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
6595
|
+
...deserialized,
|
|
6596
|
+
});
|
|
6597
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
6598
|
+
};
|
|
6818
6599
|
const deserializeAws_json1_1GroupExistsExceptionResponse = async (parsedOutput, context) => {
|
|
6819
6600
|
const body = parsedOutput.body;
|
|
6820
6601
|
const deserialized = deserializeAws_json1_1GroupExistsException(body, context);
|
|
@@ -7404,9 +7185,6 @@ const serializeAws_json1_1AliasAttributesListType = (input, context) => {
|
|
|
7404
7185
|
return input
|
|
7405
7186
|
.filter((e) => e != null)
|
|
7406
7187
|
.map((entry) => {
|
|
7407
|
-
if (entry === null) {
|
|
7408
|
-
return null;
|
|
7409
|
-
}
|
|
7410
7188
|
return entry;
|
|
7411
7189
|
});
|
|
7412
7190
|
};
|
|
@@ -7434,9 +7212,6 @@ const serializeAws_json1_1AttributeListType = (input, context) => {
|
|
|
7434
7212
|
return input
|
|
7435
7213
|
.filter((e) => e != null)
|
|
7436
7214
|
.map((entry) => {
|
|
7437
|
-
if (entry === null) {
|
|
7438
|
-
return null;
|
|
7439
|
-
}
|
|
7440
7215
|
return serializeAws_json1_1AttributeType(entry, context);
|
|
7441
7216
|
});
|
|
7442
7217
|
};
|
|
@@ -7455,9 +7230,6 @@ const serializeAws_json1_1AttributeNameListType = (input, context) => {
|
|
|
7455
7230
|
return input
|
|
7456
7231
|
.filter((e) => e != null)
|
|
7457
7232
|
.map((entry) => {
|
|
7458
|
-
if (entry === null) {
|
|
7459
|
-
return null;
|
|
7460
|
-
}
|
|
7461
7233
|
return entry;
|
|
7462
7234
|
});
|
|
7463
7235
|
};
|
|
@@ -7465,9 +7237,6 @@ const serializeAws_json1_1AttributesRequireVerificationBeforeUpdateType = (input
|
|
|
7465
7237
|
return input
|
|
7466
7238
|
.filter((e) => e != null)
|
|
7467
7239
|
.map((entry) => {
|
|
7468
|
-
if (entry === null) {
|
|
7469
|
-
return null;
|
|
7470
|
-
}
|
|
7471
7240
|
return entry;
|
|
7472
7241
|
});
|
|
7473
7242
|
};
|
|
@@ -7492,9 +7261,6 @@ const serializeAws_json1_1BlockedIPRangeListType = (input, context) => {
|
|
|
7492
7261
|
return input
|
|
7493
7262
|
.filter((e) => e != null)
|
|
7494
7263
|
.map((entry) => {
|
|
7495
|
-
if (entry === null) {
|
|
7496
|
-
return null;
|
|
7497
|
-
}
|
|
7498
7264
|
return entry;
|
|
7499
7265
|
});
|
|
7500
7266
|
};
|
|
@@ -7502,9 +7268,6 @@ const serializeAws_json1_1CallbackURLsListType = (input, context) => {
|
|
|
7502
7268
|
return input
|
|
7503
7269
|
.filter((e) => e != null)
|
|
7504
7270
|
.map((entry) => {
|
|
7505
|
-
if (entry === null) {
|
|
7506
|
-
return null;
|
|
7507
|
-
}
|
|
7508
7271
|
return entry;
|
|
7509
7272
|
});
|
|
7510
7273
|
};
|
|
@@ -7541,9 +7304,6 @@ const serializeAws_json1_1ClientPermissionListType = (input, context) => {
|
|
|
7541
7304
|
return input
|
|
7542
7305
|
.filter((e) => e != null)
|
|
7543
7306
|
.map((entry) => {
|
|
7544
|
-
if (entry === null) {
|
|
7545
|
-
return null;
|
|
7546
|
-
}
|
|
7547
7307
|
return entry;
|
|
7548
7308
|
});
|
|
7549
7309
|
};
|
|
@@ -7769,9 +7529,6 @@ const serializeAws_json1_1CustomAttributesListType = (input, context) => {
|
|
|
7769
7529
|
return input
|
|
7770
7530
|
.filter((e) => e != null)
|
|
7771
7531
|
.map((entry) => {
|
|
7772
|
-
if (entry === null) {
|
|
7773
|
-
return null;
|
|
7774
|
-
}
|
|
7775
7532
|
return serializeAws_json1_1SchemaAttributeType(entry, context);
|
|
7776
7533
|
});
|
|
7777
7534
|
};
|
|
@@ -7844,9 +7601,6 @@ const serializeAws_json1_1DeliveryMediumListType = (input, context) => {
|
|
|
7844
7601
|
return input
|
|
7845
7602
|
.filter((e) => e != null)
|
|
7846
7603
|
.map((entry) => {
|
|
7847
|
-
if (entry === null) {
|
|
7848
|
-
return null;
|
|
7849
|
-
}
|
|
7850
7604
|
return entry;
|
|
7851
7605
|
});
|
|
7852
7606
|
};
|
|
@@ -7919,9 +7673,6 @@ const serializeAws_json1_1EventFiltersType = (input, context) => {
|
|
|
7919
7673
|
return input
|
|
7920
7674
|
.filter((e) => e != null)
|
|
7921
7675
|
.map((entry) => {
|
|
7922
|
-
if (entry === null) {
|
|
7923
|
-
return null;
|
|
7924
|
-
}
|
|
7925
7676
|
return entry;
|
|
7926
7677
|
});
|
|
7927
7678
|
};
|
|
@@ -7929,9 +7680,6 @@ const serializeAws_json1_1ExplicitAuthFlowsListType = (input, context) => {
|
|
|
7929
7680
|
return input
|
|
7930
7681
|
.filter((e) => e != null)
|
|
7931
7682
|
.map((entry) => {
|
|
7932
|
-
if (entry === null) {
|
|
7933
|
-
return null;
|
|
7934
|
-
}
|
|
7935
7683
|
return entry;
|
|
7936
7684
|
});
|
|
7937
7685
|
};
|
|
@@ -8025,9 +7773,6 @@ const serializeAws_json1_1HttpHeaderList = (input, context) => {
|
|
|
8025
7773
|
return input
|
|
8026
7774
|
.filter((e) => e != null)
|
|
8027
7775
|
.map((entry) => {
|
|
8028
|
-
if (entry === null) {
|
|
8029
|
-
return null;
|
|
8030
|
-
}
|
|
8031
7776
|
return serializeAws_json1_1HttpHeader(entry, context);
|
|
8032
7777
|
});
|
|
8033
7778
|
};
|
|
@@ -8035,9 +7780,6 @@ const serializeAws_json1_1IdpIdentifiersListType = (input, context) => {
|
|
|
8035
7780
|
return input
|
|
8036
7781
|
.filter((e) => e != null)
|
|
8037
7782
|
.map((entry) => {
|
|
8038
|
-
if (entry === null) {
|
|
8039
|
-
return null;
|
|
8040
|
-
}
|
|
8041
7783
|
return entry;
|
|
8042
7784
|
});
|
|
8043
7785
|
};
|
|
@@ -8158,9 +7900,6 @@ const serializeAws_json1_1LogoutURLsListType = (input, context) => {
|
|
|
8158
7900
|
return input
|
|
8159
7901
|
.filter((e) => e != null)
|
|
8160
7902
|
.map((entry) => {
|
|
8161
|
-
if (entry === null) {
|
|
8162
|
-
return null;
|
|
8163
|
-
}
|
|
8164
7903
|
return entry;
|
|
8165
7904
|
});
|
|
8166
7905
|
};
|
|
@@ -8175,9 +7914,6 @@ const serializeAws_json1_1MFAOptionListType = (input, context) => {
|
|
|
8175
7914
|
return input
|
|
8176
7915
|
.filter((e) => e != null)
|
|
8177
7916
|
.map((entry) => {
|
|
8178
|
-
if (entry === null) {
|
|
8179
|
-
return null;
|
|
8180
|
-
}
|
|
8181
7917
|
return serializeAws_json1_1MFAOptionType(entry, context);
|
|
8182
7918
|
});
|
|
8183
7919
|
};
|
|
@@ -8216,9 +7952,6 @@ const serializeAws_json1_1OAuthFlowsType = (input, context) => {
|
|
|
8216
7952
|
return input
|
|
8217
7953
|
.filter((e) => e != null)
|
|
8218
7954
|
.map((entry) => {
|
|
8219
|
-
if (entry === null) {
|
|
8220
|
-
return null;
|
|
8221
|
-
}
|
|
8222
7955
|
return entry;
|
|
8223
7956
|
});
|
|
8224
7957
|
};
|
|
@@ -8256,9 +7989,6 @@ const serializeAws_json1_1RecoveryMechanismsType = (input, context) => {
|
|
|
8256
7989
|
return input
|
|
8257
7990
|
.filter((e) => e != null)
|
|
8258
7991
|
.map((entry) => {
|
|
8259
|
-
if (entry === null) {
|
|
8260
|
-
return null;
|
|
8261
|
-
}
|
|
8262
7992
|
return serializeAws_json1_1RecoveryOptionType(entry, context);
|
|
8263
7993
|
});
|
|
8264
7994
|
};
|
|
@@ -8288,9 +8018,6 @@ const serializeAws_json1_1ResourceServerScopeListType = (input, context) => {
|
|
|
8288
8018
|
return input
|
|
8289
8019
|
.filter((e) => e != null)
|
|
8290
8020
|
.map((entry) => {
|
|
8291
|
-
if (entry === null) {
|
|
8292
|
-
return null;
|
|
8293
|
-
}
|
|
8294
8021
|
return serializeAws_json1_1ResourceServerScopeType(entry, context);
|
|
8295
8022
|
});
|
|
8296
8023
|
};
|
|
@@ -8340,9 +8067,6 @@ const serializeAws_json1_1SchemaAttributesListType = (input, context) => {
|
|
|
8340
8067
|
return input
|
|
8341
8068
|
.filter((e) => e != null)
|
|
8342
8069
|
.map((entry) => {
|
|
8343
|
-
if (entry === null) {
|
|
8344
|
-
return null;
|
|
8345
|
-
}
|
|
8346
8070
|
return serializeAws_json1_1SchemaAttributeType(entry, context);
|
|
8347
8071
|
});
|
|
8348
8072
|
};
|
|
@@ -8365,9 +8089,6 @@ const serializeAws_json1_1ScopeListType = (input, context) => {
|
|
|
8365
8089
|
return input
|
|
8366
8090
|
.filter((e) => e != null)
|
|
8367
8091
|
.map((entry) => {
|
|
8368
|
-
if (entry === null) {
|
|
8369
|
-
return null;
|
|
8370
|
-
}
|
|
8371
8092
|
return entry;
|
|
8372
8093
|
});
|
|
8373
8094
|
};
|
|
@@ -8375,9 +8096,6 @@ const serializeAws_json1_1SearchedAttributeNamesListType = (input, context) => {
|
|
|
8375
8096
|
return input
|
|
8376
8097
|
.filter((e) => e != null)
|
|
8377
8098
|
.map((entry) => {
|
|
8378
|
-
if (entry === null) {
|
|
8379
|
-
return null;
|
|
8380
|
-
}
|
|
8381
8099
|
return entry;
|
|
8382
8100
|
});
|
|
8383
8101
|
};
|
|
@@ -8460,9 +8178,6 @@ const serializeAws_json1_1SkippedIPRangeListType = (input, context) => {
|
|
|
8460
8178
|
return input
|
|
8461
8179
|
.filter((e) => e != null)
|
|
8462
8180
|
.map((entry) => {
|
|
8463
|
-
if (entry === null) {
|
|
8464
|
-
return null;
|
|
8465
|
-
}
|
|
8466
8181
|
return entry;
|
|
8467
8182
|
});
|
|
8468
8183
|
};
|
|
@@ -8520,9 +8235,6 @@ const serializeAws_json1_1SupportedIdentityProvidersListType = (input, context)
|
|
|
8520
8235
|
return input
|
|
8521
8236
|
.filter((e) => e != null)
|
|
8522
8237
|
.map((entry) => {
|
|
8523
|
-
if (entry === null) {
|
|
8524
|
-
return null;
|
|
8525
|
-
}
|
|
8526
8238
|
return entry;
|
|
8527
8239
|
});
|
|
8528
8240
|
};
|
|
@@ -8721,9 +8433,6 @@ const serializeAws_json1_1UsernameAttributesListType = (input, context) => {
|
|
|
8721
8433
|
return input
|
|
8722
8434
|
.filter((e) => e != null)
|
|
8723
8435
|
.map((entry) => {
|
|
8724
|
-
if (entry === null) {
|
|
8725
|
-
return null;
|
|
8726
|
-
}
|
|
8727
8436
|
return entry;
|
|
8728
8437
|
});
|
|
8729
8438
|
};
|
|
@@ -8748,9 +8457,6 @@ const serializeAws_json1_1UserPoolTagsListType = (input, context) => {
|
|
|
8748
8457
|
return input
|
|
8749
8458
|
.filter((e) => e != null)
|
|
8750
8459
|
.map((entry) => {
|
|
8751
|
-
if (entry === null) {
|
|
8752
|
-
return null;
|
|
8753
|
-
}
|
|
8754
8460
|
return entry;
|
|
8755
8461
|
});
|
|
8756
8462
|
};
|
|
@@ -8779,9 +8485,6 @@ const serializeAws_json1_1VerifiedAttributesListType = (input, context) => {
|
|
|
8779
8485
|
return input
|
|
8780
8486
|
.filter((e) => e != null)
|
|
8781
8487
|
.map((entry) => {
|
|
8782
|
-
if (entry === null) {
|
|
8783
|
-
return null;
|
|
8784
|
-
}
|
|
8785
8488
|
return entry;
|
|
8786
8489
|
});
|
|
8787
8490
|
};
|
|
@@ -9419,6 +9122,11 @@ const deserializeAws_json1_1ExplicitAuthFlowsListType = (output, context) => {
|
|
|
9419
9122
|
});
|
|
9420
9123
|
return retVal;
|
|
9421
9124
|
};
|
|
9125
|
+
const deserializeAws_json1_1ForbiddenException = (output, context) => {
|
|
9126
|
+
return {
|
|
9127
|
+
message: (0, smithy_client_1.expectString)(output.message),
|
|
9128
|
+
};
|
|
9129
|
+
};
|
|
9422
9130
|
const deserializeAws_json1_1ForgotPasswordResponse = (output, context) => {
|
|
9423
9131
|
return {
|
|
9424
9132
|
CodeDeliveryDetails: output.CodeDeliveryDetails != null
|