@aws-sdk/client-codeguru-reviewer 3.51.0 → 3.54.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/CodeGuruReviewerServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +101 -2
- package/dist-cjs/protocols/Aws_restJson1.js +177 -574
- package/dist-es/index.js +1 -0
- package/dist-es/models/CodeGuruReviewerServiceException.js +12 -0
- package/dist-es/models/models_0.js +93 -1
- package/dist-es/protocols/Aws_restJson1.js +339 -638
- package/dist-types/CodeGuruReviewerClient.d.ts +2 -2
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/CodeGuruReviewerServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +51 -22
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/CodeGuruReviewerClient.d.ts +2 -2
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/CodeGuruReviewerServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +37 -22
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
- package/package.json +34 -34
|
@@ -4,6 +4,8 @@ exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_re
|
|
|
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 CodeGuruReviewerServiceException_1 = require("../models/CodeGuruReviewerServiceException");
|
|
8
|
+
const models_0_1 = require("../models/models_0");
|
|
7
9
|
const serializeAws_restJson1AssociateRepositoryCommand = async (input, context) => {
|
|
8
10
|
var _a;
|
|
9
11
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
@@ -435,59 +437,28 @@ const deserializeAws_restJson1AssociateRepositoryCommandError = async (output, c
|
|
|
435
437
|
switch (errorCode) {
|
|
436
438
|
case "AccessDeniedException":
|
|
437
439
|
case "com.amazonaws.codegurureviewer#AccessDeniedException":
|
|
438
|
-
|
|
439
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
440
|
-
name: errorCode,
|
|
441
|
-
$metadata: deserializeMetadata(output),
|
|
442
|
-
};
|
|
443
|
-
break;
|
|
440
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
444
441
|
case "ConflictException":
|
|
445
442
|
case "com.amazonaws.codegurureviewer#ConflictException":
|
|
446
|
-
|
|
447
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
448
|
-
name: errorCode,
|
|
449
|
-
$metadata: deserializeMetadata(output),
|
|
450
|
-
};
|
|
451
|
-
break;
|
|
443
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
452
444
|
case "InternalServerException":
|
|
453
445
|
case "com.amazonaws.codegurureviewer#InternalServerException":
|
|
454
|
-
|
|
455
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
456
|
-
name: errorCode,
|
|
457
|
-
$metadata: deserializeMetadata(output),
|
|
458
|
-
};
|
|
459
|
-
break;
|
|
446
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
460
447
|
case "ThrottlingException":
|
|
461
448
|
case "com.amazonaws.codegurureviewer#ThrottlingException":
|
|
462
|
-
|
|
463
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
464
|
-
name: errorCode,
|
|
465
|
-
$metadata: deserializeMetadata(output),
|
|
466
|
-
};
|
|
467
|
-
break;
|
|
449
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
468
450
|
case "ValidationException":
|
|
469
451
|
case "com.amazonaws.codegurureviewer#ValidationException":
|
|
470
|
-
|
|
471
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
472
|
-
name: errorCode,
|
|
473
|
-
$metadata: deserializeMetadata(output),
|
|
474
|
-
};
|
|
475
|
-
break;
|
|
452
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
476
453
|
default:
|
|
477
454
|
const parsedBody = parsedOutput.body;
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
...parsedBody,
|
|
481
|
-
name: `${errorCode}`,
|
|
482
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
455
|
+
response = new CodeGuruReviewerServiceException_1.CodeGuruReviewerServiceException({
|
|
456
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
483
457
|
$fault: "client",
|
|
484
458
|
$metadata: deserializeMetadata(output),
|
|
485
|
-
};
|
|
459
|
+
});
|
|
460
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
486
461
|
}
|
|
487
|
-
const message = response.message || response.Message || errorCode;
|
|
488
|
-
response.message = message;
|
|
489
|
-
delete response.Message;
|
|
490
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
491
462
|
};
|
|
492
463
|
const deserializeAws_restJson1CreateCodeReviewCommand = async (output, context) => {
|
|
493
464
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -515,67 +486,31 @@ const deserializeAws_restJson1CreateCodeReviewCommandError = async (output, cont
|
|
|
515
486
|
switch (errorCode) {
|
|
516
487
|
case "AccessDeniedException":
|
|
517
488
|
case "com.amazonaws.codegurureviewer#AccessDeniedException":
|
|
518
|
-
|
|
519
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
520
|
-
name: errorCode,
|
|
521
|
-
$metadata: deserializeMetadata(output),
|
|
522
|
-
};
|
|
523
|
-
break;
|
|
489
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
524
490
|
case "ConflictException":
|
|
525
491
|
case "com.amazonaws.codegurureviewer#ConflictException":
|
|
526
|
-
|
|
527
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
528
|
-
name: errorCode,
|
|
529
|
-
$metadata: deserializeMetadata(output),
|
|
530
|
-
};
|
|
531
|
-
break;
|
|
492
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
532
493
|
case "InternalServerException":
|
|
533
494
|
case "com.amazonaws.codegurureviewer#InternalServerException":
|
|
534
|
-
|
|
535
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
536
|
-
name: errorCode,
|
|
537
|
-
$metadata: deserializeMetadata(output),
|
|
538
|
-
};
|
|
539
|
-
break;
|
|
495
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
540
496
|
case "ResourceNotFoundException":
|
|
541
497
|
case "com.amazonaws.codegurureviewer#ResourceNotFoundException":
|
|
542
|
-
|
|
543
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
544
|
-
name: errorCode,
|
|
545
|
-
$metadata: deserializeMetadata(output),
|
|
546
|
-
};
|
|
547
|
-
break;
|
|
498
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
548
499
|
case "ThrottlingException":
|
|
549
500
|
case "com.amazonaws.codegurureviewer#ThrottlingException":
|
|
550
|
-
|
|
551
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
552
|
-
name: errorCode,
|
|
553
|
-
$metadata: deserializeMetadata(output),
|
|
554
|
-
};
|
|
555
|
-
break;
|
|
501
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
556
502
|
case "ValidationException":
|
|
557
503
|
case "com.amazonaws.codegurureviewer#ValidationException":
|
|
558
|
-
|
|
559
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
560
|
-
name: errorCode,
|
|
561
|
-
$metadata: deserializeMetadata(output),
|
|
562
|
-
};
|
|
563
|
-
break;
|
|
504
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
564
505
|
default:
|
|
565
506
|
const parsedBody = parsedOutput.body;
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
...parsedBody,
|
|
569
|
-
name: `${errorCode}`,
|
|
570
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
507
|
+
response = new CodeGuruReviewerServiceException_1.CodeGuruReviewerServiceException({
|
|
508
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
571
509
|
$fault: "client",
|
|
572
510
|
$metadata: deserializeMetadata(output),
|
|
573
|
-
};
|
|
511
|
+
});
|
|
512
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
574
513
|
}
|
|
575
|
-
const message = response.message || response.Message || errorCode;
|
|
576
|
-
response.message = message;
|
|
577
|
-
delete response.Message;
|
|
578
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
579
514
|
};
|
|
580
515
|
const deserializeAws_restJson1DescribeCodeReviewCommand = async (output, context) => {
|
|
581
516
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -603,59 +538,28 @@ const deserializeAws_restJson1DescribeCodeReviewCommandError = async (output, co
|
|
|
603
538
|
switch (errorCode) {
|
|
604
539
|
case "AccessDeniedException":
|
|
605
540
|
case "com.amazonaws.codegurureviewer#AccessDeniedException":
|
|
606
|
-
|
|
607
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
608
|
-
name: errorCode,
|
|
609
|
-
$metadata: deserializeMetadata(output),
|
|
610
|
-
};
|
|
611
|
-
break;
|
|
541
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
612
542
|
case "InternalServerException":
|
|
613
543
|
case "com.amazonaws.codegurureviewer#InternalServerException":
|
|
614
|
-
|
|
615
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
616
|
-
name: errorCode,
|
|
617
|
-
$metadata: deserializeMetadata(output),
|
|
618
|
-
};
|
|
619
|
-
break;
|
|
544
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
620
545
|
case "ResourceNotFoundException":
|
|
621
546
|
case "com.amazonaws.codegurureviewer#ResourceNotFoundException":
|
|
622
|
-
|
|
623
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
624
|
-
name: errorCode,
|
|
625
|
-
$metadata: deserializeMetadata(output),
|
|
626
|
-
};
|
|
627
|
-
break;
|
|
547
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
628
548
|
case "ThrottlingException":
|
|
629
549
|
case "com.amazonaws.codegurureviewer#ThrottlingException":
|
|
630
|
-
|
|
631
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
632
|
-
name: errorCode,
|
|
633
|
-
$metadata: deserializeMetadata(output),
|
|
634
|
-
};
|
|
635
|
-
break;
|
|
550
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
636
551
|
case "ValidationException":
|
|
637
552
|
case "com.amazonaws.codegurureviewer#ValidationException":
|
|
638
|
-
|
|
639
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
640
|
-
name: errorCode,
|
|
641
|
-
$metadata: deserializeMetadata(output),
|
|
642
|
-
};
|
|
643
|
-
break;
|
|
553
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
644
554
|
default:
|
|
645
555
|
const parsedBody = parsedOutput.body;
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
...parsedBody,
|
|
649
|
-
name: `${errorCode}`,
|
|
650
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
556
|
+
response = new CodeGuruReviewerServiceException_1.CodeGuruReviewerServiceException({
|
|
557
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
651
558
|
$fault: "client",
|
|
652
559
|
$metadata: deserializeMetadata(output),
|
|
653
|
-
};
|
|
560
|
+
});
|
|
561
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
654
562
|
}
|
|
655
|
-
const message = response.message || response.Message || errorCode;
|
|
656
|
-
response.message = message;
|
|
657
|
-
delete response.Message;
|
|
658
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
659
563
|
};
|
|
660
564
|
const deserializeAws_restJson1DescribeRecommendationFeedbackCommand = async (output, context) => {
|
|
661
565
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -683,59 +587,28 @@ const deserializeAws_restJson1DescribeRecommendationFeedbackCommandError = async
|
|
|
683
587
|
switch (errorCode) {
|
|
684
588
|
case "AccessDeniedException":
|
|
685
589
|
case "com.amazonaws.codegurureviewer#AccessDeniedException":
|
|
686
|
-
|
|
687
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
688
|
-
name: errorCode,
|
|
689
|
-
$metadata: deserializeMetadata(output),
|
|
690
|
-
};
|
|
691
|
-
break;
|
|
590
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
692
591
|
case "InternalServerException":
|
|
693
592
|
case "com.amazonaws.codegurureviewer#InternalServerException":
|
|
694
|
-
|
|
695
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
696
|
-
name: errorCode,
|
|
697
|
-
$metadata: deserializeMetadata(output),
|
|
698
|
-
};
|
|
699
|
-
break;
|
|
593
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
700
594
|
case "ResourceNotFoundException":
|
|
701
595
|
case "com.amazonaws.codegurureviewer#ResourceNotFoundException":
|
|
702
|
-
|
|
703
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
704
|
-
name: errorCode,
|
|
705
|
-
$metadata: deserializeMetadata(output),
|
|
706
|
-
};
|
|
707
|
-
break;
|
|
596
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
708
597
|
case "ThrottlingException":
|
|
709
598
|
case "com.amazonaws.codegurureviewer#ThrottlingException":
|
|
710
|
-
|
|
711
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
712
|
-
name: errorCode,
|
|
713
|
-
$metadata: deserializeMetadata(output),
|
|
714
|
-
};
|
|
715
|
-
break;
|
|
599
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
716
600
|
case "ValidationException":
|
|
717
601
|
case "com.amazonaws.codegurureviewer#ValidationException":
|
|
718
|
-
|
|
719
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
720
|
-
name: errorCode,
|
|
721
|
-
$metadata: deserializeMetadata(output),
|
|
722
|
-
};
|
|
723
|
-
break;
|
|
602
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
724
603
|
default:
|
|
725
604
|
const parsedBody = parsedOutput.body;
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
...parsedBody,
|
|
729
|
-
name: `${errorCode}`,
|
|
730
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
605
|
+
response = new CodeGuruReviewerServiceException_1.CodeGuruReviewerServiceException({
|
|
606
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
731
607
|
$fault: "client",
|
|
732
608
|
$metadata: deserializeMetadata(output),
|
|
733
|
-
};
|
|
609
|
+
});
|
|
610
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
734
611
|
}
|
|
735
|
-
const message = response.message || response.Message || errorCode;
|
|
736
|
-
response.message = message;
|
|
737
|
-
delete response.Message;
|
|
738
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
739
612
|
};
|
|
740
613
|
const deserializeAws_restJson1DescribeRepositoryAssociationCommand = async (output, context) => {
|
|
741
614
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -767,59 +640,28 @@ const deserializeAws_restJson1DescribeRepositoryAssociationCommandError = async
|
|
|
767
640
|
switch (errorCode) {
|
|
768
641
|
case "AccessDeniedException":
|
|
769
642
|
case "com.amazonaws.codegurureviewer#AccessDeniedException":
|
|
770
|
-
|
|
771
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
772
|
-
name: errorCode,
|
|
773
|
-
$metadata: deserializeMetadata(output),
|
|
774
|
-
};
|
|
775
|
-
break;
|
|
643
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
776
644
|
case "InternalServerException":
|
|
777
645
|
case "com.amazonaws.codegurureviewer#InternalServerException":
|
|
778
|
-
|
|
779
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
780
|
-
name: errorCode,
|
|
781
|
-
$metadata: deserializeMetadata(output),
|
|
782
|
-
};
|
|
783
|
-
break;
|
|
646
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
784
647
|
case "NotFoundException":
|
|
785
648
|
case "com.amazonaws.codegurureviewer#NotFoundException":
|
|
786
|
-
|
|
787
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
788
|
-
name: errorCode,
|
|
789
|
-
$metadata: deserializeMetadata(output),
|
|
790
|
-
};
|
|
791
|
-
break;
|
|
649
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
792
650
|
case "ThrottlingException":
|
|
793
651
|
case "com.amazonaws.codegurureviewer#ThrottlingException":
|
|
794
|
-
|
|
795
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
796
|
-
name: errorCode,
|
|
797
|
-
$metadata: deserializeMetadata(output),
|
|
798
|
-
};
|
|
799
|
-
break;
|
|
652
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
800
653
|
case "ValidationException":
|
|
801
654
|
case "com.amazonaws.codegurureviewer#ValidationException":
|
|
802
|
-
|
|
803
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
804
|
-
name: errorCode,
|
|
805
|
-
$metadata: deserializeMetadata(output),
|
|
806
|
-
};
|
|
807
|
-
break;
|
|
655
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
808
656
|
default:
|
|
809
657
|
const parsedBody = parsedOutput.body;
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
...parsedBody,
|
|
813
|
-
name: `${errorCode}`,
|
|
814
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
658
|
+
response = new CodeGuruReviewerServiceException_1.CodeGuruReviewerServiceException({
|
|
659
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
815
660
|
$fault: "client",
|
|
816
661
|
$metadata: deserializeMetadata(output),
|
|
817
|
-
};
|
|
662
|
+
});
|
|
663
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
818
664
|
}
|
|
819
|
-
const message = response.message || response.Message || errorCode;
|
|
820
|
-
response.message = message;
|
|
821
|
-
delete response.Message;
|
|
822
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
823
665
|
};
|
|
824
666
|
const deserializeAws_restJson1DisassociateRepositoryCommand = async (output, context) => {
|
|
825
667
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -851,67 +693,31 @@ const deserializeAws_restJson1DisassociateRepositoryCommandError = async (output
|
|
|
851
693
|
switch (errorCode) {
|
|
852
694
|
case "AccessDeniedException":
|
|
853
695
|
case "com.amazonaws.codegurureviewer#AccessDeniedException":
|
|
854
|
-
|
|
855
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
856
|
-
name: errorCode,
|
|
857
|
-
$metadata: deserializeMetadata(output),
|
|
858
|
-
};
|
|
859
|
-
break;
|
|
696
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
860
697
|
case "ConflictException":
|
|
861
698
|
case "com.amazonaws.codegurureviewer#ConflictException":
|
|
862
|
-
|
|
863
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
864
|
-
name: errorCode,
|
|
865
|
-
$metadata: deserializeMetadata(output),
|
|
866
|
-
};
|
|
867
|
-
break;
|
|
699
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
868
700
|
case "InternalServerException":
|
|
869
701
|
case "com.amazonaws.codegurureviewer#InternalServerException":
|
|
870
|
-
|
|
871
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
872
|
-
name: errorCode,
|
|
873
|
-
$metadata: deserializeMetadata(output),
|
|
874
|
-
};
|
|
875
|
-
break;
|
|
702
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
876
703
|
case "NotFoundException":
|
|
877
704
|
case "com.amazonaws.codegurureviewer#NotFoundException":
|
|
878
|
-
|
|
879
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
880
|
-
name: errorCode,
|
|
881
|
-
$metadata: deserializeMetadata(output),
|
|
882
|
-
};
|
|
883
|
-
break;
|
|
705
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
884
706
|
case "ThrottlingException":
|
|
885
707
|
case "com.amazonaws.codegurureviewer#ThrottlingException":
|
|
886
|
-
|
|
887
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
888
|
-
name: errorCode,
|
|
889
|
-
$metadata: deserializeMetadata(output),
|
|
890
|
-
};
|
|
891
|
-
break;
|
|
708
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
892
709
|
case "ValidationException":
|
|
893
710
|
case "com.amazonaws.codegurureviewer#ValidationException":
|
|
894
|
-
|
|
895
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
896
|
-
name: errorCode,
|
|
897
|
-
$metadata: deserializeMetadata(output),
|
|
898
|
-
};
|
|
899
|
-
break;
|
|
711
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
900
712
|
default:
|
|
901
713
|
const parsedBody = parsedOutput.body;
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
...parsedBody,
|
|
905
|
-
name: `${errorCode}`,
|
|
906
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
714
|
+
response = new CodeGuruReviewerServiceException_1.CodeGuruReviewerServiceException({
|
|
715
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
907
716
|
$fault: "client",
|
|
908
717
|
$metadata: deserializeMetadata(output),
|
|
909
|
-
};
|
|
718
|
+
});
|
|
719
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
910
720
|
}
|
|
911
|
-
const message = response.message || response.Message || errorCode;
|
|
912
|
-
response.message = message;
|
|
913
|
-
delete response.Message;
|
|
914
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
915
721
|
};
|
|
916
722
|
const deserializeAws_restJson1ListCodeReviewsCommand = async (output, context) => {
|
|
917
723
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -943,51 +749,25 @@ const deserializeAws_restJson1ListCodeReviewsCommandError = async (output, conte
|
|
|
943
749
|
switch (errorCode) {
|
|
944
750
|
case "AccessDeniedException":
|
|
945
751
|
case "com.amazonaws.codegurureviewer#AccessDeniedException":
|
|
946
|
-
|
|
947
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
948
|
-
name: errorCode,
|
|
949
|
-
$metadata: deserializeMetadata(output),
|
|
950
|
-
};
|
|
951
|
-
break;
|
|
752
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
952
753
|
case "InternalServerException":
|
|
953
754
|
case "com.amazonaws.codegurureviewer#InternalServerException":
|
|
954
|
-
|
|
955
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
956
|
-
name: errorCode,
|
|
957
|
-
$metadata: deserializeMetadata(output),
|
|
958
|
-
};
|
|
959
|
-
break;
|
|
755
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
960
756
|
case "ThrottlingException":
|
|
961
757
|
case "com.amazonaws.codegurureviewer#ThrottlingException":
|
|
962
|
-
|
|
963
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
964
|
-
name: errorCode,
|
|
965
|
-
$metadata: deserializeMetadata(output),
|
|
966
|
-
};
|
|
967
|
-
break;
|
|
758
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
968
759
|
case "ValidationException":
|
|
969
760
|
case "com.amazonaws.codegurureviewer#ValidationException":
|
|
970
|
-
|
|
971
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
972
|
-
name: errorCode,
|
|
973
|
-
$metadata: deserializeMetadata(output),
|
|
974
|
-
};
|
|
975
|
-
break;
|
|
761
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
976
762
|
default:
|
|
977
763
|
const parsedBody = parsedOutput.body;
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
...parsedBody,
|
|
981
|
-
name: `${errorCode}`,
|
|
982
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
764
|
+
response = new CodeGuruReviewerServiceException_1.CodeGuruReviewerServiceException({
|
|
765
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
983
766
|
$fault: "client",
|
|
984
767
|
$metadata: deserializeMetadata(output),
|
|
985
|
-
};
|
|
768
|
+
});
|
|
769
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
986
770
|
}
|
|
987
|
-
const message = response.message || response.Message || errorCode;
|
|
988
|
-
response.message = message;
|
|
989
|
-
delete response.Message;
|
|
990
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
991
771
|
};
|
|
992
772
|
const deserializeAws_restJson1ListRecommendationFeedbackCommand = async (output, context) => {
|
|
993
773
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1019,59 +799,28 @@ const deserializeAws_restJson1ListRecommendationFeedbackCommandError = async (ou
|
|
|
1019
799
|
switch (errorCode) {
|
|
1020
800
|
case "AccessDeniedException":
|
|
1021
801
|
case "com.amazonaws.codegurureviewer#AccessDeniedException":
|
|
1022
|
-
|
|
1023
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1024
|
-
name: errorCode,
|
|
1025
|
-
$metadata: deserializeMetadata(output),
|
|
1026
|
-
};
|
|
1027
|
-
break;
|
|
802
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1028
803
|
case "InternalServerException":
|
|
1029
804
|
case "com.amazonaws.codegurureviewer#InternalServerException":
|
|
1030
|
-
|
|
1031
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1032
|
-
name: errorCode,
|
|
1033
|
-
$metadata: deserializeMetadata(output),
|
|
1034
|
-
};
|
|
1035
|
-
break;
|
|
805
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1036
806
|
case "ResourceNotFoundException":
|
|
1037
807
|
case "com.amazonaws.codegurureviewer#ResourceNotFoundException":
|
|
1038
|
-
|
|
1039
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1040
|
-
name: errorCode,
|
|
1041
|
-
$metadata: deserializeMetadata(output),
|
|
1042
|
-
};
|
|
1043
|
-
break;
|
|
808
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1044
809
|
case "ThrottlingException":
|
|
1045
810
|
case "com.amazonaws.codegurureviewer#ThrottlingException":
|
|
1046
|
-
|
|
1047
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1048
|
-
name: errorCode,
|
|
1049
|
-
$metadata: deserializeMetadata(output),
|
|
1050
|
-
};
|
|
1051
|
-
break;
|
|
811
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1052
812
|
case "ValidationException":
|
|
1053
813
|
case "com.amazonaws.codegurureviewer#ValidationException":
|
|
1054
|
-
|
|
1055
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1056
|
-
name: errorCode,
|
|
1057
|
-
$metadata: deserializeMetadata(output),
|
|
1058
|
-
};
|
|
1059
|
-
break;
|
|
814
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1060
815
|
default:
|
|
1061
816
|
const parsedBody = parsedOutput.body;
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
...parsedBody,
|
|
1065
|
-
name: `${errorCode}`,
|
|
1066
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
817
|
+
response = new CodeGuruReviewerServiceException_1.CodeGuruReviewerServiceException({
|
|
818
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1067
819
|
$fault: "client",
|
|
1068
820
|
$metadata: deserializeMetadata(output),
|
|
1069
|
-
};
|
|
821
|
+
});
|
|
822
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1070
823
|
}
|
|
1071
|
-
const message = response.message || response.Message || errorCode;
|
|
1072
|
-
response.message = message;
|
|
1073
|
-
delete response.Message;
|
|
1074
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1075
824
|
};
|
|
1076
825
|
const deserializeAws_restJson1ListRecommendationsCommand = async (output, context) => {
|
|
1077
826
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1103,59 +852,28 @@ const deserializeAws_restJson1ListRecommendationsCommandError = async (output, c
|
|
|
1103
852
|
switch (errorCode) {
|
|
1104
853
|
case "AccessDeniedException":
|
|
1105
854
|
case "com.amazonaws.codegurureviewer#AccessDeniedException":
|
|
1106
|
-
|
|
1107
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1108
|
-
name: errorCode,
|
|
1109
|
-
$metadata: deserializeMetadata(output),
|
|
1110
|
-
};
|
|
1111
|
-
break;
|
|
855
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1112
856
|
case "InternalServerException":
|
|
1113
857
|
case "com.amazonaws.codegurureviewer#InternalServerException":
|
|
1114
|
-
|
|
1115
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1116
|
-
name: errorCode,
|
|
1117
|
-
$metadata: deserializeMetadata(output),
|
|
1118
|
-
};
|
|
1119
|
-
break;
|
|
858
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1120
859
|
case "ResourceNotFoundException":
|
|
1121
860
|
case "com.amazonaws.codegurureviewer#ResourceNotFoundException":
|
|
1122
|
-
|
|
1123
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1124
|
-
name: errorCode,
|
|
1125
|
-
$metadata: deserializeMetadata(output),
|
|
1126
|
-
};
|
|
1127
|
-
break;
|
|
861
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1128
862
|
case "ThrottlingException":
|
|
1129
863
|
case "com.amazonaws.codegurureviewer#ThrottlingException":
|
|
1130
|
-
|
|
1131
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1132
|
-
name: errorCode,
|
|
1133
|
-
$metadata: deserializeMetadata(output),
|
|
1134
|
-
};
|
|
1135
|
-
break;
|
|
864
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1136
865
|
case "ValidationException":
|
|
1137
866
|
case "com.amazonaws.codegurureviewer#ValidationException":
|
|
1138
|
-
|
|
1139
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1140
|
-
name: errorCode,
|
|
1141
|
-
$metadata: deserializeMetadata(output),
|
|
1142
|
-
};
|
|
1143
|
-
break;
|
|
867
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1144
868
|
default:
|
|
1145
869
|
const parsedBody = parsedOutput.body;
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
...parsedBody,
|
|
1149
|
-
name: `${errorCode}`,
|
|
1150
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
870
|
+
response = new CodeGuruReviewerServiceException_1.CodeGuruReviewerServiceException({
|
|
871
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1151
872
|
$fault: "client",
|
|
1152
873
|
$metadata: deserializeMetadata(output),
|
|
1153
|
-
};
|
|
874
|
+
});
|
|
875
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1154
876
|
}
|
|
1155
|
-
const message = response.message || response.Message || errorCode;
|
|
1156
|
-
response.message = message;
|
|
1157
|
-
delete response.Message;
|
|
1158
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1159
877
|
};
|
|
1160
878
|
const deserializeAws_restJson1ListRepositoryAssociationsCommand = async (output, context) => {
|
|
1161
879
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1187,43 +905,22 @@ const deserializeAws_restJson1ListRepositoryAssociationsCommandError = async (ou
|
|
|
1187
905
|
switch (errorCode) {
|
|
1188
906
|
case "InternalServerException":
|
|
1189
907
|
case "com.amazonaws.codegurureviewer#InternalServerException":
|
|
1190
|
-
|
|
1191
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1192
|
-
name: errorCode,
|
|
1193
|
-
$metadata: deserializeMetadata(output),
|
|
1194
|
-
};
|
|
1195
|
-
break;
|
|
908
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1196
909
|
case "ThrottlingException":
|
|
1197
910
|
case "com.amazonaws.codegurureviewer#ThrottlingException":
|
|
1198
|
-
|
|
1199
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1200
|
-
name: errorCode,
|
|
1201
|
-
$metadata: deserializeMetadata(output),
|
|
1202
|
-
};
|
|
1203
|
-
break;
|
|
911
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1204
912
|
case "ValidationException":
|
|
1205
913
|
case "com.amazonaws.codegurureviewer#ValidationException":
|
|
1206
|
-
|
|
1207
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1208
|
-
name: errorCode,
|
|
1209
|
-
$metadata: deserializeMetadata(output),
|
|
1210
|
-
};
|
|
1211
|
-
break;
|
|
914
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1212
915
|
default:
|
|
1213
916
|
const parsedBody = parsedOutput.body;
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
...parsedBody,
|
|
1217
|
-
name: `${errorCode}`,
|
|
1218
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
917
|
+
response = new CodeGuruReviewerServiceException_1.CodeGuruReviewerServiceException({
|
|
918
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1219
919
|
$fault: "client",
|
|
1220
920
|
$metadata: deserializeMetadata(output),
|
|
1221
|
-
};
|
|
921
|
+
});
|
|
922
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1222
923
|
}
|
|
1223
|
-
const message = response.message || response.Message || errorCode;
|
|
1224
|
-
response.message = message;
|
|
1225
|
-
delete response.Message;
|
|
1226
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1227
924
|
};
|
|
1228
925
|
const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
|
|
1229
926
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1251,43 +948,22 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1251
948
|
switch (errorCode) {
|
|
1252
949
|
case "InternalServerException":
|
|
1253
950
|
case "com.amazonaws.codegurureviewer#InternalServerException":
|
|
1254
|
-
|
|
1255
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1256
|
-
name: errorCode,
|
|
1257
|
-
$metadata: deserializeMetadata(output),
|
|
1258
|
-
};
|
|
1259
|
-
break;
|
|
951
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1260
952
|
case "ResourceNotFoundException":
|
|
1261
953
|
case "com.amazonaws.codegurureviewer#ResourceNotFoundException":
|
|
1262
|
-
|
|
1263
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1264
|
-
name: errorCode,
|
|
1265
|
-
$metadata: deserializeMetadata(output),
|
|
1266
|
-
};
|
|
1267
|
-
break;
|
|
954
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1268
955
|
case "ValidationException":
|
|
1269
956
|
case "com.amazonaws.codegurureviewer#ValidationException":
|
|
1270
|
-
|
|
1271
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1272
|
-
name: errorCode,
|
|
1273
|
-
$metadata: deserializeMetadata(output),
|
|
1274
|
-
};
|
|
1275
|
-
break;
|
|
957
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1276
958
|
default:
|
|
1277
959
|
const parsedBody = parsedOutput.body;
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
...parsedBody,
|
|
1281
|
-
name: `${errorCode}`,
|
|
1282
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
960
|
+
response = new CodeGuruReviewerServiceException_1.CodeGuruReviewerServiceException({
|
|
961
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1283
962
|
$fault: "client",
|
|
1284
963
|
$metadata: deserializeMetadata(output),
|
|
1285
|
-
};
|
|
964
|
+
});
|
|
965
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1286
966
|
}
|
|
1287
|
-
const message = response.message || response.Message || errorCode;
|
|
1288
|
-
response.message = message;
|
|
1289
|
-
delete response.Message;
|
|
1290
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1291
967
|
};
|
|
1292
968
|
const deserializeAws_restJson1PutRecommendationFeedbackCommand = async (output, context) => {
|
|
1293
969
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1311,59 +987,28 @@ const deserializeAws_restJson1PutRecommendationFeedbackCommandError = async (out
|
|
|
1311
987
|
switch (errorCode) {
|
|
1312
988
|
case "AccessDeniedException":
|
|
1313
989
|
case "com.amazonaws.codegurureviewer#AccessDeniedException":
|
|
1314
|
-
|
|
1315
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1316
|
-
name: errorCode,
|
|
1317
|
-
$metadata: deserializeMetadata(output),
|
|
1318
|
-
};
|
|
1319
|
-
break;
|
|
990
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1320
991
|
case "InternalServerException":
|
|
1321
992
|
case "com.amazonaws.codegurureviewer#InternalServerException":
|
|
1322
|
-
|
|
1323
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1324
|
-
name: errorCode,
|
|
1325
|
-
$metadata: deserializeMetadata(output),
|
|
1326
|
-
};
|
|
1327
|
-
break;
|
|
993
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1328
994
|
case "ResourceNotFoundException":
|
|
1329
995
|
case "com.amazonaws.codegurureviewer#ResourceNotFoundException":
|
|
1330
|
-
|
|
1331
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1332
|
-
name: errorCode,
|
|
1333
|
-
$metadata: deserializeMetadata(output),
|
|
1334
|
-
};
|
|
1335
|
-
break;
|
|
996
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1336
997
|
case "ThrottlingException":
|
|
1337
998
|
case "com.amazonaws.codegurureviewer#ThrottlingException":
|
|
1338
|
-
|
|
1339
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1340
|
-
name: errorCode,
|
|
1341
|
-
$metadata: deserializeMetadata(output),
|
|
1342
|
-
};
|
|
1343
|
-
break;
|
|
999
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1344
1000
|
case "ValidationException":
|
|
1345
1001
|
case "com.amazonaws.codegurureviewer#ValidationException":
|
|
1346
|
-
|
|
1347
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1348
|
-
name: errorCode,
|
|
1349
|
-
$metadata: deserializeMetadata(output),
|
|
1350
|
-
};
|
|
1351
|
-
break;
|
|
1002
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1352
1003
|
default:
|
|
1353
1004
|
const parsedBody = parsedOutput.body;
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
...parsedBody,
|
|
1357
|
-
name: `${errorCode}`,
|
|
1358
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1005
|
+
response = new CodeGuruReviewerServiceException_1.CodeGuruReviewerServiceException({
|
|
1006
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1359
1007
|
$fault: "client",
|
|
1360
1008
|
$metadata: deserializeMetadata(output),
|
|
1361
|
-
};
|
|
1009
|
+
});
|
|
1010
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1362
1011
|
}
|
|
1363
|
-
const message = response.message || response.Message || errorCode;
|
|
1364
|
-
response.message = message;
|
|
1365
|
-
delete response.Message;
|
|
1366
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1367
1012
|
};
|
|
1368
1013
|
const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
1369
1014
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1387,43 +1032,22 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1387
1032
|
switch (errorCode) {
|
|
1388
1033
|
case "InternalServerException":
|
|
1389
1034
|
case "com.amazonaws.codegurureviewer#InternalServerException":
|
|
1390
|
-
|
|
1391
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1392
|
-
name: errorCode,
|
|
1393
|
-
$metadata: deserializeMetadata(output),
|
|
1394
|
-
};
|
|
1395
|
-
break;
|
|
1035
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1396
1036
|
case "ResourceNotFoundException":
|
|
1397
1037
|
case "com.amazonaws.codegurureviewer#ResourceNotFoundException":
|
|
1398
|
-
|
|
1399
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1400
|
-
name: errorCode,
|
|
1401
|
-
$metadata: deserializeMetadata(output),
|
|
1402
|
-
};
|
|
1403
|
-
break;
|
|
1038
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1404
1039
|
case "ValidationException":
|
|
1405
1040
|
case "com.amazonaws.codegurureviewer#ValidationException":
|
|
1406
|
-
|
|
1407
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1408
|
-
name: errorCode,
|
|
1409
|
-
$metadata: deserializeMetadata(output),
|
|
1410
|
-
};
|
|
1411
|
-
break;
|
|
1041
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1412
1042
|
default:
|
|
1413
1043
|
const parsedBody = parsedOutput.body;
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
...parsedBody,
|
|
1417
|
-
name: `${errorCode}`,
|
|
1418
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1044
|
+
response = new CodeGuruReviewerServiceException_1.CodeGuruReviewerServiceException({
|
|
1045
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1419
1046
|
$fault: "client",
|
|
1420
1047
|
$metadata: deserializeMetadata(output),
|
|
1421
|
-
};
|
|
1048
|
+
});
|
|
1049
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1422
1050
|
}
|
|
1423
|
-
const message = response.message || response.Message || errorCode;
|
|
1424
|
-
response.message = message;
|
|
1425
|
-
delete response.Message;
|
|
1426
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1427
1051
|
};
|
|
1428
1052
|
const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
|
|
1429
1053
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1447,134 +1071,106 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1447
1071
|
switch (errorCode) {
|
|
1448
1072
|
case "InternalServerException":
|
|
1449
1073
|
case "com.amazonaws.codegurureviewer#InternalServerException":
|
|
1450
|
-
|
|
1451
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1452
|
-
name: errorCode,
|
|
1453
|
-
$metadata: deserializeMetadata(output),
|
|
1454
|
-
};
|
|
1455
|
-
break;
|
|
1074
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1456
1075
|
case "ResourceNotFoundException":
|
|
1457
1076
|
case "com.amazonaws.codegurureviewer#ResourceNotFoundException":
|
|
1458
|
-
|
|
1459
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1460
|
-
name: errorCode,
|
|
1461
|
-
$metadata: deserializeMetadata(output),
|
|
1462
|
-
};
|
|
1463
|
-
break;
|
|
1077
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1464
1078
|
case "ValidationException":
|
|
1465
1079
|
case "com.amazonaws.codegurureviewer#ValidationException":
|
|
1466
|
-
|
|
1467
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1468
|
-
name: errorCode,
|
|
1469
|
-
$metadata: deserializeMetadata(output),
|
|
1470
|
-
};
|
|
1471
|
-
break;
|
|
1080
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1472
1081
|
default:
|
|
1473
1082
|
const parsedBody = parsedOutput.body;
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
...parsedBody,
|
|
1477
|
-
name: `${errorCode}`,
|
|
1478
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1083
|
+
response = new CodeGuruReviewerServiceException_1.CodeGuruReviewerServiceException({
|
|
1084
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1479
1085
|
$fault: "client",
|
|
1480
1086
|
$metadata: deserializeMetadata(output),
|
|
1481
|
-
};
|
|
1087
|
+
});
|
|
1088
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1482
1089
|
}
|
|
1483
|
-
const message = response.message || response.Message || errorCode;
|
|
1484
|
-
response.message = message;
|
|
1485
|
-
delete response.Message;
|
|
1486
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1487
1090
|
};
|
|
1488
1091
|
const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
1489
|
-
const contents = {
|
|
1490
|
-
name: "AccessDeniedException",
|
|
1491
|
-
$fault: "client",
|
|
1492
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1493
|
-
Message: undefined,
|
|
1494
|
-
};
|
|
1092
|
+
const contents = {};
|
|
1495
1093
|
const data = parsedOutput.body;
|
|
1496
1094
|
if (data.Message !== undefined && data.Message !== null) {
|
|
1497
1095
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
1498
1096
|
}
|
|
1499
|
-
|
|
1097
|
+
const exception = new models_0_1.AccessDeniedException({
|
|
1098
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1099
|
+
...contents,
|
|
1100
|
+
});
|
|
1101
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1500
1102
|
};
|
|
1501
1103
|
const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
|
|
1502
|
-
const contents = {
|
|
1503
|
-
name: "ConflictException",
|
|
1504
|
-
$fault: "client",
|
|
1505
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1506
|
-
Message: undefined,
|
|
1507
|
-
};
|
|
1104
|
+
const contents = {};
|
|
1508
1105
|
const data = parsedOutput.body;
|
|
1509
1106
|
if (data.Message !== undefined && data.Message !== null) {
|
|
1510
1107
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
1511
1108
|
}
|
|
1512
|
-
|
|
1109
|
+
const exception = new models_0_1.ConflictException({
|
|
1110
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1111
|
+
...contents,
|
|
1112
|
+
});
|
|
1113
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1513
1114
|
};
|
|
1514
1115
|
const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
|
|
1515
|
-
const contents = {
|
|
1516
|
-
name: "InternalServerException",
|
|
1517
|
-
$fault: "server",
|
|
1518
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1519
|
-
Message: undefined,
|
|
1520
|
-
};
|
|
1116
|
+
const contents = {};
|
|
1521
1117
|
const data = parsedOutput.body;
|
|
1522
1118
|
if (data.Message !== undefined && data.Message !== null) {
|
|
1523
1119
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
1524
1120
|
}
|
|
1525
|
-
|
|
1121
|
+
const exception = new models_0_1.InternalServerException({
|
|
1122
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1123
|
+
...contents,
|
|
1124
|
+
});
|
|
1125
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1526
1126
|
};
|
|
1527
1127
|
const deserializeAws_restJson1NotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
1528
|
-
const contents = {
|
|
1529
|
-
name: "NotFoundException",
|
|
1530
|
-
$fault: "client",
|
|
1531
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1532
|
-
Message: undefined,
|
|
1533
|
-
};
|
|
1128
|
+
const contents = {};
|
|
1534
1129
|
const data = parsedOutput.body;
|
|
1535
1130
|
if (data.Message !== undefined && data.Message !== null) {
|
|
1536
1131
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
1537
1132
|
}
|
|
1538
|
-
|
|
1133
|
+
const exception = new models_0_1.NotFoundException({
|
|
1134
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1135
|
+
...contents,
|
|
1136
|
+
});
|
|
1137
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1539
1138
|
};
|
|
1540
1139
|
const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
1541
|
-
const contents = {
|
|
1542
|
-
name: "ResourceNotFoundException",
|
|
1543
|
-
$fault: "client",
|
|
1544
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1545
|
-
Message: undefined,
|
|
1546
|
-
};
|
|
1140
|
+
const contents = {};
|
|
1547
1141
|
const data = parsedOutput.body;
|
|
1548
1142
|
if (data.Message !== undefined && data.Message !== null) {
|
|
1549
1143
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
1550
1144
|
}
|
|
1551
|
-
|
|
1145
|
+
const exception = new models_0_1.ResourceNotFoundException({
|
|
1146
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1147
|
+
...contents,
|
|
1148
|
+
});
|
|
1149
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1552
1150
|
};
|
|
1553
1151
|
const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
|
|
1554
|
-
const contents = {
|
|
1555
|
-
name: "ThrottlingException",
|
|
1556
|
-
$fault: "client",
|
|
1557
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1558
|
-
Message: undefined,
|
|
1559
|
-
};
|
|
1152
|
+
const contents = {};
|
|
1560
1153
|
const data = parsedOutput.body;
|
|
1561
1154
|
if (data.Message !== undefined && data.Message !== null) {
|
|
1562
1155
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
1563
1156
|
}
|
|
1564
|
-
|
|
1157
|
+
const exception = new models_0_1.ThrottlingException({
|
|
1158
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1159
|
+
...contents,
|
|
1160
|
+
});
|
|
1161
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1565
1162
|
};
|
|
1566
1163
|
const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
|
|
1567
|
-
const contents = {
|
|
1568
|
-
name: "ValidationException",
|
|
1569
|
-
$fault: "client",
|
|
1570
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1571
|
-
Message: undefined,
|
|
1572
|
-
};
|
|
1164
|
+
const contents = {};
|
|
1573
1165
|
const data = parsedOutput.body;
|
|
1574
1166
|
if (data.Message !== undefined && data.Message !== null) {
|
|
1575
1167
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
1576
1168
|
}
|
|
1577
|
-
|
|
1169
|
+
const exception = new models_0_1.ValidationException({
|
|
1170
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1171
|
+
...contents,
|
|
1172
|
+
});
|
|
1173
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1578
1174
|
};
|
|
1579
1175
|
const serializeAws_restJson1AnalysisTypes = (input, context) => {
|
|
1580
1176
|
return input
|
|
@@ -1762,7 +1358,7 @@ const serializeAws_restJson1ThirdPartySourceRepository = (input, context) => {
|
|
|
1762
1358
|
};
|
|
1763
1359
|
};
|
|
1764
1360
|
const deserializeAws_restJson1AnalysisTypes = (output, context) => {
|
|
1765
|
-
|
|
1361
|
+
const retVal = (output || [])
|
|
1766
1362
|
.filter((e) => e != null)
|
|
1767
1363
|
.map((entry) => {
|
|
1768
1364
|
if (entry === null) {
|
|
@@ -1770,6 +1366,7 @@ const deserializeAws_restJson1AnalysisTypes = (output, context) => {
|
|
|
1770
1366
|
}
|
|
1771
1367
|
return smithy_client_1.expectString(entry);
|
|
1772
1368
|
});
|
|
1369
|
+
return retVal;
|
|
1773
1370
|
};
|
|
1774
1371
|
const deserializeAws_restJson1BranchDiffSourceCodeType = (output, context) => {
|
|
1775
1372
|
return {
|
|
@@ -1813,7 +1410,7 @@ const deserializeAws_restJson1CodeReview = (output, context) => {
|
|
|
1813
1410
|
};
|
|
1814
1411
|
};
|
|
1815
1412
|
const deserializeAws_restJson1CodeReviewSummaries = (output, context) => {
|
|
1816
|
-
|
|
1413
|
+
const retVal = (output || [])
|
|
1817
1414
|
.filter((e) => e != null)
|
|
1818
1415
|
.map((entry) => {
|
|
1819
1416
|
if (entry === null) {
|
|
@@ -1821,6 +1418,7 @@ const deserializeAws_restJson1CodeReviewSummaries = (output, context) => {
|
|
|
1821
1418
|
}
|
|
1822
1419
|
return deserializeAws_restJson1CodeReviewSummary(entry, context);
|
|
1823
1420
|
});
|
|
1421
|
+
return retVal;
|
|
1824
1422
|
};
|
|
1825
1423
|
const deserializeAws_restJson1CodeReviewSummary = (output, context) => {
|
|
1826
1424
|
return {
|
|
@@ -1878,7 +1476,7 @@ const deserializeAws_restJson1MetricsSummary = (output, context) => {
|
|
|
1878
1476
|
};
|
|
1879
1477
|
};
|
|
1880
1478
|
const deserializeAws_restJson1Reactions = (output, context) => {
|
|
1881
|
-
|
|
1479
|
+
const retVal = (output || [])
|
|
1882
1480
|
.filter((e) => e != null)
|
|
1883
1481
|
.map((entry) => {
|
|
1884
1482
|
if (entry === null) {
|
|
@@ -1886,6 +1484,7 @@ const deserializeAws_restJson1Reactions = (output, context) => {
|
|
|
1886
1484
|
}
|
|
1887
1485
|
return smithy_client_1.expectString(entry);
|
|
1888
1486
|
});
|
|
1487
|
+
return retVal;
|
|
1889
1488
|
};
|
|
1890
1489
|
const deserializeAws_restJson1RecommendationFeedback = (output, context) => {
|
|
1891
1490
|
return {
|
|
@@ -1904,7 +1503,7 @@ const deserializeAws_restJson1RecommendationFeedback = (output, context) => {
|
|
|
1904
1503
|
};
|
|
1905
1504
|
};
|
|
1906
1505
|
const deserializeAws_restJson1RecommendationFeedbackSummaries = (output, context) => {
|
|
1907
|
-
|
|
1506
|
+
const retVal = (output || [])
|
|
1908
1507
|
.filter((e) => e != null)
|
|
1909
1508
|
.map((entry) => {
|
|
1910
1509
|
if (entry === null) {
|
|
@@ -1912,6 +1511,7 @@ const deserializeAws_restJson1RecommendationFeedbackSummaries = (output, context
|
|
|
1912
1511
|
}
|
|
1913
1512
|
return deserializeAws_restJson1RecommendationFeedbackSummary(entry, context);
|
|
1914
1513
|
});
|
|
1514
|
+
return retVal;
|
|
1915
1515
|
};
|
|
1916
1516
|
const deserializeAws_restJson1RecommendationFeedbackSummary = (output, context) => {
|
|
1917
1517
|
return {
|
|
@@ -1923,7 +1523,7 @@ const deserializeAws_restJson1RecommendationFeedbackSummary = (output, context)
|
|
|
1923
1523
|
};
|
|
1924
1524
|
};
|
|
1925
1525
|
const deserializeAws_restJson1RecommendationSummaries = (output, context) => {
|
|
1926
|
-
|
|
1526
|
+
const retVal = (output || [])
|
|
1927
1527
|
.filter((e) => e != null)
|
|
1928
1528
|
.map((entry) => {
|
|
1929
1529
|
if (entry === null) {
|
|
@@ -1931,6 +1531,7 @@ const deserializeAws_restJson1RecommendationSummaries = (output, context) => {
|
|
|
1931
1531
|
}
|
|
1932
1532
|
return deserializeAws_restJson1RecommendationSummary(entry, context);
|
|
1933
1533
|
});
|
|
1534
|
+
return retVal;
|
|
1934
1535
|
};
|
|
1935
1536
|
const deserializeAws_restJson1RecommendationSummary = (output, context) => {
|
|
1936
1537
|
return {
|
|
@@ -1971,7 +1572,7 @@ const deserializeAws_restJson1RepositoryAssociation = (output, context) => {
|
|
|
1971
1572
|
};
|
|
1972
1573
|
};
|
|
1973
1574
|
const deserializeAws_restJson1RepositoryAssociationSummaries = (output, context) => {
|
|
1974
|
-
|
|
1575
|
+
const retVal = (output || [])
|
|
1975
1576
|
.filter((e) => e != null)
|
|
1976
1577
|
.map((entry) => {
|
|
1977
1578
|
if (entry === null) {
|
|
@@ -1979,6 +1580,7 @@ const deserializeAws_restJson1RepositoryAssociationSummaries = (output, context)
|
|
|
1979
1580
|
}
|
|
1980
1581
|
return deserializeAws_restJson1RepositoryAssociationSummary(entry, context);
|
|
1981
1582
|
});
|
|
1583
|
+
return retVal;
|
|
1982
1584
|
};
|
|
1983
1585
|
const deserializeAws_restJson1RepositoryAssociationSummary = (output, context) => {
|
|
1984
1586
|
return {
|
|
@@ -2021,7 +1623,7 @@ const deserializeAws_restJson1RuleMetadata = (output, context) => {
|
|
|
2021
1623
|
};
|
|
2022
1624
|
};
|
|
2023
1625
|
const deserializeAws_restJson1RuleTags = (output, context) => {
|
|
2024
|
-
|
|
1626
|
+
const retVal = (output || [])
|
|
2025
1627
|
.filter((e) => e != null)
|
|
2026
1628
|
.map((entry) => {
|
|
2027
1629
|
if (entry === null) {
|
|
@@ -2029,6 +1631,7 @@ const deserializeAws_restJson1RuleTags = (output, context) => {
|
|
|
2029
1631
|
}
|
|
2030
1632
|
return smithy_client_1.expectString(entry);
|
|
2031
1633
|
});
|
|
1634
|
+
return retVal;
|
|
2032
1635
|
};
|
|
2033
1636
|
const deserializeAws_restJson1S3BucketRepository = (output, context) => {
|
|
2034
1637
|
return {
|