@aws-sdk/client-cognito-identity-provider 3.180.0 → 3.183.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 +25 -0
- package/dist-cjs/protocols/Aws_json1_1.js +113 -107
- package/dist-es/CognitoIdentityProvider.js +406 -413
- package/dist-es/CognitoIdentityProviderClient.js +21 -27
- package/dist-es/commands/AddCustomAttributesCommand.js +21 -28
- package/dist-es/commands/AdminAddUserToGroupCommand.js +22 -29
- package/dist-es/commands/AdminConfirmSignUpCommand.js +21 -28
- package/dist-es/commands/AdminCreateUserCommand.js +21 -28
- package/dist-es/commands/AdminDeleteUserAttributesCommand.js +21 -28
- package/dist-es/commands/AdminDeleteUserCommand.js +22 -29
- package/dist-es/commands/AdminDisableProviderForUserCommand.js +21 -28
- package/dist-es/commands/AdminDisableUserCommand.js +21 -28
- package/dist-es/commands/AdminEnableUserCommand.js +21 -28
- package/dist-es/commands/AdminForgetDeviceCommand.js +22 -29
- package/dist-es/commands/AdminGetDeviceCommand.js +21 -28
- package/dist-es/commands/AdminGetUserCommand.js +21 -28
- package/dist-es/commands/AdminInitiateAuthCommand.js +21 -28
- package/dist-es/commands/AdminLinkProviderForUserCommand.js +21 -28
- package/dist-es/commands/AdminListDevicesCommand.js +21 -28
- package/dist-es/commands/AdminListGroupsForUserCommand.js +21 -28
- package/dist-es/commands/AdminListUserAuthEventsCommand.js +21 -28
- package/dist-es/commands/AdminRemoveUserFromGroupCommand.js +22 -29
- package/dist-es/commands/AdminResetUserPasswordCommand.js +21 -28
- package/dist-es/commands/AdminRespondToAuthChallengeCommand.js +21 -28
- package/dist-es/commands/AdminSetUserMFAPreferenceCommand.js +21 -28
- package/dist-es/commands/AdminSetUserPasswordCommand.js +21 -28
- package/dist-es/commands/AdminSetUserSettingsCommand.js +21 -28
- package/dist-es/commands/AdminUpdateAuthEventFeedbackCommand.js +21 -28
- package/dist-es/commands/AdminUpdateDeviceStatusCommand.js +21 -28
- package/dist-es/commands/AdminUpdateUserAttributesCommand.js +21 -28
- package/dist-es/commands/AdminUserGlobalSignOutCommand.js +21 -28
- package/dist-es/commands/AssociateSoftwareTokenCommand.js +21 -28
- package/dist-es/commands/ChangePasswordCommand.js +21 -28
- package/dist-es/commands/ConfirmDeviceCommand.js +21 -28
- package/dist-es/commands/ConfirmForgotPasswordCommand.js +21 -28
- package/dist-es/commands/ConfirmSignUpCommand.js +21 -28
- package/dist-es/commands/CreateGroupCommand.js +21 -28
- package/dist-es/commands/CreateIdentityProviderCommand.js +21 -28
- package/dist-es/commands/CreateResourceServerCommand.js +21 -28
- package/dist-es/commands/CreateUserImportJobCommand.js +21 -28
- package/dist-es/commands/CreateUserPoolClientCommand.js +21 -28
- package/dist-es/commands/CreateUserPoolCommand.js +21 -28
- package/dist-es/commands/CreateUserPoolDomainCommand.js +21 -28
- package/dist-es/commands/DeleteGroupCommand.js +22 -29
- package/dist-es/commands/DeleteIdentityProviderCommand.js +22 -29
- package/dist-es/commands/DeleteResourceServerCommand.js +22 -29
- package/dist-es/commands/DeleteUserAttributesCommand.js +21 -28
- package/dist-es/commands/DeleteUserCommand.js +22 -29
- package/dist-es/commands/DeleteUserPoolClientCommand.js +22 -29
- package/dist-es/commands/DeleteUserPoolCommand.js +22 -29
- package/dist-es/commands/DeleteUserPoolDomainCommand.js +21 -28
- package/dist-es/commands/DescribeIdentityProviderCommand.js +21 -28
- package/dist-es/commands/DescribeResourceServerCommand.js +21 -28
- package/dist-es/commands/DescribeRiskConfigurationCommand.js +21 -28
- package/dist-es/commands/DescribeUserImportJobCommand.js +21 -28
- package/dist-es/commands/DescribeUserPoolClientCommand.js +21 -28
- package/dist-es/commands/DescribeUserPoolCommand.js +21 -28
- package/dist-es/commands/DescribeUserPoolDomainCommand.js +21 -28
- package/dist-es/commands/ForgetDeviceCommand.js +22 -29
- package/dist-es/commands/ForgotPasswordCommand.js +21 -28
- package/dist-es/commands/GetCSVHeaderCommand.js +21 -28
- package/dist-es/commands/GetDeviceCommand.js +21 -28
- package/dist-es/commands/GetGroupCommand.js +21 -28
- package/dist-es/commands/GetIdentityProviderByIdentifierCommand.js +21 -28
- package/dist-es/commands/GetSigningCertificateCommand.js +21 -28
- package/dist-es/commands/GetUICustomizationCommand.js +21 -28
- package/dist-es/commands/GetUserAttributeVerificationCodeCommand.js +21 -28
- package/dist-es/commands/GetUserCommand.js +21 -28
- package/dist-es/commands/GetUserPoolMfaConfigCommand.js +21 -28
- package/dist-es/commands/GlobalSignOutCommand.js +21 -28
- package/dist-es/commands/InitiateAuthCommand.js +21 -28
- package/dist-es/commands/ListDevicesCommand.js +21 -28
- package/dist-es/commands/ListGroupsCommand.js +21 -28
- package/dist-es/commands/ListIdentityProvidersCommand.js +21 -28
- package/dist-es/commands/ListResourceServersCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/ListUserImportJobsCommand.js +21 -28
- package/dist-es/commands/ListUserPoolClientsCommand.js +21 -28
- package/dist-es/commands/ListUserPoolsCommand.js +21 -28
- package/dist-es/commands/ListUsersCommand.js +21 -28
- package/dist-es/commands/ListUsersInGroupCommand.js +21 -28
- package/dist-es/commands/ResendConfirmationCodeCommand.js +21 -28
- package/dist-es/commands/RespondToAuthChallengeCommand.js +21 -28
- package/dist-es/commands/RevokeTokenCommand.js +21 -28
- package/dist-es/commands/SetRiskConfigurationCommand.js +21 -28
- package/dist-es/commands/SetUICustomizationCommand.js +21 -28
- package/dist-es/commands/SetUserMFAPreferenceCommand.js +21 -28
- package/dist-es/commands/SetUserPoolMfaConfigCommand.js +21 -28
- package/dist-es/commands/SetUserSettingsCommand.js +21 -28
- package/dist-es/commands/SignUpCommand.js +21 -28
- package/dist-es/commands/StartUserImportJobCommand.js +21 -28
- package/dist-es/commands/StopUserImportJobCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +21 -28
- package/dist-es/commands/UntagResourceCommand.js +21 -28
- package/dist-es/commands/UpdateAuthEventFeedbackCommand.js +21 -28
- package/dist-es/commands/UpdateDeviceStatusCommand.js +21 -28
- package/dist-es/commands/UpdateGroupCommand.js +21 -28
- package/dist-es/commands/UpdateIdentityProviderCommand.js +21 -28
- package/dist-es/commands/UpdateResourceServerCommand.js +21 -28
- package/dist-es/commands/UpdateUserAttributesCommand.js +21 -28
- package/dist-es/commands/UpdateUserPoolClientCommand.js +21 -28
- package/dist-es/commands/UpdateUserPoolCommand.js +21 -28
- package/dist-es/commands/UpdateUserPoolDomainCommand.js +21 -28
- package/dist-es/commands/VerifySoftwareTokenCommand.js +21 -28
- package/dist-es/commands/VerifyUserAttributeCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/CognitoIdentityProviderServiceException.js +5 -10
- package/dist-es/models/models_0.js +1290 -732
- package/dist-es/models/models_1.js +115 -45
- package/dist-es/pagination/AdminListGroupsForUserPaginator.js +25 -68
- package/dist-es/pagination/AdminListUserAuthEventsPaginator.js +25 -68
- package/dist-es/pagination/ListGroupsPaginator.js +25 -68
- package/dist-es/pagination/ListIdentityProvidersPaginator.js +25 -68
- package/dist-es/pagination/ListResourceServersPaginator.js +25 -68
- package/dist-es/pagination/ListUserPoolClientsPaginator.js +25 -68
- package/dist-es/pagination/ListUserPoolsPaginator.js +25 -68
- package/dist-es/pagination/ListUsersInGroupPaginator.js +25 -68
- package/dist-es/pagination/ListUsersPaginator.js +25 -68
- package/dist-es/protocols/Aws_json1_1.js +8461 -10552
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/package.json +33 -33
|
@@ -1037,7 +1037,7 @@ exports.deserializeAws_json1_1AddCustomAttributesCommand = deserializeAws_json1_
|
|
|
1037
1037
|
const deserializeAws_json1_1AddCustomAttributesCommandError = async (output, context) => {
|
|
1038
1038
|
const parsedOutput = {
|
|
1039
1039
|
...output,
|
|
1040
|
-
body: await
|
|
1040
|
+
body: await parseErrorBody(output.body, context),
|
|
1041
1041
|
};
|
|
1042
1042
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1043
1043
|
switch (errorCode) {
|
|
@@ -1083,7 +1083,7 @@ exports.deserializeAws_json1_1AdminAddUserToGroupCommand = deserializeAws_json1_
|
|
|
1083
1083
|
const deserializeAws_json1_1AdminAddUserToGroupCommandError = async (output, context) => {
|
|
1084
1084
|
const parsedOutput = {
|
|
1085
1085
|
...output,
|
|
1086
|
-
body: await
|
|
1086
|
+
body: await parseErrorBody(output.body, context),
|
|
1087
1087
|
};
|
|
1088
1088
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1089
1089
|
switch (errorCode) {
|
|
@@ -1132,7 +1132,7 @@ exports.deserializeAws_json1_1AdminConfirmSignUpCommand = deserializeAws_json1_1
|
|
|
1132
1132
|
const deserializeAws_json1_1AdminConfirmSignUpCommandError = async (output, context) => {
|
|
1133
1133
|
const parsedOutput = {
|
|
1134
1134
|
...output,
|
|
1135
|
-
body: await
|
|
1135
|
+
body: await parseErrorBody(output.body, context),
|
|
1136
1136
|
};
|
|
1137
1137
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1138
1138
|
switch (errorCode) {
|
|
@@ -1196,7 +1196,7 @@ exports.deserializeAws_json1_1AdminCreateUserCommand = deserializeAws_json1_1Adm
|
|
|
1196
1196
|
const deserializeAws_json1_1AdminCreateUserCommandError = async (output, context) => {
|
|
1197
1197
|
const parsedOutput = {
|
|
1198
1198
|
...output,
|
|
1199
|
-
body: await
|
|
1199
|
+
body: await parseErrorBody(output.body, context),
|
|
1200
1200
|
};
|
|
1201
1201
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1202
1202
|
switch (errorCode) {
|
|
@@ -1242,12 +1242,12 @@ const deserializeAws_json1_1AdminCreateUserCommandError = async (output, context
|
|
|
1242
1242
|
case "UserLambdaValidationException":
|
|
1243
1243
|
case "com.amazonaws.cognitoidentityprovider#UserLambdaValidationException":
|
|
1244
1244
|
throw await deserializeAws_json1_1UserLambdaValidationExceptionResponse(parsedOutput, context);
|
|
1245
|
-
case "UsernameExistsException":
|
|
1246
|
-
case "com.amazonaws.cognitoidentityprovider#UsernameExistsException":
|
|
1247
|
-
throw await deserializeAws_json1_1UsernameExistsExceptionResponse(parsedOutput, context);
|
|
1248
1245
|
case "UserNotFoundException":
|
|
1249
1246
|
case "com.amazonaws.cognitoidentityprovider#UserNotFoundException":
|
|
1250
1247
|
throw await deserializeAws_json1_1UserNotFoundExceptionResponse(parsedOutput, context);
|
|
1248
|
+
case "UsernameExistsException":
|
|
1249
|
+
case "com.amazonaws.cognitoidentityprovider#UsernameExistsException":
|
|
1250
|
+
throw await deserializeAws_json1_1UsernameExistsExceptionResponse(parsedOutput, context);
|
|
1251
1251
|
default:
|
|
1252
1252
|
const parsedBody = parsedOutput.body;
|
|
1253
1253
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1272,7 +1272,7 @@ exports.deserializeAws_json1_1AdminDeleteUserCommand = deserializeAws_json1_1Adm
|
|
|
1272
1272
|
const deserializeAws_json1_1AdminDeleteUserCommandError = async (output, context) => {
|
|
1273
1273
|
const parsedOutput = {
|
|
1274
1274
|
...output,
|
|
1275
|
-
body: await
|
|
1275
|
+
body: await parseErrorBody(output.body, context),
|
|
1276
1276
|
};
|
|
1277
1277
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1278
1278
|
switch (errorCode) {
|
|
@@ -1321,7 +1321,7 @@ exports.deserializeAws_json1_1AdminDeleteUserAttributesCommand = deserializeAws_
|
|
|
1321
1321
|
const deserializeAws_json1_1AdminDeleteUserAttributesCommandError = async (output, context) => {
|
|
1322
1322
|
const parsedOutput = {
|
|
1323
1323
|
...output,
|
|
1324
|
-
body: await
|
|
1324
|
+
body: await parseErrorBody(output.body, context),
|
|
1325
1325
|
};
|
|
1326
1326
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1327
1327
|
switch (errorCode) {
|
|
@@ -1370,7 +1370,7 @@ exports.deserializeAws_json1_1AdminDisableProviderForUserCommand = deserializeAw
|
|
|
1370
1370
|
const deserializeAws_json1_1AdminDisableProviderForUserCommandError = async (output, context) => {
|
|
1371
1371
|
const parsedOutput = {
|
|
1372
1372
|
...output,
|
|
1373
|
-
body: await
|
|
1373
|
+
body: await parseErrorBody(output.body, context),
|
|
1374
1374
|
};
|
|
1375
1375
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1376
1376
|
switch (errorCode) {
|
|
@@ -1422,7 +1422,7 @@ exports.deserializeAws_json1_1AdminDisableUserCommand = deserializeAws_json1_1Ad
|
|
|
1422
1422
|
const deserializeAws_json1_1AdminDisableUserCommandError = async (output, context) => {
|
|
1423
1423
|
const parsedOutput = {
|
|
1424
1424
|
...output,
|
|
1425
|
-
body: await
|
|
1425
|
+
body: await parseErrorBody(output.body, context),
|
|
1426
1426
|
};
|
|
1427
1427
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1428
1428
|
switch (errorCode) {
|
|
@@ -1471,7 +1471,7 @@ exports.deserializeAws_json1_1AdminEnableUserCommand = deserializeAws_json1_1Adm
|
|
|
1471
1471
|
const deserializeAws_json1_1AdminEnableUserCommandError = async (output, context) => {
|
|
1472
1472
|
const parsedOutput = {
|
|
1473
1473
|
...output,
|
|
1474
|
-
body: await
|
|
1474
|
+
body: await parseErrorBody(output.body, context),
|
|
1475
1475
|
};
|
|
1476
1476
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1477
1477
|
switch (errorCode) {
|
|
@@ -1517,7 +1517,7 @@ exports.deserializeAws_json1_1AdminForgetDeviceCommand = deserializeAws_json1_1A
|
|
|
1517
1517
|
const deserializeAws_json1_1AdminForgetDeviceCommandError = async (output, context) => {
|
|
1518
1518
|
const parsedOutput = {
|
|
1519
1519
|
...output,
|
|
1520
|
-
body: await
|
|
1520
|
+
body: await parseErrorBody(output.body, context),
|
|
1521
1521
|
};
|
|
1522
1522
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1523
1523
|
switch (errorCode) {
|
|
@@ -1569,7 +1569,7 @@ exports.deserializeAws_json1_1AdminGetDeviceCommand = deserializeAws_json1_1Admi
|
|
|
1569
1569
|
const deserializeAws_json1_1AdminGetDeviceCommandError = async (output, context) => {
|
|
1570
1570
|
const parsedOutput = {
|
|
1571
1571
|
...output,
|
|
1572
|
-
body: await
|
|
1572
|
+
body: await parseErrorBody(output.body, context),
|
|
1573
1573
|
};
|
|
1574
1574
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1575
1575
|
switch (errorCode) {
|
|
@@ -1618,7 +1618,7 @@ exports.deserializeAws_json1_1AdminGetUserCommand = deserializeAws_json1_1AdminG
|
|
|
1618
1618
|
const deserializeAws_json1_1AdminGetUserCommandError = async (output, context) => {
|
|
1619
1619
|
const parsedOutput = {
|
|
1620
1620
|
...output,
|
|
1621
|
-
body: await
|
|
1621
|
+
body: await parseErrorBody(output.body, context),
|
|
1622
1622
|
};
|
|
1623
1623
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1624
1624
|
switch (errorCode) {
|
|
@@ -1667,7 +1667,7 @@ exports.deserializeAws_json1_1AdminInitiateAuthCommand = deserializeAws_json1_1A
|
|
|
1667
1667
|
const deserializeAws_json1_1AdminInitiateAuthCommandError = async (output, context) => {
|
|
1668
1668
|
const parsedOutput = {
|
|
1669
1669
|
...output,
|
|
1670
|
-
body: await
|
|
1670
|
+
body: await parseErrorBody(output.body, context),
|
|
1671
1671
|
};
|
|
1672
1672
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1673
1673
|
switch (errorCode) {
|
|
@@ -1743,7 +1743,7 @@ exports.deserializeAws_json1_1AdminLinkProviderForUserCommand = deserializeAws_j
|
|
|
1743
1743
|
const deserializeAws_json1_1AdminLinkProviderForUserCommandError = async (output, context) => {
|
|
1744
1744
|
const parsedOutput = {
|
|
1745
1745
|
...output,
|
|
1746
|
-
body: await
|
|
1746
|
+
body: await parseErrorBody(output.body, context),
|
|
1747
1747
|
};
|
|
1748
1748
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1749
1749
|
switch (errorCode) {
|
|
@@ -1798,7 +1798,7 @@ exports.deserializeAws_json1_1AdminListDevicesCommand = deserializeAws_json1_1Ad
|
|
|
1798
1798
|
const deserializeAws_json1_1AdminListDevicesCommandError = async (output, context) => {
|
|
1799
1799
|
const parsedOutput = {
|
|
1800
1800
|
...output,
|
|
1801
|
-
body: await
|
|
1801
|
+
body: await parseErrorBody(output.body, context),
|
|
1802
1802
|
};
|
|
1803
1803
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1804
1804
|
switch (errorCode) {
|
|
@@ -1847,7 +1847,7 @@ exports.deserializeAws_json1_1AdminListGroupsForUserCommand = deserializeAws_jso
|
|
|
1847
1847
|
const deserializeAws_json1_1AdminListGroupsForUserCommandError = async (output, context) => {
|
|
1848
1848
|
const parsedOutput = {
|
|
1849
1849
|
...output,
|
|
1850
|
-
body: await
|
|
1850
|
+
body: await parseErrorBody(output.body, context),
|
|
1851
1851
|
};
|
|
1852
1852
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1853
1853
|
switch (errorCode) {
|
|
@@ -1896,7 +1896,7 @@ exports.deserializeAws_json1_1AdminListUserAuthEventsCommand = deserializeAws_js
|
|
|
1896
1896
|
const deserializeAws_json1_1AdminListUserAuthEventsCommandError = async (output, context) => {
|
|
1897
1897
|
const parsedOutput = {
|
|
1898
1898
|
...output,
|
|
1899
|
-
body: await
|
|
1899
|
+
body: await parseErrorBody(output.body, context),
|
|
1900
1900
|
};
|
|
1901
1901
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1902
1902
|
switch (errorCode) {
|
|
@@ -1945,7 +1945,7 @@ exports.deserializeAws_json1_1AdminRemoveUserFromGroupCommand = deserializeAws_j
|
|
|
1945
1945
|
const deserializeAws_json1_1AdminRemoveUserFromGroupCommandError = async (output, context) => {
|
|
1946
1946
|
const parsedOutput = {
|
|
1947
1947
|
...output,
|
|
1948
|
-
body: await
|
|
1948
|
+
body: await parseErrorBody(output.body, context),
|
|
1949
1949
|
};
|
|
1950
1950
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1951
1951
|
switch (errorCode) {
|
|
@@ -1994,7 +1994,7 @@ exports.deserializeAws_json1_1AdminResetUserPasswordCommand = deserializeAws_jso
|
|
|
1994
1994
|
const deserializeAws_json1_1AdminResetUserPasswordCommandError = async (output, context) => {
|
|
1995
1995
|
const parsedOutput = {
|
|
1996
1996
|
...output,
|
|
1997
|
-
body: await
|
|
1997
|
+
body: await parseErrorBody(output.body, context),
|
|
1998
1998
|
};
|
|
1999
1999
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2000
2000
|
switch (errorCode) {
|
|
@@ -2064,7 +2064,7 @@ exports.deserializeAws_json1_1AdminRespondToAuthChallengeCommand = deserializeAw
|
|
|
2064
2064
|
const deserializeAws_json1_1AdminRespondToAuthChallengeCommandError = async (output, context) => {
|
|
2065
2065
|
const parsedOutput = {
|
|
2066
2066
|
...output,
|
|
2067
|
-
body: await
|
|
2067
|
+
body: await parseErrorBody(output.body, context),
|
|
2068
2068
|
};
|
|
2069
2069
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2070
2070
|
switch (errorCode) {
|
|
@@ -2155,7 +2155,7 @@ exports.deserializeAws_json1_1AdminSetUserMFAPreferenceCommand = deserializeAws_
|
|
|
2155
2155
|
const deserializeAws_json1_1AdminSetUserMFAPreferenceCommandError = async (output, context) => {
|
|
2156
2156
|
const parsedOutput = {
|
|
2157
2157
|
...output,
|
|
2158
|
-
body: await
|
|
2158
|
+
body: await parseErrorBody(output.body, context),
|
|
2159
2159
|
};
|
|
2160
2160
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2161
2161
|
switch (errorCode) {
|
|
@@ -2207,7 +2207,7 @@ exports.deserializeAws_json1_1AdminSetUserPasswordCommand = deserializeAws_json1
|
|
|
2207
2207
|
const deserializeAws_json1_1AdminSetUserPasswordCommandError = async (output, context) => {
|
|
2208
2208
|
const parsedOutput = {
|
|
2209
2209
|
...output,
|
|
2210
|
-
body: await
|
|
2210
|
+
body: await parseErrorBody(output.body, context),
|
|
2211
2211
|
};
|
|
2212
2212
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2213
2213
|
switch (errorCode) {
|
|
@@ -2259,7 +2259,7 @@ exports.deserializeAws_json1_1AdminSetUserSettingsCommand = deserializeAws_json1
|
|
|
2259
2259
|
const deserializeAws_json1_1AdminSetUserSettingsCommandError = async (output, context) => {
|
|
2260
2260
|
const parsedOutput = {
|
|
2261
2261
|
...output,
|
|
2262
|
-
body: await
|
|
2262
|
+
body: await parseErrorBody(output.body, context),
|
|
2263
2263
|
};
|
|
2264
2264
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2265
2265
|
switch (errorCode) {
|
|
@@ -2305,7 +2305,7 @@ exports.deserializeAws_json1_1AdminUpdateAuthEventFeedbackCommand = deserializeA
|
|
|
2305
2305
|
const deserializeAws_json1_1AdminUpdateAuthEventFeedbackCommandError = async (output, context) => {
|
|
2306
2306
|
const parsedOutput = {
|
|
2307
2307
|
...output,
|
|
2308
|
-
body: await
|
|
2308
|
+
body: await parseErrorBody(output.body, context),
|
|
2309
2309
|
};
|
|
2310
2310
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2311
2311
|
switch (errorCode) {
|
|
@@ -2357,7 +2357,7 @@ exports.deserializeAws_json1_1AdminUpdateDeviceStatusCommand = deserializeAws_js
|
|
|
2357
2357
|
const deserializeAws_json1_1AdminUpdateDeviceStatusCommandError = async (output, context) => {
|
|
2358
2358
|
const parsedOutput = {
|
|
2359
2359
|
...output,
|
|
2360
|
-
body: await
|
|
2360
|
+
body: await parseErrorBody(output.body, context),
|
|
2361
2361
|
};
|
|
2362
2362
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2363
2363
|
switch (errorCode) {
|
|
@@ -2409,7 +2409,7 @@ exports.deserializeAws_json1_1AdminUpdateUserAttributesCommand = deserializeAws_
|
|
|
2409
2409
|
const deserializeAws_json1_1AdminUpdateUserAttributesCommandError = async (output, context) => {
|
|
2410
2410
|
const parsedOutput = {
|
|
2411
2411
|
...output,
|
|
2412
|
-
body: await
|
|
2412
|
+
body: await parseErrorBody(output.body, context),
|
|
2413
2413
|
};
|
|
2414
2414
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2415
2415
|
switch (errorCode) {
|
|
@@ -2479,7 +2479,7 @@ exports.deserializeAws_json1_1AdminUserGlobalSignOutCommand = deserializeAws_jso
|
|
|
2479
2479
|
const deserializeAws_json1_1AdminUserGlobalSignOutCommandError = async (output, context) => {
|
|
2480
2480
|
const parsedOutput = {
|
|
2481
2481
|
...output,
|
|
2482
|
-
body: await
|
|
2482
|
+
body: await parseErrorBody(output.body, context),
|
|
2483
2483
|
};
|
|
2484
2484
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2485
2485
|
switch (errorCode) {
|
|
@@ -2528,7 +2528,7 @@ exports.deserializeAws_json1_1AssociateSoftwareTokenCommand = deserializeAws_jso
|
|
|
2528
2528
|
const deserializeAws_json1_1AssociateSoftwareTokenCommandError = async (output, context) => {
|
|
2529
2529
|
const parsedOutput = {
|
|
2530
2530
|
...output,
|
|
2531
|
-
body: await
|
|
2531
|
+
body: await parseErrorBody(output.body, context),
|
|
2532
2532
|
};
|
|
2533
2533
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2534
2534
|
switch (errorCode) {
|
|
@@ -2580,7 +2580,7 @@ exports.deserializeAws_json1_1ChangePasswordCommand = deserializeAws_json1_1Chan
|
|
|
2580
2580
|
const deserializeAws_json1_1ChangePasswordCommandError = async (output, context) => {
|
|
2581
2581
|
const parsedOutput = {
|
|
2582
2582
|
...output,
|
|
2583
|
-
body: await
|
|
2583
|
+
body: await parseErrorBody(output.body, context),
|
|
2584
2584
|
};
|
|
2585
2585
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2586
2586
|
switch (errorCode) {
|
|
@@ -2644,7 +2644,7 @@ exports.deserializeAws_json1_1ConfirmDeviceCommand = deserializeAws_json1_1Confi
|
|
|
2644
2644
|
const deserializeAws_json1_1ConfirmDeviceCommandError = async (output, context) => {
|
|
2645
2645
|
const parsedOutput = {
|
|
2646
2646
|
...output,
|
|
2647
|
-
body: await
|
|
2647
|
+
body: await parseErrorBody(output.body, context),
|
|
2648
2648
|
};
|
|
2649
2649
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2650
2650
|
switch (errorCode) {
|
|
@@ -2678,15 +2678,15 @@ const deserializeAws_json1_1ConfirmDeviceCommandError = async (output, context)
|
|
|
2678
2678
|
case "TooManyRequestsException":
|
|
2679
2679
|
case "com.amazonaws.cognitoidentityprovider#TooManyRequestsException":
|
|
2680
2680
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2681
|
-
case "UsernameExistsException":
|
|
2682
|
-
case "com.amazonaws.cognitoidentityprovider#UsernameExistsException":
|
|
2683
|
-
throw await deserializeAws_json1_1UsernameExistsExceptionResponse(parsedOutput, context);
|
|
2684
2681
|
case "UserNotConfirmedException":
|
|
2685
2682
|
case "com.amazonaws.cognitoidentityprovider#UserNotConfirmedException":
|
|
2686
2683
|
throw await deserializeAws_json1_1UserNotConfirmedExceptionResponse(parsedOutput, context);
|
|
2687
2684
|
case "UserNotFoundException":
|
|
2688
2685
|
case "com.amazonaws.cognitoidentityprovider#UserNotFoundException":
|
|
2689
2686
|
throw await deserializeAws_json1_1UserNotFoundExceptionResponse(parsedOutput, context);
|
|
2687
|
+
case "UsernameExistsException":
|
|
2688
|
+
case "com.amazonaws.cognitoidentityprovider#UsernameExistsException":
|
|
2689
|
+
throw await deserializeAws_json1_1UsernameExistsExceptionResponse(parsedOutput, context);
|
|
2690
2690
|
default:
|
|
2691
2691
|
const parsedBody = parsedOutput.body;
|
|
2692
2692
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2714,7 +2714,7 @@ exports.deserializeAws_json1_1ConfirmForgotPasswordCommand = deserializeAws_json
|
|
|
2714
2714
|
const deserializeAws_json1_1ConfirmForgotPasswordCommandError = async (output, context) => {
|
|
2715
2715
|
const parsedOutput = {
|
|
2716
2716
|
...output,
|
|
2717
|
-
body: await
|
|
2717
|
+
body: await parseErrorBody(output.body, context),
|
|
2718
2718
|
};
|
|
2719
2719
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2720
2720
|
switch (errorCode) {
|
|
@@ -2793,7 +2793,7 @@ exports.deserializeAws_json1_1ConfirmSignUpCommand = deserializeAws_json1_1Confi
|
|
|
2793
2793
|
const deserializeAws_json1_1ConfirmSignUpCommandError = async (output, context) => {
|
|
2794
2794
|
const parsedOutput = {
|
|
2795
2795
|
...output,
|
|
2796
|
-
body: await
|
|
2796
|
+
body: await parseErrorBody(output.body, context),
|
|
2797
2797
|
};
|
|
2798
2798
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2799
2799
|
switch (errorCode) {
|
|
@@ -2869,7 +2869,7 @@ exports.deserializeAws_json1_1CreateGroupCommand = deserializeAws_json1_1CreateG
|
|
|
2869
2869
|
const deserializeAws_json1_1CreateGroupCommandError = async (output, context) => {
|
|
2870
2870
|
const parsedOutput = {
|
|
2871
2871
|
...output,
|
|
2872
|
-
body: await
|
|
2872
|
+
body: await parseErrorBody(output.body, context),
|
|
2873
2873
|
};
|
|
2874
2874
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2875
2875
|
switch (errorCode) {
|
|
@@ -2921,7 +2921,7 @@ exports.deserializeAws_json1_1CreateIdentityProviderCommand = deserializeAws_jso
|
|
|
2921
2921
|
const deserializeAws_json1_1CreateIdentityProviderCommandError = async (output, context) => {
|
|
2922
2922
|
const parsedOutput = {
|
|
2923
2923
|
...output,
|
|
2924
|
-
body: await
|
|
2924
|
+
body: await parseErrorBody(output.body, context),
|
|
2925
2925
|
};
|
|
2926
2926
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2927
2927
|
switch (errorCode) {
|
|
@@ -2973,7 +2973,7 @@ exports.deserializeAws_json1_1CreateResourceServerCommand = deserializeAws_json1
|
|
|
2973
2973
|
const deserializeAws_json1_1CreateResourceServerCommandError = async (output, context) => {
|
|
2974
2974
|
const parsedOutput = {
|
|
2975
2975
|
...output,
|
|
2976
|
-
body: await
|
|
2976
|
+
body: await parseErrorBody(output.body, context),
|
|
2977
2977
|
};
|
|
2978
2978
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2979
2979
|
switch (errorCode) {
|
|
@@ -3022,7 +3022,7 @@ exports.deserializeAws_json1_1CreateUserImportJobCommand = deserializeAws_json1_
|
|
|
3022
3022
|
const deserializeAws_json1_1CreateUserImportJobCommandError = async (output, context) => {
|
|
3023
3023
|
const parsedOutput = {
|
|
3024
3024
|
...output,
|
|
3025
|
-
body: await
|
|
3025
|
+
body: await parseErrorBody(output.body, context),
|
|
3026
3026
|
};
|
|
3027
3027
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3028
3028
|
switch (errorCode) {
|
|
@@ -3074,7 +3074,7 @@ exports.deserializeAws_json1_1CreateUserPoolCommand = deserializeAws_json1_1Crea
|
|
|
3074
3074
|
const deserializeAws_json1_1CreateUserPoolCommandError = async (output, context) => {
|
|
3075
3075
|
const parsedOutput = {
|
|
3076
3076
|
...output,
|
|
3077
|
-
body: await
|
|
3077
|
+
body: await parseErrorBody(output.body, context),
|
|
3078
3078
|
};
|
|
3079
3079
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3080
3080
|
switch (errorCode) {
|
|
@@ -3132,7 +3132,7 @@ exports.deserializeAws_json1_1CreateUserPoolClientCommand = deserializeAws_json1
|
|
|
3132
3132
|
const deserializeAws_json1_1CreateUserPoolClientCommandError = async (output, context) => {
|
|
3133
3133
|
const parsedOutput = {
|
|
3134
3134
|
...output,
|
|
3135
|
-
body: await
|
|
3135
|
+
body: await parseErrorBody(output.body, context),
|
|
3136
3136
|
};
|
|
3137
3137
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3138
3138
|
switch (errorCode) {
|
|
@@ -3187,7 +3187,7 @@ exports.deserializeAws_json1_1CreateUserPoolDomainCommand = deserializeAws_json1
|
|
|
3187
3187
|
const deserializeAws_json1_1CreateUserPoolDomainCommandError = async (output, context) => {
|
|
3188
3188
|
const parsedOutput = {
|
|
3189
3189
|
...output,
|
|
3190
|
-
body: await
|
|
3190
|
+
body: await parseErrorBody(output.body, context),
|
|
3191
3191
|
};
|
|
3192
3192
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3193
3193
|
switch (errorCode) {
|
|
@@ -3230,7 +3230,7 @@ exports.deserializeAws_json1_1DeleteGroupCommand = deserializeAws_json1_1DeleteG
|
|
|
3230
3230
|
const deserializeAws_json1_1DeleteGroupCommandError = async (output, context) => {
|
|
3231
3231
|
const parsedOutput = {
|
|
3232
3232
|
...output,
|
|
3233
|
-
body: await
|
|
3233
|
+
body: await parseErrorBody(output.body, context),
|
|
3234
3234
|
};
|
|
3235
3235
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3236
3236
|
switch (errorCode) {
|
|
@@ -3273,7 +3273,7 @@ exports.deserializeAws_json1_1DeleteIdentityProviderCommand = deserializeAws_jso
|
|
|
3273
3273
|
const deserializeAws_json1_1DeleteIdentityProviderCommandError = async (output, context) => {
|
|
3274
3274
|
const parsedOutput = {
|
|
3275
3275
|
...output,
|
|
3276
|
-
body: await
|
|
3276
|
+
body: await parseErrorBody(output.body, context),
|
|
3277
3277
|
};
|
|
3278
3278
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3279
3279
|
switch (errorCode) {
|
|
@@ -3319,7 +3319,7 @@ exports.deserializeAws_json1_1DeleteResourceServerCommand = deserializeAws_json1
|
|
|
3319
3319
|
const deserializeAws_json1_1DeleteResourceServerCommandError = async (output, context) => {
|
|
3320
3320
|
const parsedOutput = {
|
|
3321
3321
|
...output,
|
|
3322
|
-
body: await
|
|
3322
|
+
body: await parseErrorBody(output.body, context),
|
|
3323
3323
|
};
|
|
3324
3324
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3325
3325
|
switch (errorCode) {
|
|
@@ -3362,7 +3362,7 @@ exports.deserializeAws_json1_1DeleteUserCommand = deserializeAws_json1_1DeleteUs
|
|
|
3362
3362
|
const deserializeAws_json1_1DeleteUserCommandError = async (output, context) => {
|
|
3363
3363
|
const parsedOutput = {
|
|
3364
3364
|
...output,
|
|
3365
|
-
body: await
|
|
3365
|
+
body: await parseErrorBody(output.body, context),
|
|
3366
3366
|
};
|
|
3367
3367
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3368
3368
|
switch (errorCode) {
|
|
@@ -3420,7 +3420,7 @@ exports.deserializeAws_json1_1DeleteUserAttributesCommand = deserializeAws_json1
|
|
|
3420
3420
|
const deserializeAws_json1_1DeleteUserAttributesCommandError = async (output, context) => {
|
|
3421
3421
|
const parsedOutput = {
|
|
3422
3422
|
...output,
|
|
3423
|
-
body: await
|
|
3423
|
+
body: await parseErrorBody(output.body, context),
|
|
3424
3424
|
};
|
|
3425
3425
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3426
3426
|
switch (errorCode) {
|
|
@@ -3475,7 +3475,7 @@ exports.deserializeAws_json1_1DeleteUserPoolCommand = deserializeAws_json1_1Dele
|
|
|
3475
3475
|
const deserializeAws_json1_1DeleteUserPoolCommandError = async (output, context) => {
|
|
3476
3476
|
const parsedOutput = {
|
|
3477
3477
|
...output,
|
|
3478
|
-
body: await
|
|
3478
|
+
body: await parseErrorBody(output.body, context),
|
|
3479
3479
|
};
|
|
3480
3480
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3481
3481
|
switch (errorCode) {
|
|
@@ -3521,7 +3521,7 @@ exports.deserializeAws_json1_1DeleteUserPoolClientCommand = deserializeAws_json1
|
|
|
3521
3521
|
const deserializeAws_json1_1DeleteUserPoolClientCommandError = async (output, context) => {
|
|
3522
3522
|
const parsedOutput = {
|
|
3523
3523
|
...output,
|
|
3524
|
-
body: await
|
|
3524
|
+
body: await parseErrorBody(output.body, context),
|
|
3525
3525
|
};
|
|
3526
3526
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3527
3527
|
switch (errorCode) {
|
|
@@ -3567,7 +3567,7 @@ exports.deserializeAws_json1_1DeleteUserPoolDomainCommand = deserializeAws_json1
|
|
|
3567
3567
|
const deserializeAws_json1_1DeleteUserPoolDomainCommandError = async (output, context) => {
|
|
3568
3568
|
const parsedOutput = {
|
|
3569
3569
|
...output,
|
|
3570
|
-
body: await
|
|
3570
|
+
body: await parseErrorBody(output.body, context),
|
|
3571
3571
|
};
|
|
3572
3572
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3573
3573
|
switch (errorCode) {
|
|
@@ -3610,7 +3610,7 @@ exports.deserializeAws_json1_1DescribeIdentityProviderCommand = deserializeAws_j
|
|
|
3610
3610
|
const deserializeAws_json1_1DescribeIdentityProviderCommandError = async (output, context) => {
|
|
3611
3611
|
const parsedOutput = {
|
|
3612
3612
|
...output,
|
|
3613
|
-
body: await
|
|
3613
|
+
body: await parseErrorBody(output.body, context),
|
|
3614
3614
|
};
|
|
3615
3615
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3616
3616
|
switch (errorCode) {
|
|
@@ -3656,7 +3656,7 @@ exports.deserializeAws_json1_1DescribeResourceServerCommand = deserializeAws_jso
|
|
|
3656
3656
|
const deserializeAws_json1_1DescribeResourceServerCommandError = async (output, context) => {
|
|
3657
3657
|
const parsedOutput = {
|
|
3658
3658
|
...output,
|
|
3659
|
-
body: await
|
|
3659
|
+
body: await parseErrorBody(output.body, context),
|
|
3660
3660
|
};
|
|
3661
3661
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3662
3662
|
switch (errorCode) {
|
|
@@ -3702,7 +3702,7 @@ exports.deserializeAws_json1_1DescribeRiskConfigurationCommand = deserializeAws_
|
|
|
3702
3702
|
const deserializeAws_json1_1DescribeRiskConfigurationCommandError = async (output, context) => {
|
|
3703
3703
|
const parsedOutput = {
|
|
3704
3704
|
...output,
|
|
3705
|
-
body: await
|
|
3705
|
+
body: await parseErrorBody(output.body, context),
|
|
3706
3706
|
};
|
|
3707
3707
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3708
3708
|
switch (errorCode) {
|
|
@@ -3751,7 +3751,7 @@ exports.deserializeAws_json1_1DescribeUserImportJobCommand = deserializeAws_json
|
|
|
3751
3751
|
const deserializeAws_json1_1DescribeUserImportJobCommandError = async (output, context) => {
|
|
3752
3752
|
const parsedOutput = {
|
|
3753
3753
|
...output,
|
|
3754
|
-
body: await
|
|
3754
|
+
body: await parseErrorBody(output.body, context),
|
|
3755
3755
|
};
|
|
3756
3756
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3757
3757
|
switch (errorCode) {
|
|
@@ -3797,7 +3797,7 @@ exports.deserializeAws_json1_1DescribeUserPoolCommand = deserializeAws_json1_1De
|
|
|
3797
3797
|
const deserializeAws_json1_1DescribeUserPoolCommandError = async (output, context) => {
|
|
3798
3798
|
const parsedOutput = {
|
|
3799
3799
|
...output,
|
|
3800
|
-
body: await
|
|
3800
|
+
body: await parseErrorBody(output.body, context),
|
|
3801
3801
|
};
|
|
3802
3802
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3803
3803
|
switch (errorCode) {
|
|
@@ -3846,7 +3846,7 @@ exports.deserializeAws_json1_1DescribeUserPoolClientCommand = deserializeAws_jso
|
|
|
3846
3846
|
const deserializeAws_json1_1DescribeUserPoolClientCommandError = async (output, context) => {
|
|
3847
3847
|
const parsedOutput = {
|
|
3848
3848
|
...output,
|
|
3849
|
-
body: await
|
|
3849
|
+
body: await parseErrorBody(output.body, context),
|
|
3850
3850
|
};
|
|
3851
3851
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3852
3852
|
switch (errorCode) {
|
|
@@ -3892,7 +3892,7 @@ exports.deserializeAws_json1_1DescribeUserPoolDomainCommand = deserializeAws_jso
|
|
|
3892
3892
|
const deserializeAws_json1_1DescribeUserPoolDomainCommandError = async (output, context) => {
|
|
3893
3893
|
const parsedOutput = {
|
|
3894
3894
|
...output,
|
|
3895
|
-
body: await
|
|
3895
|
+
body: await parseErrorBody(output.body, context),
|
|
3896
3896
|
};
|
|
3897
3897
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3898
3898
|
switch (errorCode) {
|
|
@@ -3932,7 +3932,7 @@ exports.deserializeAws_json1_1ForgetDeviceCommand = deserializeAws_json1_1Forget
|
|
|
3932
3932
|
const deserializeAws_json1_1ForgetDeviceCommandError = async (output, context) => {
|
|
3933
3933
|
const parsedOutput = {
|
|
3934
3934
|
...output,
|
|
3935
|
-
body: await
|
|
3935
|
+
body: await parseErrorBody(output.body, context),
|
|
3936
3936
|
};
|
|
3937
3937
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3938
3938
|
switch (errorCode) {
|
|
@@ -3993,7 +3993,7 @@ exports.deserializeAws_json1_1ForgotPasswordCommand = deserializeAws_json1_1Forg
|
|
|
3993
3993
|
const deserializeAws_json1_1ForgotPasswordCommandError = async (output, context) => {
|
|
3994
3994
|
const parsedOutput = {
|
|
3995
3995
|
...output,
|
|
3996
|
-
body: await
|
|
3996
|
+
body: await parseErrorBody(output.body, context),
|
|
3997
3997
|
};
|
|
3998
3998
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3999
3999
|
switch (errorCode) {
|
|
@@ -4069,7 +4069,7 @@ exports.deserializeAws_json1_1GetCSVHeaderCommand = deserializeAws_json1_1GetCSV
|
|
|
4069
4069
|
const deserializeAws_json1_1GetCSVHeaderCommandError = async (output, context) => {
|
|
4070
4070
|
const parsedOutput = {
|
|
4071
4071
|
...output,
|
|
4072
|
-
body: await
|
|
4072
|
+
body: await parseErrorBody(output.body, context),
|
|
4073
4073
|
};
|
|
4074
4074
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4075
4075
|
switch (errorCode) {
|
|
@@ -4115,7 +4115,7 @@ exports.deserializeAws_json1_1GetDeviceCommand = deserializeAws_json1_1GetDevice
|
|
|
4115
4115
|
const deserializeAws_json1_1GetDeviceCommandError = async (output, context) => {
|
|
4116
4116
|
const parsedOutput = {
|
|
4117
4117
|
...output,
|
|
4118
|
-
body: await
|
|
4118
|
+
body: await parseErrorBody(output.body, context),
|
|
4119
4119
|
};
|
|
4120
4120
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4121
4121
|
switch (errorCode) {
|
|
@@ -4176,7 +4176,7 @@ exports.deserializeAws_json1_1GetGroupCommand = deserializeAws_json1_1GetGroupCo
|
|
|
4176
4176
|
const deserializeAws_json1_1GetGroupCommandError = async (output, context) => {
|
|
4177
4177
|
const parsedOutput = {
|
|
4178
4178
|
...output,
|
|
4179
|
-
body: await
|
|
4179
|
+
body: await parseErrorBody(output.body, context),
|
|
4180
4180
|
};
|
|
4181
4181
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4182
4182
|
switch (errorCode) {
|
|
@@ -4222,7 +4222,7 @@ exports.deserializeAws_json1_1GetIdentityProviderByIdentifierCommand = deseriali
|
|
|
4222
4222
|
const deserializeAws_json1_1GetIdentityProviderByIdentifierCommandError = async (output, context) => {
|
|
4223
4223
|
const parsedOutput = {
|
|
4224
4224
|
...output,
|
|
4225
|
-
body: await
|
|
4225
|
+
body: await parseErrorBody(output.body, context),
|
|
4226
4226
|
};
|
|
4227
4227
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4228
4228
|
switch (errorCode) {
|
|
@@ -4268,7 +4268,7 @@ exports.deserializeAws_json1_1GetSigningCertificateCommand = deserializeAws_json
|
|
|
4268
4268
|
const deserializeAws_json1_1GetSigningCertificateCommandError = async (output, context) => {
|
|
4269
4269
|
const parsedOutput = {
|
|
4270
4270
|
...output,
|
|
4271
|
-
body: await
|
|
4271
|
+
body: await parseErrorBody(output.body, context),
|
|
4272
4272
|
};
|
|
4273
4273
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4274
4274
|
switch (errorCode) {
|
|
@@ -4308,7 +4308,7 @@ exports.deserializeAws_json1_1GetUICustomizationCommand = deserializeAws_json1_1
|
|
|
4308
4308
|
const deserializeAws_json1_1GetUICustomizationCommandError = async (output, context) => {
|
|
4309
4309
|
const parsedOutput = {
|
|
4310
4310
|
...output,
|
|
4311
|
-
body: await
|
|
4311
|
+
body: await parseErrorBody(output.body, context),
|
|
4312
4312
|
};
|
|
4313
4313
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4314
4314
|
switch (errorCode) {
|
|
@@ -4354,7 +4354,7 @@ exports.deserializeAws_json1_1GetUserCommand = deserializeAws_json1_1GetUserComm
|
|
|
4354
4354
|
const deserializeAws_json1_1GetUserCommandError = async (output, context) => {
|
|
4355
4355
|
const parsedOutput = {
|
|
4356
4356
|
...output,
|
|
4357
|
-
body: await
|
|
4357
|
+
body: await parseErrorBody(output.body, context),
|
|
4358
4358
|
};
|
|
4359
4359
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4360
4360
|
switch (errorCode) {
|
|
@@ -4412,7 +4412,7 @@ exports.deserializeAws_json1_1GetUserAttributeVerificationCodeCommand = deserial
|
|
|
4412
4412
|
const deserializeAws_json1_1GetUserAttributeVerificationCodeCommandError = async (output, context) => {
|
|
4413
4413
|
const parsedOutput = {
|
|
4414
4414
|
...output,
|
|
4415
|
-
body: await
|
|
4415
|
+
body: await parseErrorBody(output.body, context),
|
|
4416
4416
|
};
|
|
4417
4417
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4418
4418
|
switch (errorCode) {
|
|
@@ -4494,7 +4494,7 @@ exports.deserializeAws_json1_1GetUserPoolMfaConfigCommand = deserializeAws_json1
|
|
|
4494
4494
|
const deserializeAws_json1_1GetUserPoolMfaConfigCommandError = async (output, context) => {
|
|
4495
4495
|
const parsedOutput = {
|
|
4496
4496
|
...output,
|
|
4497
|
-
body: await
|
|
4497
|
+
body: await parseErrorBody(output.body, context),
|
|
4498
4498
|
};
|
|
4499
4499
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4500
4500
|
switch (errorCode) {
|
|
@@ -4540,7 +4540,7 @@ exports.deserializeAws_json1_1GlobalSignOutCommand = deserializeAws_json1_1Globa
|
|
|
4540
4540
|
const deserializeAws_json1_1GlobalSignOutCommandError = async (output, context) => {
|
|
4541
4541
|
const parsedOutput = {
|
|
4542
4542
|
...output,
|
|
4543
|
-
body: await
|
|
4543
|
+
body: await parseErrorBody(output.body, context),
|
|
4544
4544
|
};
|
|
4545
4545
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4546
4546
|
switch (errorCode) {
|
|
@@ -4595,7 +4595,7 @@ exports.deserializeAws_json1_1InitiateAuthCommand = deserializeAws_json1_1Initia
|
|
|
4595
4595
|
const deserializeAws_json1_1InitiateAuthCommandError = async (output, context) => {
|
|
4596
4596
|
const parsedOutput = {
|
|
4597
4597
|
...output,
|
|
4598
|
-
body: await
|
|
4598
|
+
body: await parseErrorBody(output.body, context),
|
|
4599
4599
|
};
|
|
4600
4600
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4601
4601
|
switch (errorCode) {
|
|
@@ -4671,7 +4671,7 @@ exports.deserializeAws_json1_1ListDevicesCommand = deserializeAws_json1_1ListDev
|
|
|
4671
4671
|
const deserializeAws_json1_1ListDevicesCommandError = async (output, context) => {
|
|
4672
4672
|
const parsedOutput = {
|
|
4673
4673
|
...output,
|
|
4674
|
-
body: await
|
|
4674
|
+
body: await parseErrorBody(output.body, context),
|
|
4675
4675
|
};
|
|
4676
4676
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4677
4677
|
switch (errorCode) {
|
|
@@ -4732,7 +4732,7 @@ exports.deserializeAws_json1_1ListGroupsCommand = deserializeAws_json1_1ListGrou
|
|
|
4732
4732
|
const deserializeAws_json1_1ListGroupsCommandError = async (output, context) => {
|
|
4733
4733
|
const parsedOutput = {
|
|
4734
4734
|
...output,
|
|
4735
|
-
body: await
|
|
4735
|
+
body: await parseErrorBody(output.body, context),
|
|
4736
4736
|
};
|
|
4737
4737
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4738
4738
|
switch (errorCode) {
|
|
@@ -4778,7 +4778,7 @@ exports.deserializeAws_json1_1ListIdentityProvidersCommand = deserializeAws_json
|
|
|
4778
4778
|
const deserializeAws_json1_1ListIdentityProvidersCommandError = async (output, context) => {
|
|
4779
4779
|
const parsedOutput = {
|
|
4780
4780
|
...output,
|
|
4781
|
-
body: await
|
|
4781
|
+
body: await parseErrorBody(output.body, context),
|
|
4782
4782
|
};
|
|
4783
4783
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4784
4784
|
switch (errorCode) {
|
|
@@ -4824,7 +4824,7 @@ exports.deserializeAws_json1_1ListResourceServersCommand = deserializeAws_json1_
|
|
|
4824
4824
|
const deserializeAws_json1_1ListResourceServersCommandError = async (output, context) => {
|
|
4825
4825
|
const parsedOutput = {
|
|
4826
4826
|
...output,
|
|
4827
|
-
body: await
|
|
4827
|
+
body: await parseErrorBody(output.body, context),
|
|
4828
4828
|
};
|
|
4829
4829
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4830
4830
|
switch (errorCode) {
|
|
@@ -4870,7 +4870,7 @@ exports.deserializeAws_json1_1ListTagsForResourceCommand = deserializeAws_json1_
|
|
|
4870
4870
|
const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, context) => {
|
|
4871
4871
|
const parsedOutput = {
|
|
4872
4872
|
...output,
|
|
4873
|
-
body: await
|
|
4873
|
+
body: await parseErrorBody(output.body, context),
|
|
4874
4874
|
};
|
|
4875
4875
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4876
4876
|
switch (errorCode) {
|
|
@@ -4916,7 +4916,7 @@ exports.deserializeAws_json1_1ListUserImportJobsCommand = deserializeAws_json1_1
|
|
|
4916
4916
|
const deserializeAws_json1_1ListUserImportJobsCommandError = async (output, context) => {
|
|
4917
4917
|
const parsedOutput = {
|
|
4918
4918
|
...output,
|
|
4919
|
-
body: await
|
|
4919
|
+
body: await parseErrorBody(output.body, context),
|
|
4920
4920
|
};
|
|
4921
4921
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4922
4922
|
switch (errorCode) {
|
|
@@ -4962,7 +4962,7 @@ exports.deserializeAws_json1_1ListUserPoolClientsCommand = deserializeAws_json1_
|
|
|
4962
4962
|
const deserializeAws_json1_1ListUserPoolClientsCommandError = async (output, context) => {
|
|
4963
4963
|
const parsedOutput = {
|
|
4964
4964
|
...output,
|
|
4965
|
-
body: await
|
|
4965
|
+
body: await parseErrorBody(output.body, context),
|
|
4966
4966
|
};
|
|
4967
4967
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4968
4968
|
switch (errorCode) {
|
|
@@ -5008,7 +5008,7 @@ exports.deserializeAws_json1_1ListUserPoolsCommand = deserializeAws_json1_1ListU
|
|
|
5008
5008
|
const deserializeAws_json1_1ListUserPoolsCommandError = async (output, context) => {
|
|
5009
5009
|
const parsedOutput = {
|
|
5010
5010
|
...output,
|
|
5011
|
-
body: await
|
|
5011
|
+
body: await parseErrorBody(output.body, context),
|
|
5012
5012
|
};
|
|
5013
5013
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5014
5014
|
switch (errorCode) {
|
|
@@ -5051,7 +5051,7 @@ exports.deserializeAws_json1_1ListUsersCommand = deserializeAws_json1_1ListUsers
|
|
|
5051
5051
|
const deserializeAws_json1_1ListUsersCommandError = async (output, context) => {
|
|
5052
5052
|
const parsedOutput = {
|
|
5053
5053
|
...output,
|
|
5054
|
-
body: await
|
|
5054
|
+
body: await parseErrorBody(output.body, context),
|
|
5055
5055
|
};
|
|
5056
5056
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5057
5057
|
switch (errorCode) {
|
|
@@ -5097,7 +5097,7 @@ exports.deserializeAws_json1_1ListUsersInGroupCommand = deserializeAws_json1_1Li
|
|
|
5097
5097
|
const deserializeAws_json1_1ListUsersInGroupCommandError = async (output, context) => {
|
|
5098
5098
|
const parsedOutput = {
|
|
5099
5099
|
...output,
|
|
5100
|
-
body: await
|
|
5100
|
+
body: await parseErrorBody(output.body, context),
|
|
5101
5101
|
};
|
|
5102
5102
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5103
5103
|
switch (errorCode) {
|
|
@@ -5143,7 +5143,7 @@ exports.deserializeAws_json1_1ResendConfirmationCodeCommand = deserializeAws_jso
|
|
|
5143
5143
|
const deserializeAws_json1_1ResendConfirmationCodeCommandError = async (output, context) => {
|
|
5144
5144
|
const parsedOutput = {
|
|
5145
5145
|
...output,
|
|
5146
|
-
body: await
|
|
5146
|
+
body: await parseErrorBody(output.body, context),
|
|
5147
5147
|
};
|
|
5148
5148
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5149
5149
|
switch (errorCode) {
|
|
@@ -5219,7 +5219,7 @@ exports.deserializeAws_json1_1RespondToAuthChallengeCommand = deserializeAws_jso
|
|
|
5219
5219
|
const deserializeAws_json1_1RespondToAuthChallengeCommandError = async (output, context) => {
|
|
5220
5220
|
const parsedOutput = {
|
|
5221
5221
|
...output,
|
|
5222
|
-
body: await
|
|
5222
|
+
body: await parseErrorBody(output.body, context),
|
|
5223
5223
|
};
|
|
5224
5224
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5225
5225
|
switch (errorCode) {
|
|
@@ -5313,7 +5313,7 @@ exports.deserializeAws_json1_1RevokeTokenCommand = deserializeAws_json1_1RevokeT
|
|
|
5313
5313
|
const deserializeAws_json1_1RevokeTokenCommandError = async (output, context) => {
|
|
5314
5314
|
const parsedOutput = {
|
|
5315
5315
|
...output,
|
|
5316
|
-
body: await
|
|
5316
|
+
body: await parseErrorBody(output.body, context),
|
|
5317
5317
|
};
|
|
5318
5318
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5319
5319
|
switch (errorCode) {
|
|
@@ -5365,7 +5365,7 @@ exports.deserializeAws_json1_1SetRiskConfigurationCommand = deserializeAws_json1
|
|
|
5365
5365
|
const deserializeAws_json1_1SetRiskConfigurationCommandError = async (output, context) => {
|
|
5366
5366
|
const parsedOutput = {
|
|
5367
5367
|
...output,
|
|
5368
|
-
body: await
|
|
5368
|
+
body: await parseErrorBody(output.body, context),
|
|
5369
5369
|
};
|
|
5370
5370
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5371
5371
|
switch (errorCode) {
|
|
@@ -5420,7 +5420,7 @@ exports.deserializeAws_json1_1SetUICustomizationCommand = deserializeAws_json1_1
|
|
|
5420
5420
|
const deserializeAws_json1_1SetUICustomizationCommandError = async (output, context) => {
|
|
5421
5421
|
const parsedOutput = {
|
|
5422
5422
|
...output,
|
|
5423
|
-
body: await
|
|
5423
|
+
body: await parseErrorBody(output.body, context),
|
|
5424
5424
|
};
|
|
5425
5425
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5426
5426
|
switch (errorCode) {
|
|
@@ -5466,7 +5466,7 @@ exports.deserializeAws_json1_1SetUserMFAPreferenceCommand = deserializeAws_json1
|
|
|
5466
5466
|
const deserializeAws_json1_1SetUserMFAPreferenceCommandError = async (output, context) => {
|
|
5467
5467
|
const parsedOutput = {
|
|
5468
5468
|
...output,
|
|
5469
|
-
body: await
|
|
5469
|
+
body: await parseErrorBody(output.body, context),
|
|
5470
5470
|
};
|
|
5471
5471
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5472
5472
|
switch (errorCode) {
|
|
@@ -5521,7 +5521,7 @@ exports.deserializeAws_json1_1SetUserPoolMfaConfigCommand = deserializeAws_json1
|
|
|
5521
5521
|
const deserializeAws_json1_1SetUserPoolMfaConfigCommandError = async (output, context) => {
|
|
5522
5522
|
const parsedOutput = {
|
|
5523
5523
|
...output,
|
|
5524
|
-
body: await
|
|
5524
|
+
body: await parseErrorBody(output.body, context),
|
|
5525
5525
|
};
|
|
5526
5526
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5527
5527
|
switch (errorCode) {
|
|
@@ -5573,7 +5573,7 @@ exports.deserializeAws_json1_1SetUserSettingsCommand = deserializeAws_json1_1Set
|
|
|
5573
5573
|
const deserializeAws_json1_1SetUserSettingsCommandError = async (output, context) => {
|
|
5574
5574
|
const parsedOutput = {
|
|
5575
5575
|
...output,
|
|
5576
|
-
body: await
|
|
5576
|
+
body: await parseErrorBody(output.body, context),
|
|
5577
5577
|
};
|
|
5578
5578
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5579
5579
|
switch (errorCode) {
|
|
@@ -5628,7 +5628,7 @@ exports.deserializeAws_json1_1SignUpCommand = deserializeAws_json1_1SignUpComman
|
|
|
5628
5628
|
const deserializeAws_json1_1SignUpCommandError = async (output, context) => {
|
|
5629
5629
|
const parsedOutput = {
|
|
5630
5630
|
...output,
|
|
5631
|
-
body: await
|
|
5631
|
+
body: await parseErrorBody(output.body, context),
|
|
5632
5632
|
};
|
|
5633
5633
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5634
5634
|
switch (errorCode) {
|
|
@@ -5704,7 +5704,7 @@ exports.deserializeAws_json1_1StartUserImportJobCommand = deserializeAws_json1_1
|
|
|
5704
5704
|
const deserializeAws_json1_1StartUserImportJobCommandError = async (output, context) => {
|
|
5705
5705
|
const parsedOutput = {
|
|
5706
5706
|
...output,
|
|
5707
|
-
body: await
|
|
5707
|
+
body: await parseErrorBody(output.body, context),
|
|
5708
5708
|
};
|
|
5709
5709
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5710
5710
|
switch (errorCode) {
|
|
@@ -5753,7 +5753,7 @@ exports.deserializeAws_json1_1StopUserImportJobCommand = deserializeAws_json1_1S
|
|
|
5753
5753
|
const deserializeAws_json1_1StopUserImportJobCommandError = async (output, context) => {
|
|
5754
5754
|
const parsedOutput = {
|
|
5755
5755
|
...output,
|
|
5756
|
-
body: await
|
|
5756
|
+
body: await parseErrorBody(output.body, context),
|
|
5757
5757
|
};
|
|
5758
5758
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5759
5759
|
switch (errorCode) {
|
|
@@ -5802,7 +5802,7 @@ exports.deserializeAws_json1_1TagResourceCommand = deserializeAws_json1_1TagReso
|
|
|
5802
5802
|
const deserializeAws_json1_1TagResourceCommandError = async (output, context) => {
|
|
5803
5803
|
const parsedOutput = {
|
|
5804
5804
|
...output,
|
|
5805
|
-
body: await
|
|
5805
|
+
body: await parseErrorBody(output.body, context),
|
|
5806
5806
|
};
|
|
5807
5807
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5808
5808
|
switch (errorCode) {
|
|
@@ -5848,7 +5848,7 @@ exports.deserializeAws_json1_1UntagResourceCommand = deserializeAws_json1_1Untag
|
|
|
5848
5848
|
const deserializeAws_json1_1UntagResourceCommandError = async (output, context) => {
|
|
5849
5849
|
const parsedOutput = {
|
|
5850
5850
|
...output,
|
|
5851
|
-
body: await
|
|
5851
|
+
body: await parseErrorBody(output.body, context),
|
|
5852
5852
|
};
|
|
5853
5853
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5854
5854
|
switch (errorCode) {
|
|
@@ -5894,7 +5894,7 @@ exports.deserializeAws_json1_1UpdateAuthEventFeedbackCommand = deserializeAws_js
|
|
|
5894
5894
|
const deserializeAws_json1_1UpdateAuthEventFeedbackCommandError = async (output, context) => {
|
|
5895
5895
|
const parsedOutput = {
|
|
5896
5896
|
...output,
|
|
5897
|
-
body: await
|
|
5897
|
+
body: await parseErrorBody(output.body, context),
|
|
5898
5898
|
};
|
|
5899
5899
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5900
5900
|
switch (errorCode) {
|
|
@@ -5946,7 +5946,7 @@ exports.deserializeAws_json1_1UpdateDeviceStatusCommand = deserializeAws_json1_1
|
|
|
5946
5946
|
const deserializeAws_json1_1UpdateDeviceStatusCommandError = async (output, context) => {
|
|
5947
5947
|
const parsedOutput = {
|
|
5948
5948
|
...output,
|
|
5949
|
-
body: await
|
|
5949
|
+
body: await parseErrorBody(output.body, context),
|
|
5950
5950
|
};
|
|
5951
5951
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5952
5952
|
switch (errorCode) {
|
|
@@ -6007,7 +6007,7 @@ exports.deserializeAws_json1_1UpdateGroupCommand = deserializeAws_json1_1UpdateG
|
|
|
6007
6007
|
const deserializeAws_json1_1UpdateGroupCommandError = async (output, context) => {
|
|
6008
6008
|
const parsedOutput = {
|
|
6009
6009
|
...output,
|
|
6010
|
-
body: await
|
|
6010
|
+
body: await parseErrorBody(output.body, context),
|
|
6011
6011
|
};
|
|
6012
6012
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6013
6013
|
switch (errorCode) {
|
|
@@ -6053,7 +6053,7 @@ exports.deserializeAws_json1_1UpdateIdentityProviderCommand = deserializeAws_jso
|
|
|
6053
6053
|
const deserializeAws_json1_1UpdateIdentityProviderCommandError = async (output, context) => {
|
|
6054
6054
|
const parsedOutput = {
|
|
6055
6055
|
...output,
|
|
6056
|
-
body: await
|
|
6056
|
+
body: await parseErrorBody(output.body, context),
|
|
6057
6057
|
};
|
|
6058
6058
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6059
6059
|
switch (errorCode) {
|
|
@@ -6102,7 +6102,7 @@ exports.deserializeAws_json1_1UpdateResourceServerCommand = deserializeAws_json1
|
|
|
6102
6102
|
const deserializeAws_json1_1UpdateResourceServerCommandError = async (output, context) => {
|
|
6103
6103
|
const parsedOutput = {
|
|
6104
6104
|
...output,
|
|
6105
|
-
body: await
|
|
6105
|
+
body: await parseErrorBody(output.body, context),
|
|
6106
6106
|
};
|
|
6107
6107
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6108
6108
|
switch (errorCode) {
|
|
@@ -6148,7 +6148,7 @@ exports.deserializeAws_json1_1UpdateUserAttributesCommand = deserializeAws_json1
|
|
|
6148
6148
|
const deserializeAws_json1_1UpdateUserAttributesCommandError = async (output, context) => {
|
|
6149
6149
|
const parsedOutput = {
|
|
6150
6150
|
...output,
|
|
6151
|
-
body: await
|
|
6151
|
+
body: await parseErrorBody(output.body, context),
|
|
6152
6152
|
};
|
|
6153
6153
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6154
6154
|
switch (errorCode) {
|
|
@@ -6236,7 +6236,7 @@ exports.deserializeAws_json1_1UpdateUserPoolCommand = deserializeAws_json1_1Upda
|
|
|
6236
6236
|
const deserializeAws_json1_1UpdateUserPoolCommandError = async (output, context) => {
|
|
6237
6237
|
const parsedOutput = {
|
|
6238
6238
|
...output,
|
|
6239
|
-
body: await
|
|
6239
|
+
body: await parseErrorBody(output.body, context),
|
|
6240
6240
|
};
|
|
6241
6241
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6242
6242
|
switch (errorCode) {
|
|
@@ -6300,7 +6300,7 @@ exports.deserializeAws_json1_1UpdateUserPoolClientCommand = deserializeAws_json1
|
|
|
6300
6300
|
const deserializeAws_json1_1UpdateUserPoolClientCommandError = async (output, context) => {
|
|
6301
6301
|
const parsedOutput = {
|
|
6302
6302
|
...output,
|
|
6303
|
-
body: await
|
|
6303
|
+
body: await parseErrorBody(output.body, context),
|
|
6304
6304
|
};
|
|
6305
6305
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6306
6306
|
switch (errorCode) {
|
|
@@ -6355,7 +6355,7 @@ exports.deserializeAws_json1_1UpdateUserPoolDomainCommand = deserializeAws_json1
|
|
|
6355
6355
|
const deserializeAws_json1_1UpdateUserPoolDomainCommandError = async (output, context) => {
|
|
6356
6356
|
const parsedOutput = {
|
|
6357
6357
|
...output,
|
|
6358
|
-
body: await
|
|
6358
|
+
body: await parseErrorBody(output.body, context),
|
|
6359
6359
|
};
|
|
6360
6360
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6361
6361
|
switch (errorCode) {
|
|
@@ -6401,7 +6401,7 @@ exports.deserializeAws_json1_1VerifySoftwareTokenCommand = deserializeAws_json1_
|
|
|
6401
6401
|
const deserializeAws_json1_1VerifySoftwareTokenCommandError = async (output, context) => {
|
|
6402
6402
|
const parsedOutput = {
|
|
6403
6403
|
...output,
|
|
6404
|
-
body: await
|
|
6404
|
+
body: await parseErrorBody(output.body, context),
|
|
6405
6405
|
};
|
|
6406
6406
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6407
6407
|
switch (errorCode) {
|
|
@@ -6471,7 +6471,7 @@ exports.deserializeAws_json1_1VerifyUserAttributeCommand = deserializeAws_json1_
|
|
|
6471
6471
|
const deserializeAws_json1_1VerifyUserAttributeCommandError = async (output, context) => {
|
|
6472
6472
|
const parsedOutput = {
|
|
6473
6473
|
...output,
|
|
6474
|
-
body: await
|
|
6474
|
+
body: await parseErrorBody(output.body, context),
|
|
6475
6475
|
};
|
|
6476
6476
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6477
6477
|
switch (errorCode) {
|
|
@@ -10315,6 +10315,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
10315
10315
|
}
|
|
10316
10316
|
return {};
|
|
10317
10317
|
});
|
|
10318
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
10319
|
+
var _a;
|
|
10320
|
+
const value = await parseBody(errorBody, context);
|
|
10321
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
10322
|
+
return value;
|
|
10323
|
+
};
|
|
10318
10324
|
const loadRestJsonErrorCode = (output, data) => {
|
|
10319
10325
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
10320
10326
|
const sanitizeErrorCode = (rawValue) => {
|