@aws-sdk/client-chime-sdk-meetings 3.503.1 → 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 +40 -625
- package/dist-es/protocols/Aws_restJson1.js +33 -618
- package/package.json +3 -3
|
@@ -241,7 +241,7 @@ export const se_UpdateAttendeeCapabilitiesCommand = async (input, context) => {
|
|
|
241
241
|
};
|
|
242
242
|
export const de_BatchCreateAttendeeCommand = async (output, context) => {
|
|
243
243
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
244
|
-
return
|
|
244
|
+
return de_CommandError(output, context);
|
|
245
245
|
}
|
|
246
246
|
const contents = map({
|
|
247
247
|
$metadata: deserializeMetadata(output),
|
|
@@ -254,52 +254,9 @@ export const de_BatchCreateAttendeeCommand = async (output, context) => {
|
|
|
254
254
|
Object.assign(contents, doc);
|
|
255
255
|
return contents;
|
|
256
256
|
};
|
|
257
|
-
const de_BatchCreateAttendeeCommandError = async (output, context) => {
|
|
258
|
-
const parsedOutput = {
|
|
259
|
-
...output,
|
|
260
|
-
body: await parseErrorBody(output.body, context),
|
|
261
|
-
};
|
|
262
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
263
|
-
switch (errorCode) {
|
|
264
|
-
case "BadRequestException":
|
|
265
|
-
case "com.amazonaws.chimesdkmeetings#BadRequestException":
|
|
266
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
267
|
-
case "ForbiddenException":
|
|
268
|
-
case "com.amazonaws.chimesdkmeetings#ForbiddenException":
|
|
269
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
270
|
-
case "LimitExceededException":
|
|
271
|
-
case "com.amazonaws.chimesdkmeetings#LimitExceededException":
|
|
272
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
273
|
-
case "NotFoundException":
|
|
274
|
-
case "com.amazonaws.chimesdkmeetings#NotFoundException":
|
|
275
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
276
|
-
case "ServiceFailureException":
|
|
277
|
-
case "com.amazonaws.chimesdkmeetings#ServiceFailureException":
|
|
278
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
279
|
-
case "ServiceUnavailableException":
|
|
280
|
-
case "com.amazonaws.chimesdkmeetings#ServiceUnavailableException":
|
|
281
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
282
|
-
case "ThrottlingException":
|
|
283
|
-
case "com.amazonaws.chimesdkmeetings#ThrottlingException":
|
|
284
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
285
|
-
case "UnauthorizedException":
|
|
286
|
-
case "com.amazonaws.chimesdkmeetings#UnauthorizedException":
|
|
287
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
288
|
-
case "UnprocessableEntityException":
|
|
289
|
-
case "com.amazonaws.chimesdkmeetings#UnprocessableEntityException":
|
|
290
|
-
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
291
|
-
default:
|
|
292
|
-
const parsedBody = parsedOutput.body;
|
|
293
|
-
return throwDefaultError({
|
|
294
|
-
output,
|
|
295
|
-
parsedBody,
|
|
296
|
-
errorCode,
|
|
297
|
-
});
|
|
298
|
-
}
|
|
299
|
-
};
|
|
300
257
|
export const de_BatchUpdateAttendeeCapabilitiesExceptCommand = async (output, context) => {
|
|
301
258
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
302
|
-
return
|
|
259
|
+
return de_CommandError(output, context);
|
|
303
260
|
}
|
|
304
261
|
const contents = map({
|
|
305
262
|
$metadata: deserializeMetadata(output),
|
|
@@ -307,49 +264,9 @@ export const de_BatchUpdateAttendeeCapabilitiesExceptCommand = async (output, co
|
|
|
307
264
|
await collectBody(output.body, context);
|
|
308
265
|
return contents;
|
|
309
266
|
};
|
|
310
|
-
const de_BatchUpdateAttendeeCapabilitiesExceptCommandError = async (output, context) => {
|
|
311
|
-
const parsedOutput = {
|
|
312
|
-
...output,
|
|
313
|
-
body: await parseErrorBody(output.body, context),
|
|
314
|
-
};
|
|
315
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
316
|
-
switch (errorCode) {
|
|
317
|
-
case "BadRequestException":
|
|
318
|
-
case "com.amazonaws.chimesdkmeetings#BadRequestException":
|
|
319
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
320
|
-
case "ConflictException":
|
|
321
|
-
case "com.amazonaws.chimesdkmeetings#ConflictException":
|
|
322
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
323
|
-
case "ForbiddenException":
|
|
324
|
-
case "com.amazonaws.chimesdkmeetings#ForbiddenException":
|
|
325
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
326
|
-
case "NotFoundException":
|
|
327
|
-
case "com.amazonaws.chimesdkmeetings#NotFoundException":
|
|
328
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
329
|
-
case "ServiceFailureException":
|
|
330
|
-
case "com.amazonaws.chimesdkmeetings#ServiceFailureException":
|
|
331
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
332
|
-
case "ServiceUnavailableException":
|
|
333
|
-
case "com.amazonaws.chimesdkmeetings#ServiceUnavailableException":
|
|
334
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
335
|
-
case "ThrottlingException":
|
|
336
|
-
case "com.amazonaws.chimesdkmeetings#ThrottlingException":
|
|
337
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
338
|
-
case "UnauthorizedException":
|
|
339
|
-
case "com.amazonaws.chimesdkmeetings#UnauthorizedException":
|
|
340
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
341
|
-
default:
|
|
342
|
-
const parsedBody = parsedOutput.body;
|
|
343
|
-
return throwDefaultError({
|
|
344
|
-
output,
|
|
345
|
-
parsedBody,
|
|
346
|
-
errorCode,
|
|
347
|
-
});
|
|
348
|
-
}
|
|
349
|
-
};
|
|
350
267
|
export const de_CreateAttendeeCommand = async (output, context) => {
|
|
351
268
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
352
|
-
return
|
|
269
|
+
return de_CommandError(output, context);
|
|
353
270
|
}
|
|
354
271
|
const contents = map({
|
|
355
272
|
$metadata: deserializeMetadata(output),
|
|
@@ -361,52 +278,9 @@ export const de_CreateAttendeeCommand = async (output, context) => {
|
|
|
361
278
|
Object.assign(contents, doc);
|
|
362
279
|
return contents;
|
|
363
280
|
};
|
|
364
|
-
const de_CreateAttendeeCommandError = async (output, context) => {
|
|
365
|
-
const parsedOutput = {
|
|
366
|
-
...output,
|
|
367
|
-
body: await parseErrorBody(output.body, context),
|
|
368
|
-
};
|
|
369
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
370
|
-
switch (errorCode) {
|
|
371
|
-
case "BadRequestException":
|
|
372
|
-
case "com.amazonaws.chimesdkmeetings#BadRequestException":
|
|
373
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
374
|
-
case "ForbiddenException":
|
|
375
|
-
case "com.amazonaws.chimesdkmeetings#ForbiddenException":
|
|
376
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
377
|
-
case "LimitExceededException":
|
|
378
|
-
case "com.amazonaws.chimesdkmeetings#LimitExceededException":
|
|
379
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
380
|
-
case "NotFoundException":
|
|
381
|
-
case "com.amazonaws.chimesdkmeetings#NotFoundException":
|
|
382
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
383
|
-
case "ServiceFailureException":
|
|
384
|
-
case "com.amazonaws.chimesdkmeetings#ServiceFailureException":
|
|
385
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
386
|
-
case "ServiceUnavailableException":
|
|
387
|
-
case "com.amazonaws.chimesdkmeetings#ServiceUnavailableException":
|
|
388
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
389
|
-
case "ThrottlingException":
|
|
390
|
-
case "com.amazonaws.chimesdkmeetings#ThrottlingException":
|
|
391
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
392
|
-
case "UnauthorizedException":
|
|
393
|
-
case "com.amazonaws.chimesdkmeetings#UnauthorizedException":
|
|
394
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
395
|
-
case "UnprocessableEntityException":
|
|
396
|
-
case "com.amazonaws.chimesdkmeetings#UnprocessableEntityException":
|
|
397
|
-
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
398
|
-
default:
|
|
399
|
-
const parsedBody = parsedOutput.body;
|
|
400
|
-
return throwDefaultError({
|
|
401
|
-
output,
|
|
402
|
-
parsedBody,
|
|
403
|
-
errorCode,
|
|
404
|
-
});
|
|
405
|
-
}
|
|
406
|
-
};
|
|
407
281
|
export const de_CreateMeetingCommand = async (output, context) => {
|
|
408
282
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
409
|
-
return
|
|
283
|
+
return de_CommandError(output, context);
|
|
410
284
|
}
|
|
411
285
|
const contents = map({
|
|
412
286
|
$metadata: deserializeMetadata(output),
|
|
@@ -418,49 +292,9 @@ export const de_CreateMeetingCommand = async (output, context) => {
|
|
|
418
292
|
Object.assign(contents, doc);
|
|
419
293
|
return contents;
|
|
420
294
|
};
|
|
421
|
-
const de_CreateMeetingCommandError = async (output, context) => {
|
|
422
|
-
const parsedOutput = {
|
|
423
|
-
...output,
|
|
424
|
-
body: await parseErrorBody(output.body, context),
|
|
425
|
-
};
|
|
426
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
427
|
-
switch (errorCode) {
|
|
428
|
-
case "BadRequestException":
|
|
429
|
-
case "com.amazonaws.chimesdkmeetings#BadRequestException":
|
|
430
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
431
|
-
case "ConflictException":
|
|
432
|
-
case "com.amazonaws.chimesdkmeetings#ConflictException":
|
|
433
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
434
|
-
case "ForbiddenException":
|
|
435
|
-
case "com.amazonaws.chimesdkmeetings#ForbiddenException":
|
|
436
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
437
|
-
case "LimitExceededException":
|
|
438
|
-
case "com.amazonaws.chimesdkmeetings#LimitExceededException":
|
|
439
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
440
|
-
case "ServiceFailureException":
|
|
441
|
-
case "com.amazonaws.chimesdkmeetings#ServiceFailureException":
|
|
442
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
443
|
-
case "ServiceUnavailableException":
|
|
444
|
-
case "com.amazonaws.chimesdkmeetings#ServiceUnavailableException":
|
|
445
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
446
|
-
case "ThrottlingException":
|
|
447
|
-
case "com.amazonaws.chimesdkmeetings#ThrottlingException":
|
|
448
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
449
|
-
case "UnauthorizedException":
|
|
450
|
-
case "com.amazonaws.chimesdkmeetings#UnauthorizedException":
|
|
451
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
452
|
-
default:
|
|
453
|
-
const parsedBody = parsedOutput.body;
|
|
454
|
-
return throwDefaultError({
|
|
455
|
-
output,
|
|
456
|
-
parsedBody,
|
|
457
|
-
errorCode,
|
|
458
|
-
});
|
|
459
|
-
}
|
|
460
|
-
};
|
|
461
295
|
export const de_CreateMeetingWithAttendeesCommand = async (output, context) => {
|
|
462
296
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
463
|
-
return
|
|
297
|
+
return de_CommandError(output, context);
|
|
464
298
|
}
|
|
465
299
|
const contents = map({
|
|
466
300
|
$metadata: deserializeMetadata(output),
|
|
@@ -474,49 +308,9 @@ export const de_CreateMeetingWithAttendeesCommand = async (output, context) => {
|
|
|
474
308
|
Object.assign(contents, doc);
|
|
475
309
|
return contents;
|
|
476
310
|
};
|
|
477
|
-
const de_CreateMeetingWithAttendeesCommandError = async (output, context) => {
|
|
478
|
-
const parsedOutput = {
|
|
479
|
-
...output,
|
|
480
|
-
body: await parseErrorBody(output.body, context),
|
|
481
|
-
};
|
|
482
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
483
|
-
switch (errorCode) {
|
|
484
|
-
case "BadRequestException":
|
|
485
|
-
case "com.amazonaws.chimesdkmeetings#BadRequestException":
|
|
486
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
487
|
-
case "ConflictException":
|
|
488
|
-
case "com.amazonaws.chimesdkmeetings#ConflictException":
|
|
489
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
490
|
-
case "ForbiddenException":
|
|
491
|
-
case "com.amazonaws.chimesdkmeetings#ForbiddenException":
|
|
492
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
493
|
-
case "LimitExceededException":
|
|
494
|
-
case "com.amazonaws.chimesdkmeetings#LimitExceededException":
|
|
495
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
496
|
-
case "ServiceFailureException":
|
|
497
|
-
case "com.amazonaws.chimesdkmeetings#ServiceFailureException":
|
|
498
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
499
|
-
case "ServiceUnavailableException":
|
|
500
|
-
case "com.amazonaws.chimesdkmeetings#ServiceUnavailableException":
|
|
501
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
502
|
-
case "ThrottlingException":
|
|
503
|
-
case "com.amazonaws.chimesdkmeetings#ThrottlingException":
|
|
504
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
505
|
-
case "UnauthorizedException":
|
|
506
|
-
case "com.amazonaws.chimesdkmeetings#UnauthorizedException":
|
|
507
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
508
|
-
default:
|
|
509
|
-
const parsedBody = parsedOutput.body;
|
|
510
|
-
return throwDefaultError({
|
|
511
|
-
output,
|
|
512
|
-
parsedBody,
|
|
513
|
-
errorCode,
|
|
514
|
-
});
|
|
515
|
-
}
|
|
516
|
-
};
|
|
517
311
|
export const de_DeleteAttendeeCommand = async (output, context) => {
|
|
518
312
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
519
|
-
return
|
|
313
|
+
return de_CommandError(output, context);
|
|
520
314
|
}
|
|
521
315
|
const contents = map({
|
|
522
316
|
$metadata: deserializeMetadata(output),
|
|
@@ -524,46 +318,9 @@ export const de_DeleteAttendeeCommand = async (output, context) => {
|
|
|
524
318
|
await collectBody(output.body, context);
|
|
525
319
|
return contents;
|
|
526
320
|
};
|
|
527
|
-
const de_DeleteAttendeeCommandError = async (output, context) => {
|
|
528
|
-
const parsedOutput = {
|
|
529
|
-
...output,
|
|
530
|
-
body: await parseErrorBody(output.body, context),
|
|
531
|
-
};
|
|
532
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
533
|
-
switch (errorCode) {
|
|
534
|
-
case "BadRequestException":
|
|
535
|
-
case "com.amazonaws.chimesdkmeetings#BadRequestException":
|
|
536
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
537
|
-
case "ForbiddenException":
|
|
538
|
-
case "com.amazonaws.chimesdkmeetings#ForbiddenException":
|
|
539
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
540
|
-
case "NotFoundException":
|
|
541
|
-
case "com.amazonaws.chimesdkmeetings#NotFoundException":
|
|
542
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
543
|
-
case "ServiceFailureException":
|
|
544
|
-
case "com.amazonaws.chimesdkmeetings#ServiceFailureException":
|
|
545
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
546
|
-
case "ServiceUnavailableException":
|
|
547
|
-
case "com.amazonaws.chimesdkmeetings#ServiceUnavailableException":
|
|
548
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
549
|
-
case "ThrottlingException":
|
|
550
|
-
case "com.amazonaws.chimesdkmeetings#ThrottlingException":
|
|
551
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
552
|
-
case "UnauthorizedException":
|
|
553
|
-
case "com.amazonaws.chimesdkmeetings#UnauthorizedException":
|
|
554
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
555
|
-
default:
|
|
556
|
-
const parsedBody = parsedOutput.body;
|
|
557
|
-
return throwDefaultError({
|
|
558
|
-
output,
|
|
559
|
-
parsedBody,
|
|
560
|
-
errorCode,
|
|
561
|
-
});
|
|
562
|
-
}
|
|
563
|
-
};
|
|
564
321
|
export const de_DeleteMeetingCommand = async (output, context) => {
|
|
565
322
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
566
|
-
return
|
|
323
|
+
return de_CommandError(output, context);
|
|
567
324
|
}
|
|
568
325
|
const contents = map({
|
|
569
326
|
$metadata: deserializeMetadata(output),
|
|
@@ -571,46 +328,9 @@ export const de_DeleteMeetingCommand = async (output, context) => {
|
|
|
571
328
|
await collectBody(output.body, context);
|
|
572
329
|
return contents;
|
|
573
330
|
};
|
|
574
|
-
const de_DeleteMeetingCommandError = async (output, context) => {
|
|
575
|
-
const parsedOutput = {
|
|
576
|
-
...output,
|
|
577
|
-
body: await parseErrorBody(output.body, context),
|
|
578
|
-
};
|
|
579
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
580
|
-
switch (errorCode) {
|
|
581
|
-
case "BadRequestException":
|
|
582
|
-
case "com.amazonaws.chimesdkmeetings#BadRequestException":
|
|
583
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
584
|
-
case "ForbiddenException":
|
|
585
|
-
case "com.amazonaws.chimesdkmeetings#ForbiddenException":
|
|
586
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
587
|
-
case "NotFoundException":
|
|
588
|
-
case "com.amazonaws.chimesdkmeetings#NotFoundException":
|
|
589
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
590
|
-
case "ServiceFailureException":
|
|
591
|
-
case "com.amazonaws.chimesdkmeetings#ServiceFailureException":
|
|
592
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
593
|
-
case "ServiceUnavailableException":
|
|
594
|
-
case "com.amazonaws.chimesdkmeetings#ServiceUnavailableException":
|
|
595
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
596
|
-
case "ThrottlingException":
|
|
597
|
-
case "com.amazonaws.chimesdkmeetings#ThrottlingException":
|
|
598
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
599
|
-
case "UnauthorizedException":
|
|
600
|
-
case "com.amazonaws.chimesdkmeetings#UnauthorizedException":
|
|
601
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
602
|
-
default:
|
|
603
|
-
const parsedBody = parsedOutput.body;
|
|
604
|
-
return throwDefaultError({
|
|
605
|
-
output,
|
|
606
|
-
parsedBody,
|
|
607
|
-
errorCode,
|
|
608
|
-
});
|
|
609
|
-
}
|
|
610
|
-
};
|
|
611
331
|
export const de_GetAttendeeCommand = async (output, context) => {
|
|
612
332
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
613
|
-
return
|
|
333
|
+
return de_CommandError(output, context);
|
|
614
334
|
}
|
|
615
335
|
const contents = map({
|
|
616
336
|
$metadata: deserializeMetadata(output),
|
|
@@ -622,46 +342,9 @@ export const de_GetAttendeeCommand = async (output, context) => {
|
|
|
622
342
|
Object.assign(contents, doc);
|
|
623
343
|
return contents;
|
|
624
344
|
};
|
|
625
|
-
const de_GetAttendeeCommandError = async (output, context) => {
|
|
626
|
-
const parsedOutput = {
|
|
627
|
-
...output,
|
|
628
|
-
body: await parseErrorBody(output.body, context),
|
|
629
|
-
};
|
|
630
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
631
|
-
switch (errorCode) {
|
|
632
|
-
case "BadRequestException":
|
|
633
|
-
case "com.amazonaws.chimesdkmeetings#BadRequestException":
|
|
634
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
635
|
-
case "ForbiddenException":
|
|
636
|
-
case "com.amazonaws.chimesdkmeetings#ForbiddenException":
|
|
637
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
638
|
-
case "NotFoundException":
|
|
639
|
-
case "com.amazonaws.chimesdkmeetings#NotFoundException":
|
|
640
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
641
|
-
case "ServiceFailureException":
|
|
642
|
-
case "com.amazonaws.chimesdkmeetings#ServiceFailureException":
|
|
643
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
644
|
-
case "ServiceUnavailableException":
|
|
645
|
-
case "com.amazonaws.chimesdkmeetings#ServiceUnavailableException":
|
|
646
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
647
|
-
case "ThrottlingException":
|
|
648
|
-
case "com.amazonaws.chimesdkmeetings#ThrottlingException":
|
|
649
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
650
|
-
case "UnauthorizedException":
|
|
651
|
-
case "com.amazonaws.chimesdkmeetings#UnauthorizedException":
|
|
652
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
653
|
-
default:
|
|
654
|
-
const parsedBody = parsedOutput.body;
|
|
655
|
-
return throwDefaultError({
|
|
656
|
-
output,
|
|
657
|
-
parsedBody,
|
|
658
|
-
errorCode,
|
|
659
|
-
});
|
|
660
|
-
}
|
|
661
|
-
};
|
|
662
345
|
export const de_GetMeetingCommand = async (output, context) => {
|
|
663
346
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
664
|
-
return
|
|
347
|
+
return de_CommandError(output, context);
|
|
665
348
|
}
|
|
666
349
|
const contents = map({
|
|
667
350
|
$metadata: deserializeMetadata(output),
|
|
@@ -671,48 +354,11 @@ export const de_GetMeetingCommand = async (output, context) => {
|
|
|
671
354
|
Meeting: _json,
|
|
672
355
|
});
|
|
673
356
|
Object.assign(contents, doc);
|
|
674
|
-
return contents;
|
|
675
|
-
};
|
|
676
|
-
const de_GetMeetingCommandError = async (output, context) => {
|
|
677
|
-
const parsedOutput = {
|
|
678
|
-
...output,
|
|
679
|
-
body: await parseErrorBody(output.body, context),
|
|
680
|
-
};
|
|
681
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
682
|
-
switch (errorCode) {
|
|
683
|
-
case "BadRequestException":
|
|
684
|
-
case "com.amazonaws.chimesdkmeetings#BadRequestException":
|
|
685
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
686
|
-
case "ForbiddenException":
|
|
687
|
-
case "com.amazonaws.chimesdkmeetings#ForbiddenException":
|
|
688
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
689
|
-
case "NotFoundException":
|
|
690
|
-
case "com.amazonaws.chimesdkmeetings#NotFoundException":
|
|
691
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
692
|
-
case "ServiceFailureException":
|
|
693
|
-
case "com.amazonaws.chimesdkmeetings#ServiceFailureException":
|
|
694
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
695
|
-
case "ServiceUnavailableException":
|
|
696
|
-
case "com.amazonaws.chimesdkmeetings#ServiceUnavailableException":
|
|
697
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
698
|
-
case "ThrottlingException":
|
|
699
|
-
case "com.amazonaws.chimesdkmeetings#ThrottlingException":
|
|
700
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
701
|
-
case "UnauthorizedException":
|
|
702
|
-
case "com.amazonaws.chimesdkmeetings#UnauthorizedException":
|
|
703
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
704
|
-
default:
|
|
705
|
-
const parsedBody = parsedOutput.body;
|
|
706
|
-
return throwDefaultError({
|
|
707
|
-
output,
|
|
708
|
-
parsedBody,
|
|
709
|
-
errorCode,
|
|
710
|
-
});
|
|
711
|
-
}
|
|
357
|
+
return contents;
|
|
712
358
|
};
|
|
713
359
|
export const de_ListAttendeesCommand = async (output, context) => {
|
|
714
360
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
715
|
-
return
|
|
361
|
+
return de_CommandError(output, context);
|
|
716
362
|
}
|
|
717
363
|
const contents = map({
|
|
718
364
|
$metadata: deserializeMetadata(output),
|
|
@@ -725,46 +371,9 @@ export const de_ListAttendeesCommand = async (output, context) => {
|
|
|
725
371
|
Object.assign(contents, doc);
|
|
726
372
|
return contents;
|
|
727
373
|
};
|
|
728
|
-
const de_ListAttendeesCommandError = async (output, context) => {
|
|
729
|
-
const parsedOutput = {
|
|
730
|
-
...output,
|
|
731
|
-
body: await parseErrorBody(output.body, context),
|
|
732
|
-
};
|
|
733
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
734
|
-
switch (errorCode) {
|
|
735
|
-
case "BadRequestException":
|
|
736
|
-
case "com.amazonaws.chimesdkmeetings#BadRequestException":
|
|
737
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
738
|
-
case "ForbiddenException":
|
|
739
|
-
case "com.amazonaws.chimesdkmeetings#ForbiddenException":
|
|
740
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
741
|
-
case "NotFoundException":
|
|
742
|
-
case "com.amazonaws.chimesdkmeetings#NotFoundException":
|
|
743
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
744
|
-
case "ServiceFailureException":
|
|
745
|
-
case "com.amazonaws.chimesdkmeetings#ServiceFailureException":
|
|
746
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
747
|
-
case "ServiceUnavailableException":
|
|
748
|
-
case "com.amazonaws.chimesdkmeetings#ServiceUnavailableException":
|
|
749
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
750
|
-
case "ThrottlingException":
|
|
751
|
-
case "com.amazonaws.chimesdkmeetings#ThrottlingException":
|
|
752
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
753
|
-
case "UnauthorizedException":
|
|
754
|
-
case "com.amazonaws.chimesdkmeetings#UnauthorizedException":
|
|
755
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
756
|
-
default:
|
|
757
|
-
const parsedBody = parsedOutput.body;
|
|
758
|
-
return throwDefaultError({
|
|
759
|
-
output,
|
|
760
|
-
parsedBody,
|
|
761
|
-
errorCode,
|
|
762
|
-
});
|
|
763
|
-
}
|
|
764
|
-
};
|
|
765
374
|
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
766
375
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
767
|
-
return
|
|
376
|
+
return de_CommandError(output, context);
|
|
768
377
|
}
|
|
769
378
|
const contents = map({
|
|
770
379
|
$metadata: deserializeMetadata(output),
|
|
@@ -776,49 +385,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
776
385
|
Object.assign(contents, doc);
|
|
777
386
|
return contents;
|
|
778
387
|
};
|
|
779
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
780
|
-
const parsedOutput = {
|
|
781
|
-
...output,
|
|
782
|
-
body: await parseErrorBody(output.body, context),
|
|
783
|
-
};
|
|
784
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
785
|
-
switch (errorCode) {
|
|
786
|
-
case "BadRequestException":
|
|
787
|
-
case "com.amazonaws.chimesdkmeetings#BadRequestException":
|
|
788
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
789
|
-
case "ForbiddenException":
|
|
790
|
-
case "com.amazonaws.chimesdkmeetings#ForbiddenException":
|
|
791
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
792
|
-
case "LimitExceededException":
|
|
793
|
-
case "com.amazonaws.chimesdkmeetings#LimitExceededException":
|
|
794
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
795
|
-
case "ResourceNotFoundException":
|
|
796
|
-
case "com.amazonaws.chimesdkmeetings#ResourceNotFoundException":
|
|
797
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
798
|
-
case "ServiceFailureException":
|
|
799
|
-
case "com.amazonaws.chimesdkmeetings#ServiceFailureException":
|
|
800
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
801
|
-
case "ServiceUnavailableException":
|
|
802
|
-
case "com.amazonaws.chimesdkmeetings#ServiceUnavailableException":
|
|
803
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
804
|
-
case "ThrottlingException":
|
|
805
|
-
case "com.amazonaws.chimesdkmeetings#ThrottlingException":
|
|
806
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
807
|
-
case "UnauthorizedException":
|
|
808
|
-
case "com.amazonaws.chimesdkmeetings#UnauthorizedException":
|
|
809
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
810
|
-
default:
|
|
811
|
-
const parsedBody = parsedOutput.body;
|
|
812
|
-
return throwDefaultError({
|
|
813
|
-
output,
|
|
814
|
-
parsedBody,
|
|
815
|
-
errorCode,
|
|
816
|
-
});
|
|
817
|
-
}
|
|
818
|
-
};
|
|
819
388
|
export const de_StartMeetingTranscriptionCommand = async (output, context) => {
|
|
820
389
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
821
|
-
return
|
|
390
|
+
return de_CommandError(output, context);
|
|
822
391
|
}
|
|
823
392
|
const contents = map({
|
|
824
393
|
$metadata: deserializeMetadata(output),
|
|
@@ -826,52 +395,9 @@ export const de_StartMeetingTranscriptionCommand = async (output, context) => {
|
|
|
826
395
|
await collectBody(output.body, context);
|
|
827
396
|
return contents;
|
|
828
397
|
};
|
|
829
|
-
const de_StartMeetingTranscriptionCommandError = async (output, context) => {
|
|
830
|
-
const parsedOutput = {
|
|
831
|
-
...output,
|
|
832
|
-
body: await parseErrorBody(output.body, context),
|
|
833
|
-
};
|
|
834
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
835
|
-
switch (errorCode) {
|
|
836
|
-
case "BadRequestException":
|
|
837
|
-
case "com.amazonaws.chimesdkmeetings#BadRequestException":
|
|
838
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
839
|
-
case "ForbiddenException":
|
|
840
|
-
case "com.amazonaws.chimesdkmeetings#ForbiddenException":
|
|
841
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
842
|
-
case "LimitExceededException":
|
|
843
|
-
case "com.amazonaws.chimesdkmeetings#LimitExceededException":
|
|
844
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
845
|
-
case "NotFoundException":
|
|
846
|
-
case "com.amazonaws.chimesdkmeetings#NotFoundException":
|
|
847
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
848
|
-
case "ServiceFailureException":
|
|
849
|
-
case "com.amazonaws.chimesdkmeetings#ServiceFailureException":
|
|
850
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
851
|
-
case "ServiceUnavailableException":
|
|
852
|
-
case "com.amazonaws.chimesdkmeetings#ServiceUnavailableException":
|
|
853
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
854
|
-
case "ThrottlingException":
|
|
855
|
-
case "com.amazonaws.chimesdkmeetings#ThrottlingException":
|
|
856
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
857
|
-
case "UnauthorizedException":
|
|
858
|
-
case "com.amazonaws.chimesdkmeetings#UnauthorizedException":
|
|
859
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
860
|
-
case "UnprocessableEntityException":
|
|
861
|
-
case "com.amazonaws.chimesdkmeetings#UnprocessableEntityException":
|
|
862
|
-
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
863
|
-
default:
|
|
864
|
-
const parsedBody = parsedOutput.body;
|
|
865
|
-
return throwDefaultError({
|
|
866
|
-
output,
|
|
867
|
-
parsedBody,
|
|
868
|
-
errorCode,
|
|
869
|
-
});
|
|
870
|
-
}
|
|
871
|
-
};
|
|
872
398
|
export const de_StopMeetingTranscriptionCommand = async (output, context) => {
|
|
873
399
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
874
|
-
return
|
|
400
|
+
return de_CommandError(output, context);
|
|
875
401
|
}
|
|
876
402
|
const contents = map({
|
|
877
403
|
$metadata: deserializeMetadata(output),
|
|
@@ -879,49 +405,9 @@ export const de_StopMeetingTranscriptionCommand = async (output, context) => {
|
|
|
879
405
|
await collectBody(output.body, context);
|
|
880
406
|
return contents;
|
|
881
407
|
};
|
|
882
|
-
const de_StopMeetingTranscriptionCommandError = async (output, context) => {
|
|
883
|
-
const parsedOutput = {
|
|
884
|
-
...output,
|
|
885
|
-
body: await parseErrorBody(output.body, context),
|
|
886
|
-
};
|
|
887
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
888
|
-
switch (errorCode) {
|
|
889
|
-
case "BadRequestException":
|
|
890
|
-
case "com.amazonaws.chimesdkmeetings#BadRequestException":
|
|
891
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
892
|
-
case "ForbiddenException":
|
|
893
|
-
case "com.amazonaws.chimesdkmeetings#ForbiddenException":
|
|
894
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
895
|
-
case "NotFoundException":
|
|
896
|
-
case "com.amazonaws.chimesdkmeetings#NotFoundException":
|
|
897
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
898
|
-
case "ServiceFailureException":
|
|
899
|
-
case "com.amazonaws.chimesdkmeetings#ServiceFailureException":
|
|
900
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
901
|
-
case "ServiceUnavailableException":
|
|
902
|
-
case "com.amazonaws.chimesdkmeetings#ServiceUnavailableException":
|
|
903
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
904
|
-
case "ThrottlingException":
|
|
905
|
-
case "com.amazonaws.chimesdkmeetings#ThrottlingException":
|
|
906
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
907
|
-
case "UnauthorizedException":
|
|
908
|
-
case "com.amazonaws.chimesdkmeetings#UnauthorizedException":
|
|
909
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
910
|
-
case "UnprocessableEntityException":
|
|
911
|
-
case "com.amazonaws.chimesdkmeetings#UnprocessableEntityException":
|
|
912
|
-
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
913
|
-
default:
|
|
914
|
-
const parsedBody = parsedOutput.body;
|
|
915
|
-
return throwDefaultError({
|
|
916
|
-
output,
|
|
917
|
-
parsedBody,
|
|
918
|
-
errorCode,
|
|
919
|
-
});
|
|
920
|
-
}
|
|
921
|
-
};
|
|
922
408
|
export const de_TagResourceCommand = async (output, context) => {
|
|
923
409
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
924
|
-
return
|
|
410
|
+
return de_CommandError(output, context);
|
|
925
411
|
}
|
|
926
412
|
const contents = map({
|
|
927
413
|
$metadata: deserializeMetadata(output),
|
|
@@ -929,52 +415,9 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
929
415
|
await collectBody(output.body, context);
|
|
930
416
|
return contents;
|
|
931
417
|
};
|
|
932
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
933
|
-
const parsedOutput = {
|
|
934
|
-
...output,
|
|
935
|
-
body: await parseErrorBody(output.body, context),
|
|
936
|
-
};
|
|
937
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
938
|
-
switch (errorCode) {
|
|
939
|
-
case "BadRequestException":
|
|
940
|
-
case "com.amazonaws.chimesdkmeetings#BadRequestException":
|
|
941
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
942
|
-
case "ForbiddenException":
|
|
943
|
-
case "com.amazonaws.chimesdkmeetings#ForbiddenException":
|
|
944
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
945
|
-
case "LimitExceededException":
|
|
946
|
-
case "com.amazonaws.chimesdkmeetings#LimitExceededException":
|
|
947
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
948
|
-
case "ResourceNotFoundException":
|
|
949
|
-
case "com.amazonaws.chimesdkmeetings#ResourceNotFoundException":
|
|
950
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
951
|
-
case "ServiceFailureException":
|
|
952
|
-
case "com.amazonaws.chimesdkmeetings#ServiceFailureException":
|
|
953
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
954
|
-
case "ServiceUnavailableException":
|
|
955
|
-
case "com.amazonaws.chimesdkmeetings#ServiceUnavailableException":
|
|
956
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
957
|
-
case "ThrottlingException":
|
|
958
|
-
case "com.amazonaws.chimesdkmeetings#ThrottlingException":
|
|
959
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
960
|
-
case "TooManyTagsException":
|
|
961
|
-
case "com.amazonaws.chimesdkmeetings#TooManyTagsException":
|
|
962
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
963
|
-
case "UnauthorizedException":
|
|
964
|
-
case "com.amazonaws.chimesdkmeetings#UnauthorizedException":
|
|
965
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
966
|
-
default:
|
|
967
|
-
const parsedBody = parsedOutput.body;
|
|
968
|
-
return throwDefaultError({
|
|
969
|
-
output,
|
|
970
|
-
parsedBody,
|
|
971
|
-
errorCode,
|
|
972
|
-
});
|
|
973
|
-
}
|
|
974
|
-
};
|
|
975
418
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
976
419
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
977
|
-
return
|
|
420
|
+
return de_CommandError(output, context);
|
|
978
421
|
}
|
|
979
422
|
const contents = map({
|
|
980
423
|
$metadata: deserializeMetadata(output),
|
|
@@ -982,49 +425,9 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
982
425
|
await collectBody(output.body, context);
|
|
983
426
|
return contents;
|
|
984
427
|
};
|
|
985
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
986
|
-
const parsedOutput = {
|
|
987
|
-
...output,
|
|
988
|
-
body: await parseErrorBody(output.body, context),
|
|
989
|
-
};
|
|
990
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
991
|
-
switch (errorCode) {
|
|
992
|
-
case "BadRequestException":
|
|
993
|
-
case "com.amazonaws.chimesdkmeetings#BadRequestException":
|
|
994
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
995
|
-
case "ForbiddenException":
|
|
996
|
-
case "com.amazonaws.chimesdkmeetings#ForbiddenException":
|
|
997
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
998
|
-
case "LimitExceededException":
|
|
999
|
-
case "com.amazonaws.chimesdkmeetings#LimitExceededException":
|
|
1000
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1001
|
-
case "ResourceNotFoundException":
|
|
1002
|
-
case "com.amazonaws.chimesdkmeetings#ResourceNotFoundException":
|
|
1003
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1004
|
-
case "ServiceFailureException":
|
|
1005
|
-
case "com.amazonaws.chimesdkmeetings#ServiceFailureException":
|
|
1006
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1007
|
-
case "ServiceUnavailableException":
|
|
1008
|
-
case "com.amazonaws.chimesdkmeetings#ServiceUnavailableException":
|
|
1009
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1010
|
-
case "ThrottlingException":
|
|
1011
|
-
case "com.amazonaws.chimesdkmeetings#ThrottlingException":
|
|
1012
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1013
|
-
case "UnauthorizedException":
|
|
1014
|
-
case "com.amazonaws.chimesdkmeetings#UnauthorizedException":
|
|
1015
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1016
|
-
default:
|
|
1017
|
-
const parsedBody = parsedOutput.body;
|
|
1018
|
-
return throwDefaultError({
|
|
1019
|
-
output,
|
|
1020
|
-
parsedBody,
|
|
1021
|
-
errorCode,
|
|
1022
|
-
});
|
|
1023
|
-
}
|
|
1024
|
-
};
|
|
1025
428
|
export const de_UpdateAttendeeCapabilitiesCommand = async (output, context) => {
|
|
1026
429
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1027
|
-
return
|
|
430
|
+
return de_CommandError(output, context);
|
|
1028
431
|
}
|
|
1029
432
|
const contents = map({
|
|
1030
433
|
$metadata: deserializeMetadata(output),
|
|
@@ -1036,7 +439,7 @@ export const de_UpdateAttendeeCapabilitiesCommand = async (output, context) => {
|
|
|
1036
439
|
Object.assign(contents, doc);
|
|
1037
440
|
return contents;
|
|
1038
441
|
};
|
|
1039
|
-
const
|
|
442
|
+
const de_CommandError = async (output, context) => {
|
|
1040
443
|
const parsedOutput = {
|
|
1041
444
|
...output,
|
|
1042
445
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1046,12 +449,12 @@ const de_UpdateAttendeeCapabilitiesCommandError = async (output, context) => {
|
|
|
1046
449
|
case "BadRequestException":
|
|
1047
450
|
case "com.amazonaws.chimesdkmeetings#BadRequestException":
|
|
1048
451
|
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1049
|
-
case "ConflictException":
|
|
1050
|
-
case "com.amazonaws.chimesdkmeetings#ConflictException":
|
|
1051
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1052
452
|
case "ForbiddenException":
|
|
1053
453
|
case "com.amazonaws.chimesdkmeetings#ForbiddenException":
|
|
1054
454
|
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
455
|
+
case "LimitExceededException":
|
|
456
|
+
case "com.amazonaws.chimesdkmeetings#LimitExceededException":
|
|
457
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1055
458
|
case "NotFoundException":
|
|
1056
459
|
case "com.amazonaws.chimesdkmeetings#NotFoundException":
|
|
1057
460
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
@@ -1067,6 +470,18 @@ const de_UpdateAttendeeCapabilitiesCommandError = async (output, context) => {
|
|
|
1067
470
|
case "UnauthorizedException":
|
|
1068
471
|
case "com.amazonaws.chimesdkmeetings#UnauthorizedException":
|
|
1069
472
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
473
|
+
case "UnprocessableEntityException":
|
|
474
|
+
case "com.amazonaws.chimesdkmeetings#UnprocessableEntityException":
|
|
475
|
+
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
476
|
+
case "ConflictException":
|
|
477
|
+
case "com.amazonaws.chimesdkmeetings#ConflictException":
|
|
478
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
479
|
+
case "ResourceNotFoundException":
|
|
480
|
+
case "com.amazonaws.chimesdkmeetings#ResourceNotFoundException":
|
|
481
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
482
|
+
case "TooManyTagsException":
|
|
483
|
+
case "com.amazonaws.chimesdkmeetings#TooManyTagsException":
|
|
484
|
+
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1070
485
|
default:
|
|
1071
486
|
const parsedBody = parsedOutput.body;
|
|
1072
487
|
return throwDefaultError({
|