@effect-aws/client-bedrock 1.2.0 → 1.9.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 (69) hide show
  1. package/BedrockClientInstance/package.json +6 -0
  2. package/BedrockService/package.json +6 -0
  3. package/BedrockServiceConfig/package.json +6 -0
  4. package/Errors/package.json +6 -0
  5. package/LICENSE +1 -1
  6. package/dist/cjs/BedrockClientInstance.d.ts +24 -0
  7. package/dist/cjs/BedrockClientInstance.d.ts.map +1 -0
  8. package/dist/cjs/BedrockClientInstance.js +50 -0
  9. package/dist/cjs/BedrockClientInstance.js.map +1 -0
  10. package/{lib → dist/cjs}/BedrockService.d.ts +16 -38
  11. package/dist/cjs/BedrockService.d.ts.map +1 -0
  12. package/dist/cjs/BedrockService.js +113 -0
  13. package/dist/cjs/BedrockService.js.map +1 -0
  14. package/dist/cjs/BedrockServiceConfig.d.ts +25 -0
  15. package/dist/cjs/BedrockServiceConfig.d.ts.map +1 -0
  16. package/dist/cjs/BedrockServiceConfig.js +35 -0
  17. package/dist/cjs/BedrockServiceConfig.js.map +1 -0
  18. package/{lib → dist/cjs}/Errors.d.ts +6 -11
  19. package/dist/cjs/Errors.d.ts.map +1 -0
  20. package/dist/cjs/Errors.js +17 -0
  21. package/dist/cjs/Errors.js.map +1 -0
  22. package/dist/cjs/index.d.ts +39 -0
  23. package/dist/cjs/index.d.ts.map +1 -0
  24. package/dist/cjs/index.js +56 -0
  25. package/dist/cjs/index.js.map +1 -0
  26. package/dist/dts/BedrockClientInstance.d.ts +24 -0
  27. package/dist/dts/BedrockClientInstance.d.ts.map +1 -0
  28. package/dist/dts/BedrockService.d.ts +328 -0
  29. package/dist/dts/BedrockService.d.ts.map +1 -0
  30. package/dist/dts/BedrockServiceConfig.d.ts +25 -0
  31. package/dist/dts/BedrockServiceConfig.d.ts.map +1 -0
  32. package/dist/dts/Errors.d.ts +16 -0
  33. package/dist/dts/Errors.d.ts.map +1 -0
  34. package/dist/dts/index.d.ts +39 -0
  35. package/dist/dts/index.d.ts.map +1 -0
  36. package/dist/esm/BedrockClientInstance.js +23 -0
  37. package/dist/esm/BedrockClientInstance.js.map +1 -0
  38. package/dist/esm/BedrockService.js +86 -0
  39. package/dist/esm/BedrockService.js.map +1 -0
  40. package/dist/esm/BedrockServiceConfig.js +31 -0
  41. package/dist/esm/BedrockServiceConfig.js.map +1 -0
  42. package/dist/esm/Errors.js +14 -0
  43. package/dist/esm/Errors.js.map +1 -0
  44. package/dist/esm/index.js +27 -0
  45. package/dist/esm/index.js.map +1 -0
  46. package/dist/esm/package.json +4 -0
  47. package/package.json +60 -43
  48. package/src/BedrockClientInstance.ts +33 -0
  49. package/src/BedrockService.ts +1088 -0
  50. package/src/BedrockServiceConfig.ts +52 -0
  51. package/src/Errors.ts +38 -0
  52. package/src/index.ts +44 -0
  53. package/CHANGELOG.md +0 -19
  54. package/docgen.json +0 -8
  55. package/lib/BedrockClientInstance.d.ts +0 -31
  56. package/lib/BedrockClientInstance.js +0 -57
  57. package/lib/BedrockClientInstanceConfig.d.ts +0 -23
  58. package/lib/BedrockClientInstanceConfig.js +0 -44
  59. package/lib/BedrockService.js +0 -145
  60. package/lib/Errors.js +0 -17
  61. package/lib/esm/BedrockClientInstance.js +0 -30
  62. package/lib/esm/BedrockClientInstanceConfig.js +0 -40
  63. package/lib/esm/BedrockService.js +0 -141
  64. package/lib/esm/Errors.js +0 -14
  65. package/lib/esm/index.js +0 -5
  66. package/lib/index.d.ts +0 -4
  67. package/lib/index.js +0 -21
  68. package/project.json +0 -77
  69. package/vitest.config.ts +0 -3
@@ -0,0 +1,1088 @@
1
+ /**
2
+ * @since 1.0.0
3
+ */
4
+ import {
5
+ BatchDeleteEvaluationJobCommand,
6
+ type BatchDeleteEvaluationJobCommandInput,
7
+ type BatchDeleteEvaluationJobCommandOutput,
8
+ type BedrockClient,
9
+ type BedrockClientConfig,
10
+ CreateEvaluationJobCommand,
11
+ type CreateEvaluationJobCommandInput,
12
+ type CreateEvaluationJobCommandOutput,
13
+ CreateGuardrailCommand,
14
+ type CreateGuardrailCommandInput,
15
+ type CreateGuardrailCommandOutput,
16
+ CreateGuardrailVersionCommand,
17
+ type CreateGuardrailVersionCommandInput,
18
+ type CreateGuardrailVersionCommandOutput,
19
+ CreateInferenceProfileCommand,
20
+ type CreateInferenceProfileCommandInput,
21
+ type CreateInferenceProfileCommandOutput,
22
+ CreateMarketplaceModelEndpointCommand,
23
+ type CreateMarketplaceModelEndpointCommandInput,
24
+ type CreateMarketplaceModelEndpointCommandOutput,
25
+ CreateModelCopyJobCommand,
26
+ type CreateModelCopyJobCommandInput,
27
+ type CreateModelCopyJobCommandOutput,
28
+ CreateModelCustomizationJobCommand,
29
+ type CreateModelCustomizationJobCommandInput,
30
+ type CreateModelCustomizationJobCommandOutput,
31
+ CreateModelImportJobCommand,
32
+ type CreateModelImportJobCommandInput,
33
+ type CreateModelImportJobCommandOutput,
34
+ CreateModelInvocationJobCommand,
35
+ type CreateModelInvocationJobCommandInput,
36
+ type CreateModelInvocationJobCommandOutput,
37
+ CreateProvisionedModelThroughputCommand,
38
+ type CreateProvisionedModelThroughputCommandInput,
39
+ type CreateProvisionedModelThroughputCommandOutput,
40
+ DeleteCustomModelCommand,
41
+ type DeleteCustomModelCommandInput,
42
+ type DeleteCustomModelCommandOutput,
43
+ DeleteGuardrailCommand,
44
+ type DeleteGuardrailCommandInput,
45
+ type DeleteGuardrailCommandOutput,
46
+ DeleteImportedModelCommand,
47
+ type DeleteImportedModelCommandInput,
48
+ type DeleteImportedModelCommandOutput,
49
+ DeleteInferenceProfileCommand,
50
+ type DeleteInferenceProfileCommandInput,
51
+ type DeleteInferenceProfileCommandOutput,
52
+ DeleteMarketplaceModelEndpointCommand,
53
+ type DeleteMarketplaceModelEndpointCommandInput,
54
+ type DeleteMarketplaceModelEndpointCommandOutput,
55
+ DeleteModelInvocationLoggingConfigurationCommand,
56
+ type DeleteModelInvocationLoggingConfigurationCommandInput,
57
+ type DeleteModelInvocationLoggingConfigurationCommandOutput,
58
+ DeleteProvisionedModelThroughputCommand,
59
+ type DeleteProvisionedModelThroughputCommandInput,
60
+ type DeleteProvisionedModelThroughputCommandOutput,
61
+ DeregisterMarketplaceModelEndpointCommand,
62
+ type DeregisterMarketplaceModelEndpointCommandInput,
63
+ type DeregisterMarketplaceModelEndpointCommandOutput,
64
+ GetCustomModelCommand,
65
+ type GetCustomModelCommandInput,
66
+ type GetCustomModelCommandOutput,
67
+ GetEvaluationJobCommand,
68
+ type GetEvaluationJobCommandInput,
69
+ type GetEvaluationJobCommandOutput,
70
+ GetFoundationModelCommand,
71
+ type GetFoundationModelCommandInput,
72
+ type GetFoundationModelCommandOutput,
73
+ GetGuardrailCommand,
74
+ type GetGuardrailCommandInput,
75
+ type GetGuardrailCommandOutput,
76
+ GetImportedModelCommand,
77
+ type GetImportedModelCommandInput,
78
+ type GetImportedModelCommandOutput,
79
+ GetInferenceProfileCommand,
80
+ type GetInferenceProfileCommandInput,
81
+ type GetInferenceProfileCommandOutput,
82
+ GetMarketplaceModelEndpointCommand,
83
+ type GetMarketplaceModelEndpointCommandInput,
84
+ type GetMarketplaceModelEndpointCommandOutput,
85
+ GetModelCopyJobCommand,
86
+ type GetModelCopyJobCommandInput,
87
+ type GetModelCopyJobCommandOutput,
88
+ GetModelCustomizationJobCommand,
89
+ type GetModelCustomizationJobCommandInput,
90
+ type GetModelCustomizationJobCommandOutput,
91
+ GetModelImportJobCommand,
92
+ type GetModelImportJobCommandInput,
93
+ type GetModelImportJobCommandOutput,
94
+ GetModelInvocationJobCommand,
95
+ type GetModelInvocationJobCommandInput,
96
+ type GetModelInvocationJobCommandOutput,
97
+ GetModelInvocationLoggingConfigurationCommand,
98
+ type GetModelInvocationLoggingConfigurationCommandInput,
99
+ type GetModelInvocationLoggingConfigurationCommandOutput,
100
+ GetPromptRouterCommand,
101
+ type GetPromptRouterCommandInput,
102
+ type GetPromptRouterCommandOutput,
103
+ GetProvisionedModelThroughputCommand,
104
+ type GetProvisionedModelThroughputCommandInput,
105
+ type GetProvisionedModelThroughputCommandOutput,
106
+ ListCustomModelsCommand,
107
+ type ListCustomModelsCommandInput,
108
+ type ListCustomModelsCommandOutput,
109
+ ListEvaluationJobsCommand,
110
+ type ListEvaluationJobsCommandInput,
111
+ type ListEvaluationJobsCommandOutput,
112
+ ListFoundationModelsCommand,
113
+ type ListFoundationModelsCommandInput,
114
+ type ListFoundationModelsCommandOutput,
115
+ ListGuardrailsCommand,
116
+ type ListGuardrailsCommandInput,
117
+ type ListGuardrailsCommandOutput,
118
+ ListImportedModelsCommand,
119
+ type ListImportedModelsCommandInput,
120
+ type ListImportedModelsCommandOutput,
121
+ ListInferenceProfilesCommand,
122
+ type ListInferenceProfilesCommandInput,
123
+ type ListInferenceProfilesCommandOutput,
124
+ ListMarketplaceModelEndpointsCommand,
125
+ type ListMarketplaceModelEndpointsCommandInput,
126
+ type ListMarketplaceModelEndpointsCommandOutput,
127
+ ListModelCopyJobsCommand,
128
+ type ListModelCopyJobsCommandInput,
129
+ type ListModelCopyJobsCommandOutput,
130
+ ListModelCustomizationJobsCommand,
131
+ type ListModelCustomizationJobsCommandInput,
132
+ type ListModelCustomizationJobsCommandOutput,
133
+ ListModelImportJobsCommand,
134
+ type ListModelImportJobsCommandInput,
135
+ type ListModelImportJobsCommandOutput,
136
+ ListModelInvocationJobsCommand,
137
+ type ListModelInvocationJobsCommandInput,
138
+ type ListModelInvocationJobsCommandOutput,
139
+ ListPromptRoutersCommand,
140
+ type ListPromptRoutersCommandInput,
141
+ type ListPromptRoutersCommandOutput,
142
+ ListProvisionedModelThroughputsCommand,
143
+ type ListProvisionedModelThroughputsCommandInput,
144
+ type ListProvisionedModelThroughputsCommandOutput,
145
+ ListTagsForResourceCommand,
146
+ type ListTagsForResourceCommandInput,
147
+ type ListTagsForResourceCommandOutput,
148
+ PutModelInvocationLoggingConfigurationCommand,
149
+ type PutModelInvocationLoggingConfigurationCommandInput,
150
+ type PutModelInvocationLoggingConfigurationCommandOutput,
151
+ RegisterMarketplaceModelEndpointCommand,
152
+ type RegisterMarketplaceModelEndpointCommandInput,
153
+ type RegisterMarketplaceModelEndpointCommandOutput,
154
+ StopEvaluationJobCommand,
155
+ type StopEvaluationJobCommandInput,
156
+ type StopEvaluationJobCommandOutput,
157
+ StopModelCustomizationJobCommand,
158
+ type StopModelCustomizationJobCommandInput,
159
+ type StopModelCustomizationJobCommandOutput,
160
+ StopModelInvocationJobCommand,
161
+ type StopModelInvocationJobCommandInput,
162
+ type StopModelInvocationJobCommandOutput,
163
+ TagResourceCommand,
164
+ type TagResourceCommandInput,
165
+ type TagResourceCommandOutput,
166
+ UntagResourceCommand,
167
+ type UntagResourceCommandInput,
168
+ type UntagResourceCommandOutput,
169
+ UpdateGuardrailCommand,
170
+ type UpdateGuardrailCommandInput,
171
+ type UpdateGuardrailCommandOutput,
172
+ UpdateMarketplaceModelEndpointCommand,
173
+ type UpdateMarketplaceModelEndpointCommandInput,
174
+ type UpdateMarketplaceModelEndpointCommandOutput,
175
+ UpdateProvisionedModelThroughputCommand,
176
+ type UpdateProvisionedModelThroughputCommandInput,
177
+ type UpdateProvisionedModelThroughputCommandOutput,
178
+ } from "@aws-sdk/client-bedrock";
179
+ import type { HttpHandlerOptions, SdkError, ServiceLogger } from "@effect-aws/commons";
180
+ import { Service } from "@effect-aws/commons";
181
+ import { Effect, Layer } from "effect";
182
+ import * as Instance from "./BedrockClientInstance.js";
183
+ import * as BedrockServiceConfig from "./BedrockServiceConfig.js";
184
+ import type {
185
+ AccessDeniedError,
186
+ ConflictError,
187
+ InternalServerError,
188
+ ResourceNotFoundError,
189
+ ServiceQuotaExceededError,
190
+ ServiceUnavailableError,
191
+ ThrottlingError,
192
+ TooManyTagsError,
193
+ ValidationError,
194
+ } from "./Errors.js";
195
+ import { AllServiceErrors } from "./Errors.js";
196
+
197
+ const commands = {
198
+ BatchDeleteEvaluationJobCommand,
199
+ CreateEvaluationJobCommand,
200
+ CreateGuardrailCommand,
201
+ CreateGuardrailVersionCommand,
202
+ CreateInferenceProfileCommand,
203
+ CreateMarketplaceModelEndpointCommand,
204
+ CreateModelCopyJobCommand,
205
+ CreateModelCustomizationJobCommand,
206
+ CreateModelImportJobCommand,
207
+ CreateModelInvocationJobCommand,
208
+ CreateProvisionedModelThroughputCommand,
209
+ DeleteCustomModelCommand,
210
+ DeleteGuardrailCommand,
211
+ DeleteImportedModelCommand,
212
+ DeleteInferenceProfileCommand,
213
+ DeleteMarketplaceModelEndpointCommand,
214
+ DeleteModelInvocationLoggingConfigurationCommand,
215
+ DeleteProvisionedModelThroughputCommand,
216
+ DeregisterMarketplaceModelEndpointCommand,
217
+ GetCustomModelCommand,
218
+ GetEvaluationJobCommand,
219
+ GetFoundationModelCommand,
220
+ GetGuardrailCommand,
221
+ GetImportedModelCommand,
222
+ GetInferenceProfileCommand,
223
+ GetMarketplaceModelEndpointCommand,
224
+ GetModelCopyJobCommand,
225
+ GetModelCustomizationJobCommand,
226
+ GetModelImportJobCommand,
227
+ GetModelInvocationJobCommand,
228
+ GetModelInvocationLoggingConfigurationCommand,
229
+ GetPromptRouterCommand,
230
+ GetProvisionedModelThroughputCommand,
231
+ ListCustomModelsCommand,
232
+ ListEvaluationJobsCommand,
233
+ ListFoundationModelsCommand,
234
+ ListGuardrailsCommand,
235
+ ListImportedModelsCommand,
236
+ ListInferenceProfilesCommand,
237
+ ListMarketplaceModelEndpointsCommand,
238
+ ListModelCopyJobsCommand,
239
+ ListModelCustomizationJobsCommand,
240
+ ListModelImportJobsCommand,
241
+ ListModelInvocationJobsCommand,
242
+ ListPromptRoutersCommand,
243
+ ListProvisionedModelThroughputsCommand,
244
+ ListTagsForResourceCommand,
245
+ PutModelInvocationLoggingConfigurationCommand,
246
+ RegisterMarketplaceModelEndpointCommand,
247
+ StopEvaluationJobCommand,
248
+ StopModelCustomizationJobCommand,
249
+ StopModelInvocationJobCommand,
250
+ TagResourceCommand,
251
+ UntagResourceCommand,
252
+ UpdateGuardrailCommand,
253
+ UpdateMarketplaceModelEndpointCommand,
254
+ UpdateProvisionedModelThroughputCommand,
255
+ };
256
+
257
+ interface BedrockService$ {
258
+ readonly _: unique symbol;
259
+
260
+ /**
261
+ * @see {@link BatchDeleteEvaluationJobCommand}
262
+ */
263
+ batchDeleteEvaluationJob(
264
+ args: BatchDeleteEvaluationJobCommandInput,
265
+ options?: HttpHandlerOptions,
266
+ ): Effect.Effect<
267
+ BatchDeleteEvaluationJobCommandOutput,
268
+ | SdkError
269
+ | AccessDeniedError
270
+ | ConflictError
271
+ | InternalServerError
272
+ | ResourceNotFoundError
273
+ | ThrottlingError
274
+ | ValidationError
275
+ >;
276
+
277
+ /**
278
+ * @see {@link CreateEvaluationJobCommand}
279
+ */
280
+ createEvaluationJob(
281
+ args: CreateEvaluationJobCommandInput,
282
+ options?: HttpHandlerOptions,
283
+ ): Effect.Effect<
284
+ CreateEvaluationJobCommandOutput,
285
+ | SdkError
286
+ | AccessDeniedError
287
+ | ConflictError
288
+ | InternalServerError
289
+ | ResourceNotFoundError
290
+ | ServiceQuotaExceededError
291
+ | ThrottlingError
292
+ | ValidationError
293
+ >;
294
+
295
+ /**
296
+ * @see {@link CreateGuardrailCommand}
297
+ */
298
+ createGuardrail(
299
+ args: CreateGuardrailCommandInput,
300
+ options?: HttpHandlerOptions,
301
+ ): Effect.Effect<
302
+ CreateGuardrailCommandOutput,
303
+ | SdkError
304
+ | AccessDeniedError
305
+ | ConflictError
306
+ | InternalServerError
307
+ | ResourceNotFoundError
308
+ | ServiceQuotaExceededError
309
+ | ThrottlingError
310
+ | TooManyTagsError
311
+ | ValidationError
312
+ >;
313
+
314
+ /**
315
+ * @see {@link CreateGuardrailVersionCommand}
316
+ */
317
+ createGuardrailVersion(
318
+ args: CreateGuardrailVersionCommandInput,
319
+ options?: HttpHandlerOptions,
320
+ ): Effect.Effect<
321
+ CreateGuardrailVersionCommandOutput,
322
+ | SdkError
323
+ | AccessDeniedError
324
+ | ConflictError
325
+ | InternalServerError
326
+ | ResourceNotFoundError
327
+ | ServiceQuotaExceededError
328
+ | ThrottlingError
329
+ | ValidationError
330
+ >;
331
+
332
+ /**
333
+ * @see {@link CreateInferenceProfileCommand}
334
+ */
335
+ createInferenceProfile(
336
+ args: CreateInferenceProfileCommandInput,
337
+ options?: HttpHandlerOptions,
338
+ ): Effect.Effect<
339
+ CreateInferenceProfileCommandOutput,
340
+ | SdkError
341
+ | AccessDeniedError
342
+ | ConflictError
343
+ | InternalServerError
344
+ | ResourceNotFoundError
345
+ | ServiceQuotaExceededError
346
+ | ThrottlingError
347
+ | TooManyTagsError
348
+ | ValidationError
349
+ >;
350
+
351
+ /**
352
+ * @see {@link CreateMarketplaceModelEndpointCommand}
353
+ */
354
+ createMarketplaceModelEndpoint(
355
+ args: CreateMarketplaceModelEndpointCommandInput,
356
+ options?: HttpHandlerOptions,
357
+ ): Effect.Effect<
358
+ CreateMarketplaceModelEndpointCommandOutput,
359
+ | SdkError
360
+ | AccessDeniedError
361
+ | ConflictError
362
+ | InternalServerError
363
+ | ResourceNotFoundError
364
+ | ServiceQuotaExceededError
365
+ | ThrottlingError
366
+ | ValidationError
367
+ >;
368
+
369
+ /**
370
+ * @see {@link CreateModelCopyJobCommand}
371
+ */
372
+ createModelCopyJob(
373
+ args: CreateModelCopyJobCommandInput,
374
+ options?: HttpHandlerOptions,
375
+ ): Effect.Effect<
376
+ CreateModelCopyJobCommandOutput,
377
+ SdkError | AccessDeniedError | InternalServerError | ResourceNotFoundError | TooManyTagsError
378
+ >;
379
+
380
+ /**
381
+ * @see {@link CreateModelCustomizationJobCommand}
382
+ */
383
+ createModelCustomizationJob(
384
+ args: CreateModelCustomizationJobCommandInput,
385
+ options?: HttpHandlerOptions,
386
+ ): Effect.Effect<
387
+ CreateModelCustomizationJobCommandOutput,
388
+ | SdkError
389
+ | AccessDeniedError
390
+ | ConflictError
391
+ | InternalServerError
392
+ | ResourceNotFoundError
393
+ | ServiceQuotaExceededError
394
+ | ThrottlingError
395
+ | TooManyTagsError
396
+ | ValidationError
397
+ >;
398
+
399
+ /**
400
+ * @see {@link CreateModelImportJobCommand}
401
+ */
402
+ createModelImportJob(
403
+ args: CreateModelImportJobCommandInput,
404
+ options?: HttpHandlerOptions,
405
+ ): Effect.Effect<
406
+ CreateModelImportJobCommandOutput,
407
+ | SdkError
408
+ | AccessDeniedError
409
+ | ConflictError
410
+ | InternalServerError
411
+ | ResourceNotFoundError
412
+ | ServiceQuotaExceededError
413
+ | ThrottlingError
414
+ | TooManyTagsError
415
+ | ValidationError
416
+ >;
417
+
418
+ /**
419
+ * @see {@link CreateModelInvocationJobCommand}
420
+ */
421
+ createModelInvocationJob(
422
+ args: CreateModelInvocationJobCommandInput,
423
+ options?: HttpHandlerOptions,
424
+ ): Effect.Effect<
425
+ CreateModelInvocationJobCommandOutput,
426
+ | SdkError
427
+ | AccessDeniedError
428
+ | ConflictError
429
+ | InternalServerError
430
+ | ResourceNotFoundError
431
+ | ServiceQuotaExceededError
432
+ | ThrottlingError
433
+ | ValidationError
434
+ >;
435
+
436
+ /**
437
+ * @see {@link CreateProvisionedModelThroughputCommand}
438
+ */
439
+ createProvisionedModelThroughput(
440
+ args: CreateProvisionedModelThroughputCommandInput,
441
+ options?: HttpHandlerOptions,
442
+ ): Effect.Effect<
443
+ CreateProvisionedModelThroughputCommandOutput,
444
+ | SdkError
445
+ | AccessDeniedError
446
+ | InternalServerError
447
+ | ResourceNotFoundError
448
+ | ServiceQuotaExceededError
449
+ | ThrottlingError
450
+ | TooManyTagsError
451
+ | ValidationError
452
+ >;
453
+
454
+ /**
455
+ * @see {@link DeleteCustomModelCommand}
456
+ */
457
+ deleteCustomModel(
458
+ args: DeleteCustomModelCommandInput,
459
+ options?: HttpHandlerOptions,
460
+ ): Effect.Effect<
461
+ DeleteCustomModelCommandOutput,
462
+ | SdkError
463
+ | AccessDeniedError
464
+ | ConflictError
465
+ | InternalServerError
466
+ | ResourceNotFoundError
467
+ | ThrottlingError
468
+ | ValidationError
469
+ >;
470
+
471
+ /**
472
+ * @see {@link DeleteGuardrailCommand}
473
+ */
474
+ deleteGuardrail(
475
+ args: DeleteGuardrailCommandInput,
476
+ options?: HttpHandlerOptions,
477
+ ): Effect.Effect<
478
+ DeleteGuardrailCommandOutput,
479
+ | SdkError
480
+ | AccessDeniedError
481
+ | ConflictError
482
+ | InternalServerError
483
+ | ResourceNotFoundError
484
+ | ThrottlingError
485
+ | ValidationError
486
+ >;
487
+
488
+ /**
489
+ * @see {@link DeleteImportedModelCommand}
490
+ */
491
+ deleteImportedModel(
492
+ args: DeleteImportedModelCommandInput,
493
+ options?: HttpHandlerOptions,
494
+ ): Effect.Effect<
495
+ DeleteImportedModelCommandOutput,
496
+ | SdkError
497
+ | AccessDeniedError
498
+ | ConflictError
499
+ | InternalServerError
500
+ | ResourceNotFoundError
501
+ | ThrottlingError
502
+ | ValidationError
503
+ >;
504
+
505
+ /**
506
+ * @see {@link DeleteInferenceProfileCommand}
507
+ */
508
+ deleteInferenceProfile(
509
+ args: DeleteInferenceProfileCommandInput,
510
+ options?: HttpHandlerOptions,
511
+ ): Effect.Effect<
512
+ DeleteInferenceProfileCommandOutput,
513
+ | SdkError
514
+ | AccessDeniedError
515
+ | ConflictError
516
+ | InternalServerError
517
+ | ResourceNotFoundError
518
+ | ThrottlingError
519
+ | ValidationError
520
+ >;
521
+
522
+ /**
523
+ * @see {@link DeleteMarketplaceModelEndpointCommand}
524
+ */
525
+ deleteMarketplaceModelEndpoint(
526
+ args: DeleteMarketplaceModelEndpointCommandInput,
527
+ options?: HttpHandlerOptions,
528
+ ): Effect.Effect<
529
+ DeleteMarketplaceModelEndpointCommandOutput,
530
+ SdkError | AccessDeniedError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError
531
+ >;
532
+
533
+ /**
534
+ * @see {@link DeleteModelInvocationLoggingConfigurationCommand}
535
+ */
536
+ deleteModelInvocationLoggingConfiguration(
537
+ args: DeleteModelInvocationLoggingConfigurationCommandInput,
538
+ options?: HttpHandlerOptions,
539
+ ): Effect.Effect<
540
+ DeleteModelInvocationLoggingConfigurationCommandOutput,
541
+ SdkError | AccessDeniedError | InternalServerError | ThrottlingError
542
+ >;
543
+
544
+ /**
545
+ * @see {@link DeleteProvisionedModelThroughputCommand}
546
+ */
547
+ deleteProvisionedModelThroughput(
548
+ args: DeleteProvisionedModelThroughputCommandInput,
549
+ options?: HttpHandlerOptions,
550
+ ): Effect.Effect<
551
+ DeleteProvisionedModelThroughputCommandOutput,
552
+ | SdkError
553
+ | AccessDeniedError
554
+ | ConflictError
555
+ | InternalServerError
556
+ | ResourceNotFoundError
557
+ | ThrottlingError
558
+ | ValidationError
559
+ >;
560
+
561
+ /**
562
+ * @see {@link DeregisterMarketplaceModelEndpointCommand}
563
+ */
564
+ deregisterMarketplaceModelEndpoint(
565
+ args: DeregisterMarketplaceModelEndpointCommandInput,
566
+ options?: HttpHandlerOptions,
567
+ ): Effect.Effect<
568
+ DeregisterMarketplaceModelEndpointCommandOutput,
569
+ | SdkError
570
+ | AccessDeniedError
571
+ | InternalServerError
572
+ | ResourceNotFoundError
573
+ | ServiceUnavailableError
574
+ | ThrottlingError
575
+ | ValidationError
576
+ >;
577
+
578
+ /**
579
+ * @see {@link GetCustomModelCommand}
580
+ */
581
+ getCustomModel(
582
+ args: GetCustomModelCommandInput,
583
+ options?: HttpHandlerOptions,
584
+ ): Effect.Effect<
585
+ GetCustomModelCommandOutput,
586
+ SdkError | AccessDeniedError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError
587
+ >;
588
+
589
+ /**
590
+ * @see {@link GetEvaluationJobCommand}
591
+ */
592
+ getEvaluationJob(
593
+ args: GetEvaluationJobCommandInput,
594
+ options?: HttpHandlerOptions,
595
+ ): Effect.Effect<
596
+ GetEvaluationJobCommandOutput,
597
+ SdkError | AccessDeniedError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError
598
+ >;
599
+
600
+ /**
601
+ * @see {@link GetFoundationModelCommand}
602
+ */
603
+ getFoundationModel(
604
+ args: GetFoundationModelCommandInput,
605
+ options?: HttpHandlerOptions,
606
+ ): Effect.Effect<
607
+ GetFoundationModelCommandOutput,
608
+ SdkError | AccessDeniedError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError
609
+ >;
610
+
611
+ /**
612
+ * @see {@link GetGuardrailCommand}
613
+ */
614
+ getGuardrail(
615
+ args: GetGuardrailCommandInput,
616
+ options?: HttpHandlerOptions,
617
+ ): Effect.Effect<
618
+ GetGuardrailCommandOutput,
619
+ SdkError | AccessDeniedError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError
620
+ >;
621
+
622
+ /**
623
+ * @see {@link GetImportedModelCommand}
624
+ */
625
+ getImportedModel(
626
+ args: GetImportedModelCommandInput,
627
+ options?: HttpHandlerOptions,
628
+ ): Effect.Effect<
629
+ GetImportedModelCommandOutput,
630
+ SdkError | AccessDeniedError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError
631
+ >;
632
+
633
+ /**
634
+ * @see {@link GetInferenceProfileCommand}
635
+ */
636
+ getInferenceProfile(
637
+ args: GetInferenceProfileCommandInput,
638
+ options?: HttpHandlerOptions,
639
+ ): Effect.Effect<
640
+ GetInferenceProfileCommandOutput,
641
+ SdkError | AccessDeniedError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError
642
+ >;
643
+
644
+ /**
645
+ * @see {@link GetMarketplaceModelEndpointCommand}
646
+ */
647
+ getMarketplaceModelEndpoint(
648
+ args: GetMarketplaceModelEndpointCommandInput,
649
+ options?: HttpHandlerOptions,
650
+ ): Effect.Effect<
651
+ GetMarketplaceModelEndpointCommandOutput,
652
+ SdkError | AccessDeniedError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError
653
+ >;
654
+
655
+ /**
656
+ * @see {@link GetModelCopyJobCommand}
657
+ */
658
+ getModelCopyJob(
659
+ args: GetModelCopyJobCommandInput,
660
+ options?: HttpHandlerOptions,
661
+ ): Effect.Effect<
662
+ GetModelCopyJobCommandOutput,
663
+ SdkError | AccessDeniedError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError
664
+ >;
665
+
666
+ /**
667
+ * @see {@link GetModelCustomizationJobCommand}
668
+ */
669
+ getModelCustomizationJob(
670
+ args: GetModelCustomizationJobCommandInput,
671
+ options?: HttpHandlerOptions,
672
+ ): Effect.Effect<
673
+ GetModelCustomizationJobCommandOutput,
674
+ SdkError | AccessDeniedError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError
675
+ >;
676
+
677
+ /**
678
+ * @see {@link GetModelImportJobCommand}
679
+ */
680
+ getModelImportJob(
681
+ args: GetModelImportJobCommandInput,
682
+ options?: HttpHandlerOptions,
683
+ ): Effect.Effect<
684
+ GetModelImportJobCommandOutput,
685
+ SdkError | AccessDeniedError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError
686
+ >;
687
+
688
+ /**
689
+ * @see {@link GetModelInvocationJobCommand}
690
+ */
691
+ getModelInvocationJob(
692
+ args: GetModelInvocationJobCommandInput,
693
+ options?: HttpHandlerOptions,
694
+ ): Effect.Effect<
695
+ GetModelInvocationJobCommandOutput,
696
+ SdkError | AccessDeniedError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError
697
+ >;
698
+
699
+ /**
700
+ * @see {@link GetModelInvocationLoggingConfigurationCommand}
701
+ */
702
+ getModelInvocationLoggingConfiguration(
703
+ args: GetModelInvocationLoggingConfigurationCommandInput,
704
+ options?: HttpHandlerOptions,
705
+ ): Effect.Effect<
706
+ GetModelInvocationLoggingConfigurationCommandOutput,
707
+ SdkError | AccessDeniedError | InternalServerError | ThrottlingError
708
+ >;
709
+
710
+ /**
711
+ * @see {@link GetPromptRouterCommand}
712
+ */
713
+ getPromptRouter(
714
+ args: GetPromptRouterCommandInput,
715
+ options?: HttpHandlerOptions,
716
+ ): Effect.Effect<
717
+ GetPromptRouterCommandOutput,
718
+ SdkError | AccessDeniedError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError
719
+ >;
720
+
721
+ /**
722
+ * @see {@link GetProvisionedModelThroughputCommand}
723
+ */
724
+ getProvisionedModelThroughput(
725
+ args: GetProvisionedModelThroughputCommandInput,
726
+ options?: HttpHandlerOptions,
727
+ ): Effect.Effect<
728
+ GetProvisionedModelThroughputCommandOutput,
729
+ SdkError | AccessDeniedError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError
730
+ >;
731
+
732
+ /**
733
+ * @see {@link ListCustomModelsCommand}
734
+ */
735
+ listCustomModels(
736
+ args: ListCustomModelsCommandInput,
737
+ options?: HttpHandlerOptions,
738
+ ): Effect.Effect<
739
+ ListCustomModelsCommandOutput,
740
+ SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError
741
+ >;
742
+
743
+ /**
744
+ * @see {@link ListEvaluationJobsCommand}
745
+ */
746
+ listEvaluationJobs(
747
+ args: ListEvaluationJobsCommandInput,
748
+ options?: HttpHandlerOptions,
749
+ ): Effect.Effect<
750
+ ListEvaluationJobsCommandOutput,
751
+ SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError
752
+ >;
753
+
754
+ /**
755
+ * @see {@link ListFoundationModelsCommand}
756
+ */
757
+ listFoundationModels(
758
+ args: ListFoundationModelsCommandInput,
759
+ options?: HttpHandlerOptions,
760
+ ): Effect.Effect<
761
+ ListFoundationModelsCommandOutput,
762
+ SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError
763
+ >;
764
+
765
+ /**
766
+ * @see {@link ListGuardrailsCommand}
767
+ */
768
+ listGuardrails(
769
+ args: ListGuardrailsCommandInput,
770
+ options?: HttpHandlerOptions,
771
+ ): Effect.Effect<
772
+ ListGuardrailsCommandOutput,
773
+ SdkError | AccessDeniedError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError
774
+ >;
775
+
776
+ /**
777
+ * @see {@link ListImportedModelsCommand}
778
+ */
779
+ listImportedModels(
780
+ args: ListImportedModelsCommandInput,
781
+ options?: HttpHandlerOptions,
782
+ ): Effect.Effect<
783
+ ListImportedModelsCommandOutput,
784
+ SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError
785
+ >;
786
+
787
+ /**
788
+ * @see {@link ListInferenceProfilesCommand}
789
+ */
790
+ listInferenceProfiles(
791
+ args: ListInferenceProfilesCommandInput,
792
+ options?: HttpHandlerOptions,
793
+ ): Effect.Effect<
794
+ ListInferenceProfilesCommandOutput,
795
+ SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError
796
+ >;
797
+
798
+ /**
799
+ * @see {@link ListMarketplaceModelEndpointsCommand}
800
+ */
801
+ listMarketplaceModelEndpoints(
802
+ args: ListMarketplaceModelEndpointsCommandInput,
803
+ options?: HttpHandlerOptions,
804
+ ): Effect.Effect<
805
+ ListMarketplaceModelEndpointsCommandOutput,
806
+ SdkError | AccessDeniedError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError
807
+ >;
808
+
809
+ /**
810
+ * @see {@link ListModelCopyJobsCommand}
811
+ */
812
+ listModelCopyJobs(
813
+ args: ListModelCopyJobsCommandInput,
814
+ options?: HttpHandlerOptions,
815
+ ): Effect.Effect<
816
+ ListModelCopyJobsCommandOutput,
817
+ SdkError | AccessDeniedError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError
818
+ >;
819
+
820
+ /**
821
+ * @see {@link ListModelCustomizationJobsCommand}
822
+ */
823
+ listModelCustomizationJobs(
824
+ args: ListModelCustomizationJobsCommandInput,
825
+ options?: HttpHandlerOptions,
826
+ ): Effect.Effect<
827
+ ListModelCustomizationJobsCommandOutput,
828
+ SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError
829
+ >;
830
+
831
+ /**
832
+ * @see {@link ListModelImportJobsCommand}
833
+ */
834
+ listModelImportJobs(
835
+ args: ListModelImportJobsCommandInput,
836
+ options?: HttpHandlerOptions,
837
+ ): Effect.Effect<
838
+ ListModelImportJobsCommandOutput,
839
+ SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError
840
+ >;
841
+
842
+ /**
843
+ * @see {@link ListModelInvocationJobsCommand}
844
+ */
845
+ listModelInvocationJobs(
846
+ args: ListModelInvocationJobsCommandInput,
847
+ options?: HttpHandlerOptions,
848
+ ): Effect.Effect<
849
+ ListModelInvocationJobsCommandOutput,
850
+ SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError
851
+ >;
852
+
853
+ /**
854
+ * @see {@link ListPromptRoutersCommand}
855
+ */
856
+ listPromptRouters(
857
+ args: ListPromptRoutersCommandInput,
858
+ options?: HttpHandlerOptions,
859
+ ): Effect.Effect<
860
+ ListPromptRoutersCommandOutput,
861
+ SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError
862
+ >;
863
+
864
+ /**
865
+ * @see {@link ListProvisionedModelThroughputsCommand}
866
+ */
867
+ listProvisionedModelThroughputs(
868
+ args: ListProvisionedModelThroughputsCommandInput,
869
+ options?: HttpHandlerOptions,
870
+ ): Effect.Effect<
871
+ ListProvisionedModelThroughputsCommandOutput,
872
+ SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError
873
+ >;
874
+
875
+ /**
876
+ * @see {@link ListTagsForResourceCommand}
877
+ */
878
+ listTagsForResource(
879
+ args: ListTagsForResourceCommandInput,
880
+ options?: HttpHandlerOptions,
881
+ ): Effect.Effect<
882
+ ListTagsForResourceCommandOutput,
883
+ SdkError | AccessDeniedError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError
884
+ >;
885
+
886
+ /**
887
+ * @see {@link PutModelInvocationLoggingConfigurationCommand}
888
+ */
889
+ putModelInvocationLoggingConfiguration(
890
+ args: PutModelInvocationLoggingConfigurationCommandInput,
891
+ options?: HttpHandlerOptions,
892
+ ): Effect.Effect<
893
+ PutModelInvocationLoggingConfigurationCommandOutput,
894
+ SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError
895
+ >;
896
+
897
+ /**
898
+ * @see {@link RegisterMarketplaceModelEndpointCommand}
899
+ */
900
+ registerMarketplaceModelEndpoint(
901
+ args: RegisterMarketplaceModelEndpointCommandInput,
902
+ options?: HttpHandlerOptions,
903
+ ): Effect.Effect<
904
+ RegisterMarketplaceModelEndpointCommandOutput,
905
+ | SdkError
906
+ | AccessDeniedError
907
+ | InternalServerError
908
+ | ResourceNotFoundError
909
+ | ServiceUnavailableError
910
+ | ThrottlingError
911
+ | ValidationError
912
+ >;
913
+
914
+ /**
915
+ * @see {@link StopEvaluationJobCommand}
916
+ */
917
+ stopEvaluationJob(
918
+ args: StopEvaluationJobCommandInput,
919
+ options?: HttpHandlerOptions,
920
+ ): Effect.Effect<
921
+ StopEvaluationJobCommandOutput,
922
+ | SdkError
923
+ | AccessDeniedError
924
+ | ConflictError
925
+ | InternalServerError
926
+ | ResourceNotFoundError
927
+ | ThrottlingError
928
+ | ValidationError
929
+ >;
930
+
931
+ /**
932
+ * @see {@link StopModelCustomizationJobCommand}
933
+ */
934
+ stopModelCustomizationJob(
935
+ args: StopModelCustomizationJobCommandInput,
936
+ options?: HttpHandlerOptions,
937
+ ): Effect.Effect<
938
+ StopModelCustomizationJobCommandOutput,
939
+ | SdkError
940
+ | AccessDeniedError
941
+ | ConflictError
942
+ | InternalServerError
943
+ | ResourceNotFoundError
944
+ | ThrottlingError
945
+ | ValidationError
946
+ >;
947
+
948
+ /**
949
+ * @see {@link StopModelInvocationJobCommand}
950
+ */
951
+ stopModelInvocationJob(
952
+ args: StopModelInvocationJobCommandInput,
953
+ options?: HttpHandlerOptions,
954
+ ): Effect.Effect<
955
+ StopModelInvocationJobCommandOutput,
956
+ | SdkError
957
+ | AccessDeniedError
958
+ | ConflictError
959
+ | InternalServerError
960
+ | ResourceNotFoundError
961
+ | ThrottlingError
962
+ | ValidationError
963
+ >;
964
+
965
+ /**
966
+ * @see {@link TagResourceCommand}
967
+ */
968
+ tagResource(
969
+ args: TagResourceCommandInput,
970
+ options?: HttpHandlerOptions,
971
+ ): Effect.Effect<
972
+ TagResourceCommandOutput,
973
+ | SdkError
974
+ | AccessDeniedError
975
+ | InternalServerError
976
+ | ResourceNotFoundError
977
+ | ThrottlingError
978
+ | TooManyTagsError
979
+ | ValidationError
980
+ >;
981
+
982
+ /**
983
+ * @see {@link UntagResourceCommand}
984
+ */
985
+ untagResource(
986
+ args: UntagResourceCommandInput,
987
+ options?: HttpHandlerOptions,
988
+ ): Effect.Effect<
989
+ UntagResourceCommandOutput,
990
+ SdkError | AccessDeniedError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError
991
+ >;
992
+
993
+ /**
994
+ * @see {@link UpdateGuardrailCommand}
995
+ */
996
+ updateGuardrail(
997
+ args: UpdateGuardrailCommandInput,
998
+ options?: HttpHandlerOptions,
999
+ ): Effect.Effect<
1000
+ UpdateGuardrailCommandOutput,
1001
+ | SdkError
1002
+ | AccessDeniedError
1003
+ | ConflictError
1004
+ | InternalServerError
1005
+ | ResourceNotFoundError
1006
+ | ServiceQuotaExceededError
1007
+ | ThrottlingError
1008
+ | ValidationError
1009
+ >;
1010
+
1011
+ /**
1012
+ * @see {@link UpdateMarketplaceModelEndpointCommand}
1013
+ */
1014
+ updateMarketplaceModelEndpoint(
1015
+ args: UpdateMarketplaceModelEndpointCommandInput,
1016
+ options?: HttpHandlerOptions,
1017
+ ): Effect.Effect<
1018
+ UpdateMarketplaceModelEndpointCommandOutput,
1019
+ | SdkError
1020
+ | AccessDeniedError
1021
+ | ConflictError
1022
+ | InternalServerError
1023
+ | ResourceNotFoundError
1024
+ | ServiceQuotaExceededError
1025
+ | ThrottlingError
1026
+ | ValidationError
1027
+ >;
1028
+
1029
+ /**
1030
+ * @see {@link UpdateProvisionedModelThroughputCommand}
1031
+ */
1032
+ updateProvisionedModelThroughput(
1033
+ args: UpdateProvisionedModelThroughputCommandInput,
1034
+ options?: HttpHandlerOptions,
1035
+ ): Effect.Effect<
1036
+ UpdateProvisionedModelThroughputCommandOutput,
1037
+ SdkError | AccessDeniedError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError
1038
+ >;
1039
+ }
1040
+
1041
+ /**
1042
+ * @since 1.0.0
1043
+ * @category constructors
1044
+ */
1045
+ export const makeBedrockService = Effect.gen(function*() {
1046
+ const client = yield* Instance.BedrockClientInstance;
1047
+
1048
+ return Service.fromClientAndCommands<BedrockService$>(client, commands, AllServiceErrors);
1049
+ });
1050
+
1051
+ /**
1052
+ * @since 1.0.0
1053
+ * @category models
1054
+ */
1055
+ export class BedrockService extends Effect.Tag("@effect-aws/client-bedrock/BedrockService")<
1056
+ BedrockService,
1057
+ BedrockService$
1058
+ >() {
1059
+ static readonly defaultLayer = Layer.effect(this, makeBedrockService).pipe(Layer.provide(Instance.layer));
1060
+ static readonly layer = (config: BedrockService.Config) =>
1061
+ Layer.effect(this, makeBedrockService).pipe(
1062
+ Layer.provide(Instance.layer),
1063
+ Layer.provide(BedrockServiceConfig.setBedrockServiceConfig(config)),
1064
+ );
1065
+ static readonly baseLayer = (
1066
+ evaluate: (defaultConfig: BedrockClientConfig) => BedrockClient,
1067
+ ) =>
1068
+ Layer.effect(this, makeBedrockService).pipe(
1069
+ Layer.provide(
1070
+ Layer.effect(
1071
+ Instance.BedrockClientInstance,
1072
+ Effect.map(BedrockServiceConfig.toBedrockClientConfig, evaluate),
1073
+ ),
1074
+ ),
1075
+ );
1076
+ }
1077
+
1078
+ /**
1079
+ * @since 1.0.0
1080
+ */
1081
+ export declare namespace BedrockService {
1082
+ /**
1083
+ * @since 1.0.0
1084
+ */
1085
+ export interface Config extends Omit<BedrockClientConfig, "logger"> {
1086
+ readonly logger?: ServiceLogger.ServiceLoggerConstructorProps | true;
1087
+ }
1088
+ }