@aws-sdk/client-chime-sdk-meetings 3.50.0 → 3.53.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/ChimeSDKMeetingsServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +115 -1
- package/dist-cjs/protocols/Aws_restJson1.js +139 -458
- package/dist-es/index.js +1 -0
- package/dist-es/models/ChimeSDKMeetingsServiceException.js +12 -0
- package/dist-es/models/models_0.js +108 -1
- package/dist-es/protocols/Aws_restJson1.js +261 -510
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/ChimeSDKMeetingsServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +51 -22
- package/dist-types/ts3.4/ChimeSDKMeetings.d.ts +60 -0
- package/dist-types/ts3.4/ChimeSDKMeetingsClient.d.ts +84 -0
- package/dist-types/ts3.4/commands/BatchCreateAttendeeCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateAttendeeCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateMeetingCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateMeetingWithAttendeesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteAttendeeCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteMeetingCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetAttendeeCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetMeetingCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListAttendeesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/StartMeetingTranscriptionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/StopMeetingTranscriptionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +11 -0
- package/dist-types/ts3.4/endpoints.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +6 -0
- package/dist-types/ts3.4/models/ChimeSDKMeetingsServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +511 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListAttendeesPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +35 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +38 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +38 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +37 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +11 -0
- package/package.json +33 -33
|
@@ -4,6 +4,8 @@ exports.deserializeAws_restJson1StopMeetingTranscriptionCommand = exports.deseri
|
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const uuid_1 = require("uuid");
|
|
7
|
+
const ChimeSDKMeetingsServiceException_1 = require("../models/ChimeSDKMeetingsServiceException");
|
|
8
|
+
const models_0_1 = require("../models/models_0");
|
|
7
9
|
const serializeAws_restJson1BatchCreateAttendeeCommand = async (input, context) => {
|
|
8
10
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
9
11
|
const headers = {
|
|
@@ -405,67 +407,31 @@ const deserializeAws_restJson1BatchCreateAttendeeCommandError = async (output, c
|
|
|
405
407
|
switch (errorCode) {
|
|
406
408
|
case "BadRequestException":
|
|
407
409
|
case "com.amazonaws.chimesdkmeetings#BadRequestException":
|
|
408
|
-
|
|
409
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
410
|
-
name: errorCode,
|
|
411
|
-
$metadata: deserializeMetadata(output),
|
|
412
|
-
};
|
|
413
|
-
break;
|
|
410
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
414
411
|
case "ForbiddenException":
|
|
415
412
|
case "com.amazonaws.chimesdkmeetings#ForbiddenException":
|
|
416
|
-
|
|
417
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
418
|
-
name: errorCode,
|
|
419
|
-
$metadata: deserializeMetadata(output),
|
|
420
|
-
};
|
|
421
|
-
break;
|
|
413
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
422
414
|
case "LimitExceededException":
|
|
423
415
|
case "com.amazonaws.chimesdkmeetings#LimitExceededException":
|
|
424
|
-
|
|
425
|
-
...(await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
426
|
-
name: errorCode,
|
|
427
|
-
$metadata: deserializeMetadata(output),
|
|
428
|
-
};
|
|
429
|
-
break;
|
|
416
|
+
throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
|
|
430
417
|
case "NotFoundException":
|
|
431
418
|
case "com.amazonaws.chimesdkmeetings#NotFoundException":
|
|
432
|
-
|
|
433
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
434
|
-
name: errorCode,
|
|
435
|
-
$metadata: deserializeMetadata(output),
|
|
436
|
-
};
|
|
437
|
-
break;
|
|
419
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
438
420
|
case "ServiceUnavailableException":
|
|
439
421
|
case "com.amazonaws.chimesdkmeetings#ServiceUnavailableException":
|
|
440
|
-
|
|
441
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
442
|
-
name: errorCode,
|
|
443
|
-
$metadata: deserializeMetadata(output),
|
|
444
|
-
};
|
|
445
|
-
break;
|
|
422
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
446
423
|
case "UnauthorizedException":
|
|
447
424
|
case "com.amazonaws.chimesdkmeetings#UnauthorizedException":
|
|
448
|
-
|
|
449
|
-
...(await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)),
|
|
450
|
-
name: errorCode,
|
|
451
|
-
$metadata: deserializeMetadata(output),
|
|
452
|
-
};
|
|
453
|
-
break;
|
|
425
|
+
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
454
426
|
default:
|
|
455
427
|
const parsedBody = parsedOutput.body;
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
...parsedBody,
|
|
459
|
-
name: `${errorCode}`,
|
|
460
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
428
|
+
response = new ChimeSDKMeetingsServiceException_1.ChimeSDKMeetingsServiceException({
|
|
429
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
461
430
|
$fault: "client",
|
|
462
431
|
$metadata: deserializeMetadata(output),
|
|
463
|
-
};
|
|
432
|
+
});
|
|
433
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
464
434
|
}
|
|
465
|
-
const message = response.message || response.Message || errorCode;
|
|
466
|
-
response.message = message;
|
|
467
|
-
delete response.Message;
|
|
468
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
469
435
|
};
|
|
470
436
|
const deserializeAws_restJson1CreateAttendeeCommand = async (output, context) => {
|
|
471
437
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -493,75 +459,34 @@ const deserializeAws_restJson1CreateAttendeeCommandError = async (output, contex
|
|
|
493
459
|
switch (errorCode) {
|
|
494
460
|
case "BadRequestException":
|
|
495
461
|
case "com.amazonaws.chimesdkmeetings#BadRequestException":
|
|
496
|
-
|
|
497
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
498
|
-
name: errorCode,
|
|
499
|
-
$metadata: deserializeMetadata(output),
|
|
500
|
-
};
|
|
501
|
-
break;
|
|
462
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
502
463
|
case "ForbiddenException":
|
|
503
464
|
case "com.amazonaws.chimesdkmeetings#ForbiddenException":
|
|
504
|
-
|
|
505
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
506
|
-
name: errorCode,
|
|
507
|
-
$metadata: deserializeMetadata(output),
|
|
508
|
-
};
|
|
509
|
-
break;
|
|
465
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
510
466
|
case "LimitExceededException":
|
|
511
467
|
case "com.amazonaws.chimesdkmeetings#LimitExceededException":
|
|
512
|
-
|
|
513
|
-
...(await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
514
|
-
name: errorCode,
|
|
515
|
-
$metadata: deserializeMetadata(output),
|
|
516
|
-
};
|
|
517
|
-
break;
|
|
468
|
+
throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
|
|
518
469
|
case "NotFoundException":
|
|
519
470
|
case "com.amazonaws.chimesdkmeetings#NotFoundException":
|
|
520
|
-
|
|
521
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
522
|
-
name: errorCode,
|
|
523
|
-
$metadata: deserializeMetadata(output),
|
|
524
|
-
};
|
|
525
|
-
break;
|
|
471
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
526
472
|
case "ServiceUnavailableException":
|
|
527
473
|
case "com.amazonaws.chimesdkmeetings#ServiceUnavailableException":
|
|
528
|
-
|
|
529
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
530
|
-
name: errorCode,
|
|
531
|
-
$metadata: deserializeMetadata(output),
|
|
532
|
-
};
|
|
533
|
-
break;
|
|
474
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
534
475
|
case "UnauthorizedException":
|
|
535
476
|
case "com.amazonaws.chimesdkmeetings#UnauthorizedException":
|
|
536
|
-
|
|
537
|
-
...(await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)),
|
|
538
|
-
name: errorCode,
|
|
539
|
-
$metadata: deserializeMetadata(output),
|
|
540
|
-
};
|
|
541
|
-
break;
|
|
477
|
+
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
542
478
|
case "UnprocessableEntityException":
|
|
543
479
|
case "com.amazonaws.chimesdkmeetings#UnprocessableEntityException":
|
|
544
|
-
|
|
545
|
-
...(await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context)),
|
|
546
|
-
name: errorCode,
|
|
547
|
-
$metadata: deserializeMetadata(output),
|
|
548
|
-
};
|
|
549
|
-
break;
|
|
480
|
+
throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
|
|
550
481
|
default:
|
|
551
482
|
const parsedBody = parsedOutput.body;
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
...parsedBody,
|
|
555
|
-
name: `${errorCode}`,
|
|
556
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
483
|
+
response = new ChimeSDKMeetingsServiceException_1.ChimeSDKMeetingsServiceException({
|
|
484
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
557
485
|
$fault: "client",
|
|
558
486
|
$metadata: deserializeMetadata(output),
|
|
559
|
-
};
|
|
487
|
+
});
|
|
488
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
560
489
|
}
|
|
561
|
-
const message = response.message || response.Message || errorCode;
|
|
562
|
-
response.message = message;
|
|
563
|
-
delete response.Message;
|
|
564
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
565
490
|
};
|
|
566
491
|
const deserializeAws_restJson1CreateMeetingCommand = async (output, context) => {
|
|
567
492
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -589,51 +514,25 @@ const deserializeAws_restJson1CreateMeetingCommandError = async (output, context
|
|
|
589
514
|
switch (errorCode) {
|
|
590
515
|
case "BadRequestException":
|
|
591
516
|
case "com.amazonaws.chimesdkmeetings#BadRequestException":
|
|
592
|
-
|
|
593
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
594
|
-
name: errorCode,
|
|
595
|
-
$metadata: deserializeMetadata(output),
|
|
596
|
-
};
|
|
597
|
-
break;
|
|
517
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
598
518
|
case "LimitExceededException":
|
|
599
519
|
case "com.amazonaws.chimesdkmeetings#LimitExceededException":
|
|
600
|
-
|
|
601
|
-
...(await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
602
|
-
name: errorCode,
|
|
603
|
-
$metadata: deserializeMetadata(output),
|
|
604
|
-
};
|
|
605
|
-
break;
|
|
520
|
+
throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
|
|
606
521
|
case "ServiceUnavailableException":
|
|
607
522
|
case "com.amazonaws.chimesdkmeetings#ServiceUnavailableException":
|
|
608
|
-
|
|
609
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
610
|
-
name: errorCode,
|
|
611
|
-
$metadata: deserializeMetadata(output),
|
|
612
|
-
};
|
|
613
|
-
break;
|
|
523
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
614
524
|
case "UnauthorizedException":
|
|
615
525
|
case "com.amazonaws.chimesdkmeetings#UnauthorizedException":
|
|
616
|
-
|
|
617
|
-
...(await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)),
|
|
618
|
-
name: errorCode,
|
|
619
|
-
$metadata: deserializeMetadata(output),
|
|
620
|
-
};
|
|
621
|
-
break;
|
|
526
|
+
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
622
527
|
default:
|
|
623
528
|
const parsedBody = parsedOutput.body;
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
...parsedBody,
|
|
627
|
-
name: `${errorCode}`,
|
|
628
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
529
|
+
response = new ChimeSDKMeetingsServiceException_1.ChimeSDKMeetingsServiceException({
|
|
530
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
629
531
|
$fault: "client",
|
|
630
532
|
$metadata: deserializeMetadata(output),
|
|
631
|
-
};
|
|
533
|
+
});
|
|
534
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
632
535
|
}
|
|
633
|
-
const message = response.message || response.Message || errorCode;
|
|
634
|
-
response.message = message;
|
|
635
|
-
delete response.Message;
|
|
636
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
637
536
|
};
|
|
638
537
|
const deserializeAws_restJson1CreateMeetingWithAttendeesCommand = async (output, context) => {
|
|
639
538
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -669,51 +568,25 @@ const deserializeAws_restJson1CreateMeetingWithAttendeesCommandError = async (ou
|
|
|
669
568
|
switch (errorCode) {
|
|
670
569
|
case "BadRequestException":
|
|
671
570
|
case "com.amazonaws.chimesdkmeetings#BadRequestException":
|
|
672
|
-
|
|
673
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
674
|
-
name: errorCode,
|
|
675
|
-
$metadata: deserializeMetadata(output),
|
|
676
|
-
};
|
|
677
|
-
break;
|
|
571
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
678
572
|
case "LimitExceededException":
|
|
679
573
|
case "com.amazonaws.chimesdkmeetings#LimitExceededException":
|
|
680
|
-
|
|
681
|
-
...(await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
682
|
-
name: errorCode,
|
|
683
|
-
$metadata: deserializeMetadata(output),
|
|
684
|
-
};
|
|
685
|
-
break;
|
|
574
|
+
throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
|
|
686
575
|
case "ServiceUnavailableException":
|
|
687
576
|
case "com.amazonaws.chimesdkmeetings#ServiceUnavailableException":
|
|
688
|
-
|
|
689
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
690
|
-
name: errorCode,
|
|
691
|
-
$metadata: deserializeMetadata(output),
|
|
692
|
-
};
|
|
693
|
-
break;
|
|
577
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
694
578
|
case "UnauthorizedException":
|
|
695
579
|
case "com.amazonaws.chimesdkmeetings#UnauthorizedException":
|
|
696
|
-
|
|
697
|
-
...(await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)),
|
|
698
|
-
name: errorCode,
|
|
699
|
-
$metadata: deserializeMetadata(output),
|
|
700
|
-
};
|
|
701
|
-
break;
|
|
580
|
+
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
702
581
|
default:
|
|
703
582
|
const parsedBody = parsedOutput.body;
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
...parsedBody,
|
|
707
|
-
name: `${errorCode}`,
|
|
708
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
583
|
+
response = new ChimeSDKMeetingsServiceException_1.ChimeSDKMeetingsServiceException({
|
|
584
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
709
585
|
$fault: "client",
|
|
710
586
|
$metadata: deserializeMetadata(output),
|
|
711
|
-
};
|
|
587
|
+
});
|
|
588
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
712
589
|
}
|
|
713
|
-
const message = response.message || response.Message || errorCode;
|
|
714
|
-
response.message = message;
|
|
715
|
-
delete response.Message;
|
|
716
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
717
590
|
};
|
|
718
591
|
const deserializeAws_restJson1DeleteAttendeeCommand = async (output, context) => {
|
|
719
592
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
@@ -737,35 +610,19 @@ const deserializeAws_restJson1DeleteAttendeeCommandError = async (output, contex
|
|
|
737
610
|
switch (errorCode) {
|
|
738
611
|
case "ForbiddenException":
|
|
739
612
|
case "com.amazonaws.chimesdkmeetings#ForbiddenException":
|
|
740
|
-
|
|
741
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
742
|
-
name: errorCode,
|
|
743
|
-
$metadata: deserializeMetadata(output),
|
|
744
|
-
};
|
|
745
|
-
break;
|
|
613
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
746
614
|
case "NotFoundException":
|
|
747
615
|
case "com.amazonaws.chimesdkmeetings#NotFoundException":
|
|
748
|
-
|
|
749
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
750
|
-
name: errorCode,
|
|
751
|
-
$metadata: deserializeMetadata(output),
|
|
752
|
-
};
|
|
753
|
-
break;
|
|
616
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
754
617
|
default:
|
|
755
618
|
const parsedBody = parsedOutput.body;
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
...parsedBody,
|
|
759
|
-
name: `${errorCode}`,
|
|
760
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
619
|
+
response = new ChimeSDKMeetingsServiceException_1.ChimeSDKMeetingsServiceException({
|
|
620
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
761
621
|
$fault: "client",
|
|
762
622
|
$metadata: deserializeMetadata(output),
|
|
763
|
-
};
|
|
623
|
+
});
|
|
624
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
764
625
|
}
|
|
765
|
-
const message = response.message || response.Message || errorCode;
|
|
766
|
-
response.message = message;
|
|
767
|
-
delete response.Message;
|
|
768
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
769
626
|
};
|
|
770
627
|
const deserializeAws_restJson1DeleteMeetingCommand = async (output, context) => {
|
|
771
628
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
@@ -789,35 +646,19 @@ const deserializeAws_restJson1DeleteMeetingCommandError = async (output, context
|
|
|
789
646
|
switch (errorCode) {
|
|
790
647
|
case "BadRequestException":
|
|
791
648
|
case "com.amazonaws.chimesdkmeetings#BadRequestException":
|
|
792
|
-
|
|
793
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
794
|
-
name: errorCode,
|
|
795
|
-
$metadata: deserializeMetadata(output),
|
|
796
|
-
};
|
|
797
|
-
break;
|
|
649
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
798
650
|
case "ForbiddenException":
|
|
799
651
|
case "com.amazonaws.chimesdkmeetings#ForbiddenException":
|
|
800
|
-
|
|
801
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
802
|
-
name: errorCode,
|
|
803
|
-
$metadata: deserializeMetadata(output),
|
|
804
|
-
};
|
|
805
|
-
break;
|
|
652
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
806
653
|
default:
|
|
807
654
|
const parsedBody = parsedOutput.body;
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
...parsedBody,
|
|
811
|
-
name: `${errorCode}`,
|
|
812
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
655
|
+
response = new ChimeSDKMeetingsServiceException_1.ChimeSDKMeetingsServiceException({
|
|
656
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
813
657
|
$fault: "client",
|
|
814
658
|
$metadata: deserializeMetadata(output),
|
|
815
|
-
};
|
|
659
|
+
});
|
|
660
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
816
661
|
}
|
|
817
|
-
const message = response.message || response.Message || errorCode;
|
|
818
|
-
response.message = message;
|
|
819
|
-
delete response.Message;
|
|
820
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
821
662
|
};
|
|
822
663
|
const deserializeAws_restJson1GetAttendeeCommand = async (output, context) => {
|
|
823
664
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -845,43 +686,22 @@ const deserializeAws_restJson1GetAttendeeCommandError = async (output, context)
|
|
|
845
686
|
switch (errorCode) {
|
|
846
687
|
case "BadRequestException":
|
|
847
688
|
case "com.amazonaws.chimesdkmeetings#BadRequestException":
|
|
848
|
-
|
|
849
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
850
|
-
name: errorCode,
|
|
851
|
-
$metadata: deserializeMetadata(output),
|
|
852
|
-
};
|
|
853
|
-
break;
|
|
689
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
854
690
|
case "ForbiddenException":
|
|
855
691
|
case "com.amazonaws.chimesdkmeetings#ForbiddenException":
|
|
856
|
-
|
|
857
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
858
|
-
name: errorCode,
|
|
859
|
-
$metadata: deserializeMetadata(output),
|
|
860
|
-
};
|
|
861
|
-
break;
|
|
692
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
862
693
|
case "NotFoundException":
|
|
863
694
|
case "com.amazonaws.chimesdkmeetings#NotFoundException":
|
|
864
|
-
|
|
865
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
866
|
-
name: errorCode,
|
|
867
|
-
$metadata: deserializeMetadata(output),
|
|
868
|
-
};
|
|
869
|
-
break;
|
|
695
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
870
696
|
default:
|
|
871
697
|
const parsedBody = parsedOutput.body;
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
...parsedBody,
|
|
875
|
-
name: `${errorCode}`,
|
|
876
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
698
|
+
response = new ChimeSDKMeetingsServiceException_1.ChimeSDKMeetingsServiceException({
|
|
699
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
877
700
|
$fault: "client",
|
|
878
701
|
$metadata: deserializeMetadata(output),
|
|
879
|
-
};
|
|
702
|
+
});
|
|
703
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
880
704
|
}
|
|
881
|
-
const message = response.message || response.Message || errorCode;
|
|
882
|
-
response.message = message;
|
|
883
|
-
delete response.Message;
|
|
884
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
885
705
|
};
|
|
886
706
|
const deserializeAws_restJson1GetMeetingCommand = async (output, context) => {
|
|
887
707
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -909,43 +729,22 @@ const deserializeAws_restJson1GetMeetingCommandError = async (output, context) =
|
|
|
909
729
|
switch (errorCode) {
|
|
910
730
|
case "BadRequestException":
|
|
911
731
|
case "com.amazonaws.chimesdkmeetings#BadRequestException":
|
|
912
|
-
|
|
913
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
914
|
-
name: errorCode,
|
|
915
|
-
$metadata: deserializeMetadata(output),
|
|
916
|
-
};
|
|
917
|
-
break;
|
|
732
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
918
733
|
case "ForbiddenException":
|
|
919
734
|
case "com.amazonaws.chimesdkmeetings#ForbiddenException":
|
|
920
|
-
|
|
921
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
922
|
-
name: errorCode,
|
|
923
|
-
$metadata: deserializeMetadata(output),
|
|
924
|
-
};
|
|
925
|
-
break;
|
|
735
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
926
736
|
case "NotFoundException":
|
|
927
737
|
case "com.amazonaws.chimesdkmeetings#NotFoundException":
|
|
928
|
-
|
|
929
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
930
|
-
name: errorCode,
|
|
931
|
-
$metadata: deserializeMetadata(output),
|
|
932
|
-
};
|
|
933
|
-
break;
|
|
738
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
934
739
|
default:
|
|
935
740
|
const parsedBody = parsedOutput.body;
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
...parsedBody,
|
|
939
|
-
name: `${errorCode}`,
|
|
940
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
741
|
+
response = new ChimeSDKMeetingsServiceException_1.ChimeSDKMeetingsServiceException({
|
|
742
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
941
743
|
$fault: "client",
|
|
942
744
|
$metadata: deserializeMetadata(output),
|
|
943
|
-
};
|
|
745
|
+
});
|
|
746
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
944
747
|
}
|
|
945
|
-
const message = response.message || response.Message || errorCode;
|
|
946
|
-
response.message = message;
|
|
947
|
-
delete response.Message;
|
|
948
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
949
748
|
};
|
|
950
749
|
const deserializeAws_restJson1ListAttendeesCommand = async (output, context) => {
|
|
951
750
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -977,43 +776,22 @@ const deserializeAws_restJson1ListAttendeesCommandError = async (output, context
|
|
|
977
776
|
switch (errorCode) {
|
|
978
777
|
case "BadRequestException":
|
|
979
778
|
case "com.amazonaws.chimesdkmeetings#BadRequestException":
|
|
980
|
-
|
|
981
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
982
|
-
name: errorCode,
|
|
983
|
-
$metadata: deserializeMetadata(output),
|
|
984
|
-
};
|
|
985
|
-
break;
|
|
779
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
986
780
|
case "ForbiddenException":
|
|
987
781
|
case "com.amazonaws.chimesdkmeetings#ForbiddenException":
|
|
988
|
-
|
|
989
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
990
|
-
name: errorCode,
|
|
991
|
-
$metadata: deserializeMetadata(output),
|
|
992
|
-
};
|
|
993
|
-
break;
|
|
782
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
994
783
|
case "NotFoundException":
|
|
995
784
|
case "com.amazonaws.chimesdkmeetings#NotFoundException":
|
|
996
|
-
|
|
997
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
998
|
-
name: errorCode,
|
|
999
|
-
$metadata: deserializeMetadata(output),
|
|
1000
|
-
};
|
|
1001
|
-
break;
|
|
785
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
1002
786
|
default:
|
|
1003
787
|
const parsedBody = parsedOutput.body;
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
...parsedBody,
|
|
1007
|
-
name: `${errorCode}`,
|
|
1008
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
788
|
+
response = new ChimeSDKMeetingsServiceException_1.ChimeSDKMeetingsServiceException({
|
|
789
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1009
790
|
$fault: "client",
|
|
1010
791
|
$metadata: deserializeMetadata(output),
|
|
1011
|
-
};
|
|
792
|
+
});
|
|
793
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1012
794
|
}
|
|
1013
|
-
const message = response.message || response.Message || errorCode;
|
|
1014
|
-
response.message = message;
|
|
1015
|
-
delete response.Message;
|
|
1016
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1017
795
|
};
|
|
1018
796
|
const deserializeAws_restJson1StartMeetingTranscriptionCommand = async (output, context) => {
|
|
1019
797
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1037,75 +815,34 @@ const deserializeAws_restJson1StartMeetingTranscriptionCommandError = async (out
|
|
|
1037
815
|
switch (errorCode) {
|
|
1038
816
|
case "BadRequestException":
|
|
1039
817
|
case "com.amazonaws.chimesdkmeetings#BadRequestException":
|
|
1040
|
-
|
|
1041
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
1042
|
-
name: errorCode,
|
|
1043
|
-
$metadata: deserializeMetadata(output),
|
|
1044
|
-
};
|
|
1045
|
-
break;
|
|
818
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
1046
819
|
case "ForbiddenException":
|
|
1047
820
|
case "com.amazonaws.chimesdkmeetings#ForbiddenException":
|
|
1048
|
-
|
|
1049
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
1050
|
-
name: errorCode,
|
|
1051
|
-
$metadata: deserializeMetadata(output),
|
|
1052
|
-
};
|
|
1053
|
-
break;
|
|
821
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
1054
822
|
case "LimitExceededException":
|
|
1055
823
|
case "com.amazonaws.chimesdkmeetings#LimitExceededException":
|
|
1056
|
-
|
|
1057
|
-
...(await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
1058
|
-
name: errorCode,
|
|
1059
|
-
$metadata: deserializeMetadata(output),
|
|
1060
|
-
};
|
|
1061
|
-
break;
|
|
824
|
+
throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1062
825
|
case "NotFoundException":
|
|
1063
826
|
case "com.amazonaws.chimesdkmeetings#NotFoundException":
|
|
1064
|
-
|
|
1065
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
1066
|
-
name: errorCode,
|
|
1067
|
-
$metadata: deserializeMetadata(output),
|
|
1068
|
-
};
|
|
1069
|
-
break;
|
|
827
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
1070
828
|
case "ServiceUnavailableException":
|
|
1071
829
|
case "com.amazonaws.chimesdkmeetings#ServiceUnavailableException":
|
|
1072
|
-
|
|
1073
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1074
|
-
name: errorCode,
|
|
1075
|
-
$metadata: deserializeMetadata(output),
|
|
1076
|
-
};
|
|
1077
|
-
break;
|
|
830
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1078
831
|
case "UnauthorizedException":
|
|
1079
832
|
case "com.amazonaws.chimesdkmeetings#UnauthorizedException":
|
|
1080
|
-
|
|
1081
|
-
...(await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)),
|
|
1082
|
-
name: errorCode,
|
|
1083
|
-
$metadata: deserializeMetadata(output),
|
|
1084
|
-
};
|
|
1085
|
-
break;
|
|
833
|
+
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
1086
834
|
case "UnprocessableEntityException":
|
|
1087
835
|
case "com.amazonaws.chimesdkmeetings#UnprocessableEntityException":
|
|
1088
|
-
|
|
1089
|
-
...(await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context)),
|
|
1090
|
-
name: errorCode,
|
|
1091
|
-
$metadata: deserializeMetadata(output),
|
|
1092
|
-
};
|
|
1093
|
-
break;
|
|
836
|
+
throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
|
|
1094
837
|
default:
|
|
1095
838
|
const parsedBody = parsedOutput.body;
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
...parsedBody,
|
|
1099
|
-
name: `${errorCode}`,
|
|
1100
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
839
|
+
response = new ChimeSDKMeetingsServiceException_1.ChimeSDKMeetingsServiceException({
|
|
840
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1101
841
|
$fault: "client",
|
|
1102
842
|
$metadata: deserializeMetadata(output),
|
|
1103
|
-
};
|
|
843
|
+
});
|
|
844
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1104
845
|
}
|
|
1105
|
-
const message = response.message || response.Message || errorCode;
|
|
1106
|
-
response.message = message;
|
|
1107
|
-
delete response.Message;
|
|
1108
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1109
846
|
};
|
|
1110
847
|
const deserializeAws_restJson1StopMeetingTranscriptionCommand = async (output, context) => {
|
|
1111
848
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1129,77 +866,34 @@ const deserializeAws_restJson1StopMeetingTranscriptionCommandError = async (outp
|
|
|
1129
866
|
switch (errorCode) {
|
|
1130
867
|
case "BadRequestException":
|
|
1131
868
|
case "com.amazonaws.chimesdkmeetings#BadRequestException":
|
|
1132
|
-
|
|
1133
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
1134
|
-
name: errorCode,
|
|
1135
|
-
$metadata: deserializeMetadata(output),
|
|
1136
|
-
};
|
|
1137
|
-
break;
|
|
869
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
1138
870
|
case "ForbiddenException":
|
|
1139
871
|
case "com.amazonaws.chimesdkmeetings#ForbiddenException":
|
|
1140
|
-
|
|
1141
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
1142
|
-
name: errorCode,
|
|
1143
|
-
$metadata: deserializeMetadata(output),
|
|
1144
|
-
};
|
|
1145
|
-
break;
|
|
872
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
1146
873
|
case "NotFoundException":
|
|
1147
874
|
case "com.amazonaws.chimesdkmeetings#NotFoundException":
|
|
1148
|
-
|
|
1149
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
1150
|
-
name: errorCode,
|
|
1151
|
-
$metadata: deserializeMetadata(output),
|
|
1152
|
-
};
|
|
1153
|
-
break;
|
|
875
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
1154
876
|
case "ServiceUnavailableException":
|
|
1155
877
|
case "com.amazonaws.chimesdkmeetings#ServiceUnavailableException":
|
|
1156
|
-
|
|
1157
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1158
|
-
name: errorCode,
|
|
1159
|
-
$metadata: deserializeMetadata(output),
|
|
1160
|
-
};
|
|
1161
|
-
break;
|
|
878
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1162
879
|
case "UnauthorizedException":
|
|
1163
880
|
case "com.amazonaws.chimesdkmeetings#UnauthorizedException":
|
|
1164
|
-
|
|
1165
|
-
...(await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)),
|
|
1166
|
-
name: errorCode,
|
|
1167
|
-
$metadata: deserializeMetadata(output),
|
|
1168
|
-
};
|
|
1169
|
-
break;
|
|
881
|
+
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
1170
882
|
case "UnprocessableEntityException":
|
|
1171
883
|
case "com.amazonaws.chimesdkmeetings#UnprocessableEntityException":
|
|
1172
|
-
|
|
1173
|
-
...(await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context)),
|
|
1174
|
-
name: errorCode,
|
|
1175
|
-
$metadata: deserializeMetadata(output),
|
|
1176
|
-
};
|
|
1177
|
-
break;
|
|
884
|
+
throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
|
|
1178
885
|
default:
|
|
1179
886
|
const parsedBody = parsedOutput.body;
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
...parsedBody,
|
|
1183
|
-
name: `${errorCode}`,
|
|
1184
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
887
|
+
response = new ChimeSDKMeetingsServiceException_1.ChimeSDKMeetingsServiceException({
|
|
888
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1185
889
|
$fault: "client",
|
|
1186
890
|
$metadata: deserializeMetadata(output),
|
|
1187
|
-
};
|
|
891
|
+
});
|
|
892
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1188
893
|
}
|
|
1189
|
-
const message = response.message || response.Message || errorCode;
|
|
1190
|
-
response.message = message;
|
|
1191
|
-
delete response.Message;
|
|
1192
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1193
894
|
};
|
|
1194
895
|
const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput, context) => {
|
|
1195
|
-
const contents = {
|
|
1196
|
-
name: "BadRequestException",
|
|
1197
|
-
$fault: "client",
|
|
1198
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1199
|
-
Code: undefined,
|
|
1200
|
-
Message: undefined,
|
|
1201
|
-
RequestId: undefined,
|
|
1202
|
-
};
|
|
896
|
+
const contents = {};
|
|
1203
897
|
const data = parsedOutput.body;
|
|
1204
898
|
if (data.Code !== undefined && data.Code !== null) {
|
|
1205
899
|
contents.Code = smithy_client_1.expectString(data.Code);
|
|
@@ -1210,17 +904,14 @@ const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput,
|
|
|
1210
904
|
if (data.RequestId !== undefined && data.RequestId !== null) {
|
|
1211
905
|
contents.RequestId = smithy_client_1.expectString(data.RequestId);
|
|
1212
906
|
}
|
|
1213
|
-
|
|
907
|
+
const exception = new models_0_1.BadRequestException({
|
|
908
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
909
|
+
...contents,
|
|
910
|
+
});
|
|
911
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1214
912
|
};
|
|
1215
913
|
const deserializeAws_restJson1ForbiddenExceptionResponse = async (parsedOutput, context) => {
|
|
1216
|
-
const contents = {
|
|
1217
|
-
name: "ForbiddenException",
|
|
1218
|
-
$fault: "client",
|
|
1219
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1220
|
-
Code: undefined,
|
|
1221
|
-
Message: undefined,
|
|
1222
|
-
RequestId: undefined,
|
|
1223
|
-
};
|
|
914
|
+
const contents = {};
|
|
1224
915
|
const data = parsedOutput.body;
|
|
1225
916
|
if (data.Code !== undefined && data.Code !== null) {
|
|
1226
917
|
contents.Code = smithy_client_1.expectString(data.Code);
|
|
@@ -1231,17 +922,14 @@ const deserializeAws_restJson1ForbiddenExceptionResponse = async (parsedOutput,
|
|
|
1231
922
|
if (data.RequestId !== undefined && data.RequestId !== null) {
|
|
1232
923
|
contents.RequestId = smithy_client_1.expectString(data.RequestId);
|
|
1233
924
|
}
|
|
1234
|
-
|
|
925
|
+
const exception = new models_0_1.ForbiddenException({
|
|
926
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
927
|
+
...contents,
|
|
928
|
+
});
|
|
929
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1235
930
|
};
|
|
1236
931
|
const deserializeAws_restJson1LimitExceededExceptionResponse = async (parsedOutput, context) => {
|
|
1237
|
-
const contents = {
|
|
1238
|
-
name: "LimitExceededException",
|
|
1239
|
-
$fault: "client",
|
|
1240
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1241
|
-
Code: undefined,
|
|
1242
|
-
Message: undefined,
|
|
1243
|
-
RequestId: undefined,
|
|
1244
|
-
};
|
|
932
|
+
const contents = {};
|
|
1245
933
|
const data = parsedOutput.body;
|
|
1246
934
|
if (data.Code !== undefined && data.Code !== null) {
|
|
1247
935
|
contents.Code = smithy_client_1.expectString(data.Code);
|
|
@@ -1252,17 +940,14 @@ const deserializeAws_restJson1LimitExceededExceptionResponse = async (parsedOutp
|
|
|
1252
940
|
if (data.RequestId !== undefined && data.RequestId !== null) {
|
|
1253
941
|
contents.RequestId = smithy_client_1.expectString(data.RequestId);
|
|
1254
942
|
}
|
|
1255
|
-
|
|
943
|
+
const exception = new models_0_1.LimitExceededException({
|
|
944
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
945
|
+
...contents,
|
|
946
|
+
});
|
|
947
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1256
948
|
};
|
|
1257
949
|
const deserializeAws_restJson1NotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
1258
|
-
const contents = {
|
|
1259
|
-
name: "NotFoundException",
|
|
1260
|
-
$fault: "client",
|
|
1261
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1262
|
-
Code: undefined,
|
|
1263
|
-
Message: undefined,
|
|
1264
|
-
RequestId: undefined,
|
|
1265
|
-
};
|
|
950
|
+
const contents = {};
|
|
1266
951
|
const data = parsedOutput.body;
|
|
1267
952
|
if (data.Code !== undefined && data.Code !== null) {
|
|
1268
953
|
contents.Code = smithy_client_1.expectString(data.Code);
|
|
@@ -1273,18 +958,14 @@ const deserializeAws_restJson1NotFoundExceptionResponse = async (parsedOutput, c
|
|
|
1273
958
|
if (data.RequestId !== undefined && data.RequestId !== null) {
|
|
1274
959
|
contents.RequestId = smithy_client_1.expectString(data.RequestId);
|
|
1275
960
|
}
|
|
1276
|
-
|
|
961
|
+
const exception = new models_0_1.NotFoundException({
|
|
962
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
963
|
+
...contents,
|
|
964
|
+
});
|
|
965
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1277
966
|
};
|
|
1278
967
|
const deserializeAws_restJson1ServiceUnavailableExceptionResponse = async (parsedOutput, context) => {
|
|
1279
|
-
const contents = {
|
|
1280
|
-
name: "ServiceUnavailableException",
|
|
1281
|
-
$fault: "server",
|
|
1282
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1283
|
-
Code: undefined,
|
|
1284
|
-
Message: undefined,
|
|
1285
|
-
RequestId: undefined,
|
|
1286
|
-
RetryAfterSeconds: undefined,
|
|
1287
|
-
};
|
|
968
|
+
const contents = {};
|
|
1288
969
|
if (parsedOutput.headers["retry-after"] !== undefined) {
|
|
1289
970
|
contents.RetryAfterSeconds = parsedOutput.headers["retry-after"];
|
|
1290
971
|
}
|
|
@@ -1298,17 +979,14 @@ const deserializeAws_restJson1ServiceUnavailableExceptionResponse = async (parse
|
|
|
1298
979
|
if (data.RequestId !== undefined && data.RequestId !== null) {
|
|
1299
980
|
contents.RequestId = smithy_client_1.expectString(data.RequestId);
|
|
1300
981
|
}
|
|
1301
|
-
|
|
982
|
+
const exception = new models_0_1.ServiceUnavailableException({
|
|
983
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
984
|
+
...contents,
|
|
985
|
+
});
|
|
986
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1302
987
|
};
|
|
1303
988
|
const deserializeAws_restJson1UnauthorizedExceptionResponse = async (parsedOutput, context) => {
|
|
1304
|
-
const contents = {
|
|
1305
|
-
name: "UnauthorizedException",
|
|
1306
|
-
$fault: "client",
|
|
1307
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1308
|
-
Code: undefined,
|
|
1309
|
-
Message: undefined,
|
|
1310
|
-
RequestId: undefined,
|
|
1311
|
-
};
|
|
989
|
+
const contents = {};
|
|
1312
990
|
const data = parsedOutput.body;
|
|
1313
991
|
if (data.Code !== undefined && data.Code !== null) {
|
|
1314
992
|
contents.Code = smithy_client_1.expectString(data.Code);
|
|
@@ -1319,17 +997,14 @@ const deserializeAws_restJson1UnauthorizedExceptionResponse = async (parsedOutpu
|
|
|
1319
997
|
if (data.RequestId !== undefined && data.RequestId !== null) {
|
|
1320
998
|
contents.RequestId = smithy_client_1.expectString(data.RequestId);
|
|
1321
999
|
}
|
|
1322
|
-
|
|
1000
|
+
const exception = new models_0_1.UnauthorizedException({
|
|
1001
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1002
|
+
...contents,
|
|
1003
|
+
});
|
|
1004
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1323
1005
|
};
|
|
1324
1006
|
const deserializeAws_restJson1UnprocessableEntityExceptionResponse = async (parsedOutput, context) => {
|
|
1325
|
-
const contents = {
|
|
1326
|
-
name: "UnprocessableEntityException",
|
|
1327
|
-
$fault: "client",
|
|
1328
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1329
|
-
Code: undefined,
|
|
1330
|
-
Message: undefined,
|
|
1331
|
-
RequestId: undefined,
|
|
1332
|
-
};
|
|
1007
|
+
const contents = {};
|
|
1333
1008
|
const data = parsedOutput.body;
|
|
1334
1009
|
if (data.Code !== undefined && data.Code !== null) {
|
|
1335
1010
|
contents.Code = smithy_client_1.expectString(data.Code);
|
|
@@ -1340,7 +1015,11 @@ const deserializeAws_restJson1UnprocessableEntityExceptionResponse = async (pars
|
|
|
1340
1015
|
if (data.RequestId !== undefined && data.RequestId !== null) {
|
|
1341
1016
|
contents.RequestId = smithy_client_1.expectString(data.RequestId);
|
|
1342
1017
|
}
|
|
1343
|
-
|
|
1018
|
+
const exception = new models_0_1.UnprocessableEntityException({
|
|
1019
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1020
|
+
...contents,
|
|
1021
|
+
});
|
|
1022
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1344
1023
|
};
|
|
1345
1024
|
const serializeAws_restJson1AudioFeatures = (input, context) => {
|
|
1346
1025
|
return {
|
|
@@ -1445,7 +1124,7 @@ const deserializeAws_restJson1Attendee = (output, context) => {
|
|
|
1445
1124
|
};
|
|
1446
1125
|
};
|
|
1447
1126
|
const deserializeAws_restJson1AttendeeList = (output, context) => {
|
|
1448
|
-
|
|
1127
|
+
const retVal = (output || [])
|
|
1449
1128
|
.filter((e) => e != null)
|
|
1450
1129
|
.map((entry) => {
|
|
1451
1130
|
if (entry === null) {
|
|
@@ -1453,6 +1132,7 @@ const deserializeAws_restJson1AttendeeList = (output, context) => {
|
|
|
1453
1132
|
}
|
|
1454
1133
|
return deserializeAws_restJson1Attendee(entry, context);
|
|
1455
1134
|
});
|
|
1135
|
+
return retVal;
|
|
1456
1136
|
};
|
|
1457
1137
|
const deserializeAws_restJson1AudioFeatures = (output, context) => {
|
|
1458
1138
|
return {
|
|
@@ -1460,7 +1140,7 @@ const deserializeAws_restJson1AudioFeatures = (output, context) => {
|
|
|
1460
1140
|
};
|
|
1461
1141
|
};
|
|
1462
1142
|
const deserializeAws_restJson1BatchCreateAttendeeErrorList = (output, context) => {
|
|
1463
|
-
|
|
1143
|
+
const retVal = (output || [])
|
|
1464
1144
|
.filter((e) => e != null)
|
|
1465
1145
|
.map((entry) => {
|
|
1466
1146
|
if (entry === null) {
|
|
@@ -1468,6 +1148,7 @@ const deserializeAws_restJson1BatchCreateAttendeeErrorList = (output, context) =
|
|
|
1468
1148
|
}
|
|
1469
1149
|
return deserializeAws_restJson1CreateAttendeeError(entry, context);
|
|
1470
1150
|
});
|
|
1151
|
+
return retVal;
|
|
1471
1152
|
};
|
|
1472
1153
|
const deserializeAws_restJson1CreateAttendeeError = (output, context) => {
|
|
1473
1154
|
return {
|