@aws-sdk/client-personalize 3.52.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 +11 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/PersonalizeServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +83 -4
- package/dist-cjs/protocols/Aws_json1_1.js +437 -1520
- package/dist-es/index.js +1 -0
- package/dist-es/models/PersonalizeServiceException.js +12 -0
- package/dist-es/models/models_0.js +74 -1
- package/dist-es/protocols/Aws_json1_1.js +1031 -1729
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/PersonalizeServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +44 -25
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/PersonalizeServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +32 -25
- package/package.json +25 -25
|
@@ -5,6 +5,8 @@ exports.deserializeAws_json1_1ListDatasetsCommand = exports.deserializeAws_json1
|
|
|
5
5
|
exports.deserializeAws_json1_1UpdateRecommenderCommand = exports.deserializeAws_json1_1UpdateCampaignCommand = exports.deserializeAws_json1_1StopSolutionVersionCreationCommand = exports.deserializeAws_json1_1ListSolutionVersionsCommand = exports.deserializeAws_json1_1ListSolutionsCommand = exports.deserializeAws_json1_1ListSchemasCommand = exports.deserializeAws_json1_1ListRecommendersCommand = exports.deserializeAws_json1_1ListRecipesCommand = exports.deserializeAws_json1_1ListFiltersCommand = exports.deserializeAws_json1_1ListEventTrackersCommand = void 0;
|
|
6
6
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
7
7
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
8
|
+
const models_0_1 = require("../models/models_0");
|
|
9
|
+
const PersonalizeServiceException_1 = require("../models/PersonalizeServiceException");
|
|
8
10
|
const serializeAws_json1_1CreateBatchInferenceJobCommand = async (input, context) => {
|
|
9
11
|
const headers = {
|
|
10
12
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -580,59 +582,28 @@ const deserializeAws_json1_1CreateBatchInferenceJobCommandError = async (output,
|
|
|
580
582
|
switch (errorCode) {
|
|
581
583
|
case "InvalidInputException":
|
|
582
584
|
case "com.amazonaws.personalize#InvalidInputException":
|
|
583
|
-
|
|
584
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
585
|
-
name: errorCode,
|
|
586
|
-
$metadata: deserializeMetadata(output),
|
|
587
|
-
};
|
|
588
|
-
break;
|
|
585
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
589
586
|
case "LimitExceededException":
|
|
590
587
|
case "com.amazonaws.personalize#LimitExceededException":
|
|
591
|
-
|
|
592
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
593
|
-
name: errorCode,
|
|
594
|
-
$metadata: deserializeMetadata(output),
|
|
595
|
-
};
|
|
596
|
-
break;
|
|
588
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
597
589
|
case "ResourceAlreadyExistsException":
|
|
598
590
|
case "com.amazonaws.personalize#ResourceAlreadyExistsException":
|
|
599
|
-
|
|
600
|
-
...(await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
601
|
-
name: errorCode,
|
|
602
|
-
$metadata: deserializeMetadata(output),
|
|
603
|
-
};
|
|
604
|
-
break;
|
|
591
|
+
throw await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
605
592
|
case "ResourceInUseException":
|
|
606
593
|
case "com.amazonaws.personalize#ResourceInUseException":
|
|
607
|
-
|
|
608
|
-
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
609
|
-
name: errorCode,
|
|
610
|
-
$metadata: deserializeMetadata(output),
|
|
611
|
-
};
|
|
612
|
-
break;
|
|
594
|
+
throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
613
595
|
case "ResourceNotFoundException":
|
|
614
596
|
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
615
|
-
|
|
616
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
617
|
-
name: errorCode,
|
|
618
|
-
$metadata: deserializeMetadata(output),
|
|
619
|
-
};
|
|
620
|
-
break;
|
|
597
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
621
598
|
default:
|
|
622
599
|
const parsedBody = parsedOutput.body;
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
...parsedBody,
|
|
626
|
-
name: `${errorCode}`,
|
|
627
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
600
|
+
response = new PersonalizeServiceException_1.PersonalizeServiceException({
|
|
601
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
628
602
|
$fault: "client",
|
|
629
603
|
$metadata: deserializeMetadata(output),
|
|
630
|
-
};
|
|
604
|
+
});
|
|
605
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
631
606
|
}
|
|
632
|
-
const message = response.message || response.Message || errorCode;
|
|
633
|
-
response.message = message;
|
|
634
|
-
delete response.Message;
|
|
635
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
636
607
|
};
|
|
637
608
|
const deserializeAws_json1_1CreateBatchSegmentJobCommand = async (output, context) => {
|
|
638
609
|
if (output.statusCode >= 300) {
|
|
@@ -659,59 +630,28 @@ const deserializeAws_json1_1CreateBatchSegmentJobCommandError = async (output, c
|
|
|
659
630
|
switch (errorCode) {
|
|
660
631
|
case "InvalidInputException":
|
|
661
632
|
case "com.amazonaws.personalize#InvalidInputException":
|
|
662
|
-
|
|
663
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
664
|
-
name: errorCode,
|
|
665
|
-
$metadata: deserializeMetadata(output),
|
|
666
|
-
};
|
|
667
|
-
break;
|
|
633
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
668
634
|
case "LimitExceededException":
|
|
669
635
|
case "com.amazonaws.personalize#LimitExceededException":
|
|
670
|
-
|
|
671
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
672
|
-
name: errorCode,
|
|
673
|
-
$metadata: deserializeMetadata(output),
|
|
674
|
-
};
|
|
675
|
-
break;
|
|
636
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
676
637
|
case "ResourceAlreadyExistsException":
|
|
677
638
|
case "com.amazonaws.personalize#ResourceAlreadyExistsException":
|
|
678
|
-
|
|
679
|
-
...(await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
680
|
-
name: errorCode,
|
|
681
|
-
$metadata: deserializeMetadata(output),
|
|
682
|
-
};
|
|
683
|
-
break;
|
|
639
|
+
throw await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
684
640
|
case "ResourceInUseException":
|
|
685
641
|
case "com.amazonaws.personalize#ResourceInUseException":
|
|
686
|
-
|
|
687
|
-
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
688
|
-
name: errorCode,
|
|
689
|
-
$metadata: deserializeMetadata(output),
|
|
690
|
-
};
|
|
691
|
-
break;
|
|
642
|
+
throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
692
643
|
case "ResourceNotFoundException":
|
|
693
644
|
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
694
|
-
|
|
695
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
696
|
-
name: errorCode,
|
|
697
|
-
$metadata: deserializeMetadata(output),
|
|
698
|
-
};
|
|
699
|
-
break;
|
|
645
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
700
646
|
default:
|
|
701
647
|
const parsedBody = parsedOutput.body;
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
...parsedBody,
|
|
705
|
-
name: `${errorCode}`,
|
|
706
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
648
|
+
response = new PersonalizeServiceException_1.PersonalizeServiceException({
|
|
649
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
707
650
|
$fault: "client",
|
|
708
651
|
$metadata: deserializeMetadata(output),
|
|
709
|
-
};
|
|
652
|
+
});
|
|
653
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
710
654
|
}
|
|
711
|
-
const message = response.message || response.Message || errorCode;
|
|
712
|
-
response.message = message;
|
|
713
|
-
delete response.Message;
|
|
714
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
715
655
|
};
|
|
716
656
|
const deserializeAws_json1_1CreateCampaignCommand = async (output, context) => {
|
|
717
657
|
if (output.statusCode >= 300) {
|
|
@@ -738,59 +678,28 @@ const deserializeAws_json1_1CreateCampaignCommandError = async (output, context)
|
|
|
738
678
|
switch (errorCode) {
|
|
739
679
|
case "InvalidInputException":
|
|
740
680
|
case "com.amazonaws.personalize#InvalidInputException":
|
|
741
|
-
|
|
742
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
743
|
-
name: errorCode,
|
|
744
|
-
$metadata: deserializeMetadata(output),
|
|
745
|
-
};
|
|
746
|
-
break;
|
|
681
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
747
682
|
case "LimitExceededException":
|
|
748
683
|
case "com.amazonaws.personalize#LimitExceededException":
|
|
749
|
-
|
|
750
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
751
|
-
name: errorCode,
|
|
752
|
-
$metadata: deserializeMetadata(output),
|
|
753
|
-
};
|
|
754
|
-
break;
|
|
684
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
755
685
|
case "ResourceAlreadyExistsException":
|
|
756
686
|
case "com.amazonaws.personalize#ResourceAlreadyExistsException":
|
|
757
|
-
|
|
758
|
-
...(await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
759
|
-
name: errorCode,
|
|
760
|
-
$metadata: deserializeMetadata(output),
|
|
761
|
-
};
|
|
762
|
-
break;
|
|
687
|
+
throw await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
763
688
|
case "ResourceInUseException":
|
|
764
689
|
case "com.amazonaws.personalize#ResourceInUseException":
|
|
765
|
-
|
|
766
|
-
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
767
|
-
name: errorCode,
|
|
768
|
-
$metadata: deserializeMetadata(output),
|
|
769
|
-
};
|
|
770
|
-
break;
|
|
690
|
+
throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
771
691
|
case "ResourceNotFoundException":
|
|
772
692
|
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
773
|
-
|
|
774
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
775
|
-
name: errorCode,
|
|
776
|
-
$metadata: deserializeMetadata(output),
|
|
777
|
-
};
|
|
778
|
-
break;
|
|
693
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
779
694
|
default:
|
|
780
695
|
const parsedBody = parsedOutput.body;
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
...parsedBody,
|
|
784
|
-
name: `${errorCode}`,
|
|
785
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
696
|
+
response = new PersonalizeServiceException_1.PersonalizeServiceException({
|
|
697
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
786
698
|
$fault: "client",
|
|
787
699
|
$metadata: deserializeMetadata(output),
|
|
788
|
-
};
|
|
700
|
+
});
|
|
701
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
789
702
|
}
|
|
790
|
-
const message = response.message || response.Message || errorCode;
|
|
791
|
-
response.message = message;
|
|
792
|
-
delete response.Message;
|
|
793
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
794
703
|
};
|
|
795
704
|
const deserializeAws_json1_1CreateDatasetCommand = async (output, context) => {
|
|
796
705
|
if (output.statusCode >= 300) {
|
|
@@ -817,59 +726,28 @@ const deserializeAws_json1_1CreateDatasetCommandError = async (output, context)
|
|
|
817
726
|
switch (errorCode) {
|
|
818
727
|
case "InvalidInputException":
|
|
819
728
|
case "com.amazonaws.personalize#InvalidInputException":
|
|
820
|
-
|
|
821
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
822
|
-
name: errorCode,
|
|
823
|
-
$metadata: deserializeMetadata(output),
|
|
824
|
-
};
|
|
825
|
-
break;
|
|
729
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
826
730
|
case "LimitExceededException":
|
|
827
731
|
case "com.amazonaws.personalize#LimitExceededException":
|
|
828
|
-
|
|
829
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
830
|
-
name: errorCode,
|
|
831
|
-
$metadata: deserializeMetadata(output),
|
|
832
|
-
};
|
|
833
|
-
break;
|
|
732
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
834
733
|
case "ResourceAlreadyExistsException":
|
|
835
734
|
case "com.amazonaws.personalize#ResourceAlreadyExistsException":
|
|
836
|
-
|
|
837
|
-
...(await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
838
|
-
name: errorCode,
|
|
839
|
-
$metadata: deserializeMetadata(output),
|
|
840
|
-
};
|
|
841
|
-
break;
|
|
735
|
+
throw await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
842
736
|
case "ResourceInUseException":
|
|
843
737
|
case "com.amazonaws.personalize#ResourceInUseException":
|
|
844
|
-
|
|
845
|
-
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
846
|
-
name: errorCode,
|
|
847
|
-
$metadata: deserializeMetadata(output),
|
|
848
|
-
};
|
|
849
|
-
break;
|
|
738
|
+
throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
850
739
|
case "ResourceNotFoundException":
|
|
851
740
|
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
852
|
-
|
|
853
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
854
|
-
name: errorCode,
|
|
855
|
-
$metadata: deserializeMetadata(output),
|
|
856
|
-
};
|
|
857
|
-
break;
|
|
741
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
858
742
|
default:
|
|
859
743
|
const parsedBody = parsedOutput.body;
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
...parsedBody,
|
|
863
|
-
name: `${errorCode}`,
|
|
864
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
744
|
+
response = new PersonalizeServiceException_1.PersonalizeServiceException({
|
|
745
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
865
746
|
$fault: "client",
|
|
866
747
|
$metadata: deserializeMetadata(output),
|
|
867
|
-
};
|
|
748
|
+
});
|
|
749
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
868
750
|
}
|
|
869
|
-
const message = response.message || response.Message || errorCode;
|
|
870
|
-
response.message = message;
|
|
871
|
-
delete response.Message;
|
|
872
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
873
751
|
};
|
|
874
752
|
const deserializeAws_json1_1CreateDatasetExportJobCommand = async (output, context) => {
|
|
875
753
|
if (output.statusCode >= 300) {
|
|
@@ -896,59 +774,28 @@ const deserializeAws_json1_1CreateDatasetExportJobCommandError = async (output,
|
|
|
896
774
|
switch (errorCode) {
|
|
897
775
|
case "InvalidInputException":
|
|
898
776
|
case "com.amazonaws.personalize#InvalidInputException":
|
|
899
|
-
|
|
900
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
901
|
-
name: errorCode,
|
|
902
|
-
$metadata: deserializeMetadata(output),
|
|
903
|
-
};
|
|
904
|
-
break;
|
|
777
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
905
778
|
case "LimitExceededException":
|
|
906
779
|
case "com.amazonaws.personalize#LimitExceededException":
|
|
907
|
-
|
|
908
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
909
|
-
name: errorCode,
|
|
910
|
-
$metadata: deserializeMetadata(output),
|
|
911
|
-
};
|
|
912
|
-
break;
|
|
780
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
913
781
|
case "ResourceAlreadyExistsException":
|
|
914
782
|
case "com.amazonaws.personalize#ResourceAlreadyExistsException":
|
|
915
|
-
|
|
916
|
-
...(await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
917
|
-
name: errorCode,
|
|
918
|
-
$metadata: deserializeMetadata(output),
|
|
919
|
-
};
|
|
920
|
-
break;
|
|
783
|
+
throw await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
921
784
|
case "ResourceInUseException":
|
|
922
785
|
case "com.amazonaws.personalize#ResourceInUseException":
|
|
923
|
-
|
|
924
|
-
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
925
|
-
name: errorCode,
|
|
926
|
-
$metadata: deserializeMetadata(output),
|
|
927
|
-
};
|
|
928
|
-
break;
|
|
786
|
+
throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
929
787
|
case "ResourceNotFoundException":
|
|
930
788
|
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
931
|
-
|
|
932
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
933
|
-
name: errorCode,
|
|
934
|
-
$metadata: deserializeMetadata(output),
|
|
935
|
-
};
|
|
936
|
-
break;
|
|
789
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
937
790
|
default:
|
|
938
791
|
const parsedBody = parsedOutput.body;
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
...parsedBody,
|
|
942
|
-
name: `${errorCode}`,
|
|
943
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
792
|
+
response = new PersonalizeServiceException_1.PersonalizeServiceException({
|
|
793
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
944
794
|
$fault: "client",
|
|
945
795
|
$metadata: deserializeMetadata(output),
|
|
946
|
-
};
|
|
796
|
+
});
|
|
797
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
947
798
|
}
|
|
948
|
-
const message = response.message || response.Message || errorCode;
|
|
949
|
-
response.message = message;
|
|
950
|
-
delete response.Message;
|
|
951
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
952
799
|
};
|
|
953
800
|
const deserializeAws_json1_1CreateDatasetGroupCommand = async (output, context) => {
|
|
954
801
|
if (output.statusCode >= 300) {
|
|
@@ -975,43 +822,22 @@ const deserializeAws_json1_1CreateDatasetGroupCommandError = async (output, cont
|
|
|
975
822
|
switch (errorCode) {
|
|
976
823
|
case "InvalidInputException":
|
|
977
824
|
case "com.amazonaws.personalize#InvalidInputException":
|
|
978
|
-
|
|
979
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
980
|
-
name: errorCode,
|
|
981
|
-
$metadata: deserializeMetadata(output),
|
|
982
|
-
};
|
|
983
|
-
break;
|
|
825
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
984
826
|
case "LimitExceededException":
|
|
985
827
|
case "com.amazonaws.personalize#LimitExceededException":
|
|
986
|
-
|
|
987
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
988
|
-
name: errorCode,
|
|
989
|
-
$metadata: deserializeMetadata(output),
|
|
990
|
-
};
|
|
991
|
-
break;
|
|
828
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
992
829
|
case "ResourceAlreadyExistsException":
|
|
993
830
|
case "com.amazonaws.personalize#ResourceAlreadyExistsException":
|
|
994
|
-
|
|
995
|
-
...(await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
996
|
-
name: errorCode,
|
|
997
|
-
$metadata: deserializeMetadata(output),
|
|
998
|
-
};
|
|
999
|
-
break;
|
|
831
|
+
throw await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
1000
832
|
default:
|
|
1001
833
|
const parsedBody = parsedOutput.body;
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
...parsedBody,
|
|
1005
|
-
name: `${errorCode}`,
|
|
1006
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
834
|
+
response = new PersonalizeServiceException_1.PersonalizeServiceException({
|
|
835
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1007
836
|
$fault: "client",
|
|
1008
837
|
$metadata: deserializeMetadata(output),
|
|
1009
|
-
};
|
|
838
|
+
});
|
|
839
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1010
840
|
}
|
|
1011
|
-
const message = response.message || response.Message || errorCode;
|
|
1012
|
-
response.message = message;
|
|
1013
|
-
delete response.Message;
|
|
1014
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1015
841
|
};
|
|
1016
842
|
const deserializeAws_json1_1CreateDatasetImportJobCommand = async (output, context) => {
|
|
1017
843
|
if (output.statusCode >= 300) {
|
|
@@ -1038,59 +864,28 @@ const deserializeAws_json1_1CreateDatasetImportJobCommandError = async (output,
|
|
|
1038
864
|
switch (errorCode) {
|
|
1039
865
|
case "InvalidInputException":
|
|
1040
866
|
case "com.amazonaws.personalize#InvalidInputException":
|
|
1041
|
-
|
|
1042
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
1043
|
-
name: errorCode,
|
|
1044
|
-
$metadata: deserializeMetadata(output),
|
|
1045
|
-
};
|
|
1046
|
-
break;
|
|
867
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
1047
868
|
case "LimitExceededException":
|
|
1048
869
|
case "com.amazonaws.personalize#LimitExceededException":
|
|
1049
|
-
|
|
1050
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
1051
|
-
name: errorCode,
|
|
1052
|
-
$metadata: deserializeMetadata(output),
|
|
1053
|
-
};
|
|
1054
|
-
break;
|
|
870
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1055
871
|
case "ResourceAlreadyExistsException":
|
|
1056
872
|
case "com.amazonaws.personalize#ResourceAlreadyExistsException":
|
|
1057
|
-
|
|
1058
|
-
...(await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
1059
|
-
name: errorCode,
|
|
1060
|
-
$metadata: deserializeMetadata(output),
|
|
1061
|
-
};
|
|
1062
|
-
break;
|
|
873
|
+
throw await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
1063
874
|
case "ResourceInUseException":
|
|
1064
875
|
case "com.amazonaws.personalize#ResourceInUseException":
|
|
1065
|
-
|
|
1066
|
-
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
1067
|
-
name: errorCode,
|
|
1068
|
-
$metadata: deserializeMetadata(output),
|
|
1069
|
-
};
|
|
1070
|
-
break;
|
|
876
|
+
throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
1071
877
|
case "ResourceNotFoundException":
|
|
1072
878
|
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
1073
|
-
|
|
1074
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1075
|
-
name: errorCode,
|
|
1076
|
-
$metadata: deserializeMetadata(output),
|
|
1077
|
-
};
|
|
1078
|
-
break;
|
|
879
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1079
880
|
default:
|
|
1080
881
|
const parsedBody = parsedOutput.body;
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
...parsedBody,
|
|
1084
|
-
name: `${errorCode}`,
|
|
1085
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
882
|
+
response = new PersonalizeServiceException_1.PersonalizeServiceException({
|
|
883
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1086
884
|
$fault: "client",
|
|
1087
885
|
$metadata: deserializeMetadata(output),
|
|
1088
|
-
};
|
|
886
|
+
});
|
|
887
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1089
888
|
}
|
|
1090
|
-
const message = response.message || response.Message || errorCode;
|
|
1091
|
-
response.message = message;
|
|
1092
|
-
delete response.Message;
|
|
1093
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1094
889
|
};
|
|
1095
890
|
const deserializeAws_json1_1CreateEventTrackerCommand = async (output, context) => {
|
|
1096
891
|
if (output.statusCode >= 300) {
|
|
@@ -1117,59 +912,28 @@ const deserializeAws_json1_1CreateEventTrackerCommandError = async (output, cont
|
|
|
1117
912
|
switch (errorCode) {
|
|
1118
913
|
case "InvalidInputException":
|
|
1119
914
|
case "com.amazonaws.personalize#InvalidInputException":
|
|
1120
|
-
|
|
1121
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
1122
|
-
name: errorCode,
|
|
1123
|
-
$metadata: deserializeMetadata(output),
|
|
1124
|
-
};
|
|
1125
|
-
break;
|
|
915
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
1126
916
|
case "LimitExceededException":
|
|
1127
917
|
case "com.amazonaws.personalize#LimitExceededException":
|
|
1128
|
-
|
|
1129
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
1130
|
-
name: errorCode,
|
|
1131
|
-
$metadata: deserializeMetadata(output),
|
|
1132
|
-
};
|
|
1133
|
-
break;
|
|
918
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1134
919
|
case "ResourceAlreadyExistsException":
|
|
1135
920
|
case "com.amazonaws.personalize#ResourceAlreadyExistsException":
|
|
1136
|
-
|
|
1137
|
-
...(await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
1138
|
-
name: errorCode,
|
|
1139
|
-
$metadata: deserializeMetadata(output),
|
|
1140
|
-
};
|
|
1141
|
-
break;
|
|
921
|
+
throw await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
1142
922
|
case "ResourceInUseException":
|
|
1143
923
|
case "com.amazonaws.personalize#ResourceInUseException":
|
|
1144
|
-
|
|
1145
|
-
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
1146
|
-
name: errorCode,
|
|
1147
|
-
$metadata: deserializeMetadata(output),
|
|
1148
|
-
};
|
|
1149
|
-
break;
|
|
924
|
+
throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
1150
925
|
case "ResourceNotFoundException":
|
|
1151
926
|
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
1152
|
-
|
|
1153
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1154
|
-
name: errorCode,
|
|
1155
|
-
$metadata: deserializeMetadata(output),
|
|
1156
|
-
};
|
|
1157
|
-
break;
|
|
927
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1158
928
|
default:
|
|
1159
929
|
const parsedBody = parsedOutput.body;
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
...parsedBody,
|
|
1163
|
-
name: `${errorCode}`,
|
|
1164
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
930
|
+
response = new PersonalizeServiceException_1.PersonalizeServiceException({
|
|
931
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1165
932
|
$fault: "client",
|
|
1166
933
|
$metadata: deserializeMetadata(output),
|
|
1167
|
-
};
|
|
934
|
+
});
|
|
935
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1168
936
|
}
|
|
1169
|
-
const message = response.message || response.Message || errorCode;
|
|
1170
|
-
response.message = message;
|
|
1171
|
-
delete response.Message;
|
|
1172
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1173
937
|
};
|
|
1174
938
|
const deserializeAws_json1_1CreateFilterCommand = async (output, context) => {
|
|
1175
939
|
if (output.statusCode >= 300) {
|
|
@@ -1196,51 +960,25 @@ const deserializeAws_json1_1CreateFilterCommandError = async (output, context) =
|
|
|
1196
960
|
switch (errorCode) {
|
|
1197
961
|
case "InvalidInputException":
|
|
1198
962
|
case "com.amazonaws.personalize#InvalidInputException":
|
|
1199
|
-
|
|
1200
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
1201
|
-
name: errorCode,
|
|
1202
|
-
$metadata: deserializeMetadata(output),
|
|
1203
|
-
};
|
|
1204
|
-
break;
|
|
963
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
1205
964
|
case "LimitExceededException":
|
|
1206
965
|
case "com.amazonaws.personalize#LimitExceededException":
|
|
1207
|
-
|
|
1208
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
1209
|
-
name: errorCode,
|
|
1210
|
-
$metadata: deserializeMetadata(output),
|
|
1211
|
-
};
|
|
1212
|
-
break;
|
|
966
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1213
967
|
case "ResourceAlreadyExistsException":
|
|
1214
968
|
case "com.amazonaws.personalize#ResourceAlreadyExistsException":
|
|
1215
|
-
|
|
1216
|
-
...(await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
1217
|
-
name: errorCode,
|
|
1218
|
-
$metadata: deserializeMetadata(output),
|
|
1219
|
-
};
|
|
1220
|
-
break;
|
|
969
|
+
throw await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
1221
970
|
case "ResourceNotFoundException":
|
|
1222
971
|
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
1223
|
-
|
|
1224
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1225
|
-
name: errorCode,
|
|
1226
|
-
$metadata: deserializeMetadata(output),
|
|
1227
|
-
};
|
|
1228
|
-
break;
|
|
972
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1229
973
|
default:
|
|
1230
974
|
const parsedBody = parsedOutput.body;
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
...parsedBody,
|
|
1234
|
-
name: `${errorCode}`,
|
|
1235
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
975
|
+
response = new PersonalizeServiceException_1.PersonalizeServiceException({
|
|
976
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1236
977
|
$fault: "client",
|
|
1237
978
|
$metadata: deserializeMetadata(output),
|
|
1238
|
-
};
|
|
979
|
+
});
|
|
980
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1239
981
|
}
|
|
1240
|
-
const message = response.message || response.Message || errorCode;
|
|
1241
|
-
response.message = message;
|
|
1242
|
-
delete response.Message;
|
|
1243
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1244
982
|
};
|
|
1245
983
|
const deserializeAws_json1_1CreateRecommenderCommand = async (output, context) => {
|
|
1246
984
|
if (output.statusCode >= 300) {
|
|
@@ -1267,51 +1005,25 @@ const deserializeAws_json1_1CreateRecommenderCommandError = async (output, conte
|
|
|
1267
1005
|
switch (errorCode) {
|
|
1268
1006
|
case "InvalidInputException":
|
|
1269
1007
|
case "com.amazonaws.personalize#InvalidInputException":
|
|
1270
|
-
|
|
1271
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
1272
|
-
name: errorCode,
|
|
1273
|
-
$metadata: deserializeMetadata(output),
|
|
1274
|
-
};
|
|
1275
|
-
break;
|
|
1008
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
1276
1009
|
case "LimitExceededException":
|
|
1277
1010
|
case "com.amazonaws.personalize#LimitExceededException":
|
|
1278
|
-
|
|
1279
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
1280
|
-
name: errorCode,
|
|
1281
|
-
$metadata: deserializeMetadata(output),
|
|
1282
|
-
};
|
|
1283
|
-
break;
|
|
1011
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1284
1012
|
case "ResourceAlreadyExistsException":
|
|
1285
1013
|
case "com.amazonaws.personalize#ResourceAlreadyExistsException":
|
|
1286
|
-
|
|
1287
|
-
...(await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
1288
|
-
name: errorCode,
|
|
1289
|
-
$metadata: deserializeMetadata(output),
|
|
1290
|
-
};
|
|
1291
|
-
break;
|
|
1014
|
+
throw await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
1292
1015
|
case "ResourceNotFoundException":
|
|
1293
1016
|
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
1294
|
-
|
|
1295
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1296
|
-
name: errorCode,
|
|
1297
|
-
$metadata: deserializeMetadata(output),
|
|
1298
|
-
};
|
|
1299
|
-
break;
|
|
1017
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1300
1018
|
default:
|
|
1301
1019
|
const parsedBody = parsedOutput.body;
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
...parsedBody,
|
|
1305
|
-
name: `${errorCode}`,
|
|
1306
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1020
|
+
response = new PersonalizeServiceException_1.PersonalizeServiceException({
|
|
1021
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1307
1022
|
$fault: "client",
|
|
1308
1023
|
$metadata: deserializeMetadata(output),
|
|
1309
|
-
};
|
|
1024
|
+
});
|
|
1025
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1310
1026
|
}
|
|
1311
|
-
const message = response.message || response.Message || errorCode;
|
|
1312
|
-
response.message = message;
|
|
1313
|
-
delete response.Message;
|
|
1314
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1315
1027
|
};
|
|
1316
1028
|
const deserializeAws_json1_1CreateSchemaCommand = async (output, context) => {
|
|
1317
1029
|
if (output.statusCode >= 300) {
|
|
@@ -1338,43 +1050,22 @@ const deserializeAws_json1_1CreateSchemaCommandError = async (output, context) =
|
|
|
1338
1050
|
switch (errorCode) {
|
|
1339
1051
|
case "InvalidInputException":
|
|
1340
1052
|
case "com.amazonaws.personalize#InvalidInputException":
|
|
1341
|
-
|
|
1342
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
1343
|
-
name: errorCode,
|
|
1344
|
-
$metadata: deserializeMetadata(output),
|
|
1345
|
-
};
|
|
1346
|
-
break;
|
|
1053
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
1347
1054
|
case "LimitExceededException":
|
|
1348
1055
|
case "com.amazonaws.personalize#LimitExceededException":
|
|
1349
|
-
|
|
1350
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
1351
|
-
name: errorCode,
|
|
1352
|
-
$metadata: deserializeMetadata(output),
|
|
1353
|
-
};
|
|
1354
|
-
break;
|
|
1056
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1355
1057
|
case "ResourceAlreadyExistsException":
|
|
1356
1058
|
case "com.amazonaws.personalize#ResourceAlreadyExistsException":
|
|
1357
|
-
|
|
1358
|
-
...(await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
1359
|
-
name: errorCode,
|
|
1360
|
-
$metadata: deserializeMetadata(output),
|
|
1361
|
-
};
|
|
1362
|
-
break;
|
|
1059
|
+
throw await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
1363
1060
|
default:
|
|
1364
1061
|
const parsedBody = parsedOutput.body;
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
...parsedBody,
|
|
1368
|
-
name: `${errorCode}`,
|
|
1369
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1062
|
+
response = new PersonalizeServiceException_1.PersonalizeServiceException({
|
|
1063
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1370
1064
|
$fault: "client",
|
|
1371
1065
|
$metadata: deserializeMetadata(output),
|
|
1372
|
-
};
|
|
1066
|
+
});
|
|
1067
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1373
1068
|
}
|
|
1374
|
-
const message = response.message || response.Message || errorCode;
|
|
1375
|
-
response.message = message;
|
|
1376
|
-
delete response.Message;
|
|
1377
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1378
1069
|
};
|
|
1379
1070
|
const deserializeAws_json1_1CreateSolutionCommand = async (output, context) => {
|
|
1380
1071
|
if (output.statusCode >= 300) {
|
|
@@ -1401,59 +1092,28 @@ const deserializeAws_json1_1CreateSolutionCommandError = async (output, context)
|
|
|
1401
1092
|
switch (errorCode) {
|
|
1402
1093
|
case "InvalidInputException":
|
|
1403
1094
|
case "com.amazonaws.personalize#InvalidInputException":
|
|
1404
|
-
|
|
1405
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
1406
|
-
name: errorCode,
|
|
1407
|
-
$metadata: deserializeMetadata(output),
|
|
1408
|
-
};
|
|
1409
|
-
break;
|
|
1095
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
1410
1096
|
case "LimitExceededException":
|
|
1411
1097
|
case "com.amazonaws.personalize#LimitExceededException":
|
|
1412
|
-
|
|
1413
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
1414
|
-
name: errorCode,
|
|
1415
|
-
$metadata: deserializeMetadata(output),
|
|
1416
|
-
};
|
|
1417
|
-
break;
|
|
1098
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1418
1099
|
case "ResourceAlreadyExistsException":
|
|
1419
1100
|
case "com.amazonaws.personalize#ResourceAlreadyExistsException":
|
|
1420
|
-
|
|
1421
|
-
...(await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
1422
|
-
name: errorCode,
|
|
1423
|
-
$metadata: deserializeMetadata(output),
|
|
1424
|
-
};
|
|
1425
|
-
break;
|
|
1101
|
+
throw await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
1426
1102
|
case "ResourceInUseException":
|
|
1427
1103
|
case "com.amazonaws.personalize#ResourceInUseException":
|
|
1428
|
-
|
|
1429
|
-
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
1430
|
-
name: errorCode,
|
|
1431
|
-
$metadata: deserializeMetadata(output),
|
|
1432
|
-
};
|
|
1433
|
-
break;
|
|
1104
|
+
throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
1434
1105
|
case "ResourceNotFoundException":
|
|
1435
1106
|
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
1436
|
-
|
|
1437
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1438
|
-
name: errorCode,
|
|
1439
|
-
$metadata: deserializeMetadata(output),
|
|
1440
|
-
};
|
|
1441
|
-
break;
|
|
1107
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1442
1108
|
default:
|
|
1443
1109
|
const parsedBody = parsedOutput.body;
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
...parsedBody,
|
|
1447
|
-
name: `${errorCode}`,
|
|
1448
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1110
|
+
response = new PersonalizeServiceException_1.PersonalizeServiceException({
|
|
1111
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1449
1112
|
$fault: "client",
|
|
1450
1113
|
$metadata: deserializeMetadata(output),
|
|
1451
|
-
};
|
|
1114
|
+
});
|
|
1115
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1452
1116
|
}
|
|
1453
|
-
const message = response.message || response.Message || errorCode;
|
|
1454
|
-
response.message = message;
|
|
1455
|
-
delete response.Message;
|
|
1456
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1457
1117
|
};
|
|
1458
1118
|
const deserializeAws_json1_1CreateSolutionVersionCommand = async (output, context) => {
|
|
1459
1119
|
if (output.statusCode >= 300) {
|
|
@@ -1480,51 +1140,25 @@ const deserializeAws_json1_1CreateSolutionVersionCommandError = async (output, c
|
|
|
1480
1140
|
switch (errorCode) {
|
|
1481
1141
|
case "InvalidInputException":
|
|
1482
1142
|
case "com.amazonaws.personalize#InvalidInputException":
|
|
1483
|
-
|
|
1484
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
1485
|
-
name: errorCode,
|
|
1486
|
-
$metadata: deserializeMetadata(output),
|
|
1487
|
-
};
|
|
1488
|
-
break;
|
|
1143
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
1489
1144
|
case "LimitExceededException":
|
|
1490
1145
|
case "com.amazonaws.personalize#LimitExceededException":
|
|
1491
|
-
|
|
1492
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
1493
|
-
name: errorCode,
|
|
1494
|
-
$metadata: deserializeMetadata(output),
|
|
1495
|
-
};
|
|
1496
|
-
break;
|
|
1146
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1497
1147
|
case "ResourceInUseException":
|
|
1498
1148
|
case "com.amazonaws.personalize#ResourceInUseException":
|
|
1499
|
-
|
|
1500
|
-
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
1501
|
-
name: errorCode,
|
|
1502
|
-
$metadata: deserializeMetadata(output),
|
|
1503
|
-
};
|
|
1504
|
-
break;
|
|
1149
|
+
throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
1505
1150
|
case "ResourceNotFoundException":
|
|
1506
1151
|
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
1507
|
-
|
|
1508
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1509
|
-
name: errorCode,
|
|
1510
|
-
$metadata: deserializeMetadata(output),
|
|
1511
|
-
};
|
|
1512
|
-
break;
|
|
1152
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1513
1153
|
default:
|
|
1514
1154
|
const parsedBody = parsedOutput.body;
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
...parsedBody,
|
|
1518
|
-
name: `${errorCode}`,
|
|
1519
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1155
|
+
response = new PersonalizeServiceException_1.PersonalizeServiceException({
|
|
1156
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1520
1157
|
$fault: "client",
|
|
1521
1158
|
$metadata: deserializeMetadata(output),
|
|
1522
|
-
};
|
|
1159
|
+
});
|
|
1160
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1523
1161
|
}
|
|
1524
|
-
const message = response.message || response.Message || errorCode;
|
|
1525
|
-
response.message = message;
|
|
1526
|
-
delete response.Message;
|
|
1527
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1528
1162
|
};
|
|
1529
1163
|
const deserializeAws_json1_1DeleteCampaignCommand = async (output, context) => {
|
|
1530
1164
|
if (output.statusCode >= 300) {
|
|
@@ -1548,43 +1182,22 @@ const deserializeAws_json1_1DeleteCampaignCommandError = async (output, context)
|
|
|
1548
1182
|
switch (errorCode) {
|
|
1549
1183
|
case "InvalidInputException":
|
|
1550
1184
|
case "com.amazonaws.personalize#InvalidInputException":
|
|
1551
|
-
|
|
1552
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
1553
|
-
name: errorCode,
|
|
1554
|
-
$metadata: deserializeMetadata(output),
|
|
1555
|
-
};
|
|
1556
|
-
break;
|
|
1185
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
1557
1186
|
case "ResourceInUseException":
|
|
1558
1187
|
case "com.amazonaws.personalize#ResourceInUseException":
|
|
1559
|
-
|
|
1560
|
-
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
1561
|
-
name: errorCode,
|
|
1562
|
-
$metadata: deserializeMetadata(output),
|
|
1563
|
-
};
|
|
1564
|
-
break;
|
|
1188
|
+
throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
1565
1189
|
case "ResourceNotFoundException":
|
|
1566
1190
|
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
1567
|
-
|
|
1568
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1569
|
-
name: errorCode,
|
|
1570
|
-
$metadata: deserializeMetadata(output),
|
|
1571
|
-
};
|
|
1572
|
-
break;
|
|
1191
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1573
1192
|
default:
|
|
1574
1193
|
const parsedBody = parsedOutput.body;
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
...parsedBody,
|
|
1578
|
-
name: `${errorCode}`,
|
|
1579
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1194
|
+
response = new PersonalizeServiceException_1.PersonalizeServiceException({
|
|
1195
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1580
1196
|
$fault: "client",
|
|
1581
1197
|
$metadata: deserializeMetadata(output),
|
|
1582
|
-
};
|
|
1198
|
+
});
|
|
1199
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1583
1200
|
}
|
|
1584
|
-
const message = response.message || response.Message || errorCode;
|
|
1585
|
-
response.message = message;
|
|
1586
|
-
delete response.Message;
|
|
1587
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1588
1201
|
};
|
|
1589
1202
|
const deserializeAws_json1_1DeleteDatasetCommand = async (output, context) => {
|
|
1590
1203
|
if (output.statusCode >= 300) {
|
|
@@ -1608,43 +1221,22 @@ const deserializeAws_json1_1DeleteDatasetCommandError = async (output, context)
|
|
|
1608
1221
|
switch (errorCode) {
|
|
1609
1222
|
case "InvalidInputException":
|
|
1610
1223
|
case "com.amazonaws.personalize#InvalidInputException":
|
|
1611
|
-
|
|
1612
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
1613
|
-
name: errorCode,
|
|
1614
|
-
$metadata: deserializeMetadata(output),
|
|
1615
|
-
};
|
|
1616
|
-
break;
|
|
1224
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
1617
1225
|
case "ResourceInUseException":
|
|
1618
1226
|
case "com.amazonaws.personalize#ResourceInUseException":
|
|
1619
|
-
|
|
1620
|
-
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
1621
|
-
name: errorCode,
|
|
1622
|
-
$metadata: deserializeMetadata(output),
|
|
1623
|
-
};
|
|
1624
|
-
break;
|
|
1227
|
+
throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
1625
1228
|
case "ResourceNotFoundException":
|
|
1626
1229
|
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
1627
|
-
|
|
1628
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1629
|
-
name: errorCode,
|
|
1630
|
-
$metadata: deserializeMetadata(output),
|
|
1631
|
-
};
|
|
1632
|
-
break;
|
|
1230
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1633
1231
|
default:
|
|
1634
1232
|
const parsedBody = parsedOutput.body;
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
...parsedBody,
|
|
1638
|
-
name: `${errorCode}`,
|
|
1639
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1233
|
+
response = new PersonalizeServiceException_1.PersonalizeServiceException({
|
|
1234
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1640
1235
|
$fault: "client",
|
|
1641
1236
|
$metadata: deserializeMetadata(output),
|
|
1642
|
-
};
|
|
1237
|
+
});
|
|
1238
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1643
1239
|
}
|
|
1644
|
-
const message = response.message || response.Message || errorCode;
|
|
1645
|
-
response.message = message;
|
|
1646
|
-
delete response.Message;
|
|
1647
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1648
1240
|
};
|
|
1649
1241
|
const deserializeAws_json1_1DeleteDatasetGroupCommand = async (output, context) => {
|
|
1650
1242
|
if (output.statusCode >= 300) {
|
|
@@ -1668,43 +1260,22 @@ const deserializeAws_json1_1DeleteDatasetGroupCommandError = async (output, cont
|
|
|
1668
1260
|
switch (errorCode) {
|
|
1669
1261
|
case "InvalidInputException":
|
|
1670
1262
|
case "com.amazonaws.personalize#InvalidInputException":
|
|
1671
|
-
|
|
1672
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
1673
|
-
name: errorCode,
|
|
1674
|
-
$metadata: deserializeMetadata(output),
|
|
1675
|
-
};
|
|
1676
|
-
break;
|
|
1263
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
1677
1264
|
case "ResourceInUseException":
|
|
1678
1265
|
case "com.amazonaws.personalize#ResourceInUseException":
|
|
1679
|
-
|
|
1680
|
-
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
1681
|
-
name: errorCode,
|
|
1682
|
-
$metadata: deserializeMetadata(output),
|
|
1683
|
-
};
|
|
1684
|
-
break;
|
|
1266
|
+
throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
1685
1267
|
case "ResourceNotFoundException":
|
|
1686
1268
|
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
1687
|
-
|
|
1688
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1689
|
-
name: errorCode,
|
|
1690
|
-
$metadata: deserializeMetadata(output),
|
|
1691
|
-
};
|
|
1692
|
-
break;
|
|
1269
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1693
1270
|
default:
|
|
1694
1271
|
const parsedBody = parsedOutput.body;
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
...parsedBody,
|
|
1698
|
-
name: `${errorCode}`,
|
|
1699
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1272
|
+
response = new PersonalizeServiceException_1.PersonalizeServiceException({
|
|
1273
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1700
1274
|
$fault: "client",
|
|
1701
1275
|
$metadata: deserializeMetadata(output),
|
|
1702
|
-
};
|
|
1276
|
+
});
|
|
1277
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1703
1278
|
}
|
|
1704
|
-
const message = response.message || response.Message || errorCode;
|
|
1705
|
-
response.message = message;
|
|
1706
|
-
delete response.Message;
|
|
1707
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1708
1279
|
};
|
|
1709
1280
|
const deserializeAws_json1_1DeleteEventTrackerCommand = async (output, context) => {
|
|
1710
1281
|
if (output.statusCode >= 300) {
|
|
@@ -1728,43 +1299,22 @@ const deserializeAws_json1_1DeleteEventTrackerCommandError = async (output, cont
|
|
|
1728
1299
|
switch (errorCode) {
|
|
1729
1300
|
case "InvalidInputException":
|
|
1730
1301
|
case "com.amazonaws.personalize#InvalidInputException":
|
|
1731
|
-
|
|
1732
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
1733
|
-
name: errorCode,
|
|
1734
|
-
$metadata: deserializeMetadata(output),
|
|
1735
|
-
};
|
|
1736
|
-
break;
|
|
1302
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
1737
1303
|
case "ResourceInUseException":
|
|
1738
1304
|
case "com.amazonaws.personalize#ResourceInUseException":
|
|
1739
|
-
|
|
1740
|
-
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
1741
|
-
name: errorCode,
|
|
1742
|
-
$metadata: deserializeMetadata(output),
|
|
1743
|
-
};
|
|
1744
|
-
break;
|
|
1305
|
+
throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
1745
1306
|
case "ResourceNotFoundException":
|
|
1746
1307
|
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
1747
|
-
|
|
1748
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1749
|
-
name: errorCode,
|
|
1750
|
-
$metadata: deserializeMetadata(output),
|
|
1751
|
-
};
|
|
1752
|
-
break;
|
|
1308
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1753
1309
|
default:
|
|
1754
1310
|
const parsedBody = parsedOutput.body;
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
...parsedBody,
|
|
1758
|
-
name: `${errorCode}`,
|
|
1759
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1311
|
+
response = new PersonalizeServiceException_1.PersonalizeServiceException({
|
|
1312
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1760
1313
|
$fault: "client",
|
|
1761
1314
|
$metadata: deserializeMetadata(output),
|
|
1762
|
-
};
|
|
1315
|
+
});
|
|
1316
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1763
1317
|
}
|
|
1764
|
-
const message = response.message || response.Message || errorCode;
|
|
1765
|
-
response.message = message;
|
|
1766
|
-
delete response.Message;
|
|
1767
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1768
1318
|
};
|
|
1769
1319
|
const deserializeAws_json1_1DeleteFilterCommand = async (output, context) => {
|
|
1770
1320
|
if (output.statusCode >= 300) {
|
|
@@ -1788,43 +1338,22 @@ const deserializeAws_json1_1DeleteFilterCommandError = async (output, context) =
|
|
|
1788
1338
|
switch (errorCode) {
|
|
1789
1339
|
case "InvalidInputException":
|
|
1790
1340
|
case "com.amazonaws.personalize#InvalidInputException":
|
|
1791
|
-
|
|
1792
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
1793
|
-
name: errorCode,
|
|
1794
|
-
$metadata: deserializeMetadata(output),
|
|
1795
|
-
};
|
|
1796
|
-
break;
|
|
1341
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
1797
1342
|
case "ResourceInUseException":
|
|
1798
1343
|
case "com.amazonaws.personalize#ResourceInUseException":
|
|
1799
|
-
|
|
1800
|
-
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
1801
|
-
name: errorCode,
|
|
1802
|
-
$metadata: deserializeMetadata(output),
|
|
1803
|
-
};
|
|
1804
|
-
break;
|
|
1344
|
+
throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
1805
1345
|
case "ResourceNotFoundException":
|
|
1806
1346
|
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
1807
|
-
|
|
1808
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1809
|
-
name: errorCode,
|
|
1810
|
-
$metadata: deserializeMetadata(output),
|
|
1811
|
-
};
|
|
1812
|
-
break;
|
|
1347
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1813
1348
|
default:
|
|
1814
1349
|
const parsedBody = parsedOutput.body;
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
...parsedBody,
|
|
1818
|
-
name: `${errorCode}`,
|
|
1819
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1350
|
+
response = new PersonalizeServiceException_1.PersonalizeServiceException({
|
|
1351
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1820
1352
|
$fault: "client",
|
|
1821
1353
|
$metadata: deserializeMetadata(output),
|
|
1822
|
-
};
|
|
1354
|
+
});
|
|
1355
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1823
1356
|
}
|
|
1824
|
-
const message = response.message || response.Message || errorCode;
|
|
1825
|
-
response.message = message;
|
|
1826
|
-
delete response.Message;
|
|
1827
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1828
1357
|
};
|
|
1829
1358
|
const deserializeAws_json1_1DeleteRecommenderCommand = async (output, context) => {
|
|
1830
1359
|
if (output.statusCode >= 300) {
|
|
@@ -1848,43 +1377,22 @@ const deserializeAws_json1_1DeleteRecommenderCommandError = async (output, conte
|
|
|
1848
1377
|
switch (errorCode) {
|
|
1849
1378
|
case "InvalidInputException":
|
|
1850
1379
|
case "com.amazonaws.personalize#InvalidInputException":
|
|
1851
|
-
|
|
1852
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
1853
|
-
name: errorCode,
|
|
1854
|
-
$metadata: deserializeMetadata(output),
|
|
1855
|
-
};
|
|
1856
|
-
break;
|
|
1380
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
1857
1381
|
case "ResourceInUseException":
|
|
1858
1382
|
case "com.amazonaws.personalize#ResourceInUseException":
|
|
1859
|
-
|
|
1860
|
-
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
1861
|
-
name: errorCode,
|
|
1862
|
-
$metadata: deserializeMetadata(output),
|
|
1863
|
-
};
|
|
1864
|
-
break;
|
|
1383
|
+
throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
1865
1384
|
case "ResourceNotFoundException":
|
|
1866
1385
|
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
1867
|
-
|
|
1868
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1869
|
-
name: errorCode,
|
|
1870
|
-
$metadata: deserializeMetadata(output),
|
|
1871
|
-
};
|
|
1872
|
-
break;
|
|
1386
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1873
1387
|
default:
|
|
1874
1388
|
const parsedBody = parsedOutput.body;
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
...parsedBody,
|
|
1878
|
-
name: `${errorCode}`,
|
|
1879
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1389
|
+
response = new PersonalizeServiceException_1.PersonalizeServiceException({
|
|
1390
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1880
1391
|
$fault: "client",
|
|
1881
1392
|
$metadata: deserializeMetadata(output),
|
|
1882
|
-
};
|
|
1393
|
+
});
|
|
1394
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1883
1395
|
}
|
|
1884
|
-
const message = response.message || response.Message || errorCode;
|
|
1885
|
-
response.message = message;
|
|
1886
|
-
delete response.Message;
|
|
1887
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1888
1396
|
};
|
|
1889
1397
|
const deserializeAws_json1_1DeleteSchemaCommand = async (output, context) => {
|
|
1890
1398
|
if (output.statusCode >= 300) {
|
|
@@ -1908,43 +1416,22 @@ const deserializeAws_json1_1DeleteSchemaCommandError = async (output, context) =
|
|
|
1908
1416
|
switch (errorCode) {
|
|
1909
1417
|
case "InvalidInputException":
|
|
1910
1418
|
case "com.amazonaws.personalize#InvalidInputException":
|
|
1911
|
-
|
|
1912
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
1913
|
-
name: errorCode,
|
|
1914
|
-
$metadata: deserializeMetadata(output),
|
|
1915
|
-
};
|
|
1916
|
-
break;
|
|
1419
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
1917
1420
|
case "ResourceInUseException":
|
|
1918
1421
|
case "com.amazonaws.personalize#ResourceInUseException":
|
|
1919
|
-
|
|
1920
|
-
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
1921
|
-
name: errorCode,
|
|
1922
|
-
$metadata: deserializeMetadata(output),
|
|
1923
|
-
};
|
|
1924
|
-
break;
|
|
1422
|
+
throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
1925
1423
|
case "ResourceNotFoundException":
|
|
1926
1424
|
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
1927
|
-
|
|
1928
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1929
|
-
name: errorCode,
|
|
1930
|
-
$metadata: deserializeMetadata(output),
|
|
1931
|
-
};
|
|
1932
|
-
break;
|
|
1425
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1933
1426
|
default:
|
|
1934
1427
|
const parsedBody = parsedOutput.body;
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
...parsedBody,
|
|
1938
|
-
name: `${errorCode}`,
|
|
1939
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1428
|
+
response = new PersonalizeServiceException_1.PersonalizeServiceException({
|
|
1429
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1940
1430
|
$fault: "client",
|
|
1941
1431
|
$metadata: deserializeMetadata(output),
|
|
1942
|
-
};
|
|
1432
|
+
});
|
|
1433
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1943
1434
|
}
|
|
1944
|
-
const message = response.message || response.Message || errorCode;
|
|
1945
|
-
response.message = message;
|
|
1946
|
-
delete response.Message;
|
|
1947
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1948
1435
|
};
|
|
1949
1436
|
const deserializeAws_json1_1DeleteSolutionCommand = async (output, context) => {
|
|
1950
1437
|
if (output.statusCode >= 300) {
|
|
@@ -1968,43 +1455,22 @@ const deserializeAws_json1_1DeleteSolutionCommandError = async (output, context)
|
|
|
1968
1455
|
switch (errorCode) {
|
|
1969
1456
|
case "InvalidInputException":
|
|
1970
1457
|
case "com.amazonaws.personalize#InvalidInputException":
|
|
1971
|
-
|
|
1972
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
1973
|
-
name: errorCode,
|
|
1974
|
-
$metadata: deserializeMetadata(output),
|
|
1975
|
-
};
|
|
1976
|
-
break;
|
|
1458
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
1977
1459
|
case "ResourceInUseException":
|
|
1978
1460
|
case "com.amazonaws.personalize#ResourceInUseException":
|
|
1979
|
-
|
|
1980
|
-
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
1981
|
-
name: errorCode,
|
|
1982
|
-
$metadata: deserializeMetadata(output),
|
|
1983
|
-
};
|
|
1984
|
-
break;
|
|
1461
|
+
throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
1985
1462
|
case "ResourceNotFoundException":
|
|
1986
1463
|
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
1987
|
-
|
|
1988
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1989
|
-
name: errorCode,
|
|
1990
|
-
$metadata: deserializeMetadata(output),
|
|
1991
|
-
};
|
|
1992
|
-
break;
|
|
1464
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1993
1465
|
default:
|
|
1994
1466
|
const parsedBody = parsedOutput.body;
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
...parsedBody,
|
|
1998
|
-
name: `${errorCode}`,
|
|
1999
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1467
|
+
response = new PersonalizeServiceException_1.PersonalizeServiceException({
|
|
1468
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2000
1469
|
$fault: "client",
|
|
2001
1470
|
$metadata: deserializeMetadata(output),
|
|
2002
|
-
};
|
|
1471
|
+
});
|
|
1472
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2003
1473
|
}
|
|
2004
|
-
const message = response.message || response.Message || errorCode;
|
|
2005
|
-
response.message = message;
|
|
2006
|
-
delete response.Message;
|
|
2007
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2008
1474
|
};
|
|
2009
1475
|
const deserializeAws_json1_1DescribeAlgorithmCommand = async (output, context) => {
|
|
2010
1476
|
if (output.statusCode >= 300) {
|
|
@@ -2031,35 +1497,19 @@ const deserializeAws_json1_1DescribeAlgorithmCommandError = async (output, conte
|
|
|
2031
1497
|
switch (errorCode) {
|
|
2032
1498
|
case "InvalidInputException":
|
|
2033
1499
|
case "com.amazonaws.personalize#InvalidInputException":
|
|
2034
|
-
|
|
2035
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
2036
|
-
name: errorCode,
|
|
2037
|
-
$metadata: deserializeMetadata(output),
|
|
2038
|
-
};
|
|
2039
|
-
break;
|
|
1500
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
2040
1501
|
case "ResourceNotFoundException":
|
|
2041
1502
|
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
2042
|
-
|
|
2043
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2044
|
-
name: errorCode,
|
|
2045
|
-
$metadata: deserializeMetadata(output),
|
|
2046
|
-
};
|
|
2047
|
-
break;
|
|
1503
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2048
1504
|
default:
|
|
2049
1505
|
const parsedBody = parsedOutput.body;
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
...parsedBody,
|
|
2053
|
-
name: `${errorCode}`,
|
|
2054
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1506
|
+
response = new PersonalizeServiceException_1.PersonalizeServiceException({
|
|
1507
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2055
1508
|
$fault: "client",
|
|
2056
1509
|
$metadata: deserializeMetadata(output),
|
|
2057
|
-
};
|
|
1510
|
+
});
|
|
1511
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2058
1512
|
}
|
|
2059
|
-
const message = response.message || response.Message || errorCode;
|
|
2060
|
-
response.message = message;
|
|
2061
|
-
delete response.Message;
|
|
2062
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2063
1513
|
};
|
|
2064
1514
|
const deserializeAws_json1_1DescribeBatchInferenceJobCommand = async (output, context) => {
|
|
2065
1515
|
if (output.statusCode >= 300) {
|
|
@@ -2086,35 +1536,19 @@ const deserializeAws_json1_1DescribeBatchInferenceJobCommandError = async (outpu
|
|
|
2086
1536
|
switch (errorCode) {
|
|
2087
1537
|
case "InvalidInputException":
|
|
2088
1538
|
case "com.amazonaws.personalize#InvalidInputException":
|
|
2089
|
-
|
|
2090
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
2091
|
-
name: errorCode,
|
|
2092
|
-
$metadata: deserializeMetadata(output),
|
|
2093
|
-
};
|
|
2094
|
-
break;
|
|
1539
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
2095
1540
|
case "ResourceNotFoundException":
|
|
2096
1541
|
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
2097
|
-
|
|
2098
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2099
|
-
name: errorCode,
|
|
2100
|
-
$metadata: deserializeMetadata(output),
|
|
2101
|
-
};
|
|
2102
|
-
break;
|
|
1542
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2103
1543
|
default:
|
|
2104
1544
|
const parsedBody = parsedOutput.body;
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
...parsedBody,
|
|
2108
|
-
name: `${errorCode}`,
|
|
2109
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1545
|
+
response = new PersonalizeServiceException_1.PersonalizeServiceException({
|
|
1546
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2110
1547
|
$fault: "client",
|
|
2111
1548
|
$metadata: deserializeMetadata(output),
|
|
2112
|
-
};
|
|
1549
|
+
});
|
|
1550
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2113
1551
|
}
|
|
2114
|
-
const message = response.message || response.Message || errorCode;
|
|
2115
|
-
response.message = message;
|
|
2116
|
-
delete response.Message;
|
|
2117
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2118
1552
|
};
|
|
2119
1553
|
const deserializeAws_json1_1DescribeBatchSegmentJobCommand = async (output, context) => {
|
|
2120
1554
|
if (output.statusCode >= 300) {
|
|
@@ -2141,35 +1575,19 @@ const deserializeAws_json1_1DescribeBatchSegmentJobCommandError = async (output,
|
|
|
2141
1575
|
switch (errorCode) {
|
|
2142
1576
|
case "InvalidInputException":
|
|
2143
1577
|
case "com.amazonaws.personalize#InvalidInputException":
|
|
2144
|
-
|
|
2145
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
2146
|
-
name: errorCode,
|
|
2147
|
-
$metadata: deserializeMetadata(output),
|
|
2148
|
-
};
|
|
2149
|
-
break;
|
|
1578
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
2150
1579
|
case "ResourceNotFoundException":
|
|
2151
1580
|
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
2152
|
-
|
|
2153
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2154
|
-
name: errorCode,
|
|
2155
|
-
$metadata: deserializeMetadata(output),
|
|
2156
|
-
};
|
|
2157
|
-
break;
|
|
1581
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2158
1582
|
default:
|
|
2159
1583
|
const parsedBody = parsedOutput.body;
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
...parsedBody,
|
|
2163
|
-
name: `${errorCode}`,
|
|
2164
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1584
|
+
response = new PersonalizeServiceException_1.PersonalizeServiceException({
|
|
1585
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2165
1586
|
$fault: "client",
|
|
2166
1587
|
$metadata: deserializeMetadata(output),
|
|
2167
|
-
};
|
|
1588
|
+
});
|
|
1589
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2168
1590
|
}
|
|
2169
|
-
const message = response.message || response.Message || errorCode;
|
|
2170
|
-
response.message = message;
|
|
2171
|
-
delete response.Message;
|
|
2172
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2173
1591
|
};
|
|
2174
1592
|
const deserializeAws_json1_1DescribeCampaignCommand = async (output, context) => {
|
|
2175
1593
|
if (output.statusCode >= 300) {
|
|
@@ -2196,35 +1614,19 @@ const deserializeAws_json1_1DescribeCampaignCommandError = async (output, contex
|
|
|
2196
1614
|
switch (errorCode) {
|
|
2197
1615
|
case "InvalidInputException":
|
|
2198
1616
|
case "com.amazonaws.personalize#InvalidInputException":
|
|
2199
|
-
|
|
2200
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
2201
|
-
name: errorCode,
|
|
2202
|
-
$metadata: deserializeMetadata(output),
|
|
2203
|
-
};
|
|
2204
|
-
break;
|
|
1617
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
2205
1618
|
case "ResourceNotFoundException":
|
|
2206
1619
|
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
2207
|
-
|
|
2208
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2209
|
-
name: errorCode,
|
|
2210
|
-
$metadata: deserializeMetadata(output),
|
|
2211
|
-
};
|
|
2212
|
-
break;
|
|
1620
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2213
1621
|
default:
|
|
2214
1622
|
const parsedBody = parsedOutput.body;
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
...parsedBody,
|
|
2218
|
-
name: `${errorCode}`,
|
|
2219
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1623
|
+
response = new PersonalizeServiceException_1.PersonalizeServiceException({
|
|
1624
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2220
1625
|
$fault: "client",
|
|
2221
1626
|
$metadata: deserializeMetadata(output),
|
|
2222
|
-
};
|
|
1627
|
+
});
|
|
1628
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2223
1629
|
}
|
|
2224
|
-
const message = response.message || response.Message || errorCode;
|
|
2225
|
-
response.message = message;
|
|
2226
|
-
delete response.Message;
|
|
2227
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2228
1630
|
};
|
|
2229
1631
|
const deserializeAws_json1_1DescribeDatasetCommand = async (output, context) => {
|
|
2230
1632
|
if (output.statusCode >= 300) {
|
|
@@ -2251,35 +1653,19 @@ const deserializeAws_json1_1DescribeDatasetCommandError = async (output, context
|
|
|
2251
1653
|
switch (errorCode) {
|
|
2252
1654
|
case "InvalidInputException":
|
|
2253
1655
|
case "com.amazonaws.personalize#InvalidInputException":
|
|
2254
|
-
|
|
2255
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
2256
|
-
name: errorCode,
|
|
2257
|
-
$metadata: deserializeMetadata(output),
|
|
2258
|
-
};
|
|
2259
|
-
break;
|
|
1656
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
2260
1657
|
case "ResourceNotFoundException":
|
|
2261
1658
|
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
2262
|
-
|
|
2263
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2264
|
-
name: errorCode,
|
|
2265
|
-
$metadata: deserializeMetadata(output),
|
|
2266
|
-
};
|
|
2267
|
-
break;
|
|
1659
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2268
1660
|
default:
|
|
2269
1661
|
const parsedBody = parsedOutput.body;
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
...parsedBody,
|
|
2273
|
-
name: `${errorCode}`,
|
|
2274
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1662
|
+
response = new PersonalizeServiceException_1.PersonalizeServiceException({
|
|
1663
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2275
1664
|
$fault: "client",
|
|
2276
1665
|
$metadata: deserializeMetadata(output),
|
|
2277
|
-
};
|
|
1666
|
+
});
|
|
1667
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2278
1668
|
}
|
|
2279
|
-
const message = response.message || response.Message || errorCode;
|
|
2280
|
-
response.message = message;
|
|
2281
|
-
delete response.Message;
|
|
2282
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2283
1669
|
};
|
|
2284
1670
|
const deserializeAws_json1_1DescribeDatasetExportJobCommand = async (output, context) => {
|
|
2285
1671
|
if (output.statusCode >= 300) {
|
|
@@ -2306,35 +1692,19 @@ const deserializeAws_json1_1DescribeDatasetExportJobCommandError = async (output
|
|
|
2306
1692
|
switch (errorCode) {
|
|
2307
1693
|
case "InvalidInputException":
|
|
2308
1694
|
case "com.amazonaws.personalize#InvalidInputException":
|
|
2309
|
-
|
|
2310
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
2311
|
-
name: errorCode,
|
|
2312
|
-
$metadata: deserializeMetadata(output),
|
|
2313
|
-
};
|
|
2314
|
-
break;
|
|
1695
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
2315
1696
|
case "ResourceNotFoundException":
|
|
2316
1697
|
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
2317
|
-
|
|
2318
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2319
|
-
name: errorCode,
|
|
2320
|
-
$metadata: deserializeMetadata(output),
|
|
2321
|
-
};
|
|
2322
|
-
break;
|
|
1698
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2323
1699
|
default:
|
|
2324
1700
|
const parsedBody = parsedOutput.body;
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
...parsedBody,
|
|
2328
|
-
name: `${errorCode}`,
|
|
2329
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1701
|
+
response = new PersonalizeServiceException_1.PersonalizeServiceException({
|
|
1702
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2330
1703
|
$fault: "client",
|
|
2331
1704
|
$metadata: deserializeMetadata(output),
|
|
2332
|
-
};
|
|
1705
|
+
});
|
|
1706
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2333
1707
|
}
|
|
2334
|
-
const message = response.message || response.Message || errorCode;
|
|
2335
|
-
response.message = message;
|
|
2336
|
-
delete response.Message;
|
|
2337
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2338
1708
|
};
|
|
2339
1709
|
const deserializeAws_json1_1DescribeDatasetGroupCommand = async (output, context) => {
|
|
2340
1710
|
if (output.statusCode >= 300) {
|
|
@@ -2361,35 +1731,19 @@ const deserializeAws_json1_1DescribeDatasetGroupCommandError = async (output, co
|
|
|
2361
1731
|
switch (errorCode) {
|
|
2362
1732
|
case "InvalidInputException":
|
|
2363
1733
|
case "com.amazonaws.personalize#InvalidInputException":
|
|
2364
|
-
|
|
2365
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
2366
|
-
name: errorCode,
|
|
2367
|
-
$metadata: deserializeMetadata(output),
|
|
2368
|
-
};
|
|
2369
|
-
break;
|
|
1734
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
2370
1735
|
case "ResourceNotFoundException":
|
|
2371
1736
|
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
2372
|
-
|
|
2373
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2374
|
-
name: errorCode,
|
|
2375
|
-
$metadata: deserializeMetadata(output),
|
|
2376
|
-
};
|
|
2377
|
-
break;
|
|
1737
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2378
1738
|
default:
|
|
2379
1739
|
const parsedBody = parsedOutput.body;
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
...parsedBody,
|
|
2383
|
-
name: `${errorCode}`,
|
|
2384
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1740
|
+
response = new PersonalizeServiceException_1.PersonalizeServiceException({
|
|
1741
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2385
1742
|
$fault: "client",
|
|
2386
1743
|
$metadata: deserializeMetadata(output),
|
|
2387
|
-
};
|
|
1744
|
+
});
|
|
1745
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2388
1746
|
}
|
|
2389
|
-
const message = response.message || response.Message || errorCode;
|
|
2390
|
-
response.message = message;
|
|
2391
|
-
delete response.Message;
|
|
2392
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2393
1747
|
};
|
|
2394
1748
|
const deserializeAws_json1_1DescribeDatasetImportJobCommand = async (output, context) => {
|
|
2395
1749
|
if (output.statusCode >= 300) {
|
|
@@ -2416,35 +1770,19 @@ const deserializeAws_json1_1DescribeDatasetImportJobCommandError = async (output
|
|
|
2416
1770
|
switch (errorCode) {
|
|
2417
1771
|
case "InvalidInputException":
|
|
2418
1772
|
case "com.amazonaws.personalize#InvalidInputException":
|
|
2419
|
-
|
|
2420
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
2421
|
-
name: errorCode,
|
|
2422
|
-
$metadata: deserializeMetadata(output),
|
|
2423
|
-
};
|
|
2424
|
-
break;
|
|
1773
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
2425
1774
|
case "ResourceNotFoundException":
|
|
2426
1775
|
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
2427
|
-
|
|
2428
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2429
|
-
name: errorCode,
|
|
2430
|
-
$metadata: deserializeMetadata(output),
|
|
2431
|
-
};
|
|
2432
|
-
break;
|
|
1776
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2433
1777
|
default:
|
|
2434
1778
|
const parsedBody = parsedOutput.body;
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
...parsedBody,
|
|
2438
|
-
name: `${errorCode}`,
|
|
2439
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1779
|
+
response = new PersonalizeServiceException_1.PersonalizeServiceException({
|
|
1780
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2440
1781
|
$fault: "client",
|
|
2441
1782
|
$metadata: deserializeMetadata(output),
|
|
2442
|
-
};
|
|
1783
|
+
});
|
|
1784
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2443
1785
|
}
|
|
2444
|
-
const message = response.message || response.Message || errorCode;
|
|
2445
|
-
response.message = message;
|
|
2446
|
-
delete response.Message;
|
|
2447
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2448
1786
|
};
|
|
2449
1787
|
const deserializeAws_json1_1DescribeEventTrackerCommand = async (output, context) => {
|
|
2450
1788
|
if (output.statusCode >= 300) {
|
|
@@ -2471,35 +1809,19 @@ const deserializeAws_json1_1DescribeEventTrackerCommandError = async (output, co
|
|
|
2471
1809
|
switch (errorCode) {
|
|
2472
1810
|
case "InvalidInputException":
|
|
2473
1811
|
case "com.amazonaws.personalize#InvalidInputException":
|
|
2474
|
-
|
|
2475
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
2476
|
-
name: errorCode,
|
|
2477
|
-
$metadata: deserializeMetadata(output),
|
|
2478
|
-
};
|
|
2479
|
-
break;
|
|
1812
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
2480
1813
|
case "ResourceNotFoundException":
|
|
2481
1814
|
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
2482
|
-
|
|
2483
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2484
|
-
name: errorCode,
|
|
2485
|
-
$metadata: deserializeMetadata(output),
|
|
2486
|
-
};
|
|
2487
|
-
break;
|
|
1815
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2488
1816
|
default:
|
|
2489
1817
|
const parsedBody = parsedOutput.body;
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
...parsedBody,
|
|
2493
|
-
name: `${errorCode}`,
|
|
2494
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1818
|
+
response = new PersonalizeServiceException_1.PersonalizeServiceException({
|
|
1819
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2495
1820
|
$fault: "client",
|
|
2496
1821
|
$metadata: deserializeMetadata(output),
|
|
2497
|
-
};
|
|
1822
|
+
});
|
|
1823
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2498
1824
|
}
|
|
2499
|
-
const message = response.message || response.Message || errorCode;
|
|
2500
|
-
response.message = message;
|
|
2501
|
-
delete response.Message;
|
|
2502
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2503
1825
|
};
|
|
2504
1826
|
const deserializeAws_json1_1DescribeFeatureTransformationCommand = async (output, context) => {
|
|
2505
1827
|
if (output.statusCode >= 300) {
|
|
@@ -2526,35 +1848,19 @@ const deserializeAws_json1_1DescribeFeatureTransformationCommandError = async (o
|
|
|
2526
1848
|
switch (errorCode) {
|
|
2527
1849
|
case "InvalidInputException":
|
|
2528
1850
|
case "com.amazonaws.personalize#InvalidInputException":
|
|
2529
|
-
|
|
2530
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
2531
|
-
name: errorCode,
|
|
2532
|
-
$metadata: deserializeMetadata(output),
|
|
2533
|
-
};
|
|
2534
|
-
break;
|
|
1851
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
2535
1852
|
case "ResourceNotFoundException":
|
|
2536
1853
|
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
2537
|
-
|
|
2538
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2539
|
-
name: errorCode,
|
|
2540
|
-
$metadata: deserializeMetadata(output),
|
|
2541
|
-
};
|
|
2542
|
-
break;
|
|
1854
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2543
1855
|
default:
|
|
2544
1856
|
const parsedBody = parsedOutput.body;
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
...parsedBody,
|
|
2548
|
-
name: `${errorCode}`,
|
|
2549
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1857
|
+
response = new PersonalizeServiceException_1.PersonalizeServiceException({
|
|
1858
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2550
1859
|
$fault: "client",
|
|
2551
1860
|
$metadata: deserializeMetadata(output),
|
|
2552
|
-
};
|
|
1861
|
+
});
|
|
1862
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2553
1863
|
}
|
|
2554
|
-
const message = response.message || response.Message || errorCode;
|
|
2555
|
-
response.message = message;
|
|
2556
|
-
delete response.Message;
|
|
2557
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2558
1864
|
};
|
|
2559
1865
|
const deserializeAws_json1_1DescribeFilterCommand = async (output, context) => {
|
|
2560
1866
|
if (output.statusCode >= 300) {
|
|
@@ -2581,35 +1887,19 @@ const deserializeAws_json1_1DescribeFilterCommandError = async (output, context)
|
|
|
2581
1887
|
switch (errorCode) {
|
|
2582
1888
|
case "InvalidInputException":
|
|
2583
1889
|
case "com.amazonaws.personalize#InvalidInputException":
|
|
2584
|
-
|
|
2585
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
2586
|
-
name: errorCode,
|
|
2587
|
-
$metadata: deserializeMetadata(output),
|
|
2588
|
-
};
|
|
2589
|
-
break;
|
|
1890
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
2590
1891
|
case "ResourceNotFoundException":
|
|
2591
1892
|
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
2592
|
-
|
|
2593
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2594
|
-
name: errorCode,
|
|
2595
|
-
$metadata: deserializeMetadata(output),
|
|
2596
|
-
};
|
|
2597
|
-
break;
|
|
1893
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2598
1894
|
default:
|
|
2599
1895
|
const parsedBody = parsedOutput.body;
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
...parsedBody,
|
|
2603
|
-
name: `${errorCode}`,
|
|
2604
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1896
|
+
response = new PersonalizeServiceException_1.PersonalizeServiceException({
|
|
1897
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2605
1898
|
$fault: "client",
|
|
2606
1899
|
$metadata: deserializeMetadata(output),
|
|
2607
|
-
};
|
|
1900
|
+
});
|
|
1901
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2608
1902
|
}
|
|
2609
|
-
const message = response.message || response.Message || errorCode;
|
|
2610
|
-
response.message = message;
|
|
2611
|
-
delete response.Message;
|
|
2612
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2613
1903
|
};
|
|
2614
1904
|
const deserializeAws_json1_1DescribeRecipeCommand = async (output, context) => {
|
|
2615
1905
|
if (output.statusCode >= 300) {
|
|
@@ -2636,35 +1926,19 @@ const deserializeAws_json1_1DescribeRecipeCommandError = async (output, context)
|
|
|
2636
1926
|
switch (errorCode) {
|
|
2637
1927
|
case "InvalidInputException":
|
|
2638
1928
|
case "com.amazonaws.personalize#InvalidInputException":
|
|
2639
|
-
|
|
2640
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
2641
|
-
name: errorCode,
|
|
2642
|
-
$metadata: deserializeMetadata(output),
|
|
2643
|
-
};
|
|
2644
|
-
break;
|
|
1929
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
2645
1930
|
case "ResourceNotFoundException":
|
|
2646
1931
|
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
2647
|
-
|
|
2648
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2649
|
-
name: errorCode,
|
|
2650
|
-
$metadata: deserializeMetadata(output),
|
|
2651
|
-
};
|
|
2652
|
-
break;
|
|
1932
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2653
1933
|
default:
|
|
2654
1934
|
const parsedBody = parsedOutput.body;
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
...parsedBody,
|
|
2658
|
-
name: `${errorCode}`,
|
|
2659
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1935
|
+
response = new PersonalizeServiceException_1.PersonalizeServiceException({
|
|
1936
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2660
1937
|
$fault: "client",
|
|
2661
1938
|
$metadata: deserializeMetadata(output),
|
|
2662
|
-
};
|
|
1939
|
+
});
|
|
1940
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2663
1941
|
}
|
|
2664
|
-
const message = response.message || response.Message || errorCode;
|
|
2665
|
-
response.message = message;
|
|
2666
|
-
delete response.Message;
|
|
2667
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2668
1942
|
};
|
|
2669
1943
|
const deserializeAws_json1_1DescribeRecommenderCommand = async (output, context) => {
|
|
2670
1944
|
if (output.statusCode >= 300) {
|
|
@@ -2691,35 +1965,19 @@ const deserializeAws_json1_1DescribeRecommenderCommandError = async (output, con
|
|
|
2691
1965
|
switch (errorCode) {
|
|
2692
1966
|
case "InvalidInputException":
|
|
2693
1967
|
case "com.amazonaws.personalize#InvalidInputException":
|
|
2694
|
-
|
|
2695
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
2696
|
-
name: errorCode,
|
|
2697
|
-
$metadata: deserializeMetadata(output),
|
|
2698
|
-
};
|
|
2699
|
-
break;
|
|
1968
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
2700
1969
|
case "ResourceNotFoundException":
|
|
2701
1970
|
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
2702
|
-
|
|
2703
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2704
|
-
name: errorCode,
|
|
2705
|
-
$metadata: deserializeMetadata(output),
|
|
2706
|
-
};
|
|
2707
|
-
break;
|
|
1971
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2708
1972
|
default:
|
|
2709
1973
|
const parsedBody = parsedOutput.body;
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
...parsedBody,
|
|
2713
|
-
name: `${errorCode}`,
|
|
2714
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1974
|
+
response = new PersonalizeServiceException_1.PersonalizeServiceException({
|
|
1975
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2715
1976
|
$fault: "client",
|
|
2716
1977
|
$metadata: deserializeMetadata(output),
|
|
2717
|
-
};
|
|
1978
|
+
});
|
|
1979
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2718
1980
|
}
|
|
2719
|
-
const message = response.message || response.Message || errorCode;
|
|
2720
|
-
response.message = message;
|
|
2721
|
-
delete response.Message;
|
|
2722
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2723
1981
|
};
|
|
2724
1982
|
const deserializeAws_json1_1DescribeSchemaCommand = async (output, context) => {
|
|
2725
1983
|
if (output.statusCode >= 300) {
|
|
@@ -2746,35 +2004,19 @@ const deserializeAws_json1_1DescribeSchemaCommandError = async (output, context)
|
|
|
2746
2004
|
switch (errorCode) {
|
|
2747
2005
|
case "InvalidInputException":
|
|
2748
2006
|
case "com.amazonaws.personalize#InvalidInputException":
|
|
2749
|
-
|
|
2750
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
2751
|
-
name: errorCode,
|
|
2752
|
-
$metadata: deserializeMetadata(output),
|
|
2753
|
-
};
|
|
2754
|
-
break;
|
|
2007
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
2755
2008
|
case "ResourceNotFoundException":
|
|
2756
2009
|
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
2757
|
-
|
|
2758
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2759
|
-
name: errorCode,
|
|
2760
|
-
$metadata: deserializeMetadata(output),
|
|
2761
|
-
};
|
|
2762
|
-
break;
|
|
2010
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2763
2011
|
default:
|
|
2764
2012
|
const parsedBody = parsedOutput.body;
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
...parsedBody,
|
|
2768
|
-
name: `${errorCode}`,
|
|
2769
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2013
|
+
response = new PersonalizeServiceException_1.PersonalizeServiceException({
|
|
2014
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2770
2015
|
$fault: "client",
|
|
2771
2016
|
$metadata: deserializeMetadata(output),
|
|
2772
|
-
};
|
|
2017
|
+
});
|
|
2018
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2773
2019
|
}
|
|
2774
|
-
const message = response.message || response.Message || errorCode;
|
|
2775
|
-
response.message = message;
|
|
2776
|
-
delete response.Message;
|
|
2777
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2778
2020
|
};
|
|
2779
2021
|
const deserializeAws_json1_1DescribeSolutionCommand = async (output, context) => {
|
|
2780
2022
|
if (output.statusCode >= 300) {
|
|
@@ -2801,35 +2043,19 @@ const deserializeAws_json1_1DescribeSolutionCommandError = async (output, contex
|
|
|
2801
2043
|
switch (errorCode) {
|
|
2802
2044
|
case "InvalidInputException":
|
|
2803
2045
|
case "com.amazonaws.personalize#InvalidInputException":
|
|
2804
|
-
|
|
2805
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
2806
|
-
name: errorCode,
|
|
2807
|
-
$metadata: deserializeMetadata(output),
|
|
2808
|
-
};
|
|
2809
|
-
break;
|
|
2046
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
2810
2047
|
case "ResourceNotFoundException":
|
|
2811
2048
|
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
2812
|
-
|
|
2813
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2814
|
-
name: errorCode,
|
|
2815
|
-
$metadata: deserializeMetadata(output),
|
|
2816
|
-
};
|
|
2817
|
-
break;
|
|
2049
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2818
2050
|
default:
|
|
2819
2051
|
const parsedBody = parsedOutput.body;
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
...parsedBody,
|
|
2823
|
-
name: `${errorCode}`,
|
|
2824
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2052
|
+
response = new PersonalizeServiceException_1.PersonalizeServiceException({
|
|
2053
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2825
2054
|
$fault: "client",
|
|
2826
2055
|
$metadata: deserializeMetadata(output),
|
|
2827
|
-
};
|
|
2056
|
+
});
|
|
2057
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2828
2058
|
}
|
|
2829
|
-
const message = response.message || response.Message || errorCode;
|
|
2830
|
-
response.message = message;
|
|
2831
|
-
delete response.Message;
|
|
2832
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2833
2059
|
};
|
|
2834
2060
|
const deserializeAws_json1_1DescribeSolutionVersionCommand = async (output, context) => {
|
|
2835
2061
|
if (output.statusCode >= 300) {
|
|
@@ -2856,35 +2082,19 @@ const deserializeAws_json1_1DescribeSolutionVersionCommandError = async (output,
|
|
|
2856
2082
|
switch (errorCode) {
|
|
2857
2083
|
case "InvalidInputException":
|
|
2858
2084
|
case "com.amazonaws.personalize#InvalidInputException":
|
|
2859
|
-
|
|
2860
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
2861
|
-
name: errorCode,
|
|
2862
|
-
$metadata: deserializeMetadata(output),
|
|
2863
|
-
};
|
|
2864
|
-
break;
|
|
2085
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
2865
2086
|
case "ResourceNotFoundException":
|
|
2866
2087
|
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
2867
|
-
|
|
2868
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2869
|
-
name: errorCode,
|
|
2870
|
-
$metadata: deserializeMetadata(output),
|
|
2871
|
-
};
|
|
2872
|
-
break;
|
|
2088
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2873
2089
|
default:
|
|
2874
2090
|
const parsedBody = parsedOutput.body;
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
...parsedBody,
|
|
2878
|
-
name: `${errorCode}`,
|
|
2879
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2091
|
+
response = new PersonalizeServiceException_1.PersonalizeServiceException({
|
|
2092
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2880
2093
|
$fault: "client",
|
|
2881
2094
|
$metadata: deserializeMetadata(output),
|
|
2882
|
-
};
|
|
2095
|
+
});
|
|
2096
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2883
2097
|
}
|
|
2884
|
-
const message = response.message || response.Message || errorCode;
|
|
2885
|
-
response.message = message;
|
|
2886
|
-
delete response.Message;
|
|
2887
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2888
2098
|
};
|
|
2889
2099
|
const deserializeAws_json1_1GetSolutionMetricsCommand = async (output, context) => {
|
|
2890
2100
|
if (output.statusCode >= 300) {
|
|
@@ -2911,43 +2121,22 @@ const deserializeAws_json1_1GetSolutionMetricsCommandError = async (output, cont
|
|
|
2911
2121
|
switch (errorCode) {
|
|
2912
2122
|
case "InvalidInputException":
|
|
2913
2123
|
case "com.amazonaws.personalize#InvalidInputException":
|
|
2914
|
-
|
|
2915
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
2916
|
-
name: errorCode,
|
|
2917
|
-
$metadata: deserializeMetadata(output),
|
|
2918
|
-
};
|
|
2919
|
-
break;
|
|
2124
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
2920
2125
|
case "ResourceInUseException":
|
|
2921
2126
|
case "com.amazonaws.personalize#ResourceInUseException":
|
|
2922
|
-
|
|
2923
|
-
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
2924
|
-
name: errorCode,
|
|
2925
|
-
$metadata: deserializeMetadata(output),
|
|
2926
|
-
};
|
|
2927
|
-
break;
|
|
2127
|
+
throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
2928
2128
|
case "ResourceNotFoundException":
|
|
2929
2129
|
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
2930
|
-
|
|
2931
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2932
|
-
name: errorCode,
|
|
2933
|
-
$metadata: deserializeMetadata(output),
|
|
2934
|
-
};
|
|
2935
|
-
break;
|
|
2130
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2936
2131
|
default:
|
|
2937
2132
|
const parsedBody = parsedOutput.body;
|
|
2938
|
-
|
|
2939
|
-
|
|
2940
|
-
...parsedBody,
|
|
2941
|
-
name: `${errorCode}`,
|
|
2942
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2133
|
+
response = new PersonalizeServiceException_1.PersonalizeServiceException({
|
|
2134
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2943
2135
|
$fault: "client",
|
|
2944
2136
|
$metadata: deserializeMetadata(output),
|
|
2945
|
-
};
|
|
2137
|
+
});
|
|
2138
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2946
2139
|
}
|
|
2947
|
-
const message = response.message || response.Message || errorCode;
|
|
2948
|
-
response.message = message;
|
|
2949
|
-
delete response.Message;
|
|
2950
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2951
2140
|
};
|
|
2952
2141
|
const deserializeAws_json1_1ListBatchInferenceJobsCommand = async (output, context) => {
|
|
2953
2142
|
if (output.statusCode >= 300) {
|
|
@@ -2974,35 +2163,19 @@ const deserializeAws_json1_1ListBatchInferenceJobsCommandError = async (output,
|
|
|
2974
2163
|
switch (errorCode) {
|
|
2975
2164
|
case "InvalidInputException":
|
|
2976
2165
|
case "com.amazonaws.personalize#InvalidInputException":
|
|
2977
|
-
|
|
2978
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
2979
|
-
name: errorCode,
|
|
2980
|
-
$metadata: deserializeMetadata(output),
|
|
2981
|
-
};
|
|
2982
|
-
break;
|
|
2166
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
2983
2167
|
case "InvalidNextTokenException":
|
|
2984
2168
|
case "com.amazonaws.personalize#InvalidNextTokenException":
|
|
2985
|
-
|
|
2986
|
-
...(await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)),
|
|
2987
|
-
name: errorCode,
|
|
2988
|
-
$metadata: deserializeMetadata(output),
|
|
2989
|
-
};
|
|
2990
|
-
break;
|
|
2169
|
+
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
2991
2170
|
default:
|
|
2992
2171
|
const parsedBody = parsedOutput.body;
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
...parsedBody,
|
|
2996
|
-
name: `${errorCode}`,
|
|
2997
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2172
|
+
response = new PersonalizeServiceException_1.PersonalizeServiceException({
|
|
2173
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2998
2174
|
$fault: "client",
|
|
2999
2175
|
$metadata: deserializeMetadata(output),
|
|
3000
|
-
};
|
|
2176
|
+
});
|
|
2177
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3001
2178
|
}
|
|
3002
|
-
const message = response.message || response.Message || errorCode;
|
|
3003
|
-
response.message = message;
|
|
3004
|
-
delete response.Message;
|
|
3005
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3006
2179
|
};
|
|
3007
2180
|
const deserializeAws_json1_1ListBatchSegmentJobsCommand = async (output, context) => {
|
|
3008
2181
|
if (output.statusCode >= 300) {
|
|
@@ -3029,35 +2202,19 @@ const deserializeAws_json1_1ListBatchSegmentJobsCommandError = async (output, co
|
|
|
3029
2202
|
switch (errorCode) {
|
|
3030
2203
|
case "InvalidInputException":
|
|
3031
2204
|
case "com.amazonaws.personalize#InvalidInputException":
|
|
3032
|
-
|
|
3033
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
3034
|
-
name: errorCode,
|
|
3035
|
-
$metadata: deserializeMetadata(output),
|
|
3036
|
-
};
|
|
3037
|
-
break;
|
|
2205
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
3038
2206
|
case "InvalidNextTokenException":
|
|
3039
2207
|
case "com.amazonaws.personalize#InvalidNextTokenException":
|
|
3040
|
-
|
|
3041
|
-
...(await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)),
|
|
3042
|
-
name: errorCode,
|
|
3043
|
-
$metadata: deserializeMetadata(output),
|
|
3044
|
-
};
|
|
3045
|
-
break;
|
|
2208
|
+
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
3046
2209
|
default:
|
|
3047
2210
|
const parsedBody = parsedOutput.body;
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
...parsedBody,
|
|
3051
|
-
name: `${errorCode}`,
|
|
3052
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2211
|
+
response = new PersonalizeServiceException_1.PersonalizeServiceException({
|
|
2212
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3053
2213
|
$fault: "client",
|
|
3054
2214
|
$metadata: deserializeMetadata(output),
|
|
3055
|
-
};
|
|
2215
|
+
});
|
|
2216
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3056
2217
|
}
|
|
3057
|
-
const message = response.message || response.Message || errorCode;
|
|
3058
|
-
response.message = message;
|
|
3059
|
-
delete response.Message;
|
|
3060
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3061
2218
|
};
|
|
3062
2219
|
const deserializeAws_json1_1ListCampaignsCommand = async (output, context) => {
|
|
3063
2220
|
if (output.statusCode >= 300) {
|
|
@@ -3084,35 +2241,19 @@ const deserializeAws_json1_1ListCampaignsCommandError = async (output, context)
|
|
|
3084
2241
|
switch (errorCode) {
|
|
3085
2242
|
case "InvalidInputException":
|
|
3086
2243
|
case "com.amazonaws.personalize#InvalidInputException":
|
|
3087
|
-
|
|
3088
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
3089
|
-
name: errorCode,
|
|
3090
|
-
$metadata: deserializeMetadata(output),
|
|
3091
|
-
};
|
|
3092
|
-
break;
|
|
2244
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
3093
2245
|
case "InvalidNextTokenException":
|
|
3094
2246
|
case "com.amazonaws.personalize#InvalidNextTokenException":
|
|
3095
|
-
|
|
3096
|
-
...(await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)),
|
|
3097
|
-
name: errorCode,
|
|
3098
|
-
$metadata: deserializeMetadata(output),
|
|
3099
|
-
};
|
|
3100
|
-
break;
|
|
2247
|
+
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
3101
2248
|
default:
|
|
3102
2249
|
const parsedBody = parsedOutput.body;
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
...parsedBody,
|
|
3106
|
-
name: `${errorCode}`,
|
|
3107
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2250
|
+
response = new PersonalizeServiceException_1.PersonalizeServiceException({
|
|
2251
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3108
2252
|
$fault: "client",
|
|
3109
2253
|
$metadata: deserializeMetadata(output),
|
|
3110
|
-
};
|
|
2254
|
+
});
|
|
2255
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3111
2256
|
}
|
|
3112
|
-
const message = response.message || response.Message || errorCode;
|
|
3113
|
-
response.message = message;
|
|
3114
|
-
delete response.Message;
|
|
3115
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3116
2257
|
};
|
|
3117
2258
|
const deserializeAws_json1_1ListDatasetExportJobsCommand = async (output, context) => {
|
|
3118
2259
|
if (output.statusCode >= 300) {
|
|
@@ -3139,35 +2280,19 @@ const deserializeAws_json1_1ListDatasetExportJobsCommandError = async (output, c
|
|
|
3139
2280
|
switch (errorCode) {
|
|
3140
2281
|
case "InvalidInputException":
|
|
3141
2282
|
case "com.amazonaws.personalize#InvalidInputException":
|
|
3142
|
-
|
|
3143
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
3144
|
-
name: errorCode,
|
|
3145
|
-
$metadata: deserializeMetadata(output),
|
|
3146
|
-
};
|
|
3147
|
-
break;
|
|
2283
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
3148
2284
|
case "InvalidNextTokenException":
|
|
3149
2285
|
case "com.amazonaws.personalize#InvalidNextTokenException":
|
|
3150
|
-
|
|
3151
|
-
...(await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)),
|
|
3152
|
-
name: errorCode,
|
|
3153
|
-
$metadata: deserializeMetadata(output),
|
|
3154
|
-
};
|
|
3155
|
-
break;
|
|
2286
|
+
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
3156
2287
|
default:
|
|
3157
2288
|
const parsedBody = parsedOutput.body;
|
|
3158
|
-
|
|
3159
|
-
|
|
3160
|
-
...parsedBody,
|
|
3161
|
-
name: `${errorCode}`,
|
|
3162
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2289
|
+
response = new PersonalizeServiceException_1.PersonalizeServiceException({
|
|
2290
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3163
2291
|
$fault: "client",
|
|
3164
2292
|
$metadata: deserializeMetadata(output),
|
|
3165
|
-
};
|
|
2293
|
+
});
|
|
2294
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3166
2295
|
}
|
|
3167
|
-
const message = response.message || response.Message || errorCode;
|
|
3168
|
-
response.message = message;
|
|
3169
|
-
delete response.Message;
|
|
3170
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3171
2296
|
};
|
|
3172
2297
|
const deserializeAws_json1_1ListDatasetGroupsCommand = async (output, context) => {
|
|
3173
2298
|
if (output.statusCode >= 300) {
|
|
@@ -3194,27 +2319,16 @@ const deserializeAws_json1_1ListDatasetGroupsCommandError = async (output, conte
|
|
|
3194
2319
|
switch (errorCode) {
|
|
3195
2320
|
case "InvalidNextTokenException":
|
|
3196
2321
|
case "com.amazonaws.personalize#InvalidNextTokenException":
|
|
3197
|
-
|
|
3198
|
-
...(await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)),
|
|
3199
|
-
name: errorCode,
|
|
3200
|
-
$metadata: deserializeMetadata(output),
|
|
3201
|
-
};
|
|
3202
|
-
break;
|
|
2322
|
+
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
3203
2323
|
default:
|
|
3204
2324
|
const parsedBody = parsedOutput.body;
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
...parsedBody,
|
|
3208
|
-
name: `${errorCode}`,
|
|
3209
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2325
|
+
response = new PersonalizeServiceException_1.PersonalizeServiceException({
|
|
2326
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3210
2327
|
$fault: "client",
|
|
3211
2328
|
$metadata: deserializeMetadata(output),
|
|
3212
|
-
};
|
|
2329
|
+
});
|
|
2330
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3213
2331
|
}
|
|
3214
|
-
const message = response.message || response.Message || errorCode;
|
|
3215
|
-
response.message = message;
|
|
3216
|
-
delete response.Message;
|
|
3217
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3218
2332
|
};
|
|
3219
2333
|
const deserializeAws_json1_1ListDatasetImportJobsCommand = async (output, context) => {
|
|
3220
2334
|
if (output.statusCode >= 300) {
|
|
@@ -3241,35 +2355,19 @@ const deserializeAws_json1_1ListDatasetImportJobsCommandError = async (output, c
|
|
|
3241
2355
|
switch (errorCode) {
|
|
3242
2356
|
case "InvalidInputException":
|
|
3243
2357
|
case "com.amazonaws.personalize#InvalidInputException":
|
|
3244
|
-
|
|
3245
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
3246
|
-
name: errorCode,
|
|
3247
|
-
$metadata: deserializeMetadata(output),
|
|
3248
|
-
};
|
|
3249
|
-
break;
|
|
2358
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
3250
2359
|
case "InvalidNextTokenException":
|
|
3251
2360
|
case "com.amazonaws.personalize#InvalidNextTokenException":
|
|
3252
|
-
|
|
3253
|
-
...(await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)),
|
|
3254
|
-
name: errorCode,
|
|
3255
|
-
$metadata: deserializeMetadata(output),
|
|
3256
|
-
};
|
|
3257
|
-
break;
|
|
2361
|
+
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
3258
2362
|
default:
|
|
3259
2363
|
const parsedBody = parsedOutput.body;
|
|
3260
|
-
|
|
3261
|
-
|
|
3262
|
-
...parsedBody,
|
|
3263
|
-
name: `${errorCode}`,
|
|
3264
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2364
|
+
response = new PersonalizeServiceException_1.PersonalizeServiceException({
|
|
2365
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3265
2366
|
$fault: "client",
|
|
3266
2367
|
$metadata: deserializeMetadata(output),
|
|
3267
|
-
};
|
|
2368
|
+
});
|
|
2369
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3268
2370
|
}
|
|
3269
|
-
const message = response.message || response.Message || errorCode;
|
|
3270
|
-
response.message = message;
|
|
3271
|
-
delete response.Message;
|
|
3272
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3273
2371
|
};
|
|
3274
2372
|
const deserializeAws_json1_1ListDatasetsCommand = async (output, context) => {
|
|
3275
2373
|
if (output.statusCode >= 300) {
|
|
@@ -3296,35 +2394,19 @@ const deserializeAws_json1_1ListDatasetsCommandError = async (output, context) =
|
|
|
3296
2394
|
switch (errorCode) {
|
|
3297
2395
|
case "InvalidInputException":
|
|
3298
2396
|
case "com.amazonaws.personalize#InvalidInputException":
|
|
3299
|
-
|
|
3300
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
3301
|
-
name: errorCode,
|
|
3302
|
-
$metadata: deserializeMetadata(output),
|
|
3303
|
-
};
|
|
3304
|
-
break;
|
|
2397
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
3305
2398
|
case "InvalidNextTokenException":
|
|
3306
2399
|
case "com.amazonaws.personalize#InvalidNextTokenException":
|
|
3307
|
-
|
|
3308
|
-
...(await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)),
|
|
3309
|
-
name: errorCode,
|
|
3310
|
-
$metadata: deserializeMetadata(output),
|
|
3311
|
-
};
|
|
3312
|
-
break;
|
|
2400
|
+
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
3313
2401
|
default:
|
|
3314
2402
|
const parsedBody = parsedOutput.body;
|
|
3315
|
-
|
|
3316
|
-
|
|
3317
|
-
...parsedBody,
|
|
3318
|
-
name: `${errorCode}`,
|
|
3319
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2403
|
+
response = new PersonalizeServiceException_1.PersonalizeServiceException({
|
|
2404
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3320
2405
|
$fault: "client",
|
|
3321
2406
|
$metadata: deserializeMetadata(output),
|
|
3322
|
-
};
|
|
2407
|
+
});
|
|
2408
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3323
2409
|
}
|
|
3324
|
-
const message = response.message || response.Message || errorCode;
|
|
3325
|
-
response.message = message;
|
|
3326
|
-
delete response.Message;
|
|
3327
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3328
2410
|
};
|
|
3329
2411
|
const deserializeAws_json1_1ListEventTrackersCommand = async (output, context) => {
|
|
3330
2412
|
if (output.statusCode >= 300) {
|
|
@@ -3351,35 +2433,19 @@ const deserializeAws_json1_1ListEventTrackersCommandError = async (output, conte
|
|
|
3351
2433
|
switch (errorCode) {
|
|
3352
2434
|
case "InvalidInputException":
|
|
3353
2435
|
case "com.amazonaws.personalize#InvalidInputException":
|
|
3354
|
-
|
|
3355
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
3356
|
-
name: errorCode,
|
|
3357
|
-
$metadata: deserializeMetadata(output),
|
|
3358
|
-
};
|
|
3359
|
-
break;
|
|
2436
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
3360
2437
|
case "InvalidNextTokenException":
|
|
3361
2438
|
case "com.amazonaws.personalize#InvalidNextTokenException":
|
|
3362
|
-
|
|
3363
|
-
...(await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)),
|
|
3364
|
-
name: errorCode,
|
|
3365
|
-
$metadata: deserializeMetadata(output),
|
|
3366
|
-
};
|
|
3367
|
-
break;
|
|
2439
|
+
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
3368
2440
|
default:
|
|
3369
2441
|
const parsedBody = parsedOutput.body;
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
...parsedBody,
|
|
3373
|
-
name: `${errorCode}`,
|
|
3374
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2442
|
+
response = new PersonalizeServiceException_1.PersonalizeServiceException({
|
|
2443
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3375
2444
|
$fault: "client",
|
|
3376
2445
|
$metadata: deserializeMetadata(output),
|
|
3377
|
-
};
|
|
2446
|
+
});
|
|
2447
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3378
2448
|
}
|
|
3379
|
-
const message = response.message || response.Message || errorCode;
|
|
3380
|
-
response.message = message;
|
|
3381
|
-
delete response.Message;
|
|
3382
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3383
2449
|
};
|
|
3384
2450
|
const deserializeAws_json1_1ListFiltersCommand = async (output, context) => {
|
|
3385
2451
|
if (output.statusCode >= 300) {
|
|
@@ -3406,35 +2472,19 @@ const deserializeAws_json1_1ListFiltersCommandError = async (output, context) =>
|
|
|
3406
2472
|
switch (errorCode) {
|
|
3407
2473
|
case "InvalidInputException":
|
|
3408
2474
|
case "com.amazonaws.personalize#InvalidInputException":
|
|
3409
|
-
|
|
3410
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
3411
|
-
name: errorCode,
|
|
3412
|
-
$metadata: deserializeMetadata(output),
|
|
3413
|
-
};
|
|
3414
|
-
break;
|
|
2475
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
3415
2476
|
case "InvalidNextTokenException":
|
|
3416
2477
|
case "com.amazonaws.personalize#InvalidNextTokenException":
|
|
3417
|
-
|
|
3418
|
-
...(await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)),
|
|
3419
|
-
name: errorCode,
|
|
3420
|
-
$metadata: deserializeMetadata(output),
|
|
3421
|
-
};
|
|
3422
|
-
break;
|
|
2478
|
+
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
3423
2479
|
default:
|
|
3424
2480
|
const parsedBody = parsedOutput.body;
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
...parsedBody,
|
|
3428
|
-
name: `${errorCode}`,
|
|
3429
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2481
|
+
response = new PersonalizeServiceException_1.PersonalizeServiceException({
|
|
2482
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3430
2483
|
$fault: "client",
|
|
3431
2484
|
$metadata: deserializeMetadata(output),
|
|
3432
|
-
};
|
|
2485
|
+
});
|
|
2486
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3433
2487
|
}
|
|
3434
|
-
const message = response.message || response.Message || errorCode;
|
|
3435
|
-
response.message = message;
|
|
3436
|
-
delete response.Message;
|
|
3437
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3438
2488
|
};
|
|
3439
2489
|
const deserializeAws_json1_1ListRecipesCommand = async (output, context) => {
|
|
3440
2490
|
if (output.statusCode >= 300) {
|
|
@@ -3461,35 +2511,19 @@ const deserializeAws_json1_1ListRecipesCommandError = async (output, context) =>
|
|
|
3461
2511
|
switch (errorCode) {
|
|
3462
2512
|
case "InvalidInputException":
|
|
3463
2513
|
case "com.amazonaws.personalize#InvalidInputException":
|
|
3464
|
-
|
|
3465
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
3466
|
-
name: errorCode,
|
|
3467
|
-
$metadata: deserializeMetadata(output),
|
|
3468
|
-
};
|
|
3469
|
-
break;
|
|
2514
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
3470
2515
|
case "InvalidNextTokenException":
|
|
3471
2516
|
case "com.amazonaws.personalize#InvalidNextTokenException":
|
|
3472
|
-
|
|
3473
|
-
...(await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)),
|
|
3474
|
-
name: errorCode,
|
|
3475
|
-
$metadata: deserializeMetadata(output),
|
|
3476
|
-
};
|
|
3477
|
-
break;
|
|
2517
|
+
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
3478
2518
|
default:
|
|
3479
2519
|
const parsedBody = parsedOutput.body;
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
...parsedBody,
|
|
3483
|
-
name: `${errorCode}`,
|
|
3484
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2520
|
+
response = new PersonalizeServiceException_1.PersonalizeServiceException({
|
|
2521
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3485
2522
|
$fault: "client",
|
|
3486
2523
|
$metadata: deserializeMetadata(output),
|
|
3487
|
-
};
|
|
2524
|
+
});
|
|
2525
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3488
2526
|
}
|
|
3489
|
-
const message = response.message || response.Message || errorCode;
|
|
3490
|
-
response.message = message;
|
|
3491
|
-
delete response.Message;
|
|
3492
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3493
2527
|
};
|
|
3494
2528
|
const deserializeAws_json1_1ListRecommendersCommand = async (output, context) => {
|
|
3495
2529
|
if (output.statusCode >= 300) {
|
|
@@ -3516,35 +2550,19 @@ const deserializeAws_json1_1ListRecommendersCommandError = async (output, contex
|
|
|
3516
2550
|
switch (errorCode) {
|
|
3517
2551
|
case "InvalidInputException":
|
|
3518
2552
|
case "com.amazonaws.personalize#InvalidInputException":
|
|
3519
|
-
|
|
3520
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
3521
|
-
name: errorCode,
|
|
3522
|
-
$metadata: deserializeMetadata(output),
|
|
3523
|
-
};
|
|
3524
|
-
break;
|
|
2553
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
3525
2554
|
case "InvalidNextTokenException":
|
|
3526
2555
|
case "com.amazonaws.personalize#InvalidNextTokenException":
|
|
3527
|
-
|
|
3528
|
-
...(await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)),
|
|
3529
|
-
name: errorCode,
|
|
3530
|
-
$metadata: deserializeMetadata(output),
|
|
3531
|
-
};
|
|
3532
|
-
break;
|
|
2556
|
+
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
3533
2557
|
default:
|
|
3534
2558
|
const parsedBody = parsedOutput.body;
|
|
3535
|
-
|
|
3536
|
-
|
|
3537
|
-
...parsedBody,
|
|
3538
|
-
name: `${errorCode}`,
|
|
3539
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2559
|
+
response = new PersonalizeServiceException_1.PersonalizeServiceException({
|
|
2560
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3540
2561
|
$fault: "client",
|
|
3541
2562
|
$metadata: deserializeMetadata(output),
|
|
3542
|
-
};
|
|
2563
|
+
});
|
|
2564
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3543
2565
|
}
|
|
3544
|
-
const message = response.message || response.Message || errorCode;
|
|
3545
|
-
response.message = message;
|
|
3546
|
-
delete response.Message;
|
|
3547
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3548
2566
|
};
|
|
3549
2567
|
const deserializeAws_json1_1ListSchemasCommand = async (output, context) => {
|
|
3550
2568
|
if (output.statusCode >= 300) {
|
|
@@ -3571,27 +2589,16 @@ const deserializeAws_json1_1ListSchemasCommandError = async (output, context) =>
|
|
|
3571
2589
|
switch (errorCode) {
|
|
3572
2590
|
case "InvalidNextTokenException":
|
|
3573
2591
|
case "com.amazonaws.personalize#InvalidNextTokenException":
|
|
3574
|
-
|
|
3575
|
-
...(await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)),
|
|
3576
|
-
name: errorCode,
|
|
3577
|
-
$metadata: deserializeMetadata(output),
|
|
3578
|
-
};
|
|
3579
|
-
break;
|
|
2592
|
+
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
3580
2593
|
default:
|
|
3581
2594
|
const parsedBody = parsedOutput.body;
|
|
3582
|
-
|
|
3583
|
-
|
|
3584
|
-
...parsedBody,
|
|
3585
|
-
name: `${errorCode}`,
|
|
3586
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2595
|
+
response = new PersonalizeServiceException_1.PersonalizeServiceException({
|
|
2596
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3587
2597
|
$fault: "client",
|
|
3588
2598
|
$metadata: deserializeMetadata(output),
|
|
3589
|
-
};
|
|
2599
|
+
});
|
|
2600
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3590
2601
|
}
|
|
3591
|
-
const message = response.message || response.Message || errorCode;
|
|
3592
|
-
response.message = message;
|
|
3593
|
-
delete response.Message;
|
|
3594
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3595
2602
|
};
|
|
3596
2603
|
const deserializeAws_json1_1ListSolutionsCommand = async (output, context) => {
|
|
3597
2604
|
if (output.statusCode >= 300) {
|
|
@@ -3618,35 +2625,19 @@ const deserializeAws_json1_1ListSolutionsCommandError = async (output, context)
|
|
|
3618
2625
|
switch (errorCode) {
|
|
3619
2626
|
case "InvalidInputException":
|
|
3620
2627
|
case "com.amazonaws.personalize#InvalidInputException":
|
|
3621
|
-
|
|
3622
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
3623
|
-
name: errorCode,
|
|
3624
|
-
$metadata: deserializeMetadata(output),
|
|
3625
|
-
};
|
|
3626
|
-
break;
|
|
2628
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
3627
2629
|
case "InvalidNextTokenException":
|
|
3628
2630
|
case "com.amazonaws.personalize#InvalidNextTokenException":
|
|
3629
|
-
|
|
3630
|
-
...(await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)),
|
|
3631
|
-
name: errorCode,
|
|
3632
|
-
$metadata: deserializeMetadata(output),
|
|
3633
|
-
};
|
|
3634
|
-
break;
|
|
2631
|
+
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
3635
2632
|
default:
|
|
3636
2633
|
const parsedBody = parsedOutput.body;
|
|
3637
|
-
|
|
3638
|
-
|
|
3639
|
-
...parsedBody,
|
|
3640
|
-
name: `${errorCode}`,
|
|
3641
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2634
|
+
response = new PersonalizeServiceException_1.PersonalizeServiceException({
|
|
2635
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3642
2636
|
$fault: "client",
|
|
3643
2637
|
$metadata: deserializeMetadata(output),
|
|
3644
|
-
};
|
|
2638
|
+
});
|
|
2639
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3645
2640
|
}
|
|
3646
|
-
const message = response.message || response.Message || errorCode;
|
|
3647
|
-
response.message = message;
|
|
3648
|
-
delete response.Message;
|
|
3649
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3650
2641
|
};
|
|
3651
2642
|
const deserializeAws_json1_1ListSolutionVersionsCommand = async (output, context) => {
|
|
3652
2643
|
if (output.statusCode >= 300) {
|
|
@@ -3673,43 +2664,22 @@ const deserializeAws_json1_1ListSolutionVersionsCommandError = async (output, co
|
|
|
3673
2664
|
switch (errorCode) {
|
|
3674
2665
|
case "InvalidInputException":
|
|
3675
2666
|
case "com.amazonaws.personalize#InvalidInputException":
|
|
3676
|
-
|
|
3677
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
3678
|
-
name: errorCode,
|
|
3679
|
-
$metadata: deserializeMetadata(output),
|
|
3680
|
-
};
|
|
3681
|
-
break;
|
|
2667
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
3682
2668
|
case "InvalidNextTokenException":
|
|
3683
2669
|
case "com.amazonaws.personalize#InvalidNextTokenException":
|
|
3684
|
-
|
|
3685
|
-
...(await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)),
|
|
3686
|
-
name: errorCode,
|
|
3687
|
-
$metadata: deserializeMetadata(output),
|
|
3688
|
-
};
|
|
3689
|
-
break;
|
|
2670
|
+
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
3690
2671
|
case "ResourceNotFoundException":
|
|
3691
2672
|
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
3692
|
-
|
|
3693
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3694
|
-
name: errorCode,
|
|
3695
|
-
$metadata: deserializeMetadata(output),
|
|
3696
|
-
};
|
|
3697
|
-
break;
|
|
2673
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3698
2674
|
default:
|
|
3699
2675
|
const parsedBody = parsedOutput.body;
|
|
3700
|
-
|
|
3701
|
-
|
|
3702
|
-
...parsedBody,
|
|
3703
|
-
name: `${errorCode}`,
|
|
3704
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2676
|
+
response = new PersonalizeServiceException_1.PersonalizeServiceException({
|
|
2677
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3705
2678
|
$fault: "client",
|
|
3706
2679
|
$metadata: deserializeMetadata(output),
|
|
3707
|
-
};
|
|
2680
|
+
});
|
|
2681
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3708
2682
|
}
|
|
3709
|
-
const message = response.message || response.Message || errorCode;
|
|
3710
|
-
response.message = message;
|
|
3711
|
-
delete response.Message;
|
|
3712
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3713
2683
|
};
|
|
3714
2684
|
const deserializeAws_json1_1StopSolutionVersionCreationCommand = async (output, context) => {
|
|
3715
2685
|
if (output.statusCode >= 300) {
|
|
@@ -3733,43 +2703,22 @@ const deserializeAws_json1_1StopSolutionVersionCreationCommandError = async (out
|
|
|
3733
2703
|
switch (errorCode) {
|
|
3734
2704
|
case "InvalidInputException":
|
|
3735
2705
|
case "com.amazonaws.personalize#InvalidInputException":
|
|
3736
|
-
|
|
3737
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
3738
|
-
name: errorCode,
|
|
3739
|
-
$metadata: deserializeMetadata(output),
|
|
3740
|
-
};
|
|
3741
|
-
break;
|
|
2706
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
3742
2707
|
case "ResourceInUseException":
|
|
3743
2708
|
case "com.amazonaws.personalize#ResourceInUseException":
|
|
3744
|
-
|
|
3745
|
-
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
3746
|
-
name: errorCode,
|
|
3747
|
-
$metadata: deserializeMetadata(output),
|
|
3748
|
-
};
|
|
3749
|
-
break;
|
|
2709
|
+
throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
3750
2710
|
case "ResourceNotFoundException":
|
|
3751
2711
|
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
3752
|
-
|
|
3753
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3754
|
-
name: errorCode,
|
|
3755
|
-
$metadata: deserializeMetadata(output),
|
|
3756
|
-
};
|
|
3757
|
-
break;
|
|
2712
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3758
2713
|
default:
|
|
3759
2714
|
const parsedBody = parsedOutput.body;
|
|
3760
|
-
|
|
3761
|
-
|
|
3762
|
-
...parsedBody,
|
|
3763
|
-
name: `${errorCode}`,
|
|
3764
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2715
|
+
response = new PersonalizeServiceException_1.PersonalizeServiceException({
|
|
2716
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3765
2717
|
$fault: "client",
|
|
3766
2718
|
$metadata: deserializeMetadata(output),
|
|
3767
|
-
};
|
|
2719
|
+
});
|
|
2720
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3768
2721
|
}
|
|
3769
|
-
const message = response.message || response.Message || errorCode;
|
|
3770
|
-
response.message = message;
|
|
3771
|
-
delete response.Message;
|
|
3772
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3773
2722
|
};
|
|
3774
2723
|
const deserializeAws_json1_1UpdateCampaignCommand = async (output, context) => {
|
|
3775
2724
|
if (output.statusCode >= 300) {
|
|
@@ -3796,43 +2745,22 @@ const deserializeAws_json1_1UpdateCampaignCommandError = async (output, context)
|
|
|
3796
2745
|
switch (errorCode) {
|
|
3797
2746
|
case "InvalidInputException":
|
|
3798
2747
|
case "com.amazonaws.personalize#InvalidInputException":
|
|
3799
|
-
|
|
3800
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
3801
|
-
name: errorCode,
|
|
3802
|
-
$metadata: deserializeMetadata(output),
|
|
3803
|
-
};
|
|
3804
|
-
break;
|
|
2748
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
3805
2749
|
case "ResourceInUseException":
|
|
3806
2750
|
case "com.amazonaws.personalize#ResourceInUseException":
|
|
3807
|
-
|
|
3808
|
-
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
3809
|
-
name: errorCode,
|
|
3810
|
-
$metadata: deserializeMetadata(output),
|
|
3811
|
-
};
|
|
3812
|
-
break;
|
|
2751
|
+
throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
3813
2752
|
case "ResourceNotFoundException":
|
|
3814
2753
|
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
3815
|
-
|
|
3816
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3817
|
-
name: errorCode,
|
|
3818
|
-
$metadata: deserializeMetadata(output),
|
|
3819
|
-
};
|
|
3820
|
-
break;
|
|
2754
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3821
2755
|
default:
|
|
3822
2756
|
const parsedBody = parsedOutput.body;
|
|
3823
|
-
|
|
3824
|
-
|
|
3825
|
-
...parsedBody,
|
|
3826
|
-
name: `${errorCode}`,
|
|
3827
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2757
|
+
response = new PersonalizeServiceException_1.PersonalizeServiceException({
|
|
2758
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3828
2759
|
$fault: "client",
|
|
3829
2760
|
$metadata: deserializeMetadata(output),
|
|
3830
|
-
};
|
|
2761
|
+
});
|
|
2762
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3831
2763
|
}
|
|
3832
|
-
const message = response.message || response.Message || errorCode;
|
|
3833
|
-
response.message = message;
|
|
3834
|
-
delete response.Message;
|
|
3835
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3836
2764
|
};
|
|
3837
2765
|
const deserializeAws_json1_1UpdateRecommenderCommand = async (output, context) => {
|
|
3838
2766
|
if (output.statusCode >= 300) {
|
|
@@ -3859,109 +2787,76 @@ const deserializeAws_json1_1UpdateRecommenderCommandError = async (output, conte
|
|
|
3859
2787
|
switch (errorCode) {
|
|
3860
2788
|
case "InvalidInputException":
|
|
3861
2789
|
case "com.amazonaws.personalize#InvalidInputException":
|
|
3862
|
-
|
|
3863
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
3864
|
-
name: errorCode,
|
|
3865
|
-
$metadata: deserializeMetadata(output),
|
|
3866
|
-
};
|
|
3867
|
-
break;
|
|
2790
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
3868
2791
|
case "ResourceInUseException":
|
|
3869
2792
|
case "com.amazonaws.personalize#ResourceInUseException":
|
|
3870
|
-
|
|
3871
|
-
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
3872
|
-
name: errorCode,
|
|
3873
|
-
$metadata: deserializeMetadata(output),
|
|
3874
|
-
};
|
|
3875
|
-
break;
|
|
2793
|
+
throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
3876
2794
|
case "ResourceNotFoundException":
|
|
3877
2795
|
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
3878
|
-
|
|
3879
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3880
|
-
name: errorCode,
|
|
3881
|
-
$metadata: deserializeMetadata(output),
|
|
3882
|
-
};
|
|
3883
|
-
break;
|
|
2796
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3884
2797
|
default:
|
|
3885
2798
|
const parsedBody = parsedOutput.body;
|
|
3886
|
-
|
|
3887
|
-
|
|
3888
|
-
...parsedBody,
|
|
3889
|
-
name: `${errorCode}`,
|
|
3890
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2799
|
+
response = new PersonalizeServiceException_1.PersonalizeServiceException({
|
|
2800
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3891
2801
|
$fault: "client",
|
|
3892
2802
|
$metadata: deserializeMetadata(output),
|
|
3893
|
-
};
|
|
2803
|
+
});
|
|
2804
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3894
2805
|
}
|
|
3895
|
-
const message = response.message || response.Message || errorCode;
|
|
3896
|
-
response.message = message;
|
|
3897
|
-
delete response.Message;
|
|
3898
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3899
2806
|
};
|
|
3900
2807
|
const deserializeAws_json1_1InvalidInputExceptionResponse = async (parsedOutput, context) => {
|
|
3901
2808
|
const body = parsedOutput.body;
|
|
3902
2809
|
const deserialized = deserializeAws_json1_1InvalidInputException(body, context);
|
|
3903
|
-
const
|
|
3904
|
-
name: "InvalidInputException",
|
|
3905
|
-
$fault: "client",
|
|
2810
|
+
const exception = new models_0_1.InvalidInputException({
|
|
3906
2811
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3907
2812
|
...deserialized,
|
|
3908
|
-
};
|
|
3909
|
-
return
|
|
2813
|
+
});
|
|
2814
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3910
2815
|
};
|
|
3911
2816
|
const deserializeAws_json1_1InvalidNextTokenExceptionResponse = async (parsedOutput, context) => {
|
|
3912
2817
|
const body = parsedOutput.body;
|
|
3913
2818
|
const deserialized = deserializeAws_json1_1InvalidNextTokenException(body, context);
|
|
3914
|
-
const
|
|
3915
|
-
name: "InvalidNextTokenException",
|
|
3916
|
-
$fault: "client",
|
|
2819
|
+
const exception = new models_0_1.InvalidNextTokenException({
|
|
3917
2820
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3918
2821
|
...deserialized,
|
|
3919
|
-
};
|
|
3920
|
-
return
|
|
2822
|
+
});
|
|
2823
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3921
2824
|
};
|
|
3922
2825
|
const deserializeAws_json1_1LimitExceededExceptionResponse = async (parsedOutput, context) => {
|
|
3923
2826
|
const body = parsedOutput.body;
|
|
3924
2827
|
const deserialized = deserializeAws_json1_1LimitExceededException(body, context);
|
|
3925
|
-
const
|
|
3926
|
-
name: "LimitExceededException",
|
|
3927
|
-
$fault: "client",
|
|
2828
|
+
const exception = new models_0_1.LimitExceededException({
|
|
3928
2829
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3929
2830
|
...deserialized,
|
|
3930
|
-
};
|
|
3931
|
-
return
|
|
2831
|
+
});
|
|
2832
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3932
2833
|
};
|
|
3933
2834
|
const deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse = async (parsedOutput, context) => {
|
|
3934
2835
|
const body = parsedOutput.body;
|
|
3935
2836
|
const deserialized = deserializeAws_json1_1ResourceAlreadyExistsException(body, context);
|
|
3936
|
-
const
|
|
3937
|
-
name: "ResourceAlreadyExistsException",
|
|
3938
|
-
$fault: "client",
|
|
2837
|
+
const exception = new models_0_1.ResourceAlreadyExistsException({
|
|
3939
2838
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3940
2839
|
...deserialized,
|
|
3941
|
-
};
|
|
3942
|
-
return
|
|
2840
|
+
});
|
|
2841
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3943
2842
|
};
|
|
3944
2843
|
const deserializeAws_json1_1ResourceInUseExceptionResponse = async (parsedOutput, context) => {
|
|
3945
2844
|
const body = parsedOutput.body;
|
|
3946
2845
|
const deserialized = deserializeAws_json1_1ResourceInUseException(body, context);
|
|
3947
|
-
const
|
|
3948
|
-
name: "ResourceInUseException",
|
|
3949
|
-
$fault: "client",
|
|
2846
|
+
const exception = new models_0_1.ResourceInUseException({
|
|
3950
2847
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3951
2848
|
...deserialized,
|
|
3952
|
-
};
|
|
3953
|
-
return
|
|
2849
|
+
});
|
|
2850
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3954
2851
|
};
|
|
3955
2852
|
const deserializeAws_json1_1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
3956
2853
|
const body = parsedOutput.body;
|
|
3957
2854
|
const deserialized = deserializeAws_json1_1ResourceNotFoundException(body, context);
|
|
3958
|
-
const
|
|
3959
|
-
name: "ResourceNotFoundException",
|
|
3960
|
-
$fault: "client",
|
|
2855
|
+
const exception = new models_0_1.ResourceNotFoundException({
|
|
3961
2856
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3962
2857
|
...deserialized,
|
|
3963
|
-
};
|
|
3964
|
-
return
|
|
2858
|
+
});
|
|
2859
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3965
2860
|
};
|
|
3966
2861
|
const serializeAws_json1_1ArnList = (input, context) => {
|
|
3967
2862
|
return input
|
|
@@ -4654,7 +3549,7 @@ const deserializeAws_json1_1AlgorithmImage = (output, context) => {
|
|
|
4654
3549
|
};
|
|
4655
3550
|
};
|
|
4656
3551
|
const deserializeAws_json1_1ArnList = (output, context) => {
|
|
4657
|
-
|
|
3552
|
+
const retVal = (output || [])
|
|
4658
3553
|
.filter((e) => e != null)
|
|
4659
3554
|
.map((entry) => {
|
|
4660
3555
|
if (entry === null) {
|
|
@@ -4662,6 +3557,7 @@ const deserializeAws_json1_1ArnList = (output, context) => {
|
|
|
4662
3557
|
}
|
|
4663
3558
|
return smithy_client_1.expectString(entry);
|
|
4664
3559
|
});
|
|
3560
|
+
return retVal;
|
|
4665
3561
|
};
|
|
4666
3562
|
const deserializeAws_json1_1AutoMLConfig = (output, context) => {
|
|
4667
3563
|
return {
|
|
@@ -4725,7 +3621,7 @@ const deserializeAws_json1_1BatchInferenceJobOutput = (output, context) => {
|
|
|
4725
3621
|
};
|
|
4726
3622
|
};
|
|
4727
3623
|
const deserializeAws_json1_1BatchInferenceJobs = (output, context) => {
|
|
4728
|
-
|
|
3624
|
+
const retVal = (output || [])
|
|
4729
3625
|
.filter((e) => e != null)
|
|
4730
3626
|
.map((entry) => {
|
|
4731
3627
|
if (entry === null) {
|
|
@@ -4733,6 +3629,7 @@ const deserializeAws_json1_1BatchInferenceJobs = (output, context) => {
|
|
|
4733
3629
|
}
|
|
4734
3630
|
return deserializeAws_json1_1BatchInferenceJobSummary(entry, context);
|
|
4735
3631
|
});
|
|
3632
|
+
return retVal;
|
|
4736
3633
|
};
|
|
4737
3634
|
const deserializeAws_json1_1BatchInferenceJobSummary = (output, context) => {
|
|
4738
3635
|
return {
|
|
@@ -4788,7 +3685,7 @@ const deserializeAws_json1_1BatchSegmentJobOutput = (output, context) => {
|
|
|
4788
3685
|
};
|
|
4789
3686
|
};
|
|
4790
3687
|
const deserializeAws_json1_1BatchSegmentJobs = (output, context) => {
|
|
4791
|
-
|
|
3688
|
+
const retVal = (output || [])
|
|
4792
3689
|
.filter((e) => e != null)
|
|
4793
3690
|
.map((entry) => {
|
|
4794
3691
|
if (entry === null) {
|
|
@@ -4796,6 +3693,7 @@ const deserializeAws_json1_1BatchSegmentJobs = (output, context) => {
|
|
|
4796
3693
|
}
|
|
4797
3694
|
return deserializeAws_json1_1BatchSegmentJobSummary(entry, context);
|
|
4798
3695
|
});
|
|
3696
|
+
return retVal;
|
|
4799
3697
|
};
|
|
4800
3698
|
const deserializeAws_json1_1BatchSegmentJobSummary = (output, context) => {
|
|
4801
3699
|
return {
|
|
@@ -4842,7 +3740,7 @@ const deserializeAws_json1_1CampaignConfig = (output, context) => {
|
|
|
4842
3740
|
};
|
|
4843
3741
|
};
|
|
4844
3742
|
const deserializeAws_json1_1Campaigns = (output, context) => {
|
|
4845
|
-
|
|
3743
|
+
const retVal = (output || [])
|
|
4846
3744
|
.filter((e) => e != null)
|
|
4847
3745
|
.map((entry) => {
|
|
4848
3746
|
if (entry === null) {
|
|
@@ -4850,6 +3748,7 @@ const deserializeAws_json1_1Campaigns = (output, context) => {
|
|
|
4850
3748
|
}
|
|
4851
3749
|
return deserializeAws_json1_1CampaignSummary(entry, context);
|
|
4852
3750
|
});
|
|
3751
|
+
return retVal;
|
|
4853
3752
|
};
|
|
4854
3753
|
const deserializeAws_json1_1CampaignSummary = (output, context) => {
|
|
4855
3754
|
return {
|
|
@@ -4891,7 +3790,7 @@ const deserializeAws_json1_1CategoricalHyperParameterRange = (output, context) =
|
|
|
4891
3790
|
};
|
|
4892
3791
|
};
|
|
4893
3792
|
const deserializeAws_json1_1CategoricalHyperParameterRanges = (output, context) => {
|
|
4894
|
-
|
|
3793
|
+
const retVal = (output || [])
|
|
4895
3794
|
.filter((e) => e != null)
|
|
4896
3795
|
.map((entry) => {
|
|
4897
3796
|
if (entry === null) {
|
|
@@ -4899,9 +3798,10 @@ const deserializeAws_json1_1CategoricalHyperParameterRanges = (output, context)
|
|
|
4899
3798
|
}
|
|
4900
3799
|
return deserializeAws_json1_1CategoricalHyperParameterRange(entry, context);
|
|
4901
3800
|
});
|
|
3801
|
+
return retVal;
|
|
4902
3802
|
};
|
|
4903
3803
|
const deserializeAws_json1_1CategoricalValues = (output, context) => {
|
|
4904
|
-
|
|
3804
|
+
const retVal = (output || [])
|
|
4905
3805
|
.filter((e) => e != null)
|
|
4906
3806
|
.map((entry) => {
|
|
4907
3807
|
if (entry === null) {
|
|
@@ -4909,6 +3809,7 @@ const deserializeAws_json1_1CategoricalValues = (output, context) => {
|
|
|
4909
3809
|
}
|
|
4910
3810
|
return smithy_client_1.expectString(entry);
|
|
4911
3811
|
});
|
|
3812
|
+
return retVal;
|
|
4912
3813
|
};
|
|
4913
3814
|
const deserializeAws_json1_1ContinuousHyperParameterRange = (output, context) => {
|
|
4914
3815
|
return {
|
|
@@ -4918,7 +3819,7 @@ const deserializeAws_json1_1ContinuousHyperParameterRange = (output, context) =>
|
|
|
4918
3819
|
};
|
|
4919
3820
|
};
|
|
4920
3821
|
const deserializeAws_json1_1ContinuousHyperParameterRanges = (output, context) => {
|
|
4921
|
-
|
|
3822
|
+
const retVal = (output || [])
|
|
4922
3823
|
.filter((e) => e != null)
|
|
4923
3824
|
.map((entry) => {
|
|
4924
3825
|
if (entry === null) {
|
|
@@ -4926,6 +3827,7 @@ const deserializeAws_json1_1ContinuousHyperParameterRanges = (output, context) =
|
|
|
4926
3827
|
}
|
|
4927
3828
|
return deserializeAws_json1_1ContinuousHyperParameterRange(entry, context);
|
|
4928
3829
|
});
|
|
3830
|
+
return retVal;
|
|
4929
3831
|
};
|
|
4930
3832
|
const deserializeAws_json1_1CreateBatchInferenceJobResponse = (output, context) => {
|
|
4931
3833
|
return {
|
|
@@ -5038,7 +3940,7 @@ const deserializeAws_json1_1DatasetExportJobOutput = (output, context) => {
|
|
|
5038
3940
|
};
|
|
5039
3941
|
};
|
|
5040
3942
|
const deserializeAws_json1_1DatasetExportJobs = (output, context) => {
|
|
5041
|
-
|
|
3943
|
+
const retVal = (output || [])
|
|
5042
3944
|
.filter((e) => e != null)
|
|
5043
3945
|
.map((entry) => {
|
|
5044
3946
|
if (entry === null) {
|
|
@@ -5046,6 +3948,7 @@ const deserializeAws_json1_1DatasetExportJobs = (output, context) => {
|
|
|
5046
3948
|
}
|
|
5047
3949
|
return deserializeAws_json1_1DatasetExportJobSummary(entry, context);
|
|
5048
3950
|
});
|
|
3951
|
+
return retVal;
|
|
5049
3952
|
};
|
|
5050
3953
|
const deserializeAws_json1_1DatasetExportJobSummary = (output, context) => {
|
|
5051
3954
|
return {
|
|
@@ -5079,7 +3982,7 @@ const deserializeAws_json1_1DatasetGroup = (output, context) => {
|
|
|
5079
3982
|
};
|
|
5080
3983
|
};
|
|
5081
3984
|
const deserializeAws_json1_1DatasetGroups = (output, context) => {
|
|
5082
|
-
|
|
3985
|
+
const retVal = (output || [])
|
|
5083
3986
|
.filter((e) => e != null)
|
|
5084
3987
|
.map((entry) => {
|
|
5085
3988
|
if (entry === null) {
|
|
@@ -5087,6 +3990,7 @@ const deserializeAws_json1_1DatasetGroups = (output, context) => {
|
|
|
5087
3990
|
}
|
|
5088
3991
|
return deserializeAws_json1_1DatasetGroupSummary(entry, context);
|
|
5089
3992
|
});
|
|
3993
|
+
return retVal;
|
|
5090
3994
|
};
|
|
5091
3995
|
const deserializeAws_json1_1DatasetGroupSummary = (output, context) => {
|
|
5092
3996
|
return {
|
|
@@ -5123,7 +4027,7 @@ const deserializeAws_json1_1DatasetImportJob = (output, context) => {
|
|
|
5123
4027
|
};
|
|
5124
4028
|
};
|
|
5125
4029
|
const deserializeAws_json1_1DatasetImportJobs = (output, context) => {
|
|
5126
|
-
|
|
4030
|
+
const retVal = (output || [])
|
|
5127
4031
|
.filter((e) => e != null)
|
|
5128
4032
|
.map((entry) => {
|
|
5129
4033
|
if (entry === null) {
|
|
@@ -5131,6 +4035,7 @@ const deserializeAws_json1_1DatasetImportJobs = (output, context) => {
|
|
|
5131
4035
|
}
|
|
5132
4036
|
return deserializeAws_json1_1DatasetImportJobSummary(entry, context);
|
|
5133
4037
|
});
|
|
4038
|
+
return retVal;
|
|
5134
4039
|
};
|
|
5135
4040
|
const deserializeAws_json1_1DatasetImportJobSummary = (output, context) => {
|
|
5136
4041
|
return {
|
|
@@ -5147,7 +4052,7 @@ const deserializeAws_json1_1DatasetImportJobSummary = (output, context) => {
|
|
|
5147
4052
|
};
|
|
5148
4053
|
};
|
|
5149
4054
|
const deserializeAws_json1_1Datasets = (output, context) => {
|
|
5150
|
-
|
|
4055
|
+
const retVal = (output || [])
|
|
5151
4056
|
.filter((e) => e != null)
|
|
5152
4057
|
.map((entry) => {
|
|
5153
4058
|
if (entry === null) {
|
|
@@ -5155,6 +4060,7 @@ const deserializeAws_json1_1Datasets = (output, context) => {
|
|
|
5155
4060
|
}
|
|
5156
4061
|
return deserializeAws_json1_1DatasetSummary(entry, context);
|
|
5157
4062
|
});
|
|
4063
|
+
return retVal;
|
|
5158
4064
|
};
|
|
5159
4065
|
const deserializeAws_json1_1DatasetSchema = (output, context) => {
|
|
5160
4066
|
return {
|
|
@@ -5212,7 +4118,7 @@ const deserializeAws_json1_1DefaultCategoricalHyperParameterRange = (output, con
|
|
|
5212
4118
|
};
|
|
5213
4119
|
};
|
|
5214
4120
|
const deserializeAws_json1_1DefaultCategoricalHyperParameterRanges = (output, context) => {
|
|
5215
|
-
|
|
4121
|
+
const retVal = (output || [])
|
|
5216
4122
|
.filter((e) => e != null)
|
|
5217
4123
|
.map((entry) => {
|
|
5218
4124
|
if (entry === null) {
|
|
@@ -5220,6 +4126,7 @@ const deserializeAws_json1_1DefaultCategoricalHyperParameterRanges = (output, co
|
|
|
5220
4126
|
}
|
|
5221
4127
|
return deserializeAws_json1_1DefaultCategoricalHyperParameterRange(entry, context);
|
|
5222
4128
|
});
|
|
4129
|
+
return retVal;
|
|
5223
4130
|
};
|
|
5224
4131
|
const deserializeAws_json1_1DefaultContinuousHyperParameterRange = (output, context) => {
|
|
5225
4132
|
return {
|
|
@@ -5230,7 +4137,7 @@ const deserializeAws_json1_1DefaultContinuousHyperParameterRange = (output, cont
|
|
|
5230
4137
|
};
|
|
5231
4138
|
};
|
|
5232
4139
|
const deserializeAws_json1_1DefaultContinuousHyperParameterRanges = (output, context) => {
|
|
5233
|
-
|
|
4140
|
+
const retVal = (output || [])
|
|
5234
4141
|
.filter((e) => e != null)
|
|
5235
4142
|
.map((entry) => {
|
|
5236
4143
|
if (entry === null) {
|
|
@@ -5238,6 +4145,7 @@ const deserializeAws_json1_1DefaultContinuousHyperParameterRanges = (output, con
|
|
|
5238
4145
|
}
|
|
5239
4146
|
return deserializeAws_json1_1DefaultContinuousHyperParameterRange(entry, context);
|
|
5240
4147
|
});
|
|
4148
|
+
return retVal;
|
|
5241
4149
|
};
|
|
5242
4150
|
const deserializeAws_json1_1DefaultHyperParameterRanges = (output, context) => {
|
|
5243
4151
|
return {
|
|
@@ -5261,7 +4169,7 @@ const deserializeAws_json1_1DefaultIntegerHyperParameterRange = (output, context
|
|
|
5261
4169
|
};
|
|
5262
4170
|
};
|
|
5263
4171
|
const deserializeAws_json1_1DefaultIntegerHyperParameterRanges = (output, context) => {
|
|
5264
|
-
|
|
4172
|
+
const retVal = (output || [])
|
|
5265
4173
|
.filter((e) => e != null)
|
|
5266
4174
|
.map((entry) => {
|
|
5267
4175
|
if (entry === null) {
|
|
@@ -5269,6 +4177,7 @@ const deserializeAws_json1_1DefaultIntegerHyperParameterRanges = (output, contex
|
|
|
5269
4177
|
}
|
|
5270
4178
|
return deserializeAws_json1_1DefaultIntegerHyperParameterRange(entry, context);
|
|
5271
4179
|
});
|
|
4180
|
+
return retVal;
|
|
5272
4181
|
};
|
|
5273
4182
|
const deserializeAws_json1_1DescribeAlgorithmResponse = (output, context) => {
|
|
5274
4183
|
return {
|
|
@@ -5399,7 +4308,7 @@ const deserializeAws_json1_1EventTracker = (output, context) => {
|
|
|
5399
4308
|
};
|
|
5400
4309
|
};
|
|
5401
4310
|
const deserializeAws_json1_1EventTrackers = (output, context) => {
|
|
5402
|
-
|
|
4311
|
+
const retVal = (output || [])
|
|
5403
4312
|
.filter((e) => e != null)
|
|
5404
4313
|
.map((entry) => {
|
|
5405
4314
|
if (entry === null) {
|
|
@@ -5407,6 +4316,7 @@ const deserializeAws_json1_1EventTrackers = (output, context) => {
|
|
|
5407
4316
|
}
|
|
5408
4317
|
return deserializeAws_json1_1EventTrackerSummary(entry, context);
|
|
5409
4318
|
});
|
|
4319
|
+
return retVal;
|
|
5410
4320
|
};
|
|
5411
4321
|
const deserializeAws_json1_1EventTrackerSummary = (output, context) => {
|
|
5412
4322
|
return {
|
|
@@ -5476,7 +4386,7 @@ const deserializeAws_json1_1Filter = (output, context) => {
|
|
|
5476
4386
|
};
|
|
5477
4387
|
};
|
|
5478
4388
|
const deserializeAws_json1_1Filters = (output, context) => {
|
|
5479
|
-
|
|
4389
|
+
const retVal = (output || [])
|
|
5480
4390
|
.filter((e) => e != null)
|
|
5481
4391
|
.map((entry) => {
|
|
5482
4392
|
if (entry === null) {
|
|
@@ -5484,6 +4394,7 @@ const deserializeAws_json1_1Filters = (output, context) => {
|
|
|
5484
4394
|
}
|
|
5485
4395
|
return deserializeAws_json1_1FilterSummary(entry, context);
|
|
5486
4396
|
});
|
|
4397
|
+
return retVal;
|
|
5487
4398
|
};
|
|
5488
4399
|
const deserializeAws_json1_1FilterSummary = (output, context) => {
|
|
5489
4400
|
return {
|
|
@@ -5566,7 +4477,7 @@ const deserializeAws_json1_1IntegerHyperParameterRange = (output, context) => {
|
|
|
5566
4477
|
};
|
|
5567
4478
|
};
|
|
5568
4479
|
const deserializeAws_json1_1IntegerHyperParameterRanges = (output, context) => {
|
|
5569
|
-
|
|
4480
|
+
const retVal = (output || [])
|
|
5570
4481
|
.filter((e) => e != null)
|
|
5571
4482
|
.map((entry) => {
|
|
5572
4483
|
if (entry === null) {
|
|
@@ -5574,6 +4485,7 @@ const deserializeAws_json1_1IntegerHyperParameterRanges = (output, context) => {
|
|
|
5574
4485
|
}
|
|
5575
4486
|
return deserializeAws_json1_1IntegerHyperParameterRange(entry, context);
|
|
5576
4487
|
});
|
|
4488
|
+
return retVal;
|
|
5577
4489
|
};
|
|
5578
4490
|
const deserializeAws_json1_1InvalidInputException = (output, context) => {
|
|
5579
4491
|
return {
|
|
@@ -5737,7 +4649,7 @@ const deserializeAws_json1_1Recipe = (output, context) => {
|
|
|
5737
4649
|
};
|
|
5738
4650
|
};
|
|
5739
4651
|
const deserializeAws_json1_1Recipes = (output, context) => {
|
|
5740
|
-
|
|
4652
|
+
const retVal = (output || [])
|
|
5741
4653
|
.filter((e) => e != null)
|
|
5742
4654
|
.map((entry) => {
|
|
5743
4655
|
if (entry === null) {
|
|
@@ -5745,6 +4657,7 @@ const deserializeAws_json1_1Recipes = (output, context) => {
|
|
|
5745
4657
|
}
|
|
5746
4658
|
return deserializeAws_json1_1RecipeSummary(entry, context);
|
|
5747
4659
|
});
|
|
4660
|
+
return retVal;
|
|
5748
4661
|
};
|
|
5749
4662
|
const deserializeAws_json1_1RecipeSummary = (output, context) => {
|
|
5750
4663
|
return {
|
|
@@ -5791,7 +4704,7 @@ const deserializeAws_json1_1RecommenderConfig = (output, context) => {
|
|
|
5791
4704
|
};
|
|
5792
4705
|
};
|
|
5793
4706
|
const deserializeAws_json1_1Recommenders = (output, context) => {
|
|
5794
|
-
|
|
4707
|
+
const retVal = (output || [])
|
|
5795
4708
|
.filter((e) => e != null)
|
|
5796
4709
|
.map((entry) => {
|
|
5797
4710
|
if (entry === null) {
|
|
@@ -5799,6 +4712,7 @@ const deserializeAws_json1_1Recommenders = (output, context) => {
|
|
|
5799
4712
|
}
|
|
5800
4713
|
return deserializeAws_json1_1RecommenderSummary(entry, context);
|
|
5801
4714
|
});
|
|
4715
|
+
return retVal;
|
|
5802
4716
|
};
|
|
5803
4717
|
const deserializeAws_json1_1RecommenderSummary = (output, context) => {
|
|
5804
4718
|
return {
|
|
@@ -5866,7 +4780,7 @@ const deserializeAws_json1_1S3DataConfig = (output, context) => {
|
|
|
5866
4780
|
};
|
|
5867
4781
|
};
|
|
5868
4782
|
const deserializeAws_json1_1Schemas = (output, context) => {
|
|
5869
|
-
|
|
4783
|
+
const retVal = (output || [])
|
|
5870
4784
|
.filter((e) => e != null)
|
|
5871
4785
|
.map((entry) => {
|
|
5872
4786
|
if (entry === null) {
|
|
@@ -5874,6 +4788,7 @@ const deserializeAws_json1_1Schemas = (output, context) => {
|
|
|
5874
4788
|
}
|
|
5875
4789
|
return deserializeAws_json1_1DatasetSchemaSummary(entry, context);
|
|
5876
4790
|
});
|
|
4791
|
+
return retVal;
|
|
5877
4792
|
};
|
|
5878
4793
|
const deserializeAws_json1_1Solution = (output, context) => {
|
|
5879
4794
|
return {
|
|
@@ -5923,7 +4838,7 @@ const deserializeAws_json1_1SolutionConfig = (output, context) => {
|
|
|
5923
4838
|
};
|
|
5924
4839
|
};
|
|
5925
4840
|
const deserializeAws_json1_1Solutions = (output, context) => {
|
|
5926
|
-
|
|
4841
|
+
const retVal = (output || [])
|
|
5927
4842
|
.filter((e) => e != null)
|
|
5928
4843
|
.map((entry) => {
|
|
5929
4844
|
if (entry === null) {
|
|
@@ -5931,6 +4846,7 @@ const deserializeAws_json1_1Solutions = (output, context) => {
|
|
|
5931
4846
|
}
|
|
5932
4847
|
return deserializeAws_json1_1SolutionSummary(entry, context);
|
|
5933
4848
|
});
|
|
4849
|
+
return retVal;
|
|
5934
4850
|
};
|
|
5935
4851
|
const deserializeAws_json1_1SolutionSummary = (output, context) => {
|
|
5936
4852
|
return {
|
|
@@ -5973,7 +4889,7 @@ const deserializeAws_json1_1SolutionVersion = (output, context) => {
|
|
|
5973
4889
|
};
|
|
5974
4890
|
};
|
|
5975
4891
|
const deserializeAws_json1_1SolutionVersions = (output, context) => {
|
|
5976
|
-
|
|
4892
|
+
const retVal = (output || [])
|
|
5977
4893
|
.filter((e) => e != null)
|
|
5978
4894
|
.map((entry) => {
|
|
5979
4895
|
if (entry === null) {
|
|
@@ -5981,6 +4897,7 @@ const deserializeAws_json1_1SolutionVersions = (output, context) => {
|
|
|
5981
4897
|
}
|
|
5982
4898
|
return deserializeAws_json1_1SolutionVersionSummary(entry, context);
|
|
5983
4899
|
});
|
|
4900
|
+
return retVal;
|
|
5984
4901
|
};
|
|
5985
4902
|
const deserializeAws_json1_1SolutionVersionSummary = (output, context) => {
|
|
5986
4903
|
return {
|