@effect-aws/client-bedrock 1.10.9 → 2.0.0-beta.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.
Files changed (37) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +3 -3
  3. package/dist/dts/BedrockClientInstance.d.ts +2 -2
  4. package/dist/dts/BedrockClientInstance.d.ts.map +1 -1
  5. package/dist/dts/BedrockService.d.ts +100 -102
  6. package/dist/dts/BedrockService.d.ts.map +1 -1
  7. package/dist/dts/BedrockServiceConfig.d.ts.map +1 -1
  8. package/dist/esm/BedrockClientInstance.js +3 -3
  9. package/dist/esm/BedrockClientInstance.js.map +1 -1
  10. package/dist/esm/BedrockService.js +2 -2
  11. package/dist/esm/BedrockService.js.map +1 -1
  12. package/dist/esm/BedrockServiceConfig.js +5 -6
  13. package/dist/esm/BedrockServiceConfig.js.map +1 -1
  14. package/package.json +8 -14
  15. package/src/BedrockClientInstance.ts +4 -4
  16. package/src/BedrockService.ts +101 -106
  17. package/src/BedrockServiceConfig.ts +6 -7
  18. package/dist/cjs/BedrockClientInstance.d.ts +0 -24
  19. package/dist/cjs/BedrockClientInstance.d.ts.map +0 -1
  20. package/dist/cjs/BedrockClientInstance.js +0 -50
  21. package/dist/cjs/BedrockClientInstance.js.map +0 -1
  22. package/dist/cjs/BedrockService.d.ts +0 -438
  23. package/dist/cjs/BedrockService.d.ts.map +0 -1
  24. package/dist/cjs/BedrockService.js +0 -157
  25. package/dist/cjs/BedrockService.js.map +0 -1
  26. package/dist/cjs/BedrockServiceConfig.d.ts +0 -25
  27. package/dist/cjs/BedrockServiceConfig.d.ts.map +0 -1
  28. package/dist/cjs/BedrockServiceConfig.js +0 -35
  29. package/dist/cjs/BedrockServiceConfig.js.map +0 -1
  30. package/dist/cjs/Errors.d.ts +0 -17
  31. package/dist/cjs/Errors.d.ts.map +0 -1
  32. package/dist/cjs/Errors.js +0 -16
  33. package/dist/cjs/Errors.js.map +0 -1
  34. package/dist/cjs/index.d.ts +0 -44
  35. package/dist/cjs/index.d.ts.map +0 -1
  36. package/dist/cjs/index.js +0 -56
  37. package/dist/cjs/index.js.map +0 -1
@@ -302,7 +302,7 @@ import {
302
302
  import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons";
303
303
  import { Service } from "@effect-aws/commons";
304
304
  import type { Cause } from "effect";
305
- import { Effect, Layer } from "effect";
305
+ import { Effect, Layer, ServiceMap } from "effect";
306
306
  import * as Instance from "./BedrockClientInstance.js";
307
307
  import * as BedrockServiceConfig from "./BedrockServiceConfig.js";
308
308
  import type {
@@ -432,7 +432,7 @@ interface BedrockService$ {
432
432
  options?: HttpHandlerOptions,
433
433
  ): Effect.Effect<
434
434
  BatchDeleteEvaluationJobCommandOutput,
435
- | Cause.TimeoutException
435
+ | Cause.TimeoutError
436
436
  | SdkError
437
437
  | AccessDeniedError
438
438
  | ConflictError
@@ -450,7 +450,7 @@ interface BedrockService$ {
450
450
  options?: HttpHandlerOptions,
451
451
  ): Effect.Effect<
452
452
  CancelAutomatedReasoningPolicyBuildWorkflowCommandOutput,
453
- | Cause.TimeoutException
453
+ | Cause.TimeoutError
454
454
  | SdkError
455
455
  | AccessDeniedError
456
456
  | InternalServerError
@@ -467,7 +467,7 @@ interface BedrockService$ {
467
467
  options?: HttpHandlerOptions,
468
468
  ): Effect.Effect<
469
469
  CreateAutomatedReasoningPolicyCommandOutput,
470
- | Cause.TimeoutException
470
+ | Cause.TimeoutError
471
471
  | SdkError
472
472
  | AccessDeniedError
473
473
  | ConflictError
@@ -487,7 +487,7 @@ interface BedrockService$ {
487
487
  options?: HttpHandlerOptions,
488
488
  ): Effect.Effect<
489
489
  CreateAutomatedReasoningPolicyTestCaseCommandOutput,
490
- | Cause.TimeoutException
490
+ | Cause.TimeoutError
491
491
  | SdkError
492
492
  | AccessDeniedError
493
493
  | ConflictError
@@ -506,7 +506,7 @@ interface BedrockService$ {
506
506
  options?: HttpHandlerOptions,
507
507
  ): Effect.Effect<
508
508
  CreateAutomatedReasoningPolicyVersionCommandOutput,
509
- | Cause.TimeoutException
509
+ | Cause.TimeoutError
510
510
  | SdkError
511
511
  | AccessDeniedError
512
512
  | ConflictError
@@ -526,7 +526,7 @@ interface BedrockService$ {
526
526
  options?: HttpHandlerOptions,
527
527
  ): Effect.Effect<
528
528
  CreateCustomModelCommandOutput,
529
- | Cause.TimeoutException
529
+ | Cause.TimeoutError
530
530
  | SdkError
531
531
  | AccessDeniedError
532
532
  | ConflictError
@@ -546,7 +546,7 @@ interface BedrockService$ {
546
546
  options?: HttpHandlerOptions,
547
547
  ): Effect.Effect<
548
548
  CreateCustomModelDeploymentCommandOutput,
549
- | Cause.TimeoutException
549
+ | Cause.TimeoutError
550
550
  | SdkError
551
551
  | AccessDeniedError
552
552
  | InternalServerError
@@ -565,7 +565,7 @@ interface BedrockService$ {
565
565
  options?: HttpHandlerOptions,
566
566
  ): Effect.Effect<
567
567
  CreateEvaluationJobCommandOutput,
568
- | Cause.TimeoutException
568
+ | Cause.TimeoutError
569
569
  | SdkError
570
570
  | AccessDeniedError
571
571
  | ConflictError
@@ -584,7 +584,7 @@ interface BedrockService$ {
584
584
  options?: HttpHandlerOptions,
585
585
  ): Effect.Effect<
586
586
  CreateFoundationModelAgreementCommandOutput,
587
- | Cause.TimeoutException
587
+ | Cause.TimeoutError
588
588
  | SdkError
589
589
  | AccessDeniedError
590
590
  | ConflictError
@@ -602,7 +602,7 @@ interface BedrockService$ {
602
602
  options?: HttpHandlerOptions,
603
603
  ): Effect.Effect<
604
604
  CreateGuardrailCommandOutput,
605
- | Cause.TimeoutException
605
+ | Cause.TimeoutError
606
606
  | SdkError
607
607
  | AccessDeniedError
608
608
  | ConflictError
@@ -622,7 +622,7 @@ interface BedrockService$ {
622
622
  options?: HttpHandlerOptions,
623
623
  ): Effect.Effect<
624
624
  CreateGuardrailVersionCommandOutput,
625
- | Cause.TimeoutException
625
+ | Cause.TimeoutError
626
626
  | SdkError
627
627
  | AccessDeniedError
628
628
  | ConflictError
@@ -641,7 +641,7 @@ interface BedrockService$ {
641
641
  options?: HttpHandlerOptions,
642
642
  ): Effect.Effect<
643
643
  CreateInferenceProfileCommandOutput,
644
- | Cause.TimeoutException
644
+ | Cause.TimeoutError
645
645
  | SdkError
646
646
  | AccessDeniedError
647
647
  | ConflictError
@@ -661,7 +661,7 @@ interface BedrockService$ {
661
661
  options?: HttpHandlerOptions,
662
662
  ): Effect.Effect<
663
663
  CreateMarketplaceModelEndpointCommandOutput,
664
- | Cause.TimeoutException
664
+ | Cause.TimeoutError
665
665
  | SdkError
666
666
  | AccessDeniedError
667
667
  | ConflictError
@@ -680,12 +680,7 @@ interface BedrockService$ {
680
680
  options?: HttpHandlerOptions,
681
681
  ): Effect.Effect<
682
682
  CreateModelCopyJobCommandOutput,
683
- | Cause.TimeoutException
684
- | SdkError
685
- | AccessDeniedError
686
- | InternalServerError
687
- | ResourceNotFoundError
688
- | TooManyTagsError
683
+ Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | ResourceNotFoundError | TooManyTagsError
689
684
  >;
690
685
 
691
686
  /**
@@ -696,7 +691,7 @@ interface BedrockService$ {
696
691
  options?: HttpHandlerOptions,
697
692
  ): Effect.Effect<
698
693
  CreateModelCustomizationJobCommandOutput,
699
- | Cause.TimeoutException
694
+ | Cause.TimeoutError
700
695
  | SdkError
701
696
  | AccessDeniedError
702
697
  | ConflictError
@@ -716,7 +711,7 @@ interface BedrockService$ {
716
711
  options?: HttpHandlerOptions,
717
712
  ): Effect.Effect<
718
713
  CreateModelImportJobCommandOutput,
719
- | Cause.TimeoutException
714
+ | Cause.TimeoutError
720
715
  | SdkError
721
716
  | AccessDeniedError
722
717
  | ConflictError
@@ -736,7 +731,7 @@ interface BedrockService$ {
736
731
  options?: HttpHandlerOptions,
737
732
  ): Effect.Effect<
738
733
  CreateModelInvocationJobCommandOutput,
739
- | Cause.TimeoutException
734
+ | Cause.TimeoutError
740
735
  | SdkError
741
736
  | AccessDeniedError
742
737
  | ConflictError
@@ -755,7 +750,7 @@ interface BedrockService$ {
755
750
  options?: HttpHandlerOptions,
756
751
  ): Effect.Effect<
757
752
  CreatePromptRouterCommandOutput,
758
- | Cause.TimeoutException
753
+ | Cause.TimeoutError
759
754
  | SdkError
760
755
  | AccessDeniedError
761
756
  | ConflictError
@@ -775,7 +770,7 @@ interface BedrockService$ {
775
770
  options?: HttpHandlerOptions,
776
771
  ): Effect.Effect<
777
772
  CreateProvisionedModelThroughputCommandOutput,
778
- | Cause.TimeoutException
773
+ | Cause.TimeoutError
779
774
  | SdkError
780
775
  | AccessDeniedError
781
776
  | InternalServerError
@@ -794,7 +789,7 @@ interface BedrockService$ {
794
789
  options?: HttpHandlerOptions,
795
790
  ): Effect.Effect<
796
791
  DeleteAutomatedReasoningPolicyCommandOutput,
797
- | Cause.TimeoutException
792
+ | Cause.TimeoutError
798
793
  | SdkError
799
794
  | AccessDeniedError
800
795
  | ConflictError
@@ -813,7 +808,7 @@ interface BedrockService$ {
813
808
  options?: HttpHandlerOptions,
814
809
  ): Effect.Effect<
815
810
  DeleteAutomatedReasoningPolicyBuildWorkflowCommandOutput,
816
- | Cause.TimeoutException
811
+ | Cause.TimeoutError
817
812
  | SdkError
818
813
  | AccessDeniedError
819
814
  | ConflictError
@@ -832,7 +827,7 @@ interface BedrockService$ {
832
827
  options?: HttpHandlerOptions,
833
828
  ): Effect.Effect<
834
829
  DeleteAutomatedReasoningPolicyTestCaseCommandOutput,
835
- | Cause.TimeoutException
830
+ | Cause.TimeoutError
836
831
  | SdkError
837
832
  | AccessDeniedError
838
833
  | ConflictError
@@ -851,7 +846,7 @@ interface BedrockService$ {
851
846
  options?: HttpHandlerOptions,
852
847
  ): Effect.Effect<
853
848
  DeleteCustomModelCommandOutput,
854
- | Cause.TimeoutException
849
+ | Cause.TimeoutError
855
850
  | SdkError
856
851
  | AccessDeniedError
857
852
  | ConflictError
@@ -869,7 +864,7 @@ interface BedrockService$ {
869
864
  options?: HttpHandlerOptions,
870
865
  ): Effect.Effect<
871
866
  DeleteCustomModelDeploymentCommandOutput,
872
- | Cause.TimeoutException
867
+ | Cause.TimeoutError
873
868
  | SdkError
874
869
  | AccessDeniedError
875
870
  | ConflictError
@@ -887,7 +882,7 @@ interface BedrockService$ {
887
882
  options?: HttpHandlerOptions,
888
883
  ): Effect.Effect<
889
884
  DeleteEnforcedGuardrailConfigurationCommandOutput,
890
- | Cause.TimeoutException
885
+ | Cause.TimeoutError
891
886
  | SdkError
892
887
  | AccessDeniedError
893
888
  | InternalServerError
@@ -904,7 +899,7 @@ interface BedrockService$ {
904
899
  options?: HttpHandlerOptions,
905
900
  ): Effect.Effect<
906
901
  DeleteFoundationModelAgreementCommandOutput,
907
- | Cause.TimeoutException
902
+ | Cause.TimeoutError
908
903
  | SdkError
909
904
  | AccessDeniedError
910
905
  | ConflictError
@@ -922,7 +917,7 @@ interface BedrockService$ {
922
917
  options?: HttpHandlerOptions,
923
918
  ): Effect.Effect<
924
919
  DeleteGuardrailCommandOutput,
925
- | Cause.TimeoutException
920
+ | Cause.TimeoutError
926
921
  | SdkError
927
922
  | AccessDeniedError
928
923
  | ConflictError
@@ -940,7 +935,7 @@ interface BedrockService$ {
940
935
  options?: HttpHandlerOptions,
941
936
  ): Effect.Effect<
942
937
  DeleteImportedModelCommandOutput,
943
- | Cause.TimeoutException
938
+ | Cause.TimeoutError
944
939
  | SdkError
945
940
  | AccessDeniedError
946
941
  | ConflictError
@@ -958,7 +953,7 @@ interface BedrockService$ {
958
953
  options?: HttpHandlerOptions,
959
954
  ): Effect.Effect<
960
955
  DeleteInferenceProfileCommandOutput,
961
- | Cause.TimeoutException
956
+ | Cause.TimeoutError
962
957
  | SdkError
963
958
  | AccessDeniedError
964
959
  | ConflictError
@@ -976,7 +971,7 @@ interface BedrockService$ {
976
971
  options?: HttpHandlerOptions,
977
972
  ): Effect.Effect<
978
973
  DeleteMarketplaceModelEndpointCommandOutput,
979
- | Cause.TimeoutException
974
+ | Cause.TimeoutError
980
975
  | SdkError
981
976
  | AccessDeniedError
982
977
  | InternalServerError
@@ -993,7 +988,7 @@ interface BedrockService$ {
993
988
  options?: HttpHandlerOptions,
994
989
  ): Effect.Effect<
995
990
  DeleteModelInvocationLoggingConfigurationCommandOutput,
996
- Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ThrottlingError
991
+ Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | ThrottlingError
997
992
  >;
998
993
 
999
994
  /**
@@ -1004,7 +999,7 @@ interface BedrockService$ {
1004
999
  options?: HttpHandlerOptions,
1005
1000
  ): Effect.Effect<
1006
1001
  DeletePromptRouterCommandOutput,
1007
- | Cause.TimeoutException
1002
+ | Cause.TimeoutError
1008
1003
  | SdkError
1009
1004
  | AccessDeniedError
1010
1005
  | InternalServerError
@@ -1021,7 +1016,7 @@ interface BedrockService$ {
1021
1016
  options?: HttpHandlerOptions,
1022
1017
  ): Effect.Effect<
1023
1018
  DeleteProvisionedModelThroughputCommandOutput,
1024
- | Cause.TimeoutException
1019
+ | Cause.TimeoutError
1025
1020
  | SdkError
1026
1021
  | AccessDeniedError
1027
1022
  | ConflictError
@@ -1039,7 +1034,7 @@ interface BedrockService$ {
1039
1034
  options?: HttpHandlerOptions,
1040
1035
  ): Effect.Effect<
1041
1036
  DeregisterMarketplaceModelEndpointCommandOutput,
1042
- | Cause.TimeoutException
1037
+ | Cause.TimeoutError
1043
1038
  | SdkError
1044
1039
  | AccessDeniedError
1045
1040
  | InternalServerError
@@ -1057,7 +1052,7 @@ interface BedrockService$ {
1057
1052
  options?: HttpHandlerOptions,
1058
1053
  ): Effect.Effect<
1059
1054
  ExportAutomatedReasoningPolicyVersionCommandOutput,
1060
- | Cause.TimeoutException
1055
+ | Cause.TimeoutError
1061
1056
  | SdkError
1062
1057
  | AccessDeniedError
1063
1058
  | InternalServerError
@@ -1074,7 +1069,7 @@ interface BedrockService$ {
1074
1069
  options?: HttpHandlerOptions,
1075
1070
  ): Effect.Effect<
1076
1071
  GetAutomatedReasoningPolicyCommandOutput,
1077
- | Cause.TimeoutException
1072
+ | Cause.TimeoutError
1078
1073
  | SdkError
1079
1074
  | AccessDeniedError
1080
1075
  | InternalServerError
@@ -1091,7 +1086,7 @@ interface BedrockService$ {
1091
1086
  options?: HttpHandlerOptions,
1092
1087
  ): Effect.Effect<
1093
1088
  GetAutomatedReasoningPolicyAnnotationsCommandOutput,
1094
- | Cause.TimeoutException
1089
+ | Cause.TimeoutError
1095
1090
  | SdkError
1096
1091
  | AccessDeniedError
1097
1092
  | InternalServerError
@@ -1108,7 +1103,7 @@ interface BedrockService$ {
1108
1103
  options?: HttpHandlerOptions,
1109
1104
  ): Effect.Effect<
1110
1105
  GetAutomatedReasoningPolicyBuildWorkflowCommandOutput,
1111
- | Cause.TimeoutException
1106
+ | Cause.TimeoutError
1112
1107
  | SdkError
1113
1108
  | AccessDeniedError
1114
1109
  | InternalServerError
@@ -1125,7 +1120,7 @@ interface BedrockService$ {
1125
1120
  options?: HttpHandlerOptions,
1126
1121
  ): Effect.Effect<
1127
1122
  GetAutomatedReasoningPolicyBuildWorkflowResultAssetsCommandOutput,
1128
- | Cause.TimeoutException
1123
+ | Cause.TimeoutError
1129
1124
  | SdkError
1130
1125
  | AccessDeniedError
1131
1126
  | InternalServerError
@@ -1142,7 +1137,7 @@ interface BedrockService$ {
1142
1137
  options?: HttpHandlerOptions,
1143
1138
  ): Effect.Effect<
1144
1139
  GetAutomatedReasoningPolicyNextScenarioCommandOutput,
1145
- | Cause.TimeoutException
1140
+ | Cause.TimeoutError
1146
1141
  | SdkError
1147
1142
  | AccessDeniedError
1148
1143
  | InternalServerError
@@ -1159,7 +1154,7 @@ interface BedrockService$ {
1159
1154
  options?: HttpHandlerOptions,
1160
1155
  ): Effect.Effect<
1161
1156
  GetAutomatedReasoningPolicyTestCaseCommandOutput,
1162
- | Cause.TimeoutException
1157
+ | Cause.TimeoutError
1163
1158
  | SdkError
1164
1159
  | AccessDeniedError
1165
1160
  | InternalServerError
@@ -1176,7 +1171,7 @@ interface BedrockService$ {
1176
1171
  options?: HttpHandlerOptions,
1177
1172
  ): Effect.Effect<
1178
1173
  GetAutomatedReasoningPolicyTestResultCommandOutput,
1179
- | Cause.TimeoutException
1174
+ | Cause.TimeoutError
1180
1175
  | SdkError
1181
1176
  | AccessDeniedError
1182
1177
  | InternalServerError
@@ -1193,7 +1188,7 @@ interface BedrockService$ {
1193
1188
  options?: HttpHandlerOptions,
1194
1189
  ): Effect.Effect<
1195
1190
  GetCustomModelCommandOutput,
1196
- | Cause.TimeoutException
1191
+ | Cause.TimeoutError
1197
1192
  | SdkError
1198
1193
  | AccessDeniedError
1199
1194
  | InternalServerError
@@ -1210,7 +1205,7 @@ interface BedrockService$ {
1210
1205
  options?: HttpHandlerOptions,
1211
1206
  ): Effect.Effect<
1212
1207
  GetCustomModelDeploymentCommandOutput,
1213
- | Cause.TimeoutException
1208
+ | Cause.TimeoutError
1214
1209
  | SdkError
1215
1210
  | AccessDeniedError
1216
1211
  | InternalServerError
@@ -1227,7 +1222,7 @@ interface BedrockService$ {
1227
1222
  options?: HttpHandlerOptions,
1228
1223
  ): Effect.Effect<
1229
1224
  GetEvaluationJobCommandOutput,
1230
- | Cause.TimeoutException
1225
+ | Cause.TimeoutError
1231
1226
  | SdkError
1232
1227
  | AccessDeniedError
1233
1228
  | InternalServerError
@@ -1244,7 +1239,7 @@ interface BedrockService$ {
1244
1239
  options?: HttpHandlerOptions,
1245
1240
  ): Effect.Effect<
1246
1241
  GetFoundationModelCommandOutput,
1247
- | Cause.TimeoutException
1242
+ | Cause.TimeoutError
1248
1243
  | SdkError
1249
1244
  | AccessDeniedError
1250
1245
  | InternalServerError
@@ -1261,7 +1256,7 @@ interface BedrockService$ {
1261
1256
  options?: HttpHandlerOptions,
1262
1257
  ): Effect.Effect<
1263
1258
  GetFoundationModelAvailabilityCommandOutput,
1264
- | Cause.TimeoutException
1259
+ | Cause.TimeoutError
1265
1260
  | SdkError
1266
1261
  | AccessDeniedError
1267
1262
  | InternalServerError
@@ -1278,7 +1273,7 @@ interface BedrockService$ {
1278
1273
  options?: HttpHandlerOptions,
1279
1274
  ): Effect.Effect<
1280
1275
  GetGuardrailCommandOutput,
1281
- | Cause.TimeoutException
1276
+ | Cause.TimeoutError
1282
1277
  | SdkError
1283
1278
  | AccessDeniedError
1284
1279
  | InternalServerError
@@ -1295,7 +1290,7 @@ interface BedrockService$ {
1295
1290
  options?: HttpHandlerOptions,
1296
1291
  ): Effect.Effect<
1297
1292
  GetImportedModelCommandOutput,
1298
- | Cause.TimeoutException
1293
+ | Cause.TimeoutError
1299
1294
  | SdkError
1300
1295
  | AccessDeniedError
1301
1296
  | InternalServerError
@@ -1312,7 +1307,7 @@ interface BedrockService$ {
1312
1307
  options?: HttpHandlerOptions,
1313
1308
  ): Effect.Effect<
1314
1309
  GetInferenceProfileCommandOutput,
1315
- | Cause.TimeoutException
1310
+ | Cause.TimeoutError
1316
1311
  | SdkError
1317
1312
  | AccessDeniedError
1318
1313
  | InternalServerError
@@ -1329,7 +1324,7 @@ interface BedrockService$ {
1329
1324
  options?: HttpHandlerOptions,
1330
1325
  ): Effect.Effect<
1331
1326
  GetMarketplaceModelEndpointCommandOutput,
1332
- | Cause.TimeoutException
1327
+ | Cause.TimeoutError
1333
1328
  | SdkError
1334
1329
  | AccessDeniedError
1335
1330
  | InternalServerError
@@ -1346,7 +1341,7 @@ interface BedrockService$ {
1346
1341
  options?: HttpHandlerOptions,
1347
1342
  ): Effect.Effect<
1348
1343
  GetModelCopyJobCommandOutput,
1349
- | Cause.TimeoutException
1344
+ | Cause.TimeoutError
1350
1345
  | SdkError
1351
1346
  | AccessDeniedError
1352
1347
  | InternalServerError
@@ -1363,7 +1358,7 @@ interface BedrockService$ {
1363
1358
  options?: HttpHandlerOptions,
1364
1359
  ): Effect.Effect<
1365
1360
  GetModelCustomizationJobCommandOutput,
1366
- | Cause.TimeoutException
1361
+ | Cause.TimeoutError
1367
1362
  | SdkError
1368
1363
  | AccessDeniedError
1369
1364
  | InternalServerError
@@ -1380,7 +1375,7 @@ interface BedrockService$ {
1380
1375
  options?: HttpHandlerOptions,
1381
1376
  ): Effect.Effect<
1382
1377
  GetModelImportJobCommandOutput,
1383
- | Cause.TimeoutException
1378
+ | Cause.TimeoutError
1384
1379
  | SdkError
1385
1380
  | AccessDeniedError
1386
1381
  | InternalServerError
@@ -1397,7 +1392,7 @@ interface BedrockService$ {
1397
1392
  options?: HttpHandlerOptions,
1398
1393
  ): Effect.Effect<
1399
1394
  GetModelInvocationJobCommandOutput,
1400
- | Cause.TimeoutException
1395
+ | Cause.TimeoutError
1401
1396
  | SdkError
1402
1397
  | AccessDeniedError
1403
1398
  | InternalServerError
@@ -1414,7 +1409,7 @@ interface BedrockService$ {
1414
1409
  options?: HttpHandlerOptions,
1415
1410
  ): Effect.Effect<
1416
1411
  GetModelInvocationLoggingConfigurationCommandOutput,
1417
- Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ThrottlingError
1412
+ Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | ThrottlingError
1418
1413
  >;
1419
1414
 
1420
1415
  /**
@@ -1425,7 +1420,7 @@ interface BedrockService$ {
1425
1420
  options?: HttpHandlerOptions,
1426
1421
  ): Effect.Effect<
1427
1422
  GetPromptRouterCommandOutput,
1428
- | Cause.TimeoutException
1423
+ | Cause.TimeoutError
1429
1424
  | SdkError
1430
1425
  | AccessDeniedError
1431
1426
  | InternalServerError
@@ -1442,7 +1437,7 @@ interface BedrockService$ {
1442
1437
  options?: HttpHandlerOptions,
1443
1438
  ): Effect.Effect<
1444
1439
  GetProvisionedModelThroughputCommandOutput,
1445
- | Cause.TimeoutException
1440
+ | Cause.TimeoutError
1446
1441
  | SdkError
1447
1442
  | AccessDeniedError
1448
1443
  | InternalServerError
@@ -1459,7 +1454,7 @@ interface BedrockService$ {
1459
1454
  options?: HttpHandlerOptions,
1460
1455
  ): Effect.Effect<
1461
1456
  GetUseCaseForModelAccessCommandOutput,
1462
- Cause.TimeoutException | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError
1457
+ Cause.TimeoutError | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError
1463
1458
  >;
1464
1459
 
1465
1460
  /**
@@ -1470,7 +1465,7 @@ interface BedrockService$ {
1470
1465
  options?: HttpHandlerOptions,
1471
1466
  ): Effect.Effect<
1472
1467
  ListAutomatedReasoningPoliciesCommandOutput,
1473
- | Cause.TimeoutException
1468
+ | Cause.TimeoutError
1474
1469
  | SdkError
1475
1470
  | AccessDeniedError
1476
1471
  | InternalServerError
@@ -1487,7 +1482,7 @@ interface BedrockService$ {
1487
1482
  options?: HttpHandlerOptions,
1488
1483
  ): Effect.Effect<
1489
1484
  ListAutomatedReasoningPolicyBuildWorkflowsCommandOutput,
1490
- | Cause.TimeoutException
1485
+ | Cause.TimeoutError
1491
1486
  | SdkError
1492
1487
  | AccessDeniedError
1493
1488
  | InternalServerError
@@ -1504,7 +1499,7 @@ interface BedrockService$ {
1504
1499
  options?: HttpHandlerOptions,
1505
1500
  ): Effect.Effect<
1506
1501
  ListAutomatedReasoningPolicyTestCasesCommandOutput,
1507
- | Cause.TimeoutException
1502
+ | Cause.TimeoutError
1508
1503
  | SdkError
1509
1504
  | AccessDeniedError
1510
1505
  | InternalServerError
@@ -1521,7 +1516,7 @@ interface BedrockService$ {
1521
1516
  options?: HttpHandlerOptions,
1522
1517
  ): Effect.Effect<
1523
1518
  ListAutomatedReasoningPolicyTestResultsCommandOutput,
1524
- | Cause.TimeoutException
1519
+ | Cause.TimeoutError
1525
1520
  | SdkError
1526
1521
  | AccessDeniedError
1527
1522
  | InternalServerError
@@ -1539,7 +1534,7 @@ interface BedrockService$ {
1539
1534
  options?: HttpHandlerOptions,
1540
1535
  ): Effect.Effect<
1541
1536
  ListCustomModelDeploymentsCommandOutput,
1542
- Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError
1537
+ Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError
1543
1538
  >;
1544
1539
 
1545
1540
  /**
@@ -1550,7 +1545,7 @@ interface BedrockService$ {
1550
1545
  options?: HttpHandlerOptions,
1551
1546
  ): Effect.Effect<
1552
1547
  ListCustomModelsCommandOutput,
1553
- Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError
1548
+ Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError
1554
1549
  >;
1555
1550
 
1556
1551
  /**
@@ -1561,7 +1556,7 @@ interface BedrockService$ {
1561
1556
  options?: HttpHandlerOptions,
1562
1557
  ): Effect.Effect<
1563
1558
  ListEnforcedGuardrailsConfigurationCommandOutput,
1564
- | Cause.TimeoutException
1559
+ | Cause.TimeoutError
1565
1560
  | SdkError
1566
1561
  | AccessDeniedError
1567
1562
  | InternalServerError
@@ -1578,7 +1573,7 @@ interface BedrockService$ {
1578
1573
  options?: HttpHandlerOptions,
1579
1574
  ): Effect.Effect<
1580
1575
  ListEvaluationJobsCommandOutput,
1581
- Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError
1576
+ Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError
1582
1577
  >;
1583
1578
 
1584
1579
  /**
@@ -1589,7 +1584,7 @@ interface BedrockService$ {
1589
1584
  options?: HttpHandlerOptions,
1590
1585
  ): Effect.Effect<
1591
1586
  ListFoundationModelAgreementOffersCommandOutput,
1592
- | Cause.TimeoutException
1587
+ | Cause.TimeoutError
1593
1588
  | SdkError
1594
1589
  | AccessDeniedError
1595
1590
  | InternalServerError
@@ -1606,7 +1601,7 @@ interface BedrockService$ {
1606
1601
  options?: HttpHandlerOptions,
1607
1602
  ): Effect.Effect<
1608
1603
  ListFoundationModelsCommandOutput,
1609
- Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError
1604
+ Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError
1610
1605
  >;
1611
1606
 
1612
1607
  /**
@@ -1617,7 +1612,7 @@ interface BedrockService$ {
1617
1612
  options?: HttpHandlerOptions,
1618
1613
  ): Effect.Effect<
1619
1614
  ListGuardrailsCommandOutput,
1620
- | Cause.TimeoutException
1615
+ | Cause.TimeoutError
1621
1616
  | SdkError
1622
1617
  | AccessDeniedError
1623
1618
  | InternalServerError
@@ -1634,7 +1629,7 @@ interface BedrockService$ {
1634
1629
  options?: HttpHandlerOptions,
1635
1630
  ): Effect.Effect<
1636
1631
  ListImportedModelsCommandOutput,
1637
- Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError
1632
+ Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError
1638
1633
  >;
1639
1634
 
1640
1635
  /**
@@ -1645,7 +1640,7 @@ interface BedrockService$ {
1645
1640
  options?: HttpHandlerOptions,
1646
1641
  ): Effect.Effect<
1647
1642
  ListInferenceProfilesCommandOutput,
1648
- Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError
1643
+ Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError
1649
1644
  >;
1650
1645
 
1651
1646
  /**
@@ -1656,7 +1651,7 @@ interface BedrockService$ {
1656
1651
  options?: HttpHandlerOptions,
1657
1652
  ): Effect.Effect<
1658
1653
  ListMarketplaceModelEndpointsCommandOutput,
1659
- | Cause.TimeoutException
1654
+ | Cause.TimeoutError
1660
1655
  | SdkError
1661
1656
  | AccessDeniedError
1662
1657
  | InternalServerError
@@ -1673,7 +1668,7 @@ interface BedrockService$ {
1673
1668
  options?: HttpHandlerOptions,
1674
1669
  ): Effect.Effect<
1675
1670
  ListModelCopyJobsCommandOutput,
1676
- | Cause.TimeoutException
1671
+ | Cause.TimeoutError
1677
1672
  | SdkError
1678
1673
  | AccessDeniedError
1679
1674
  | InternalServerError
@@ -1690,7 +1685,7 @@ interface BedrockService$ {
1690
1685
  options?: HttpHandlerOptions,
1691
1686
  ): Effect.Effect<
1692
1687
  ListModelCustomizationJobsCommandOutput,
1693
- Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError
1688
+ Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError
1694
1689
  >;
1695
1690
 
1696
1691
  /**
@@ -1701,7 +1696,7 @@ interface BedrockService$ {
1701
1696
  options?: HttpHandlerOptions,
1702
1697
  ): Effect.Effect<
1703
1698
  ListModelImportJobsCommandOutput,
1704
- Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError
1699
+ Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError
1705
1700
  >;
1706
1701
 
1707
1702
  /**
@@ -1712,7 +1707,7 @@ interface BedrockService$ {
1712
1707
  options?: HttpHandlerOptions,
1713
1708
  ): Effect.Effect<
1714
1709
  ListModelInvocationJobsCommandOutput,
1715
- Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError
1710
+ Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError
1716
1711
  >;
1717
1712
 
1718
1713
  /**
@@ -1723,7 +1718,7 @@ interface BedrockService$ {
1723
1718
  options?: HttpHandlerOptions,
1724
1719
  ): Effect.Effect<
1725
1720
  ListPromptRoutersCommandOutput,
1726
- Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError
1721
+ Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError
1727
1722
  >;
1728
1723
 
1729
1724
  /**
@@ -1734,7 +1729,7 @@ interface BedrockService$ {
1734
1729
  options?: HttpHandlerOptions,
1735
1730
  ): Effect.Effect<
1736
1731
  ListProvisionedModelThroughputsCommandOutput,
1737
- Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError
1732
+ Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError
1738
1733
  >;
1739
1734
 
1740
1735
  /**
@@ -1745,7 +1740,7 @@ interface BedrockService$ {
1745
1740
  options?: HttpHandlerOptions,
1746
1741
  ): Effect.Effect<
1747
1742
  ListTagsForResourceCommandOutput,
1748
- | Cause.TimeoutException
1743
+ | Cause.TimeoutError
1749
1744
  | SdkError
1750
1745
  | AccessDeniedError
1751
1746
  | InternalServerError
@@ -1762,7 +1757,7 @@ interface BedrockService$ {
1762
1757
  options?: HttpHandlerOptions,
1763
1758
  ): Effect.Effect<
1764
1759
  PutEnforcedGuardrailConfigurationCommandOutput,
1765
- | Cause.TimeoutException
1760
+ | Cause.TimeoutError
1766
1761
  | SdkError
1767
1762
  | AccessDeniedError
1768
1763
  | ConflictError
@@ -1780,7 +1775,7 @@ interface BedrockService$ {
1780
1775
  options?: HttpHandlerOptions,
1781
1776
  ): Effect.Effect<
1782
1777
  PutModelInvocationLoggingConfigurationCommandOutput,
1783
- Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError
1778
+ Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError
1784
1779
  >;
1785
1780
 
1786
1781
  /**
@@ -1791,7 +1786,7 @@ interface BedrockService$ {
1791
1786
  options?: HttpHandlerOptions,
1792
1787
  ): Effect.Effect<
1793
1788
  PutUseCaseForModelAccessCommandOutput,
1794
- Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError
1789
+ Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError
1795
1790
  >;
1796
1791
 
1797
1792
  /**
@@ -1802,7 +1797,7 @@ interface BedrockService$ {
1802
1797
  options?: HttpHandlerOptions,
1803
1798
  ): Effect.Effect<
1804
1799
  RegisterMarketplaceModelEndpointCommandOutput,
1805
- | Cause.TimeoutException
1800
+ | Cause.TimeoutError
1806
1801
  | SdkError
1807
1802
  | AccessDeniedError
1808
1803
  | InternalServerError
@@ -1820,7 +1815,7 @@ interface BedrockService$ {
1820
1815
  options?: HttpHandlerOptions,
1821
1816
  ): Effect.Effect<
1822
1817
  StartAutomatedReasoningPolicyBuildWorkflowCommandOutput,
1823
- | Cause.TimeoutException
1818
+ | Cause.TimeoutError
1824
1819
  | SdkError
1825
1820
  | AccessDeniedError
1826
1821
  | ConflictError
@@ -1840,7 +1835,7 @@ interface BedrockService$ {
1840
1835
  options?: HttpHandlerOptions,
1841
1836
  ): Effect.Effect<
1842
1837
  StartAutomatedReasoningPolicyTestWorkflowCommandOutput,
1843
- | Cause.TimeoutException
1838
+ | Cause.TimeoutError
1844
1839
  | SdkError
1845
1840
  | AccessDeniedError
1846
1841
  | InternalServerError
@@ -1858,7 +1853,7 @@ interface BedrockService$ {
1858
1853
  options?: HttpHandlerOptions,
1859
1854
  ): Effect.Effect<
1860
1855
  StopEvaluationJobCommandOutput,
1861
- | Cause.TimeoutException
1856
+ | Cause.TimeoutError
1862
1857
  | SdkError
1863
1858
  | AccessDeniedError
1864
1859
  | ConflictError
@@ -1876,7 +1871,7 @@ interface BedrockService$ {
1876
1871
  options?: HttpHandlerOptions,
1877
1872
  ): Effect.Effect<
1878
1873
  StopModelCustomizationJobCommandOutput,
1879
- | Cause.TimeoutException
1874
+ | Cause.TimeoutError
1880
1875
  | SdkError
1881
1876
  | AccessDeniedError
1882
1877
  | ConflictError
@@ -1894,7 +1889,7 @@ interface BedrockService$ {
1894
1889
  options?: HttpHandlerOptions,
1895
1890
  ): Effect.Effect<
1896
1891
  StopModelInvocationJobCommandOutput,
1897
- | Cause.TimeoutException
1892
+ | Cause.TimeoutError
1898
1893
  | SdkError
1899
1894
  | AccessDeniedError
1900
1895
  | ConflictError
@@ -1912,7 +1907,7 @@ interface BedrockService$ {
1912
1907
  options?: HttpHandlerOptions,
1913
1908
  ): Effect.Effect<
1914
1909
  TagResourceCommandOutput,
1915
- | Cause.TimeoutException
1910
+ | Cause.TimeoutError
1916
1911
  | SdkError
1917
1912
  | AccessDeniedError
1918
1913
  | InternalServerError
@@ -1930,7 +1925,7 @@ interface BedrockService$ {
1930
1925
  options?: HttpHandlerOptions,
1931
1926
  ): Effect.Effect<
1932
1927
  UntagResourceCommandOutput,
1933
- | Cause.TimeoutException
1928
+ | Cause.TimeoutError
1934
1929
  | SdkError
1935
1930
  | AccessDeniedError
1936
1931
  | InternalServerError
@@ -1947,7 +1942,7 @@ interface BedrockService$ {
1947
1942
  options?: HttpHandlerOptions,
1948
1943
  ): Effect.Effect<
1949
1944
  UpdateAutomatedReasoningPolicyCommandOutput,
1950
- | Cause.TimeoutException
1945
+ | Cause.TimeoutError
1951
1946
  | SdkError
1952
1947
  | AccessDeniedError
1953
1948
  | ConflictError
@@ -1966,7 +1961,7 @@ interface BedrockService$ {
1966
1961
  options?: HttpHandlerOptions,
1967
1962
  ): Effect.Effect<
1968
1963
  UpdateAutomatedReasoningPolicyAnnotationsCommandOutput,
1969
- | Cause.TimeoutException
1964
+ | Cause.TimeoutError
1970
1965
  | SdkError
1971
1966
  | AccessDeniedError
1972
1967
  | ConflictError
@@ -1984,7 +1979,7 @@ interface BedrockService$ {
1984
1979
  options?: HttpHandlerOptions,
1985
1980
  ): Effect.Effect<
1986
1981
  UpdateAutomatedReasoningPolicyTestCaseCommandOutput,
1987
- | Cause.TimeoutException
1982
+ | Cause.TimeoutError
1988
1983
  | SdkError
1989
1984
  | AccessDeniedError
1990
1985
  | ConflictError
@@ -2003,7 +1998,7 @@ interface BedrockService$ {
2003
1998
  options?: HttpHandlerOptions,
2004
1999
  ): Effect.Effect<
2005
2000
  UpdateCustomModelDeploymentCommandOutput,
2006
- | Cause.TimeoutException
2001
+ | Cause.TimeoutError
2007
2002
  | SdkError
2008
2003
  | AccessDeniedError
2009
2004
  | InternalServerError
@@ -2020,7 +2015,7 @@ interface BedrockService$ {
2020
2015
  options?: HttpHandlerOptions,
2021
2016
  ): Effect.Effect<
2022
2017
  UpdateGuardrailCommandOutput,
2023
- | Cause.TimeoutException
2018
+ | Cause.TimeoutError
2024
2019
  | SdkError
2025
2020
  | AccessDeniedError
2026
2021
  | ConflictError
@@ -2039,7 +2034,7 @@ interface BedrockService$ {
2039
2034
  options?: HttpHandlerOptions,
2040
2035
  ): Effect.Effect<
2041
2036
  UpdateMarketplaceModelEndpointCommandOutput,
2042
- | Cause.TimeoutException
2037
+ | Cause.TimeoutError
2043
2038
  | SdkError
2044
2039
  | AccessDeniedError
2045
2040
  | ConflictError
@@ -2058,7 +2053,7 @@ interface BedrockService$ {
2058
2053
  options?: HttpHandlerOptions,
2059
2054
  ): Effect.Effect<
2060
2055
  UpdateProvisionedModelThroughputCommandOutput,
2061
- | Cause.TimeoutException
2056
+ | Cause.TimeoutError
2062
2057
  | SdkError
2063
2058
  | AccessDeniedError
2064
2059
  | InternalServerError
@@ -2089,10 +2084,10 @@ export const makeBedrockService = Effect.gen(function*() {
2089
2084
  * @since 1.0.0
2090
2085
  * @category models
2091
2086
  */
2092
- export class BedrockService extends Effect.Tag("@effect-aws/client-bedrock/BedrockService")<
2087
+ export class BedrockService extends ServiceMap.Service<
2093
2088
  BedrockService,
2094
2089
  BedrockService$
2095
- >() {
2090
+ >()("@effect-aws/client-bedrock/BedrockService") {
2096
2091
  static readonly defaultLayer = Layer.effect(this, makeBedrockService).pipe(Layer.provide(Instance.layer));
2097
2092
  static readonly layer = (config: BedrockService.Config) =>
2098
2093
  Layer.effect(this, makeBedrockService).pipe(