@aws-sdk/client-cleanroomsml 3.504.0 → 3.507.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +33 -651
- package/dist-es/protocols/Aws_restJson1.js +42 -660
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -673,7 +673,7 @@ var se_UpdateConfiguredAudienceModelCommand = /* @__PURE__ */ __name(async (inpu
|
|
|
673
673
|
}, "se_UpdateConfiguredAudienceModelCommand");
|
|
674
674
|
var de_CreateAudienceModelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
675
675
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
676
|
-
return
|
|
676
|
+
return de_CommandError(output, context);
|
|
677
677
|
}
|
|
678
678
|
const contents = (0, import_smithy_client.map)({
|
|
679
679
|
$metadata: deserializeMetadata(output)
|
|
@@ -685,40 +685,9 @@ var de_CreateAudienceModelCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
685
685
|
Object.assign(contents, doc);
|
|
686
686
|
return contents;
|
|
687
687
|
}, "de_CreateAudienceModelCommand");
|
|
688
|
-
var de_CreateAudienceModelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
689
|
-
const parsedOutput = {
|
|
690
|
-
...output,
|
|
691
|
-
body: await parseErrorBody(output.body, context)
|
|
692
|
-
};
|
|
693
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
694
|
-
switch (errorCode) {
|
|
695
|
-
case "AccessDeniedException":
|
|
696
|
-
case "com.amazonaws.cleanroomsml#AccessDeniedException":
|
|
697
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
698
|
-
case "ConflictException":
|
|
699
|
-
case "com.amazonaws.cleanroomsml#ConflictException":
|
|
700
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
701
|
-
case "ResourceNotFoundException":
|
|
702
|
-
case "com.amazonaws.cleanroomsml#ResourceNotFoundException":
|
|
703
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
704
|
-
case "ServiceQuotaExceededException":
|
|
705
|
-
case "com.amazonaws.cleanroomsml#ServiceQuotaExceededException":
|
|
706
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
707
|
-
case "ValidationException":
|
|
708
|
-
case "com.amazonaws.cleanroomsml#ValidationException":
|
|
709
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
710
|
-
default:
|
|
711
|
-
const parsedBody = parsedOutput.body;
|
|
712
|
-
return throwDefaultError({
|
|
713
|
-
output,
|
|
714
|
-
parsedBody,
|
|
715
|
-
errorCode
|
|
716
|
-
});
|
|
717
|
-
}
|
|
718
|
-
}, "de_CreateAudienceModelCommandError");
|
|
719
688
|
var de_CreateConfiguredAudienceModelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
720
689
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
721
|
-
return
|
|
690
|
+
return de_CommandError(output, context);
|
|
722
691
|
}
|
|
723
692
|
const contents = (0, import_smithy_client.map)({
|
|
724
693
|
$metadata: deserializeMetadata(output)
|
|
@@ -730,40 +699,9 @@ var de_CreateConfiguredAudienceModelCommand = /* @__PURE__ */ __name(async (outp
|
|
|
730
699
|
Object.assign(contents, doc);
|
|
731
700
|
return contents;
|
|
732
701
|
}, "de_CreateConfiguredAudienceModelCommand");
|
|
733
|
-
var de_CreateConfiguredAudienceModelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
734
|
-
const parsedOutput = {
|
|
735
|
-
...output,
|
|
736
|
-
body: await parseErrorBody(output.body, context)
|
|
737
|
-
};
|
|
738
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
739
|
-
switch (errorCode) {
|
|
740
|
-
case "AccessDeniedException":
|
|
741
|
-
case "com.amazonaws.cleanroomsml#AccessDeniedException":
|
|
742
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
743
|
-
case "ConflictException":
|
|
744
|
-
case "com.amazonaws.cleanroomsml#ConflictException":
|
|
745
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
746
|
-
case "ResourceNotFoundException":
|
|
747
|
-
case "com.amazonaws.cleanroomsml#ResourceNotFoundException":
|
|
748
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
749
|
-
case "ServiceQuotaExceededException":
|
|
750
|
-
case "com.amazonaws.cleanroomsml#ServiceQuotaExceededException":
|
|
751
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
752
|
-
case "ValidationException":
|
|
753
|
-
case "com.amazonaws.cleanroomsml#ValidationException":
|
|
754
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
755
|
-
default:
|
|
756
|
-
const parsedBody = parsedOutput.body;
|
|
757
|
-
return throwDefaultError({
|
|
758
|
-
output,
|
|
759
|
-
parsedBody,
|
|
760
|
-
errorCode
|
|
761
|
-
});
|
|
762
|
-
}
|
|
763
|
-
}, "de_CreateConfiguredAudienceModelCommandError");
|
|
764
702
|
var de_CreateTrainingDatasetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
765
703
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
766
|
-
return
|
|
704
|
+
return de_CommandError(output, context);
|
|
767
705
|
}
|
|
768
706
|
const contents = (0, import_smithy_client.map)({
|
|
769
707
|
$metadata: deserializeMetadata(output)
|
|
@@ -775,34 +713,9 @@ var de_CreateTrainingDatasetCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
775
713
|
Object.assign(contents, doc);
|
|
776
714
|
return contents;
|
|
777
715
|
}, "de_CreateTrainingDatasetCommand");
|
|
778
|
-
var de_CreateTrainingDatasetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
779
|
-
const parsedOutput = {
|
|
780
|
-
...output,
|
|
781
|
-
body: await parseErrorBody(output.body, context)
|
|
782
|
-
};
|
|
783
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
784
|
-
switch (errorCode) {
|
|
785
|
-
case "AccessDeniedException":
|
|
786
|
-
case "com.amazonaws.cleanroomsml#AccessDeniedException":
|
|
787
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
788
|
-
case "ConflictException":
|
|
789
|
-
case "com.amazonaws.cleanroomsml#ConflictException":
|
|
790
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
791
|
-
case "ValidationException":
|
|
792
|
-
case "com.amazonaws.cleanroomsml#ValidationException":
|
|
793
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
794
|
-
default:
|
|
795
|
-
const parsedBody = parsedOutput.body;
|
|
796
|
-
return throwDefaultError({
|
|
797
|
-
output,
|
|
798
|
-
parsedBody,
|
|
799
|
-
errorCode
|
|
800
|
-
});
|
|
801
|
-
}
|
|
802
|
-
}, "de_CreateTrainingDatasetCommandError");
|
|
803
716
|
var de_DeleteAudienceGenerationJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
804
717
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
805
|
-
return
|
|
718
|
+
return de_CommandError(output, context);
|
|
806
719
|
}
|
|
807
720
|
const contents = (0, import_smithy_client.map)({
|
|
808
721
|
$metadata: deserializeMetadata(output)
|
|
@@ -810,37 +723,9 @@ var de_DeleteAudienceGenerationJobCommand = /* @__PURE__ */ __name(async (output
|
|
|
810
723
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
811
724
|
return contents;
|
|
812
725
|
}, "de_DeleteAudienceGenerationJobCommand");
|
|
813
|
-
var de_DeleteAudienceGenerationJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
814
|
-
const parsedOutput = {
|
|
815
|
-
...output,
|
|
816
|
-
body: await parseErrorBody(output.body, context)
|
|
817
|
-
};
|
|
818
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
819
|
-
switch (errorCode) {
|
|
820
|
-
case "AccessDeniedException":
|
|
821
|
-
case "com.amazonaws.cleanroomsml#AccessDeniedException":
|
|
822
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
823
|
-
case "ConflictException":
|
|
824
|
-
case "com.amazonaws.cleanroomsml#ConflictException":
|
|
825
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
826
|
-
case "ResourceNotFoundException":
|
|
827
|
-
case "com.amazonaws.cleanroomsml#ResourceNotFoundException":
|
|
828
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
829
|
-
case "ValidationException":
|
|
830
|
-
case "com.amazonaws.cleanroomsml#ValidationException":
|
|
831
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
832
|
-
default:
|
|
833
|
-
const parsedBody = parsedOutput.body;
|
|
834
|
-
return throwDefaultError({
|
|
835
|
-
output,
|
|
836
|
-
parsedBody,
|
|
837
|
-
errorCode
|
|
838
|
-
});
|
|
839
|
-
}
|
|
840
|
-
}, "de_DeleteAudienceGenerationJobCommandError");
|
|
841
726
|
var de_DeleteAudienceModelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
842
727
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
843
|
-
return
|
|
728
|
+
return de_CommandError(output, context);
|
|
844
729
|
}
|
|
845
730
|
const contents = (0, import_smithy_client.map)({
|
|
846
731
|
$metadata: deserializeMetadata(output)
|
|
@@ -848,37 +733,9 @@ var de_DeleteAudienceModelCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
848
733
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
849
734
|
return contents;
|
|
850
735
|
}, "de_DeleteAudienceModelCommand");
|
|
851
|
-
var de_DeleteAudienceModelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
852
|
-
const parsedOutput = {
|
|
853
|
-
...output,
|
|
854
|
-
body: await parseErrorBody(output.body, context)
|
|
855
|
-
};
|
|
856
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
857
|
-
switch (errorCode) {
|
|
858
|
-
case "AccessDeniedException":
|
|
859
|
-
case "com.amazonaws.cleanroomsml#AccessDeniedException":
|
|
860
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
861
|
-
case "ConflictException":
|
|
862
|
-
case "com.amazonaws.cleanroomsml#ConflictException":
|
|
863
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
864
|
-
case "ResourceNotFoundException":
|
|
865
|
-
case "com.amazonaws.cleanroomsml#ResourceNotFoundException":
|
|
866
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
867
|
-
case "ValidationException":
|
|
868
|
-
case "com.amazonaws.cleanroomsml#ValidationException":
|
|
869
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
870
|
-
default:
|
|
871
|
-
const parsedBody = parsedOutput.body;
|
|
872
|
-
return throwDefaultError({
|
|
873
|
-
output,
|
|
874
|
-
parsedBody,
|
|
875
|
-
errorCode
|
|
876
|
-
});
|
|
877
|
-
}
|
|
878
|
-
}, "de_DeleteAudienceModelCommandError");
|
|
879
736
|
var de_DeleteConfiguredAudienceModelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
880
737
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
881
|
-
return
|
|
738
|
+
return de_CommandError(output, context);
|
|
882
739
|
}
|
|
883
740
|
const contents = (0, import_smithy_client.map)({
|
|
884
741
|
$metadata: deserializeMetadata(output)
|
|
@@ -886,37 +743,9 @@ var de_DeleteConfiguredAudienceModelCommand = /* @__PURE__ */ __name(async (outp
|
|
|
886
743
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
887
744
|
return contents;
|
|
888
745
|
}, "de_DeleteConfiguredAudienceModelCommand");
|
|
889
|
-
var de_DeleteConfiguredAudienceModelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
890
|
-
const parsedOutput = {
|
|
891
|
-
...output,
|
|
892
|
-
body: await parseErrorBody(output.body, context)
|
|
893
|
-
};
|
|
894
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
895
|
-
switch (errorCode) {
|
|
896
|
-
case "AccessDeniedException":
|
|
897
|
-
case "com.amazonaws.cleanroomsml#AccessDeniedException":
|
|
898
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
899
|
-
case "ConflictException":
|
|
900
|
-
case "com.amazonaws.cleanroomsml#ConflictException":
|
|
901
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
902
|
-
case "ResourceNotFoundException":
|
|
903
|
-
case "com.amazonaws.cleanroomsml#ResourceNotFoundException":
|
|
904
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
905
|
-
case "ValidationException":
|
|
906
|
-
case "com.amazonaws.cleanroomsml#ValidationException":
|
|
907
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
908
|
-
default:
|
|
909
|
-
const parsedBody = parsedOutput.body;
|
|
910
|
-
return throwDefaultError({
|
|
911
|
-
output,
|
|
912
|
-
parsedBody,
|
|
913
|
-
errorCode
|
|
914
|
-
});
|
|
915
|
-
}
|
|
916
|
-
}, "de_DeleteConfiguredAudienceModelCommandError");
|
|
917
746
|
var de_DeleteConfiguredAudienceModelPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
918
747
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
919
|
-
return
|
|
748
|
+
return de_CommandError(output, context);
|
|
920
749
|
}
|
|
921
750
|
const contents = (0, import_smithy_client.map)({
|
|
922
751
|
$metadata: deserializeMetadata(output)
|
|
@@ -924,34 +753,9 @@ var de_DeleteConfiguredAudienceModelPolicyCommand = /* @__PURE__ */ __name(async
|
|
|
924
753
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
925
754
|
return contents;
|
|
926
755
|
}, "de_DeleteConfiguredAudienceModelPolicyCommand");
|
|
927
|
-
var de_DeleteConfiguredAudienceModelPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
928
|
-
const parsedOutput = {
|
|
929
|
-
...output,
|
|
930
|
-
body: await parseErrorBody(output.body, context)
|
|
931
|
-
};
|
|
932
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
933
|
-
switch (errorCode) {
|
|
934
|
-
case "AccessDeniedException":
|
|
935
|
-
case "com.amazonaws.cleanroomsml#AccessDeniedException":
|
|
936
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
937
|
-
case "ResourceNotFoundException":
|
|
938
|
-
case "com.amazonaws.cleanroomsml#ResourceNotFoundException":
|
|
939
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
940
|
-
case "ValidationException":
|
|
941
|
-
case "com.amazonaws.cleanroomsml#ValidationException":
|
|
942
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
943
|
-
default:
|
|
944
|
-
const parsedBody = parsedOutput.body;
|
|
945
|
-
return throwDefaultError({
|
|
946
|
-
output,
|
|
947
|
-
parsedBody,
|
|
948
|
-
errorCode
|
|
949
|
-
});
|
|
950
|
-
}
|
|
951
|
-
}, "de_DeleteConfiguredAudienceModelPolicyCommandError");
|
|
952
756
|
var de_DeleteTrainingDatasetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
953
757
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
954
|
-
return
|
|
758
|
+
return de_CommandError(output, context);
|
|
955
759
|
}
|
|
956
760
|
const contents = (0, import_smithy_client.map)({
|
|
957
761
|
$metadata: deserializeMetadata(output)
|
|
@@ -959,37 +763,9 @@ var de_DeleteTrainingDatasetCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
959
763
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
960
764
|
return contents;
|
|
961
765
|
}, "de_DeleteTrainingDatasetCommand");
|
|
962
|
-
var de_DeleteTrainingDatasetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
963
|
-
const parsedOutput = {
|
|
964
|
-
...output,
|
|
965
|
-
body: await parseErrorBody(output.body, context)
|
|
966
|
-
};
|
|
967
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
968
|
-
switch (errorCode) {
|
|
969
|
-
case "AccessDeniedException":
|
|
970
|
-
case "com.amazonaws.cleanroomsml#AccessDeniedException":
|
|
971
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
972
|
-
case "ConflictException":
|
|
973
|
-
case "com.amazonaws.cleanroomsml#ConflictException":
|
|
974
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
975
|
-
case "ResourceNotFoundException":
|
|
976
|
-
case "com.amazonaws.cleanroomsml#ResourceNotFoundException":
|
|
977
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
978
|
-
case "ValidationException":
|
|
979
|
-
case "com.amazonaws.cleanroomsml#ValidationException":
|
|
980
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
981
|
-
default:
|
|
982
|
-
const parsedBody = parsedOutput.body;
|
|
983
|
-
return throwDefaultError({
|
|
984
|
-
output,
|
|
985
|
-
parsedBody,
|
|
986
|
-
errorCode
|
|
987
|
-
});
|
|
988
|
-
}
|
|
989
|
-
}, "de_DeleteTrainingDatasetCommandError");
|
|
990
766
|
var de_GetAudienceGenerationJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
991
767
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
992
|
-
return
|
|
768
|
+
return de_CommandError(output, context);
|
|
993
769
|
}
|
|
994
770
|
const contents = (0, import_smithy_client.map)({
|
|
995
771
|
$metadata: deserializeMetadata(output)
|
|
@@ -1014,34 +790,9 @@ var de_GetAudienceGenerationJobCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1014
790
|
Object.assign(contents, doc);
|
|
1015
791
|
return contents;
|
|
1016
792
|
}, "de_GetAudienceGenerationJobCommand");
|
|
1017
|
-
var de_GetAudienceGenerationJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1018
|
-
const parsedOutput = {
|
|
1019
|
-
...output,
|
|
1020
|
-
body: await parseErrorBody(output.body, context)
|
|
1021
|
-
};
|
|
1022
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1023
|
-
switch (errorCode) {
|
|
1024
|
-
case "AccessDeniedException":
|
|
1025
|
-
case "com.amazonaws.cleanroomsml#AccessDeniedException":
|
|
1026
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1027
|
-
case "ResourceNotFoundException":
|
|
1028
|
-
case "com.amazonaws.cleanroomsml#ResourceNotFoundException":
|
|
1029
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1030
|
-
case "ValidationException":
|
|
1031
|
-
case "com.amazonaws.cleanroomsml#ValidationException":
|
|
1032
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1033
|
-
default:
|
|
1034
|
-
const parsedBody = parsedOutput.body;
|
|
1035
|
-
return throwDefaultError({
|
|
1036
|
-
output,
|
|
1037
|
-
parsedBody,
|
|
1038
|
-
errorCode
|
|
1039
|
-
});
|
|
1040
|
-
}
|
|
1041
|
-
}, "de_GetAudienceGenerationJobCommandError");
|
|
1042
793
|
var de_GetAudienceModelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1043
794
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1044
|
-
return
|
|
795
|
+
return de_CommandError(output, context);
|
|
1045
796
|
}
|
|
1046
797
|
const contents = (0, import_smithy_client.map)({
|
|
1047
798
|
$metadata: deserializeMetadata(output)
|
|
@@ -1065,34 +816,9 @@ var de_GetAudienceModelCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1065
816
|
Object.assign(contents, doc);
|
|
1066
817
|
return contents;
|
|
1067
818
|
}, "de_GetAudienceModelCommand");
|
|
1068
|
-
var de_GetAudienceModelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1069
|
-
const parsedOutput = {
|
|
1070
|
-
...output,
|
|
1071
|
-
body: await parseErrorBody(output.body, context)
|
|
1072
|
-
};
|
|
1073
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1074
|
-
switch (errorCode) {
|
|
1075
|
-
case "AccessDeniedException":
|
|
1076
|
-
case "com.amazonaws.cleanroomsml#AccessDeniedException":
|
|
1077
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1078
|
-
case "ResourceNotFoundException":
|
|
1079
|
-
case "com.amazonaws.cleanroomsml#ResourceNotFoundException":
|
|
1080
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1081
|
-
case "ValidationException":
|
|
1082
|
-
case "com.amazonaws.cleanroomsml#ValidationException":
|
|
1083
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1084
|
-
default:
|
|
1085
|
-
const parsedBody = parsedOutput.body;
|
|
1086
|
-
return throwDefaultError({
|
|
1087
|
-
output,
|
|
1088
|
-
parsedBody,
|
|
1089
|
-
errorCode
|
|
1090
|
-
});
|
|
1091
|
-
}
|
|
1092
|
-
}, "de_GetAudienceModelCommandError");
|
|
1093
819
|
var de_GetConfiguredAudienceModelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1094
820
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1095
|
-
return
|
|
821
|
+
return de_CommandError(output, context);
|
|
1096
822
|
}
|
|
1097
823
|
const contents = (0, import_smithy_client.map)({
|
|
1098
824
|
$metadata: deserializeMetadata(output)
|
|
@@ -1116,34 +842,9 @@ var de_GetConfiguredAudienceModelCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1116
842
|
Object.assign(contents, doc);
|
|
1117
843
|
return contents;
|
|
1118
844
|
}, "de_GetConfiguredAudienceModelCommand");
|
|
1119
|
-
var de_GetConfiguredAudienceModelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1120
|
-
const parsedOutput = {
|
|
1121
|
-
...output,
|
|
1122
|
-
body: await parseErrorBody(output.body, context)
|
|
1123
|
-
};
|
|
1124
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1125
|
-
switch (errorCode) {
|
|
1126
|
-
case "AccessDeniedException":
|
|
1127
|
-
case "com.amazonaws.cleanroomsml#AccessDeniedException":
|
|
1128
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1129
|
-
case "ResourceNotFoundException":
|
|
1130
|
-
case "com.amazonaws.cleanroomsml#ResourceNotFoundException":
|
|
1131
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1132
|
-
case "ValidationException":
|
|
1133
|
-
case "com.amazonaws.cleanroomsml#ValidationException":
|
|
1134
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1135
|
-
default:
|
|
1136
|
-
const parsedBody = parsedOutput.body;
|
|
1137
|
-
return throwDefaultError({
|
|
1138
|
-
output,
|
|
1139
|
-
parsedBody,
|
|
1140
|
-
errorCode
|
|
1141
|
-
});
|
|
1142
|
-
}
|
|
1143
|
-
}, "de_GetConfiguredAudienceModelCommandError");
|
|
1144
845
|
var de_GetConfiguredAudienceModelPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1145
846
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1146
|
-
return
|
|
847
|
+
return de_CommandError(output, context);
|
|
1147
848
|
}
|
|
1148
849
|
const contents = (0, import_smithy_client.map)({
|
|
1149
850
|
$metadata: deserializeMetadata(output)
|
|
@@ -1157,34 +858,9 @@ var de_GetConfiguredAudienceModelPolicyCommand = /* @__PURE__ */ __name(async (o
|
|
|
1157
858
|
Object.assign(contents, doc);
|
|
1158
859
|
return contents;
|
|
1159
860
|
}, "de_GetConfiguredAudienceModelPolicyCommand");
|
|
1160
|
-
var de_GetConfiguredAudienceModelPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1161
|
-
const parsedOutput = {
|
|
1162
|
-
...output,
|
|
1163
|
-
body: await parseErrorBody(output.body, context)
|
|
1164
|
-
};
|
|
1165
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1166
|
-
switch (errorCode) {
|
|
1167
|
-
case "AccessDeniedException":
|
|
1168
|
-
case "com.amazonaws.cleanroomsml#AccessDeniedException":
|
|
1169
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1170
|
-
case "ResourceNotFoundException":
|
|
1171
|
-
case "com.amazonaws.cleanroomsml#ResourceNotFoundException":
|
|
1172
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1173
|
-
case "ValidationException":
|
|
1174
|
-
case "com.amazonaws.cleanroomsml#ValidationException":
|
|
1175
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1176
|
-
default:
|
|
1177
|
-
const parsedBody = parsedOutput.body;
|
|
1178
|
-
return throwDefaultError({
|
|
1179
|
-
output,
|
|
1180
|
-
parsedBody,
|
|
1181
|
-
errorCode
|
|
1182
|
-
});
|
|
1183
|
-
}
|
|
1184
|
-
}, "de_GetConfiguredAudienceModelPolicyCommandError");
|
|
1185
861
|
var de_GetTrainingDatasetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1186
862
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1187
|
-
return
|
|
863
|
+
return de_CommandError(output, context);
|
|
1188
864
|
}
|
|
1189
865
|
const contents = (0, import_smithy_client.map)({
|
|
1190
866
|
$metadata: deserializeMetadata(output)
|
|
@@ -1201,37 +877,12 @@ var de_GetTrainingDatasetCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1201
877
|
trainingDatasetArn: import_smithy_client.expectString,
|
|
1202
878
|
updateTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
|
|
1203
879
|
});
|
|
1204
|
-
Object.assign(contents, doc);
|
|
1205
|
-
return contents;
|
|
1206
|
-
}, "de_GetTrainingDatasetCommand");
|
|
1207
|
-
var de_GetTrainingDatasetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1208
|
-
const parsedOutput = {
|
|
1209
|
-
...output,
|
|
1210
|
-
body: await parseErrorBody(output.body, context)
|
|
1211
|
-
};
|
|
1212
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1213
|
-
switch (errorCode) {
|
|
1214
|
-
case "AccessDeniedException":
|
|
1215
|
-
case "com.amazonaws.cleanroomsml#AccessDeniedException":
|
|
1216
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1217
|
-
case "ResourceNotFoundException":
|
|
1218
|
-
case "com.amazonaws.cleanroomsml#ResourceNotFoundException":
|
|
1219
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1220
|
-
case "ValidationException":
|
|
1221
|
-
case "com.amazonaws.cleanroomsml#ValidationException":
|
|
1222
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1223
|
-
default:
|
|
1224
|
-
const parsedBody = parsedOutput.body;
|
|
1225
|
-
return throwDefaultError({
|
|
1226
|
-
output,
|
|
1227
|
-
parsedBody,
|
|
1228
|
-
errorCode
|
|
1229
|
-
});
|
|
1230
|
-
}
|
|
1231
|
-
}, "de_GetTrainingDatasetCommandError");
|
|
880
|
+
Object.assign(contents, doc);
|
|
881
|
+
return contents;
|
|
882
|
+
}, "de_GetTrainingDatasetCommand");
|
|
1232
883
|
var de_ListAudienceExportJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1233
884
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1234
|
-
return
|
|
885
|
+
return de_CommandError(output, context);
|
|
1235
886
|
}
|
|
1236
887
|
const contents = (0, import_smithy_client.map)({
|
|
1237
888
|
$metadata: deserializeMetadata(output)
|
|
@@ -1244,31 +895,9 @@ var de_ListAudienceExportJobsCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1244
895
|
Object.assign(contents, doc);
|
|
1245
896
|
return contents;
|
|
1246
897
|
}, "de_ListAudienceExportJobsCommand");
|
|
1247
|
-
var de_ListAudienceExportJobsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1248
|
-
const parsedOutput = {
|
|
1249
|
-
...output,
|
|
1250
|
-
body: await parseErrorBody(output.body, context)
|
|
1251
|
-
};
|
|
1252
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1253
|
-
switch (errorCode) {
|
|
1254
|
-
case "AccessDeniedException":
|
|
1255
|
-
case "com.amazonaws.cleanroomsml#AccessDeniedException":
|
|
1256
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1257
|
-
case "ValidationException":
|
|
1258
|
-
case "com.amazonaws.cleanroomsml#ValidationException":
|
|
1259
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1260
|
-
default:
|
|
1261
|
-
const parsedBody = parsedOutput.body;
|
|
1262
|
-
return throwDefaultError({
|
|
1263
|
-
output,
|
|
1264
|
-
parsedBody,
|
|
1265
|
-
errorCode
|
|
1266
|
-
});
|
|
1267
|
-
}
|
|
1268
|
-
}, "de_ListAudienceExportJobsCommandError");
|
|
1269
898
|
var de_ListAudienceGenerationJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1270
899
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1271
|
-
return
|
|
900
|
+
return de_CommandError(output, context);
|
|
1272
901
|
}
|
|
1273
902
|
const contents = (0, import_smithy_client.map)({
|
|
1274
903
|
$metadata: deserializeMetadata(output)
|
|
@@ -1281,31 +910,9 @@ var de_ListAudienceGenerationJobsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1281
910
|
Object.assign(contents, doc);
|
|
1282
911
|
return contents;
|
|
1283
912
|
}, "de_ListAudienceGenerationJobsCommand");
|
|
1284
|
-
var de_ListAudienceGenerationJobsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1285
|
-
const parsedOutput = {
|
|
1286
|
-
...output,
|
|
1287
|
-
body: await parseErrorBody(output.body, context)
|
|
1288
|
-
};
|
|
1289
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1290
|
-
switch (errorCode) {
|
|
1291
|
-
case "AccessDeniedException":
|
|
1292
|
-
case "com.amazonaws.cleanroomsml#AccessDeniedException":
|
|
1293
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1294
|
-
case "ValidationException":
|
|
1295
|
-
case "com.amazonaws.cleanroomsml#ValidationException":
|
|
1296
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1297
|
-
default:
|
|
1298
|
-
const parsedBody = parsedOutput.body;
|
|
1299
|
-
return throwDefaultError({
|
|
1300
|
-
output,
|
|
1301
|
-
parsedBody,
|
|
1302
|
-
errorCode
|
|
1303
|
-
});
|
|
1304
|
-
}
|
|
1305
|
-
}, "de_ListAudienceGenerationJobsCommandError");
|
|
1306
913
|
var de_ListAudienceModelsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1307
914
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1308
|
-
return
|
|
915
|
+
return de_CommandError(output, context);
|
|
1309
916
|
}
|
|
1310
917
|
const contents = (0, import_smithy_client.map)({
|
|
1311
918
|
$metadata: deserializeMetadata(output)
|
|
@@ -1318,31 +925,9 @@ var de_ListAudienceModelsCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1318
925
|
Object.assign(contents, doc);
|
|
1319
926
|
return contents;
|
|
1320
927
|
}, "de_ListAudienceModelsCommand");
|
|
1321
|
-
var de_ListAudienceModelsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1322
|
-
const parsedOutput = {
|
|
1323
|
-
...output,
|
|
1324
|
-
body: await parseErrorBody(output.body, context)
|
|
1325
|
-
};
|
|
1326
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1327
|
-
switch (errorCode) {
|
|
1328
|
-
case "AccessDeniedException":
|
|
1329
|
-
case "com.amazonaws.cleanroomsml#AccessDeniedException":
|
|
1330
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1331
|
-
case "ValidationException":
|
|
1332
|
-
case "com.amazonaws.cleanroomsml#ValidationException":
|
|
1333
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1334
|
-
default:
|
|
1335
|
-
const parsedBody = parsedOutput.body;
|
|
1336
|
-
return throwDefaultError({
|
|
1337
|
-
output,
|
|
1338
|
-
parsedBody,
|
|
1339
|
-
errorCode
|
|
1340
|
-
});
|
|
1341
|
-
}
|
|
1342
|
-
}, "de_ListAudienceModelsCommandError");
|
|
1343
928
|
var de_ListConfiguredAudienceModelsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1344
929
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1345
|
-
return
|
|
930
|
+
return de_CommandError(output, context);
|
|
1346
931
|
}
|
|
1347
932
|
const contents = (0, import_smithy_client.map)({
|
|
1348
933
|
$metadata: deserializeMetadata(output)
|
|
@@ -1355,31 +940,9 @@ var de_ListConfiguredAudienceModelsCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
1355
940
|
Object.assign(contents, doc);
|
|
1356
941
|
return contents;
|
|
1357
942
|
}, "de_ListConfiguredAudienceModelsCommand");
|
|
1358
|
-
var de_ListConfiguredAudienceModelsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1359
|
-
const parsedOutput = {
|
|
1360
|
-
...output,
|
|
1361
|
-
body: await parseErrorBody(output.body, context)
|
|
1362
|
-
};
|
|
1363
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1364
|
-
switch (errorCode) {
|
|
1365
|
-
case "AccessDeniedException":
|
|
1366
|
-
case "com.amazonaws.cleanroomsml#AccessDeniedException":
|
|
1367
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1368
|
-
case "ValidationException":
|
|
1369
|
-
case "com.amazonaws.cleanroomsml#ValidationException":
|
|
1370
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1371
|
-
default:
|
|
1372
|
-
const parsedBody = parsedOutput.body;
|
|
1373
|
-
return throwDefaultError({
|
|
1374
|
-
output,
|
|
1375
|
-
parsedBody,
|
|
1376
|
-
errorCode
|
|
1377
|
-
});
|
|
1378
|
-
}
|
|
1379
|
-
}, "de_ListConfiguredAudienceModelsCommandError");
|
|
1380
943
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1381
944
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1382
|
-
return
|
|
945
|
+
return de_CommandError(output, context);
|
|
1383
946
|
}
|
|
1384
947
|
const contents = (0, import_smithy_client.map)({
|
|
1385
948
|
$metadata: deserializeMetadata(output)
|
|
@@ -1391,34 +954,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1391
954
|
Object.assign(contents, doc);
|
|
1392
955
|
return contents;
|
|
1393
956
|
}, "de_ListTagsForResourceCommand");
|
|
1394
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1395
|
-
const parsedOutput = {
|
|
1396
|
-
...output,
|
|
1397
|
-
body: await parseErrorBody(output.body, context)
|
|
1398
|
-
};
|
|
1399
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1400
|
-
switch (errorCode) {
|
|
1401
|
-
case "AccessDeniedException":
|
|
1402
|
-
case "com.amazonaws.cleanroomsml#AccessDeniedException":
|
|
1403
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1404
|
-
case "ResourceNotFoundException":
|
|
1405
|
-
case "com.amazonaws.cleanroomsml#ResourceNotFoundException":
|
|
1406
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1407
|
-
case "ValidationException":
|
|
1408
|
-
case "com.amazonaws.cleanroomsml#ValidationException":
|
|
1409
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1410
|
-
default:
|
|
1411
|
-
const parsedBody = parsedOutput.body;
|
|
1412
|
-
return throwDefaultError({
|
|
1413
|
-
output,
|
|
1414
|
-
parsedBody,
|
|
1415
|
-
errorCode
|
|
1416
|
-
});
|
|
1417
|
-
}
|
|
1418
|
-
}, "de_ListTagsForResourceCommandError");
|
|
1419
957
|
var de_ListTrainingDatasetsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1420
958
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1421
|
-
return
|
|
959
|
+
return de_CommandError(output, context);
|
|
1422
960
|
}
|
|
1423
961
|
const contents = (0, import_smithy_client.map)({
|
|
1424
962
|
$metadata: deserializeMetadata(output)
|
|
@@ -1431,31 +969,9 @@ var de_ListTrainingDatasetsCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1431
969
|
Object.assign(contents, doc);
|
|
1432
970
|
return contents;
|
|
1433
971
|
}, "de_ListTrainingDatasetsCommand");
|
|
1434
|
-
var de_ListTrainingDatasetsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1435
|
-
const parsedOutput = {
|
|
1436
|
-
...output,
|
|
1437
|
-
body: await parseErrorBody(output.body, context)
|
|
1438
|
-
};
|
|
1439
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1440
|
-
switch (errorCode) {
|
|
1441
|
-
case "AccessDeniedException":
|
|
1442
|
-
case "com.amazonaws.cleanroomsml#AccessDeniedException":
|
|
1443
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1444
|
-
case "ValidationException":
|
|
1445
|
-
case "com.amazonaws.cleanroomsml#ValidationException":
|
|
1446
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1447
|
-
default:
|
|
1448
|
-
const parsedBody = parsedOutput.body;
|
|
1449
|
-
return throwDefaultError({
|
|
1450
|
-
output,
|
|
1451
|
-
parsedBody,
|
|
1452
|
-
errorCode
|
|
1453
|
-
});
|
|
1454
|
-
}
|
|
1455
|
-
}, "de_ListTrainingDatasetsCommandError");
|
|
1456
972
|
var de_PutConfiguredAudienceModelPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1457
973
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1458
|
-
return
|
|
974
|
+
return de_CommandError(output, context);
|
|
1459
975
|
}
|
|
1460
976
|
const contents = (0, import_smithy_client.map)({
|
|
1461
977
|
$metadata: deserializeMetadata(output)
|
|
@@ -1468,34 +984,9 @@ var de_PutConfiguredAudienceModelPolicyCommand = /* @__PURE__ */ __name(async (o
|
|
|
1468
984
|
Object.assign(contents, doc);
|
|
1469
985
|
return contents;
|
|
1470
986
|
}, "de_PutConfiguredAudienceModelPolicyCommand");
|
|
1471
|
-
var de_PutConfiguredAudienceModelPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1472
|
-
const parsedOutput = {
|
|
1473
|
-
...output,
|
|
1474
|
-
body: await parseErrorBody(output.body, context)
|
|
1475
|
-
};
|
|
1476
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1477
|
-
switch (errorCode) {
|
|
1478
|
-
case "AccessDeniedException":
|
|
1479
|
-
case "com.amazonaws.cleanroomsml#AccessDeniedException":
|
|
1480
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1481
|
-
case "ResourceNotFoundException":
|
|
1482
|
-
case "com.amazonaws.cleanroomsml#ResourceNotFoundException":
|
|
1483
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1484
|
-
case "ValidationException":
|
|
1485
|
-
case "com.amazonaws.cleanroomsml#ValidationException":
|
|
1486
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1487
|
-
default:
|
|
1488
|
-
const parsedBody = parsedOutput.body;
|
|
1489
|
-
return throwDefaultError({
|
|
1490
|
-
output,
|
|
1491
|
-
parsedBody,
|
|
1492
|
-
errorCode
|
|
1493
|
-
});
|
|
1494
|
-
}
|
|
1495
|
-
}, "de_PutConfiguredAudienceModelPolicyCommandError");
|
|
1496
987
|
var de_StartAudienceExportJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1497
988
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1498
|
-
return
|
|
989
|
+
return de_CommandError(output, context);
|
|
1499
990
|
}
|
|
1500
991
|
const contents = (0, import_smithy_client.map)({
|
|
1501
992
|
$metadata: deserializeMetadata(output)
|
|
@@ -1503,40 +994,9 @@ var de_StartAudienceExportJobCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1503
994
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1504
995
|
return contents;
|
|
1505
996
|
}, "de_StartAudienceExportJobCommand");
|
|
1506
|
-
var de_StartAudienceExportJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1507
|
-
const parsedOutput = {
|
|
1508
|
-
...output,
|
|
1509
|
-
body: await parseErrorBody(output.body, context)
|
|
1510
|
-
};
|
|
1511
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1512
|
-
switch (errorCode) {
|
|
1513
|
-
case "AccessDeniedException":
|
|
1514
|
-
case "com.amazonaws.cleanroomsml#AccessDeniedException":
|
|
1515
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1516
|
-
case "ConflictException":
|
|
1517
|
-
case "com.amazonaws.cleanroomsml#ConflictException":
|
|
1518
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1519
|
-
case "ResourceNotFoundException":
|
|
1520
|
-
case "com.amazonaws.cleanroomsml#ResourceNotFoundException":
|
|
1521
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1522
|
-
case "ServiceQuotaExceededException":
|
|
1523
|
-
case "com.amazonaws.cleanroomsml#ServiceQuotaExceededException":
|
|
1524
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1525
|
-
case "ValidationException":
|
|
1526
|
-
case "com.amazonaws.cleanroomsml#ValidationException":
|
|
1527
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1528
|
-
default:
|
|
1529
|
-
const parsedBody = parsedOutput.body;
|
|
1530
|
-
return throwDefaultError({
|
|
1531
|
-
output,
|
|
1532
|
-
parsedBody,
|
|
1533
|
-
errorCode
|
|
1534
|
-
});
|
|
1535
|
-
}
|
|
1536
|
-
}, "de_StartAudienceExportJobCommandError");
|
|
1537
997
|
var de_StartAudienceGenerationJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1538
998
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1539
|
-
return
|
|
999
|
+
return de_CommandError(output, context);
|
|
1540
1000
|
}
|
|
1541
1001
|
const contents = (0, import_smithy_client.map)({
|
|
1542
1002
|
$metadata: deserializeMetadata(output)
|
|
@@ -1548,40 +1008,9 @@ var de_StartAudienceGenerationJobCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1548
1008
|
Object.assign(contents, doc);
|
|
1549
1009
|
return contents;
|
|
1550
1010
|
}, "de_StartAudienceGenerationJobCommand");
|
|
1551
|
-
var de_StartAudienceGenerationJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1552
|
-
const parsedOutput = {
|
|
1553
|
-
...output,
|
|
1554
|
-
body: await parseErrorBody(output.body, context)
|
|
1555
|
-
};
|
|
1556
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1557
|
-
switch (errorCode) {
|
|
1558
|
-
case "AccessDeniedException":
|
|
1559
|
-
case "com.amazonaws.cleanroomsml#AccessDeniedException":
|
|
1560
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1561
|
-
case "ConflictException":
|
|
1562
|
-
case "com.amazonaws.cleanroomsml#ConflictException":
|
|
1563
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1564
|
-
case "ResourceNotFoundException":
|
|
1565
|
-
case "com.amazonaws.cleanroomsml#ResourceNotFoundException":
|
|
1566
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1567
|
-
case "ServiceQuotaExceededException":
|
|
1568
|
-
case "com.amazonaws.cleanroomsml#ServiceQuotaExceededException":
|
|
1569
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1570
|
-
case "ValidationException":
|
|
1571
|
-
case "com.amazonaws.cleanroomsml#ValidationException":
|
|
1572
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1573
|
-
default:
|
|
1574
|
-
const parsedBody = parsedOutput.body;
|
|
1575
|
-
return throwDefaultError({
|
|
1576
|
-
output,
|
|
1577
|
-
parsedBody,
|
|
1578
|
-
errorCode
|
|
1579
|
-
});
|
|
1580
|
-
}
|
|
1581
|
-
}, "de_StartAudienceGenerationJobCommandError");
|
|
1582
1011
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1583
1012
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1584
|
-
return
|
|
1013
|
+
return de_CommandError(output, context);
|
|
1585
1014
|
}
|
|
1586
1015
|
const contents = (0, import_smithy_client.map)({
|
|
1587
1016
|
$metadata: deserializeMetadata(output)
|
|
@@ -1589,34 +1018,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1589
1018
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1590
1019
|
return contents;
|
|
1591
1020
|
}, "de_TagResourceCommand");
|
|
1592
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1593
|
-
const parsedOutput = {
|
|
1594
|
-
...output,
|
|
1595
|
-
body: await parseErrorBody(output.body, context)
|
|
1596
|
-
};
|
|
1597
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1598
|
-
switch (errorCode) {
|
|
1599
|
-
case "AccessDeniedException":
|
|
1600
|
-
case "com.amazonaws.cleanroomsml#AccessDeniedException":
|
|
1601
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1602
|
-
case "ResourceNotFoundException":
|
|
1603
|
-
case "com.amazonaws.cleanroomsml#ResourceNotFoundException":
|
|
1604
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1605
|
-
case "ValidationException":
|
|
1606
|
-
case "com.amazonaws.cleanroomsml#ValidationException":
|
|
1607
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1608
|
-
default:
|
|
1609
|
-
const parsedBody = parsedOutput.body;
|
|
1610
|
-
return throwDefaultError({
|
|
1611
|
-
output,
|
|
1612
|
-
parsedBody,
|
|
1613
|
-
errorCode
|
|
1614
|
-
});
|
|
1615
|
-
}
|
|
1616
|
-
}, "de_TagResourceCommandError");
|
|
1617
1021
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1618
1022
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1619
|
-
return
|
|
1023
|
+
return de_CommandError(output, context);
|
|
1620
1024
|
}
|
|
1621
1025
|
const contents = (0, import_smithy_client.map)({
|
|
1622
1026
|
$metadata: deserializeMetadata(output)
|
|
@@ -1624,34 +1028,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1624
1028
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1625
1029
|
return contents;
|
|
1626
1030
|
}, "de_UntagResourceCommand");
|
|
1627
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1628
|
-
const parsedOutput = {
|
|
1629
|
-
...output,
|
|
1630
|
-
body: await parseErrorBody(output.body, context)
|
|
1631
|
-
};
|
|
1632
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1633
|
-
switch (errorCode) {
|
|
1634
|
-
case "AccessDeniedException":
|
|
1635
|
-
case "com.amazonaws.cleanroomsml#AccessDeniedException":
|
|
1636
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1637
|
-
case "ResourceNotFoundException":
|
|
1638
|
-
case "com.amazonaws.cleanroomsml#ResourceNotFoundException":
|
|
1639
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1640
|
-
case "ValidationException":
|
|
1641
|
-
case "com.amazonaws.cleanroomsml#ValidationException":
|
|
1642
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1643
|
-
default:
|
|
1644
|
-
const parsedBody = parsedOutput.body;
|
|
1645
|
-
return throwDefaultError({
|
|
1646
|
-
output,
|
|
1647
|
-
parsedBody,
|
|
1648
|
-
errorCode
|
|
1649
|
-
});
|
|
1650
|
-
}
|
|
1651
|
-
}, "de_UntagResourceCommandError");
|
|
1652
1031
|
var de_UpdateConfiguredAudienceModelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1653
1032
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1654
|
-
return
|
|
1033
|
+
return de_CommandError(output, context);
|
|
1655
1034
|
}
|
|
1656
1035
|
const contents = (0, import_smithy_client.map)({
|
|
1657
1036
|
$metadata: deserializeMetadata(output)
|
|
@@ -1663,7 +1042,7 @@ var de_UpdateConfiguredAudienceModelCommand = /* @__PURE__ */ __name(async (outp
|
|
|
1663
1042
|
Object.assign(contents, doc);
|
|
1664
1043
|
return contents;
|
|
1665
1044
|
}, "de_UpdateConfiguredAudienceModelCommand");
|
|
1666
|
-
var
|
|
1045
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1667
1046
|
const parsedOutput = {
|
|
1668
1047
|
...output,
|
|
1669
1048
|
body: await parseErrorBody(output.body, context)
|
|
@@ -1679,6 +1058,9 @@ var de_UpdateConfiguredAudienceModelCommandError = /* @__PURE__ */ __name(async
|
|
|
1679
1058
|
case "ResourceNotFoundException":
|
|
1680
1059
|
case "com.amazonaws.cleanroomsml#ResourceNotFoundException":
|
|
1681
1060
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1061
|
+
case "ServiceQuotaExceededException":
|
|
1062
|
+
case "com.amazonaws.cleanroomsml#ServiceQuotaExceededException":
|
|
1063
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1682
1064
|
case "ValidationException":
|
|
1683
1065
|
case "com.amazonaws.cleanroomsml#ValidationException":
|
|
1684
1066
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
@@ -1690,7 +1072,7 @@ var de_UpdateConfiguredAudienceModelCommandError = /* @__PURE__ */ __name(async
|
|
|
1690
1072
|
errorCode
|
|
1691
1073
|
});
|
|
1692
1074
|
}
|
|
1693
|
-
}, "
|
|
1075
|
+
}, "de_CommandError");
|
|
1694
1076
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(CleanRoomsMLServiceException);
|
|
1695
1077
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1696
1078
|
const contents = (0, import_smithy_client.map)({});
|