@aws-sdk/client-cognito-identity-provider 3.131.0 → 3.142.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 +33 -0
- package/README.md +1 -1
- package/dist-cjs/commands/AddCustomAttributesCommand.js +2 -2
- package/dist-cjs/commands/AdminAddUserToGroupCommand.js +1 -1
- package/dist-cjs/commands/AdminConfirmSignUpCommand.js +2 -2
- package/dist-cjs/commands/AdminCreateUserCommand.js +2 -2
- package/dist-cjs/commands/AdminDeleteUserAttributesCommand.js +2 -2
- package/dist-cjs/commands/AdminDeleteUserCommand.js +1 -1
- package/dist-cjs/commands/AdminDisableProviderForUserCommand.js +2 -2
- package/dist-cjs/commands/AdminDisableUserCommand.js +2 -2
- package/dist-cjs/commands/AdminEnableUserCommand.js +2 -2
- package/dist-cjs/commands/AdminForgetDeviceCommand.js +1 -1
- package/dist-cjs/commands/AdminGetDeviceCommand.js +2 -2
- package/dist-cjs/commands/AdminGetUserCommand.js +2 -2
- package/dist-cjs/commands/AdminInitiateAuthCommand.js +2 -2
- package/dist-cjs/commands/AdminLinkProviderForUserCommand.js +2 -2
- package/dist-cjs/commands/AdminListDevicesCommand.js +2 -2
- package/dist-cjs/commands/AdminListGroupsForUserCommand.js +2 -2
- package/dist-cjs/commands/AdminListUserAuthEventsCommand.js +2 -2
- package/dist-cjs/commands/AdminRemoveUserFromGroupCommand.js +1 -1
- package/dist-cjs/commands/AdminResetUserPasswordCommand.js +2 -2
- package/dist-cjs/commands/AdminRespondToAuthChallengeCommand.js +2 -2
- package/dist-cjs/commands/AdminSetUserMFAPreferenceCommand.js +2 -2
- package/dist-cjs/commands/AdminSetUserPasswordCommand.js +2 -2
- package/dist-cjs/commands/AdminSetUserSettingsCommand.js +2 -2
- package/dist-cjs/commands/AdminUpdateAuthEventFeedbackCommand.js +2 -2
- package/dist-cjs/commands/AdminUpdateDeviceStatusCommand.js +2 -2
- package/dist-cjs/commands/AdminUpdateUserAttributesCommand.js +2 -2
- package/dist-cjs/commands/AdminUserGlobalSignOutCommand.js +2 -2
- package/dist-cjs/commands/AssociateSoftwareTokenCommand.js +2 -2
- package/dist-cjs/commands/ChangePasswordCommand.js +2 -2
- package/dist-cjs/commands/ConfirmDeviceCommand.js +2 -2
- package/dist-cjs/commands/ConfirmForgotPasswordCommand.js +2 -2
- package/dist-cjs/commands/ConfirmSignUpCommand.js +2 -2
- package/dist-cjs/commands/CreateGroupCommand.js +2 -2
- package/dist-cjs/commands/CreateIdentityProviderCommand.js +2 -2
- package/dist-cjs/commands/CreateResourceServerCommand.js +2 -2
- package/dist-cjs/commands/CreateUserImportJobCommand.js +2 -2
- package/dist-cjs/commands/CreateUserPoolClientCommand.js +2 -2
- package/dist-cjs/commands/CreateUserPoolCommand.js +2 -2
- package/dist-cjs/commands/CreateUserPoolDomainCommand.js +2 -2
- package/dist-cjs/commands/DeleteGroupCommand.js +1 -1
- package/dist-cjs/commands/DeleteIdentityProviderCommand.js +1 -1
- package/dist-cjs/commands/DeleteResourceServerCommand.js +1 -1
- package/dist-cjs/commands/DeleteUserAttributesCommand.js +2 -2
- package/dist-cjs/commands/DeleteUserCommand.js +1 -1
- package/dist-cjs/commands/DeleteUserPoolClientCommand.js +1 -1
- package/dist-cjs/commands/DeleteUserPoolCommand.js +1 -1
- package/dist-cjs/commands/DeleteUserPoolDomainCommand.js +2 -2
- package/dist-cjs/commands/DescribeIdentityProviderCommand.js +2 -2
- package/dist-cjs/commands/DescribeResourceServerCommand.js +2 -2
- package/dist-cjs/commands/DescribeRiskConfigurationCommand.js +2 -2
- package/dist-cjs/commands/DescribeUserImportJobCommand.js +2 -2
- package/dist-cjs/commands/DescribeUserPoolClientCommand.js +2 -2
- package/dist-cjs/commands/DescribeUserPoolCommand.js +2 -2
- package/dist-cjs/commands/DescribeUserPoolDomainCommand.js +2 -2
- package/dist-cjs/commands/ForgetDeviceCommand.js +1 -1
- package/dist-cjs/commands/ForgotPasswordCommand.js +2 -2
- package/dist-cjs/commands/GetCSVHeaderCommand.js +2 -2
- package/dist-cjs/commands/GetDeviceCommand.js +2 -2
- package/dist-cjs/commands/GetGroupCommand.js +2 -2
- package/dist-cjs/commands/GetIdentityProviderByIdentifierCommand.js +2 -2
- package/dist-cjs/commands/GetSigningCertificateCommand.js +2 -2
- package/dist-cjs/commands/GetUICustomizationCommand.js +2 -2
- package/dist-cjs/commands/GetUserAttributeVerificationCodeCommand.js +2 -2
- package/dist-cjs/commands/GetUserCommand.js +2 -2
- package/dist-cjs/commands/GetUserPoolMfaConfigCommand.js +2 -2
- package/dist-cjs/commands/GlobalSignOutCommand.js +2 -2
- package/dist-cjs/commands/InitiateAuthCommand.js +2 -2
- package/dist-cjs/commands/ListDevicesCommand.js +2 -2
- package/dist-cjs/commands/ListGroupsCommand.js +2 -2
- package/dist-cjs/commands/ListIdentityProvidersCommand.js +2 -2
- package/dist-cjs/commands/ListResourceServersCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/ListUserImportJobsCommand.js +2 -2
- package/dist-cjs/commands/ListUserPoolClientsCommand.js +2 -2
- package/dist-cjs/commands/ListUserPoolsCommand.js +2 -2
- package/dist-cjs/commands/ListUsersCommand.js +2 -2
- package/dist-cjs/commands/ListUsersInGroupCommand.js +2 -2
- package/dist-cjs/commands/ResendConfirmationCodeCommand.js +2 -2
- package/dist-cjs/commands/RespondToAuthChallengeCommand.js +2 -2
- package/dist-cjs/commands/RevokeTokenCommand.js +2 -2
- package/dist-cjs/commands/SetRiskConfigurationCommand.js +2 -2
- package/dist-cjs/commands/SetUICustomizationCommand.js +2 -2
- package/dist-cjs/commands/SetUserMFAPreferenceCommand.js +2 -2
- package/dist-cjs/commands/SetUserPoolMfaConfigCommand.js +2 -2
- package/dist-cjs/commands/SetUserSettingsCommand.js +2 -2
- package/dist-cjs/commands/SignUpCommand.js +2 -2
- package/dist-cjs/commands/StartUserImportJobCommand.js +2 -2
- package/dist-cjs/commands/StopUserImportJobCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateAuthEventFeedbackCommand.js +2 -2
- package/dist-cjs/commands/UpdateDeviceStatusCommand.js +2 -2
- package/dist-cjs/commands/UpdateGroupCommand.js +2 -2
- package/dist-cjs/commands/UpdateIdentityProviderCommand.js +2 -2
- package/dist-cjs/commands/UpdateResourceServerCommand.js +2 -2
- package/dist-cjs/commands/UpdateUserAttributesCommand.js +2 -2
- package/dist-cjs/commands/UpdateUserPoolClientCommand.js +2 -2
- package/dist-cjs/commands/UpdateUserPoolCommand.js +2 -2
- package/dist-cjs/commands/UpdateUserPoolDomainCommand.js +2 -2
- package/dist-cjs/commands/VerifySoftwareTokenCommand.js +2 -2
- package/dist-cjs/commands/VerifyUserAttributeCommand.js +2 -2
- package/dist-cjs/models/models_0.js +1045 -1501
- package/dist-cjs/models/models_1.js +132 -192
- package/dist-cjs/protocols/Aws_json1_1.js +505 -886
- package/dist-es/commands/AddCustomAttributesCommand.js +3 -3
- package/dist-es/commands/AdminAddUserToGroupCommand.js +2 -2
- package/dist-es/commands/AdminConfirmSignUpCommand.js +3 -3
- package/dist-es/commands/AdminCreateUserCommand.js +3 -3
- package/dist-es/commands/AdminDeleteUserAttributesCommand.js +3 -3
- package/dist-es/commands/AdminDeleteUserCommand.js +2 -2
- package/dist-es/commands/AdminDisableProviderForUserCommand.js +3 -3
- package/dist-es/commands/AdminDisableUserCommand.js +3 -3
- package/dist-es/commands/AdminEnableUserCommand.js +3 -3
- package/dist-es/commands/AdminForgetDeviceCommand.js +2 -2
- package/dist-es/commands/AdminGetDeviceCommand.js +3 -3
- package/dist-es/commands/AdminGetUserCommand.js +3 -3
- package/dist-es/commands/AdminInitiateAuthCommand.js +3 -3
- package/dist-es/commands/AdminLinkProviderForUserCommand.js +3 -3
- package/dist-es/commands/AdminListDevicesCommand.js +3 -3
- package/dist-es/commands/AdminListGroupsForUserCommand.js +3 -3
- package/dist-es/commands/AdminListUserAuthEventsCommand.js +3 -3
- package/dist-es/commands/AdminRemoveUserFromGroupCommand.js +2 -2
- package/dist-es/commands/AdminResetUserPasswordCommand.js +3 -3
- package/dist-es/commands/AdminRespondToAuthChallengeCommand.js +3 -3
- package/dist-es/commands/AdminSetUserMFAPreferenceCommand.js +3 -3
- package/dist-es/commands/AdminSetUserPasswordCommand.js +3 -3
- package/dist-es/commands/AdminSetUserSettingsCommand.js +3 -3
- package/dist-es/commands/AdminUpdateAuthEventFeedbackCommand.js +3 -3
- package/dist-es/commands/AdminUpdateDeviceStatusCommand.js +3 -3
- package/dist-es/commands/AdminUpdateUserAttributesCommand.js +3 -3
- package/dist-es/commands/AdminUserGlobalSignOutCommand.js +3 -3
- package/dist-es/commands/AssociateSoftwareTokenCommand.js +3 -3
- package/dist-es/commands/ChangePasswordCommand.js +3 -3
- package/dist-es/commands/ConfirmDeviceCommand.js +3 -3
- package/dist-es/commands/ConfirmForgotPasswordCommand.js +3 -3
- package/dist-es/commands/ConfirmSignUpCommand.js +3 -3
- package/dist-es/commands/CreateGroupCommand.js +3 -3
- package/dist-es/commands/CreateIdentityProviderCommand.js +3 -3
- package/dist-es/commands/CreateResourceServerCommand.js +3 -3
- package/dist-es/commands/CreateUserImportJobCommand.js +3 -3
- package/dist-es/commands/CreateUserPoolClientCommand.js +3 -3
- package/dist-es/commands/CreateUserPoolCommand.js +3 -3
- package/dist-es/commands/CreateUserPoolDomainCommand.js +3 -3
- package/dist-es/commands/DeleteGroupCommand.js +2 -2
- package/dist-es/commands/DeleteIdentityProviderCommand.js +2 -2
- package/dist-es/commands/DeleteResourceServerCommand.js +2 -2
- package/dist-es/commands/DeleteUserAttributesCommand.js +3 -3
- package/dist-es/commands/DeleteUserCommand.js +2 -2
- package/dist-es/commands/DeleteUserPoolClientCommand.js +2 -2
- package/dist-es/commands/DeleteUserPoolCommand.js +2 -2
- package/dist-es/commands/DeleteUserPoolDomainCommand.js +3 -3
- package/dist-es/commands/DescribeIdentityProviderCommand.js +3 -3
- package/dist-es/commands/DescribeResourceServerCommand.js +3 -3
- package/dist-es/commands/DescribeRiskConfigurationCommand.js +3 -3
- package/dist-es/commands/DescribeUserImportJobCommand.js +3 -3
- package/dist-es/commands/DescribeUserPoolClientCommand.js +3 -3
- package/dist-es/commands/DescribeUserPoolCommand.js +3 -3
- package/dist-es/commands/DescribeUserPoolDomainCommand.js +3 -3
- package/dist-es/commands/ForgetDeviceCommand.js +2 -2
- package/dist-es/commands/ForgotPasswordCommand.js +3 -3
- package/dist-es/commands/GetCSVHeaderCommand.js +3 -3
- package/dist-es/commands/GetDeviceCommand.js +3 -3
- package/dist-es/commands/GetGroupCommand.js +3 -3
- package/dist-es/commands/GetIdentityProviderByIdentifierCommand.js +3 -3
- package/dist-es/commands/GetSigningCertificateCommand.js +3 -3
- package/dist-es/commands/GetUICustomizationCommand.js +3 -3
- package/dist-es/commands/GetUserAttributeVerificationCodeCommand.js +3 -3
- package/dist-es/commands/GetUserCommand.js +3 -3
- package/dist-es/commands/GetUserPoolMfaConfigCommand.js +3 -3
- package/dist-es/commands/GlobalSignOutCommand.js +3 -3
- package/dist-es/commands/InitiateAuthCommand.js +3 -3
- package/dist-es/commands/ListDevicesCommand.js +3 -3
- package/dist-es/commands/ListGroupsCommand.js +3 -3
- package/dist-es/commands/ListIdentityProvidersCommand.js +3 -3
- package/dist-es/commands/ListResourceServersCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/ListUserImportJobsCommand.js +3 -3
- package/dist-es/commands/ListUserPoolClientsCommand.js +3 -3
- package/dist-es/commands/ListUserPoolsCommand.js +3 -3
- package/dist-es/commands/ListUsersCommand.js +3 -3
- package/dist-es/commands/ListUsersInGroupCommand.js +3 -3
- package/dist-es/commands/ResendConfirmationCodeCommand.js +3 -3
- package/dist-es/commands/RespondToAuthChallengeCommand.js +3 -3
- package/dist-es/commands/RevokeTokenCommand.js +3 -3
- package/dist-es/commands/SetRiskConfigurationCommand.js +3 -3
- package/dist-es/commands/SetUICustomizationCommand.js +3 -3
- package/dist-es/commands/SetUserMFAPreferenceCommand.js +3 -3
- package/dist-es/commands/SetUserPoolMfaConfigCommand.js +3 -3
- package/dist-es/commands/SetUserSettingsCommand.js +3 -3
- package/dist-es/commands/SignUpCommand.js +3 -3
- package/dist-es/commands/StartUserImportJobCommand.js +3 -3
- package/dist-es/commands/StopUserImportJobCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UpdateAuthEventFeedbackCommand.js +3 -3
- package/dist-es/commands/UpdateDeviceStatusCommand.js +3 -3
- package/dist-es/commands/UpdateGroupCommand.js +3 -3
- package/dist-es/commands/UpdateIdentityProviderCommand.js +3 -3
- package/dist-es/commands/UpdateResourceServerCommand.js +3 -3
- package/dist-es/commands/UpdateUserAttributesCommand.js +3 -3
- package/dist-es/commands/UpdateUserPoolClientCommand.js +3 -3
- package/dist-es/commands/UpdateUserPoolCommand.js +3 -3
- package/dist-es/commands/UpdateUserPoolDomainCommand.js +3 -3
- package/dist-es/commands/VerifySoftwareTokenCommand.js +3 -3
- package/dist-es/commands/VerifyUserAttributeCommand.js +3 -3
- package/dist-es/models/models_0.js +252 -934
- package/dist-es/models/models_1.js +33 -123
- package/dist-es/protocols/Aws_json1_1.js +809 -887
- package/dist-types/models/models_0.d.ts +904 -1356
- package/dist-types/models/models_1.d.ts +120 -180
- package/dist-types/ts3.4/models/models_0.d.ts +452 -904
- package/dist-types/ts3.4/models/models_1.d.ts +60 -120
- package/package.json +6 -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,7 +2530,6 @@ 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":
|
|
@@ -2634,14 +2552,12 @@ const deserializeAws_json1_1AssociateSoftwareTokenCommandError = async (output,
|
|
|
2634
2552
|
throw await deserializeAws_json1_1SoftwareTokenMFANotFoundExceptionResponse(parsedOutput, context);
|
|
2635
2553
|
default:
|
|
2636
2554
|
const parsedBody = parsedOutput.body;
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
$metadata,
|
|
2555
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2556
|
+
output,
|
|
2557
|
+
parsedBody,
|
|
2558
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
2559
|
+
errorCode,
|
|
2643
2560
|
});
|
|
2644
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2645
2561
|
}
|
|
2646
2562
|
};
|
|
2647
2563
|
const deserializeAws_json1_1ChangePasswordCommand = async (output, context) => {
|
|
@@ -2663,7 +2579,6 @@ const deserializeAws_json1_1ChangePasswordCommandError = async (output, context)
|
|
|
2663
2579
|
...output,
|
|
2664
2580
|
body: await parseBody(output.body, context),
|
|
2665
2581
|
};
|
|
2666
|
-
let response;
|
|
2667
2582
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2668
2583
|
switch (errorCode) {
|
|
2669
2584
|
case "InternalErrorException":
|
|
@@ -2698,14 +2613,12 @@ const deserializeAws_json1_1ChangePasswordCommandError = async (output, context)
|
|
|
2698
2613
|
throw await deserializeAws_json1_1UserNotFoundExceptionResponse(parsedOutput, context);
|
|
2699
2614
|
default:
|
|
2700
2615
|
const parsedBody = parsedOutput.body;
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
$metadata,
|
|
2616
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2617
|
+
output,
|
|
2618
|
+
parsedBody,
|
|
2619
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
2620
|
+
errorCode,
|
|
2707
2621
|
});
|
|
2708
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2709
2622
|
}
|
|
2710
2623
|
};
|
|
2711
2624
|
const deserializeAws_json1_1ConfirmDeviceCommand = async (output, context) => {
|
|
@@ -2727,7 +2640,6 @@ const deserializeAws_json1_1ConfirmDeviceCommandError = async (output, context)
|
|
|
2727
2640
|
...output,
|
|
2728
2641
|
body: await parseBody(output.body, context),
|
|
2729
2642
|
};
|
|
2730
|
-
let response;
|
|
2731
2643
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2732
2644
|
switch (errorCode) {
|
|
2733
2645
|
case "InternalErrorException":
|
|
@@ -2768,14 +2680,12 @@ const deserializeAws_json1_1ConfirmDeviceCommandError = async (output, context)
|
|
|
2768
2680
|
throw await deserializeAws_json1_1UserNotFoundExceptionResponse(parsedOutput, context);
|
|
2769
2681
|
default:
|
|
2770
2682
|
const parsedBody = parsedOutput.body;
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
$metadata,
|
|
2683
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2684
|
+
output,
|
|
2685
|
+
parsedBody,
|
|
2686
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
2687
|
+
errorCode,
|
|
2777
2688
|
});
|
|
2778
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2779
2689
|
}
|
|
2780
2690
|
};
|
|
2781
2691
|
const deserializeAws_json1_1ConfirmForgotPasswordCommand = async (output, context) => {
|
|
@@ -2797,7 +2707,6 @@ const deserializeAws_json1_1ConfirmForgotPasswordCommandError = async (output, c
|
|
|
2797
2707
|
...output,
|
|
2798
2708
|
body: await parseBody(output.body, context),
|
|
2799
2709
|
};
|
|
2800
|
-
let response;
|
|
2801
2710
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2802
2711
|
switch (errorCode) {
|
|
2803
2712
|
case "CodeMismatchException":
|
|
@@ -2847,14 +2756,12 @@ const deserializeAws_json1_1ConfirmForgotPasswordCommandError = async (output, c
|
|
|
2847
2756
|
throw await deserializeAws_json1_1UserNotFoundExceptionResponse(parsedOutput, context);
|
|
2848
2757
|
default:
|
|
2849
2758
|
const parsedBody = parsedOutput.body;
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
$metadata,
|
|
2759
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2760
|
+
output,
|
|
2761
|
+
parsedBody,
|
|
2762
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
2763
|
+
errorCode,
|
|
2856
2764
|
});
|
|
2857
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2858
2765
|
}
|
|
2859
2766
|
};
|
|
2860
2767
|
const deserializeAws_json1_1ConfirmSignUpCommand = async (output, context) => {
|
|
@@ -2876,7 +2783,6 @@ const deserializeAws_json1_1ConfirmSignUpCommandError = async (output, context)
|
|
|
2876
2783
|
...output,
|
|
2877
2784
|
body: await parseBody(output.body, context),
|
|
2878
2785
|
};
|
|
2879
|
-
let response;
|
|
2880
2786
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2881
2787
|
switch (errorCode) {
|
|
2882
2788
|
case "AliasExistsException":
|
|
@@ -2923,14 +2829,12 @@ const deserializeAws_json1_1ConfirmSignUpCommandError = async (output, context)
|
|
|
2923
2829
|
throw await deserializeAws_json1_1UserNotFoundExceptionResponse(parsedOutput, context);
|
|
2924
2830
|
default:
|
|
2925
2831
|
const parsedBody = parsedOutput.body;
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
|
|
2930
|
-
|
|
2931
|
-
$metadata,
|
|
2832
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2833
|
+
output,
|
|
2834
|
+
parsedBody,
|
|
2835
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
2836
|
+
errorCode,
|
|
2932
2837
|
});
|
|
2933
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2934
2838
|
}
|
|
2935
2839
|
};
|
|
2936
2840
|
const deserializeAws_json1_1CreateGroupCommand = async (output, context) => {
|
|
@@ -2952,7 +2856,6 @@ const deserializeAws_json1_1CreateGroupCommandError = async (output, context) =>
|
|
|
2952
2856
|
...output,
|
|
2953
2857
|
body: await parseBody(output.body, context),
|
|
2954
2858
|
};
|
|
2955
|
-
let response;
|
|
2956
2859
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2957
2860
|
switch (errorCode) {
|
|
2958
2861
|
case "GroupExistsException":
|
|
@@ -2978,14 +2881,12 @@ const deserializeAws_json1_1CreateGroupCommandError = async (output, context) =>
|
|
|
2978
2881
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2979
2882
|
default:
|
|
2980
2883
|
const parsedBody = parsedOutput.body;
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
$metadata,
|
|
2884
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2885
|
+
output,
|
|
2886
|
+
parsedBody,
|
|
2887
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
2888
|
+
errorCode,
|
|
2987
2889
|
});
|
|
2988
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2989
2890
|
}
|
|
2990
2891
|
};
|
|
2991
2892
|
const deserializeAws_json1_1CreateIdentityProviderCommand = async (output, context) => {
|
|
@@ -3007,7 +2908,6 @@ const deserializeAws_json1_1CreateIdentityProviderCommandError = async (output,
|
|
|
3007
2908
|
...output,
|
|
3008
2909
|
body: await parseBody(output.body, context),
|
|
3009
2910
|
};
|
|
3010
|
-
let response;
|
|
3011
2911
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3012
2912
|
switch (errorCode) {
|
|
3013
2913
|
case "DuplicateProviderException":
|
|
@@ -3033,14 +2933,12 @@ const deserializeAws_json1_1CreateIdentityProviderCommandError = async (output,
|
|
|
3033
2933
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3034
2934
|
default:
|
|
3035
2935
|
const parsedBody = parsedOutput.body;
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
$metadata,
|
|
2936
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2937
|
+
output,
|
|
2938
|
+
parsedBody,
|
|
2939
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
2940
|
+
errorCode,
|
|
3042
2941
|
});
|
|
3043
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3044
2942
|
}
|
|
3045
2943
|
};
|
|
3046
2944
|
const deserializeAws_json1_1CreateResourceServerCommand = async (output, context) => {
|
|
@@ -3062,7 +2960,6 @@ const deserializeAws_json1_1CreateResourceServerCommandError = async (output, co
|
|
|
3062
2960
|
...output,
|
|
3063
2961
|
body: await parseBody(output.body, context),
|
|
3064
2962
|
};
|
|
3065
|
-
let response;
|
|
3066
2963
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3067
2964
|
switch (errorCode) {
|
|
3068
2965
|
case "InternalErrorException":
|
|
@@ -3085,14 +2982,12 @@ const deserializeAws_json1_1CreateResourceServerCommandError = async (output, co
|
|
|
3085
2982
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3086
2983
|
default:
|
|
3087
2984
|
const parsedBody = parsedOutput.body;
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
$metadata,
|
|
2985
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2986
|
+
output,
|
|
2987
|
+
parsedBody,
|
|
2988
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
2989
|
+
errorCode,
|
|
3094
2990
|
});
|
|
3095
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3096
2991
|
}
|
|
3097
2992
|
};
|
|
3098
2993
|
const deserializeAws_json1_1CreateUserImportJobCommand = async (output, context) => {
|
|
@@ -3114,7 +3009,6 @@ const deserializeAws_json1_1CreateUserImportJobCommandError = async (output, con
|
|
|
3114
3009
|
...output,
|
|
3115
3010
|
body: await parseBody(output.body, context),
|
|
3116
3011
|
};
|
|
3117
|
-
let response;
|
|
3118
3012
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3119
3013
|
switch (errorCode) {
|
|
3120
3014
|
case "InternalErrorException":
|
|
@@ -3140,14 +3034,12 @@ const deserializeAws_json1_1CreateUserImportJobCommandError = async (output, con
|
|
|
3140
3034
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3141
3035
|
default:
|
|
3142
3036
|
const parsedBody = parsedOutput.body;
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
|
|
3148
|
-
$metadata,
|
|
3037
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3038
|
+
output,
|
|
3039
|
+
parsedBody,
|
|
3040
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
3041
|
+
errorCode,
|
|
3149
3042
|
});
|
|
3150
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3151
3043
|
}
|
|
3152
3044
|
};
|
|
3153
3045
|
const deserializeAws_json1_1CreateUserPoolCommand = async (output, context) => {
|
|
@@ -3169,7 +3061,6 @@ const deserializeAws_json1_1CreateUserPoolCommandError = async (output, context)
|
|
|
3169
3061
|
...output,
|
|
3170
3062
|
body: await parseBody(output.body, context),
|
|
3171
3063
|
};
|
|
3172
|
-
let response;
|
|
3173
3064
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3174
3065
|
switch (errorCode) {
|
|
3175
3066
|
case "InternalErrorException":
|
|
@@ -3201,14 +3092,12 @@ const deserializeAws_json1_1CreateUserPoolCommandError = async (output, context)
|
|
|
3201
3092
|
throw await deserializeAws_json1_1UserPoolTaggingExceptionResponse(parsedOutput, context);
|
|
3202
3093
|
default:
|
|
3203
3094
|
const parsedBody = parsedOutput.body;
|
|
3204
|
-
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
|
|
3208
|
-
|
|
3209
|
-
$metadata,
|
|
3095
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3096
|
+
output,
|
|
3097
|
+
parsedBody,
|
|
3098
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
3099
|
+
errorCode,
|
|
3210
3100
|
});
|
|
3211
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3212
3101
|
}
|
|
3213
3102
|
};
|
|
3214
3103
|
const deserializeAws_json1_1CreateUserPoolClientCommand = async (output, context) => {
|
|
@@ -3230,7 +3119,6 @@ const deserializeAws_json1_1CreateUserPoolClientCommandError = async (output, co
|
|
|
3230
3119
|
...output,
|
|
3231
3120
|
body: await parseBody(output.body, context),
|
|
3232
3121
|
};
|
|
3233
|
-
let response;
|
|
3234
3122
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3235
3123
|
switch (errorCode) {
|
|
3236
3124
|
case "InternalErrorException":
|
|
@@ -3259,14 +3147,12 @@ const deserializeAws_json1_1CreateUserPoolClientCommandError = async (output, co
|
|
|
3259
3147
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3260
3148
|
default:
|
|
3261
3149
|
const parsedBody = parsedOutput.body;
|
|
3262
|
-
|
|
3263
|
-
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
|
|
3267
|
-
$metadata,
|
|
3150
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3151
|
+
output,
|
|
3152
|
+
parsedBody,
|
|
3153
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
3154
|
+
errorCode,
|
|
3268
3155
|
});
|
|
3269
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3270
3156
|
}
|
|
3271
3157
|
};
|
|
3272
3158
|
const deserializeAws_json1_1CreateUserPoolDomainCommand = async (output, context) => {
|
|
@@ -3288,7 +3174,6 @@ const deserializeAws_json1_1CreateUserPoolDomainCommandError = async (output, co
|
|
|
3288
3174
|
...output,
|
|
3289
3175
|
body: await parseBody(output.body, context),
|
|
3290
3176
|
};
|
|
3291
|
-
let response;
|
|
3292
3177
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3293
3178
|
switch (errorCode) {
|
|
3294
3179
|
case "InternalErrorException":
|
|
@@ -3308,14 +3193,12 @@ const deserializeAws_json1_1CreateUserPoolDomainCommandError = async (output, co
|
|
|
3308
3193
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3309
3194
|
default:
|
|
3310
3195
|
const parsedBody = parsedOutput.body;
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
$metadata,
|
|
3196
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3197
|
+
output,
|
|
3198
|
+
parsedBody,
|
|
3199
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
3200
|
+
errorCode,
|
|
3317
3201
|
});
|
|
3318
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3319
3202
|
}
|
|
3320
3203
|
};
|
|
3321
3204
|
const deserializeAws_json1_1DeleteGroupCommand = async (output, context) => {
|
|
@@ -3334,7 +3217,6 @@ const deserializeAws_json1_1DeleteGroupCommandError = async (output, context) =>
|
|
|
3334
3217
|
...output,
|
|
3335
3218
|
body: await parseBody(output.body, context),
|
|
3336
3219
|
};
|
|
3337
|
-
let response;
|
|
3338
3220
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3339
3221
|
switch (errorCode) {
|
|
3340
3222
|
case "InternalErrorException":
|
|
@@ -3354,14 +3236,12 @@ const deserializeAws_json1_1DeleteGroupCommandError = async (output, context) =>
|
|
|
3354
3236
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3355
3237
|
default:
|
|
3356
3238
|
const parsedBody = parsedOutput.body;
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
|
|
3362
|
-
$metadata,
|
|
3239
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3240
|
+
output,
|
|
3241
|
+
parsedBody,
|
|
3242
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
3243
|
+
errorCode,
|
|
3363
3244
|
});
|
|
3364
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3365
3245
|
}
|
|
3366
3246
|
};
|
|
3367
3247
|
const deserializeAws_json1_1DeleteIdentityProviderCommand = async (output, context) => {
|
|
@@ -3380,7 +3260,6 @@ const deserializeAws_json1_1DeleteIdentityProviderCommandError = async (output,
|
|
|
3380
3260
|
...output,
|
|
3381
3261
|
body: await parseBody(output.body, context),
|
|
3382
3262
|
};
|
|
3383
|
-
let response;
|
|
3384
3263
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3385
3264
|
switch (errorCode) {
|
|
3386
3265
|
case "InternalErrorException":
|
|
@@ -3403,14 +3282,12 @@ const deserializeAws_json1_1DeleteIdentityProviderCommandError = async (output,
|
|
|
3403
3282
|
throw await deserializeAws_json1_1UnsupportedIdentityProviderExceptionResponse(parsedOutput, context);
|
|
3404
3283
|
default:
|
|
3405
3284
|
const parsedBody = parsedOutput.body;
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
$metadata,
|
|
3285
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3286
|
+
output,
|
|
3287
|
+
parsedBody,
|
|
3288
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
3289
|
+
errorCode,
|
|
3412
3290
|
});
|
|
3413
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3414
3291
|
}
|
|
3415
3292
|
};
|
|
3416
3293
|
const deserializeAws_json1_1DeleteResourceServerCommand = async (output, context) => {
|
|
@@ -3429,7 +3306,6 @@ const deserializeAws_json1_1DeleteResourceServerCommandError = async (output, co
|
|
|
3429
3306
|
...output,
|
|
3430
3307
|
body: await parseBody(output.body, context),
|
|
3431
3308
|
};
|
|
3432
|
-
let response;
|
|
3433
3309
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3434
3310
|
switch (errorCode) {
|
|
3435
3311
|
case "InternalErrorException":
|
|
@@ -3449,14 +3325,12 @@ const deserializeAws_json1_1DeleteResourceServerCommandError = async (output, co
|
|
|
3449
3325
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3450
3326
|
default:
|
|
3451
3327
|
const parsedBody = parsedOutput.body;
|
|
3452
|
-
|
|
3453
|
-
|
|
3454
|
-
|
|
3455
|
-
|
|
3456
|
-
|
|
3457
|
-
$metadata,
|
|
3328
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3329
|
+
output,
|
|
3330
|
+
parsedBody,
|
|
3331
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
3332
|
+
errorCode,
|
|
3458
3333
|
});
|
|
3459
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3460
3334
|
}
|
|
3461
3335
|
};
|
|
3462
3336
|
const deserializeAws_json1_1DeleteUserCommand = async (output, context) => {
|
|
@@ -3475,7 +3349,6 @@ const deserializeAws_json1_1DeleteUserCommandError = async (output, context) =>
|
|
|
3475
3349
|
...output,
|
|
3476
3350
|
body: await parseBody(output.body, context),
|
|
3477
3351
|
};
|
|
3478
|
-
let response;
|
|
3479
3352
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3480
3353
|
switch (errorCode) {
|
|
3481
3354
|
case "InternalErrorException":
|
|
@@ -3504,14 +3377,12 @@ const deserializeAws_json1_1DeleteUserCommandError = async (output, context) =>
|
|
|
3504
3377
|
throw await deserializeAws_json1_1UserNotFoundExceptionResponse(parsedOutput, context);
|
|
3505
3378
|
default:
|
|
3506
3379
|
const parsedBody = parsedOutput.body;
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
-
|
|
3510
|
-
|
|
3511
|
-
|
|
3512
|
-
$metadata,
|
|
3380
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3381
|
+
output,
|
|
3382
|
+
parsedBody,
|
|
3383
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
3384
|
+
errorCode,
|
|
3513
3385
|
});
|
|
3514
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3515
3386
|
}
|
|
3516
3387
|
};
|
|
3517
3388
|
const deserializeAws_json1_1DeleteUserAttributesCommand = async (output, context) => {
|
|
@@ -3533,7 +3404,6 @@ const deserializeAws_json1_1DeleteUserAttributesCommandError = async (output, co
|
|
|
3533
3404
|
...output,
|
|
3534
3405
|
body: await parseBody(output.body, context),
|
|
3535
3406
|
};
|
|
3536
|
-
let response;
|
|
3537
3407
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3538
3408
|
switch (errorCode) {
|
|
3539
3409
|
case "InternalErrorException":
|
|
@@ -3562,14 +3432,12 @@ const deserializeAws_json1_1DeleteUserAttributesCommandError = async (output, co
|
|
|
3562
3432
|
throw await deserializeAws_json1_1UserNotFoundExceptionResponse(parsedOutput, context);
|
|
3563
3433
|
default:
|
|
3564
3434
|
const parsedBody = parsedOutput.body;
|
|
3565
|
-
|
|
3566
|
-
|
|
3567
|
-
|
|
3568
|
-
|
|
3569
|
-
|
|
3570
|
-
$metadata,
|
|
3435
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3436
|
+
output,
|
|
3437
|
+
parsedBody,
|
|
3438
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
3439
|
+
errorCode,
|
|
3571
3440
|
});
|
|
3572
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3573
3441
|
}
|
|
3574
3442
|
};
|
|
3575
3443
|
const deserializeAws_json1_1DeleteUserPoolCommand = async (output, context) => {
|
|
@@ -3588,7 +3456,6 @@ const deserializeAws_json1_1DeleteUserPoolCommandError = async (output, context)
|
|
|
3588
3456
|
...output,
|
|
3589
3457
|
body: await parseBody(output.body, context),
|
|
3590
3458
|
};
|
|
3591
|
-
let response;
|
|
3592
3459
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3593
3460
|
switch (errorCode) {
|
|
3594
3461
|
case "InternalErrorException":
|
|
@@ -3611,14 +3478,12 @@ const deserializeAws_json1_1DeleteUserPoolCommandError = async (output, context)
|
|
|
3611
3478
|
throw await deserializeAws_json1_1UserImportInProgressExceptionResponse(parsedOutput, context);
|
|
3612
3479
|
default:
|
|
3613
3480
|
const parsedBody = parsedOutput.body;
|
|
3614
|
-
|
|
3615
|
-
|
|
3616
|
-
|
|
3617
|
-
|
|
3618
|
-
|
|
3619
|
-
$metadata,
|
|
3481
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3482
|
+
output,
|
|
3483
|
+
parsedBody,
|
|
3484
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
3485
|
+
errorCode,
|
|
3620
3486
|
});
|
|
3621
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3622
3487
|
}
|
|
3623
3488
|
};
|
|
3624
3489
|
const deserializeAws_json1_1DeleteUserPoolClientCommand = async (output, context) => {
|
|
@@ -3637,7 +3502,6 @@ const deserializeAws_json1_1DeleteUserPoolClientCommandError = async (output, co
|
|
|
3637
3502
|
...output,
|
|
3638
3503
|
body: await parseBody(output.body, context),
|
|
3639
3504
|
};
|
|
3640
|
-
let response;
|
|
3641
3505
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3642
3506
|
switch (errorCode) {
|
|
3643
3507
|
case "InternalErrorException":
|
|
@@ -3657,14 +3521,12 @@ const deserializeAws_json1_1DeleteUserPoolClientCommandError = async (output, co
|
|
|
3657
3521
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3658
3522
|
default:
|
|
3659
3523
|
const parsedBody = parsedOutput.body;
|
|
3660
|
-
|
|
3661
|
-
|
|
3662
|
-
|
|
3663
|
-
|
|
3664
|
-
|
|
3665
|
-
$metadata,
|
|
3524
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3525
|
+
output,
|
|
3526
|
+
parsedBody,
|
|
3527
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
3528
|
+
errorCode,
|
|
3666
3529
|
});
|
|
3667
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3668
3530
|
}
|
|
3669
3531
|
};
|
|
3670
3532
|
const deserializeAws_json1_1DeleteUserPoolDomainCommand = async (output, context) => {
|
|
@@ -3686,7 +3548,6 @@ const deserializeAws_json1_1DeleteUserPoolDomainCommandError = async (output, co
|
|
|
3686
3548
|
...output,
|
|
3687
3549
|
body: await parseBody(output.body, context),
|
|
3688
3550
|
};
|
|
3689
|
-
let response;
|
|
3690
3551
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3691
3552
|
switch (errorCode) {
|
|
3692
3553
|
case "InternalErrorException":
|
|
@@ -3703,14 +3564,12 @@ const deserializeAws_json1_1DeleteUserPoolDomainCommandError = async (output, co
|
|
|
3703
3564
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3704
3565
|
default:
|
|
3705
3566
|
const parsedBody = parsedOutput.body;
|
|
3706
|
-
|
|
3707
|
-
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
$metadata,
|
|
3567
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3568
|
+
output,
|
|
3569
|
+
parsedBody,
|
|
3570
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
3571
|
+
errorCode,
|
|
3712
3572
|
});
|
|
3713
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3714
3573
|
}
|
|
3715
3574
|
};
|
|
3716
3575
|
const deserializeAws_json1_1DescribeIdentityProviderCommand = async (output, context) => {
|
|
@@ -3732,7 +3591,6 @@ const deserializeAws_json1_1DescribeIdentityProviderCommandError = async (output
|
|
|
3732
3591
|
...output,
|
|
3733
3592
|
body: await parseBody(output.body, context),
|
|
3734
3593
|
};
|
|
3735
|
-
let response;
|
|
3736
3594
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3737
3595
|
switch (errorCode) {
|
|
3738
3596
|
case "InternalErrorException":
|
|
@@ -3752,14 +3610,12 @@ const deserializeAws_json1_1DescribeIdentityProviderCommandError = async (output
|
|
|
3752
3610
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3753
3611
|
default:
|
|
3754
3612
|
const parsedBody = parsedOutput.body;
|
|
3755
|
-
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
|
|
3759
|
-
|
|
3760
|
-
$metadata,
|
|
3613
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3614
|
+
output,
|
|
3615
|
+
parsedBody,
|
|
3616
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
3617
|
+
errorCode,
|
|
3761
3618
|
});
|
|
3762
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3763
3619
|
}
|
|
3764
3620
|
};
|
|
3765
3621
|
const deserializeAws_json1_1DescribeResourceServerCommand = async (output, context) => {
|
|
@@ -3781,7 +3637,6 @@ const deserializeAws_json1_1DescribeResourceServerCommandError = async (output,
|
|
|
3781
3637
|
...output,
|
|
3782
3638
|
body: await parseBody(output.body, context),
|
|
3783
3639
|
};
|
|
3784
|
-
let response;
|
|
3785
3640
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3786
3641
|
switch (errorCode) {
|
|
3787
3642
|
case "InternalErrorException":
|
|
@@ -3801,14 +3656,12 @@ const deserializeAws_json1_1DescribeResourceServerCommandError = async (output,
|
|
|
3801
3656
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3802
3657
|
default:
|
|
3803
3658
|
const parsedBody = parsedOutput.body;
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
$metadata,
|
|
3659
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3660
|
+
output,
|
|
3661
|
+
parsedBody,
|
|
3662
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
3663
|
+
errorCode,
|
|
3810
3664
|
});
|
|
3811
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3812
3665
|
}
|
|
3813
3666
|
};
|
|
3814
3667
|
const deserializeAws_json1_1DescribeRiskConfigurationCommand = async (output, context) => {
|
|
@@ -3830,7 +3683,6 @@ const deserializeAws_json1_1DescribeRiskConfigurationCommandError = async (outpu
|
|
|
3830
3683
|
...output,
|
|
3831
3684
|
body: await parseBody(output.body, context),
|
|
3832
3685
|
};
|
|
3833
|
-
let response;
|
|
3834
3686
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3835
3687
|
switch (errorCode) {
|
|
3836
3688
|
case "InternalErrorException":
|
|
@@ -3853,14 +3705,12 @@ const deserializeAws_json1_1DescribeRiskConfigurationCommandError = async (outpu
|
|
|
3853
3705
|
throw await deserializeAws_json1_1UserPoolAddOnNotEnabledExceptionResponse(parsedOutput, context);
|
|
3854
3706
|
default:
|
|
3855
3707
|
const parsedBody = parsedOutput.body;
|
|
3856
|
-
|
|
3857
|
-
|
|
3858
|
-
|
|
3859
|
-
|
|
3860
|
-
|
|
3861
|
-
$metadata,
|
|
3708
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3709
|
+
output,
|
|
3710
|
+
parsedBody,
|
|
3711
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
3712
|
+
errorCode,
|
|
3862
3713
|
});
|
|
3863
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3864
3714
|
}
|
|
3865
3715
|
};
|
|
3866
3716
|
const deserializeAws_json1_1DescribeUserImportJobCommand = async (output, context) => {
|
|
@@ -3882,7 +3732,6 @@ const deserializeAws_json1_1DescribeUserImportJobCommandError = async (output, c
|
|
|
3882
3732
|
...output,
|
|
3883
3733
|
body: await parseBody(output.body, context),
|
|
3884
3734
|
};
|
|
3885
|
-
let response;
|
|
3886
3735
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3887
3736
|
switch (errorCode) {
|
|
3888
3737
|
case "InternalErrorException":
|
|
@@ -3902,14 +3751,12 @@ const deserializeAws_json1_1DescribeUserImportJobCommandError = async (output, c
|
|
|
3902
3751
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3903
3752
|
default:
|
|
3904
3753
|
const parsedBody = parsedOutput.body;
|
|
3905
|
-
|
|
3906
|
-
|
|
3907
|
-
|
|
3908
|
-
|
|
3909
|
-
|
|
3910
|
-
$metadata,
|
|
3754
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3755
|
+
output,
|
|
3756
|
+
parsedBody,
|
|
3757
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
3758
|
+
errorCode,
|
|
3911
3759
|
});
|
|
3912
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3913
3760
|
}
|
|
3914
3761
|
};
|
|
3915
3762
|
const deserializeAws_json1_1DescribeUserPoolCommand = async (output, context) => {
|
|
@@ -3931,7 +3778,6 @@ const deserializeAws_json1_1DescribeUserPoolCommandError = async (output, contex
|
|
|
3931
3778
|
...output,
|
|
3932
3779
|
body: await parseBody(output.body, context),
|
|
3933
3780
|
};
|
|
3934
|
-
let response;
|
|
3935
3781
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3936
3782
|
switch (errorCode) {
|
|
3937
3783
|
case "InternalErrorException":
|
|
@@ -3954,14 +3800,12 @@ const deserializeAws_json1_1DescribeUserPoolCommandError = async (output, contex
|
|
|
3954
3800
|
throw await deserializeAws_json1_1UserPoolTaggingExceptionResponse(parsedOutput, context);
|
|
3955
3801
|
default:
|
|
3956
3802
|
const parsedBody = parsedOutput.body;
|
|
3957
|
-
|
|
3958
|
-
|
|
3959
|
-
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
$metadata,
|
|
3803
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3804
|
+
output,
|
|
3805
|
+
parsedBody,
|
|
3806
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
3807
|
+
errorCode,
|
|
3963
3808
|
});
|
|
3964
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3965
3809
|
}
|
|
3966
3810
|
};
|
|
3967
3811
|
const deserializeAws_json1_1DescribeUserPoolClientCommand = async (output, context) => {
|
|
@@ -3983,7 +3827,6 @@ const deserializeAws_json1_1DescribeUserPoolClientCommandError = async (output,
|
|
|
3983
3827
|
...output,
|
|
3984
3828
|
body: await parseBody(output.body, context),
|
|
3985
3829
|
};
|
|
3986
|
-
let response;
|
|
3987
3830
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3988
3831
|
switch (errorCode) {
|
|
3989
3832
|
case "InternalErrorException":
|
|
@@ -4003,14 +3846,12 @@ const deserializeAws_json1_1DescribeUserPoolClientCommandError = async (output,
|
|
|
4003
3846
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4004
3847
|
default:
|
|
4005
3848
|
const parsedBody = parsedOutput.body;
|
|
4006
|
-
|
|
4007
|
-
|
|
4008
|
-
|
|
4009
|
-
|
|
4010
|
-
|
|
4011
|
-
$metadata,
|
|
3849
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3850
|
+
output,
|
|
3851
|
+
parsedBody,
|
|
3852
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
3853
|
+
errorCode,
|
|
4012
3854
|
});
|
|
4013
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4014
3855
|
}
|
|
4015
3856
|
};
|
|
4016
3857
|
const deserializeAws_json1_1DescribeUserPoolDomainCommand = async (output, context) => {
|
|
@@ -4032,7 +3873,6 @@ const deserializeAws_json1_1DescribeUserPoolDomainCommandError = async (output,
|
|
|
4032
3873
|
...output,
|
|
4033
3874
|
body: await parseBody(output.body, context),
|
|
4034
3875
|
};
|
|
4035
|
-
let response;
|
|
4036
3876
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4037
3877
|
switch (errorCode) {
|
|
4038
3878
|
case "InternalErrorException":
|
|
@@ -4049,14 +3889,12 @@ const deserializeAws_json1_1DescribeUserPoolDomainCommandError = async (output,
|
|
|
4049
3889
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
4050
3890
|
default:
|
|
4051
3891
|
const parsedBody = parsedOutput.body;
|
|
4052
|
-
|
|
4053
|
-
|
|
4054
|
-
|
|
4055
|
-
|
|
4056
|
-
|
|
4057
|
-
$metadata,
|
|
3892
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3893
|
+
output,
|
|
3894
|
+
parsedBody,
|
|
3895
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
3896
|
+
errorCode,
|
|
4058
3897
|
});
|
|
4059
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4060
3898
|
}
|
|
4061
3899
|
};
|
|
4062
3900
|
const deserializeAws_json1_1ForgetDeviceCommand = async (output, context) => {
|
|
@@ -4075,7 +3913,6 @@ const deserializeAws_json1_1ForgetDeviceCommandError = async (output, context) =
|
|
|
4075
3913
|
...output,
|
|
4076
3914
|
body: await parseBody(output.body, context),
|
|
4077
3915
|
};
|
|
4078
|
-
let response;
|
|
4079
3916
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4080
3917
|
switch (errorCode) {
|
|
4081
3918
|
case "InternalErrorException":
|
|
@@ -4107,14 +3944,12 @@ const deserializeAws_json1_1ForgetDeviceCommandError = async (output, context) =
|
|
|
4107
3944
|
throw await deserializeAws_json1_1UserNotFoundExceptionResponse(parsedOutput, context);
|
|
4108
3945
|
default:
|
|
4109
3946
|
const parsedBody = parsedOutput.body;
|
|
4110
|
-
|
|
4111
|
-
|
|
4112
|
-
|
|
4113
|
-
|
|
4114
|
-
|
|
4115
|
-
$metadata,
|
|
3947
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3948
|
+
output,
|
|
3949
|
+
parsedBody,
|
|
3950
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
3951
|
+
errorCode,
|
|
4116
3952
|
});
|
|
4117
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4118
3953
|
}
|
|
4119
3954
|
};
|
|
4120
3955
|
const deserializeAws_json1_1ForgotPasswordCommand = async (output, context) => {
|
|
@@ -4136,7 +3971,6 @@ const deserializeAws_json1_1ForgotPasswordCommandError = async (output, context)
|
|
|
4136
3971
|
...output,
|
|
4137
3972
|
body: await parseBody(output.body, context),
|
|
4138
3973
|
};
|
|
4139
|
-
let response;
|
|
4140
3974
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4141
3975
|
switch (errorCode) {
|
|
4142
3976
|
case "CodeDeliveryFailureException":
|
|
@@ -4183,14 +4017,12 @@ const deserializeAws_json1_1ForgotPasswordCommandError = async (output, context)
|
|
|
4183
4017
|
throw await deserializeAws_json1_1UserNotFoundExceptionResponse(parsedOutput, context);
|
|
4184
4018
|
default:
|
|
4185
4019
|
const parsedBody = parsedOutput.body;
|
|
4186
|
-
|
|
4187
|
-
|
|
4188
|
-
|
|
4189
|
-
|
|
4190
|
-
|
|
4191
|
-
$metadata,
|
|
4020
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4021
|
+
output,
|
|
4022
|
+
parsedBody,
|
|
4023
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
4024
|
+
errorCode,
|
|
4192
4025
|
});
|
|
4193
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4194
4026
|
}
|
|
4195
4027
|
};
|
|
4196
4028
|
const deserializeAws_json1_1GetCSVHeaderCommand = async (output, context) => {
|
|
@@ -4212,7 +4044,6 @@ const deserializeAws_json1_1GetCSVHeaderCommandError = async (output, context) =
|
|
|
4212
4044
|
...output,
|
|
4213
4045
|
body: await parseBody(output.body, context),
|
|
4214
4046
|
};
|
|
4215
|
-
let response;
|
|
4216
4047
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4217
4048
|
switch (errorCode) {
|
|
4218
4049
|
case "InternalErrorException":
|
|
@@ -4232,14 +4063,12 @@ const deserializeAws_json1_1GetCSVHeaderCommandError = async (output, context) =
|
|
|
4232
4063
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4233
4064
|
default:
|
|
4234
4065
|
const parsedBody = parsedOutput.body;
|
|
4235
|
-
|
|
4236
|
-
|
|
4237
|
-
|
|
4238
|
-
|
|
4239
|
-
|
|
4240
|
-
$metadata,
|
|
4066
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4067
|
+
output,
|
|
4068
|
+
parsedBody,
|
|
4069
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
4070
|
+
errorCode,
|
|
4241
4071
|
});
|
|
4242
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4243
4072
|
}
|
|
4244
4073
|
};
|
|
4245
4074
|
const deserializeAws_json1_1GetDeviceCommand = async (output, context) => {
|
|
@@ -4261,7 +4090,6 @@ const deserializeAws_json1_1GetDeviceCommandError = async (output, context) => {
|
|
|
4261
4090
|
...output,
|
|
4262
4091
|
body: await parseBody(output.body, context),
|
|
4263
4092
|
};
|
|
4264
|
-
let response;
|
|
4265
4093
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4266
4094
|
switch (errorCode) {
|
|
4267
4095
|
case "InternalErrorException":
|
|
@@ -4293,14 +4121,12 @@ const deserializeAws_json1_1GetDeviceCommandError = async (output, context) => {
|
|
|
4293
4121
|
throw await deserializeAws_json1_1UserNotFoundExceptionResponse(parsedOutput, context);
|
|
4294
4122
|
default:
|
|
4295
4123
|
const parsedBody = parsedOutput.body;
|
|
4296
|
-
|
|
4297
|
-
|
|
4298
|
-
|
|
4299
|
-
|
|
4300
|
-
|
|
4301
|
-
$metadata,
|
|
4124
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4125
|
+
output,
|
|
4126
|
+
parsedBody,
|
|
4127
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
4128
|
+
errorCode,
|
|
4302
4129
|
});
|
|
4303
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4304
4130
|
}
|
|
4305
4131
|
};
|
|
4306
4132
|
const deserializeAws_json1_1GetGroupCommand = async (output, context) => {
|
|
@@ -4322,7 +4148,6 @@ const deserializeAws_json1_1GetGroupCommandError = async (output, context) => {
|
|
|
4322
4148
|
...output,
|
|
4323
4149
|
body: await parseBody(output.body, context),
|
|
4324
4150
|
};
|
|
4325
|
-
let response;
|
|
4326
4151
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4327
4152
|
switch (errorCode) {
|
|
4328
4153
|
case "InternalErrorException":
|
|
@@ -4342,14 +4167,12 @@ const deserializeAws_json1_1GetGroupCommandError = async (output, context) => {
|
|
|
4342
4167
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4343
4168
|
default:
|
|
4344
4169
|
const parsedBody = parsedOutput.body;
|
|
4345
|
-
|
|
4346
|
-
|
|
4347
|
-
|
|
4348
|
-
|
|
4349
|
-
|
|
4350
|
-
$metadata,
|
|
4170
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4171
|
+
output,
|
|
4172
|
+
parsedBody,
|
|
4173
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
4174
|
+
errorCode,
|
|
4351
4175
|
});
|
|
4352
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4353
4176
|
}
|
|
4354
4177
|
};
|
|
4355
4178
|
const deserializeAws_json1_1GetIdentityProviderByIdentifierCommand = async (output, context) => {
|
|
@@ -4371,7 +4194,6 @@ const deserializeAws_json1_1GetIdentityProviderByIdentifierCommandError = async
|
|
|
4371
4194
|
...output,
|
|
4372
4195
|
body: await parseBody(output.body, context),
|
|
4373
4196
|
};
|
|
4374
|
-
let response;
|
|
4375
4197
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4376
4198
|
switch (errorCode) {
|
|
4377
4199
|
case "InternalErrorException":
|
|
@@ -4391,14 +4213,12 @@ const deserializeAws_json1_1GetIdentityProviderByIdentifierCommandError = async
|
|
|
4391
4213
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4392
4214
|
default:
|
|
4393
4215
|
const parsedBody = parsedOutput.body;
|
|
4394
|
-
|
|
4395
|
-
|
|
4396
|
-
|
|
4397
|
-
|
|
4398
|
-
|
|
4399
|
-
$metadata,
|
|
4216
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4217
|
+
output,
|
|
4218
|
+
parsedBody,
|
|
4219
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
4220
|
+
errorCode,
|
|
4400
4221
|
});
|
|
4401
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4402
4222
|
}
|
|
4403
4223
|
};
|
|
4404
4224
|
const deserializeAws_json1_1GetSigningCertificateCommand = async (output, context) => {
|
|
@@ -4420,7 +4240,6 @@ const deserializeAws_json1_1GetSigningCertificateCommandError = async (output, c
|
|
|
4420
4240
|
...output,
|
|
4421
4241
|
body: await parseBody(output.body, context),
|
|
4422
4242
|
};
|
|
4423
|
-
let response;
|
|
4424
4243
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4425
4244
|
switch (errorCode) {
|
|
4426
4245
|
case "InternalErrorException":
|
|
@@ -4434,14 +4253,12 @@ const deserializeAws_json1_1GetSigningCertificateCommandError = async (output, c
|
|
|
4434
4253
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
4435
4254
|
default:
|
|
4436
4255
|
const parsedBody = parsedOutput.body;
|
|
4437
|
-
|
|
4438
|
-
|
|
4439
|
-
|
|
4440
|
-
|
|
4441
|
-
|
|
4442
|
-
$metadata,
|
|
4256
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4257
|
+
output,
|
|
4258
|
+
parsedBody,
|
|
4259
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
4260
|
+
errorCode,
|
|
4443
4261
|
});
|
|
4444
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4445
4262
|
}
|
|
4446
4263
|
};
|
|
4447
4264
|
const deserializeAws_json1_1GetUICustomizationCommand = async (output, context) => {
|
|
@@ -4463,7 +4280,6 @@ const deserializeAws_json1_1GetUICustomizationCommandError = async (output, cont
|
|
|
4463
4280
|
...output,
|
|
4464
4281
|
body: await parseBody(output.body, context),
|
|
4465
4282
|
};
|
|
4466
|
-
let response;
|
|
4467
4283
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4468
4284
|
switch (errorCode) {
|
|
4469
4285
|
case "InternalErrorException":
|
|
@@ -4483,14 +4299,12 @@ const deserializeAws_json1_1GetUICustomizationCommandError = async (output, cont
|
|
|
4483
4299
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4484
4300
|
default:
|
|
4485
4301
|
const parsedBody = parsedOutput.body;
|
|
4486
|
-
|
|
4487
|
-
|
|
4488
|
-
|
|
4489
|
-
|
|
4490
|
-
|
|
4491
|
-
$metadata,
|
|
4302
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4303
|
+
output,
|
|
4304
|
+
parsedBody,
|
|
4305
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
4306
|
+
errorCode,
|
|
4492
4307
|
});
|
|
4493
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4494
4308
|
}
|
|
4495
4309
|
};
|
|
4496
4310
|
const deserializeAws_json1_1GetUserCommand = async (output, context) => {
|
|
@@ -4512,7 +4326,6 @@ const deserializeAws_json1_1GetUserCommandError = async (output, context) => {
|
|
|
4512
4326
|
...output,
|
|
4513
4327
|
body: await parseBody(output.body, context),
|
|
4514
4328
|
};
|
|
4515
|
-
let response;
|
|
4516
4329
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4517
4330
|
switch (errorCode) {
|
|
4518
4331
|
case "InternalErrorException":
|
|
@@ -4541,14 +4354,12 @@ const deserializeAws_json1_1GetUserCommandError = async (output, context) => {
|
|
|
4541
4354
|
throw await deserializeAws_json1_1UserNotFoundExceptionResponse(parsedOutput, context);
|
|
4542
4355
|
default:
|
|
4543
4356
|
const parsedBody = parsedOutput.body;
|
|
4544
|
-
|
|
4545
|
-
|
|
4546
|
-
|
|
4547
|
-
|
|
4548
|
-
|
|
4549
|
-
$metadata,
|
|
4357
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4358
|
+
output,
|
|
4359
|
+
parsedBody,
|
|
4360
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
4361
|
+
errorCode,
|
|
4550
4362
|
});
|
|
4551
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4552
4363
|
}
|
|
4553
4364
|
};
|
|
4554
4365
|
const deserializeAws_json1_1GetUserAttributeVerificationCodeCommand = async (output, context) => {
|
|
@@ -4570,7 +4381,6 @@ const deserializeAws_json1_1GetUserAttributeVerificationCodeCommandError = async
|
|
|
4570
4381
|
...output,
|
|
4571
4382
|
body: await parseBody(output.body, context),
|
|
4572
4383
|
};
|
|
4573
|
-
let response;
|
|
4574
4384
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4575
4385
|
switch (errorCode) {
|
|
4576
4386
|
case "CodeDeliveryFailureException":
|
|
@@ -4623,14 +4433,12 @@ const deserializeAws_json1_1GetUserAttributeVerificationCodeCommandError = async
|
|
|
4623
4433
|
throw await deserializeAws_json1_1UserNotFoundExceptionResponse(parsedOutput, context);
|
|
4624
4434
|
default:
|
|
4625
4435
|
const parsedBody = parsedOutput.body;
|
|
4626
|
-
|
|
4627
|
-
|
|
4628
|
-
|
|
4629
|
-
|
|
4630
|
-
|
|
4631
|
-
$metadata,
|
|
4436
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4437
|
+
output,
|
|
4438
|
+
parsedBody,
|
|
4439
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
4440
|
+
errorCode,
|
|
4632
4441
|
});
|
|
4633
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4634
4442
|
}
|
|
4635
4443
|
};
|
|
4636
4444
|
const deserializeAws_json1_1GetUserPoolMfaConfigCommand = async (output, context) => {
|
|
@@ -4652,7 +4460,6 @@ const deserializeAws_json1_1GetUserPoolMfaConfigCommandError = async (output, co
|
|
|
4652
4460
|
...output,
|
|
4653
4461
|
body: await parseBody(output.body, context),
|
|
4654
4462
|
};
|
|
4655
|
-
let response;
|
|
4656
4463
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4657
4464
|
switch (errorCode) {
|
|
4658
4465
|
case "InternalErrorException":
|
|
@@ -4672,14 +4479,12 @@ const deserializeAws_json1_1GetUserPoolMfaConfigCommandError = async (output, co
|
|
|
4672
4479
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4673
4480
|
default:
|
|
4674
4481
|
const parsedBody = parsedOutput.body;
|
|
4675
|
-
|
|
4676
|
-
|
|
4677
|
-
|
|
4678
|
-
|
|
4679
|
-
|
|
4680
|
-
$metadata,
|
|
4482
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4483
|
+
output,
|
|
4484
|
+
parsedBody,
|
|
4485
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
4486
|
+
errorCode,
|
|
4681
4487
|
});
|
|
4682
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4683
4488
|
}
|
|
4684
4489
|
};
|
|
4685
4490
|
const deserializeAws_json1_1GlobalSignOutCommand = async (output, context) => {
|
|
@@ -4701,7 +4506,6 @@ const deserializeAws_json1_1GlobalSignOutCommandError = async (output, context)
|
|
|
4701
4506
|
...output,
|
|
4702
4507
|
body: await parseBody(output.body, context),
|
|
4703
4508
|
};
|
|
4704
|
-
let response;
|
|
4705
4509
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4706
4510
|
switch (errorCode) {
|
|
4707
4511
|
case "InternalErrorException":
|
|
@@ -4727,14 +4531,12 @@ const deserializeAws_json1_1GlobalSignOutCommandError = async (output, context)
|
|
|
4727
4531
|
throw await deserializeAws_json1_1UserNotConfirmedExceptionResponse(parsedOutput, context);
|
|
4728
4532
|
default:
|
|
4729
4533
|
const parsedBody = parsedOutput.body;
|
|
4730
|
-
|
|
4731
|
-
|
|
4732
|
-
|
|
4733
|
-
|
|
4734
|
-
|
|
4735
|
-
$metadata,
|
|
4534
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4535
|
+
output,
|
|
4536
|
+
parsedBody,
|
|
4537
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
4538
|
+
errorCode,
|
|
4736
4539
|
});
|
|
4737
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4738
4540
|
}
|
|
4739
4541
|
};
|
|
4740
4542
|
const deserializeAws_json1_1InitiateAuthCommand = async (output, context) => {
|
|
@@ -4756,7 +4558,6 @@ const deserializeAws_json1_1InitiateAuthCommandError = async (output, context) =
|
|
|
4756
4558
|
...output,
|
|
4757
4559
|
body: await parseBody(output.body, context),
|
|
4758
4560
|
};
|
|
4759
|
-
let response;
|
|
4760
4561
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4761
4562
|
switch (errorCode) {
|
|
4762
4563
|
case "InternalErrorException":
|
|
@@ -4803,14 +4604,12 @@ const deserializeAws_json1_1InitiateAuthCommandError = async (output, context) =
|
|
|
4803
4604
|
throw await deserializeAws_json1_1UserNotFoundExceptionResponse(parsedOutput, context);
|
|
4804
4605
|
default:
|
|
4805
4606
|
const parsedBody = parsedOutput.body;
|
|
4806
|
-
|
|
4807
|
-
|
|
4808
|
-
|
|
4809
|
-
|
|
4810
|
-
|
|
4811
|
-
$metadata,
|
|
4607
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4608
|
+
output,
|
|
4609
|
+
parsedBody,
|
|
4610
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
4611
|
+
errorCode,
|
|
4812
4612
|
});
|
|
4813
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4814
4613
|
}
|
|
4815
4614
|
};
|
|
4816
4615
|
const deserializeAws_json1_1ListDevicesCommand = async (output, context) => {
|
|
@@ -4832,7 +4631,6 @@ const deserializeAws_json1_1ListDevicesCommandError = async (output, context) =>
|
|
|
4832
4631
|
...output,
|
|
4833
4632
|
body: await parseBody(output.body, context),
|
|
4834
4633
|
};
|
|
4835
|
-
let response;
|
|
4836
4634
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4837
4635
|
switch (errorCode) {
|
|
4838
4636
|
case "InternalErrorException":
|
|
@@ -4864,14 +4662,12 @@ const deserializeAws_json1_1ListDevicesCommandError = async (output, context) =>
|
|
|
4864
4662
|
throw await deserializeAws_json1_1UserNotFoundExceptionResponse(parsedOutput, context);
|
|
4865
4663
|
default:
|
|
4866
4664
|
const parsedBody = parsedOutput.body;
|
|
4867
|
-
|
|
4868
|
-
|
|
4869
|
-
|
|
4870
|
-
|
|
4871
|
-
|
|
4872
|
-
$metadata,
|
|
4665
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4666
|
+
output,
|
|
4667
|
+
parsedBody,
|
|
4668
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
4669
|
+
errorCode,
|
|
4873
4670
|
});
|
|
4874
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4875
4671
|
}
|
|
4876
4672
|
};
|
|
4877
4673
|
const deserializeAws_json1_1ListGroupsCommand = async (output, context) => {
|
|
@@ -4893,7 +4689,6 @@ const deserializeAws_json1_1ListGroupsCommandError = async (output, context) =>
|
|
|
4893
4689
|
...output,
|
|
4894
4690
|
body: await parseBody(output.body, context),
|
|
4895
4691
|
};
|
|
4896
|
-
let response;
|
|
4897
4692
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4898
4693
|
switch (errorCode) {
|
|
4899
4694
|
case "InternalErrorException":
|
|
@@ -4913,14 +4708,12 @@ const deserializeAws_json1_1ListGroupsCommandError = async (output, context) =>
|
|
|
4913
4708
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4914
4709
|
default:
|
|
4915
4710
|
const parsedBody = parsedOutput.body;
|
|
4916
|
-
|
|
4917
|
-
|
|
4918
|
-
|
|
4919
|
-
|
|
4920
|
-
|
|
4921
|
-
$metadata,
|
|
4711
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4712
|
+
output,
|
|
4713
|
+
parsedBody,
|
|
4714
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
4715
|
+
errorCode,
|
|
4922
4716
|
});
|
|
4923
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4924
4717
|
}
|
|
4925
4718
|
};
|
|
4926
4719
|
const deserializeAws_json1_1ListIdentityProvidersCommand = async (output, context) => {
|
|
@@ -4942,7 +4735,6 @@ const deserializeAws_json1_1ListIdentityProvidersCommandError = async (output, c
|
|
|
4942
4735
|
...output,
|
|
4943
4736
|
body: await parseBody(output.body, context),
|
|
4944
4737
|
};
|
|
4945
|
-
let response;
|
|
4946
4738
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4947
4739
|
switch (errorCode) {
|
|
4948
4740
|
case "InternalErrorException":
|
|
@@ -4962,14 +4754,12 @@ const deserializeAws_json1_1ListIdentityProvidersCommandError = async (output, c
|
|
|
4962
4754
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4963
4755
|
default:
|
|
4964
4756
|
const parsedBody = parsedOutput.body;
|
|
4965
|
-
|
|
4966
|
-
|
|
4967
|
-
|
|
4968
|
-
|
|
4969
|
-
|
|
4970
|
-
$metadata,
|
|
4757
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4758
|
+
output,
|
|
4759
|
+
parsedBody,
|
|
4760
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
4761
|
+
errorCode,
|
|
4971
4762
|
});
|
|
4972
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4973
4763
|
}
|
|
4974
4764
|
};
|
|
4975
4765
|
const deserializeAws_json1_1ListResourceServersCommand = async (output, context) => {
|
|
@@ -4991,7 +4781,6 @@ const deserializeAws_json1_1ListResourceServersCommandError = async (output, con
|
|
|
4991
4781
|
...output,
|
|
4992
4782
|
body: await parseBody(output.body, context),
|
|
4993
4783
|
};
|
|
4994
|
-
let response;
|
|
4995
4784
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4996
4785
|
switch (errorCode) {
|
|
4997
4786
|
case "InternalErrorException":
|
|
@@ -5011,14 +4800,12 @@ const deserializeAws_json1_1ListResourceServersCommandError = async (output, con
|
|
|
5011
4800
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
5012
4801
|
default:
|
|
5013
4802
|
const parsedBody = parsedOutput.body;
|
|
5014
|
-
|
|
5015
|
-
|
|
5016
|
-
|
|
5017
|
-
|
|
5018
|
-
|
|
5019
|
-
$metadata,
|
|
4803
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4804
|
+
output,
|
|
4805
|
+
parsedBody,
|
|
4806
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
4807
|
+
errorCode,
|
|
5020
4808
|
});
|
|
5021
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5022
4809
|
}
|
|
5023
4810
|
};
|
|
5024
4811
|
const deserializeAws_json1_1ListTagsForResourceCommand = async (output, context) => {
|
|
@@ -5040,7 +4827,6 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
5040
4827
|
...output,
|
|
5041
4828
|
body: await parseBody(output.body, context),
|
|
5042
4829
|
};
|
|
5043
|
-
let response;
|
|
5044
4830
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5045
4831
|
switch (errorCode) {
|
|
5046
4832
|
case "InternalErrorException":
|
|
@@ -5060,14 +4846,12 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
5060
4846
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
5061
4847
|
default:
|
|
5062
4848
|
const parsedBody = parsedOutput.body;
|
|
5063
|
-
|
|
5064
|
-
|
|
5065
|
-
|
|
5066
|
-
|
|
5067
|
-
|
|
5068
|
-
$metadata,
|
|
4849
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4850
|
+
output,
|
|
4851
|
+
parsedBody,
|
|
4852
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
4853
|
+
errorCode,
|
|
5069
4854
|
});
|
|
5070
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5071
4855
|
}
|
|
5072
4856
|
};
|
|
5073
4857
|
const deserializeAws_json1_1ListUserImportJobsCommand = async (output, context) => {
|
|
@@ -5089,7 +4873,6 @@ const deserializeAws_json1_1ListUserImportJobsCommandError = async (output, cont
|
|
|
5089
4873
|
...output,
|
|
5090
4874
|
body: await parseBody(output.body, context),
|
|
5091
4875
|
};
|
|
5092
|
-
let response;
|
|
5093
4876
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5094
4877
|
switch (errorCode) {
|
|
5095
4878
|
case "InternalErrorException":
|
|
@@ -5109,14 +4892,12 @@ const deserializeAws_json1_1ListUserImportJobsCommandError = async (output, cont
|
|
|
5109
4892
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
5110
4893
|
default:
|
|
5111
4894
|
const parsedBody = parsedOutput.body;
|
|
5112
|
-
|
|
5113
|
-
|
|
5114
|
-
|
|
5115
|
-
|
|
5116
|
-
|
|
5117
|
-
$metadata,
|
|
4895
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4896
|
+
output,
|
|
4897
|
+
parsedBody,
|
|
4898
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
4899
|
+
errorCode,
|
|
5118
4900
|
});
|
|
5119
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5120
4901
|
}
|
|
5121
4902
|
};
|
|
5122
4903
|
const deserializeAws_json1_1ListUserPoolClientsCommand = async (output, context) => {
|
|
@@ -5138,7 +4919,6 @@ const deserializeAws_json1_1ListUserPoolClientsCommandError = async (output, con
|
|
|
5138
4919
|
...output,
|
|
5139
4920
|
body: await parseBody(output.body, context),
|
|
5140
4921
|
};
|
|
5141
|
-
let response;
|
|
5142
4922
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5143
4923
|
switch (errorCode) {
|
|
5144
4924
|
case "InternalErrorException":
|
|
@@ -5158,14 +4938,12 @@ const deserializeAws_json1_1ListUserPoolClientsCommandError = async (output, con
|
|
|
5158
4938
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
5159
4939
|
default:
|
|
5160
4940
|
const parsedBody = parsedOutput.body;
|
|
5161
|
-
|
|
5162
|
-
|
|
5163
|
-
|
|
5164
|
-
|
|
5165
|
-
|
|
5166
|
-
$metadata,
|
|
4941
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4942
|
+
output,
|
|
4943
|
+
parsedBody,
|
|
4944
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
4945
|
+
errorCode,
|
|
5167
4946
|
});
|
|
5168
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5169
4947
|
}
|
|
5170
4948
|
};
|
|
5171
4949
|
const deserializeAws_json1_1ListUserPoolsCommand = async (output, context) => {
|
|
@@ -5187,7 +4965,6 @@ const deserializeAws_json1_1ListUserPoolsCommandError = async (output, context)
|
|
|
5187
4965
|
...output,
|
|
5188
4966
|
body: await parseBody(output.body, context),
|
|
5189
4967
|
};
|
|
5190
|
-
let response;
|
|
5191
4968
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5192
4969
|
switch (errorCode) {
|
|
5193
4970
|
case "InternalErrorException":
|
|
@@ -5204,14 +4981,12 @@ const deserializeAws_json1_1ListUserPoolsCommandError = async (output, context)
|
|
|
5204
4981
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
5205
4982
|
default:
|
|
5206
4983
|
const parsedBody = parsedOutput.body;
|
|
5207
|
-
|
|
5208
|
-
|
|
5209
|
-
|
|
5210
|
-
|
|
5211
|
-
|
|
5212
|
-
$metadata,
|
|
4984
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4985
|
+
output,
|
|
4986
|
+
parsedBody,
|
|
4987
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
4988
|
+
errorCode,
|
|
5213
4989
|
});
|
|
5214
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5215
4990
|
}
|
|
5216
4991
|
};
|
|
5217
4992
|
const deserializeAws_json1_1ListUsersCommand = async (output, context) => {
|
|
@@ -5233,7 +5008,6 @@ const deserializeAws_json1_1ListUsersCommandError = async (output, context) => {
|
|
|
5233
5008
|
...output,
|
|
5234
5009
|
body: await parseBody(output.body, context),
|
|
5235
5010
|
};
|
|
5236
|
-
let response;
|
|
5237
5011
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5238
5012
|
switch (errorCode) {
|
|
5239
5013
|
case "InternalErrorException":
|
|
@@ -5253,14 +5027,12 @@ const deserializeAws_json1_1ListUsersCommandError = async (output, context) => {
|
|
|
5253
5027
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
5254
5028
|
default:
|
|
5255
5029
|
const parsedBody = parsedOutput.body;
|
|
5256
|
-
|
|
5257
|
-
|
|
5258
|
-
|
|
5259
|
-
|
|
5260
|
-
|
|
5261
|
-
$metadata,
|
|
5030
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
5031
|
+
output,
|
|
5032
|
+
parsedBody,
|
|
5033
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
5034
|
+
errorCode,
|
|
5262
5035
|
});
|
|
5263
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5264
5036
|
}
|
|
5265
5037
|
};
|
|
5266
5038
|
const deserializeAws_json1_1ListUsersInGroupCommand = async (output, context) => {
|
|
@@ -5282,7 +5054,6 @@ const deserializeAws_json1_1ListUsersInGroupCommandError = async (output, contex
|
|
|
5282
5054
|
...output,
|
|
5283
5055
|
body: await parseBody(output.body, context),
|
|
5284
5056
|
};
|
|
5285
|
-
let response;
|
|
5286
5057
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5287
5058
|
switch (errorCode) {
|
|
5288
5059
|
case "InternalErrorException":
|
|
@@ -5302,14 +5073,12 @@ const deserializeAws_json1_1ListUsersInGroupCommandError = async (output, contex
|
|
|
5302
5073
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
5303
5074
|
default:
|
|
5304
5075
|
const parsedBody = parsedOutput.body;
|
|
5305
|
-
|
|
5306
|
-
|
|
5307
|
-
|
|
5308
|
-
|
|
5309
|
-
|
|
5310
|
-
$metadata,
|
|
5076
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
5077
|
+
output,
|
|
5078
|
+
parsedBody,
|
|
5079
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
5080
|
+
errorCode,
|
|
5311
5081
|
});
|
|
5312
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5313
5082
|
}
|
|
5314
5083
|
};
|
|
5315
5084
|
const deserializeAws_json1_1ResendConfirmationCodeCommand = async (output, context) => {
|
|
@@ -5331,7 +5100,6 @@ const deserializeAws_json1_1ResendConfirmationCodeCommandError = async (output,
|
|
|
5331
5100
|
...output,
|
|
5332
5101
|
body: await parseBody(output.body, context),
|
|
5333
5102
|
};
|
|
5334
|
-
let response;
|
|
5335
5103
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5336
5104
|
switch (errorCode) {
|
|
5337
5105
|
case "CodeDeliveryFailureException":
|
|
@@ -5378,14 +5146,12 @@ const deserializeAws_json1_1ResendConfirmationCodeCommandError = async (output,
|
|
|
5378
5146
|
throw await deserializeAws_json1_1UserNotFoundExceptionResponse(parsedOutput, context);
|
|
5379
5147
|
default:
|
|
5380
5148
|
const parsedBody = parsedOutput.body;
|
|
5381
|
-
|
|
5382
|
-
|
|
5383
|
-
|
|
5384
|
-
|
|
5385
|
-
|
|
5386
|
-
$metadata,
|
|
5149
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
5150
|
+
output,
|
|
5151
|
+
parsedBody,
|
|
5152
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
5153
|
+
errorCode,
|
|
5387
5154
|
});
|
|
5388
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5389
5155
|
}
|
|
5390
5156
|
};
|
|
5391
5157
|
const deserializeAws_json1_1RespondToAuthChallengeCommand = async (output, context) => {
|
|
@@ -5407,7 +5173,6 @@ const deserializeAws_json1_1RespondToAuthChallengeCommandError = async (output,
|
|
|
5407
5173
|
...output,
|
|
5408
5174
|
body: await parseBody(output.body, context),
|
|
5409
5175
|
};
|
|
5410
|
-
let response;
|
|
5411
5176
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5412
5177
|
switch (errorCode) {
|
|
5413
5178
|
case "AliasExistsException":
|
|
@@ -5472,14 +5237,12 @@ const deserializeAws_json1_1RespondToAuthChallengeCommandError = async (output,
|
|
|
5472
5237
|
throw await deserializeAws_json1_1UserNotFoundExceptionResponse(parsedOutput, context);
|
|
5473
5238
|
default:
|
|
5474
5239
|
const parsedBody = parsedOutput.body;
|
|
5475
|
-
|
|
5476
|
-
|
|
5477
|
-
|
|
5478
|
-
|
|
5479
|
-
|
|
5480
|
-
$metadata,
|
|
5240
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
5241
|
+
output,
|
|
5242
|
+
parsedBody,
|
|
5243
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
5244
|
+
errorCode,
|
|
5481
5245
|
});
|
|
5482
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5483
5246
|
}
|
|
5484
5247
|
};
|
|
5485
5248
|
const deserializeAws_json1_1RevokeTokenCommand = async (output, context) => {
|
|
@@ -5501,7 +5264,6 @@ const deserializeAws_json1_1RevokeTokenCommandError = async (output, context) =>
|
|
|
5501
5264
|
...output,
|
|
5502
5265
|
body: await parseBody(output.body, context),
|
|
5503
5266
|
};
|
|
5504
|
-
let response;
|
|
5505
5267
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5506
5268
|
switch (errorCode) {
|
|
5507
5269
|
case "InternalErrorException":
|
|
@@ -5524,14 +5286,12 @@ const deserializeAws_json1_1RevokeTokenCommandError = async (output, context) =>
|
|
|
5524
5286
|
throw await deserializeAws_json1_1UnsupportedTokenTypeExceptionResponse(parsedOutput, context);
|
|
5525
5287
|
default:
|
|
5526
5288
|
const parsedBody = parsedOutput.body;
|
|
5527
|
-
|
|
5528
|
-
|
|
5529
|
-
|
|
5530
|
-
|
|
5531
|
-
|
|
5532
|
-
$metadata,
|
|
5289
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
5290
|
+
output,
|
|
5291
|
+
parsedBody,
|
|
5292
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
5293
|
+
errorCode,
|
|
5533
5294
|
});
|
|
5534
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5535
5295
|
}
|
|
5536
5296
|
};
|
|
5537
5297
|
const deserializeAws_json1_1SetRiskConfigurationCommand = async (output, context) => {
|
|
@@ -5553,7 +5313,6 @@ const deserializeAws_json1_1SetRiskConfigurationCommandError = async (output, co
|
|
|
5553
5313
|
...output,
|
|
5554
5314
|
body: await parseBody(output.body, context),
|
|
5555
5315
|
};
|
|
5556
|
-
let response;
|
|
5557
5316
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5558
5317
|
switch (errorCode) {
|
|
5559
5318
|
case "CodeDeliveryFailureException":
|
|
@@ -5582,14 +5341,12 @@ const deserializeAws_json1_1SetRiskConfigurationCommandError = async (output, co
|
|
|
5582
5341
|
throw await deserializeAws_json1_1UserPoolAddOnNotEnabledExceptionResponse(parsedOutput, context);
|
|
5583
5342
|
default:
|
|
5584
5343
|
const parsedBody = parsedOutput.body;
|
|
5585
|
-
|
|
5586
|
-
|
|
5587
|
-
|
|
5588
|
-
|
|
5589
|
-
|
|
5590
|
-
$metadata,
|
|
5344
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
5345
|
+
output,
|
|
5346
|
+
parsedBody,
|
|
5347
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
5348
|
+
errorCode,
|
|
5591
5349
|
});
|
|
5592
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5593
5350
|
}
|
|
5594
5351
|
};
|
|
5595
5352
|
const deserializeAws_json1_1SetUICustomizationCommand = async (output, context) => {
|
|
@@ -5611,7 +5368,6 @@ const deserializeAws_json1_1SetUICustomizationCommandError = async (output, cont
|
|
|
5611
5368
|
...output,
|
|
5612
5369
|
body: await parseBody(output.body, context),
|
|
5613
5370
|
};
|
|
5614
|
-
let response;
|
|
5615
5371
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5616
5372
|
switch (errorCode) {
|
|
5617
5373
|
case "InternalErrorException":
|
|
@@ -5631,14 +5387,12 @@ const deserializeAws_json1_1SetUICustomizationCommandError = async (output, cont
|
|
|
5631
5387
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
5632
5388
|
default:
|
|
5633
5389
|
const parsedBody = parsedOutput.body;
|
|
5634
|
-
|
|
5635
|
-
|
|
5636
|
-
|
|
5637
|
-
|
|
5638
|
-
|
|
5639
|
-
$metadata,
|
|
5390
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
5391
|
+
output,
|
|
5392
|
+
parsedBody,
|
|
5393
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
5394
|
+
errorCode,
|
|
5640
5395
|
});
|
|
5641
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5642
5396
|
}
|
|
5643
5397
|
};
|
|
5644
5398
|
const deserializeAws_json1_1SetUserMFAPreferenceCommand = async (output, context) => {
|
|
@@ -5660,7 +5414,6 @@ const deserializeAws_json1_1SetUserMFAPreferenceCommandError = async (output, co
|
|
|
5660
5414
|
...output,
|
|
5661
5415
|
body: await parseBody(output.body, context),
|
|
5662
5416
|
};
|
|
5663
|
-
let response;
|
|
5664
5417
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5665
5418
|
switch (errorCode) {
|
|
5666
5419
|
case "InternalErrorException":
|
|
@@ -5686,14 +5439,12 @@ const deserializeAws_json1_1SetUserMFAPreferenceCommandError = async (output, co
|
|
|
5686
5439
|
throw await deserializeAws_json1_1UserNotFoundExceptionResponse(parsedOutput, context);
|
|
5687
5440
|
default:
|
|
5688
5441
|
const parsedBody = parsedOutput.body;
|
|
5689
|
-
|
|
5690
|
-
|
|
5691
|
-
|
|
5692
|
-
|
|
5693
|
-
|
|
5694
|
-
$metadata,
|
|
5442
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
5443
|
+
output,
|
|
5444
|
+
parsedBody,
|
|
5445
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
5446
|
+
errorCode,
|
|
5695
5447
|
});
|
|
5696
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5697
5448
|
}
|
|
5698
5449
|
};
|
|
5699
5450
|
const deserializeAws_json1_1SetUserPoolMfaConfigCommand = async (output, context) => {
|
|
@@ -5715,7 +5466,6 @@ const deserializeAws_json1_1SetUserPoolMfaConfigCommandError = async (output, co
|
|
|
5715
5466
|
...output,
|
|
5716
5467
|
body: await parseBody(output.body, context),
|
|
5717
5468
|
};
|
|
5718
|
-
let response;
|
|
5719
5469
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5720
5470
|
switch (errorCode) {
|
|
5721
5471
|
case "InternalErrorException":
|
|
@@ -5741,14 +5491,12 @@ const deserializeAws_json1_1SetUserPoolMfaConfigCommandError = async (output, co
|
|
|
5741
5491
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
5742
5492
|
default:
|
|
5743
5493
|
const parsedBody = parsedOutput.body;
|
|
5744
|
-
|
|
5745
|
-
|
|
5746
|
-
|
|
5747
|
-
|
|
5748
|
-
|
|
5749
|
-
$metadata,
|
|
5494
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
5495
|
+
output,
|
|
5496
|
+
parsedBody,
|
|
5497
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
5498
|
+
errorCode,
|
|
5750
5499
|
});
|
|
5751
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5752
5500
|
}
|
|
5753
5501
|
};
|
|
5754
5502
|
const deserializeAws_json1_1SetUserSettingsCommand = async (output, context) => {
|
|
@@ -5770,7 +5518,6 @@ const deserializeAws_json1_1SetUserSettingsCommandError = async (output, context
|
|
|
5770
5518
|
...output,
|
|
5771
5519
|
body: await parseBody(output.body, context),
|
|
5772
5520
|
};
|
|
5773
|
-
let response;
|
|
5774
5521
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5775
5522
|
switch (errorCode) {
|
|
5776
5523
|
case "InternalErrorException":
|
|
@@ -5796,14 +5543,12 @@ const deserializeAws_json1_1SetUserSettingsCommandError = async (output, context
|
|
|
5796
5543
|
throw await deserializeAws_json1_1UserNotFoundExceptionResponse(parsedOutput, context);
|
|
5797
5544
|
default:
|
|
5798
5545
|
const parsedBody = parsedOutput.body;
|
|
5799
|
-
|
|
5800
|
-
|
|
5801
|
-
|
|
5802
|
-
|
|
5803
|
-
|
|
5804
|
-
$metadata,
|
|
5546
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
5547
|
+
output,
|
|
5548
|
+
parsedBody,
|
|
5549
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
5550
|
+
errorCode,
|
|
5805
5551
|
});
|
|
5806
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5807
5552
|
}
|
|
5808
5553
|
};
|
|
5809
5554
|
const deserializeAws_json1_1SignUpCommand = async (output, context) => {
|
|
@@ -5825,7 +5570,6 @@ const deserializeAws_json1_1SignUpCommandError = async (output, context) => {
|
|
|
5825
5570
|
...output,
|
|
5826
5571
|
body: await parseBody(output.body, context),
|
|
5827
5572
|
};
|
|
5828
|
-
let response;
|
|
5829
5573
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5830
5574
|
switch (errorCode) {
|
|
5831
5575
|
case "CodeDeliveryFailureException":
|
|
@@ -5872,14 +5616,12 @@ const deserializeAws_json1_1SignUpCommandError = async (output, context) => {
|
|
|
5872
5616
|
throw await deserializeAws_json1_1UsernameExistsExceptionResponse(parsedOutput, context);
|
|
5873
5617
|
default:
|
|
5874
5618
|
const parsedBody = parsedOutput.body;
|
|
5875
|
-
|
|
5876
|
-
|
|
5877
|
-
|
|
5878
|
-
|
|
5879
|
-
|
|
5880
|
-
$metadata,
|
|
5619
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
5620
|
+
output,
|
|
5621
|
+
parsedBody,
|
|
5622
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
5623
|
+
errorCode,
|
|
5881
5624
|
});
|
|
5882
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5883
5625
|
}
|
|
5884
5626
|
};
|
|
5885
5627
|
const deserializeAws_json1_1StartUserImportJobCommand = async (output, context) => {
|
|
@@ -5901,7 +5643,6 @@ const deserializeAws_json1_1StartUserImportJobCommandError = async (output, cont
|
|
|
5901
5643
|
...output,
|
|
5902
5644
|
body: await parseBody(output.body, context),
|
|
5903
5645
|
};
|
|
5904
|
-
let response;
|
|
5905
5646
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5906
5647
|
switch (errorCode) {
|
|
5907
5648
|
case "InternalErrorException":
|
|
@@ -5924,14 +5665,12 @@ const deserializeAws_json1_1StartUserImportJobCommandError = async (output, cont
|
|
|
5924
5665
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
5925
5666
|
default:
|
|
5926
5667
|
const parsedBody = parsedOutput.body;
|
|
5927
|
-
|
|
5928
|
-
|
|
5929
|
-
|
|
5930
|
-
|
|
5931
|
-
|
|
5932
|
-
$metadata,
|
|
5668
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
5669
|
+
output,
|
|
5670
|
+
parsedBody,
|
|
5671
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
5672
|
+
errorCode,
|
|
5933
5673
|
});
|
|
5934
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5935
5674
|
}
|
|
5936
5675
|
};
|
|
5937
5676
|
const deserializeAws_json1_1StopUserImportJobCommand = async (output, context) => {
|
|
@@ -5953,7 +5692,6 @@ const deserializeAws_json1_1StopUserImportJobCommandError = async (output, conte
|
|
|
5953
5692
|
...output,
|
|
5954
5693
|
body: await parseBody(output.body, context),
|
|
5955
5694
|
};
|
|
5956
|
-
let response;
|
|
5957
5695
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5958
5696
|
switch (errorCode) {
|
|
5959
5697
|
case "InternalErrorException":
|
|
@@ -5976,14 +5714,12 @@ const deserializeAws_json1_1StopUserImportJobCommandError = async (output, conte
|
|
|
5976
5714
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
5977
5715
|
default:
|
|
5978
5716
|
const parsedBody = parsedOutput.body;
|
|
5979
|
-
|
|
5980
|
-
|
|
5981
|
-
|
|
5982
|
-
|
|
5983
|
-
|
|
5984
|
-
$metadata,
|
|
5717
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
5718
|
+
output,
|
|
5719
|
+
parsedBody,
|
|
5720
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
5721
|
+
errorCode,
|
|
5985
5722
|
});
|
|
5986
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5987
5723
|
}
|
|
5988
5724
|
};
|
|
5989
5725
|
const deserializeAws_json1_1TagResourceCommand = async (output, context) => {
|
|
@@ -6005,7 +5741,6 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
6005
5741
|
...output,
|
|
6006
5742
|
body: await parseBody(output.body, context),
|
|
6007
5743
|
};
|
|
6008
|
-
let response;
|
|
6009
5744
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6010
5745
|
switch (errorCode) {
|
|
6011
5746
|
case "InternalErrorException":
|
|
@@ -6025,14 +5760,12 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
6025
5760
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
6026
5761
|
default:
|
|
6027
5762
|
const parsedBody = parsedOutput.body;
|
|
6028
|
-
|
|
6029
|
-
|
|
6030
|
-
|
|
6031
|
-
|
|
6032
|
-
|
|
6033
|
-
$metadata,
|
|
5763
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
5764
|
+
output,
|
|
5765
|
+
parsedBody,
|
|
5766
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
5767
|
+
errorCode,
|
|
6034
5768
|
});
|
|
6035
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6036
5769
|
}
|
|
6037
5770
|
};
|
|
6038
5771
|
const deserializeAws_json1_1UntagResourceCommand = async (output, context) => {
|
|
@@ -6054,7 +5787,6 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
6054
5787
|
...output,
|
|
6055
5788
|
body: await parseBody(output.body, context),
|
|
6056
5789
|
};
|
|
6057
|
-
let response;
|
|
6058
5790
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6059
5791
|
switch (errorCode) {
|
|
6060
5792
|
case "InternalErrorException":
|
|
@@ -6074,14 +5806,12 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
6074
5806
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
6075
5807
|
default:
|
|
6076
5808
|
const parsedBody = parsedOutput.body;
|
|
6077
|
-
|
|
6078
|
-
|
|
6079
|
-
|
|
6080
|
-
|
|
6081
|
-
|
|
6082
|
-
$metadata,
|
|
5809
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
5810
|
+
output,
|
|
5811
|
+
parsedBody,
|
|
5812
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
5813
|
+
errorCode,
|
|
6083
5814
|
});
|
|
6084
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6085
5815
|
}
|
|
6086
5816
|
};
|
|
6087
5817
|
const deserializeAws_json1_1UpdateAuthEventFeedbackCommand = async (output, context) => {
|
|
@@ -6103,7 +5833,6 @@ const deserializeAws_json1_1UpdateAuthEventFeedbackCommandError = async (output,
|
|
|
6103
5833
|
...output,
|
|
6104
5834
|
body: await parseBody(output.body, context),
|
|
6105
5835
|
};
|
|
6106
|
-
let response;
|
|
6107
5836
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6108
5837
|
switch (errorCode) {
|
|
6109
5838
|
case "InternalErrorException":
|
|
@@ -6129,14 +5858,12 @@ const deserializeAws_json1_1UpdateAuthEventFeedbackCommandError = async (output,
|
|
|
6129
5858
|
throw await deserializeAws_json1_1UserPoolAddOnNotEnabledExceptionResponse(parsedOutput, context);
|
|
6130
5859
|
default:
|
|
6131
5860
|
const parsedBody = parsedOutput.body;
|
|
6132
|
-
|
|
6133
|
-
|
|
6134
|
-
|
|
6135
|
-
|
|
6136
|
-
|
|
6137
|
-
$metadata,
|
|
5861
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
5862
|
+
output,
|
|
5863
|
+
parsedBody,
|
|
5864
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
5865
|
+
errorCode,
|
|
6138
5866
|
});
|
|
6139
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6140
5867
|
}
|
|
6141
5868
|
};
|
|
6142
5869
|
const deserializeAws_json1_1UpdateDeviceStatusCommand = async (output, context) => {
|
|
@@ -6158,7 +5885,6 @@ const deserializeAws_json1_1UpdateDeviceStatusCommandError = async (output, cont
|
|
|
6158
5885
|
...output,
|
|
6159
5886
|
body: await parseBody(output.body, context),
|
|
6160
5887
|
};
|
|
6161
|
-
let response;
|
|
6162
5888
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6163
5889
|
switch (errorCode) {
|
|
6164
5890
|
case "InternalErrorException":
|
|
@@ -6190,14 +5916,12 @@ const deserializeAws_json1_1UpdateDeviceStatusCommandError = async (output, cont
|
|
|
6190
5916
|
throw await deserializeAws_json1_1UserNotFoundExceptionResponse(parsedOutput, context);
|
|
6191
5917
|
default:
|
|
6192
5918
|
const parsedBody = parsedOutput.body;
|
|
6193
|
-
|
|
6194
|
-
|
|
6195
|
-
|
|
6196
|
-
|
|
6197
|
-
|
|
6198
|
-
$metadata,
|
|
5919
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
5920
|
+
output,
|
|
5921
|
+
parsedBody,
|
|
5922
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
5923
|
+
errorCode,
|
|
6199
5924
|
});
|
|
6200
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6201
5925
|
}
|
|
6202
5926
|
};
|
|
6203
5927
|
const deserializeAws_json1_1UpdateGroupCommand = async (output, context) => {
|
|
@@ -6219,7 +5943,6 @@ const deserializeAws_json1_1UpdateGroupCommandError = async (output, context) =>
|
|
|
6219
5943
|
...output,
|
|
6220
5944
|
body: await parseBody(output.body, context),
|
|
6221
5945
|
};
|
|
6222
|
-
let response;
|
|
6223
5946
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6224
5947
|
switch (errorCode) {
|
|
6225
5948
|
case "InternalErrorException":
|
|
@@ -6239,14 +5962,12 @@ const deserializeAws_json1_1UpdateGroupCommandError = async (output, context) =>
|
|
|
6239
5962
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
6240
5963
|
default:
|
|
6241
5964
|
const parsedBody = parsedOutput.body;
|
|
6242
|
-
|
|
6243
|
-
|
|
6244
|
-
|
|
6245
|
-
|
|
6246
|
-
|
|
6247
|
-
$metadata,
|
|
5965
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
5966
|
+
output,
|
|
5967
|
+
parsedBody,
|
|
5968
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
5969
|
+
errorCode,
|
|
6248
5970
|
});
|
|
6249
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6250
5971
|
}
|
|
6251
5972
|
};
|
|
6252
5973
|
const deserializeAws_json1_1UpdateIdentityProviderCommand = async (output, context) => {
|
|
@@ -6268,7 +5989,6 @@ const deserializeAws_json1_1UpdateIdentityProviderCommandError = async (output,
|
|
|
6268
5989
|
...output,
|
|
6269
5990
|
body: await parseBody(output.body, context),
|
|
6270
5991
|
};
|
|
6271
|
-
let response;
|
|
6272
5992
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6273
5993
|
switch (errorCode) {
|
|
6274
5994
|
case "InternalErrorException":
|
|
@@ -6291,14 +6011,12 @@ const deserializeAws_json1_1UpdateIdentityProviderCommandError = async (output,
|
|
|
6291
6011
|
throw await deserializeAws_json1_1UnsupportedIdentityProviderExceptionResponse(parsedOutput, context);
|
|
6292
6012
|
default:
|
|
6293
6013
|
const parsedBody = parsedOutput.body;
|
|
6294
|
-
|
|
6295
|
-
|
|
6296
|
-
|
|
6297
|
-
|
|
6298
|
-
|
|
6299
|
-
$metadata,
|
|
6014
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
6015
|
+
output,
|
|
6016
|
+
parsedBody,
|
|
6017
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
6018
|
+
errorCode,
|
|
6300
6019
|
});
|
|
6301
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6302
6020
|
}
|
|
6303
6021
|
};
|
|
6304
6022
|
const deserializeAws_json1_1UpdateResourceServerCommand = async (output, context) => {
|
|
@@ -6320,7 +6038,6 @@ const deserializeAws_json1_1UpdateResourceServerCommandError = async (output, co
|
|
|
6320
6038
|
...output,
|
|
6321
6039
|
body: await parseBody(output.body, context),
|
|
6322
6040
|
};
|
|
6323
|
-
let response;
|
|
6324
6041
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6325
6042
|
switch (errorCode) {
|
|
6326
6043
|
case "InternalErrorException":
|
|
@@ -6340,14 +6057,12 @@ const deserializeAws_json1_1UpdateResourceServerCommandError = async (output, co
|
|
|
6340
6057
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
6341
6058
|
default:
|
|
6342
6059
|
const parsedBody = parsedOutput.body;
|
|
6343
|
-
|
|
6344
|
-
|
|
6345
|
-
|
|
6346
|
-
|
|
6347
|
-
|
|
6348
|
-
$metadata,
|
|
6060
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
6061
|
+
output,
|
|
6062
|
+
parsedBody,
|
|
6063
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
6064
|
+
errorCode,
|
|
6349
6065
|
});
|
|
6350
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6351
6066
|
}
|
|
6352
6067
|
};
|
|
6353
6068
|
const deserializeAws_json1_1UpdateUserAttributesCommand = async (output, context) => {
|
|
@@ -6369,7 +6084,6 @@ const deserializeAws_json1_1UpdateUserAttributesCommandError = async (output, co
|
|
|
6369
6084
|
...output,
|
|
6370
6085
|
body: await parseBody(output.body, context),
|
|
6371
6086
|
};
|
|
6372
|
-
let response;
|
|
6373
6087
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6374
6088
|
switch (errorCode) {
|
|
6375
6089
|
case "AliasExistsException":
|
|
@@ -6428,14 +6142,12 @@ const deserializeAws_json1_1UpdateUserAttributesCommandError = async (output, co
|
|
|
6428
6142
|
throw await deserializeAws_json1_1UserNotFoundExceptionResponse(parsedOutput, context);
|
|
6429
6143
|
default:
|
|
6430
6144
|
const parsedBody = parsedOutput.body;
|
|
6431
|
-
|
|
6432
|
-
|
|
6433
|
-
|
|
6434
|
-
|
|
6435
|
-
|
|
6436
|
-
$metadata,
|
|
6145
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
6146
|
+
output,
|
|
6147
|
+
parsedBody,
|
|
6148
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
6149
|
+
errorCode,
|
|
6437
6150
|
});
|
|
6438
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6439
6151
|
}
|
|
6440
6152
|
};
|
|
6441
6153
|
const deserializeAws_json1_1UpdateUserPoolCommand = async (output, context) => {
|
|
@@ -6457,7 +6169,6 @@ const deserializeAws_json1_1UpdateUserPoolCommandError = async (output, context)
|
|
|
6457
6169
|
...output,
|
|
6458
6170
|
body: await parseBody(output.body, context),
|
|
6459
6171
|
};
|
|
6460
|
-
let response;
|
|
6461
6172
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6462
6173
|
switch (errorCode) {
|
|
6463
6174
|
case "ConcurrentModificationException":
|
|
@@ -6495,14 +6206,12 @@ const deserializeAws_json1_1UpdateUserPoolCommandError = async (output, context)
|
|
|
6495
6206
|
throw await deserializeAws_json1_1UserPoolTaggingExceptionResponse(parsedOutput, context);
|
|
6496
6207
|
default:
|
|
6497
6208
|
const parsedBody = parsedOutput.body;
|
|
6498
|
-
|
|
6499
|
-
|
|
6500
|
-
|
|
6501
|
-
|
|
6502
|
-
|
|
6503
|
-
$metadata,
|
|
6209
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
6210
|
+
output,
|
|
6211
|
+
parsedBody,
|
|
6212
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
6213
|
+
errorCode,
|
|
6504
6214
|
});
|
|
6505
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6506
6215
|
}
|
|
6507
6216
|
};
|
|
6508
6217
|
const deserializeAws_json1_1UpdateUserPoolClientCommand = async (output, context) => {
|
|
@@ -6524,7 +6233,6 @@ const deserializeAws_json1_1UpdateUserPoolClientCommandError = async (output, co
|
|
|
6524
6233
|
...output,
|
|
6525
6234
|
body: await parseBody(output.body, context),
|
|
6526
6235
|
};
|
|
6527
|
-
let response;
|
|
6528
6236
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6529
6237
|
switch (errorCode) {
|
|
6530
6238
|
case "ConcurrentModificationException":
|
|
@@ -6553,14 +6261,12 @@ const deserializeAws_json1_1UpdateUserPoolClientCommandError = async (output, co
|
|
|
6553
6261
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
6554
6262
|
default:
|
|
6555
6263
|
const parsedBody = parsedOutput.body;
|
|
6556
|
-
|
|
6557
|
-
|
|
6558
|
-
|
|
6559
|
-
|
|
6560
|
-
|
|
6561
|
-
$metadata,
|
|
6264
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
6265
|
+
output,
|
|
6266
|
+
parsedBody,
|
|
6267
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
6268
|
+
errorCode,
|
|
6562
6269
|
});
|
|
6563
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6564
6270
|
}
|
|
6565
6271
|
};
|
|
6566
6272
|
const deserializeAws_json1_1UpdateUserPoolDomainCommand = async (output, context) => {
|
|
@@ -6582,7 +6288,6 @@ const deserializeAws_json1_1UpdateUserPoolDomainCommandError = async (output, co
|
|
|
6582
6288
|
...output,
|
|
6583
6289
|
body: await parseBody(output.body, context),
|
|
6584
6290
|
};
|
|
6585
|
-
let response;
|
|
6586
6291
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6587
6292
|
switch (errorCode) {
|
|
6588
6293
|
case "InternalErrorException":
|
|
@@ -6602,14 +6307,12 @@ const deserializeAws_json1_1UpdateUserPoolDomainCommandError = async (output, co
|
|
|
6602
6307
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
6603
6308
|
default:
|
|
6604
6309
|
const parsedBody = parsedOutput.body;
|
|
6605
|
-
|
|
6606
|
-
|
|
6607
|
-
|
|
6608
|
-
|
|
6609
|
-
|
|
6610
|
-
$metadata,
|
|
6310
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
6311
|
+
output,
|
|
6312
|
+
parsedBody,
|
|
6313
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
6314
|
+
errorCode,
|
|
6611
6315
|
});
|
|
6612
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6613
6316
|
}
|
|
6614
6317
|
};
|
|
6615
6318
|
const deserializeAws_json1_1VerifySoftwareTokenCommand = async (output, context) => {
|
|
@@ -6631,7 +6334,6 @@ const deserializeAws_json1_1VerifySoftwareTokenCommandError = async (output, con
|
|
|
6631
6334
|
...output,
|
|
6632
6335
|
body: await parseBody(output.body, context),
|
|
6633
6336
|
};
|
|
6634
|
-
let response;
|
|
6635
6337
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6636
6338
|
switch (errorCode) {
|
|
6637
6339
|
case "CodeMismatchException":
|
|
@@ -6672,14 +6374,12 @@ const deserializeAws_json1_1VerifySoftwareTokenCommandError = async (output, con
|
|
|
6672
6374
|
throw await deserializeAws_json1_1UserNotFoundExceptionResponse(parsedOutput, context);
|
|
6673
6375
|
default:
|
|
6674
6376
|
const parsedBody = parsedOutput.body;
|
|
6675
|
-
|
|
6676
|
-
|
|
6677
|
-
|
|
6678
|
-
|
|
6679
|
-
|
|
6680
|
-
$metadata,
|
|
6377
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
6378
|
+
output,
|
|
6379
|
+
parsedBody,
|
|
6380
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
6381
|
+
errorCode,
|
|
6681
6382
|
});
|
|
6682
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6683
6383
|
}
|
|
6684
6384
|
};
|
|
6685
6385
|
const deserializeAws_json1_1VerifyUserAttributeCommand = async (output, context) => {
|
|
@@ -6701,7 +6401,6 @@ const deserializeAws_json1_1VerifyUserAttributeCommandError = async (output, con
|
|
|
6701
6401
|
...output,
|
|
6702
6402
|
body: await parseBody(output.body, context),
|
|
6703
6403
|
};
|
|
6704
|
-
let response;
|
|
6705
6404
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6706
6405
|
switch (errorCode) {
|
|
6707
6406
|
case "AliasExistsException":
|
|
@@ -6742,14 +6441,12 @@ const deserializeAws_json1_1VerifyUserAttributeCommandError = async (output, con
|
|
|
6742
6441
|
throw await deserializeAws_json1_1UserNotFoundExceptionResponse(parsedOutput, context);
|
|
6743
6442
|
default:
|
|
6744
6443
|
const parsedBody = parsedOutput.body;
|
|
6745
|
-
|
|
6746
|
-
|
|
6747
|
-
|
|
6748
|
-
|
|
6749
|
-
|
|
6750
|
-
$metadata,
|
|
6444
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
6445
|
+
output,
|
|
6446
|
+
parsedBody,
|
|
6447
|
+
exceptionCtor: CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException,
|
|
6448
|
+
errorCode,
|
|
6751
6449
|
});
|
|
6752
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6753
6450
|
}
|
|
6754
6451
|
};
|
|
6755
6452
|
const deserializeAws_json1_1AliasExistsExceptionResponse = async (parsedOutput, context) => {
|
|
@@ -7404,9 +7101,6 @@ const serializeAws_json1_1AliasAttributesListType = (input, context) => {
|
|
|
7404
7101
|
return input
|
|
7405
7102
|
.filter((e) => e != null)
|
|
7406
7103
|
.map((entry) => {
|
|
7407
|
-
if (entry === null) {
|
|
7408
|
-
return null;
|
|
7409
|
-
}
|
|
7410
7104
|
return entry;
|
|
7411
7105
|
});
|
|
7412
7106
|
};
|
|
@@ -7434,9 +7128,6 @@ const serializeAws_json1_1AttributeListType = (input, context) => {
|
|
|
7434
7128
|
return input
|
|
7435
7129
|
.filter((e) => e != null)
|
|
7436
7130
|
.map((entry) => {
|
|
7437
|
-
if (entry === null) {
|
|
7438
|
-
return null;
|
|
7439
|
-
}
|
|
7440
7131
|
return serializeAws_json1_1AttributeType(entry, context);
|
|
7441
7132
|
});
|
|
7442
7133
|
};
|
|
@@ -7455,9 +7146,6 @@ const serializeAws_json1_1AttributeNameListType = (input, context) => {
|
|
|
7455
7146
|
return input
|
|
7456
7147
|
.filter((e) => e != null)
|
|
7457
7148
|
.map((entry) => {
|
|
7458
|
-
if (entry === null) {
|
|
7459
|
-
return null;
|
|
7460
|
-
}
|
|
7461
7149
|
return entry;
|
|
7462
7150
|
});
|
|
7463
7151
|
};
|
|
@@ -7465,9 +7153,6 @@ const serializeAws_json1_1AttributesRequireVerificationBeforeUpdateType = (input
|
|
|
7465
7153
|
return input
|
|
7466
7154
|
.filter((e) => e != null)
|
|
7467
7155
|
.map((entry) => {
|
|
7468
|
-
if (entry === null) {
|
|
7469
|
-
return null;
|
|
7470
|
-
}
|
|
7471
7156
|
return entry;
|
|
7472
7157
|
});
|
|
7473
7158
|
};
|
|
@@ -7492,9 +7177,6 @@ const serializeAws_json1_1BlockedIPRangeListType = (input, context) => {
|
|
|
7492
7177
|
return input
|
|
7493
7178
|
.filter((e) => e != null)
|
|
7494
7179
|
.map((entry) => {
|
|
7495
|
-
if (entry === null) {
|
|
7496
|
-
return null;
|
|
7497
|
-
}
|
|
7498
7180
|
return entry;
|
|
7499
7181
|
});
|
|
7500
7182
|
};
|
|
@@ -7502,9 +7184,6 @@ const serializeAws_json1_1CallbackURLsListType = (input, context) => {
|
|
|
7502
7184
|
return input
|
|
7503
7185
|
.filter((e) => e != null)
|
|
7504
7186
|
.map((entry) => {
|
|
7505
|
-
if (entry === null) {
|
|
7506
|
-
return null;
|
|
7507
|
-
}
|
|
7508
7187
|
return entry;
|
|
7509
7188
|
});
|
|
7510
7189
|
};
|
|
@@ -7541,9 +7220,6 @@ const serializeAws_json1_1ClientPermissionListType = (input, context) => {
|
|
|
7541
7220
|
return input
|
|
7542
7221
|
.filter((e) => e != null)
|
|
7543
7222
|
.map((entry) => {
|
|
7544
|
-
if (entry === null) {
|
|
7545
|
-
return null;
|
|
7546
|
-
}
|
|
7547
7223
|
return entry;
|
|
7548
7224
|
});
|
|
7549
7225
|
};
|
|
@@ -7769,9 +7445,6 @@ const serializeAws_json1_1CustomAttributesListType = (input, context) => {
|
|
|
7769
7445
|
return input
|
|
7770
7446
|
.filter((e) => e != null)
|
|
7771
7447
|
.map((entry) => {
|
|
7772
|
-
if (entry === null) {
|
|
7773
|
-
return null;
|
|
7774
|
-
}
|
|
7775
7448
|
return serializeAws_json1_1SchemaAttributeType(entry, context);
|
|
7776
7449
|
});
|
|
7777
7450
|
};
|
|
@@ -7844,9 +7517,6 @@ const serializeAws_json1_1DeliveryMediumListType = (input, context) => {
|
|
|
7844
7517
|
return input
|
|
7845
7518
|
.filter((e) => e != null)
|
|
7846
7519
|
.map((entry) => {
|
|
7847
|
-
if (entry === null) {
|
|
7848
|
-
return null;
|
|
7849
|
-
}
|
|
7850
7520
|
return entry;
|
|
7851
7521
|
});
|
|
7852
7522
|
};
|
|
@@ -7919,9 +7589,6 @@ const serializeAws_json1_1EventFiltersType = (input, context) => {
|
|
|
7919
7589
|
return input
|
|
7920
7590
|
.filter((e) => e != null)
|
|
7921
7591
|
.map((entry) => {
|
|
7922
|
-
if (entry === null) {
|
|
7923
|
-
return null;
|
|
7924
|
-
}
|
|
7925
7592
|
return entry;
|
|
7926
7593
|
});
|
|
7927
7594
|
};
|
|
@@ -7929,9 +7596,6 @@ const serializeAws_json1_1ExplicitAuthFlowsListType = (input, context) => {
|
|
|
7929
7596
|
return input
|
|
7930
7597
|
.filter((e) => e != null)
|
|
7931
7598
|
.map((entry) => {
|
|
7932
|
-
if (entry === null) {
|
|
7933
|
-
return null;
|
|
7934
|
-
}
|
|
7935
7599
|
return entry;
|
|
7936
7600
|
});
|
|
7937
7601
|
};
|
|
@@ -8025,9 +7689,6 @@ const serializeAws_json1_1HttpHeaderList = (input, context) => {
|
|
|
8025
7689
|
return input
|
|
8026
7690
|
.filter((e) => e != null)
|
|
8027
7691
|
.map((entry) => {
|
|
8028
|
-
if (entry === null) {
|
|
8029
|
-
return null;
|
|
8030
|
-
}
|
|
8031
7692
|
return serializeAws_json1_1HttpHeader(entry, context);
|
|
8032
7693
|
});
|
|
8033
7694
|
};
|
|
@@ -8035,9 +7696,6 @@ const serializeAws_json1_1IdpIdentifiersListType = (input, context) => {
|
|
|
8035
7696
|
return input
|
|
8036
7697
|
.filter((e) => e != null)
|
|
8037
7698
|
.map((entry) => {
|
|
8038
|
-
if (entry === null) {
|
|
8039
|
-
return null;
|
|
8040
|
-
}
|
|
8041
7699
|
return entry;
|
|
8042
7700
|
});
|
|
8043
7701
|
};
|
|
@@ -8158,9 +7816,6 @@ const serializeAws_json1_1LogoutURLsListType = (input, context) => {
|
|
|
8158
7816
|
return input
|
|
8159
7817
|
.filter((e) => e != null)
|
|
8160
7818
|
.map((entry) => {
|
|
8161
|
-
if (entry === null) {
|
|
8162
|
-
return null;
|
|
8163
|
-
}
|
|
8164
7819
|
return entry;
|
|
8165
7820
|
});
|
|
8166
7821
|
};
|
|
@@ -8175,9 +7830,6 @@ const serializeAws_json1_1MFAOptionListType = (input, context) => {
|
|
|
8175
7830
|
return input
|
|
8176
7831
|
.filter((e) => e != null)
|
|
8177
7832
|
.map((entry) => {
|
|
8178
|
-
if (entry === null) {
|
|
8179
|
-
return null;
|
|
8180
|
-
}
|
|
8181
7833
|
return serializeAws_json1_1MFAOptionType(entry, context);
|
|
8182
7834
|
});
|
|
8183
7835
|
};
|
|
@@ -8216,9 +7868,6 @@ const serializeAws_json1_1OAuthFlowsType = (input, context) => {
|
|
|
8216
7868
|
return input
|
|
8217
7869
|
.filter((e) => e != null)
|
|
8218
7870
|
.map((entry) => {
|
|
8219
|
-
if (entry === null) {
|
|
8220
|
-
return null;
|
|
8221
|
-
}
|
|
8222
7871
|
return entry;
|
|
8223
7872
|
});
|
|
8224
7873
|
};
|
|
@@ -8256,9 +7905,6 @@ const serializeAws_json1_1RecoveryMechanismsType = (input, context) => {
|
|
|
8256
7905
|
return input
|
|
8257
7906
|
.filter((e) => e != null)
|
|
8258
7907
|
.map((entry) => {
|
|
8259
|
-
if (entry === null) {
|
|
8260
|
-
return null;
|
|
8261
|
-
}
|
|
8262
7908
|
return serializeAws_json1_1RecoveryOptionType(entry, context);
|
|
8263
7909
|
});
|
|
8264
7910
|
};
|
|
@@ -8288,9 +7934,6 @@ const serializeAws_json1_1ResourceServerScopeListType = (input, context) => {
|
|
|
8288
7934
|
return input
|
|
8289
7935
|
.filter((e) => e != null)
|
|
8290
7936
|
.map((entry) => {
|
|
8291
|
-
if (entry === null) {
|
|
8292
|
-
return null;
|
|
8293
|
-
}
|
|
8294
7937
|
return serializeAws_json1_1ResourceServerScopeType(entry, context);
|
|
8295
7938
|
});
|
|
8296
7939
|
};
|
|
@@ -8340,9 +7983,6 @@ const serializeAws_json1_1SchemaAttributesListType = (input, context) => {
|
|
|
8340
7983
|
return input
|
|
8341
7984
|
.filter((e) => e != null)
|
|
8342
7985
|
.map((entry) => {
|
|
8343
|
-
if (entry === null) {
|
|
8344
|
-
return null;
|
|
8345
|
-
}
|
|
8346
7986
|
return serializeAws_json1_1SchemaAttributeType(entry, context);
|
|
8347
7987
|
});
|
|
8348
7988
|
};
|
|
@@ -8365,9 +8005,6 @@ const serializeAws_json1_1ScopeListType = (input, context) => {
|
|
|
8365
8005
|
return input
|
|
8366
8006
|
.filter((e) => e != null)
|
|
8367
8007
|
.map((entry) => {
|
|
8368
|
-
if (entry === null) {
|
|
8369
|
-
return null;
|
|
8370
|
-
}
|
|
8371
8008
|
return entry;
|
|
8372
8009
|
});
|
|
8373
8010
|
};
|
|
@@ -8375,9 +8012,6 @@ const serializeAws_json1_1SearchedAttributeNamesListType = (input, context) => {
|
|
|
8375
8012
|
return input
|
|
8376
8013
|
.filter((e) => e != null)
|
|
8377
8014
|
.map((entry) => {
|
|
8378
|
-
if (entry === null) {
|
|
8379
|
-
return null;
|
|
8380
|
-
}
|
|
8381
8015
|
return entry;
|
|
8382
8016
|
});
|
|
8383
8017
|
};
|
|
@@ -8460,9 +8094,6 @@ const serializeAws_json1_1SkippedIPRangeListType = (input, context) => {
|
|
|
8460
8094
|
return input
|
|
8461
8095
|
.filter((e) => e != null)
|
|
8462
8096
|
.map((entry) => {
|
|
8463
|
-
if (entry === null) {
|
|
8464
|
-
return null;
|
|
8465
|
-
}
|
|
8466
8097
|
return entry;
|
|
8467
8098
|
});
|
|
8468
8099
|
};
|
|
@@ -8520,9 +8151,6 @@ const serializeAws_json1_1SupportedIdentityProvidersListType = (input, context)
|
|
|
8520
8151
|
return input
|
|
8521
8152
|
.filter((e) => e != null)
|
|
8522
8153
|
.map((entry) => {
|
|
8523
|
-
if (entry === null) {
|
|
8524
|
-
return null;
|
|
8525
|
-
}
|
|
8526
8154
|
return entry;
|
|
8527
8155
|
});
|
|
8528
8156
|
};
|
|
@@ -8721,9 +8349,6 @@ const serializeAws_json1_1UsernameAttributesListType = (input, context) => {
|
|
|
8721
8349
|
return input
|
|
8722
8350
|
.filter((e) => e != null)
|
|
8723
8351
|
.map((entry) => {
|
|
8724
|
-
if (entry === null) {
|
|
8725
|
-
return null;
|
|
8726
|
-
}
|
|
8727
8352
|
return entry;
|
|
8728
8353
|
});
|
|
8729
8354
|
};
|
|
@@ -8748,9 +8373,6 @@ const serializeAws_json1_1UserPoolTagsListType = (input, context) => {
|
|
|
8748
8373
|
return input
|
|
8749
8374
|
.filter((e) => e != null)
|
|
8750
8375
|
.map((entry) => {
|
|
8751
|
-
if (entry === null) {
|
|
8752
|
-
return null;
|
|
8753
|
-
}
|
|
8754
8376
|
return entry;
|
|
8755
8377
|
});
|
|
8756
8378
|
};
|
|
@@ -8779,9 +8401,6 @@ const serializeAws_json1_1VerifiedAttributesListType = (input, context) => {
|
|
|
8779
8401
|
return input
|
|
8780
8402
|
.filter((e) => e != null)
|
|
8781
8403
|
.map((entry) => {
|
|
8782
|
-
if (entry === null) {
|
|
8783
|
-
return null;
|
|
8784
|
-
}
|
|
8785
8404
|
return entry;
|
|
8786
8405
|
});
|
|
8787
8406
|
};
|