@aws-sdk/client-cognito-identity 3.504.0 → 3.507.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/dist-cjs/index.js +54 -778
- package/dist-es/protocols/Aws_json1_1.js +46 -770
- package/package.json +4 -4
|
@@ -142,7 +142,7 @@ export const se_UpdateIdentityPoolCommand = async (input, context) => {
|
|
|
142
142
|
};
|
|
143
143
|
export const de_CreateIdentityPoolCommand = async (output, context) => {
|
|
144
144
|
if (output.statusCode >= 300) {
|
|
145
|
-
return
|
|
145
|
+
return de_CommandError(output, context);
|
|
146
146
|
}
|
|
147
147
|
const data = await parseBody(output.body, context);
|
|
148
148
|
let contents = {};
|
|
@@ -153,43 +153,9 @@ export const de_CreateIdentityPoolCommand = async (output, context) => {
|
|
|
153
153
|
};
|
|
154
154
|
return response;
|
|
155
155
|
};
|
|
156
|
-
const de_CreateIdentityPoolCommandError = async (output, context) => {
|
|
157
|
-
const parsedOutput = {
|
|
158
|
-
...output,
|
|
159
|
-
body: await parseErrorBody(output.body, context),
|
|
160
|
-
};
|
|
161
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
162
|
-
switch (errorCode) {
|
|
163
|
-
case "InternalErrorException":
|
|
164
|
-
case "com.amazonaws.cognitoidentity#InternalErrorException":
|
|
165
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
166
|
-
case "InvalidParameterException":
|
|
167
|
-
case "com.amazonaws.cognitoidentity#InvalidParameterException":
|
|
168
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
169
|
-
case "LimitExceededException":
|
|
170
|
-
case "com.amazonaws.cognitoidentity#LimitExceededException":
|
|
171
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
172
|
-
case "NotAuthorizedException":
|
|
173
|
-
case "com.amazonaws.cognitoidentity#NotAuthorizedException":
|
|
174
|
-
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
175
|
-
case "ResourceConflictException":
|
|
176
|
-
case "com.amazonaws.cognitoidentity#ResourceConflictException":
|
|
177
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
178
|
-
case "TooManyRequestsException":
|
|
179
|
-
case "com.amazonaws.cognitoidentity#TooManyRequestsException":
|
|
180
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
181
|
-
default:
|
|
182
|
-
const parsedBody = parsedOutput.body;
|
|
183
|
-
return throwDefaultError({
|
|
184
|
-
output,
|
|
185
|
-
parsedBody,
|
|
186
|
-
errorCode,
|
|
187
|
-
});
|
|
188
|
-
}
|
|
189
|
-
};
|
|
190
156
|
export const de_DeleteIdentitiesCommand = async (output, context) => {
|
|
191
157
|
if (output.statusCode >= 300) {
|
|
192
|
-
return
|
|
158
|
+
return de_CommandError(output, context);
|
|
193
159
|
}
|
|
194
160
|
const data = await parseBody(output.body, context);
|
|
195
161
|
let contents = {};
|
|
@@ -200,34 +166,9 @@ export const de_DeleteIdentitiesCommand = async (output, context) => {
|
|
|
200
166
|
};
|
|
201
167
|
return response;
|
|
202
168
|
};
|
|
203
|
-
const de_DeleteIdentitiesCommandError = async (output, context) => {
|
|
204
|
-
const parsedOutput = {
|
|
205
|
-
...output,
|
|
206
|
-
body: await parseErrorBody(output.body, context),
|
|
207
|
-
};
|
|
208
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
209
|
-
switch (errorCode) {
|
|
210
|
-
case "InternalErrorException":
|
|
211
|
-
case "com.amazonaws.cognitoidentity#InternalErrorException":
|
|
212
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
213
|
-
case "InvalidParameterException":
|
|
214
|
-
case "com.amazonaws.cognitoidentity#InvalidParameterException":
|
|
215
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
216
|
-
case "TooManyRequestsException":
|
|
217
|
-
case "com.amazonaws.cognitoidentity#TooManyRequestsException":
|
|
218
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
219
|
-
default:
|
|
220
|
-
const parsedBody = parsedOutput.body;
|
|
221
|
-
return throwDefaultError({
|
|
222
|
-
output,
|
|
223
|
-
parsedBody,
|
|
224
|
-
errorCode,
|
|
225
|
-
});
|
|
226
|
-
}
|
|
227
|
-
};
|
|
228
169
|
export const de_DeleteIdentityPoolCommand = async (output, context) => {
|
|
229
170
|
if (output.statusCode >= 300) {
|
|
230
|
-
return
|
|
171
|
+
return de_CommandError(output, context);
|
|
231
172
|
}
|
|
232
173
|
await collectBody(output.body, context);
|
|
233
174
|
const response = {
|
|
@@ -235,40 +176,9 @@ export const de_DeleteIdentityPoolCommand = async (output, context) => {
|
|
|
235
176
|
};
|
|
236
177
|
return response;
|
|
237
178
|
};
|
|
238
|
-
const de_DeleteIdentityPoolCommandError = async (output, context) => {
|
|
239
|
-
const parsedOutput = {
|
|
240
|
-
...output,
|
|
241
|
-
body: await parseErrorBody(output.body, context),
|
|
242
|
-
};
|
|
243
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
244
|
-
switch (errorCode) {
|
|
245
|
-
case "InternalErrorException":
|
|
246
|
-
case "com.amazonaws.cognitoidentity#InternalErrorException":
|
|
247
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
248
|
-
case "InvalidParameterException":
|
|
249
|
-
case "com.amazonaws.cognitoidentity#InvalidParameterException":
|
|
250
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
251
|
-
case "NotAuthorizedException":
|
|
252
|
-
case "com.amazonaws.cognitoidentity#NotAuthorizedException":
|
|
253
|
-
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
254
|
-
case "ResourceNotFoundException":
|
|
255
|
-
case "com.amazonaws.cognitoidentity#ResourceNotFoundException":
|
|
256
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
257
|
-
case "TooManyRequestsException":
|
|
258
|
-
case "com.amazonaws.cognitoidentity#TooManyRequestsException":
|
|
259
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
260
|
-
default:
|
|
261
|
-
const parsedBody = parsedOutput.body;
|
|
262
|
-
return throwDefaultError({
|
|
263
|
-
output,
|
|
264
|
-
parsedBody,
|
|
265
|
-
errorCode,
|
|
266
|
-
});
|
|
267
|
-
}
|
|
268
|
-
};
|
|
269
179
|
export const de_DescribeIdentityCommand = async (output, context) => {
|
|
270
180
|
if (output.statusCode >= 300) {
|
|
271
|
-
return
|
|
181
|
+
return de_CommandError(output, context);
|
|
272
182
|
}
|
|
273
183
|
const data = await parseBody(output.body, context);
|
|
274
184
|
let contents = {};
|
|
@@ -279,40 +189,9 @@ export const de_DescribeIdentityCommand = async (output, context) => {
|
|
|
279
189
|
};
|
|
280
190
|
return response;
|
|
281
191
|
};
|
|
282
|
-
const de_DescribeIdentityCommandError = async (output, context) => {
|
|
283
|
-
const parsedOutput = {
|
|
284
|
-
...output,
|
|
285
|
-
body: await parseErrorBody(output.body, context),
|
|
286
|
-
};
|
|
287
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
288
|
-
switch (errorCode) {
|
|
289
|
-
case "InternalErrorException":
|
|
290
|
-
case "com.amazonaws.cognitoidentity#InternalErrorException":
|
|
291
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
292
|
-
case "InvalidParameterException":
|
|
293
|
-
case "com.amazonaws.cognitoidentity#InvalidParameterException":
|
|
294
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
295
|
-
case "NotAuthorizedException":
|
|
296
|
-
case "com.amazonaws.cognitoidentity#NotAuthorizedException":
|
|
297
|
-
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
298
|
-
case "ResourceNotFoundException":
|
|
299
|
-
case "com.amazonaws.cognitoidentity#ResourceNotFoundException":
|
|
300
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
301
|
-
case "TooManyRequestsException":
|
|
302
|
-
case "com.amazonaws.cognitoidentity#TooManyRequestsException":
|
|
303
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
304
|
-
default:
|
|
305
|
-
const parsedBody = parsedOutput.body;
|
|
306
|
-
return throwDefaultError({
|
|
307
|
-
output,
|
|
308
|
-
parsedBody,
|
|
309
|
-
errorCode,
|
|
310
|
-
});
|
|
311
|
-
}
|
|
312
|
-
};
|
|
313
192
|
export const de_DescribeIdentityPoolCommand = async (output, context) => {
|
|
314
193
|
if (output.statusCode >= 300) {
|
|
315
|
-
return
|
|
194
|
+
return de_CommandError(output, context);
|
|
316
195
|
}
|
|
317
196
|
const data = await parseBody(output.body, context);
|
|
318
197
|
let contents = {};
|
|
@@ -323,40 +202,9 @@ export const de_DescribeIdentityPoolCommand = async (output, context) => {
|
|
|
323
202
|
};
|
|
324
203
|
return response;
|
|
325
204
|
};
|
|
326
|
-
const de_DescribeIdentityPoolCommandError = async (output, context) => {
|
|
327
|
-
const parsedOutput = {
|
|
328
|
-
...output,
|
|
329
|
-
body: await parseErrorBody(output.body, context),
|
|
330
|
-
};
|
|
331
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
332
|
-
switch (errorCode) {
|
|
333
|
-
case "InternalErrorException":
|
|
334
|
-
case "com.amazonaws.cognitoidentity#InternalErrorException":
|
|
335
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
336
|
-
case "InvalidParameterException":
|
|
337
|
-
case "com.amazonaws.cognitoidentity#InvalidParameterException":
|
|
338
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
339
|
-
case "NotAuthorizedException":
|
|
340
|
-
case "com.amazonaws.cognitoidentity#NotAuthorizedException":
|
|
341
|
-
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
342
|
-
case "ResourceNotFoundException":
|
|
343
|
-
case "com.amazonaws.cognitoidentity#ResourceNotFoundException":
|
|
344
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
345
|
-
case "TooManyRequestsException":
|
|
346
|
-
case "com.amazonaws.cognitoidentity#TooManyRequestsException":
|
|
347
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
348
|
-
default:
|
|
349
|
-
const parsedBody = parsedOutput.body;
|
|
350
|
-
return throwDefaultError({
|
|
351
|
-
output,
|
|
352
|
-
parsedBody,
|
|
353
|
-
errorCode,
|
|
354
|
-
});
|
|
355
|
-
}
|
|
356
|
-
};
|
|
357
205
|
export const de_GetCredentialsForIdentityCommand = async (output, context) => {
|
|
358
206
|
if (output.statusCode >= 300) {
|
|
359
|
-
return
|
|
207
|
+
return de_CommandError(output, context);
|
|
360
208
|
}
|
|
361
209
|
const data = await parseBody(output.body, context);
|
|
362
210
|
let contents = {};
|
|
@@ -367,49 +215,9 @@ export const de_GetCredentialsForIdentityCommand = async (output, context) => {
|
|
|
367
215
|
};
|
|
368
216
|
return response;
|
|
369
217
|
};
|
|
370
|
-
const de_GetCredentialsForIdentityCommandError = async (output, context) => {
|
|
371
|
-
const parsedOutput = {
|
|
372
|
-
...output,
|
|
373
|
-
body: await parseErrorBody(output.body, context),
|
|
374
|
-
};
|
|
375
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
376
|
-
switch (errorCode) {
|
|
377
|
-
case "ExternalServiceException":
|
|
378
|
-
case "com.amazonaws.cognitoidentity#ExternalServiceException":
|
|
379
|
-
throw await de_ExternalServiceExceptionRes(parsedOutput, context);
|
|
380
|
-
case "InternalErrorException":
|
|
381
|
-
case "com.amazonaws.cognitoidentity#InternalErrorException":
|
|
382
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
383
|
-
case "InvalidIdentityPoolConfigurationException":
|
|
384
|
-
case "com.amazonaws.cognitoidentity#InvalidIdentityPoolConfigurationException":
|
|
385
|
-
throw await de_InvalidIdentityPoolConfigurationExceptionRes(parsedOutput, context);
|
|
386
|
-
case "InvalidParameterException":
|
|
387
|
-
case "com.amazonaws.cognitoidentity#InvalidParameterException":
|
|
388
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
389
|
-
case "NotAuthorizedException":
|
|
390
|
-
case "com.amazonaws.cognitoidentity#NotAuthorizedException":
|
|
391
|
-
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
392
|
-
case "ResourceConflictException":
|
|
393
|
-
case "com.amazonaws.cognitoidentity#ResourceConflictException":
|
|
394
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
395
|
-
case "ResourceNotFoundException":
|
|
396
|
-
case "com.amazonaws.cognitoidentity#ResourceNotFoundException":
|
|
397
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
398
|
-
case "TooManyRequestsException":
|
|
399
|
-
case "com.amazonaws.cognitoidentity#TooManyRequestsException":
|
|
400
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
401
|
-
default:
|
|
402
|
-
const parsedBody = parsedOutput.body;
|
|
403
|
-
return throwDefaultError({
|
|
404
|
-
output,
|
|
405
|
-
parsedBody,
|
|
406
|
-
errorCode,
|
|
407
|
-
});
|
|
408
|
-
}
|
|
409
|
-
};
|
|
410
218
|
export const de_GetIdCommand = async (output, context) => {
|
|
411
219
|
if (output.statusCode >= 300) {
|
|
412
|
-
return
|
|
220
|
+
return de_CommandError(output, context);
|
|
413
221
|
}
|
|
414
222
|
const data = await parseBody(output.body, context);
|
|
415
223
|
let contents = {};
|
|
@@ -420,49 +228,9 @@ export const de_GetIdCommand = async (output, context) => {
|
|
|
420
228
|
};
|
|
421
229
|
return response;
|
|
422
230
|
};
|
|
423
|
-
const de_GetIdCommandError = async (output, context) => {
|
|
424
|
-
const parsedOutput = {
|
|
425
|
-
...output,
|
|
426
|
-
body: await parseErrorBody(output.body, context),
|
|
427
|
-
};
|
|
428
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
429
|
-
switch (errorCode) {
|
|
430
|
-
case "ExternalServiceException":
|
|
431
|
-
case "com.amazonaws.cognitoidentity#ExternalServiceException":
|
|
432
|
-
throw await de_ExternalServiceExceptionRes(parsedOutput, context);
|
|
433
|
-
case "InternalErrorException":
|
|
434
|
-
case "com.amazonaws.cognitoidentity#InternalErrorException":
|
|
435
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
436
|
-
case "InvalidParameterException":
|
|
437
|
-
case "com.amazonaws.cognitoidentity#InvalidParameterException":
|
|
438
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
439
|
-
case "LimitExceededException":
|
|
440
|
-
case "com.amazonaws.cognitoidentity#LimitExceededException":
|
|
441
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
442
|
-
case "NotAuthorizedException":
|
|
443
|
-
case "com.amazonaws.cognitoidentity#NotAuthorizedException":
|
|
444
|
-
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
445
|
-
case "ResourceConflictException":
|
|
446
|
-
case "com.amazonaws.cognitoidentity#ResourceConflictException":
|
|
447
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
448
|
-
case "ResourceNotFoundException":
|
|
449
|
-
case "com.amazonaws.cognitoidentity#ResourceNotFoundException":
|
|
450
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
451
|
-
case "TooManyRequestsException":
|
|
452
|
-
case "com.amazonaws.cognitoidentity#TooManyRequestsException":
|
|
453
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
454
|
-
default:
|
|
455
|
-
const parsedBody = parsedOutput.body;
|
|
456
|
-
return throwDefaultError({
|
|
457
|
-
output,
|
|
458
|
-
parsedBody,
|
|
459
|
-
errorCode,
|
|
460
|
-
});
|
|
461
|
-
}
|
|
462
|
-
};
|
|
463
231
|
export const de_GetIdentityPoolRolesCommand = async (output, context) => {
|
|
464
232
|
if (output.statusCode >= 300) {
|
|
465
|
-
return
|
|
233
|
+
return de_CommandError(output, context);
|
|
466
234
|
}
|
|
467
235
|
const data = await parseBody(output.body, context);
|
|
468
236
|
let contents = {};
|
|
@@ -473,43 +241,9 @@ export const de_GetIdentityPoolRolesCommand = async (output, context) => {
|
|
|
473
241
|
};
|
|
474
242
|
return response;
|
|
475
243
|
};
|
|
476
|
-
const de_GetIdentityPoolRolesCommandError = async (output, context) => {
|
|
477
|
-
const parsedOutput = {
|
|
478
|
-
...output,
|
|
479
|
-
body: await parseErrorBody(output.body, context),
|
|
480
|
-
};
|
|
481
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
482
|
-
switch (errorCode) {
|
|
483
|
-
case "InternalErrorException":
|
|
484
|
-
case "com.amazonaws.cognitoidentity#InternalErrorException":
|
|
485
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
486
|
-
case "InvalidParameterException":
|
|
487
|
-
case "com.amazonaws.cognitoidentity#InvalidParameterException":
|
|
488
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
489
|
-
case "NotAuthorizedException":
|
|
490
|
-
case "com.amazonaws.cognitoidentity#NotAuthorizedException":
|
|
491
|
-
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
492
|
-
case "ResourceConflictException":
|
|
493
|
-
case "com.amazonaws.cognitoidentity#ResourceConflictException":
|
|
494
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
495
|
-
case "ResourceNotFoundException":
|
|
496
|
-
case "com.amazonaws.cognitoidentity#ResourceNotFoundException":
|
|
497
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
498
|
-
case "TooManyRequestsException":
|
|
499
|
-
case "com.amazonaws.cognitoidentity#TooManyRequestsException":
|
|
500
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
501
|
-
default:
|
|
502
|
-
const parsedBody = parsedOutput.body;
|
|
503
|
-
return throwDefaultError({
|
|
504
|
-
output,
|
|
505
|
-
parsedBody,
|
|
506
|
-
errorCode,
|
|
507
|
-
});
|
|
508
|
-
}
|
|
509
|
-
};
|
|
510
244
|
export const de_GetOpenIdTokenCommand = async (output, context) => {
|
|
511
245
|
if (output.statusCode >= 300) {
|
|
512
|
-
return
|
|
246
|
+
return de_CommandError(output, context);
|
|
513
247
|
}
|
|
514
248
|
const data = await parseBody(output.body, context);
|
|
515
249
|
let contents = {};
|
|
@@ -520,46 +254,9 @@ export const de_GetOpenIdTokenCommand = async (output, context) => {
|
|
|
520
254
|
};
|
|
521
255
|
return response;
|
|
522
256
|
};
|
|
523
|
-
const de_GetOpenIdTokenCommandError = async (output, context) => {
|
|
524
|
-
const parsedOutput = {
|
|
525
|
-
...output,
|
|
526
|
-
body: await parseErrorBody(output.body, context),
|
|
527
|
-
};
|
|
528
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
529
|
-
switch (errorCode) {
|
|
530
|
-
case "ExternalServiceException":
|
|
531
|
-
case "com.amazonaws.cognitoidentity#ExternalServiceException":
|
|
532
|
-
throw await de_ExternalServiceExceptionRes(parsedOutput, context);
|
|
533
|
-
case "InternalErrorException":
|
|
534
|
-
case "com.amazonaws.cognitoidentity#InternalErrorException":
|
|
535
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
536
|
-
case "InvalidParameterException":
|
|
537
|
-
case "com.amazonaws.cognitoidentity#InvalidParameterException":
|
|
538
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
539
|
-
case "NotAuthorizedException":
|
|
540
|
-
case "com.amazonaws.cognitoidentity#NotAuthorizedException":
|
|
541
|
-
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
542
|
-
case "ResourceConflictException":
|
|
543
|
-
case "com.amazonaws.cognitoidentity#ResourceConflictException":
|
|
544
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
545
|
-
case "ResourceNotFoundException":
|
|
546
|
-
case "com.amazonaws.cognitoidentity#ResourceNotFoundException":
|
|
547
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
548
|
-
case "TooManyRequestsException":
|
|
549
|
-
case "com.amazonaws.cognitoidentity#TooManyRequestsException":
|
|
550
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
551
|
-
default:
|
|
552
|
-
const parsedBody = parsedOutput.body;
|
|
553
|
-
return throwDefaultError({
|
|
554
|
-
output,
|
|
555
|
-
parsedBody,
|
|
556
|
-
errorCode,
|
|
557
|
-
});
|
|
558
|
-
}
|
|
559
|
-
};
|
|
560
257
|
export const de_GetOpenIdTokenForDeveloperIdentityCommand = async (output, context) => {
|
|
561
258
|
if (output.statusCode >= 300) {
|
|
562
|
-
return
|
|
259
|
+
return de_CommandError(output, context);
|
|
563
260
|
}
|
|
564
261
|
const data = await parseBody(output.body, context);
|
|
565
262
|
let contents = {};
|
|
@@ -570,46 +267,9 @@ export const de_GetOpenIdTokenForDeveloperIdentityCommand = async (output, conte
|
|
|
570
267
|
};
|
|
571
268
|
return response;
|
|
572
269
|
};
|
|
573
|
-
const de_GetOpenIdTokenForDeveloperIdentityCommandError = async (output, context) => {
|
|
574
|
-
const parsedOutput = {
|
|
575
|
-
...output,
|
|
576
|
-
body: await parseErrorBody(output.body, context),
|
|
577
|
-
};
|
|
578
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
579
|
-
switch (errorCode) {
|
|
580
|
-
case "DeveloperUserAlreadyRegisteredException":
|
|
581
|
-
case "com.amazonaws.cognitoidentity#DeveloperUserAlreadyRegisteredException":
|
|
582
|
-
throw await de_DeveloperUserAlreadyRegisteredExceptionRes(parsedOutput, context);
|
|
583
|
-
case "InternalErrorException":
|
|
584
|
-
case "com.amazonaws.cognitoidentity#InternalErrorException":
|
|
585
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
586
|
-
case "InvalidParameterException":
|
|
587
|
-
case "com.amazonaws.cognitoidentity#InvalidParameterException":
|
|
588
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
589
|
-
case "NotAuthorizedException":
|
|
590
|
-
case "com.amazonaws.cognitoidentity#NotAuthorizedException":
|
|
591
|
-
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
592
|
-
case "ResourceConflictException":
|
|
593
|
-
case "com.amazonaws.cognitoidentity#ResourceConflictException":
|
|
594
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
595
|
-
case "ResourceNotFoundException":
|
|
596
|
-
case "com.amazonaws.cognitoidentity#ResourceNotFoundException":
|
|
597
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
598
|
-
case "TooManyRequestsException":
|
|
599
|
-
case "com.amazonaws.cognitoidentity#TooManyRequestsException":
|
|
600
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
601
|
-
default:
|
|
602
|
-
const parsedBody = parsedOutput.body;
|
|
603
|
-
return throwDefaultError({
|
|
604
|
-
output,
|
|
605
|
-
parsedBody,
|
|
606
|
-
errorCode,
|
|
607
|
-
});
|
|
608
|
-
}
|
|
609
|
-
};
|
|
610
270
|
export const de_GetPrincipalTagAttributeMapCommand = async (output, context) => {
|
|
611
271
|
if (output.statusCode >= 300) {
|
|
612
|
-
return
|
|
272
|
+
return de_CommandError(output, context);
|
|
613
273
|
}
|
|
614
274
|
const data = await parseBody(output.body, context);
|
|
615
275
|
let contents = {};
|
|
@@ -620,40 +280,9 @@ export const de_GetPrincipalTagAttributeMapCommand = async (output, context) =>
|
|
|
620
280
|
};
|
|
621
281
|
return response;
|
|
622
282
|
};
|
|
623
|
-
const de_GetPrincipalTagAttributeMapCommandError = async (output, context) => {
|
|
624
|
-
const parsedOutput = {
|
|
625
|
-
...output,
|
|
626
|
-
body: await parseErrorBody(output.body, context),
|
|
627
|
-
};
|
|
628
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
629
|
-
switch (errorCode) {
|
|
630
|
-
case "InternalErrorException":
|
|
631
|
-
case "com.amazonaws.cognitoidentity#InternalErrorException":
|
|
632
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
633
|
-
case "InvalidParameterException":
|
|
634
|
-
case "com.amazonaws.cognitoidentity#InvalidParameterException":
|
|
635
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
636
|
-
case "NotAuthorizedException":
|
|
637
|
-
case "com.amazonaws.cognitoidentity#NotAuthorizedException":
|
|
638
|
-
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
639
|
-
case "ResourceNotFoundException":
|
|
640
|
-
case "com.amazonaws.cognitoidentity#ResourceNotFoundException":
|
|
641
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
642
|
-
case "TooManyRequestsException":
|
|
643
|
-
case "com.amazonaws.cognitoidentity#TooManyRequestsException":
|
|
644
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
645
|
-
default:
|
|
646
|
-
const parsedBody = parsedOutput.body;
|
|
647
|
-
return throwDefaultError({
|
|
648
|
-
output,
|
|
649
|
-
parsedBody,
|
|
650
|
-
errorCode,
|
|
651
|
-
});
|
|
652
|
-
}
|
|
653
|
-
};
|
|
654
283
|
export const de_ListIdentitiesCommand = async (output, context) => {
|
|
655
284
|
if (output.statusCode >= 300) {
|
|
656
|
-
return
|
|
285
|
+
return de_CommandError(output, context);
|
|
657
286
|
}
|
|
658
287
|
const data = await parseBody(output.body, context);
|
|
659
288
|
let contents = {};
|
|
@@ -664,40 +293,9 @@ export const de_ListIdentitiesCommand = async (output, context) => {
|
|
|
664
293
|
};
|
|
665
294
|
return response;
|
|
666
295
|
};
|
|
667
|
-
const de_ListIdentitiesCommandError = async (output, context) => {
|
|
668
|
-
const parsedOutput = {
|
|
669
|
-
...output,
|
|
670
|
-
body: await parseErrorBody(output.body, context),
|
|
671
|
-
};
|
|
672
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
673
|
-
switch (errorCode) {
|
|
674
|
-
case "InternalErrorException":
|
|
675
|
-
case "com.amazonaws.cognitoidentity#InternalErrorException":
|
|
676
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
677
|
-
case "InvalidParameterException":
|
|
678
|
-
case "com.amazonaws.cognitoidentity#InvalidParameterException":
|
|
679
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
680
|
-
case "NotAuthorizedException":
|
|
681
|
-
case "com.amazonaws.cognitoidentity#NotAuthorizedException":
|
|
682
|
-
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
683
|
-
case "ResourceNotFoundException":
|
|
684
|
-
case "com.amazonaws.cognitoidentity#ResourceNotFoundException":
|
|
685
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
686
|
-
case "TooManyRequestsException":
|
|
687
|
-
case "com.amazonaws.cognitoidentity#TooManyRequestsException":
|
|
688
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
689
|
-
default:
|
|
690
|
-
const parsedBody = parsedOutput.body;
|
|
691
|
-
return throwDefaultError({
|
|
692
|
-
output,
|
|
693
|
-
parsedBody,
|
|
694
|
-
errorCode,
|
|
695
|
-
});
|
|
696
|
-
}
|
|
697
|
-
};
|
|
698
296
|
export const de_ListIdentityPoolsCommand = async (output, context) => {
|
|
699
297
|
if (output.statusCode >= 300) {
|
|
700
|
-
return
|
|
298
|
+
return de_CommandError(output, context);
|
|
701
299
|
}
|
|
702
300
|
const data = await parseBody(output.body, context);
|
|
703
301
|
let contents = {};
|
|
@@ -708,40 +306,9 @@ export const de_ListIdentityPoolsCommand = async (output, context) => {
|
|
|
708
306
|
};
|
|
709
307
|
return response;
|
|
710
308
|
};
|
|
711
|
-
const de_ListIdentityPoolsCommandError = async (output, context) => {
|
|
712
|
-
const parsedOutput = {
|
|
713
|
-
...output,
|
|
714
|
-
body: await parseErrorBody(output.body, context),
|
|
715
|
-
};
|
|
716
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
717
|
-
switch (errorCode) {
|
|
718
|
-
case "InternalErrorException":
|
|
719
|
-
case "com.amazonaws.cognitoidentity#InternalErrorException":
|
|
720
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
721
|
-
case "InvalidParameterException":
|
|
722
|
-
case "com.amazonaws.cognitoidentity#InvalidParameterException":
|
|
723
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
724
|
-
case "NotAuthorizedException":
|
|
725
|
-
case "com.amazonaws.cognitoidentity#NotAuthorizedException":
|
|
726
|
-
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
727
|
-
case "ResourceNotFoundException":
|
|
728
|
-
case "com.amazonaws.cognitoidentity#ResourceNotFoundException":
|
|
729
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
730
|
-
case "TooManyRequestsException":
|
|
731
|
-
case "com.amazonaws.cognitoidentity#TooManyRequestsException":
|
|
732
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
733
|
-
default:
|
|
734
|
-
const parsedBody = parsedOutput.body;
|
|
735
|
-
return throwDefaultError({
|
|
736
|
-
output,
|
|
737
|
-
parsedBody,
|
|
738
|
-
errorCode,
|
|
739
|
-
});
|
|
740
|
-
}
|
|
741
|
-
};
|
|
742
309
|
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
743
310
|
if (output.statusCode >= 300) {
|
|
744
|
-
return
|
|
311
|
+
return de_CommandError(output, context);
|
|
745
312
|
}
|
|
746
313
|
const data = await parseBody(output.body, context);
|
|
747
314
|
let contents = {};
|
|
@@ -752,87 +319,22 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
752
319
|
};
|
|
753
320
|
return response;
|
|
754
321
|
};
|
|
755
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
756
|
-
const parsedOutput = {
|
|
757
|
-
...output,
|
|
758
|
-
body: await parseErrorBody(output.body, context),
|
|
759
|
-
};
|
|
760
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
761
|
-
switch (errorCode) {
|
|
762
|
-
case "InternalErrorException":
|
|
763
|
-
case "com.amazonaws.cognitoidentity#InternalErrorException":
|
|
764
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
765
|
-
case "InvalidParameterException":
|
|
766
|
-
case "com.amazonaws.cognitoidentity#InvalidParameterException":
|
|
767
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
768
|
-
case "NotAuthorizedException":
|
|
769
|
-
case "com.amazonaws.cognitoidentity#NotAuthorizedException":
|
|
770
|
-
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
771
|
-
case "ResourceNotFoundException":
|
|
772
|
-
case "com.amazonaws.cognitoidentity#ResourceNotFoundException":
|
|
773
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
774
|
-
case "TooManyRequestsException":
|
|
775
|
-
case "com.amazonaws.cognitoidentity#TooManyRequestsException":
|
|
776
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
777
|
-
default:
|
|
778
|
-
const parsedBody = parsedOutput.body;
|
|
779
|
-
return throwDefaultError({
|
|
780
|
-
output,
|
|
781
|
-
parsedBody,
|
|
782
|
-
errorCode,
|
|
783
|
-
});
|
|
784
|
-
}
|
|
785
|
-
};
|
|
786
322
|
export const de_LookupDeveloperIdentityCommand = async (output, context) => {
|
|
787
323
|
if (output.statusCode >= 300) {
|
|
788
|
-
return
|
|
324
|
+
return de_CommandError(output, context);
|
|
789
325
|
}
|
|
790
326
|
const data = await parseBody(output.body, context);
|
|
791
|
-
let contents = {};
|
|
792
|
-
contents = _json(data);
|
|
793
|
-
const response = {
|
|
794
|
-
$metadata: deserializeMetadata(output),
|
|
795
|
-
...contents,
|
|
796
|
-
};
|
|
797
|
-
return response;
|
|
798
|
-
};
|
|
799
|
-
const de_LookupDeveloperIdentityCommandError = async (output, context) => {
|
|
800
|
-
const parsedOutput = {
|
|
801
|
-
...output,
|
|
802
|
-
body: await parseErrorBody(output.body, context),
|
|
803
|
-
};
|
|
804
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
805
|
-
switch (errorCode) {
|
|
806
|
-
case "InternalErrorException":
|
|
807
|
-
case "com.amazonaws.cognitoidentity#InternalErrorException":
|
|
808
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
809
|
-
case "InvalidParameterException":
|
|
810
|
-
case "com.amazonaws.cognitoidentity#InvalidParameterException":
|
|
811
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
812
|
-
case "NotAuthorizedException":
|
|
813
|
-
case "com.amazonaws.cognitoidentity#NotAuthorizedException":
|
|
814
|
-
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
815
|
-
case "ResourceConflictException":
|
|
816
|
-
case "com.amazonaws.cognitoidentity#ResourceConflictException":
|
|
817
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
818
|
-
case "ResourceNotFoundException":
|
|
819
|
-
case "com.amazonaws.cognitoidentity#ResourceNotFoundException":
|
|
820
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
821
|
-
case "TooManyRequestsException":
|
|
822
|
-
case "com.amazonaws.cognitoidentity#TooManyRequestsException":
|
|
823
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
824
|
-
default:
|
|
825
|
-
const parsedBody = parsedOutput.body;
|
|
826
|
-
return throwDefaultError({
|
|
827
|
-
output,
|
|
828
|
-
parsedBody,
|
|
829
|
-
errorCode,
|
|
830
|
-
});
|
|
831
|
-
}
|
|
327
|
+
let contents = {};
|
|
328
|
+
contents = _json(data);
|
|
329
|
+
const response = {
|
|
330
|
+
$metadata: deserializeMetadata(output),
|
|
331
|
+
...contents,
|
|
332
|
+
};
|
|
333
|
+
return response;
|
|
832
334
|
};
|
|
833
335
|
export const de_MergeDeveloperIdentitiesCommand = async (output, context) => {
|
|
834
336
|
if (output.statusCode >= 300) {
|
|
835
|
-
return
|
|
337
|
+
return de_CommandError(output, context);
|
|
836
338
|
}
|
|
837
339
|
const data = await parseBody(output.body, context);
|
|
838
340
|
let contents = {};
|
|
@@ -843,43 +345,9 @@ export const de_MergeDeveloperIdentitiesCommand = async (output, context) => {
|
|
|
843
345
|
};
|
|
844
346
|
return response;
|
|
845
347
|
};
|
|
846
|
-
const de_MergeDeveloperIdentitiesCommandError = async (output, context) => {
|
|
847
|
-
const parsedOutput = {
|
|
848
|
-
...output,
|
|
849
|
-
body: await parseErrorBody(output.body, context),
|
|
850
|
-
};
|
|
851
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
852
|
-
switch (errorCode) {
|
|
853
|
-
case "InternalErrorException":
|
|
854
|
-
case "com.amazonaws.cognitoidentity#InternalErrorException":
|
|
855
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
856
|
-
case "InvalidParameterException":
|
|
857
|
-
case "com.amazonaws.cognitoidentity#InvalidParameterException":
|
|
858
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
859
|
-
case "NotAuthorizedException":
|
|
860
|
-
case "com.amazonaws.cognitoidentity#NotAuthorizedException":
|
|
861
|
-
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
862
|
-
case "ResourceConflictException":
|
|
863
|
-
case "com.amazonaws.cognitoidentity#ResourceConflictException":
|
|
864
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
865
|
-
case "ResourceNotFoundException":
|
|
866
|
-
case "com.amazonaws.cognitoidentity#ResourceNotFoundException":
|
|
867
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
868
|
-
case "TooManyRequestsException":
|
|
869
|
-
case "com.amazonaws.cognitoidentity#TooManyRequestsException":
|
|
870
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
871
|
-
default:
|
|
872
|
-
const parsedBody = parsedOutput.body;
|
|
873
|
-
return throwDefaultError({
|
|
874
|
-
output,
|
|
875
|
-
parsedBody,
|
|
876
|
-
errorCode,
|
|
877
|
-
});
|
|
878
|
-
}
|
|
879
|
-
};
|
|
880
348
|
export const de_SetIdentityPoolRolesCommand = async (output, context) => {
|
|
881
349
|
if (output.statusCode >= 300) {
|
|
882
|
-
return
|
|
350
|
+
return de_CommandError(output, context);
|
|
883
351
|
}
|
|
884
352
|
await collectBody(output.body, context);
|
|
885
353
|
const response = {
|
|
@@ -887,46 +355,9 @@ export const de_SetIdentityPoolRolesCommand = async (output, context) => {
|
|
|
887
355
|
};
|
|
888
356
|
return response;
|
|
889
357
|
};
|
|
890
|
-
const de_SetIdentityPoolRolesCommandError = async (output, context) => {
|
|
891
|
-
const parsedOutput = {
|
|
892
|
-
...output,
|
|
893
|
-
body: await parseErrorBody(output.body, context),
|
|
894
|
-
};
|
|
895
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
896
|
-
switch (errorCode) {
|
|
897
|
-
case "ConcurrentModificationException":
|
|
898
|
-
case "com.amazonaws.cognitoidentity#ConcurrentModificationException":
|
|
899
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
900
|
-
case "InternalErrorException":
|
|
901
|
-
case "com.amazonaws.cognitoidentity#InternalErrorException":
|
|
902
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
903
|
-
case "InvalidParameterException":
|
|
904
|
-
case "com.amazonaws.cognitoidentity#InvalidParameterException":
|
|
905
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
906
|
-
case "NotAuthorizedException":
|
|
907
|
-
case "com.amazonaws.cognitoidentity#NotAuthorizedException":
|
|
908
|
-
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
909
|
-
case "ResourceConflictException":
|
|
910
|
-
case "com.amazonaws.cognitoidentity#ResourceConflictException":
|
|
911
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
912
|
-
case "ResourceNotFoundException":
|
|
913
|
-
case "com.amazonaws.cognitoidentity#ResourceNotFoundException":
|
|
914
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
915
|
-
case "TooManyRequestsException":
|
|
916
|
-
case "com.amazonaws.cognitoidentity#TooManyRequestsException":
|
|
917
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
918
|
-
default:
|
|
919
|
-
const parsedBody = parsedOutput.body;
|
|
920
|
-
return throwDefaultError({
|
|
921
|
-
output,
|
|
922
|
-
parsedBody,
|
|
923
|
-
errorCode,
|
|
924
|
-
});
|
|
925
|
-
}
|
|
926
|
-
};
|
|
927
358
|
export const de_SetPrincipalTagAttributeMapCommand = async (output, context) => {
|
|
928
359
|
if (output.statusCode >= 300) {
|
|
929
|
-
return
|
|
360
|
+
return de_CommandError(output, context);
|
|
930
361
|
}
|
|
931
362
|
const data = await parseBody(output.body, context);
|
|
932
363
|
let contents = {};
|
|
@@ -937,40 +368,9 @@ export const de_SetPrincipalTagAttributeMapCommand = async (output, context) =>
|
|
|
937
368
|
};
|
|
938
369
|
return response;
|
|
939
370
|
};
|
|
940
|
-
const de_SetPrincipalTagAttributeMapCommandError = async (output, context) => {
|
|
941
|
-
const parsedOutput = {
|
|
942
|
-
...output,
|
|
943
|
-
body: await parseErrorBody(output.body, context),
|
|
944
|
-
};
|
|
945
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
946
|
-
switch (errorCode) {
|
|
947
|
-
case "InternalErrorException":
|
|
948
|
-
case "com.amazonaws.cognitoidentity#InternalErrorException":
|
|
949
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
950
|
-
case "InvalidParameterException":
|
|
951
|
-
case "com.amazonaws.cognitoidentity#InvalidParameterException":
|
|
952
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
953
|
-
case "NotAuthorizedException":
|
|
954
|
-
case "com.amazonaws.cognitoidentity#NotAuthorizedException":
|
|
955
|
-
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
956
|
-
case "ResourceNotFoundException":
|
|
957
|
-
case "com.amazonaws.cognitoidentity#ResourceNotFoundException":
|
|
958
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
959
|
-
case "TooManyRequestsException":
|
|
960
|
-
case "com.amazonaws.cognitoidentity#TooManyRequestsException":
|
|
961
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
962
|
-
default:
|
|
963
|
-
const parsedBody = parsedOutput.body;
|
|
964
|
-
return throwDefaultError({
|
|
965
|
-
output,
|
|
966
|
-
parsedBody,
|
|
967
|
-
errorCode,
|
|
968
|
-
});
|
|
969
|
-
}
|
|
970
|
-
};
|
|
971
371
|
export const de_TagResourceCommand = async (output, context) => {
|
|
972
372
|
if (output.statusCode >= 300) {
|
|
973
|
-
return
|
|
373
|
+
return de_CommandError(output, context);
|
|
974
374
|
}
|
|
975
375
|
const data = await parseBody(output.body, context);
|
|
976
376
|
let contents = {};
|
|
@@ -981,40 +381,9 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
981
381
|
};
|
|
982
382
|
return response;
|
|
983
383
|
};
|
|
984
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
985
|
-
const parsedOutput = {
|
|
986
|
-
...output,
|
|
987
|
-
body: await parseErrorBody(output.body, context),
|
|
988
|
-
};
|
|
989
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
990
|
-
switch (errorCode) {
|
|
991
|
-
case "InternalErrorException":
|
|
992
|
-
case "com.amazonaws.cognitoidentity#InternalErrorException":
|
|
993
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
994
|
-
case "InvalidParameterException":
|
|
995
|
-
case "com.amazonaws.cognitoidentity#InvalidParameterException":
|
|
996
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
997
|
-
case "NotAuthorizedException":
|
|
998
|
-
case "com.amazonaws.cognitoidentity#NotAuthorizedException":
|
|
999
|
-
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
1000
|
-
case "ResourceNotFoundException":
|
|
1001
|
-
case "com.amazonaws.cognitoidentity#ResourceNotFoundException":
|
|
1002
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1003
|
-
case "TooManyRequestsException":
|
|
1004
|
-
case "com.amazonaws.cognitoidentity#TooManyRequestsException":
|
|
1005
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1006
|
-
default:
|
|
1007
|
-
const parsedBody = parsedOutput.body;
|
|
1008
|
-
return throwDefaultError({
|
|
1009
|
-
output,
|
|
1010
|
-
parsedBody,
|
|
1011
|
-
errorCode,
|
|
1012
|
-
});
|
|
1013
|
-
}
|
|
1014
|
-
};
|
|
1015
384
|
export const de_UnlinkDeveloperIdentityCommand = async (output, context) => {
|
|
1016
385
|
if (output.statusCode >= 300) {
|
|
1017
|
-
return
|
|
386
|
+
return de_CommandError(output, context);
|
|
1018
387
|
}
|
|
1019
388
|
await collectBody(output.body, context);
|
|
1020
389
|
const response = {
|
|
@@ -1022,43 +391,9 @@ export const de_UnlinkDeveloperIdentityCommand = async (output, context) => {
|
|
|
1022
391
|
};
|
|
1023
392
|
return response;
|
|
1024
393
|
};
|
|
1025
|
-
const de_UnlinkDeveloperIdentityCommandError = async (output, context) => {
|
|
1026
|
-
const parsedOutput = {
|
|
1027
|
-
...output,
|
|
1028
|
-
body: await parseErrorBody(output.body, context),
|
|
1029
|
-
};
|
|
1030
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1031
|
-
switch (errorCode) {
|
|
1032
|
-
case "InternalErrorException":
|
|
1033
|
-
case "com.amazonaws.cognitoidentity#InternalErrorException":
|
|
1034
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1035
|
-
case "InvalidParameterException":
|
|
1036
|
-
case "com.amazonaws.cognitoidentity#InvalidParameterException":
|
|
1037
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1038
|
-
case "NotAuthorizedException":
|
|
1039
|
-
case "com.amazonaws.cognitoidentity#NotAuthorizedException":
|
|
1040
|
-
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
1041
|
-
case "ResourceConflictException":
|
|
1042
|
-
case "com.amazonaws.cognitoidentity#ResourceConflictException":
|
|
1043
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
1044
|
-
case "ResourceNotFoundException":
|
|
1045
|
-
case "com.amazonaws.cognitoidentity#ResourceNotFoundException":
|
|
1046
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1047
|
-
case "TooManyRequestsException":
|
|
1048
|
-
case "com.amazonaws.cognitoidentity#TooManyRequestsException":
|
|
1049
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1050
|
-
default:
|
|
1051
|
-
const parsedBody = parsedOutput.body;
|
|
1052
|
-
return throwDefaultError({
|
|
1053
|
-
output,
|
|
1054
|
-
parsedBody,
|
|
1055
|
-
errorCode,
|
|
1056
|
-
});
|
|
1057
|
-
}
|
|
1058
|
-
};
|
|
1059
394
|
export const de_UnlinkIdentityCommand = async (output, context) => {
|
|
1060
395
|
if (output.statusCode >= 300) {
|
|
1061
|
-
return
|
|
396
|
+
return de_CommandError(output, context);
|
|
1062
397
|
}
|
|
1063
398
|
await collectBody(output.body, context);
|
|
1064
399
|
const response = {
|
|
@@ -1066,46 +401,9 @@ export const de_UnlinkIdentityCommand = async (output, context) => {
|
|
|
1066
401
|
};
|
|
1067
402
|
return response;
|
|
1068
403
|
};
|
|
1069
|
-
const de_UnlinkIdentityCommandError = async (output, context) => {
|
|
1070
|
-
const parsedOutput = {
|
|
1071
|
-
...output,
|
|
1072
|
-
body: await parseErrorBody(output.body, context),
|
|
1073
|
-
};
|
|
1074
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1075
|
-
switch (errorCode) {
|
|
1076
|
-
case "ExternalServiceException":
|
|
1077
|
-
case "com.amazonaws.cognitoidentity#ExternalServiceException":
|
|
1078
|
-
throw await de_ExternalServiceExceptionRes(parsedOutput, context);
|
|
1079
|
-
case "InternalErrorException":
|
|
1080
|
-
case "com.amazonaws.cognitoidentity#InternalErrorException":
|
|
1081
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1082
|
-
case "InvalidParameterException":
|
|
1083
|
-
case "com.amazonaws.cognitoidentity#InvalidParameterException":
|
|
1084
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1085
|
-
case "NotAuthorizedException":
|
|
1086
|
-
case "com.amazonaws.cognitoidentity#NotAuthorizedException":
|
|
1087
|
-
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
1088
|
-
case "ResourceConflictException":
|
|
1089
|
-
case "com.amazonaws.cognitoidentity#ResourceConflictException":
|
|
1090
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
1091
|
-
case "ResourceNotFoundException":
|
|
1092
|
-
case "com.amazonaws.cognitoidentity#ResourceNotFoundException":
|
|
1093
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1094
|
-
case "TooManyRequestsException":
|
|
1095
|
-
case "com.amazonaws.cognitoidentity#TooManyRequestsException":
|
|
1096
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1097
|
-
default:
|
|
1098
|
-
const parsedBody = parsedOutput.body;
|
|
1099
|
-
return throwDefaultError({
|
|
1100
|
-
output,
|
|
1101
|
-
parsedBody,
|
|
1102
|
-
errorCode,
|
|
1103
|
-
});
|
|
1104
|
-
}
|
|
1105
|
-
};
|
|
1106
404
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
1107
405
|
if (output.statusCode >= 300) {
|
|
1108
|
-
return
|
|
406
|
+
return de_CommandError(output, context);
|
|
1109
407
|
}
|
|
1110
408
|
const data = await parseBody(output.body, context);
|
|
1111
409
|
let contents = {};
|
|
@@ -1116,40 +414,9 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
1116
414
|
};
|
|
1117
415
|
return response;
|
|
1118
416
|
};
|
|
1119
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
1120
|
-
const parsedOutput = {
|
|
1121
|
-
...output,
|
|
1122
|
-
body: await parseErrorBody(output.body, context),
|
|
1123
|
-
};
|
|
1124
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1125
|
-
switch (errorCode) {
|
|
1126
|
-
case "InternalErrorException":
|
|
1127
|
-
case "com.amazonaws.cognitoidentity#InternalErrorException":
|
|
1128
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1129
|
-
case "InvalidParameterException":
|
|
1130
|
-
case "com.amazonaws.cognitoidentity#InvalidParameterException":
|
|
1131
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1132
|
-
case "NotAuthorizedException":
|
|
1133
|
-
case "com.amazonaws.cognitoidentity#NotAuthorizedException":
|
|
1134
|
-
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
1135
|
-
case "ResourceNotFoundException":
|
|
1136
|
-
case "com.amazonaws.cognitoidentity#ResourceNotFoundException":
|
|
1137
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1138
|
-
case "TooManyRequestsException":
|
|
1139
|
-
case "com.amazonaws.cognitoidentity#TooManyRequestsException":
|
|
1140
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1141
|
-
default:
|
|
1142
|
-
const parsedBody = parsedOutput.body;
|
|
1143
|
-
return throwDefaultError({
|
|
1144
|
-
output,
|
|
1145
|
-
parsedBody,
|
|
1146
|
-
errorCode,
|
|
1147
|
-
});
|
|
1148
|
-
}
|
|
1149
|
-
};
|
|
1150
417
|
export const de_UpdateIdentityPoolCommand = async (output, context) => {
|
|
1151
418
|
if (output.statusCode >= 300) {
|
|
1152
|
-
return
|
|
419
|
+
return de_CommandError(output, context);
|
|
1153
420
|
}
|
|
1154
421
|
const data = await parseBody(output.body, context);
|
|
1155
422
|
let contents = {};
|
|
@@ -1160,16 +427,13 @@ export const de_UpdateIdentityPoolCommand = async (output, context) => {
|
|
|
1160
427
|
};
|
|
1161
428
|
return response;
|
|
1162
429
|
};
|
|
1163
|
-
const
|
|
430
|
+
const de_CommandError = async (output, context) => {
|
|
1164
431
|
const parsedOutput = {
|
|
1165
432
|
...output,
|
|
1166
433
|
body: await parseErrorBody(output.body, context),
|
|
1167
434
|
};
|
|
1168
435
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1169
436
|
switch (errorCode) {
|
|
1170
|
-
case "ConcurrentModificationException":
|
|
1171
|
-
case "com.amazonaws.cognitoidentity#ConcurrentModificationException":
|
|
1172
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1173
437
|
case "InternalErrorException":
|
|
1174
438
|
case "com.amazonaws.cognitoidentity#InternalErrorException":
|
|
1175
439
|
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
@@ -1185,12 +449,24 @@ const de_UpdateIdentityPoolCommandError = async (output, context) => {
|
|
|
1185
449
|
case "ResourceConflictException":
|
|
1186
450
|
case "com.amazonaws.cognitoidentity#ResourceConflictException":
|
|
1187
451
|
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
1188
|
-
case "ResourceNotFoundException":
|
|
1189
|
-
case "com.amazonaws.cognitoidentity#ResourceNotFoundException":
|
|
1190
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1191
452
|
case "TooManyRequestsException":
|
|
1192
453
|
case "com.amazonaws.cognitoidentity#TooManyRequestsException":
|
|
1193
454
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
455
|
+
case "ResourceNotFoundException":
|
|
456
|
+
case "com.amazonaws.cognitoidentity#ResourceNotFoundException":
|
|
457
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
458
|
+
case "ExternalServiceException":
|
|
459
|
+
case "com.amazonaws.cognitoidentity#ExternalServiceException":
|
|
460
|
+
throw await de_ExternalServiceExceptionRes(parsedOutput, context);
|
|
461
|
+
case "InvalidIdentityPoolConfigurationException":
|
|
462
|
+
case "com.amazonaws.cognitoidentity#InvalidIdentityPoolConfigurationException":
|
|
463
|
+
throw await de_InvalidIdentityPoolConfigurationExceptionRes(parsedOutput, context);
|
|
464
|
+
case "DeveloperUserAlreadyRegisteredException":
|
|
465
|
+
case "com.amazonaws.cognitoidentity#DeveloperUserAlreadyRegisteredException":
|
|
466
|
+
throw await de_DeveloperUserAlreadyRegisteredExceptionRes(parsedOutput, context);
|
|
467
|
+
case "ConcurrentModificationException":
|
|
468
|
+
case "com.amazonaws.cognitoidentity#ConcurrentModificationException":
|
|
469
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1194
470
|
default:
|
|
1195
471
|
const parsedBody = parsedOutput.body;
|
|
1196
472
|
return throwDefaultError({
|