@effect-aws/client-bedrock-agent 1.11.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.
Files changed (53) hide show
  1. package/BedrockAgentClientInstance/package.json +6 -0
  2. package/BedrockAgentService/package.json +6 -0
  3. package/BedrockAgentServiceConfig/package.json +6 -0
  4. package/Errors/package.json +6 -0
  5. package/LICENSE +19 -0
  6. package/README.md +58 -0
  7. package/dist/cjs/BedrockAgentClientInstance.d.ts +26 -0
  8. package/dist/cjs/BedrockAgentClientInstance.d.ts.map +1 -0
  9. package/dist/cjs/BedrockAgentClientInstance.js +52 -0
  10. package/dist/cjs/BedrockAgentClientInstance.js.map +1 -0
  11. package/dist/cjs/BedrockAgentService.d.ts +351 -0
  12. package/dist/cjs/BedrockAgentService.d.ts.map +1 -0
  13. package/dist/cjs/BedrockAgentService.js +148 -0
  14. package/dist/cjs/BedrockAgentService.js.map +1 -0
  15. package/dist/cjs/BedrockAgentServiceConfig.d.ts +26 -0
  16. package/dist/cjs/BedrockAgentServiceConfig.d.ts.map +1 -0
  17. package/dist/cjs/BedrockAgentServiceConfig.js +60 -0
  18. package/dist/cjs/BedrockAgentServiceConfig.js.map +1 -0
  19. package/dist/cjs/Errors.d.ts +14 -0
  20. package/dist/cjs/Errors.d.ts.map +1 -0
  21. package/dist/cjs/Errors.js +13 -0
  22. package/dist/cjs/Errors.js.map +1 -0
  23. package/dist/cjs/index.d.ts +44 -0
  24. package/dist/cjs/index.d.ts.map +1 -0
  25. package/dist/cjs/index.js +56 -0
  26. package/dist/cjs/index.js.map +1 -0
  27. package/dist/dts/BedrockAgentClientInstance.d.ts +26 -0
  28. package/dist/dts/BedrockAgentClientInstance.d.ts.map +1 -0
  29. package/dist/dts/BedrockAgentService.d.ts +351 -0
  30. package/dist/dts/BedrockAgentService.d.ts.map +1 -0
  31. package/dist/dts/BedrockAgentServiceConfig.d.ts +26 -0
  32. package/dist/dts/BedrockAgentServiceConfig.d.ts.map +1 -0
  33. package/dist/dts/Errors.d.ts +14 -0
  34. package/dist/dts/Errors.d.ts.map +1 -0
  35. package/dist/dts/index.d.ts +44 -0
  36. package/dist/dts/index.d.ts.map +1 -0
  37. package/dist/esm/BedrockAgentClientInstance.js +25 -0
  38. package/dist/esm/BedrockAgentClientInstance.js.map +1 -0
  39. package/dist/esm/BedrockAgentService.js +121 -0
  40. package/dist/esm/BedrockAgentService.js.map +1 -0
  41. package/dist/esm/BedrockAgentServiceConfig.js +33 -0
  42. package/dist/esm/BedrockAgentServiceConfig.js.map +1 -0
  43. package/dist/esm/Errors.js +10 -0
  44. package/dist/esm/Errors.js.map +1 -0
  45. package/dist/esm/index.js +27 -0
  46. package/dist/esm/index.js.map +1 -0
  47. package/dist/esm/package.json +4 -0
  48. package/package.json +71 -0
  49. package/src/BedrockAgentClientInstance.ts +35 -0
  50. package/src/BedrockAgentService.ts +1854 -0
  51. package/src/BedrockAgentServiceConfig.ts +54 -0
  52. package/src/Errors.ts +29 -0
  53. package/src/index.ts +50 -0
@@ -0,0 +1,1854 @@
1
+ /**
2
+ * @since 1.0.0
3
+ */
4
+ import {
5
+ AssociateAgentCollaboratorCommand,
6
+ type AssociateAgentCollaboratorCommandInput,
7
+ type AssociateAgentCollaboratorCommandOutput,
8
+ AssociateAgentKnowledgeBaseCommand,
9
+ type AssociateAgentKnowledgeBaseCommandInput,
10
+ type AssociateAgentKnowledgeBaseCommandOutput,
11
+ type BedrockAgentClient,
12
+ type BedrockAgentClientConfig,
13
+ CreateAgentActionGroupCommand,
14
+ type CreateAgentActionGroupCommandInput,
15
+ type CreateAgentActionGroupCommandOutput,
16
+ CreateAgentAliasCommand,
17
+ type CreateAgentAliasCommandInput,
18
+ type CreateAgentAliasCommandOutput,
19
+ CreateAgentCommand,
20
+ type CreateAgentCommandInput,
21
+ type CreateAgentCommandOutput,
22
+ CreateDataSourceCommand,
23
+ type CreateDataSourceCommandInput,
24
+ type CreateDataSourceCommandOutput,
25
+ CreateFlowAliasCommand,
26
+ type CreateFlowAliasCommandInput,
27
+ type CreateFlowAliasCommandOutput,
28
+ CreateFlowCommand,
29
+ type CreateFlowCommandInput,
30
+ type CreateFlowCommandOutput,
31
+ CreateFlowVersionCommand,
32
+ type CreateFlowVersionCommandInput,
33
+ type CreateFlowVersionCommandOutput,
34
+ CreateKnowledgeBaseCommand,
35
+ type CreateKnowledgeBaseCommandInput,
36
+ type CreateKnowledgeBaseCommandOutput,
37
+ CreatePromptCommand,
38
+ type CreatePromptCommandInput,
39
+ type CreatePromptCommandOutput,
40
+ CreatePromptVersionCommand,
41
+ type CreatePromptVersionCommandInput,
42
+ type CreatePromptVersionCommandOutput,
43
+ DeleteAgentActionGroupCommand,
44
+ type DeleteAgentActionGroupCommandInput,
45
+ type DeleteAgentActionGroupCommandOutput,
46
+ DeleteAgentAliasCommand,
47
+ type DeleteAgentAliasCommandInput,
48
+ type DeleteAgentAliasCommandOutput,
49
+ DeleteAgentCommand,
50
+ type DeleteAgentCommandInput,
51
+ type DeleteAgentCommandOutput,
52
+ DeleteAgentVersionCommand,
53
+ type DeleteAgentVersionCommandInput,
54
+ type DeleteAgentVersionCommandOutput,
55
+ DeleteDataSourceCommand,
56
+ type DeleteDataSourceCommandInput,
57
+ type DeleteDataSourceCommandOutput,
58
+ DeleteFlowAliasCommand,
59
+ type DeleteFlowAliasCommandInput,
60
+ type DeleteFlowAliasCommandOutput,
61
+ DeleteFlowCommand,
62
+ type DeleteFlowCommandInput,
63
+ type DeleteFlowCommandOutput,
64
+ DeleteFlowVersionCommand,
65
+ type DeleteFlowVersionCommandInput,
66
+ type DeleteFlowVersionCommandOutput,
67
+ DeleteKnowledgeBaseCommand,
68
+ type DeleteKnowledgeBaseCommandInput,
69
+ type DeleteKnowledgeBaseCommandOutput,
70
+ DeleteKnowledgeBaseDocumentsCommand,
71
+ type DeleteKnowledgeBaseDocumentsCommandInput,
72
+ type DeleteKnowledgeBaseDocumentsCommandOutput,
73
+ DeletePromptCommand,
74
+ type DeletePromptCommandInput,
75
+ type DeletePromptCommandOutput,
76
+ DisassociateAgentCollaboratorCommand,
77
+ type DisassociateAgentCollaboratorCommandInput,
78
+ type DisassociateAgentCollaboratorCommandOutput,
79
+ DisassociateAgentKnowledgeBaseCommand,
80
+ type DisassociateAgentKnowledgeBaseCommandInput,
81
+ type DisassociateAgentKnowledgeBaseCommandOutput,
82
+ GetAgentActionGroupCommand,
83
+ type GetAgentActionGroupCommandInput,
84
+ type GetAgentActionGroupCommandOutput,
85
+ GetAgentAliasCommand,
86
+ type GetAgentAliasCommandInput,
87
+ type GetAgentAliasCommandOutput,
88
+ GetAgentCollaboratorCommand,
89
+ type GetAgentCollaboratorCommandInput,
90
+ type GetAgentCollaboratorCommandOutput,
91
+ GetAgentCommand,
92
+ type GetAgentCommandInput,
93
+ type GetAgentCommandOutput,
94
+ GetAgentKnowledgeBaseCommand,
95
+ type GetAgentKnowledgeBaseCommandInput,
96
+ type GetAgentKnowledgeBaseCommandOutput,
97
+ GetAgentVersionCommand,
98
+ type GetAgentVersionCommandInput,
99
+ type GetAgentVersionCommandOutput,
100
+ GetDataSourceCommand,
101
+ type GetDataSourceCommandInput,
102
+ type GetDataSourceCommandOutput,
103
+ GetFlowAliasCommand,
104
+ type GetFlowAliasCommandInput,
105
+ type GetFlowAliasCommandOutput,
106
+ GetFlowCommand,
107
+ type GetFlowCommandInput,
108
+ type GetFlowCommandOutput,
109
+ GetFlowVersionCommand,
110
+ type GetFlowVersionCommandInput,
111
+ type GetFlowVersionCommandOutput,
112
+ GetIngestionJobCommand,
113
+ type GetIngestionJobCommandInput,
114
+ type GetIngestionJobCommandOutput,
115
+ GetKnowledgeBaseCommand,
116
+ type GetKnowledgeBaseCommandInput,
117
+ type GetKnowledgeBaseCommandOutput,
118
+ GetKnowledgeBaseDocumentsCommand,
119
+ type GetKnowledgeBaseDocumentsCommandInput,
120
+ type GetKnowledgeBaseDocumentsCommandOutput,
121
+ GetPromptCommand,
122
+ type GetPromptCommandInput,
123
+ type GetPromptCommandOutput,
124
+ IngestKnowledgeBaseDocumentsCommand,
125
+ type IngestKnowledgeBaseDocumentsCommandInput,
126
+ type IngestKnowledgeBaseDocumentsCommandOutput,
127
+ ListAgentActionGroupsCommand,
128
+ type ListAgentActionGroupsCommandInput,
129
+ type ListAgentActionGroupsCommandOutput,
130
+ ListAgentAliasesCommand,
131
+ type ListAgentAliasesCommandInput,
132
+ type ListAgentAliasesCommandOutput,
133
+ ListAgentCollaboratorsCommand,
134
+ type ListAgentCollaboratorsCommandInput,
135
+ type ListAgentCollaboratorsCommandOutput,
136
+ ListAgentKnowledgeBasesCommand,
137
+ type ListAgentKnowledgeBasesCommandInput,
138
+ type ListAgentKnowledgeBasesCommandOutput,
139
+ ListAgentsCommand,
140
+ type ListAgentsCommandInput,
141
+ type ListAgentsCommandOutput,
142
+ ListAgentVersionsCommand,
143
+ type ListAgentVersionsCommandInput,
144
+ type ListAgentVersionsCommandOutput,
145
+ ListDataSourcesCommand,
146
+ type ListDataSourcesCommandInput,
147
+ type ListDataSourcesCommandOutput,
148
+ ListFlowAliasesCommand,
149
+ type ListFlowAliasesCommandInput,
150
+ type ListFlowAliasesCommandOutput,
151
+ ListFlowsCommand,
152
+ type ListFlowsCommandInput,
153
+ type ListFlowsCommandOutput,
154
+ ListFlowVersionsCommand,
155
+ type ListFlowVersionsCommandInput,
156
+ type ListFlowVersionsCommandOutput,
157
+ ListIngestionJobsCommand,
158
+ type ListIngestionJobsCommandInput,
159
+ type ListIngestionJobsCommandOutput,
160
+ ListKnowledgeBaseDocumentsCommand,
161
+ type ListKnowledgeBaseDocumentsCommandInput,
162
+ type ListKnowledgeBaseDocumentsCommandOutput,
163
+ ListKnowledgeBasesCommand,
164
+ type ListKnowledgeBasesCommandInput,
165
+ type ListKnowledgeBasesCommandOutput,
166
+ ListPromptsCommand,
167
+ type ListPromptsCommandInput,
168
+ type ListPromptsCommandOutput,
169
+ ListTagsForResourceCommand,
170
+ type ListTagsForResourceCommandInput,
171
+ type ListTagsForResourceCommandOutput,
172
+ paginateListAgentActionGroups,
173
+ paginateListAgentAliases,
174
+ paginateListAgentCollaborators,
175
+ paginateListAgentKnowledgeBases,
176
+ paginateListAgents,
177
+ paginateListAgentVersions,
178
+ paginateListDataSources,
179
+ paginateListFlowAliases,
180
+ paginateListFlows,
181
+ paginateListFlowVersions,
182
+ paginateListIngestionJobs,
183
+ paginateListKnowledgeBaseDocuments,
184
+ paginateListKnowledgeBases,
185
+ paginateListPrompts,
186
+ PrepareAgentCommand,
187
+ type PrepareAgentCommandInput,
188
+ type PrepareAgentCommandOutput,
189
+ PrepareFlowCommand,
190
+ type PrepareFlowCommandInput,
191
+ type PrepareFlowCommandOutput,
192
+ StartIngestionJobCommand,
193
+ type StartIngestionJobCommandInput,
194
+ type StartIngestionJobCommandOutput,
195
+ StopIngestionJobCommand,
196
+ type StopIngestionJobCommandInput,
197
+ type StopIngestionJobCommandOutput,
198
+ TagResourceCommand,
199
+ type TagResourceCommandInput,
200
+ type TagResourceCommandOutput,
201
+ UntagResourceCommand,
202
+ type UntagResourceCommandInput,
203
+ type UntagResourceCommandOutput,
204
+ UpdateAgentActionGroupCommand,
205
+ type UpdateAgentActionGroupCommandInput,
206
+ type UpdateAgentActionGroupCommandOutput,
207
+ UpdateAgentAliasCommand,
208
+ type UpdateAgentAliasCommandInput,
209
+ type UpdateAgentAliasCommandOutput,
210
+ UpdateAgentCollaboratorCommand,
211
+ type UpdateAgentCollaboratorCommandInput,
212
+ type UpdateAgentCollaboratorCommandOutput,
213
+ UpdateAgentCommand,
214
+ type UpdateAgentCommandInput,
215
+ type UpdateAgentCommandOutput,
216
+ UpdateAgentKnowledgeBaseCommand,
217
+ type UpdateAgentKnowledgeBaseCommandInput,
218
+ type UpdateAgentKnowledgeBaseCommandOutput,
219
+ UpdateDataSourceCommand,
220
+ type UpdateDataSourceCommandInput,
221
+ type UpdateDataSourceCommandOutput,
222
+ UpdateFlowAliasCommand,
223
+ type UpdateFlowAliasCommandInput,
224
+ type UpdateFlowAliasCommandOutput,
225
+ UpdateFlowCommand,
226
+ type UpdateFlowCommandInput,
227
+ type UpdateFlowCommandOutput,
228
+ UpdateKnowledgeBaseCommand,
229
+ type UpdateKnowledgeBaseCommandInput,
230
+ type UpdateKnowledgeBaseCommandOutput,
231
+ UpdatePromptCommand,
232
+ type UpdatePromptCommandInput,
233
+ type UpdatePromptCommandOutput,
234
+ ValidateFlowDefinitionCommand,
235
+ type ValidateFlowDefinitionCommandInput,
236
+ type ValidateFlowDefinitionCommandOutput,
237
+ } from "@aws-sdk/client-bedrock-agent";
238
+ import * as Service from "@effect-aws/commons/Service";
239
+ import type * as ServiceLogger from "@effect-aws/commons/ServiceLogger";
240
+ import type { HttpHandlerOptions } from "@effect-aws/commons/Types";
241
+ import type * as Cause from "effect/Cause";
242
+ import * as Effect from "effect/Effect";
243
+ import * as Layer from "effect/Layer";
244
+ import type * as Stream from "effect/Stream";
245
+ import * as Instance from "./BedrockAgentClientInstance.js";
246
+ import * as BedrockAgentServiceConfig from "./BedrockAgentServiceConfig.js";
247
+ import type {
248
+ AccessDeniedError,
249
+ ConflictError,
250
+ InternalServerError,
251
+ ResourceNotFoundError,
252
+ SdkError,
253
+ ServiceQuotaExceededError,
254
+ ThrottlingError,
255
+ ValidationError,
256
+ } from "./Errors.js";
257
+ import { AllServiceErrors } from "./Errors.js";
258
+
259
+ const commands = {
260
+ AssociateAgentCollaboratorCommand,
261
+ AssociateAgentKnowledgeBaseCommand,
262
+ CreateAgentCommand,
263
+ CreateAgentActionGroupCommand,
264
+ CreateAgentAliasCommand,
265
+ CreateDataSourceCommand,
266
+ CreateFlowCommand,
267
+ CreateFlowAliasCommand,
268
+ CreateFlowVersionCommand,
269
+ CreateKnowledgeBaseCommand,
270
+ CreatePromptCommand,
271
+ CreatePromptVersionCommand,
272
+ DeleteAgentCommand,
273
+ DeleteAgentActionGroupCommand,
274
+ DeleteAgentAliasCommand,
275
+ DeleteAgentVersionCommand,
276
+ DeleteDataSourceCommand,
277
+ DeleteFlowCommand,
278
+ DeleteFlowAliasCommand,
279
+ DeleteFlowVersionCommand,
280
+ DeleteKnowledgeBaseCommand,
281
+ DeleteKnowledgeBaseDocumentsCommand,
282
+ DeletePromptCommand,
283
+ DisassociateAgentCollaboratorCommand,
284
+ DisassociateAgentKnowledgeBaseCommand,
285
+ GetAgentCommand,
286
+ GetAgentActionGroupCommand,
287
+ GetAgentAliasCommand,
288
+ GetAgentCollaboratorCommand,
289
+ GetAgentKnowledgeBaseCommand,
290
+ GetAgentVersionCommand,
291
+ GetDataSourceCommand,
292
+ GetFlowCommand,
293
+ GetFlowAliasCommand,
294
+ GetFlowVersionCommand,
295
+ GetIngestionJobCommand,
296
+ GetKnowledgeBaseCommand,
297
+ GetKnowledgeBaseDocumentsCommand,
298
+ GetPromptCommand,
299
+ IngestKnowledgeBaseDocumentsCommand,
300
+ ListAgentActionGroupsCommand,
301
+ ListAgentAliasesCommand,
302
+ ListAgentCollaboratorsCommand,
303
+ ListAgentKnowledgeBasesCommand,
304
+ ListAgentVersionsCommand,
305
+ ListAgentsCommand,
306
+ ListDataSourcesCommand,
307
+ ListFlowAliasesCommand,
308
+ ListFlowVersionsCommand,
309
+ ListFlowsCommand,
310
+ ListIngestionJobsCommand,
311
+ ListKnowledgeBaseDocumentsCommand,
312
+ ListKnowledgeBasesCommand,
313
+ ListPromptsCommand,
314
+ ListTagsForResourceCommand,
315
+ PrepareAgentCommand,
316
+ PrepareFlowCommand,
317
+ StartIngestionJobCommand,
318
+ StopIngestionJobCommand,
319
+ TagResourceCommand,
320
+ UntagResourceCommand,
321
+ UpdateAgentCommand,
322
+ UpdateAgentActionGroupCommand,
323
+ UpdateAgentAliasCommand,
324
+ UpdateAgentCollaboratorCommand,
325
+ UpdateAgentKnowledgeBaseCommand,
326
+ UpdateDataSourceCommand,
327
+ UpdateFlowCommand,
328
+ UpdateFlowAliasCommand,
329
+ UpdateKnowledgeBaseCommand,
330
+ UpdatePromptCommand,
331
+ ValidateFlowDefinitionCommand,
332
+ };
333
+
334
+ const paginators = {
335
+ paginateListAgentActionGroups,
336
+ paginateListAgentAliases,
337
+ paginateListAgentCollaborators,
338
+ paginateListAgentKnowledgeBases,
339
+ paginateListAgentVersions,
340
+ paginateListAgents,
341
+ paginateListDataSources,
342
+ paginateListFlowAliases,
343
+ paginateListFlowVersions,
344
+ paginateListFlows,
345
+ paginateListIngestionJobs,
346
+ paginateListKnowledgeBaseDocuments,
347
+ paginateListKnowledgeBases,
348
+ paginateListPrompts,
349
+ };
350
+
351
+ interface BedrockAgentService$ {
352
+ readonly _: unique symbol;
353
+
354
+ /**
355
+ * @see {@link AssociateAgentCollaboratorCommand}
356
+ */
357
+ associateAgentCollaborator(
358
+ args: AssociateAgentCollaboratorCommandInput,
359
+ options?: HttpHandlerOptions,
360
+ ): Effect.Effect<
361
+ AssociateAgentCollaboratorCommandOutput,
362
+ | Cause.TimeoutException
363
+ | SdkError
364
+ | AccessDeniedError
365
+ | ConflictError
366
+ | InternalServerError
367
+ | ResourceNotFoundError
368
+ | ServiceQuotaExceededError
369
+ | ThrottlingError
370
+ | ValidationError
371
+ >;
372
+
373
+ /**
374
+ * @see {@link AssociateAgentKnowledgeBaseCommand}
375
+ */
376
+ associateAgentKnowledgeBase(
377
+ args: AssociateAgentKnowledgeBaseCommandInput,
378
+ options?: HttpHandlerOptions,
379
+ ): Effect.Effect<
380
+ AssociateAgentKnowledgeBaseCommandOutput,
381
+ | Cause.TimeoutException
382
+ | SdkError
383
+ | AccessDeniedError
384
+ | ConflictError
385
+ | InternalServerError
386
+ | ResourceNotFoundError
387
+ | ServiceQuotaExceededError
388
+ | ThrottlingError
389
+ | ValidationError
390
+ >;
391
+
392
+ /**
393
+ * @see {@link CreateAgentCommand}
394
+ */
395
+ createAgent(
396
+ args: CreateAgentCommandInput,
397
+ options?: HttpHandlerOptions,
398
+ ): Effect.Effect<
399
+ CreateAgentCommandOutput,
400
+ | Cause.TimeoutException
401
+ | SdkError
402
+ | AccessDeniedError
403
+ | ConflictError
404
+ | InternalServerError
405
+ | ServiceQuotaExceededError
406
+ | ThrottlingError
407
+ | ValidationError
408
+ >;
409
+
410
+ /**
411
+ * @see {@link CreateAgentActionGroupCommand}
412
+ */
413
+ createAgentActionGroup(
414
+ args: CreateAgentActionGroupCommandInput,
415
+ options?: HttpHandlerOptions,
416
+ ): Effect.Effect<
417
+ CreateAgentActionGroupCommandOutput,
418
+ | Cause.TimeoutException
419
+ | SdkError
420
+ | AccessDeniedError
421
+ | ConflictError
422
+ | InternalServerError
423
+ | ResourceNotFoundError
424
+ | ServiceQuotaExceededError
425
+ | ThrottlingError
426
+ | ValidationError
427
+ >;
428
+
429
+ /**
430
+ * @see {@link CreateAgentAliasCommand}
431
+ */
432
+ createAgentAlias(
433
+ args: CreateAgentAliasCommandInput,
434
+ options?: HttpHandlerOptions,
435
+ ): Effect.Effect<
436
+ CreateAgentAliasCommandOutput,
437
+ | Cause.TimeoutException
438
+ | SdkError
439
+ | AccessDeniedError
440
+ | ConflictError
441
+ | InternalServerError
442
+ | ResourceNotFoundError
443
+ | ServiceQuotaExceededError
444
+ | ThrottlingError
445
+ | ValidationError
446
+ >;
447
+
448
+ /**
449
+ * @see {@link CreateDataSourceCommand}
450
+ */
451
+ createDataSource(
452
+ args: CreateDataSourceCommandInput,
453
+ options?: HttpHandlerOptions,
454
+ ): Effect.Effect<
455
+ CreateDataSourceCommandOutput,
456
+ | Cause.TimeoutException
457
+ | SdkError
458
+ | AccessDeniedError
459
+ | ConflictError
460
+ | InternalServerError
461
+ | ResourceNotFoundError
462
+ | ServiceQuotaExceededError
463
+ | ThrottlingError
464
+ | ValidationError
465
+ >;
466
+
467
+ /**
468
+ * @see {@link CreateFlowCommand}
469
+ */
470
+ createFlow(
471
+ args: CreateFlowCommandInput,
472
+ options?: HttpHandlerOptions,
473
+ ): Effect.Effect<
474
+ CreateFlowCommandOutput,
475
+ | Cause.TimeoutException
476
+ | SdkError
477
+ | AccessDeniedError
478
+ | ConflictError
479
+ | InternalServerError
480
+ | ServiceQuotaExceededError
481
+ | ThrottlingError
482
+ | ValidationError
483
+ >;
484
+
485
+ /**
486
+ * @see {@link CreateFlowAliasCommand}
487
+ */
488
+ createFlowAlias(
489
+ args: CreateFlowAliasCommandInput,
490
+ options?: HttpHandlerOptions,
491
+ ): Effect.Effect<
492
+ CreateFlowAliasCommandOutput,
493
+ | Cause.TimeoutException
494
+ | SdkError
495
+ | AccessDeniedError
496
+ | ConflictError
497
+ | InternalServerError
498
+ | ResourceNotFoundError
499
+ | ServiceQuotaExceededError
500
+ | ThrottlingError
501
+ | ValidationError
502
+ >;
503
+
504
+ /**
505
+ * @see {@link CreateFlowVersionCommand}
506
+ */
507
+ createFlowVersion(
508
+ args: CreateFlowVersionCommandInput,
509
+ options?: HttpHandlerOptions,
510
+ ): Effect.Effect<
511
+ CreateFlowVersionCommandOutput,
512
+ | Cause.TimeoutException
513
+ | SdkError
514
+ | AccessDeniedError
515
+ | ConflictError
516
+ | InternalServerError
517
+ | ResourceNotFoundError
518
+ | ServiceQuotaExceededError
519
+ | ThrottlingError
520
+ | ValidationError
521
+ >;
522
+
523
+ /**
524
+ * @see {@link CreateKnowledgeBaseCommand}
525
+ */
526
+ createKnowledgeBase(
527
+ args: CreateKnowledgeBaseCommandInput,
528
+ options?: HttpHandlerOptions,
529
+ ): Effect.Effect<
530
+ CreateKnowledgeBaseCommandOutput,
531
+ | Cause.TimeoutException
532
+ | SdkError
533
+ | AccessDeniedError
534
+ | ConflictError
535
+ | InternalServerError
536
+ | ServiceQuotaExceededError
537
+ | ThrottlingError
538
+ | ValidationError
539
+ >;
540
+
541
+ /**
542
+ * @see {@link CreatePromptCommand}
543
+ */
544
+ createPrompt(
545
+ args: CreatePromptCommandInput,
546
+ options?: HttpHandlerOptions,
547
+ ): Effect.Effect<
548
+ CreatePromptCommandOutput,
549
+ | Cause.TimeoutException
550
+ | SdkError
551
+ | AccessDeniedError
552
+ | ConflictError
553
+ | InternalServerError
554
+ | ServiceQuotaExceededError
555
+ | ThrottlingError
556
+ | ValidationError
557
+ >;
558
+
559
+ /**
560
+ * @see {@link CreatePromptVersionCommand}
561
+ */
562
+ createPromptVersion(
563
+ args: CreatePromptVersionCommandInput,
564
+ options?: HttpHandlerOptions,
565
+ ): Effect.Effect<
566
+ CreatePromptVersionCommandOutput,
567
+ | Cause.TimeoutException
568
+ | SdkError
569
+ | AccessDeniedError
570
+ | ConflictError
571
+ | InternalServerError
572
+ | ResourceNotFoundError
573
+ | ServiceQuotaExceededError
574
+ | ThrottlingError
575
+ | ValidationError
576
+ >;
577
+
578
+ /**
579
+ * @see {@link DeleteAgentCommand}
580
+ */
581
+ deleteAgent(
582
+ args: DeleteAgentCommandInput,
583
+ options?: HttpHandlerOptions,
584
+ ): Effect.Effect<
585
+ DeleteAgentCommandOutput,
586
+ | Cause.TimeoutException
587
+ | SdkError
588
+ | AccessDeniedError
589
+ | ConflictError
590
+ | InternalServerError
591
+ | ResourceNotFoundError
592
+ | ThrottlingError
593
+ | ValidationError
594
+ >;
595
+
596
+ /**
597
+ * @see {@link DeleteAgentActionGroupCommand}
598
+ */
599
+ deleteAgentActionGroup(
600
+ args: DeleteAgentActionGroupCommandInput,
601
+ options?: HttpHandlerOptions,
602
+ ): Effect.Effect<
603
+ DeleteAgentActionGroupCommandOutput,
604
+ | Cause.TimeoutException
605
+ | SdkError
606
+ | AccessDeniedError
607
+ | ConflictError
608
+ | InternalServerError
609
+ | ResourceNotFoundError
610
+ | ThrottlingError
611
+ | ValidationError
612
+ >;
613
+
614
+ /**
615
+ * @see {@link DeleteAgentAliasCommand}
616
+ */
617
+ deleteAgentAlias(
618
+ args: DeleteAgentAliasCommandInput,
619
+ options?: HttpHandlerOptions,
620
+ ): Effect.Effect<
621
+ DeleteAgentAliasCommandOutput,
622
+ | Cause.TimeoutException
623
+ | SdkError
624
+ | AccessDeniedError
625
+ | InternalServerError
626
+ | ResourceNotFoundError
627
+ | ThrottlingError
628
+ | ValidationError
629
+ >;
630
+
631
+ /**
632
+ * @see {@link DeleteAgentVersionCommand}
633
+ */
634
+ deleteAgentVersion(
635
+ args: DeleteAgentVersionCommandInput,
636
+ options?: HttpHandlerOptions,
637
+ ): Effect.Effect<
638
+ DeleteAgentVersionCommandOutput,
639
+ | Cause.TimeoutException
640
+ | SdkError
641
+ | AccessDeniedError
642
+ | ConflictError
643
+ | InternalServerError
644
+ | ResourceNotFoundError
645
+ | ThrottlingError
646
+ | ValidationError
647
+ >;
648
+
649
+ /**
650
+ * @see {@link DeleteDataSourceCommand}
651
+ */
652
+ deleteDataSource(
653
+ args: DeleteDataSourceCommandInput,
654
+ options?: HttpHandlerOptions,
655
+ ): Effect.Effect<
656
+ DeleteDataSourceCommandOutput,
657
+ | Cause.TimeoutException
658
+ | SdkError
659
+ | AccessDeniedError
660
+ | ConflictError
661
+ | InternalServerError
662
+ | ResourceNotFoundError
663
+ | ThrottlingError
664
+ | ValidationError
665
+ >;
666
+
667
+ /**
668
+ * @see {@link DeleteFlowCommand}
669
+ */
670
+ deleteFlow(
671
+ args: DeleteFlowCommandInput,
672
+ options?: HttpHandlerOptions,
673
+ ): Effect.Effect<
674
+ DeleteFlowCommandOutput,
675
+ | Cause.TimeoutException
676
+ | SdkError
677
+ | AccessDeniedError
678
+ | ConflictError
679
+ | InternalServerError
680
+ | ResourceNotFoundError
681
+ | ThrottlingError
682
+ | ValidationError
683
+ >;
684
+
685
+ /**
686
+ * @see {@link DeleteFlowAliasCommand}
687
+ */
688
+ deleteFlowAlias(
689
+ args: DeleteFlowAliasCommandInput,
690
+ options?: HttpHandlerOptions,
691
+ ): Effect.Effect<
692
+ DeleteFlowAliasCommandOutput,
693
+ | Cause.TimeoutException
694
+ | SdkError
695
+ | AccessDeniedError
696
+ | ConflictError
697
+ | InternalServerError
698
+ | ResourceNotFoundError
699
+ | ThrottlingError
700
+ | ValidationError
701
+ >;
702
+
703
+ /**
704
+ * @see {@link DeleteFlowVersionCommand}
705
+ */
706
+ deleteFlowVersion(
707
+ args: DeleteFlowVersionCommandInput,
708
+ options?: HttpHandlerOptions,
709
+ ): Effect.Effect<
710
+ DeleteFlowVersionCommandOutput,
711
+ | Cause.TimeoutException
712
+ | SdkError
713
+ | AccessDeniedError
714
+ | ConflictError
715
+ | InternalServerError
716
+ | ResourceNotFoundError
717
+ | ThrottlingError
718
+ | ValidationError
719
+ >;
720
+
721
+ /**
722
+ * @see {@link DeleteKnowledgeBaseCommand}
723
+ */
724
+ deleteKnowledgeBase(
725
+ args: DeleteKnowledgeBaseCommandInput,
726
+ options?: HttpHandlerOptions,
727
+ ): Effect.Effect<
728
+ DeleteKnowledgeBaseCommandOutput,
729
+ | Cause.TimeoutException
730
+ | SdkError
731
+ | AccessDeniedError
732
+ | ConflictError
733
+ | InternalServerError
734
+ | ResourceNotFoundError
735
+ | ThrottlingError
736
+ | ValidationError
737
+ >;
738
+
739
+ /**
740
+ * @see {@link DeleteKnowledgeBaseDocumentsCommand}
741
+ */
742
+ deleteKnowledgeBaseDocuments(
743
+ args: DeleteKnowledgeBaseDocumentsCommandInput,
744
+ options?: HttpHandlerOptions,
745
+ ): Effect.Effect<
746
+ DeleteKnowledgeBaseDocumentsCommandOutput,
747
+ | Cause.TimeoutException
748
+ | SdkError
749
+ | AccessDeniedError
750
+ | InternalServerError
751
+ | ResourceNotFoundError
752
+ | ServiceQuotaExceededError
753
+ | ThrottlingError
754
+ | ValidationError
755
+ >;
756
+
757
+ /**
758
+ * @see {@link DeletePromptCommand}
759
+ */
760
+ deletePrompt(
761
+ args: DeletePromptCommandInput,
762
+ options?: HttpHandlerOptions,
763
+ ): Effect.Effect<
764
+ DeletePromptCommandOutput,
765
+ | Cause.TimeoutException
766
+ | SdkError
767
+ | AccessDeniedError
768
+ | ConflictError
769
+ | InternalServerError
770
+ | ResourceNotFoundError
771
+ | ThrottlingError
772
+ | ValidationError
773
+ >;
774
+
775
+ /**
776
+ * @see {@link DisassociateAgentCollaboratorCommand}
777
+ */
778
+ disassociateAgentCollaborator(
779
+ args: DisassociateAgentCollaboratorCommandInput,
780
+ options?: HttpHandlerOptions,
781
+ ): Effect.Effect<
782
+ DisassociateAgentCollaboratorCommandOutput,
783
+ | Cause.TimeoutException
784
+ | SdkError
785
+ | AccessDeniedError
786
+ | ConflictError
787
+ | InternalServerError
788
+ | ResourceNotFoundError
789
+ | ThrottlingError
790
+ | ValidationError
791
+ >;
792
+
793
+ /**
794
+ * @see {@link DisassociateAgentKnowledgeBaseCommand}
795
+ */
796
+ disassociateAgentKnowledgeBase(
797
+ args: DisassociateAgentKnowledgeBaseCommandInput,
798
+ options?: HttpHandlerOptions,
799
+ ): Effect.Effect<
800
+ DisassociateAgentKnowledgeBaseCommandOutput,
801
+ | Cause.TimeoutException
802
+ | SdkError
803
+ | AccessDeniedError
804
+ | ConflictError
805
+ | InternalServerError
806
+ | ResourceNotFoundError
807
+ | ThrottlingError
808
+ | ValidationError
809
+ >;
810
+
811
+ /**
812
+ * @see {@link GetAgentCommand}
813
+ */
814
+ getAgent(
815
+ args: GetAgentCommandInput,
816
+ options?: HttpHandlerOptions,
817
+ ): Effect.Effect<
818
+ GetAgentCommandOutput,
819
+ | Cause.TimeoutException
820
+ | SdkError
821
+ | AccessDeniedError
822
+ | InternalServerError
823
+ | ResourceNotFoundError
824
+ | ThrottlingError
825
+ | ValidationError
826
+ >;
827
+
828
+ /**
829
+ * @see {@link GetAgentActionGroupCommand}
830
+ */
831
+ getAgentActionGroup(
832
+ args: GetAgentActionGroupCommandInput,
833
+ options?: HttpHandlerOptions,
834
+ ): Effect.Effect<
835
+ GetAgentActionGroupCommandOutput,
836
+ | Cause.TimeoutException
837
+ | SdkError
838
+ | AccessDeniedError
839
+ | InternalServerError
840
+ | ResourceNotFoundError
841
+ | ThrottlingError
842
+ | ValidationError
843
+ >;
844
+
845
+ /**
846
+ * @see {@link GetAgentAliasCommand}
847
+ */
848
+ getAgentAlias(
849
+ args: GetAgentAliasCommandInput,
850
+ options?: HttpHandlerOptions,
851
+ ): Effect.Effect<
852
+ GetAgentAliasCommandOutput,
853
+ | Cause.TimeoutException
854
+ | SdkError
855
+ | AccessDeniedError
856
+ | InternalServerError
857
+ | ResourceNotFoundError
858
+ | ThrottlingError
859
+ | ValidationError
860
+ >;
861
+
862
+ /**
863
+ * @see {@link GetAgentCollaboratorCommand}
864
+ */
865
+ getAgentCollaborator(
866
+ args: GetAgentCollaboratorCommandInput,
867
+ options?: HttpHandlerOptions,
868
+ ): Effect.Effect<
869
+ GetAgentCollaboratorCommandOutput,
870
+ | Cause.TimeoutException
871
+ | SdkError
872
+ | AccessDeniedError
873
+ | InternalServerError
874
+ | ResourceNotFoundError
875
+ | ThrottlingError
876
+ | ValidationError
877
+ >;
878
+
879
+ /**
880
+ * @see {@link GetAgentKnowledgeBaseCommand}
881
+ */
882
+ getAgentKnowledgeBase(
883
+ args: GetAgentKnowledgeBaseCommandInput,
884
+ options?: HttpHandlerOptions,
885
+ ): Effect.Effect<
886
+ GetAgentKnowledgeBaseCommandOutput,
887
+ | Cause.TimeoutException
888
+ | SdkError
889
+ | AccessDeniedError
890
+ | InternalServerError
891
+ | ResourceNotFoundError
892
+ | ThrottlingError
893
+ | ValidationError
894
+ >;
895
+
896
+ /**
897
+ * @see {@link GetAgentVersionCommand}
898
+ */
899
+ getAgentVersion(
900
+ args: GetAgentVersionCommandInput,
901
+ options?: HttpHandlerOptions,
902
+ ): Effect.Effect<
903
+ GetAgentVersionCommandOutput,
904
+ | Cause.TimeoutException
905
+ | SdkError
906
+ | AccessDeniedError
907
+ | InternalServerError
908
+ | ResourceNotFoundError
909
+ | ThrottlingError
910
+ | ValidationError
911
+ >;
912
+
913
+ /**
914
+ * @see {@link GetDataSourceCommand}
915
+ */
916
+ getDataSource(
917
+ args: GetDataSourceCommandInput,
918
+ options?: HttpHandlerOptions,
919
+ ): Effect.Effect<
920
+ GetDataSourceCommandOutput,
921
+ | Cause.TimeoutException
922
+ | SdkError
923
+ | AccessDeniedError
924
+ | InternalServerError
925
+ | ResourceNotFoundError
926
+ | ThrottlingError
927
+ | ValidationError
928
+ >;
929
+
930
+ /**
931
+ * @see {@link GetFlowCommand}
932
+ */
933
+ getFlow(
934
+ args: GetFlowCommandInput,
935
+ options?: HttpHandlerOptions,
936
+ ): Effect.Effect<
937
+ GetFlowCommandOutput,
938
+ | Cause.TimeoutException
939
+ | SdkError
940
+ | AccessDeniedError
941
+ | InternalServerError
942
+ | ResourceNotFoundError
943
+ | ThrottlingError
944
+ | ValidationError
945
+ >;
946
+
947
+ /**
948
+ * @see {@link GetFlowAliasCommand}
949
+ */
950
+ getFlowAlias(
951
+ args: GetFlowAliasCommandInput,
952
+ options?: HttpHandlerOptions,
953
+ ): Effect.Effect<
954
+ GetFlowAliasCommandOutput,
955
+ | Cause.TimeoutException
956
+ | SdkError
957
+ | AccessDeniedError
958
+ | InternalServerError
959
+ | ResourceNotFoundError
960
+ | ThrottlingError
961
+ | ValidationError
962
+ >;
963
+
964
+ /**
965
+ * @see {@link GetFlowVersionCommand}
966
+ */
967
+ getFlowVersion(
968
+ args: GetFlowVersionCommandInput,
969
+ options?: HttpHandlerOptions,
970
+ ): Effect.Effect<
971
+ GetFlowVersionCommandOutput,
972
+ | Cause.TimeoutException
973
+ | SdkError
974
+ | AccessDeniedError
975
+ | InternalServerError
976
+ | ResourceNotFoundError
977
+ | ThrottlingError
978
+ | ValidationError
979
+ >;
980
+
981
+ /**
982
+ * @see {@link GetIngestionJobCommand}
983
+ */
984
+ getIngestionJob(
985
+ args: GetIngestionJobCommandInput,
986
+ options?: HttpHandlerOptions,
987
+ ): Effect.Effect<
988
+ GetIngestionJobCommandOutput,
989
+ | Cause.TimeoutException
990
+ | SdkError
991
+ | AccessDeniedError
992
+ | InternalServerError
993
+ | ResourceNotFoundError
994
+ | ThrottlingError
995
+ | ValidationError
996
+ >;
997
+
998
+ /**
999
+ * @see {@link GetKnowledgeBaseCommand}
1000
+ */
1001
+ getKnowledgeBase(
1002
+ args: GetKnowledgeBaseCommandInput,
1003
+ options?: HttpHandlerOptions,
1004
+ ): Effect.Effect<
1005
+ GetKnowledgeBaseCommandOutput,
1006
+ | Cause.TimeoutException
1007
+ | SdkError
1008
+ | AccessDeniedError
1009
+ | InternalServerError
1010
+ | ResourceNotFoundError
1011
+ | ThrottlingError
1012
+ | ValidationError
1013
+ >;
1014
+
1015
+ /**
1016
+ * @see {@link GetKnowledgeBaseDocumentsCommand}
1017
+ */
1018
+ getKnowledgeBaseDocuments(
1019
+ args: GetKnowledgeBaseDocumentsCommandInput,
1020
+ options?: HttpHandlerOptions,
1021
+ ): Effect.Effect<
1022
+ GetKnowledgeBaseDocumentsCommandOutput,
1023
+ | Cause.TimeoutException
1024
+ | SdkError
1025
+ | AccessDeniedError
1026
+ | InternalServerError
1027
+ | ResourceNotFoundError
1028
+ | ServiceQuotaExceededError
1029
+ | ThrottlingError
1030
+ | ValidationError
1031
+ >;
1032
+
1033
+ /**
1034
+ * @see {@link GetPromptCommand}
1035
+ */
1036
+ getPrompt(
1037
+ args: GetPromptCommandInput,
1038
+ options?: HttpHandlerOptions,
1039
+ ): Effect.Effect<
1040
+ GetPromptCommandOutput,
1041
+ | Cause.TimeoutException
1042
+ | SdkError
1043
+ | AccessDeniedError
1044
+ | InternalServerError
1045
+ | ResourceNotFoundError
1046
+ | ThrottlingError
1047
+ | ValidationError
1048
+ >;
1049
+
1050
+ /**
1051
+ * @see {@link IngestKnowledgeBaseDocumentsCommand}
1052
+ */
1053
+ ingestKnowledgeBaseDocuments(
1054
+ args: IngestKnowledgeBaseDocumentsCommandInput,
1055
+ options?: HttpHandlerOptions,
1056
+ ): Effect.Effect<
1057
+ IngestKnowledgeBaseDocumentsCommandOutput,
1058
+ | Cause.TimeoutException
1059
+ | SdkError
1060
+ | AccessDeniedError
1061
+ | InternalServerError
1062
+ | ResourceNotFoundError
1063
+ | ServiceQuotaExceededError
1064
+ | ThrottlingError
1065
+ | ValidationError
1066
+ >;
1067
+
1068
+ /**
1069
+ * @see {@link ListAgentActionGroupsCommand}
1070
+ */
1071
+ listAgentActionGroups(
1072
+ args: ListAgentActionGroupsCommandInput,
1073
+ options?: HttpHandlerOptions,
1074
+ ): Effect.Effect<
1075
+ ListAgentActionGroupsCommandOutput,
1076
+ | Cause.TimeoutException
1077
+ | SdkError
1078
+ | AccessDeniedError
1079
+ | InternalServerError
1080
+ | ResourceNotFoundError
1081
+ | ThrottlingError
1082
+ | ValidationError
1083
+ >;
1084
+
1085
+ listAgentActionGroupsStream(
1086
+ args: ListAgentActionGroupsCommandInput,
1087
+ options?: HttpHandlerOptions,
1088
+ ): Stream.Stream<
1089
+ ListAgentActionGroupsCommandOutput,
1090
+ | Cause.TimeoutException
1091
+ | SdkError
1092
+ | AccessDeniedError
1093
+ | InternalServerError
1094
+ | ResourceNotFoundError
1095
+ | ThrottlingError
1096
+ | ValidationError
1097
+ >;
1098
+
1099
+ /**
1100
+ * @see {@link ListAgentAliasesCommand}
1101
+ */
1102
+ listAgentAliases(
1103
+ args: ListAgentAliasesCommandInput,
1104
+ options?: HttpHandlerOptions,
1105
+ ): Effect.Effect<
1106
+ ListAgentAliasesCommandOutput,
1107
+ | Cause.TimeoutException
1108
+ | SdkError
1109
+ | AccessDeniedError
1110
+ | InternalServerError
1111
+ | ResourceNotFoundError
1112
+ | ThrottlingError
1113
+ | ValidationError
1114
+ >;
1115
+
1116
+ listAgentAliasesStream(
1117
+ args: ListAgentAliasesCommandInput,
1118
+ options?: HttpHandlerOptions,
1119
+ ): Stream.Stream<
1120
+ ListAgentAliasesCommandOutput,
1121
+ | Cause.TimeoutException
1122
+ | SdkError
1123
+ | AccessDeniedError
1124
+ | InternalServerError
1125
+ | ResourceNotFoundError
1126
+ | ThrottlingError
1127
+ | ValidationError
1128
+ >;
1129
+
1130
+ /**
1131
+ * @see {@link ListAgentCollaboratorsCommand}
1132
+ */
1133
+ listAgentCollaborators(
1134
+ args: ListAgentCollaboratorsCommandInput,
1135
+ options?: HttpHandlerOptions,
1136
+ ): Effect.Effect<
1137
+ ListAgentCollaboratorsCommandOutput,
1138
+ | Cause.TimeoutException
1139
+ | SdkError
1140
+ | AccessDeniedError
1141
+ | InternalServerError
1142
+ | ResourceNotFoundError
1143
+ | ThrottlingError
1144
+ | ValidationError
1145
+ >;
1146
+
1147
+ listAgentCollaboratorsStream(
1148
+ args: ListAgentCollaboratorsCommandInput,
1149
+ options?: HttpHandlerOptions,
1150
+ ): Stream.Stream<
1151
+ ListAgentCollaboratorsCommandOutput,
1152
+ | Cause.TimeoutException
1153
+ | SdkError
1154
+ | AccessDeniedError
1155
+ | InternalServerError
1156
+ | ResourceNotFoundError
1157
+ | ThrottlingError
1158
+ | ValidationError
1159
+ >;
1160
+
1161
+ /**
1162
+ * @see {@link ListAgentKnowledgeBasesCommand}
1163
+ */
1164
+ listAgentKnowledgeBases(
1165
+ args: ListAgentKnowledgeBasesCommandInput,
1166
+ options?: HttpHandlerOptions,
1167
+ ): Effect.Effect<
1168
+ ListAgentKnowledgeBasesCommandOutput,
1169
+ | Cause.TimeoutException
1170
+ | SdkError
1171
+ | AccessDeniedError
1172
+ | InternalServerError
1173
+ | ResourceNotFoundError
1174
+ | ThrottlingError
1175
+ | ValidationError
1176
+ >;
1177
+
1178
+ listAgentKnowledgeBasesStream(
1179
+ args: ListAgentKnowledgeBasesCommandInput,
1180
+ options?: HttpHandlerOptions,
1181
+ ): Stream.Stream<
1182
+ ListAgentKnowledgeBasesCommandOutput,
1183
+ | Cause.TimeoutException
1184
+ | SdkError
1185
+ | AccessDeniedError
1186
+ | InternalServerError
1187
+ | ResourceNotFoundError
1188
+ | ThrottlingError
1189
+ | ValidationError
1190
+ >;
1191
+
1192
+ /**
1193
+ * @see {@link ListAgentVersionsCommand}
1194
+ */
1195
+ listAgentVersions(
1196
+ args: ListAgentVersionsCommandInput,
1197
+ options?: HttpHandlerOptions,
1198
+ ): Effect.Effect<
1199
+ ListAgentVersionsCommandOutput,
1200
+ | Cause.TimeoutException
1201
+ | SdkError
1202
+ | AccessDeniedError
1203
+ | InternalServerError
1204
+ | ResourceNotFoundError
1205
+ | ThrottlingError
1206
+ | ValidationError
1207
+ >;
1208
+
1209
+ listAgentVersionsStream(
1210
+ args: ListAgentVersionsCommandInput,
1211
+ options?: HttpHandlerOptions,
1212
+ ): Stream.Stream<
1213
+ ListAgentVersionsCommandOutput,
1214
+ | Cause.TimeoutException
1215
+ | SdkError
1216
+ | AccessDeniedError
1217
+ | InternalServerError
1218
+ | ResourceNotFoundError
1219
+ | ThrottlingError
1220
+ | ValidationError
1221
+ >;
1222
+
1223
+ /**
1224
+ * @see {@link ListAgentsCommand}
1225
+ */
1226
+ listAgents(
1227
+ args: ListAgentsCommandInput,
1228
+ options?: HttpHandlerOptions,
1229
+ ): Effect.Effect<
1230
+ ListAgentsCommandOutput,
1231
+ Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError
1232
+ >;
1233
+
1234
+ listAgentsStream(
1235
+ args: ListAgentsCommandInput,
1236
+ options?: HttpHandlerOptions,
1237
+ ): Stream.Stream<
1238
+ ListAgentsCommandOutput,
1239
+ Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError
1240
+ >;
1241
+
1242
+ /**
1243
+ * @see {@link ListDataSourcesCommand}
1244
+ */
1245
+ listDataSources(
1246
+ args: ListDataSourcesCommandInput,
1247
+ options?: HttpHandlerOptions,
1248
+ ): Effect.Effect<
1249
+ ListDataSourcesCommandOutput,
1250
+ | Cause.TimeoutException
1251
+ | SdkError
1252
+ | AccessDeniedError
1253
+ | InternalServerError
1254
+ | ResourceNotFoundError
1255
+ | ThrottlingError
1256
+ | ValidationError
1257
+ >;
1258
+
1259
+ listDataSourcesStream(
1260
+ args: ListDataSourcesCommandInput,
1261
+ options?: HttpHandlerOptions,
1262
+ ): Stream.Stream<
1263
+ ListDataSourcesCommandOutput,
1264
+ | Cause.TimeoutException
1265
+ | SdkError
1266
+ | AccessDeniedError
1267
+ | InternalServerError
1268
+ | ResourceNotFoundError
1269
+ | ThrottlingError
1270
+ | ValidationError
1271
+ >;
1272
+
1273
+ /**
1274
+ * @see {@link ListFlowAliasesCommand}
1275
+ */
1276
+ listFlowAliases(
1277
+ args: ListFlowAliasesCommandInput,
1278
+ options?: HttpHandlerOptions,
1279
+ ): Effect.Effect<
1280
+ ListFlowAliasesCommandOutput,
1281
+ | Cause.TimeoutException
1282
+ | SdkError
1283
+ | AccessDeniedError
1284
+ | InternalServerError
1285
+ | ResourceNotFoundError
1286
+ | ThrottlingError
1287
+ | ValidationError
1288
+ >;
1289
+
1290
+ listFlowAliasesStream(
1291
+ args: ListFlowAliasesCommandInput,
1292
+ options?: HttpHandlerOptions,
1293
+ ): Stream.Stream<
1294
+ ListFlowAliasesCommandOutput,
1295
+ | Cause.TimeoutException
1296
+ | SdkError
1297
+ | AccessDeniedError
1298
+ | InternalServerError
1299
+ | ResourceNotFoundError
1300
+ | ThrottlingError
1301
+ | ValidationError
1302
+ >;
1303
+
1304
+ /**
1305
+ * @see {@link ListFlowVersionsCommand}
1306
+ */
1307
+ listFlowVersions(
1308
+ args: ListFlowVersionsCommandInput,
1309
+ options?: HttpHandlerOptions,
1310
+ ): Effect.Effect<
1311
+ ListFlowVersionsCommandOutput,
1312
+ | Cause.TimeoutException
1313
+ | SdkError
1314
+ | AccessDeniedError
1315
+ | InternalServerError
1316
+ | ResourceNotFoundError
1317
+ | ThrottlingError
1318
+ | ValidationError
1319
+ >;
1320
+
1321
+ listFlowVersionsStream(
1322
+ args: ListFlowVersionsCommandInput,
1323
+ options?: HttpHandlerOptions,
1324
+ ): Stream.Stream<
1325
+ ListFlowVersionsCommandOutput,
1326
+ | Cause.TimeoutException
1327
+ | SdkError
1328
+ | AccessDeniedError
1329
+ | InternalServerError
1330
+ | ResourceNotFoundError
1331
+ | ThrottlingError
1332
+ | ValidationError
1333
+ >;
1334
+
1335
+ /**
1336
+ * @see {@link ListFlowsCommand}
1337
+ */
1338
+ listFlows(
1339
+ args: ListFlowsCommandInput,
1340
+ options?: HttpHandlerOptions,
1341
+ ): Effect.Effect<
1342
+ ListFlowsCommandOutput,
1343
+ Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError
1344
+ >;
1345
+
1346
+ listFlowsStream(
1347
+ args: ListFlowsCommandInput,
1348
+ options?: HttpHandlerOptions,
1349
+ ): Stream.Stream<
1350
+ ListFlowsCommandOutput,
1351
+ Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError
1352
+ >;
1353
+
1354
+ /**
1355
+ * @see {@link ListIngestionJobsCommand}
1356
+ */
1357
+ listIngestionJobs(
1358
+ args: ListIngestionJobsCommandInput,
1359
+ options?: HttpHandlerOptions,
1360
+ ): Effect.Effect<
1361
+ ListIngestionJobsCommandOutput,
1362
+ | Cause.TimeoutException
1363
+ | SdkError
1364
+ | AccessDeniedError
1365
+ | InternalServerError
1366
+ | ResourceNotFoundError
1367
+ | ThrottlingError
1368
+ | ValidationError
1369
+ >;
1370
+
1371
+ listIngestionJobsStream(
1372
+ args: ListIngestionJobsCommandInput,
1373
+ options?: HttpHandlerOptions,
1374
+ ): Stream.Stream<
1375
+ ListIngestionJobsCommandOutput,
1376
+ | Cause.TimeoutException
1377
+ | SdkError
1378
+ | AccessDeniedError
1379
+ | InternalServerError
1380
+ | ResourceNotFoundError
1381
+ | ThrottlingError
1382
+ | ValidationError
1383
+ >;
1384
+
1385
+ /**
1386
+ * @see {@link ListKnowledgeBaseDocumentsCommand}
1387
+ */
1388
+ listKnowledgeBaseDocuments(
1389
+ args: ListKnowledgeBaseDocumentsCommandInput,
1390
+ options?: HttpHandlerOptions,
1391
+ ): Effect.Effect<
1392
+ ListKnowledgeBaseDocumentsCommandOutput,
1393
+ | Cause.TimeoutException
1394
+ | SdkError
1395
+ | AccessDeniedError
1396
+ | InternalServerError
1397
+ | ResourceNotFoundError
1398
+ | ServiceQuotaExceededError
1399
+ | ThrottlingError
1400
+ | ValidationError
1401
+ >;
1402
+
1403
+ listKnowledgeBaseDocumentsStream(
1404
+ args: ListKnowledgeBaseDocumentsCommandInput,
1405
+ options?: HttpHandlerOptions,
1406
+ ): Stream.Stream<
1407
+ ListKnowledgeBaseDocumentsCommandOutput,
1408
+ | Cause.TimeoutException
1409
+ | SdkError
1410
+ | AccessDeniedError
1411
+ | InternalServerError
1412
+ | ResourceNotFoundError
1413
+ | ServiceQuotaExceededError
1414
+ | ThrottlingError
1415
+ | ValidationError
1416
+ >;
1417
+
1418
+ /**
1419
+ * @see {@link ListKnowledgeBasesCommand}
1420
+ */
1421
+ listKnowledgeBases(
1422
+ args: ListKnowledgeBasesCommandInput,
1423
+ options?: HttpHandlerOptions,
1424
+ ): Effect.Effect<
1425
+ ListKnowledgeBasesCommandOutput,
1426
+ Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError
1427
+ >;
1428
+
1429
+ listKnowledgeBasesStream(
1430
+ args: ListKnowledgeBasesCommandInput,
1431
+ options?: HttpHandlerOptions,
1432
+ ): Stream.Stream<
1433
+ ListKnowledgeBasesCommandOutput,
1434
+ Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError
1435
+ >;
1436
+
1437
+ /**
1438
+ * @see {@link ListPromptsCommand}
1439
+ */
1440
+ listPrompts(
1441
+ args: ListPromptsCommandInput,
1442
+ options?: HttpHandlerOptions,
1443
+ ): Effect.Effect<
1444
+ ListPromptsCommandOutput,
1445
+ | Cause.TimeoutException
1446
+ | SdkError
1447
+ | AccessDeniedError
1448
+ | InternalServerError
1449
+ | ResourceNotFoundError
1450
+ | ThrottlingError
1451
+ | ValidationError
1452
+ >;
1453
+
1454
+ listPromptsStream(
1455
+ args: ListPromptsCommandInput,
1456
+ options?: HttpHandlerOptions,
1457
+ ): Stream.Stream<
1458
+ ListPromptsCommandOutput,
1459
+ | Cause.TimeoutException
1460
+ | SdkError
1461
+ | AccessDeniedError
1462
+ | InternalServerError
1463
+ | ResourceNotFoundError
1464
+ | ThrottlingError
1465
+ | ValidationError
1466
+ >;
1467
+
1468
+ /**
1469
+ * @see {@link ListTagsForResourceCommand}
1470
+ */
1471
+ listTagsForResource(
1472
+ args: ListTagsForResourceCommandInput,
1473
+ options?: HttpHandlerOptions,
1474
+ ): Effect.Effect<
1475
+ ListTagsForResourceCommandOutput,
1476
+ | Cause.TimeoutException
1477
+ | SdkError
1478
+ | AccessDeniedError
1479
+ | InternalServerError
1480
+ | ResourceNotFoundError
1481
+ | ThrottlingError
1482
+ | ValidationError
1483
+ >;
1484
+
1485
+ /**
1486
+ * @see {@link PrepareAgentCommand}
1487
+ */
1488
+ prepareAgent(
1489
+ args: PrepareAgentCommandInput,
1490
+ options?: HttpHandlerOptions,
1491
+ ): Effect.Effect<
1492
+ PrepareAgentCommandOutput,
1493
+ | Cause.TimeoutException
1494
+ | SdkError
1495
+ | AccessDeniedError
1496
+ | ConflictError
1497
+ | InternalServerError
1498
+ | ResourceNotFoundError
1499
+ | ServiceQuotaExceededError
1500
+ | ThrottlingError
1501
+ | ValidationError
1502
+ >;
1503
+
1504
+ /**
1505
+ * @see {@link PrepareFlowCommand}
1506
+ */
1507
+ prepareFlow(
1508
+ args: PrepareFlowCommandInput,
1509
+ options?: HttpHandlerOptions,
1510
+ ): Effect.Effect<
1511
+ PrepareFlowCommandOutput,
1512
+ | Cause.TimeoutException
1513
+ | SdkError
1514
+ | AccessDeniedError
1515
+ | ConflictError
1516
+ | InternalServerError
1517
+ | ResourceNotFoundError
1518
+ | ServiceQuotaExceededError
1519
+ | ThrottlingError
1520
+ | ValidationError
1521
+ >;
1522
+
1523
+ /**
1524
+ * @see {@link StartIngestionJobCommand}
1525
+ */
1526
+ startIngestionJob(
1527
+ args: StartIngestionJobCommandInput,
1528
+ options?: HttpHandlerOptions,
1529
+ ): Effect.Effect<
1530
+ StartIngestionJobCommandOutput,
1531
+ | Cause.TimeoutException
1532
+ | SdkError
1533
+ | AccessDeniedError
1534
+ | ConflictError
1535
+ | InternalServerError
1536
+ | ResourceNotFoundError
1537
+ | ServiceQuotaExceededError
1538
+ | ThrottlingError
1539
+ | ValidationError
1540
+ >;
1541
+
1542
+ /**
1543
+ * @see {@link StopIngestionJobCommand}
1544
+ */
1545
+ stopIngestionJob(
1546
+ args: StopIngestionJobCommandInput,
1547
+ options?: HttpHandlerOptions,
1548
+ ): Effect.Effect<
1549
+ StopIngestionJobCommandOutput,
1550
+ | Cause.TimeoutException
1551
+ | SdkError
1552
+ | AccessDeniedError
1553
+ | ConflictError
1554
+ | InternalServerError
1555
+ | ResourceNotFoundError
1556
+ | ThrottlingError
1557
+ | ValidationError
1558
+ >;
1559
+
1560
+ /**
1561
+ * @see {@link TagResourceCommand}
1562
+ */
1563
+ tagResource(
1564
+ args: TagResourceCommandInput,
1565
+ options?: HttpHandlerOptions,
1566
+ ): Effect.Effect<
1567
+ TagResourceCommandOutput,
1568
+ | Cause.TimeoutException
1569
+ | SdkError
1570
+ | AccessDeniedError
1571
+ | InternalServerError
1572
+ | ResourceNotFoundError
1573
+ | ServiceQuotaExceededError
1574
+ | ThrottlingError
1575
+ | ValidationError
1576
+ >;
1577
+
1578
+ /**
1579
+ * @see {@link UntagResourceCommand}
1580
+ */
1581
+ untagResource(
1582
+ args: UntagResourceCommandInput,
1583
+ options?: HttpHandlerOptions,
1584
+ ): Effect.Effect<
1585
+ UntagResourceCommandOutput,
1586
+ | Cause.TimeoutException
1587
+ | SdkError
1588
+ | AccessDeniedError
1589
+ | InternalServerError
1590
+ | ResourceNotFoundError
1591
+ | ThrottlingError
1592
+ | ValidationError
1593
+ >;
1594
+
1595
+ /**
1596
+ * @see {@link UpdateAgentCommand}
1597
+ */
1598
+ updateAgent(
1599
+ args: UpdateAgentCommandInput,
1600
+ options?: HttpHandlerOptions,
1601
+ ): Effect.Effect<
1602
+ UpdateAgentCommandOutput,
1603
+ | Cause.TimeoutException
1604
+ | SdkError
1605
+ | AccessDeniedError
1606
+ | ConflictError
1607
+ | InternalServerError
1608
+ | ResourceNotFoundError
1609
+ | ServiceQuotaExceededError
1610
+ | ThrottlingError
1611
+ | ValidationError
1612
+ >;
1613
+
1614
+ /**
1615
+ * @see {@link UpdateAgentActionGroupCommand}
1616
+ */
1617
+ updateAgentActionGroup(
1618
+ args: UpdateAgentActionGroupCommandInput,
1619
+ options?: HttpHandlerOptions,
1620
+ ): Effect.Effect<
1621
+ UpdateAgentActionGroupCommandOutput,
1622
+ | Cause.TimeoutException
1623
+ | SdkError
1624
+ | AccessDeniedError
1625
+ | ConflictError
1626
+ | InternalServerError
1627
+ | ResourceNotFoundError
1628
+ | ServiceQuotaExceededError
1629
+ | ThrottlingError
1630
+ | ValidationError
1631
+ >;
1632
+
1633
+ /**
1634
+ * @see {@link UpdateAgentAliasCommand}
1635
+ */
1636
+ updateAgentAlias(
1637
+ args: UpdateAgentAliasCommandInput,
1638
+ options?: HttpHandlerOptions,
1639
+ ): Effect.Effect<
1640
+ UpdateAgentAliasCommandOutput,
1641
+ | Cause.TimeoutException
1642
+ | SdkError
1643
+ | AccessDeniedError
1644
+ | ConflictError
1645
+ | InternalServerError
1646
+ | ResourceNotFoundError
1647
+ | ServiceQuotaExceededError
1648
+ | ThrottlingError
1649
+ | ValidationError
1650
+ >;
1651
+
1652
+ /**
1653
+ * @see {@link UpdateAgentCollaboratorCommand}
1654
+ */
1655
+ updateAgentCollaborator(
1656
+ args: UpdateAgentCollaboratorCommandInput,
1657
+ options?: HttpHandlerOptions,
1658
+ ): Effect.Effect<
1659
+ UpdateAgentCollaboratorCommandOutput,
1660
+ | Cause.TimeoutException
1661
+ | SdkError
1662
+ | AccessDeniedError
1663
+ | ConflictError
1664
+ | InternalServerError
1665
+ | ResourceNotFoundError
1666
+ | ServiceQuotaExceededError
1667
+ | ThrottlingError
1668
+ | ValidationError
1669
+ >;
1670
+
1671
+ /**
1672
+ * @see {@link UpdateAgentKnowledgeBaseCommand}
1673
+ */
1674
+ updateAgentKnowledgeBase(
1675
+ args: UpdateAgentKnowledgeBaseCommandInput,
1676
+ options?: HttpHandlerOptions,
1677
+ ): Effect.Effect<
1678
+ UpdateAgentKnowledgeBaseCommandOutput,
1679
+ | Cause.TimeoutException
1680
+ | SdkError
1681
+ | AccessDeniedError
1682
+ | ConflictError
1683
+ | InternalServerError
1684
+ | ResourceNotFoundError
1685
+ | ThrottlingError
1686
+ | ValidationError
1687
+ >;
1688
+
1689
+ /**
1690
+ * @see {@link UpdateDataSourceCommand}
1691
+ */
1692
+ updateDataSource(
1693
+ args: UpdateDataSourceCommandInput,
1694
+ options?: HttpHandlerOptions,
1695
+ ): Effect.Effect<
1696
+ UpdateDataSourceCommandOutput,
1697
+ | Cause.TimeoutException
1698
+ | SdkError
1699
+ | AccessDeniedError
1700
+ | ConflictError
1701
+ | InternalServerError
1702
+ | ResourceNotFoundError
1703
+ | ThrottlingError
1704
+ | ValidationError
1705
+ >;
1706
+
1707
+ /**
1708
+ * @see {@link UpdateFlowCommand}
1709
+ */
1710
+ updateFlow(
1711
+ args: UpdateFlowCommandInput,
1712
+ options?: HttpHandlerOptions,
1713
+ ): Effect.Effect<
1714
+ UpdateFlowCommandOutput,
1715
+ | Cause.TimeoutException
1716
+ | SdkError
1717
+ | AccessDeniedError
1718
+ | ConflictError
1719
+ | InternalServerError
1720
+ | ResourceNotFoundError
1721
+ | ServiceQuotaExceededError
1722
+ | ThrottlingError
1723
+ | ValidationError
1724
+ >;
1725
+
1726
+ /**
1727
+ * @see {@link UpdateFlowAliasCommand}
1728
+ */
1729
+ updateFlowAlias(
1730
+ args: UpdateFlowAliasCommandInput,
1731
+ options?: HttpHandlerOptions,
1732
+ ): Effect.Effect<
1733
+ UpdateFlowAliasCommandOutput,
1734
+ | Cause.TimeoutException
1735
+ | SdkError
1736
+ | AccessDeniedError
1737
+ | ConflictError
1738
+ | InternalServerError
1739
+ | ResourceNotFoundError
1740
+ | ServiceQuotaExceededError
1741
+ | ThrottlingError
1742
+ | ValidationError
1743
+ >;
1744
+
1745
+ /**
1746
+ * @see {@link UpdateKnowledgeBaseCommand}
1747
+ */
1748
+ updateKnowledgeBase(
1749
+ args: UpdateKnowledgeBaseCommandInput,
1750
+ options?: HttpHandlerOptions,
1751
+ ): Effect.Effect<
1752
+ UpdateKnowledgeBaseCommandOutput,
1753
+ | Cause.TimeoutException
1754
+ | SdkError
1755
+ | AccessDeniedError
1756
+ | ConflictError
1757
+ | InternalServerError
1758
+ | ResourceNotFoundError
1759
+ | ThrottlingError
1760
+ | ValidationError
1761
+ >;
1762
+
1763
+ /**
1764
+ * @see {@link UpdatePromptCommand}
1765
+ */
1766
+ updatePrompt(
1767
+ args: UpdatePromptCommandInput,
1768
+ options?: HttpHandlerOptions,
1769
+ ): Effect.Effect<
1770
+ UpdatePromptCommandOutput,
1771
+ | Cause.TimeoutException
1772
+ | SdkError
1773
+ | AccessDeniedError
1774
+ | ConflictError
1775
+ | InternalServerError
1776
+ | ResourceNotFoundError
1777
+ | ServiceQuotaExceededError
1778
+ | ThrottlingError
1779
+ | ValidationError
1780
+ >;
1781
+
1782
+ /**
1783
+ * @see {@link ValidateFlowDefinitionCommand}
1784
+ */
1785
+ validateFlowDefinition(
1786
+ args: ValidateFlowDefinitionCommandInput,
1787
+ options?: HttpHandlerOptions,
1788
+ ): Effect.Effect<
1789
+ ValidateFlowDefinitionCommandOutput,
1790
+ Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError
1791
+ >;
1792
+ }
1793
+
1794
+ /**
1795
+ * @since 1.0.0
1796
+ * @category constructors
1797
+ */
1798
+ export const makeBedrockAgentService = Effect.gen(function*() {
1799
+ const client = yield* Instance.BedrockAgentClientInstance;
1800
+
1801
+ return yield* Service.fromClientAndCommands<BedrockAgentService$>(
1802
+ client,
1803
+ commands,
1804
+ {
1805
+ errorTags: AllServiceErrors,
1806
+ resolveClientConfig: BedrockAgentServiceConfig.toBedrockAgentClientConfig,
1807
+ },
1808
+ paginators,
1809
+ );
1810
+ });
1811
+
1812
+ /**
1813
+ * @since 1.0.0
1814
+ * @category models
1815
+ */
1816
+ export class BedrockAgentService extends Effect.Tag("@effect-aws/client-bedrock-agent/BedrockAgentService")<
1817
+ BedrockAgentService,
1818
+ BedrockAgentService$
1819
+ >() {
1820
+ static readonly defaultLayer = Layer.effect(this, makeBedrockAgentService).pipe(Layer.provide(Instance.layer));
1821
+ static readonly layer = (config: BedrockAgentService.Config) =>
1822
+ Layer.effect(this, makeBedrockAgentService).pipe(
1823
+ Layer.provide(Instance.layer),
1824
+ Layer.provide(BedrockAgentServiceConfig.setBedrockAgentServiceConfig(config)),
1825
+ );
1826
+ static readonly baseLayer = (
1827
+ evaluate: (defaultConfig: BedrockAgentClientConfig) => BedrockAgentClient,
1828
+ ) =>
1829
+ Layer.effect(this, makeBedrockAgentService).pipe(
1830
+ Layer.provide(
1831
+ Layer.effect(
1832
+ Instance.BedrockAgentClientInstance,
1833
+ Effect.map(BedrockAgentServiceConfig.toBedrockAgentClientConfig, evaluate),
1834
+ ),
1835
+ ),
1836
+ );
1837
+ }
1838
+
1839
+ /**
1840
+ * @since 1.0.0
1841
+ */
1842
+ export declare namespace BedrockAgentService {
1843
+ /**
1844
+ * @since 1.0.0
1845
+ */
1846
+ export interface Config extends Omit<BedrockAgentClientConfig, "logger"> {
1847
+ readonly logger?: ServiceLogger.ServiceLoggerConstructorProps | true;
1848
+ }
1849
+
1850
+ /**
1851
+ * @since 1.0.0
1852
+ */
1853
+ export type Type = BedrockAgentService$;
1854
+ }