@effect-aws/client-bedrock-agent 1.11.3 → 2.0.0-beta.5

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 (36) hide show
  1. package/README.md +3 -3
  2. package/dist/dts/BedrockAgentClientInstance.d.ts +1 -1
  3. package/dist/dts/BedrockAgentClientInstance.d.ts.map +1 -1
  4. package/dist/dts/BedrockAgentService.d.ts +92 -94
  5. package/dist/dts/BedrockAgentService.d.ts.map +1 -1
  6. package/dist/dts/BedrockAgentServiceConfig.d.ts.map +1 -1
  7. package/dist/esm/BedrockAgentClientInstance.js +2 -2
  8. package/dist/esm/BedrockAgentClientInstance.js.map +1 -1
  9. package/dist/esm/BedrockAgentService.js +2 -1
  10. package/dist/esm/BedrockAgentService.js.map +1 -1
  11. package/dist/esm/BedrockAgentServiceConfig.js +5 -6
  12. package/dist/esm/BedrockAgentServiceConfig.js.map +1 -1
  13. package/package.json +8 -14
  14. package/src/BedrockAgentClientInstance.ts +3 -3
  15. package/src/BedrockAgentService.ts +93 -94
  16. package/src/BedrockAgentServiceConfig.ts +6 -7
  17. package/dist/cjs/BedrockAgentClientInstance.d.ts +0 -26
  18. package/dist/cjs/BedrockAgentClientInstance.d.ts.map +0 -1
  19. package/dist/cjs/BedrockAgentClientInstance.js +0 -52
  20. package/dist/cjs/BedrockAgentClientInstance.js.map +0 -1
  21. package/dist/cjs/BedrockAgentService.d.ts +0 -363
  22. package/dist/cjs/BedrockAgentService.d.ts.map +0 -1
  23. package/dist/cjs/BedrockAgentService.js +0 -151
  24. package/dist/cjs/BedrockAgentService.js.map +0 -1
  25. package/dist/cjs/BedrockAgentServiceConfig.d.ts +0 -26
  26. package/dist/cjs/BedrockAgentServiceConfig.d.ts.map +0 -1
  27. package/dist/cjs/BedrockAgentServiceConfig.js +0 -60
  28. package/dist/cjs/BedrockAgentServiceConfig.js.map +0 -1
  29. package/dist/cjs/Errors.d.ts +0 -14
  30. package/dist/cjs/Errors.d.ts.map +0 -1
  31. package/dist/cjs/Errors.js +0 -13
  32. package/dist/cjs/Errors.js.map +0 -1
  33. package/dist/cjs/index.d.ts +0 -44
  34. package/dist/cjs/index.d.ts.map +0 -1
  35. package/dist/cjs/index.js +0 -56
  36. package/dist/cjs/index.js.map +0 -1
@@ -248,6 +248,7 @@ import * as Service from "@effect-aws/commons/Service";
248
248
  import type * as ServiceLogger from "@effect-aws/commons/ServiceLogger";
249
249
  import type { HttpHandlerOptions } from "@effect-aws/commons/Types";
250
250
  import type * as Cause from "effect/Cause";
251
+ import * as Context from "effect/Context";
251
252
  import * as Effect from "effect/Effect";
252
253
  import * as Layer from "effect/Layer";
253
254
  import type * as Stream from "effect/Stream";
@@ -360,9 +361,7 @@ const paginators = {
360
361
  paginateListPrompts,
361
362
  };
362
363
 
363
- interface BedrockAgentService$ {
364
- readonly _: unique symbol;
365
-
364
+ export interface BedrockAgentService$ {
366
365
  /**
367
366
  * @see {@link AssociateAgentCollaboratorCommand}
368
367
  */
@@ -371,7 +370,7 @@ interface BedrockAgentService$ {
371
370
  options?: HttpHandlerOptions,
372
371
  ): Effect.Effect<
373
372
  AssociateAgentCollaboratorCommandOutput,
374
- | Cause.TimeoutException
373
+ | Cause.TimeoutError
375
374
  | SdkError
376
375
  | AccessDeniedError
377
376
  | ConflictError
@@ -390,7 +389,7 @@ interface BedrockAgentService$ {
390
389
  options?: HttpHandlerOptions,
391
390
  ): Effect.Effect<
392
391
  AssociateAgentKnowledgeBaseCommandOutput,
393
- | Cause.TimeoutException
392
+ | Cause.TimeoutError
394
393
  | SdkError
395
394
  | AccessDeniedError
396
395
  | ConflictError
@@ -409,7 +408,7 @@ interface BedrockAgentService$ {
409
408
  options?: HttpHandlerOptions,
410
409
  ): Effect.Effect<
411
410
  CreateAgentCommandOutput,
412
- | Cause.TimeoutException
411
+ | Cause.TimeoutError
413
412
  | SdkError
414
413
  | AccessDeniedError
415
414
  | ConflictError
@@ -427,7 +426,7 @@ interface BedrockAgentService$ {
427
426
  options?: HttpHandlerOptions,
428
427
  ): Effect.Effect<
429
428
  CreateAgentActionGroupCommandOutput,
430
- | Cause.TimeoutException
429
+ | Cause.TimeoutError
431
430
  | SdkError
432
431
  | AccessDeniedError
433
432
  | ConflictError
@@ -446,7 +445,7 @@ interface BedrockAgentService$ {
446
445
  options?: HttpHandlerOptions,
447
446
  ): Effect.Effect<
448
447
  CreateAgentAliasCommandOutput,
449
- | Cause.TimeoutException
448
+ | Cause.TimeoutError
450
449
  | SdkError
451
450
  | AccessDeniedError
452
451
  | ConflictError
@@ -465,7 +464,7 @@ interface BedrockAgentService$ {
465
464
  options?: HttpHandlerOptions,
466
465
  ): Effect.Effect<
467
466
  CreateDataSourceCommandOutput,
468
- | Cause.TimeoutException
467
+ | Cause.TimeoutError
469
468
  | SdkError
470
469
  | AccessDeniedError
471
470
  | ConflictError
@@ -484,7 +483,7 @@ interface BedrockAgentService$ {
484
483
  options?: HttpHandlerOptions,
485
484
  ): Effect.Effect<
486
485
  CreateFlowCommandOutput,
487
- | Cause.TimeoutException
486
+ | Cause.TimeoutError
488
487
  | SdkError
489
488
  | AccessDeniedError
490
489
  | ConflictError
@@ -502,7 +501,7 @@ interface BedrockAgentService$ {
502
501
  options?: HttpHandlerOptions,
503
502
  ): Effect.Effect<
504
503
  CreateFlowAliasCommandOutput,
505
- | Cause.TimeoutException
504
+ | Cause.TimeoutError
506
505
  | SdkError
507
506
  | AccessDeniedError
508
507
  | ConflictError
@@ -521,7 +520,7 @@ interface BedrockAgentService$ {
521
520
  options?: HttpHandlerOptions,
522
521
  ): Effect.Effect<
523
522
  CreateFlowVersionCommandOutput,
524
- | Cause.TimeoutException
523
+ | Cause.TimeoutError
525
524
  | SdkError
526
525
  | AccessDeniedError
527
526
  | ConflictError
@@ -540,7 +539,7 @@ interface BedrockAgentService$ {
540
539
  options?: HttpHandlerOptions,
541
540
  ): Effect.Effect<
542
541
  CreateKnowledgeBaseCommandOutput,
543
- | Cause.TimeoutException
542
+ | Cause.TimeoutError
544
543
  | SdkError
545
544
  | AccessDeniedError
546
545
  | ConflictError
@@ -558,7 +557,7 @@ interface BedrockAgentService$ {
558
557
  options?: HttpHandlerOptions,
559
558
  ): Effect.Effect<
560
559
  CreatePromptCommandOutput,
561
- | Cause.TimeoutException
560
+ | Cause.TimeoutError
562
561
  | SdkError
563
562
  | AccessDeniedError
564
563
  | ConflictError
@@ -576,7 +575,7 @@ interface BedrockAgentService$ {
576
575
  options?: HttpHandlerOptions,
577
576
  ): Effect.Effect<
578
577
  CreatePromptVersionCommandOutput,
579
- | Cause.TimeoutException
578
+ | Cause.TimeoutError
580
579
  | SdkError
581
580
  | AccessDeniedError
582
581
  | ConflictError
@@ -595,7 +594,7 @@ interface BedrockAgentService$ {
595
594
  options?: HttpHandlerOptions,
596
595
  ): Effect.Effect<
597
596
  DeleteAgentCommandOutput,
598
- | Cause.TimeoutException
597
+ | Cause.TimeoutError
599
598
  | SdkError
600
599
  | AccessDeniedError
601
600
  | ConflictError
@@ -613,7 +612,7 @@ interface BedrockAgentService$ {
613
612
  options?: HttpHandlerOptions,
614
613
  ): Effect.Effect<
615
614
  DeleteAgentActionGroupCommandOutput,
616
- | Cause.TimeoutException
615
+ | Cause.TimeoutError
617
616
  | SdkError
618
617
  | AccessDeniedError
619
618
  | ConflictError
@@ -631,7 +630,7 @@ interface BedrockAgentService$ {
631
630
  options?: HttpHandlerOptions,
632
631
  ): Effect.Effect<
633
632
  DeleteAgentAliasCommandOutput,
634
- | Cause.TimeoutException
633
+ | Cause.TimeoutError
635
634
  | SdkError
636
635
  | AccessDeniedError
637
636
  | InternalServerError
@@ -648,7 +647,7 @@ interface BedrockAgentService$ {
648
647
  options?: HttpHandlerOptions,
649
648
  ): Effect.Effect<
650
649
  DeleteAgentVersionCommandOutput,
651
- | Cause.TimeoutException
650
+ | Cause.TimeoutError
652
651
  | SdkError
653
652
  | AccessDeniedError
654
653
  | ConflictError
@@ -666,7 +665,7 @@ interface BedrockAgentService$ {
666
665
  options?: HttpHandlerOptions,
667
666
  ): Effect.Effect<
668
667
  DeleteDataSourceCommandOutput,
669
- | Cause.TimeoutException
668
+ | Cause.TimeoutError
670
669
  | SdkError
671
670
  | AccessDeniedError
672
671
  | ConflictError
@@ -684,7 +683,7 @@ interface BedrockAgentService$ {
684
683
  options?: HttpHandlerOptions,
685
684
  ): Effect.Effect<
686
685
  DeleteFlowCommandOutput,
687
- | Cause.TimeoutException
686
+ | Cause.TimeoutError
688
687
  | SdkError
689
688
  | AccessDeniedError
690
689
  | ConflictError
@@ -702,7 +701,7 @@ interface BedrockAgentService$ {
702
701
  options?: HttpHandlerOptions,
703
702
  ): Effect.Effect<
704
703
  DeleteFlowAliasCommandOutput,
705
- | Cause.TimeoutException
704
+ | Cause.TimeoutError
706
705
  | SdkError
707
706
  | AccessDeniedError
708
707
  | ConflictError
@@ -720,7 +719,7 @@ interface BedrockAgentService$ {
720
719
  options?: HttpHandlerOptions,
721
720
  ): Effect.Effect<
722
721
  DeleteFlowVersionCommandOutput,
723
- | Cause.TimeoutException
722
+ | Cause.TimeoutError
724
723
  | SdkError
725
724
  | AccessDeniedError
726
725
  | ConflictError
@@ -738,7 +737,7 @@ interface BedrockAgentService$ {
738
737
  options?: HttpHandlerOptions,
739
738
  ): Effect.Effect<
740
739
  DeleteKnowledgeBaseCommandOutput,
741
- | Cause.TimeoutException
740
+ | Cause.TimeoutError
742
741
  | SdkError
743
742
  | AccessDeniedError
744
743
  | ConflictError
@@ -756,7 +755,7 @@ interface BedrockAgentService$ {
756
755
  options?: HttpHandlerOptions,
757
756
  ): Effect.Effect<
758
757
  DeleteKnowledgeBaseDocumentsCommandOutput,
759
- | Cause.TimeoutException
758
+ | Cause.TimeoutError
760
759
  | SdkError
761
760
  | AccessDeniedError
762
761
  | InternalServerError
@@ -774,7 +773,7 @@ interface BedrockAgentService$ {
774
773
  options?: HttpHandlerOptions,
775
774
  ): Effect.Effect<
776
775
  DeletePromptCommandOutput,
777
- | Cause.TimeoutException
776
+ | Cause.TimeoutError
778
777
  | SdkError
779
778
  | AccessDeniedError
780
779
  | ConflictError
@@ -792,7 +791,7 @@ interface BedrockAgentService$ {
792
791
  options?: HttpHandlerOptions,
793
792
  ): Effect.Effect<
794
793
  DeleteResourcePolicyCommandOutput,
795
- | Cause.TimeoutException
794
+ | Cause.TimeoutError
796
795
  | SdkError
797
796
  | AccessDeniedError
798
797
  | ConflictError
@@ -810,7 +809,7 @@ interface BedrockAgentService$ {
810
809
  options?: HttpHandlerOptions,
811
810
  ): Effect.Effect<
812
811
  DisassociateAgentCollaboratorCommandOutput,
813
- | Cause.TimeoutException
812
+ | Cause.TimeoutError
814
813
  | SdkError
815
814
  | AccessDeniedError
816
815
  | ConflictError
@@ -828,7 +827,7 @@ interface BedrockAgentService$ {
828
827
  options?: HttpHandlerOptions,
829
828
  ): Effect.Effect<
830
829
  DisassociateAgentKnowledgeBaseCommandOutput,
831
- | Cause.TimeoutException
830
+ | Cause.TimeoutError
832
831
  | SdkError
833
832
  | AccessDeniedError
834
833
  | ConflictError
@@ -846,7 +845,7 @@ interface BedrockAgentService$ {
846
845
  options?: HttpHandlerOptions,
847
846
  ): Effect.Effect<
848
847
  GetAgentCommandOutput,
849
- | Cause.TimeoutException
848
+ | Cause.TimeoutError
850
849
  | SdkError
851
850
  | AccessDeniedError
852
851
  | InternalServerError
@@ -863,7 +862,7 @@ interface BedrockAgentService$ {
863
862
  options?: HttpHandlerOptions,
864
863
  ): Effect.Effect<
865
864
  GetAgentActionGroupCommandOutput,
866
- | Cause.TimeoutException
865
+ | Cause.TimeoutError
867
866
  | SdkError
868
867
  | AccessDeniedError
869
868
  | InternalServerError
@@ -880,7 +879,7 @@ interface BedrockAgentService$ {
880
879
  options?: HttpHandlerOptions,
881
880
  ): Effect.Effect<
882
881
  GetAgentAliasCommandOutput,
883
- | Cause.TimeoutException
882
+ | Cause.TimeoutError
884
883
  | SdkError
885
884
  | AccessDeniedError
886
885
  | InternalServerError
@@ -897,7 +896,7 @@ interface BedrockAgentService$ {
897
896
  options?: HttpHandlerOptions,
898
897
  ): Effect.Effect<
899
898
  GetAgentCollaboratorCommandOutput,
900
- | Cause.TimeoutException
899
+ | Cause.TimeoutError
901
900
  | SdkError
902
901
  | AccessDeniedError
903
902
  | InternalServerError
@@ -914,7 +913,7 @@ interface BedrockAgentService$ {
914
913
  options?: HttpHandlerOptions,
915
914
  ): Effect.Effect<
916
915
  GetAgentKnowledgeBaseCommandOutput,
917
- | Cause.TimeoutException
916
+ | Cause.TimeoutError
918
917
  | SdkError
919
918
  | AccessDeniedError
920
919
  | InternalServerError
@@ -931,7 +930,7 @@ interface BedrockAgentService$ {
931
930
  options?: HttpHandlerOptions,
932
931
  ): Effect.Effect<
933
932
  GetAgentVersionCommandOutput,
934
- | Cause.TimeoutException
933
+ | Cause.TimeoutError
935
934
  | SdkError
936
935
  | AccessDeniedError
937
936
  | InternalServerError
@@ -948,7 +947,7 @@ interface BedrockAgentService$ {
948
947
  options?: HttpHandlerOptions,
949
948
  ): Effect.Effect<
950
949
  GetDataSourceCommandOutput,
951
- | Cause.TimeoutException
950
+ | Cause.TimeoutError
952
951
  | SdkError
953
952
  | AccessDeniedError
954
953
  | InternalServerError
@@ -965,7 +964,7 @@ interface BedrockAgentService$ {
965
964
  options?: HttpHandlerOptions,
966
965
  ): Effect.Effect<
967
966
  GetFlowCommandOutput,
968
- | Cause.TimeoutException
967
+ | Cause.TimeoutError
969
968
  | SdkError
970
969
  | AccessDeniedError
971
970
  | InternalServerError
@@ -982,7 +981,7 @@ interface BedrockAgentService$ {
982
981
  options?: HttpHandlerOptions,
983
982
  ): Effect.Effect<
984
983
  GetFlowAliasCommandOutput,
985
- | Cause.TimeoutException
984
+ | Cause.TimeoutError
986
985
  | SdkError
987
986
  | AccessDeniedError
988
987
  | InternalServerError
@@ -999,7 +998,7 @@ interface BedrockAgentService$ {
999
998
  options?: HttpHandlerOptions,
1000
999
  ): Effect.Effect<
1001
1000
  GetFlowVersionCommandOutput,
1002
- | Cause.TimeoutException
1001
+ | Cause.TimeoutError
1003
1002
  | SdkError
1004
1003
  | AccessDeniedError
1005
1004
  | InternalServerError
@@ -1016,7 +1015,7 @@ interface BedrockAgentService$ {
1016
1015
  options?: HttpHandlerOptions,
1017
1016
  ): Effect.Effect<
1018
1017
  GetIngestionJobCommandOutput,
1019
- | Cause.TimeoutException
1018
+ | Cause.TimeoutError
1020
1019
  | SdkError
1021
1020
  | AccessDeniedError
1022
1021
  | InternalServerError
@@ -1033,7 +1032,7 @@ interface BedrockAgentService$ {
1033
1032
  options?: HttpHandlerOptions,
1034
1033
  ): Effect.Effect<
1035
1034
  GetKnowledgeBaseCommandOutput,
1036
- | Cause.TimeoutException
1035
+ | Cause.TimeoutError
1037
1036
  | SdkError
1038
1037
  | AccessDeniedError
1039
1038
  | InternalServerError
@@ -1050,7 +1049,7 @@ interface BedrockAgentService$ {
1050
1049
  options?: HttpHandlerOptions,
1051
1050
  ): Effect.Effect<
1052
1051
  GetKnowledgeBaseDocumentsCommandOutput,
1053
- | Cause.TimeoutException
1052
+ | Cause.TimeoutError
1054
1053
  | SdkError
1055
1054
  | AccessDeniedError
1056
1055
  | InternalServerError
@@ -1068,7 +1067,7 @@ interface BedrockAgentService$ {
1068
1067
  options?: HttpHandlerOptions,
1069
1068
  ): Effect.Effect<
1070
1069
  GetPromptCommandOutput,
1071
- | Cause.TimeoutException
1070
+ | Cause.TimeoutError
1072
1071
  | SdkError
1073
1072
  | AccessDeniedError
1074
1073
  | InternalServerError
@@ -1085,7 +1084,7 @@ interface BedrockAgentService$ {
1085
1084
  options?: HttpHandlerOptions,
1086
1085
  ): Effect.Effect<
1087
1086
  GetResourcePolicyCommandOutput,
1088
- | Cause.TimeoutException
1087
+ | Cause.TimeoutError
1089
1088
  | SdkError
1090
1089
  | AccessDeniedError
1091
1090
  | InternalServerError
@@ -1102,7 +1101,7 @@ interface BedrockAgentService$ {
1102
1101
  options?: HttpHandlerOptions,
1103
1102
  ): Effect.Effect<
1104
1103
  IngestKnowledgeBaseDocumentsCommandOutput,
1105
- | Cause.TimeoutException
1104
+ | Cause.TimeoutError
1106
1105
  | SdkError
1107
1106
  | AccessDeniedError
1108
1107
  | InternalServerError
@@ -1120,7 +1119,7 @@ interface BedrockAgentService$ {
1120
1119
  options?: HttpHandlerOptions,
1121
1120
  ): Effect.Effect<
1122
1121
  ListAgentActionGroupsCommandOutput,
1123
- | Cause.TimeoutException
1122
+ | Cause.TimeoutError
1124
1123
  | SdkError
1125
1124
  | AccessDeniedError
1126
1125
  | InternalServerError
@@ -1134,7 +1133,7 @@ interface BedrockAgentService$ {
1134
1133
  options?: HttpHandlerOptions,
1135
1134
  ): Stream.Stream<
1136
1135
  ListAgentActionGroupsCommandOutput,
1137
- | Cause.TimeoutException
1136
+ | Cause.TimeoutError
1138
1137
  | SdkError
1139
1138
  | AccessDeniedError
1140
1139
  | InternalServerError
@@ -1151,7 +1150,7 @@ interface BedrockAgentService$ {
1151
1150
  options?: HttpHandlerOptions,
1152
1151
  ): Effect.Effect<
1153
1152
  ListAgentAliasesCommandOutput,
1154
- | Cause.TimeoutException
1153
+ | Cause.TimeoutError
1155
1154
  | SdkError
1156
1155
  | AccessDeniedError
1157
1156
  | InternalServerError
@@ -1165,7 +1164,7 @@ interface BedrockAgentService$ {
1165
1164
  options?: HttpHandlerOptions,
1166
1165
  ): Stream.Stream<
1167
1166
  ListAgentAliasesCommandOutput,
1168
- | Cause.TimeoutException
1167
+ | Cause.TimeoutError
1169
1168
  | SdkError
1170
1169
  | AccessDeniedError
1171
1170
  | InternalServerError
@@ -1182,7 +1181,7 @@ interface BedrockAgentService$ {
1182
1181
  options?: HttpHandlerOptions,
1183
1182
  ): Effect.Effect<
1184
1183
  ListAgentCollaboratorsCommandOutput,
1185
- | Cause.TimeoutException
1184
+ | Cause.TimeoutError
1186
1185
  | SdkError
1187
1186
  | AccessDeniedError
1188
1187
  | InternalServerError
@@ -1196,7 +1195,7 @@ interface BedrockAgentService$ {
1196
1195
  options?: HttpHandlerOptions,
1197
1196
  ): Stream.Stream<
1198
1197
  ListAgentCollaboratorsCommandOutput,
1199
- | Cause.TimeoutException
1198
+ | Cause.TimeoutError
1200
1199
  | SdkError
1201
1200
  | AccessDeniedError
1202
1201
  | InternalServerError
@@ -1213,7 +1212,7 @@ interface BedrockAgentService$ {
1213
1212
  options?: HttpHandlerOptions,
1214
1213
  ): Effect.Effect<
1215
1214
  ListAgentKnowledgeBasesCommandOutput,
1216
- | Cause.TimeoutException
1215
+ | Cause.TimeoutError
1217
1216
  | SdkError
1218
1217
  | AccessDeniedError
1219
1218
  | InternalServerError
@@ -1227,7 +1226,7 @@ interface BedrockAgentService$ {
1227
1226
  options?: HttpHandlerOptions,
1228
1227
  ): Stream.Stream<
1229
1228
  ListAgentKnowledgeBasesCommandOutput,
1230
- | Cause.TimeoutException
1229
+ | Cause.TimeoutError
1231
1230
  | SdkError
1232
1231
  | AccessDeniedError
1233
1232
  | InternalServerError
@@ -1244,7 +1243,7 @@ interface BedrockAgentService$ {
1244
1243
  options?: HttpHandlerOptions,
1245
1244
  ): Effect.Effect<
1246
1245
  ListAgentVersionsCommandOutput,
1247
- | Cause.TimeoutException
1246
+ | Cause.TimeoutError
1248
1247
  | SdkError
1249
1248
  | AccessDeniedError
1250
1249
  | InternalServerError
@@ -1258,7 +1257,7 @@ interface BedrockAgentService$ {
1258
1257
  options?: HttpHandlerOptions,
1259
1258
  ): Stream.Stream<
1260
1259
  ListAgentVersionsCommandOutput,
1261
- | Cause.TimeoutException
1260
+ | Cause.TimeoutError
1262
1261
  | SdkError
1263
1262
  | AccessDeniedError
1264
1263
  | InternalServerError
@@ -1275,7 +1274,7 @@ interface BedrockAgentService$ {
1275
1274
  options?: HttpHandlerOptions,
1276
1275
  ): Effect.Effect<
1277
1276
  ListAgentsCommandOutput,
1278
- Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError
1277
+ Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError
1279
1278
  >;
1280
1279
 
1281
1280
  listAgentsStream(
@@ -1283,7 +1282,7 @@ interface BedrockAgentService$ {
1283
1282
  options?: HttpHandlerOptions,
1284
1283
  ): Stream.Stream<
1285
1284
  ListAgentsCommandOutput,
1286
- Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError
1285
+ Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError
1287
1286
  >;
1288
1287
 
1289
1288
  /**
@@ -1294,7 +1293,7 @@ interface BedrockAgentService$ {
1294
1293
  options?: HttpHandlerOptions,
1295
1294
  ): Effect.Effect<
1296
1295
  ListDataSourcesCommandOutput,
1297
- | Cause.TimeoutException
1296
+ | Cause.TimeoutError
1298
1297
  | SdkError
1299
1298
  | AccessDeniedError
1300
1299
  | InternalServerError
@@ -1308,7 +1307,7 @@ interface BedrockAgentService$ {
1308
1307
  options?: HttpHandlerOptions,
1309
1308
  ): Stream.Stream<
1310
1309
  ListDataSourcesCommandOutput,
1311
- | Cause.TimeoutException
1310
+ | Cause.TimeoutError
1312
1311
  | SdkError
1313
1312
  | AccessDeniedError
1314
1313
  | InternalServerError
@@ -1325,7 +1324,7 @@ interface BedrockAgentService$ {
1325
1324
  options?: HttpHandlerOptions,
1326
1325
  ): Effect.Effect<
1327
1326
  ListFlowAliasesCommandOutput,
1328
- | Cause.TimeoutException
1327
+ | Cause.TimeoutError
1329
1328
  | SdkError
1330
1329
  | AccessDeniedError
1331
1330
  | InternalServerError
@@ -1339,7 +1338,7 @@ interface BedrockAgentService$ {
1339
1338
  options?: HttpHandlerOptions,
1340
1339
  ): Stream.Stream<
1341
1340
  ListFlowAliasesCommandOutput,
1342
- | Cause.TimeoutException
1341
+ | Cause.TimeoutError
1343
1342
  | SdkError
1344
1343
  | AccessDeniedError
1345
1344
  | InternalServerError
@@ -1356,7 +1355,7 @@ interface BedrockAgentService$ {
1356
1355
  options?: HttpHandlerOptions,
1357
1356
  ): Effect.Effect<
1358
1357
  ListFlowVersionsCommandOutput,
1359
- | Cause.TimeoutException
1358
+ | Cause.TimeoutError
1360
1359
  | SdkError
1361
1360
  | AccessDeniedError
1362
1361
  | InternalServerError
@@ -1370,7 +1369,7 @@ interface BedrockAgentService$ {
1370
1369
  options?: HttpHandlerOptions,
1371
1370
  ): Stream.Stream<
1372
1371
  ListFlowVersionsCommandOutput,
1373
- | Cause.TimeoutException
1372
+ | Cause.TimeoutError
1374
1373
  | SdkError
1375
1374
  | AccessDeniedError
1376
1375
  | InternalServerError
@@ -1387,7 +1386,7 @@ interface BedrockAgentService$ {
1387
1386
  options?: HttpHandlerOptions,
1388
1387
  ): Effect.Effect<
1389
1388
  ListFlowsCommandOutput,
1390
- Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError
1389
+ Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError
1391
1390
  >;
1392
1391
 
1393
1392
  listFlowsStream(
@@ -1395,7 +1394,7 @@ interface BedrockAgentService$ {
1395
1394
  options?: HttpHandlerOptions,
1396
1395
  ): Stream.Stream<
1397
1396
  ListFlowsCommandOutput,
1398
- Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError
1397
+ Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError
1399
1398
  >;
1400
1399
 
1401
1400
  /**
@@ -1406,7 +1405,7 @@ interface BedrockAgentService$ {
1406
1405
  options?: HttpHandlerOptions,
1407
1406
  ): Effect.Effect<
1408
1407
  ListIngestionJobsCommandOutput,
1409
- | Cause.TimeoutException
1408
+ | Cause.TimeoutError
1410
1409
  | SdkError
1411
1410
  | AccessDeniedError
1412
1411
  | InternalServerError
@@ -1420,7 +1419,7 @@ interface BedrockAgentService$ {
1420
1419
  options?: HttpHandlerOptions,
1421
1420
  ): Stream.Stream<
1422
1421
  ListIngestionJobsCommandOutput,
1423
- | Cause.TimeoutException
1422
+ | Cause.TimeoutError
1424
1423
  | SdkError
1425
1424
  | AccessDeniedError
1426
1425
  | InternalServerError
@@ -1437,7 +1436,7 @@ interface BedrockAgentService$ {
1437
1436
  options?: HttpHandlerOptions,
1438
1437
  ): Effect.Effect<
1439
1438
  ListKnowledgeBaseDocumentsCommandOutput,
1440
- | Cause.TimeoutException
1439
+ | Cause.TimeoutError
1441
1440
  | SdkError
1442
1441
  | AccessDeniedError
1443
1442
  | InternalServerError
@@ -1452,7 +1451,7 @@ interface BedrockAgentService$ {
1452
1451
  options?: HttpHandlerOptions,
1453
1452
  ): Stream.Stream<
1454
1453
  ListKnowledgeBaseDocumentsCommandOutput,
1455
- | Cause.TimeoutException
1454
+ | Cause.TimeoutError
1456
1455
  | SdkError
1457
1456
  | AccessDeniedError
1458
1457
  | InternalServerError
@@ -1470,7 +1469,7 @@ interface BedrockAgentService$ {
1470
1469
  options?: HttpHandlerOptions,
1471
1470
  ): Effect.Effect<
1472
1471
  ListKnowledgeBasesCommandOutput,
1473
- Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError
1472
+ Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError
1474
1473
  >;
1475
1474
 
1476
1475
  listKnowledgeBasesStream(
@@ -1478,7 +1477,7 @@ interface BedrockAgentService$ {
1478
1477
  options?: HttpHandlerOptions,
1479
1478
  ): Stream.Stream<
1480
1479
  ListKnowledgeBasesCommandOutput,
1481
- Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError
1480
+ Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError
1482
1481
  >;
1483
1482
 
1484
1483
  /**
@@ -1489,7 +1488,7 @@ interface BedrockAgentService$ {
1489
1488
  options?: HttpHandlerOptions,
1490
1489
  ): Effect.Effect<
1491
1490
  ListPromptsCommandOutput,
1492
- | Cause.TimeoutException
1491
+ | Cause.TimeoutError
1493
1492
  | SdkError
1494
1493
  | AccessDeniedError
1495
1494
  | InternalServerError
@@ -1503,7 +1502,7 @@ interface BedrockAgentService$ {
1503
1502
  options?: HttpHandlerOptions,
1504
1503
  ): Stream.Stream<
1505
1504
  ListPromptsCommandOutput,
1506
- | Cause.TimeoutException
1505
+ | Cause.TimeoutError
1507
1506
  | SdkError
1508
1507
  | AccessDeniedError
1509
1508
  | InternalServerError
@@ -1520,7 +1519,7 @@ interface BedrockAgentService$ {
1520
1519
  options?: HttpHandlerOptions,
1521
1520
  ): Effect.Effect<
1522
1521
  ListTagsForResourceCommandOutput,
1523
- | Cause.TimeoutException
1522
+ | Cause.TimeoutError
1524
1523
  | SdkError
1525
1524
  | AccessDeniedError
1526
1525
  | InternalServerError
@@ -1537,7 +1536,7 @@ interface BedrockAgentService$ {
1537
1536
  options?: HttpHandlerOptions,
1538
1537
  ): Effect.Effect<
1539
1538
  PrepareAgentCommandOutput,
1540
- | Cause.TimeoutException
1539
+ | Cause.TimeoutError
1541
1540
  | SdkError
1542
1541
  | AccessDeniedError
1543
1542
  | ConflictError
@@ -1556,7 +1555,7 @@ interface BedrockAgentService$ {
1556
1555
  options?: HttpHandlerOptions,
1557
1556
  ): Effect.Effect<
1558
1557
  PrepareFlowCommandOutput,
1559
- | Cause.TimeoutException
1558
+ | Cause.TimeoutError
1560
1559
  | SdkError
1561
1560
  | AccessDeniedError
1562
1561
  | ConflictError
@@ -1575,7 +1574,7 @@ interface BedrockAgentService$ {
1575
1574
  options?: HttpHandlerOptions,
1576
1575
  ): Effect.Effect<
1577
1576
  PutResourcePolicyCommandOutput,
1578
- | Cause.TimeoutException
1577
+ | Cause.TimeoutError
1579
1578
  | SdkError
1580
1579
  | AccessDeniedError
1581
1580
  | ConflictError
@@ -1593,7 +1592,7 @@ interface BedrockAgentService$ {
1593
1592
  options?: HttpHandlerOptions,
1594
1593
  ): Effect.Effect<
1595
1594
  StartIngestionJobCommandOutput,
1596
- | Cause.TimeoutException
1595
+ | Cause.TimeoutError
1597
1596
  | SdkError
1598
1597
  | AccessDeniedError
1599
1598
  | ConflictError
@@ -1612,7 +1611,7 @@ interface BedrockAgentService$ {
1612
1611
  options?: HttpHandlerOptions,
1613
1612
  ): Effect.Effect<
1614
1613
  StopIngestionJobCommandOutput,
1615
- | Cause.TimeoutException
1614
+ | Cause.TimeoutError
1616
1615
  | SdkError
1617
1616
  | AccessDeniedError
1618
1617
  | ConflictError
@@ -1630,7 +1629,7 @@ interface BedrockAgentService$ {
1630
1629
  options?: HttpHandlerOptions,
1631
1630
  ): Effect.Effect<
1632
1631
  TagResourceCommandOutput,
1633
- | Cause.TimeoutException
1632
+ | Cause.TimeoutError
1634
1633
  | SdkError
1635
1634
  | AccessDeniedError
1636
1635
  | InternalServerError
@@ -1648,7 +1647,7 @@ interface BedrockAgentService$ {
1648
1647
  options?: HttpHandlerOptions,
1649
1648
  ): Effect.Effect<
1650
1649
  UntagResourceCommandOutput,
1651
- | Cause.TimeoutException
1650
+ | Cause.TimeoutError
1652
1651
  | SdkError
1653
1652
  | AccessDeniedError
1654
1653
  | InternalServerError
@@ -1665,7 +1664,7 @@ interface BedrockAgentService$ {
1665
1664
  options?: HttpHandlerOptions,
1666
1665
  ): Effect.Effect<
1667
1666
  UpdateAgentCommandOutput,
1668
- | Cause.TimeoutException
1667
+ | Cause.TimeoutError
1669
1668
  | SdkError
1670
1669
  | AccessDeniedError
1671
1670
  | ConflictError
@@ -1684,7 +1683,7 @@ interface BedrockAgentService$ {
1684
1683
  options?: HttpHandlerOptions,
1685
1684
  ): Effect.Effect<
1686
1685
  UpdateAgentActionGroupCommandOutput,
1687
- | Cause.TimeoutException
1686
+ | Cause.TimeoutError
1688
1687
  | SdkError
1689
1688
  | AccessDeniedError
1690
1689
  | ConflictError
@@ -1703,7 +1702,7 @@ interface BedrockAgentService$ {
1703
1702
  options?: HttpHandlerOptions,
1704
1703
  ): Effect.Effect<
1705
1704
  UpdateAgentAliasCommandOutput,
1706
- | Cause.TimeoutException
1705
+ | Cause.TimeoutError
1707
1706
  | SdkError
1708
1707
  | AccessDeniedError
1709
1708
  | ConflictError
@@ -1722,7 +1721,7 @@ interface BedrockAgentService$ {
1722
1721
  options?: HttpHandlerOptions,
1723
1722
  ): Effect.Effect<
1724
1723
  UpdateAgentCollaboratorCommandOutput,
1725
- | Cause.TimeoutException
1724
+ | Cause.TimeoutError
1726
1725
  | SdkError
1727
1726
  | AccessDeniedError
1728
1727
  | ConflictError
@@ -1741,7 +1740,7 @@ interface BedrockAgentService$ {
1741
1740
  options?: HttpHandlerOptions,
1742
1741
  ): Effect.Effect<
1743
1742
  UpdateAgentKnowledgeBaseCommandOutput,
1744
- | Cause.TimeoutException
1743
+ | Cause.TimeoutError
1745
1744
  | SdkError
1746
1745
  | AccessDeniedError
1747
1746
  | ConflictError
@@ -1759,7 +1758,7 @@ interface BedrockAgentService$ {
1759
1758
  options?: HttpHandlerOptions,
1760
1759
  ): Effect.Effect<
1761
1760
  UpdateDataSourceCommandOutput,
1762
- | Cause.TimeoutException
1761
+ | Cause.TimeoutError
1763
1762
  | SdkError
1764
1763
  | AccessDeniedError
1765
1764
  | ConflictError
@@ -1777,7 +1776,7 @@ interface BedrockAgentService$ {
1777
1776
  options?: HttpHandlerOptions,
1778
1777
  ): Effect.Effect<
1779
1778
  UpdateFlowCommandOutput,
1780
- | Cause.TimeoutException
1779
+ | Cause.TimeoutError
1781
1780
  | SdkError
1782
1781
  | AccessDeniedError
1783
1782
  | ConflictError
@@ -1796,7 +1795,7 @@ interface BedrockAgentService$ {
1796
1795
  options?: HttpHandlerOptions,
1797
1796
  ): Effect.Effect<
1798
1797
  UpdateFlowAliasCommandOutput,
1799
- | Cause.TimeoutException
1798
+ | Cause.TimeoutError
1800
1799
  | SdkError
1801
1800
  | AccessDeniedError
1802
1801
  | ConflictError
@@ -1815,7 +1814,7 @@ interface BedrockAgentService$ {
1815
1814
  options?: HttpHandlerOptions,
1816
1815
  ): Effect.Effect<
1817
1816
  UpdateKnowledgeBaseCommandOutput,
1818
- | Cause.TimeoutException
1817
+ | Cause.TimeoutError
1819
1818
  | SdkError
1820
1819
  | AccessDeniedError
1821
1820
  | ConflictError
@@ -1833,7 +1832,7 @@ interface BedrockAgentService$ {
1833
1832
  options?: HttpHandlerOptions,
1834
1833
  ): Effect.Effect<
1835
1834
  UpdatePromptCommandOutput,
1836
- | Cause.TimeoutException
1835
+ | Cause.TimeoutError
1837
1836
  | SdkError
1838
1837
  | AccessDeniedError
1839
1838
  | ConflictError
@@ -1852,7 +1851,7 @@ interface BedrockAgentService$ {
1852
1851
  options?: HttpHandlerOptions,
1853
1852
  ): Effect.Effect<
1854
1853
  ValidateFlowDefinitionCommandOutput,
1855
- Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError
1854
+ Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError
1856
1855
  >;
1857
1856
  }
1858
1857
 
@@ -1878,10 +1877,10 @@ export const makeBedrockAgentService = Effect.gen(function*() {
1878
1877
  * @since 1.0.0
1879
1878
  * @category models
1880
1879
  */
1881
- export class BedrockAgentService extends Effect.Tag("@effect-aws/client-bedrock-agent/BedrockAgentService")<
1880
+ export class BedrockAgentService extends Context.Service<
1882
1881
  BedrockAgentService,
1883
1882
  BedrockAgentService$
1884
- >() {
1883
+ >()("@effect-aws/client-bedrock-agent/BedrockAgentService") {
1885
1884
  static readonly defaultLayer = Layer.effect(this, makeBedrockAgentService).pipe(Layer.provide(Instance.layer));
1886
1885
  static readonly layer = (config: BedrockAgentService.Config) =>
1887
1886
  Layer.effect(this, makeBedrockAgentService).pipe(