@aws-sdk/client-bedrock 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 +31 -611
- package/dist-es/protocols/Aws_restJson1.js +30 -610
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -685,7 +685,7 @@ var se_UpdateProvisionedModelThroughputCommand = /* @__PURE__ */ __name(async (i
|
|
|
685
685
|
}, "se_UpdateProvisionedModelThroughputCommand");
|
|
686
686
|
var de_CreateModelCustomizationJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
687
687
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
688
|
-
return
|
|
688
|
+
return de_CommandError(output, context);
|
|
689
689
|
}
|
|
690
690
|
const contents = (0, import_smithy_client.map)({
|
|
691
691
|
$metadata: deserializeMetadata(output)
|
|
@@ -697,49 +697,9 @@ var de_CreateModelCustomizationJobCommand = /* @__PURE__ */ __name(async (output
|
|
|
697
697
|
Object.assign(contents, doc);
|
|
698
698
|
return contents;
|
|
699
699
|
}, "de_CreateModelCustomizationJobCommand");
|
|
700
|
-
var de_CreateModelCustomizationJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
701
|
-
const parsedOutput = {
|
|
702
|
-
...output,
|
|
703
|
-
body: await parseErrorBody(output.body, context)
|
|
704
|
-
};
|
|
705
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
706
|
-
switch (errorCode) {
|
|
707
|
-
case "AccessDeniedException":
|
|
708
|
-
case "com.amazonaws.bedrock#AccessDeniedException":
|
|
709
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
710
|
-
case "ConflictException":
|
|
711
|
-
case "com.amazonaws.bedrock#ConflictException":
|
|
712
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
713
|
-
case "InternalServerException":
|
|
714
|
-
case "com.amazonaws.bedrock#InternalServerException":
|
|
715
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
716
|
-
case "ResourceNotFoundException":
|
|
717
|
-
case "com.amazonaws.bedrock#ResourceNotFoundException":
|
|
718
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
719
|
-
case "ServiceQuotaExceededException":
|
|
720
|
-
case "com.amazonaws.bedrock#ServiceQuotaExceededException":
|
|
721
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
722
|
-
case "ThrottlingException":
|
|
723
|
-
case "com.amazonaws.bedrock#ThrottlingException":
|
|
724
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
725
|
-
case "TooManyTagsException":
|
|
726
|
-
case "com.amazonaws.bedrock#TooManyTagsException":
|
|
727
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
728
|
-
case "ValidationException":
|
|
729
|
-
case "com.amazonaws.bedrock#ValidationException":
|
|
730
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
731
|
-
default:
|
|
732
|
-
const parsedBody = parsedOutput.body;
|
|
733
|
-
return throwDefaultError({
|
|
734
|
-
output,
|
|
735
|
-
parsedBody,
|
|
736
|
-
errorCode
|
|
737
|
-
});
|
|
738
|
-
}
|
|
739
|
-
}, "de_CreateModelCustomizationJobCommandError");
|
|
740
700
|
var de_CreateProvisionedModelThroughputCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
741
701
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
742
|
-
return
|
|
702
|
+
return de_CommandError(output, context);
|
|
743
703
|
}
|
|
744
704
|
const contents = (0, import_smithy_client.map)({
|
|
745
705
|
$metadata: deserializeMetadata(output)
|
|
@@ -751,46 +711,9 @@ var de_CreateProvisionedModelThroughputCommand = /* @__PURE__ */ __name(async (o
|
|
|
751
711
|
Object.assign(contents, doc);
|
|
752
712
|
return contents;
|
|
753
713
|
}, "de_CreateProvisionedModelThroughputCommand");
|
|
754
|
-
var de_CreateProvisionedModelThroughputCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
755
|
-
const parsedOutput = {
|
|
756
|
-
...output,
|
|
757
|
-
body: await parseErrorBody(output.body, context)
|
|
758
|
-
};
|
|
759
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
760
|
-
switch (errorCode) {
|
|
761
|
-
case "AccessDeniedException":
|
|
762
|
-
case "com.amazonaws.bedrock#AccessDeniedException":
|
|
763
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
764
|
-
case "InternalServerException":
|
|
765
|
-
case "com.amazonaws.bedrock#InternalServerException":
|
|
766
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
767
|
-
case "ResourceNotFoundException":
|
|
768
|
-
case "com.amazonaws.bedrock#ResourceNotFoundException":
|
|
769
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
770
|
-
case "ServiceQuotaExceededException":
|
|
771
|
-
case "com.amazonaws.bedrock#ServiceQuotaExceededException":
|
|
772
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
773
|
-
case "ThrottlingException":
|
|
774
|
-
case "com.amazonaws.bedrock#ThrottlingException":
|
|
775
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
776
|
-
case "TooManyTagsException":
|
|
777
|
-
case "com.amazonaws.bedrock#TooManyTagsException":
|
|
778
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
779
|
-
case "ValidationException":
|
|
780
|
-
case "com.amazonaws.bedrock#ValidationException":
|
|
781
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
782
|
-
default:
|
|
783
|
-
const parsedBody = parsedOutput.body;
|
|
784
|
-
return throwDefaultError({
|
|
785
|
-
output,
|
|
786
|
-
parsedBody,
|
|
787
|
-
errorCode
|
|
788
|
-
});
|
|
789
|
-
}
|
|
790
|
-
}, "de_CreateProvisionedModelThroughputCommandError");
|
|
791
714
|
var de_DeleteCustomModelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
792
715
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
793
|
-
return
|
|
716
|
+
return de_CommandError(output, context);
|
|
794
717
|
}
|
|
795
718
|
const contents = (0, import_smithy_client.map)({
|
|
796
719
|
$metadata: deserializeMetadata(output)
|
|
@@ -798,43 +721,9 @@ var de_DeleteCustomModelCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
798
721
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
799
722
|
return contents;
|
|
800
723
|
}, "de_DeleteCustomModelCommand");
|
|
801
|
-
var de_DeleteCustomModelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
802
|
-
const parsedOutput = {
|
|
803
|
-
...output,
|
|
804
|
-
body: await parseErrorBody(output.body, context)
|
|
805
|
-
};
|
|
806
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
807
|
-
switch (errorCode) {
|
|
808
|
-
case "AccessDeniedException":
|
|
809
|
-
case "com.amazonaws.bedrock#AccessDeniedException":
|
|
810
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
811
|
-
case "ConflictException":
|
|
812
|
-
case "com.amazonaws.bedrock#ConflictException":
|
|
813
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
814
|
-
case "InternalServerException":
|
|
815
|
-
case "com.amazonaws.bedrock#InternalServerException":
|
|
816
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
817
|
-
case "ResourceNotFoundException":
|
|
818
|
-
case "com.amazonaws.bedrock#ResourceNotFoundException":
|
|
819
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
820
|
-
case "ThrottlingException":
|
|
821
|
-
case "com.amazonaws.bedrock#ThrottlingException":
|
|
822
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
823
|
-
case "ValidationException":
|
|
824
|
-
case "com.amazonaws.bedrock#ValidationException":
|
|
825
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
826
|
-
default:
|
|
827
|
-
const parsedBody = parsedOutput.body;
|
|
828
|
-
return throwDefaultError({
|
|
829
|
-
output,
|
|
830
|
-
parsedBody,
|
|
831
|
-
errorCode
|
|
832
|
-
});
|
|
833
|
-
}
|
|
834
|
-
}, "de_DeleteCustomModelCommandError");
|
|
835
724
|
var de_DeleteModelInvocationLoggingConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
836
725
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
837
|
-
return
|
|
726
|
+
return de_CommandError(output, context);
|
|
838
727
|
}
|
|
839
728
|
const contents = (0, import_smithy_client.map)({
|
|
840
729
|
$metadata: deserializeMetadata(output)
|
|
@@ -842,34 +731,9 @@ var de_DeleteModelInvocationLoggingConfigurationCommand = /* @__PURE__ */ __name
|
|
|
842
731
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
843
732
|
return contents;
|
|
844
733
|
}, "de_DeleteModelInvocationLoggingConfigurationCommand");
|
|
845
|
-
var de_DeleteModelInvocationLoggingConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
846
|
-
const parsedOutput = {
|
|
847
|
-
...output,
|
|
848
|
-
body: await parseErrorBody(output.body, context)
|
|
849
|
-
};
|
|
850
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
851
|
-
switch (errorCode) {
|
|
852
|
-
case "AccessDeniedException":
|
|
853
|
-
case "com.amazonaws.bedrock#AccessDeniedException":
|
|
854
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
855
|
-
case "InternalServerException":
|
|
856
|
-
case "com.amazonaws.bedrock#InternalServerException":
|
|
857
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
858
|
-
case "ThrottlingException":
|
|
859
|
-
case "com.amazonaws.bedrock#ThrottlingException":
|
|
860
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
861
|
-
default:
|
|
862
|
-
const parsedBody = parsedOutput.body;
|
|
863
|
-
return throwDefaultError({
|
|
864
|
-
output,
|
|
865
|
-
parsedBody,
|
|
866
|
-
errorCode
|
|
867
|
-
});
|
|
868
|
-
}
|
|
869
|
-
}, "de_DeleteModelInvocationLoggingConfigurationCommandError");
|
|
870
734
|
var de_DeleteProvisionedModelThroughputCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
871
735
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
872
|
-
return
|
|
736
|
+
return de_CommandError(output, context);
|
|
873
737
|
}
|
|
874
738
|
const contents = (0, import_smithy_client.map)({
|
|
875
739
|
$metadata: deserializeMetadata(output)
|
|
@@ -877,43 +741,9 @@ var de_DeleteProvisionedModelThroughputCommand = /* @__PURE__ */ __name(async (o
|
|
|
877
741
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
878
742
|
return contents;
|
|
879
743
|
}, "de_DeleteProvisionedModelThroughputCommand");
|
|
880
|
-
var de_DeleteProvisionedModelThroughputCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
881
|
-
const parsedOutput = {
|
|
882
|
-
...output,
|
|
883
|
-
body: await parseErrorBody(output.body, context)
|
|
884
|
-
};
|
|
885
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
886
|
-
switch (errorCode) {
|
|
887
|
-
case "AccessDeniedException":
|
|
888
|
-
case "com.amazonaws.bedrock#AccessDeniedException":
|
|
889
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
890
|
-
case "ConflictException":
|
|
891
|
-
case "com.amazonaws.bedrock#ConflictException":
|
|
892
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
893
|
-
case "InternalServerException":
|
|
894
|
-
case "com.amazonaws.bedrock#InternalServerException":
|
|
895
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
896
|
-
case "ResourceNotFoundException":
|
|
897
|
-
case "com.amazonaws.bedrock#ResourceNotFoundException":
|
|
898
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
899
|
-
case "ThrottlingException":
|
|
900
|
-
case "com.amazonaws.bedrock#ThrottlingException":
|
|
901
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
902
|
-
case "ValidationException":
|
|
903
|
-
case "com.amazonaws.bedrock#ValidationException":
|
|
904
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
905
|
-
default:
|
|
906
|
-
const parsedBody = parsedOutput.body;
|
|
907
|
-
return throwDefaultError({
|
|
908
|
-
output,
|
|
909
|
-
parsedBody,
|
|
910
|
-
errorCode
|
|
911
|
-
});
|
|
912
|
-
}
|
|
913
|
-
}, "de_DeleteProvisionedModelThroughputCommandError");
|
|
914
744
|
var de_GetCustomModelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
915
745
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
916
|
-
return
|
|
746
|
+
return de_CommandError(output, context);
|
|
917
747
|
}
|
|
918
748
|
const contents = (0, import_smithy_client.map)({
|
|
919
749
|
$metadata: deserializeMetadata(output)
|
|
@@ -938,40 +768,9 @@ var de_GetCustomModelCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
938
768
|
Object.assign(contents, doc);
|
|
939
769
|
return contents;
|
|
940
770
|
}, "de_GetCustomModelCommand");
|
|
941
|
-
var de_GetCustomModelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
942
|
-
const parsedOutput = {
|
|
943
|
-
...output,
|
|
944
|
-
body: await parseErrorBody(output.body, context)
|
|
945
|
-
};
|
|
946
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
947
|
-
switch (errorCode) {
|
|
948
|
-
case "AccessDeniedException":
|
|
949
|
-
case "com.amazonaws.bedrock#AccessDeniedException":
|
|
950
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
951
|
-
case "InternalServerException":
|
|
952
|
-
case "com.amazonaws.bedrock#InternalServerException":
|
|
953
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
954
|
-
case "ResourceNotFoundException":
|
|
955
|
-
case "com.amazonaws.bedrock#ResourceNotFoundException":
|
|
956
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
957
|
-
case "ThrottlingException":
|
|
958
|
-
case "com.amazonaws.bedrock#ThrottlingException":
|
|
959
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
960
|
-
case "ValidationException":
|
|
961
|
-
case "com.amazonaws.bedrock#ValidationException":
|
|
962
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
963
|
-
default:
|
|
964
|
-
const parsedBody = parsedOutput.body;
|
|
965
|
-
return throwDefaultError({
|
|
966
|
-
output,
|
|
967
|
-
parsedBody,
|
|
968
|
-
errorCode
|
|
969
|
-
});
|
|
970
|
-
}
|
|
971
|
-
}, "de_GetCustomModelCommandError");
|
|
972
771
|
var de_GetFoundationModelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
973
772
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
974
|
-
return
|
|
773
|
+
return de_CommandError(output, context);
|
|
975
774
|
}
|
|
976
775
|
const contents = (0, import_smithy_client.map)({
|
|
977
776
|
$metadata: deserializeMetadata(output)
|
|
@@ -983,40 +782,9 @@ var de_GetFoundationModelCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
983
782
|
Object.assign(contents, doc);
|
|
984
783
|
return contents;
|
|
985
784
|
}, "de_GetFoundationModelCommand");
|
|
986
|
-
var de_GetFoundationModelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
987
|
-
const parsedOutput = {
|
|
988
|
-
...output,
|
|
989
|
-
body: await parseErrorBody(output.body, context)
|
|
990
|
-
};
|
|
991
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
992
|
-
switch (errorCode) {
|
|
993
|
-
case "AccessDeniedException":
|
|
994
|
-
case "com.amazonaws.bedrock#AccessDeniedException":
|
|
995
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
996
|
-
case "InternalServerException":
|
|
997
|
-
case "com.amazonaws.bedrock#InternalServerException":
|
|
998
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
999
|
-
case "ResourceNotFoundException":
|
|
1000
|
-
case "com.amazonaws.bedrock#ResourceNotFoundException":
|
|
1001
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1002
|
-
case "ThrottlingException":
|
|
1003
|
-
case "com.amazonaws.bedrock#ThrottlingException":
|
|
1004
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1005
|
-
case "ValidationException":
|
|
1006
|
-
case "com.amazonaws.bedrock#ValidationException":
|
|
1007
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1008
|
-
default:
|
|
1009
|
-
const parsedBody = parsedOutput.body;
|
|
1010
|
-
return throwDefaultError({
|
|
1011
|
-
output,
|
|
1012
|
-
parsedBody,
|
|
1013
|
-
errorCode
|
|
1014
|
-
});
|
|
1015
|
-
}
|
|
1016
|
-
}, "de_GetFoundationModelCommandError");
|
|
1017
785
|
var de_GetModelCustomizationJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1018
786
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1019
|
-
return
|
|
787
|
+
return de_CommandError(output, context);
|
|
1020
788
|
}
|
|
1021
789
|
const contents = (0, import_smithy_client.map)({
|
|
1022
790
|
$metadata: deserializeMetadata(output)
|
|
@@ -1048,40 +816,9 @@ var de_GetModelCustomizationJobCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1048
816
|
Object.assign(contents, doc);
|
|
1049
817
|
return contents;
|
|
1050
818
|
}, "de_GetModelCustomizationJobCommand");
|
|
1051
|
-
var de_GetModelCustomizationJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1052
|
-
const parsedOutput = {
|
|
1053
|
-
...output,
|
|
1054
|
-
body: await parseErrorBody(output.body, context)
|
|
1055
|
-
};
|
|
1056
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1057
|
-
switch (errorCode) {
|
|
1058
|
-
case "AccessDeniedException":
|
|
1059
|
-
case "com.amazonaws.bedrock#AccessDeniedException":
|
|
1060
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1061
|
-
case "InternalServerException":
|
|
1062
|
-
case "com.amazonaws.bedrock#InternalServerException":
|
|
1063
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1064
|
-
case "ResourceNotFoundException":
|
|
1065
|
-
case "com.amazonaws.bedrock#ResourceNotFoundException":
|
|
1066
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1067
|
-
case "ThrottlingException":
|
|
1068
|
-
case "com.amazonaws.bedrock#ThrottlingException":
|
|
1069
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1070
|
-
case "ValidationException":
|
|
1071
|
-
case "com.amazonaws.bedrock#ValidationException":
|
|
1072
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1073
|
-
default:
|
|
1074
|
-
const parsedBody = parsedOutput.body;
|
|
1075
|
-
return throwDefaultError({
|
|
1076
|
-
output,
|
|
1077
|
-
parsedBody,
|
|
1078
|
-
errorCode
|
|
1079
|
-
});
|
|
1080
|
-
}
|
|
1081
|
-
}, "de_GetModelCustomizationJobCommandError");
|
|
1082
819
|
var de_GetModelInvocationLoggingConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1083
820
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1084
|
-
return
|
|
821
|
+
return de_CommandError(output, context);
|
|
1085
822
|
}
|
|
1086
823
|
const contents = (0, import_smithy_client.map)({
|
|
1087
824
|
$metadata: deserializeMetadata(output)
|
|
@@ -1093,34 +830,9 @@ var de_GetModelInvocationLoggingConfigurationCommand = /* @__PURE__ */ __name(as
|
|
|
1093
830
|
Object.assign(contents, doc);
|
|
1094
831
|
return contents;
|
|
1095
832
|
}, "de_GetModelInvocationLoggingConfigurationCommand");
|
|
1096
|
-
var de_GetModelInvocationLoggingConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1097
|
-
const parsedOutput = {
|
|
1098
|
-
...output,
|
|
1099
|
-
body: await parseErrorBody(output.body, context)
|
|
1100
|
-
};
|
|
1101
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1102
|
-
switch (errorCode) {
|
|
1103
|
-
case "AccessDeniedException":
|
|
1104
|
-
case "com.amazonaws.bedrock#AccessDeniedException":
|
|
1105
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1106
|
-
case "InternalServerException":
|
|
1107
|
-
case "com.amazonaws.bedrock#InternalServerException":
|
|
1108
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1109
|
-
case "ThrottlingException":
|
|
1110
|
-
case "com.amazonaws.bedrock#ThrottlingException":
|
|
1111
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1112
|
-
default:
|
|
1113
|
-
const parsedBody = parsedOutput.body;
|
|
1114
|
-
return throwDefaultError({
|
|
1115
|
-
output,
|
|
1116
|
-
parsedBody,
|
|
1117
|
-
errorCode
|
|
1118
|
-
});
|
|
1119
|
-
}
|
|
1120
|
-
}, "de_GetModelInvocationLoggingConfigurationCommandError");
|
|
1121
833
|
var de_GetProvisionedModelThroughputCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1122
834
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1123
|
-
return
|
|
835
|
+
return de_CommandError(output, context);
|
|
1124
836
|
}
|
|
1125
837
|
const contents = (0, import_smithy_client.map)({
|
|
1126
838
|
$metadata: deserializeMetadata(output)
|
|
@@ -1144,40 +856,9 @@ var de_GetProvisionedModelThroughputCommand = /* @__PURE__ */ __name(async (outp
|
|
|
1144
856
|
Object.assign(contents, doc);
|
|
1145
857
|
return contents;
|
|
1146
858
|
}, "de_GetProvisionedModelThroughputCommand");
|
|
1147
|
-
var de_GetProvisionedModelThroughputCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1148
|
-
const parsedOutput = {
|
|
1149
|
-
...output,
|
|
1150
|
-
body: await parseErrorBody(output.body, context)
|
|
1151
|
-
};
|
|
1152
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1153
|
-
switch (errorCode) {
|
|
1154
|
-
case "AccessDeniedException":
|
|
1155
|
-
case "com.amazonaws.bedrock#AccessDeniedException":
|
|
1156
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1157
|
-
case "InternalServerException":
|
|
1158
|
-
case "com.amazonaws.bedrock#InternalServerException":
|
|
1159
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1160
|
-
case "ResourceNotFoundException":
|
|
1161
|
-
case "com.amazonaws.bedrock#ResourceNotFoundException":
|
|
1162
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1163
|
-
case "ThrottlingException":
|
|
1164
|
-
case "com.amazonaws.bedrock#ThrottlingException":
|
|
1165
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1166
|
-
case "ValidationException":
|
|
1167
|
-
case "com.amazonaws.bedrock#ValidationException":
|
|
1168
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1169
|
-
default:
|
|
1170
|
-
const parsedBody = parsedOutput.body;
|
|
1171
|
-
return throwDefaultError({
|
|
1172
|
-
output,
|
|
1173
|
-
parsedBody,
|
|
1174
|
-
errorCode
|
|
1175
|
-
});
|
|
1176
|
-
}
|
|
1177
|
-
}, "de_GetProvisionedModelThroughputCommandError");
|
|
1178
859
|
var de_ListCustomModelsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1179
860
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1180
|
-
return
|
|
861
|
+
return de_CommandError(output, context);
|
|
1181
862
|
}
|
|
1182
863
|
const contents = (0, import_smithy_client.map)({
|
|
1183
864
|
$metadata: deserializeMetadata(output)
|
|
@@ -1190,37 +871,9 @@ var de_ListCustomModelsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1190
871
|
Object.assign(contents, doc);
|
|
1191
872
|
return contents;
|
|
1192
873
|
}, "de_ListCustomModelsCommand");
|
|
1193
|
-
var de_ListCustomModelsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1194
|
-
const parsedOutput = {
|
|
1195
|
-
...output,
|
|
1196
|
-
body: await parseErrorBody(output.body, context)
|
|
1197
|
-
};
|
|
1198
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1199
|
-
switch (errorCode) {
|
|
1200
|
-
case "AccessDeniedException":
|
|
1201
|
-
case "com.amazonaws.bedrock#AccessDeniedException":
|
|
1202
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1203
|
-
case "InternalServerException":
|
|
1204
|
-
case "com.amazonaws.bedrock#InternalServerException":
|
|
1205
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1206
|
-
case "ThrottlingException":
|
|
1207
|
-
case "com.amazonaws.bedrock#ThrottlingException":
|
|
1208
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1209
|
-
case "ValidationException":
|
|
1210
|
-
case "com.amazonaws.bedrock#ValidationException":
|
|
1211
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1212
|
-
default:
|
|
1213
|
-
const parsedBody = parsedOutput.body;
|
|
1214
|
-
return throwDefaultError({
|
|
1215
|
-
output,
|
|
1216
|
-
parsedBody,
|
|
1217
|
-
errorCode
|
|
1218
|
-
});
|
|
1219
|
-
}
|
|
1220
|
-
}, "de_ListCustomModelsCommandError");
|
|
1221
874
|
var de_ListFoundationModelsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1222
875
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1223
|
-
return
|
|
876
|
+
return de_CommandError(output, context);
|
|
1224
877
|
}
|
|
1225
878
|
const contents = (0, import_smithy_client.map)({
|
|
1226
879
|
$metadata: deserializeMetadata(output)
|
|
@@ -1232,37 +885,9 @@ var de_ListFoundationModelsCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1232
885
|
Object.assign(contents, doc);
|
|
1233
886
|
return contents;
|
|
1234
887
|
}, "de_ListFoundationModelsCommand");
|
|
1235
|
-
var de_ListFoundationModelsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1236
|
-
const parsedOutput = {
|
|
1237
|
-
...output,
|
|
1238
|
-
body: await parseErrorBody(output.body, context)
|
|
1239
|
-
};
|
|
1240
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1241
|
-
switch (errorCode) {
|
|
1242
|
-
case "AccessDeniedException":
|
|
1243
|
-
case "com.amazonaws.bedrock#AccessDeniedException":
|
|
1244
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1245
|
-
case "InternalServerException":
|
|
1246
|
-
case "com.amazonaws.bedrock#InternalServerException":
|
|
1247
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1248
|
-
case "ThrottlingException":
|
|
1249
|
-
case "com.amazonaws.bedrock#ThrottlingException":
|
|
1250
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1251
|
-
case "ValidationException":
|
|
1252
|
-
case "com.amazonaws.bedrock#ValidationException":
|
|
1253
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1254
|
-
default:
|
|
1255
|
-
const parsedBody = parsedOutput.body;
|
|
1256
|
-
return throwDefaultError({
|
|
1257
|
-
output,
|
|
1258
|
-
parsedBody,
|
|
1259
|
-
errorCode
|
|
1260
|
-
});
|
|
1261
|
-
}
|
|
1262
|
-
}, "de_ListFoundationModelsCommandError");
|
|
1263
888
|
var de_ListModelCustomizationJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1264
889
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1265
|
-
return
|
|
890
|
+
return de_CommandError(output, context);
|
|
1266
891
|
}
|
|
1267
892
|
const contents = (0, import_smithy_client.map)({
|
|
1268
893
|
$metadata: deserializeMetadata(output)
|
|
@@ -1275,37 +900,9 @@ var de_ListModelCustomizationJobsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1275
900
|
Object.assign(contents, doc);
|
|
1276
901
|
return contents;
|
|
1277
902
|
}, "de_ListModelCustomizationJobsCommand");
|
|
1278
|
-
var de_ListModelCustomizationJobsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1279
|
-
const parsedOutput = {
|
|
1280
|
-
...output,
|
|
1281
|
-
body: await parseErrorBody(output.body, context)
|
|
1282
|
-
};
|
|
1283
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1284
|
-
switch (errorCode) {
|
|
1285
|
-
case "AccessDeniedException":
|
|
1286
|
-
case "com.amazonaws.bedrock#AccessDeniedException":
|
|
1287
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1288
|
-
case "InternalServerException":
|
|
1289
|
-
case "com.amazonaws.bedrock#InternalServerException":
|
|
1290
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1291
|
-
case "ThrottlingException":
|
|
1292
|
-
case "com.amazonaws.bedrock#ThrottlingException":
|
|
1293
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1294
|
-
case "ValidationException":
|
|
1295
|
-
case "com.amazonaws.bedrock#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_ListModelCustomizationJobsCommandError");
|
|
1306
903
|
var de_ListProvisionedModelThroughputsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1307
904
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1308
|
-
return
|
|
905
|
+
return de_CommandError(output, context);
|
|
1309
906
|
}
|
|
1310
907
|
const contents = (0, import_smithy_client.map)({
|
|
1311
908
|
$metadata: deserializeMetadata(output)
|
|
@@ -1318,37 +915,9 @@ var de_ListProvisionedModelThroughputsCommand = /* @__PURE__ */ __name(async (ou
|
|
|
1318
915
|
Object.assign(contents, doc);
|
|
1319
916
|
return contents;
|
|
1320
917
|
}, "de_ListProvisionedModelThroughputsCommand");
|
|
1321
|
-
var de_ListProvisionedModelThroughputsCommandError = /* @__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.bedrock#AccessDeniedException":
|
|
1330
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1331
|
-
case "InternalServerException":
|
|
1332
|
-
case "com.amazonaws.bedrock#InternalServerException":
|
|
1333
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1334
|
-
case "ThrottlingException":
|
|
1335
|
-
case "com.amazonaws.bedrock#ThrottlingException":
|
|
1336
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1337
|
-
case "ValidationException":
|
|
1338
|
-
case "com.amazonaws.bedrock#ValidationException":
|
|
1339
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1340
|
-
default:
|
|
1341
|
-
const parsedBody = parsedOutput.body;
|
|
1342
|
-
return throwDefaultError({
|
|
1343
|
-
output,
|
|
1344
|
-
parsedBody,
|
|
1345
|
-
errorCode
|
|
1346
|
-
});
|
|
1347
|
-
}
|
|
1348
|
-
}, "de_ListProvisionedModelThroughputsCommandError");
|
|
1349
918
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1350
919
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1351
|
-
return
|
|
920
|
+
return de_CommandError(output, context);
|
|
1352
921
|
}
|
|
1353
922
|
const contents = (0, import_smithy_client.map)({
|
|
1354
923
|
$metadata: deserializeMetadata(output)
|
|
@@ -1360,40 +929,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1360
929
|
Object.assign(contents, doc);
|
|
1361
930
|
return contents;
|
|
1362
931
|
}, "de_ListTagsForResourceCommand");
|
|
1363
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1364
|
-
const parsedOutput = {
|
|
1365
|
-
...output,
|
|
1366
|
-
body: await parseErrorBody(output.body, context)
|
|
1367
|
-
};
|
|
1368
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1369
|
-
switch (errorCode) {
|
|
1370
|
-
case "AccessDeniedException":
|
|
1371
|
-
case "com.amazonaws.bedrock#AccessDeniedException":
|
|
1372
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1373
|
-
case "InternalServerException":
|
|
1374
|
-
case "com.amazonaws.bedrock#InternalServerException":
|
|
1375
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1376
|
-
case "ResourceNotFoundException":
|
|
1377
|
-
case "com.amazonaws.bedrock#ResourceNotFoundException":
|
|
1378
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1379
|
-
case "ThrottlingException":
|
|
1380
|
-
case "com.amazonaws.bedrock#ThrottlingException":
|
|
1381
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1382
|
-
case "ValidationException":
|
|
1383
|
-
case "com.amazonaws.bedrock#ValidationException":
|
|
1384
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1385
|
-
default:
|
|
1386
|
-
const parsedBody = parsedOutput.body;
|
|
1387
|
-
return throwDefaultError({
|
|
1388
|
-
output,
|
|
1389
|
-
parsedBody,
|
|
1390
|
-
errorCode
|
|
1391
|
-
});
|
|
1392
|
-
}
|
|
1393
|
-
}, "de_ListTagsForResourceCommandError");
|
|
1394
932
|
var de_PutModelInvocationLoggingConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1395
933
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1396
|
-
return
|
|
934
|
+
return de_CommandError(output, context);
|
|
1397
935
|
}
|
|
1398
936
|
const contents = (0, import_smithy_client.map)({
|
|
1399
937
|
$metadata: deserializeMetadata(output)
|
|
@@ -1401,37 +939,9 @@ var de_PutModelInvocationLoggingConfigurationCommand = /* @__PURE__ */ __name(as
|
|
|
1401
939
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1402
940
|
return contents;
|
|
1403
941
|
}, "de_PutModelInvocationLoggingConfigurationCommand");
|
|
1404
|
-
var de_PutModelInvocationLoggingConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1405
|
-
const parsedOutput = {
|
|
1406
|
-
...output,
|
|
1407
|
-
body: await parseErrorBody(output.body, context)
|
|
1408
|
-
};
|
|
1409
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1410
|
-
switch (errorCode) {
|
|
1411
|
-
case "AccessDeniedException":
|
|
1412
|
-
case "com.amazonaws.bedrock#AccessDeniedException":
|
|
1413
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1414
|
-
case "InternalServerException":
|
|
1415
|
-
case "com.amazonaws.bedrock#InternalServerException":
|
|
1416
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1417
|
-
case "ThrottlingException":
|
|
1418
|
-
case "com.amazonaws.bedrock#ThrottlingException":
|
|
1419
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1420
|
-
case "ValidationException":
|
|
1421
|
-
case "com.amazonaws.bedrock#ValidationException":
|
|
1422
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1423
|
-
default:
|
|
1424
|
-
const parsedBody = parsedOutput.body;
|
|
1425
|
-
return throwDefaultError({
|
|
1426
|
-
output,
|
|
1427
|
-
parsedBody,
|
|
1428
|
-
errorCode
|
|
1429
|
-
});
|
|
1430
|
-
}
|
|
1431
|
-
}, "de_PutModelInvocationLoggingConfigurationCommandError");
|
|
1432
942
|
var de_StopModelCustomizationJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1433
943
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1434
|
-
return
|
|
944
|
+
return de_CommandError(output, context);
|
|
1435
945
|
}
|
|
1436
946
|
const contents = (0, import_smithy_client.map)({
|
|
1437
947
|
$metadata: deserializeMetadata(output)
|
|
@@ -1439,43 +949,9 @@ var de_StopModelCustomizationJobCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1439
949
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1440
950
|
return contents;
|
|
1441
951
|
}, "de_StopModelCustomizationJobCommand");
|
|
1442
|
-
var de_StopModelCustomizationJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1443
|
-
const parsedOutput = {
|
|
1444
|
-
...output,
|
|
1445
|
-
body: await parseErrorBody(output.body, context)
|
|
1446
|
-
};
|
|
1447
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1448
|
-
switch (errorCode) {
|
|
1449
|
-
case "AccessDeniedException":
|
|
1450
|
-
case "com.amazonaws.bedrock#AccessDeniedException":
|
|
1451
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1452
|
-
case "ConflictException":
|
|
1453
|
-
case "com.amazonaws.bedrock#ConflictException":
|
|
1454
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1455
|
-
case "InternalServerException":
|
|
1456
|
-
case "com.amazonaws.bedrock#InternalServerException":
|
|
1457
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1458
|
-
case "ResourceNotFoundException":
|
|
1459
|
-
case "com.amazonaws.bedrock#ResourceNotFoundException":
|
|
1460
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1461
|
-
case "ThrottlingException":
|
|
1462
|
-
case "com.amazonaws.bedrock#ThrottlingException":
|
|
1463
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1464
|
-
case "ValidationException":
|
|
1465
|
-
case "com.amazonaws.bedrock#ValidationException":
|
|
1466
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1467
|
-
default:
|
|
1468
|
-
const parsedBody = parsedOutput.body;
|
|
1469
|
-
return throwDefaultError({
|
|
1470
|
-
output,
|
|
1471
|
-
parsedBody,
|
|
1472
|
-
errorCode
|
|
1473
|
-
});
|
|
1474
|
-
}
|
|
1475
|
-
}, "de_StopModelCustomizationJobCommandError");
|
|
1476
952
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1477
953
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1478
|
-
return
|
|
954
|
+
return de_CommandError(output, context);
|
|
1479
955
|
}
|
|
1480
956
|
const contents = (0, import_smithy_client.map)({
|
|
1481
957
|
$metadata: deserializeMetadata(output)
|
|
@@ -1483,43 +959,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1483
959
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1484
960
|
return contents;
|
|
1485
961
|
}, "de_TagResourceCommand");
|
|
1486
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1487
|
-
const parsedOutput = {
|
|
1488
|
-
...output,
|
|
1489
|
-
body: await parseErrorBody(output.body, context)
|
|
1490
|
-
};
|
|
1491
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1492
|
-
switch (errorCode) {
|
|
1493
|
-
case "AccessDeniedException":
|
|
1494
|
-
case "com.amazonaws.bedrock#AccessDeniedException":
|
|
1495
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1496
|
-
case "InternalServerException":
|
|
1497
|
-
case "com.amazonaws.bedrock#InternalServerException":
|
|
1498
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1499
|
-
case "ResourceNotFoundException":
|
|
1500
|
-
case "com.amazonaws.bedrock#ResourceNotFoundException":
|
|
1501
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1502
|
-
case "ThrottlingException":
|
|
1503
|
-
case "com.amazonaws.bedrock#ThrottlingException":
|
|
1504
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1505
|
-
case "TooManyTagsException":
|
|
1506
|
-
case "com.amazonaws.bedrock#TooManyTagsException":
|
|
1507
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1508
|
-
case "ValidationException":
|
|
1509
|
-
case "com.amazonaws.bedrock#ValidationException":
|
|
1510
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1511
|
-
default:
|
|
1512
|
-
const parsedBody = parsedOutput.body;
|
|
1513
|
-
return throwDefaultError({
|
|
1514
|
-
output,
|
|
1515
|
-
parsedBody,
|
|
1516
|
-
errorCode
|
|
1517
|
-
});
|
|
1518
|
-
}
|
|
1519
|
-
}, "de_TagResourceCommandError");
|
|
1520
962
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1521
963
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1522
|
-
return
|
|
964
|
+
return de_CommandError(output, context);
|
|
1523
965
|
}
|
|
1524
966
|
const contents = (0, import_smithy_client.map)({
|
|
1525
967
|
$metadata: deserializeMetadata(output)
|
|
@@ -1527,40 +969,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1527
969
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1528
970
|
return contents;
|
|
1529
971
|
}, "de_UntagResourceCommand");
|
|
1530
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1531
|
-
const parsedOutput = {
|
|
1532
|
-
...output,
|
|
1533
|
-
body: await parseErrorBody(output.body, context)
|
|
1534
|
-
};
|
|
1535
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1536
|
-
switch (errorCode) {
|
|
1537
|
-
case "AccessDeniedException":
|
|
1538
|
-
case "com.amazonaws.bedrock#AccessDeniedException":
|
|
1539
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1540
|
-
case "InternalServerException":
|
|
1541
|
-
case "com.amazonaws.bedrock#InternalServerException":
|
|
1542
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1543
|
-
case "ResourceNotFoundException":
|
|
1544
|
-
case "com.amazonaws.bedrock#ResourceNotFoundException":
|
|
1545
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1546
|
-
case "ThrottlingException":
|
|
1547
|
-
case "com.amazonaws.bedrock#ThrottlingException":
|
|
1548
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1549
|
-
case "ValidationException":
|
|
1550
|
-
case "com.amazonaws.bedrock#ValidationException":
|
|
1551
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1552
|
-
default:
|
|
1553
|
-
const parsedBody = parsedOutput.body;
|
|
1554
|
-
return throwDefaultError({
|
|
1555
|
-
output,
|
|
1556
|
-
parsedBody,
|
|
1557
|
-
errorCode
|
|
1558
|
-
});
|
|
1559
|
-
}
|
|
1560
|
-
}, "de_UntagResourceCommandError");
|
|
1561
972
|
var de_UpdateProvisionedModelThroughputCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1562
973
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1563
|
-
return
|
|
974
|
+
return de_CommandError(output, context);
|
|
1564
975
|
}
|
|
1565
976
|
const contents = (0, import_smithy_client.map)({
|
|
1566
977
|
$metadata: deserializeMetadata(output)
|
|
@@ -1568,7 +979,7 @@ var de_UpdateProvisionedModelThroughputCommand = /* @__PURE__ */ __name(async (o
|
|
|
1568
979
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1569
980
|
return contents;
|
|
1570
981
|
}, "de_UpdateProvisionedModelThroughputCommand");
|
|
1571
|
-
var
|
|
982
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1572
983
|
const parsedOutput = {
|
|
1573
984
|
...output,
|
|
1574
985
|
body: await parseErrorBody(output.body, context)
|
|
@@ -1578,15 +989,24 @@ var de_UpdateProvisionedModelThroughputCommandError = /* @__PURE__ */ __name(asy
|
|
|
1578
989
|
case "AccessDeniedException":
|
|
1579
990
|
case "com.amazonaws.bedrock#AccessDeniedException":
|
|
1580
991
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
992
|
+
case "ConflictException":
|
|
993
|
+
case "com.amazonaws.bedrock#ConflictException":
|
|
994
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1581
995
|
case "InternalServerException":
|
|
1582
996
|
case "com.amazonaws.bedrock#InternalServerException":
|
|
1583
997
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1584
998
|
case "ResourceNotFoundException":
|
|
1585
999
|
case "com.amazonaws.bedrock#ResourceNotFoundException":
|
|
1586
1000
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1001
|
+
case "ServiceQuotaExceededException":
|
|
1002
|
+
case "com.amazonaws.bedrock#ServiceQuotaExceededException":
|
|
1003
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1587
1004
|
case "ThrottlingException":
|
|
1588
1005
|
case "com.amazonaws.bedrock#ThrottlingException":
|
|
1589
1006
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1007
|
+
case "TooManyTagsException":
|
|
1008
|
+
case "com.amazonaws.bedrock#TooManyTagsException":
|
|
1009
|
+
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1590
1010
|
case "ValidationException":
|
|
1591
1011
|
case "com.amazonaws.bedrock#ValidationException":
|
|
1592
1012
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
@@ -1598,7 +1018,7 @@ var de_UpdateProvisionedModelThroughputCommandError = /* @__PURE__ */ __name(asy
|
|
|
1598
1018
|
errorCode
|
|
1599
1019
|
});
|
|
1600
1020
|
}
|
|
1601
|
-
}, "
|
|
1021
|
+
}, "de_CommandError");
|
|
1602
1022
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(BedrockServiceException);
|
|
1603
1023
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1604
1024
|
const contents = (0, import_smithy_client.map)({});
|