@effect-aws/client-bedrock 1.9.5 → 1.10.2
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/BedrockService.d.ts +63 -62
- package/dist/cjs/BedrockService.d.ts.map +1 -1
- package/dist/cjs/BedrockService.js +1 -1
- package/dist/cjs/BedrockService.js.map +1 -1
- package/dist/cjs/Errors.d.ts +3 -3
- package/dist/cjs/Errors.d.ts.map +1 -1
- package/dist/cjs/Errors.js +1 -3
- package/dist/cjs/Errors.js.map +1 -1
- package/dist/dts/BedrockService.d.ts +63 -62
- package/dist/dts/BedrockService.d.ts.map +1 -1
- package/dist/dts/Errors.d.ts +3 -3
- package/dist/dts/Errors.d.ts.map +1 -1
- package/dist/esm/BedrockService.js +1 -1
- package/dist/esm/BedrockService.js.map +1 -1
- package/dist/esm/Errors.js +0 -2
- package/dist/esm/Errors.js.map +1 -1
- package/package.json +2 -2
- package/src/BedrockService.ts +194 -37
- package/src/Errors.ts +1 -4
package/src/BedrockService.ts
CHANGED
|
@@ -182,8 +182,9 @@ import {
|
|
|
182
182
|
type UpdateProvisionedModelThroughputCommandInput,
|
|
183
183
|
type UpdateProvisionedModelThroughputCommandOutput,
|
|
184
184
|
} from "@aws-sdk/client-bedrock";
|
|
185
|
-
import type { HttpHandlerOptions,
|
|
185
|
+
import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons";
|
|
186
186
|
import { Service } from "@effect-aws/commons";
|
|
187
|
+
import type { Cause } from "effect";
|
|
187
188
|
import { Effect, Layer } from "effect";
|
|
188
189
|
import * as Instance from "./BedrockClientInstance.js";
|
|
189
190
|
import * as BedrockServiceConfig from "./BedrockServiceConfig.js";
|
|
@@ -192,6 +193,7 @@ import type {
|
|
|
192
193
|
ConflictError,
|
|
193
194
|
InternalServerError,
|
|
194
195
|
ResourceNotFoundError,
|
|
196
|
+
SdkError,
|
|
195
197
|
ServiceQuotaExceededError,
|
|
196
198
|
ServiceUnavailableError,
|
|
197
199
|
ThrottlingError,
|
|
@@ -273,6 +275,7 @@ interface BedrockService$ {
|
|
|
273
275
|
options?: HttpHandlerOptions,
|
|
274
276
|
): Effect.Effect<
|
|
275
277
|
BatchDeleteEvaluationJobCommandOutput,
|
|
278
|
+
| Cause.TimeoutException
|
|
276
279
|
| SdkError
|
|
277
280
|
| AccessDeniedError
|
|
278
281
|
| ConflictError
|
|
@@ -290,6 +293,7 @@ interface BedrockService$ {
|
|
|
290
293
|
options?: HttpHandlerOptions,
|
|
291
294
|
): Effect.Effect<
|
|
292
295
|
CreateEvaluationJobCommandOutput,
|
|
296
|
+
| Cause.TimeoutException
|
|
293
297
|
| SdkError
|
|
294
298
|
| AccessDeniedError
|
|
295
299
|
| ConflictError
|
|
@@ -308,6 +312,7 @@ interface BedrockService$ {
|
|
|
308
312
|
options?: HttpHandlerOptions,
|
|
309
313
|
): Effect.Effect<
|
|
310
314
|
CreateGuardrailCommandOutput,
|
|
315
|
+
| Cause.TimeoutException
|
|
311
316
|
| SdkError
|
|
312
317
|
| AccessDeniedError
|
|
313
318
|
| ConflictError
|
|
@@ -327,6 +332,7 @@ interface BedrockService$ {
|
|
|
327
332
|
options?: HttpHandlerOptions,
|
|
328
333
|
): Effect.Effect<
|
|
329
334
|
CreateGuardrailVersionCommandOutput,
|
|
335
|
+
| Cause.TimeoutException
|
|
330
336
|
| SdkError
|
|
331
337
|
| AccessDeniedError
|
|
332
338
|
| ConflictError
|
|
@@ -345,6 +351,7 @@ interface BedrockService$ {
|
|
|
345
351
|
options?: HttpHandlerOptions,
|
|
346
352
|
): Effect.Effect<
|
|
347
353
|
CreateInferenceProfileCommandOutput,
|
|
354
|
+
| Cause.TimeoutException
|
|
348
355
|
| SdkError
|
|
349
356
|
| AccessDeniedError
|
|
350
357
|
| ConflictError
|
|
@@ -364,6 +371,7 @@ interface BedrockService$ {
|
|
|
364
371
|
options?: HttpHandlerOptions,
|
|
365
372
|
): Effect.Effect<
|
|
366
373
|
CreateMarketplaceModelEndpointCommandOutput,
|
|
374
|
+
| Cause.TimeoutException
|
|
367
375
|
| SdkError
|
|
368
376
|
| AccessDeniedError
|
|
369
377
|
| ConflictError
|
|
@@ -382,7 +390,12 @@ interface BedrockService$ {
|
|
|
382
390
|
options?: HttpHandlerOptions,
|
|
383
391
|
): Effect.Effect<
|
|
384
392
|
CreateModelCopyJobCommandOutput,
|
|
385
|
-
|
|
393
|
+
| Cause.TimeoutException
|
|
394
|
+
| SdkError
|
|
395
|
+
| AccessDeniedError
|
|
396
|
+
| InternalServerError
|
|
397
|
+
| ResourceNotFoundError
|
|
398
|
+
| TooManyTagsError
|
|
386
399
|
>;
|
|
387
400
|
|
|
388
401
|
/**
|
|
@@ -393,6 +406,7 @@ interface BedrockService$ {
|
|
|
393
406
|
options?: HttpHandlerOptions,
|
|
394
407
|
): Effect.Effect<
|
|
395
408
|
CreateModelCustomizationJobCommandOutput,
|
|
409
|
+
| Cause.TimeoutException
|
|
396
410
|
| SdkError
|
|
397
411
|
| AccessDeniedError
|
|
398
412
|
| ConflictError
|
|
@@ -412,6 +426,7 @@ interface BedrockService$ {
|
|
|
412
426
|
options?: HttpHandlerOptions,
|
|
413
427
|
): Effect.Effect<
|
|
414
428
|
CreateModelImportJobCommandOutput,
|
|
429
|
+
| Cause.TimeoutException
|
|
415
430
|
| SdkError
|
|
416
431
|
| AccessDeniedError
|
|
417
432
|
| ConflictError
|
|
@@ -431,6 +446,7 @@ interface BedrockService$ {
|
|
|
431
446
|
options?: HttpHandlerOptions,
|
|
432
447
|
): Effect.Effect<
|
|
433
448
|
CreateModelInvocationJobCommandOutput,
|
|
449
|
+
| Cause.TimeoutException
|
|
434
450
|
| SdkError
|
|
435
451
|
| AccessDeniedError
|
|
436
452
|
| ConflictError
|
|
@@ -449,6 +465,7 @@ interface BedrockService$ {
|
|
|
449
465
|
options?: HttpHandlerOptions,
|
|
450
466
|
): Effect.Effect<
|
|
451
467
|
CreatePromptRouterCommandOutput,
|
|
468
|
+
| Cause.TimeoutException
|
|
452
469
|
| SdkError
|
|
453
470
|
| AccessDeniedError
|
|
454
471
|
| ConflictError
|
|
@@ -468,6 +485,7 @@ interface BedrockService$ {
|
|
|
468
485
|
options?: HttpHandlerOptions,
|
|
469
486
|
): Effect.Effect<
|
|
470
487
|
CreateProvisionedModelThroughputCommandOutput,
|
|
488
|
+
| Cause.TimeoutException
|
|
471
489
|
| SdkError
|
|
472
490
|
| AccessDeniedError
|
|
473
491
|
| InternalServerError
|
|
@@ -486,6 +504,7 @@ interface BedrockService$ {
|
|
|
486
504
|
options?: HttpHandlerOptions,
|
|
487
505
|
): Effect.Effect<
|
|
488
506
|
DeleteCustomModelCommandOutput,
|
|
507
|
+
| Cause.TimeoutException
|
|
489
508
|
| SdkError
|
|
490
509
|
| AccessDeniedError
|
|
491
510
|
| ConflictError
|
|
@@ -503,6 +522,7 @@ interface BedrockService$ {
|
|
|
503
522
|
options?: HttpHandlerOptions,
|
|
504
523
|
): Effect.Effect<
|
|
505
524
|
DeleteGuardrailCommandOutput,
|
|
525
|
+
| Cause.TimeoutException
|
|
506
526
|
| SdkError
|
|
507
527
|
| AccessDeniedError
|
|
508
528
|
| ConflictError
|
|
@@ -520,6 +540,7 @@ interface BedrockService$ {
|
|
|
520
540
|
options?: HttpHandlerOptions,
|
|
521
541
|
): Effect.Effect<
|
|
522
542
|
DeleteImportedModelCommandOutput,
|
|
543
|
+
| Cause.TimeoutException
|
|
523
544
|
| SdkError
|
|
524
545
|
| AccessDeniedError
|
|
525
546
|
| ConflictError
|
|
@@ -537,6 +558,7 @@ interface BedrockService$ {
|
|
|
537
558
|
options?: HttpHandlerOptions,
|
|
538
559
|
): Effect.Effect<
|
|
539
560
|
DeleteInferenceProfileCommandOutput,
|
|
561
|
+
| Cause.TimeoutException
|
|
540
562
|
| SdkError
|
|
541
563
|
| AccessDeniedError
|
|
542
564
|
| ConflictError
|
|
@@ -554,7 +576,13 @@ interface BedrockService$ {
|
|
|
554
576
|
options?: HttpHandlerOptions,
|
|
555
577
|
): Effect.Effect<
|
|
556
578
|
DeleteMarketplaceModelEndpointCommandOutput,
|
|
557
|
-
|
|
579
|
+
| Cause.TimeoutException
|
|
580
|
+
| SdkError
|
|
581
|
+
| AccessDeniedError
|
|
582
|
+
| InternalServerError
|
|
583
|
+
| ResourceNotFoundError
|
|
584
|
+
| ThrottlingError
|
|
585
|
+
| ValidationError
|
|
558
586
|
>;
|
|
559
587
|
|
|
560
588
|
/**
|
|
@@ -565,7 +593,7 @@ interface BedrockService$ {
|
|
|
565
593
|
options?: HttpHandlerOptions,
|
|
566
594
|
): Effect.Effect<
|
|
567
595
|
DeleteModelInvocationLoggingConfigurationCommandOutput,
|
|
568
|
-
SdkError | AccessDeniedError | InternalServerError | ThrottlingError
|
|
596
|
+
Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ThrottlingError
|
|
569
597
|
>;
|
|
570
598
|
|
|
571
599
|
/**
|
|
@@ -576,7 +604,13 @@ interface BedrockService$ {
|
|
|
576
604
|
options?: HttpHandlerOptions,
|
|
577
605
|
): Effect.Effect<
|
|
578
606
|
DeletePromptRouterCommandOutput,
|
|
579
|
-
|
|
607
|
+
| Cause.TimeoutException
|
|
608
|
+
| SdkError
|
|
609
|
+
| AccessDeniedError
|
|
610
|
+
| InternalServerError
|
|
611
|
+
| ResourceNotFoundError
|
|
612
|
+
| ThrottlingError
|
|
613
|
+
| ValidationError
|
|
580
614
|
>;
|
|
581
615
|
|
|
582
616
|
/**
|
|
@@ -587,6 +621,7 @@ interface BedrockService$ {
|
|
|
587
621
|
options?: HttpHandlerOptions,
|
|
588
622
|
): Effect.Effect<
|
|
589
623
|
DeleteProvisionedModelThroughputCommandOutput,
|
|
624
|
+
| Cause.TimeoutException
|
|
590
625
|
| SdkError
|
|
591
626
|
| AccessDeniedError
|
|
592
627
|
| ConflictError
|
|
@@ -604,6 +639,7 @@ interface BedrockService$ {
|
|
|
604
639
|
options?: HttpHandlerOptions,
|
|
605
640
|
): Effect.Effect<
|
|
606
641
|
DeregisterMarketplaceModelEndpointCommandOutput,
|
|
642
|
+
| Cause.TimeoutException
|
|
607
643
|
| SdkError
|
|
608
644
|
| AccessDeniedError
|
|
609
645
|
| InternalServerError
|
|
@@ -621,7 +657,13 @@ interface BedrockService$ {
|
|
|
621
657
|
options?: HttpHandlerOptions,
|
|
622
658
|
): Effect.Effect<
|
|
623
659
|
GetCustomModelCommandOutput,
|
|
624
|
-
|
|
660
|
+
| Cause.TimeoutException
|
|
661
|
+
| SdkError
|
|
662
|
+
| AccessDeniedError
|
|
663
|
+
| InternalServerError
|
|
664
|
+
| ResourceNotFoundError
|
|
665
|
+
| ThrottlingError
|
|
666
|
+
| ValidationError
|
|
625
667
|
>;
|
|
626
668
|
|
|
627
669
|
/**
|
|
@@ -632,7 +674,13 @@ interface BedrockService$ {
|
|
|
632
674
|
options?: HttpHandlerOptions,
|
|
633
675
|
): Effect.Effect<
|
|
634
676
|
GetEvaluationJobCommandOutput,
|
|
635
|
-
|
|
677
|
+
| Cause.TimeoutException
|
|
678
|
+
| SdkError
|
|
679
|
+
| AccessDeniedError
|
|
680
|
+
| InternalServerError
|
|
681
|
+
| ResourceNotFoundError
|
|
682
|
+
| ThrottlingError
|
|
683
|
+
| ValidationError
|
|
636
684
|
>;
|
|
637
685
|
|
|
638
686
|
/**
|
|
@@ -643,7 +691,13 @@ interface BedrockService$ {
|
|
|
643
691
|
options?: HttpHandlerOptions,
|
|
644
692
|
): Effect.Effect<
|
|
645
693
|
GetFoundationModelCommandOutput,
|
|
646
|
-
|
|
694
|
+
| Cause.TimeoutException
|
|
695
|
+
| SdkError
|
|
696
|
+
| AccessDeniedError
|
|
697
|
+
| InternalServerError
|
|
698
|
+
| ResourceNotFoundError
|
|
699
|
+
| ThrottlingError
|
|
700
|
+
| ValidationError
|
|
647
701
|
>;
|
|
648
702
|
|
|
649
703
|
/**
|
|
@@ -654,7 +708,13 @@ interface BedrockService$ {
|
|
|
654
708
|
options?: HttpHandlerOptions,
|
|
655
709
|
): Effect.Effect<
|
|
656
710
|
GetGuardrailCommandOutput,
|
|
657
|
-
|
|
711
|
+
| Cause.TimeoutException
|
|
712
|
+
| SdkError
|
|
713
|
+
| AccessDeniedError
|
|
714
|
+
| InternalServerError
|
|
715
|
+
| ResourceNotFoundError
|
|
716
|
+
| ThrottlingError
|
|
717
|
+
| ValidationError
|
|
658
718
|
>;
|
|
659
719
|
|
|
660
720
|
/**
|
|
@@ -665,7 +725,13 @@ interface BedrockService$ {
|
|
|
665
725
|
options?: HttpHandlerOptions,
|
|
666
726
|
): Effect.Effect<
|
|
667
727
|
GetImportedModelCommandOutput,
|
|
668
|
-
|
|
728
|
+
| Cause.TimeoutException
|
|
729
|
+
| SdkError
|
|
730
|
+
| AccessDeniedError
|
|
731
|
+
| InternalServerError
|
|
732
|
+
| ResourceNotFoundError
|
|
733
|
+
| ThrottlingError
|
|
734
|
+
| ValidationError
|
|
669
735
|
>;
|
|
670
736
|
|
|
671
737
|
/**
|
|
@@ -676,7 +742,13 @@ interface BedrockService$ {
|
|
|
676
742
|
options?: HttpHandlerOptions,
|
|
677
743
|
): Effect.Effect<
|
|
678
744
|
GetInferenceProfileCommandOutput,
|
|
679
|
-
|
|
745
|
+
| Cause.TimeoutException
|
|
746
|
+
| SdkError
|
|
747
|
+
| AccessDeniedError
|
|
748
|
+
| InternalServerError
|
|
749
|
+
| ResourceNotFoundError
|
|
750
|
+
| ThrottlingError
|
|
751
|
+
| ValidationError
|
|
680
752
|
>;
|
|
681
753
|
|
|
682
754
|
/**
|
|
@@ -687,7 +759,13 @@ interface BedrockService$ {
|
|
|
687
759
|
options?: HttpHandlerOptions,
|
|
688
760
|
): Effect.Effect<
|
|
689
761
|
GetMarketplaceModelEndpointCommandOutput,
|
|
690
|
-
|
|
762
|
+
| Cause.TimeoutException
|
|
763
|
+
| SdkError
|
|
764
|
+
| AccessDeniedError
|
|
765
|
+
| InternalServerError
|
|
766
|
+
| ResourceNotFoundError
|
|
767
|
+
| ThrottlingError
|
|
768
|
+
| ValidationError
|
|
691
769
|
>;
|
|
692
770
|
|
|
693
771
|
/**
|
|
@@ -698,7 +776,13 @@ interface BedrockService$ {
|
|
|
698
776
|
options?: HttpHandlerOptions,
|
|
699
777
|
): Effect.Effect<
|
|
700
778
|
GetModelCopyJobCommandOutput,
|
|
701
|
-
|
|
779
|
+
| Cause.TimeoutException
|
|
780
|
+
| SdkError
|
|
781
|
+
| AccessDeniedError
|
|
782
|
+
| InternalServerError
|
|
783
|
+
| ResourceNotFoundError
|
|
784
|
+
| ThrottlingError
|
|
785
|
+
| ValidationError
|
|
702
786
|
>;
|
|
703
787
|
|
|
704
788
|
/**
|
|
@@ -709,7 +793,13 @@ interface BedrockService$ {
|
|
|
709
793
|
options?: HttpHandlerOptions,
|
|
710
794
|
): Effect.Effect<
|
|
711
795
|
GetModelCustomizationJobCommandOutput,
|
|
712
|
-
|
|
796
|
+
| Cause.TimeoutException
|
|
797
|
+
| SdkError
|
|
798
|
+
| AccessDeniedError
|
|
799
|
+
| InternalServerError
|
|
800
|
+
| ResourceNotFoundError
|
|
801
|
+
| ThrottlingError
|
|
802
|
+
| ValidationError
|
|
713
803
|
>;
|
|
714
804
|
|
|
715
805
|
/**
|
|
@@ -720,7 +810,13 @@ interface BedrockService$ {
|
|
|
720
810
|
options?: HttpHandlerOptions,
|
|
721
811
|
): Effect.Effect<
|
|
722
812
|
GetModelImportJobCommandOutput,
|
|
723
|
-
|
|
813
|
+
| Cause.TimeoutException
|
|
814
|
+
| SdkError
|
|
815
|
+
| AccessDeniedError
|
|
816
|
+
| InternalServerError
|
|
817
|
+
| ResourceNotFoundError
|
|
818
|
+
| ThrottlingError
|
|
819
|
+
| ValidationError
|
|
724
820
|
>;
|
|
725
821
|
|
|
726
822
|
/**
|
|
@@ -731,7 +827,13 @@ interface BedrockService$ {
|
|
|
731
827
|
options?: HttpHandlerOptions,
|
|
732
828
|
): Effect.Effect<
|
|
733
829
|
GetModelInvocationJobCommandOutput,
|
|
734
|
-
|
|
830
|
+
| Cause.TimeoutException
|
|
831
|
+
| SdkError
|
|
832
|
+
| AccessDeniedError
|
|
833
|
+
| InternalServerError
|
|
834
|
+
| ResourceNotFoundError
|
|
835
|
+
| ThrottlingError
|
|
836
|
+
| ValidationError
|
|
735
837
|
>;
|
|
736
838
|
|
|
737
839
|
/**
|
|
@@ -742,7 +844,7 @@ interface BedrockService$ {
|
|
|
742
844
|
options?: HttpHandlerOptions,
|
|
743
845
|
): Effect.Effect<
|
|
744
846
|
GetModelInvocationLoggingConfigurationCommandOutput,
|
|
745
|
-
SdkError | AccessDeniedError | InternalServerError | ThrottlingError
|
|
847
|
+
Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ThrottlingError
|
|
746
848
|
>;
|
|
747
849
|
|
|
748
850
|
/**
|
|
@@ -753,7 +855,13 @@ interface BedrockService$ {
|
|
|
753
855
|
options?: HttpHandlerOptions,
|
|
754
856
|
): Effect.Effect<
|
|
755
857
|
GetPromptRouterCommandOutput,
|
|
756
|
-
|
|
858
|
+
| Cause.TimeoutException
|
|
859
|
+
| SdkError
|
|
860
|
+
| AccessDeniedError
|
|
861
|
+
| InternalServerError
|
|
862
|
+
| ResourceNotFoundError
|
|
863
|
+
| ThrottlingError
|
|
864
|
+
| ValidationError
|
|
757
865
|
>;
|
|
758
866
|
|
|
759
867
|
/**
|
|
@@ -764,7 +872,13 @@ interface BedrockService$ {
|
|
|
764
872
|
options?: HttpHandlerOptions,
|
|
765
873
|
): Effect.Effect<
|
|
766
874
|
GetProvisionedModelThroughputCommandOutput,
|
|
767
|
-
|
|
875
|
+
| Cause.TimeoutException
|
|
876
|
+
| SdkError
|
|
877
|
+
| AccessDeniedError
|
|
878
|
+
| InternalServerError
|
|
879
|
+
| ResourceNotFoundError
|
|
880
|
+
| ThrottlingError
|
|
881
|
+
| ValidationError
|
|
768
882
|
>;
|
|
769
883
|
|
|
770
884
|
/**
|
|
@@ -775,7 +889,7 @@ interface BedrockService$ {
|
|
|
775
889
|
options?: HttpHandlerOptions,
|
|
776
890
|
): Effect.Effect<
|
|
777
891
|
ListCustomModelsCommandOutput,
|
|
778
|
-
SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError
|
|
892
|
+
Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError
|
|
779
893
|
>;
|
|
780
894
|
|
|
781
895
|
/**
|
|
@@ -786,7 +900,7 @@ interface BedrockService$ {
|
|
|
786
900
|
options?: HttpHandlerOptions,
|
|
787
901
|
): Effect.Effect<
|
|
788
902
|
ListEvaluationJobsCommandOutput,
|
|
789
|
-
SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError
|
|
903
|
+
Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError
|
|
790
904
|
>;
|
|
791
905
|
|
|
792
906
|
/**
|
|
@@ -797,7 +911,7 @@ interface BedrockService$ {
|
|
|
797
911
|
options?: HttpHandlerOptions,
|
|
798
912
|
): Effect.Effect<
|
|
799
913
|
ListFoundationModelsCommandOutput,
|
|
800
|
-
SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError
|
|
914
|
+
Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError
|
|
801
915
|
>;
|
|
802
916
|
|
|
803
917
|
/**
|
|
@@ -808,7 +922,13 @@ interface BedrockService$ {
|
|
|
808
922
|
options?: HttpHandlerOptions,
|
|
809
923
|
): Effect.Effect<
|
|
810
924
|
ListGuardrailsCommandOutput,
|
|
811
|
-
|
|
925
|
+
| Cause.TimeoutException
|
|
926
|
+
| SdkError
|
|
927
|
+
| AccessDeniedError
|
|
928
|
+
| InternalServerError
|
|
929
|
+
| ResourceNotFoundError
|
|
930
|
+
| ThrottlingError
|
|
931
|
+
| ValidationError
|
|
812
932
|
>;
|
|
813
933
|
|
|
814
934
|
/**
|
|
@@ -819,7 +939,7 @@ interface BedrockService$ {
|
|
|
819
939
|
options?: HttpHandlerOptions,
|
|
820
940
|
): Effect.Effect<
|
|
821
941
|
ListImportedModelsCommandOutput,
|
|
822
|
-
SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError
|
|
942
|
+
Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError
|
|
823
943
|
>;
|
|
824
944
|
|
|
825
945
|
/**
|
|
@@ -830,7 +950,7 @@ interface BedrockService$ {
|
|
|
830
950
|
options?: HttpHandlerOptions,
|
|
831
951
|
): Effect.Effect<
|
|
832
952
|
ListInferenceProfilesCommandOutput,
|
|
833
|
-
SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError
|
|
953
|
+
Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError
|
|
834
954
|
>;
|
|
835
955
|
|
|
836
956
|
/**
|
|
@@ -841,7 +961,13 @@ interface BedrockService$ {
|
|
|
841
961
|
options?: HttpHandlerOptions,
|
|
842
962
|
): Effect.Effect<
|
|
843
963
|
ListMarketplaceModelEndpointsCommandOutput,
|
|
844
|
-
|
|
964
|
+
| Cause.TimeoutException
|
|
965
|
+
| SdkError
|
|
966
|
+
| AccessDeniedError
|
|
967
|
+
| InternalServerError
|
|
968
|
+
| ResourceNotFoundError
|
|
969
|
+
| ThrottlingError
|
|
970
|
+
| ValidationError
|
|
845
971
|
>;
|
|
846
972
|
|
|
847
973
|
/**
|
|
@@ -852,7 +978,13 @@ interface BedrockService$ {
|
|
|
852
978
|
options?: HttpHandlerOptions,
|
|
853
979
|
): Effect.Effect<
|
|
854
980
|
ListModelCopyJobsCommandOutput,
|
|
855
|
-
|
|
981
|
+
| Cause.TimeoutException
|
|
982
|
+
| SdkError
|
|
983
|
+
| AccessDeniedError
|
|
984
|
+
| InternalServerError
|
|
985
|
+
| ResourceNotFoundError
|
|
986
|
+
| ThrottlingError
|
|
987
|
+
| ValidationError
|
|
856
988
|
>;
|
|
857
989
|
|
|
858
990
|
/**
|
|
@@ -863,7 +995,7 @@ interface BedrockService$ {
|
|
|
863
995
|
options?: HttpHandlerOptions,
|
|
864
996
|
): Effect.Effect<
|
|
865
997
|
ListModelCustomizationJobsCommandOutput,
|
|
866
|
-
SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError
|
|
998
|
+
Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError
|
|
867
999
|
>;
|
|
868
1000
|
|
|
869
1001
|
/**
|
|
@@ -874,7 +1006,7 @@ interface BedrockService$ {
|
|
|
874
1006
|
options?: HttpHandlerOptions,
|
|
875
1007
|
): Effect.Effect<
|
|
876
1008
|
ListModelImportJobsCommandOutput,
|
|
877
|
-
SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError
|
|
1009
|
+
Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError
|
|
878
1010
|
>;
|
|
879
1011
|
|
|
880
1012
|
/**
|
|
@@ -885,7 +1017,7 @@ interface BedrockService$ {
|
|
|
885
1017
|
options?: HttpHandlerOptions,
|
|
886
1018
|
): Effect.Effect<
|
|
887
1019
|
ListModelInvocationJobsCommandOutput,
|
|
888
|
-
SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError
|
|
1020
|
+
Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError
|
|
889
1021
|
>;
|
|
890
1022
|
|
|
891
1023
|
/**
|
|
@@ -896,7 +1028,7 @@ interface BedrockService$ {
|
|
|
896
1028
|
options?: HttpHandlerOptions,
|
|
897
1029
|
): Effect.Effect<
|
|
898
1030
|
ListPromptRoutersCommandOutput,
|
|
899
|
-
SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError
|
|
1031
|
+
Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError
|
|
900
1032
|
>;
|
|
901
1033
|
|
|
902
1034
|
/**
|
|
@@ -907,7 +1039,7 @@ interface BedrockService$ {
|
|
|
907
1039
|
options?: HttpHandlerOptions,
|
|
908
1040
|
): Effect.Effect<
|
|
909
1041
|
ListProvisionedModelThroughputsCommandOutput,
|
|
910
|
-
SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError
|
|
1042
|
+
Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError
|
|
911
1043
|
>;
|
|
912
1044
|
|
|
913
1045
|
/**
|
|
@@ -918,7 +1050,13 @@ interface BedrockService$ {
|
|
|
918
1050
|
options?: HttpHandlerOptions,
|
|
919
1051
|
): Effect.Effect<
|
|
920
1052
|
ListTagsForResourceCommandOutput,
|
|
921
|
-
|
|
1053
|
+
| Cause.TimeoutException
|
|
1054
|
+
| SdkError
|
|
1055
|
+
| AccessDeniedError
|
|
1056
|
+
| InternalServerError
|
|
1057
|
+
| ResourceNotFoundError
|
|
1058
|
+
| ThrottlingError
|
|
1059
|
+
| ValidationError
|
|
922
1060
|
>;
|
|
923
1061
|
|
|
924
1062
|
/**
|
|
@@ -929,7 +1067,7 @@ interface BedrockService$ {
|
|
|
929
1067
|
options?: HttpHandlerOptions,
|
|
930
1068
|
): Effect.Effect<
|
|
931
1069
|
PutModelInvocationLoggingConfigurationCommandOutput,
|
|
932
|
-
SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError
|
|
1070
|
+
Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError
|
|
933
1071
|
>;
|
|
934
1072
|
|
|
935
1073
|
/**
|
|
@@ -940,6 +1078,7 @@ interface BedrockService$ {
|
|
|
940
1078
|
options?: HttpHandlerOptions,
|
|
941
1079
|
): Effect.Effect<
|
|
942
1080
|
RegisterMarketplaceModelEndpointCommandOutput,
|
|
1081
|
+
| Cause.TimeoutException
|
|
943
1082
|
| SdkError
|
|
944
1083
|
| AccessDeniedError
|
|
945
1084
|
| InternalServerError
|
|
@@ -957,6 +1096,7 @@ interface BedrockService$ {
|
|
|
957
1096
|
options?: HttpHandlerOptions,
|
|
958
1097
|
): Effect.Effect<
|
|
959
1098
|
StopEvaluationJobCommandOutput,
|
|
1099
|
+
| Cause.TimeoutException
|
|
960
1100
|
| SdkError
|
|
961
1101
|
| AccessDeniedError
|
|
962
1102
|
| ConflictError
|
|
@@ -974,6 +1114,7 @@ interface BedrockService$ {
|
|
|
974
1114
|
options?: HttpHandlerOptions,
|
|
975
1115
|
): Effect.Effect<
|
|
976
1116
|
StopModelCustomizationJobCommandOutput,
|
|
1117
|
+
| Cause.TimeoutException
|
|
977
1118
|
| SdkError
|
|
978
1119
|
| AccessDeniedError
|
|
979
1120
|
| ConflictError
|
|
@@ -991,6 +1132,7 @@ interface BedrockService$ {
|
|
|
991
1132
|
options?: HttpHandlerOptions,
|
|
992
1133
|
): Effect.Effect<
|
|
993
1134
|
StopModelInvocationJobCommandOutput,
|
|
1135
|
+
| Cause.TimeoutException
|
|
994
1136
|
| SdkError
|
|
995
1137
|
| AccessDeniedError
|
|
996
1138
|
| ConflictError
|
|
@@ -1008,6 +1150,7 @@ interface BedrockService$ {
|
|
|
1008
1150
|
options?: HttpHandlerOptions,
|
|
1009
1151
|
): Effect.Effect<
|
|
1010
1152
|
TagResourceCommandOutput,
|
|
1153
|
+
| Cause.TimeoutException
|
|
1011
1154
|
| SdkError
|
|
1012
1155
|
| AccessDeniedError
|
|
1013
1156
|
| InternalServerError
|
|
@@ -1025,7 +1168,13 @@ interface BedrockService$ {
|
|
|
1025
1168
|
options?: HttpHandlerOptions,
|
|
1026
1169
|
): Effect.Effect<
|
|
1027
1170
|
UntagResourceCommandOutput,
|
|
1028
|
-
|
|
1171
|
+
| Cause.TimeoutException
|
|
1172
|
+
| SdkError
|
|
1173
|
+
| AccessDeniedError
|
|
1174
|
+
| InternalServerError
|
|
1175
|
+
| ResourceNotFoundError
|
|
1176
|
+
| ThrottlingError
|
|
1177
|
+
| ValidationError
|
|
1029
1178
|
>;
|
|
1030
1179
|
|
|
1031
1180
|
/**
|
|
@@ -1036,6 +1185,7 @@ interface BedrockService$ {
|
|
|
1036
1185
|
options?: HttpHandlerOptions,
|
|
1037
1186
|
): Effect.Effect<
|
|
1038
1187
|
UpdateGuardrailCommandOutput,
|
|
1188
|
+
| Cause.TimeoutException
|
|
1039
1189
|
| SdkError
|
|
1040
1190
|
| AccessDeniedError
|
|
1041
1191
|
| ConflictError
|
|
@@ -1054,6 +1204,7 @@ interface BedrockService$ {
|
|
|
1054
1204
|
options?: HttpHandlerOptions,
|
|
1055
1205
|
): Effect.Effect<
|
|
1056
1206
|
UpdateMarketplaceModelEndpointCommandOutput,
|
|
1207
|
+
| Cause.TimeoutException
|
|
1057
1208
|
| SdkError
|
|
1058
1209
|
| AccessDeniedError
|
|
1059
1210
|
| ConflictError
|
|
@@ -1072,7 +1223,13 @@ interface BedrockService$ {
|
|
|
1072
1223
|
options?: HttpHandlerOptions,
|
|
1073
1224
|
): Effect.Effect<
|
|
1074
1225
|
UpdateProvisionedModelThroughputCommandOutput,
|
|
1075
|
-
|
|
1226
|
+
| Cause.TimeoutException
|
|
1227
|
+
| SdkError
|
|
1228
|
+
| AccessDeniedError
|
|
1229
|
+
| InternalServerError
|
|
1230
|
+
| ResourceNotFoundError
|
|
1231
|
+
| ThrottlingError
|
|
1232
|
+
| ValidationError
|
|
1076
1233
|
>;
|
|
1077
1234
|
}
|
|
1078
1235
|
|
|
@@ -1083,7 +1240,7 @@ interface BedrockService$ {
|
|
|
1083
1240
|
export const makeBedrockService = Effect.gen(function*() {
|
|
1084
1241
|
const client = yield* Instance.BedrockClientInstance;
|
|
1085
1242
|
|
|
1086
|
-
return Service.fromClientAndCommands<BedrockService$>(
|
|
1243
|
+
return yield* Service.fromClientAndCommands<BedrockService$>(
|
|
1087
1244
|
client,
|
|
1088
1245
|
commands,
|
|
1089
1246
|
{
|
package/src/Errors.ts
CHANGED
|
@@ -10,7 +10,6 @@ import type {
|
|
|
10
10
|
ValidationException,
|
|
11
11
|
} from "@aws-sdk/client-bedrock";
|
|
12
12
|
import type { TaggedException } from "@effect-aws/commons";
|
|
13
|
-
import { SdkError as CommonSdkError } from "@effect-aws/commons";
|
|
14
13
|
|
|
15
14
|
export const AllServiceErrors = [
|
|
16
15
|
"AccessDeniedException",
|
|
@@ -33,6 +32,4 @@ export type ServiceUnavailableError = TaggedException<ServiceUnavailableExceptio
|
|
|
33
32
|
export type ThrottlingError = TaggedException<ThrottlingException>;
|
|
34
33
|
export type TooManyTagsError = TaggedException<TooManyTagsException>;
|
|
35
34
|
export type ValidationError = TaggedException<ValidationException>;
|
|
36
|
-
|
|
37
|
-
export type SdkError = CommonSdkError;
|
|
38
|
-
export const SdkError = CommonSdkError;
|
|
35
|
+
export type SdkError = TaggedException<Error & { name: "SdkError" }>;
|