@effect-aws/client-bedrock 1.3.0 → 1.9.3

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