@aws-sdk/client-bedrock-agent 3.461.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (271) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +526 -0
  3. package/dist-cjs/BedrockAgent.js +91 -0
  4. package/dist-cjs/BedrockAgentClient.js +43 -0
  5. package/dist-cjs/commands/AssociateAgentKnowledgeBaseCommand.js +51 -0
  6. package/dist-cjs/commands/CreateAgentActionGroupCommand.js +52 -0
  7. package/dist-cjs/commands/CreateAgentAliasCommand.js +51 -0
  8. package/dist-cjs/commands/CreateAgentCommand.js +52 -0
  9. package/dist-cjs/commands/CreateDataSourceCommand.js +51 -0
  10. package/dist-cjs/commands/CreateKnowledgeBaseCommand.js +51 -0
  11. package/dist-cjs/commands/DeleteAgentActionGroupCommand.js +51 -0
  12. package/dist-cjs/commands/DeleteAgentAliasCommand.js +51 -0
  13. package/dist-cjs/commands/DeleteAgentCommand.js +51 -0
  14. package/dist-cjs/commands/DeleteAgentVersionCommand.js +51 -0
  15. package/dist-cjs/commands/DeleteDataSourceCommand.js +51 -0
  16. package/dist-cjs/commands/DeleteKnowledgeBaseCommand.js +51 -0
  17. package/dist-cjs/commands/DisassociateAgentKnowledgeBaseCommand.js +51 -0
  18. package/dist-cjs/commands/GetAgentActionGroupCommand.js +52 -0
  19. package/dist-cjs/commands/GetAgentAliasCommand.js +51 -0
  20. package/dist-cjs/commands/GetAgentCommand.js +52 -0
  21. package/dist-cjs/commands/GetAgentKnowledgeBaseCommand.js +51 -0
  22. package/dist-cjs/commands/GetAgentVersionCommand.js +52 -0
  23. package/dist-cjs/commands/GetDataSourceCommand.js +51 -0
  24. package/dist-cjs/commands/GetIngestionJobCommand.js +51 -0
  25. package/dist-cjs/commands/GetKnowledgeBaseCommand.js +51 -0
  26. package/dist-cjs/commands/ListAgentActionGroupsCommand.js +51 -0
  27. package/dist-cjs/commands/ListAgentAliasesCommand.js +51 -0
  28. package/dist-cjs/commands/ListAgentKnowledgeBasesCommand.js +51 -0
  29. package/dist-cjs/commands/ListAgentVersionsCommand.js +51 -0
  30. package/dist-cjs/commands/ListAgentsCommand.js +51 -0
  31. package/dist-cjs/commands/ListDataSourcesCommand.js +51 -0
  32. package/dist-cjs/commands/ListIngestionJobsCommand.js +51 -0
  33. package/dist-cjs/commands/ListKnowledgeBasesCommand.js +51 -0
  34. package/dist-cjs/commands/ListTagsForResourceCommand.js +51 -0
  35. package/dist-cjs/commands/PrepareAgentCommand.js +51 -0
  36. package/dist-cjs/commands/StartIngestionJobCommand.js +51 -0
  37. package/dist-cjs/commands/TagResourceCommand.js +51 -0
  38. package/dist-cjs/commands/UntagResourceCommand.js +51 -0
  39. package/dist-cjs/commands/UpdateAgentActionGroupCommand.js +52 -0
  40. package/dist-cjs/commands/UpdateAgentAliasCommand.js +51 -0
  41. package/dist-cjs/commands/UpdateAgentCommand.js +52 -0
  42. package/dist-cjs/commands/UpdateAgentKnowledgeBaseCommand.js +51 -0
  43. package/dist-cjs/commands/UpdateDataSourceCommand.js +51 -0
  44. package/dist-cjs/commands/UpdateKnowledgeBaseCommand.js +51 -0
  45. package/dist-cjs/commands/index.js +43 -0
  46. package/dist-cjs/endpoint/EndpointParameters.js +12 -0
  47. package/dist-cjs/endpoint/endpointResolver.js +12 -0
  48. package/dist-cjs/endpoint/ruleset.js +7 -0
  49. package/dist-cjs/extensionConfiguration.js +2 -0
  50. package/dist-cjs/index.js +12 -0
  51. package/dist-cjs/models/BedrockAgentServiceException.js +12 -0
  52. package/dist-cjs/models/index.js +4 -0
  53. package/dist-cjs/models/models_0.js +293 -0
  54. package/dist-cjs/pagination/Interfaces.js +2 -0
  55. package/dist-cjs/pagination/ListAgentActionGroupsPaginator.js +29 -0
  56. package/dist-cjs/pagination/ListAgentAliasesPaginator.js +29 -0
  57. package/dist-cjs/pagination/ListAgentKnowledgeBasesPaginator.js +29 -0
  58. package/dist-cjs/pagination/ListAgentVersionsPaginator.js +29 -0
  59. package/dist-cjs/pagination/ListAgentsPaginator.js +29 -0
  60. package/dist-cjs/pagination/ListDataSourcesPaginator.js +29 -0
  61. package/dist-cjs/pagination/ListIngestionJobsPaginator.js +29 -0
  62. package/dist-cjs/pagination/ListKnowledgeBasesPaginator.js +29 -0
  63. package/dist-cjs/pagination/index.js +12 -0
  64. package/dist-cjs/protocols/Aws_restJson1.js +3362 -0
  65. package/dist-cjs/runtimeConfig.browser.js +39 -0
  66. package/dist-cjs/runtimeConfig.js +50 -0
  67. package/dist-cjs/runtimeConfig.native.js +15 -0
  68. package/dist-cjs/runtimeConfig.shared.js +24 -0
  69. package/dist-cjs/runtimeExtensions.js +22 -0
  70. package/dist-es/BedrockAgent.js +87 -0
  71. package/dist-es/BedrockAgentClient.js +39 -0
  72. package/dist-es/commands/AssociateAgentKnowledgeBaseCommand.js +47 -0
  73. package/dist-es/commands/CreateAgentActionGroupCommand.js +48 -0
  74. package/dist-es/commands/CreateAgentAliasCommand.js +47 -0
  75. package/dist-es/commands/CreateAgentCommand.js +48 -0
  76. package/dist-es/commands/CreateDataSourceCommand.js +47 -0
  77. package/dist-es/commands/CreateKnowledgeBaseCommand.js +47 -0
  78. package/dist-es/commands/DeleteAgentActionGroupCommand.js +47 -0
  79. package/dist-es/commands/DeleteAgentAliasCommand.js +47 -0
  80. package/dist-es/commands/DeleteAgentCommand.js +47 -0
  81. package/dist-es/commands/DeleteAgentVersionCommand.js +47 -0
  82. package/dist-es/commands/DeleteDataSourceCommand.js +47 -0
  83. package/dist-es/commands/DeleteKnowledgeBaseCommand.js +47 -0
  84. package/dist-es/commands/DisassociateAgentKnowledgeBaseCommand.js +47 -0
  85. package/dist-es/commands/GetAgentActionGroupCommand.js +48 -0
  86. package/dist-es/commands/GetAgentAliasCommand.js +47 -0
  87. package/dist-es/commands/GetAgentCommand.js +48 -0
  88. package/dist-es/commands/GetAgentKnowledgeBaseCommand.js +47 -0
  89. package/dist-es/commands/GetAgentVersionCommand.js +48 -0
  90. package/dist-es/commands/GetDataSourceCommand.js +47 -0
  91. package/dist-es/commands/GetIngestionJobCommand.js +47 -0
  92. package/dist-es/commands/GetKnowledgeBaseCommand.js +47 -0
  93. package/dist-es/commands/ListAgentActionGroupsCommand.js +47 -0
  94. package/dist-es/commands/ListAgentAliasesCommand.js +47 -0
  95. package/dist-es/commands/ListAgentKnowledgeBasesCommand.js +47 -0
  96. package/dist-es/commands/ListAgentVersionsCommand.js +47 -0
  97. package/dist-es/commands/ListAgentsCommand.js +47 -0
  98. package/dist-es/commands/ListDataSourcesCommand.js +47 -0
  99. package/dist-es/commands/ListIngestionJobsCommand.js +47 -0
  100. package/dist-es/commands/ListKnowledgeBasesCommand.js +47 -0
  101. package/dist-es/commands/ListTagsForResourceCommand.js +47 -0
  102. package/dist-es/commands/PrepareAgentCommand.js +47 -0
  103. package/dist-es/commands/StartIngestionJobCommand.js +47 -0
  104. package/dist-es/commands/TagResourceCommand.js +47 -0
  105. package/dist-es/commands/UntagResourceCommand.js +47 -0
  106. package/dist-es/commands/UpdateAgentActionGroupCommand.js +48 -0
  107. package/dist-es/commands/UpdateAgentAliasCommand.js +47 -0
  108. package/dist-es/commands/UpdateAgentCommand.js +48 -0
  109. package/dist-es/commands/UpdateAgentKnowledgeBaseCommand.js +47 -0
  110. package/dist-es/commands/UpdateDataSourceCommand.js +47 -0
  111. package/dist-es/commands/UpdateKnowledgeBaseCommand.js +47 -0
  112. package/dist-es/commands/index.js +40 -0
  113. package/dist-es/endpoint/EndpointParameters.js +8 -0
  114. package/dist-es/endpoint/endpointResolver.js +8 -0
  115. package/dist-es/endpoint/ruleset.js +4 -0
  116. package/dist-es/extensionConfiguration.js +1 -0
  117. package/dist-es/index.js +7 -0
  118. package/dist-es/models/BedrockAgentServiceException.js +8 -0
  119. package/dist-es/models/index.js +1 -0
  120. package/dist-es/models/models_0.js +267 -0
  121. package/dist-es/pagination/Interfaces.js +1 -0
  122. package/dist-es/pagination/ListAgentActionGroupsPaginator.js +25 -0
  123. package/dist-es/pagination/ListAgentAliasesPaginator.js +25 -0
  124. package/dist-es/pagination/ListAgentKnowledgeBasesPaginator.js +25 -0
  125. package/dist-es/pagination/ListAgentVersionsPaginator.js +25 -0
  126. package/dist-es/pagination/ListAgentsPaginator.js +25 -0
  127. package/dist-es/pagination/ListDataSourcesPaginator.js +25 -0
  128. package/dist-es/pagination/ListIngestionJobsPaginator.js +25 -0
  129. package/dist-es/pagination/ListKnowledgeBasesPaginator.js +25 -0
  130. package/dist-es/pagination/index.js +9 -0
  131. package/dist-es/protocols/Aws_restJson1.js +3278 -0
  132. package/dist-es/runtimeConfig.browser.js +34 -0
  133. package/dist-es/runtimeConfig.js +45 -0
  134. package/dist-es/runtimeConfig.native.js +11 -0
  135. package/dist-es/runtimeConfig.shared.js +20 -0
  136. package/dist-es/runtimeExtensions.js +18 -0
  137. package/dist-types/BedrockAgent.d.ts +291 -0
  138. package/dist-types/BedrockAgentClient.d.ts +210 -0
  139. package/dist-types/commands/AssociateAgentKnowledgeBaseCommand.d.ts +106 -0
  140. package/dist-types/commands/CreateAgentActionGroupCommand.d.ts +131 -0
  141. package/dist-types/commands/CreateAgentAliasCommand.d.ts +131 -0
  142. package/dist-types/commands/CreateAgentCommand.d.ts +165 -0
  143. package/dist-types/commands/CreateDataSourceCommand.d.ts +147 -0
  144. package/dist-types/commands/CreateKnowledgeBaseCommand.d.ts +183 -0
  145. package/dist-types/commands/DeleteAgentActionGroupCommand.d.ts +92 -0
  146. package/dist-types/commands/DeleteAgentAliasCommand.d.ts +91 -0
  147. package/dist-types/commands/DeleteAgentCommand.d.ts +93 -0
  148. package/dist-types/commands/DeleteAgentVersionCommand.d.ts +95 -0
  149. package/dist-types/commands/DeleteDataSourceCommand.d.ts +94 -0
  150. package/dist-types/commands/DeleteKnowledgeBaseCommand.d.ts +92 -0
  151. package/dist-types/commands/DisassociateAgentKnowledgeBaseCommand.d.ts +91 -0
  152. package/dist-types/commands/GetAgentActionGroupCommand.d.ts +111 -0
  153. package/dist-types/commands/GetAgentAliasCommand.d.ts +115 -0
  154. package/dist-types/commands/GetAgentCommand.d.ts +131 -0
  155. package/dist-types/commands/GetAgentKnowledgeBaseCommand.d.ts +98 -0
  156. package/dist-types/commands/GetAgentVersionCommand.d.ts +130 -0
  157. package/dist-types/commands/GetDataSourceCommand.d.ts +118 -0
  158. package/dist-types/commands/GetIngestionJobCommand.d.ts +108 -0
  159. package/dist-types/commands/GetKnowledgeBaseCommand.d.ts +137 -0
  160. package/dist-types/commands/ListAgentActionGroupsCommand.d.ts +100 -0
  161. package/dist-types/commands/ListAgentAliasesCommand.d.ts +105 -0
  162. package/dist-types/commands/ListAgentKnowledgeBasesCommand.d.ts +99 -0
  163. package/dist-types/commands/ListAgentVersionsCommand.d.ts +100 -0
  164. package/dist-types/commands/ListAgentsCommand.d.ts +96 -0
  165. package/dist-types/commands/ListDataSourcesCommand.d.ts +100 -0
  166. package/dist-types/commands/ListIngestionJobsCommand.d.ts +122 -0
  167. package/dist-types/commands/ListKnowledgeBasesCommand.d.ts +95 -0
  168. package/dist-types/commands/ListTagsForResourceCommand.d.ts +90 -0
  169. package/dist-types/commands/PrepareAgentCommand.d.ts +97 -0
  170. package/dist-types/commands/StartIngestionJobCommand.d.ts +115 -0
  171. package/dist-types/commands/TagResourceCommand.d.ts +92 -0
  172. package/dist-types/commands/UntagResourceCommand.d.ts +89 -0
  173. package/dist-types/commands/UpdateAgentActionGroupCommand.d.ts +131 -0
  174. package/dist-types/commands/UpdateAgentAliasCommand.d.ts +128 -0
  175. package/dist-types/commands/UpdateAgentCommand.d.ts +165 -0
  176. package/dist-types/commands/UpdateAgentKnowledgeBaseCommand.d.ts +103 -0
  177. package/dist-types/commands/UpdateDataSourceCommand.d.ts +144 -0
  178. package/dist-types/commands/UpdateKnowledgeBaseCommand.d.ts +180 -0
  179. package/dist-types/commands/index.d.ts +40 -0
  180. package/dist-types/endpoint/EndpointParameters.d.ts +22 -0
  181. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  182. package/dist-types/endpoint/ruleset.d.ts +2 -0
  183. package/dist-types/extensionConfiguration.d.ts +8 -0
  184. package/dist-types/index.d.ts +16 -0
  185. package/dist-types/models/BedrockAgentServiceException.d.ts +13 -0
  186. package/dist-types/models/index.d.ts +1 -0
  187. package/dist-types/models/models_0.d.ts +3256 -0
  188. package/dist-types/pagination/Interfaces.d.ts +8 -0
  189. package/dist-types/pagination/ListAgentActionGroupsPaginator.d.ts +7 -0
  190. package/dist-types/pagination/ListAgentAliasesPaginator.d.ts +7 -0
  191. package/dist-types/pagination/ListAgentKnowledgeBasesPaginator.d.ts +7 -0
  192. package/dist-types/pagination/ListAgentVersionsPaginator.d.ts +7 -0
  193. package/dist-types/pagination/ListAgentsPaginator.d.ts +7 -0
  194. package/dist-types/pagination/ListDataSourcesPaginator.d.ts +7 -0
  195. package/dist-types/pagination/ListIngestionJobsPaginator.d.ts +7 -0
  196. package/dist-types/pagination/ListKnowledgeBasesPaginator.d.ts +7 -0
  197. package/dist-types/pagination/index.d.ts +9 -0
  198. package/dist-types/protocols/Aws_restJson1.d.ts +362 -0
  199. package/dist-types/runtimeConfig.browser.d.ts +46 -0
  200. package/dist-types/runtimeConfig.d.ts +46 -0
  201. package/dist-types/runtimeConfig.native.d.ts +45 -0
  202. package/dist-types/runtimeConfig.shared.d.ts +19 -0
  203. package/dist-types/runtimeExtensions.d.ts +17 -0
  204. package/dist-types/ts3.4/BedrockAgent.d.ts +687 -0
  205. package/dist-types/ts3.4/BedrockAgentClient.d.ts +359 -0
  206. package/dist-types/ts3.4/commands/AssociateAgentKnowledgeBaseCommand.d.ts +42 -0
  207. package/dist-types/ts3.4/commands/CreateAgentActionGroupCommand.d.ts +42 -0
  208. package/dist-types/ts3.4/commands/CreateAgentAliasCommand.d.ts +38 -0
  209. package/dist-types/ts3.4/commands/CreateAgentCommand.d.ts +35 -0
  210. package/dist-types/ts3.4/commands/CreateDataSourceCommand.d.ts +38 -0
  211. package/dist-types/ts3.4/commands/CreateKnowledgeBaseCommand.d.ts +39 -0
  212. package/dist-types/ts3.4/commands/DeleteAgentActionGroupCommand.d.ts +42 -0
  213. package/dist-types/ts3.4/commands/DeleteAgentAliasCommand.d.ts +38 -0
  214. package/dist-types/ts3.4/commands/DeleteAgentCommand.d.ts +35 -0
  215. package/dist-types/ts3.4/commands/DeleteAgentVersionCommand.d.ts +39 -0
  216. package/dist-types/ts3.4/commands/DeleteDataSourceCommand.d.ts +38 -0
  217. package/dist-types/ts3.4/commands/DeleteKnowledgeBaseCommand.d.ts +39 -0
  218. package/dist-types/ts3.4/commands/DisassociateAgentKnowledgeBaseCommand.d.ts +42 -0
  219. package/dist-types/ts3.4/commands/GetAgentActionGroupCommand.d.ts +39 -0
  220. package/dist-types/ts3.4/commands/GetAgentAliasCommand.d.ts +38 -0
  221. package/dist-types/ts3.4/commands/GetAgentCommand.d.ts +35 -0
  222. package/dist-types/ts3.4/commands/GetAgentKnowledgeBaseCommand.d.ts +42 -0
  223. package/dist-types/ts3.4/commands/GetAgentVersionCommand.d.ts +38 -0
  224. package/dist-types/ts3.4/commands/GetDataSourceCommand.d.ts +38 -0
  225. package/dist-types/ts3.4/commands/GetIngestionJobCommand.d.ts +38 -0
  226. package/dist-types/ts3.4/commands/GetKnowledgeBaseCommand.d.ts +38 -0
  227. package/dist-types/ts3.4/commands/ListAgentActionGroupsCommand.d.ts +42 -0
  228. package/dist-types/ts3.4/commands/ListAgentAliasesCommand.d.ts +38 -0
  229. package/dist-types/ts3.4/commands/ListAgentKnowledgeBasesCommand.d.ts +42 -0
  230. package/dist-types/ts3.4/commands/ListAgentVersionsCommand.d.ts +39 -0
  231. package/dist-types/ts3.4/commands/ListAgentsCommand.d.ts +35 -0
  232. package/dist-types/ts3.4/commands/ListDataSourcesCommand.d.ts +38 -0
  233. package/dist-types/ts3.4/commands/ListIngestionJobsCommand.d.ts +39 -0
  234. package/dist-types/ts3.4/commands/ListKnowledgeBasesCommand.d.ts +39 -0
  235. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +39 -0
  236. package/dist-types/ts3.4/commands/PrepareAgentCommand.d.ts +35 -0
  237. package/dist-types/ts3.4/commands/StartIngestionJobCommand.d.ts +39 -0
  238. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +35 -0
  239. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +38 -0
  240. package/dist-types/ts3.4/commands/UpdateAgentActionGroupCommand.d.ts +42 -0
  241. package/dist-types/ts3.4/commands/UpdateAgentAliasCommand.d.ts +38 -0
  242. package/dist-types/ts3.4/commands/UpdateAgentCommand.d.ts +35 -0
  243. package/dist-types/ts3.4/commands/UpdateAgentKnowledgeBaseCommand.d.ts +42 -0
  244. package/dist-types/ts3.4/commands/UpdateDataSourceCommand.d.ts +38 -0
  245. package/dist-types/ts3.4/commands/UpdateKnowledgeBaseCommand.d.ts +39 -0
  246. package/dist-types/ts3.4/commands/index.d.ts +40 -0
  247. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +33 -0
  248. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  249. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  250. package/dist-types/ts3.4/extensionConfiguration.d.ts +7 -0
  251. package/dist-types/ts3.4/index.d.ts +10 -0
  252. package/dist-types/ts3.4/models/BedrockAgentServiceException.d.ts +8 -0
  253. package/dist-types/ts3.4/models/index.d.ts +1 -0
  254. package/dist-types/ts3.4/models/models_0.d.ts +915 -0
  255. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  256. package/dist-types/ts3.4/pagination/ListAgentActionGroupsPaginator.d.ts +11 -0
  257. package/dist-types/ts3.4/pagination/ListAgentAliasesPaginator.d.ts +11 -0
  258. package/dist-types/ts3.4/pagination/ListAgentKnowledgeBasesPaginator.d.ts +11 -0
  259. package/dist-types/ts3.4/pagination/ListAgentVersionsPaginator.d.ts +11 -0
  260. package/dist-types/ts3.4/pagination/ListAgentsPaginator.d.ts +11 -0
  261. package/dist-types/ts3.4/pagination/ListDataSourcesPaginator.d.ts +11 -0
  262. package/dist-types/ts3.4/pagination/ListIngestionJobsPaginator.d.ts +11 -0
  263. package/dist-types/ts3.4/pagination/ListKnowledgeBasesPaginator.d.ts +11 -0
  264. package/dist-types/ts3.4/pagination/index.d.ts +9 -0
  265. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +485 -0
  266. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +97 -0
  267. package/dist-types/ts3.4/runtimeConfig.d.ts +97 -0
  268. package/dist-types/ts3.4/runtimeConfig.native.d.ts +88 -0
  269. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +19 -0
  270. package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
  271. package/package.json +104 -0
package/README.md ADDED
@@ -0,0 +1,526 @@
1
+ <!-- generated file, do not edit directly -->
2
+
3
+ # @aws-sdk/client-bedrock-agent
4
+
5
+ ## Description
6
+
7
+ AWS SDK for JavaScript BedrockAgent Client for Node.js, Browser and React Native.
8
+
9
+ An example service, deployed with the Octane Service creator,
10
+ which will echo the string
11
+
12
+ ## Installing
13
+
14
+ To install the this package, simply type add or install @aws-sdk/client-bedrock-agent
15
+ using your favorite package manager:
16
+
17
+ - `npm install @aws-sdk/client-bedrock-agent`
18
+ - `yarn add @aws-sdk/client-bedrock-agent`
19
+ - `pnpm add @aws-sdk/client-bedrock-agent`
20
+
21
+ ## Getting Started
22
+
23
+ ### Import
24
+
25
+ The AWS SDK is modulized by clients and commands.
26
+ To send a request, you only need to import the `BedrockAgentClient` and
27
+ the commands you need, for example `ListAgentsCommand`:
28
+
29
+ ```js
30
+ // ES5 example
31
+ const { BedrockAgentClient, ListAgentsCommand } = require("@aws-sdk/client-bedrock-agent");
32
+ ```
33
+
34
+ ```ts
35
+ // ES6+ example
36
+ import { BedrockAgentClient, ListAgentsCommand } from "@aws-sdk/client-bedrock-agent";
37
+ ```
38
+
39
+ ### Usage
40
+
41
+ To send a request, you:
42
+
43
+ - Initiate client with configuration (e.g. credentials, region).
44
+ - Initiate command with input parameters.
45
+ - Call `send` operation on client with command object as input.
46
+ - If you are using a custom http handler, you may call `destroy()` to close open connections.
47
+
48
+ ```js
49
+ // a client can be shared by different commands.
50
+ const client = new BedrockAgentClient({ region: "REGION" });
51
+
52
+ const params = {
53
+ /** input parameters */
54
+ };
55
+ const command = new ListAgentsCommand(params);
56
+ ```
57
+
58
+ #### Async/await
59
+
60
+ We recommend using [await](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/await)
61
+ operator to wait for the promise returned by send operation as follows:
62
+
63
+ ```js
64
+ // async/await.
65
+ try {
66
+ const data = await client.send(command);
67
+ // process data.
68
+ } catch (error) {
69
+ // error handling.
70
+ } finally {
71
+ // finally.
72
+ }
73
+ ```
74
+
75
+ Async-await is clean, concise, intuitive, easy to debug and has better error handling
76
+ as compared to using Promise chains or callbacks.
77
+
78
+ #### Promises
79
+
80
+ You can also use [Promise chaining](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Using_promises#chaining)
81
+ to execute send operation.
82
+
83
+ ```js
84
+ client.send(command).then(
85
+ (data) => {
86
+ // process data.
87
+ },
88
+ (error) => {
89
+ // error handling.
90
+ }
91
+ );
92
+ ```
93
+
94
+ Promises can also be called using `.catch()` and `.finally()` as follows:
95
+
96
+ ```js
97
+ client
98
+ .send(command)
99
+ .then((data) => {
100
+ // process data.
101
+ })
102
+ .catch((error) => {
103
+ // error handling.
104
+ })
105
+ .finally(() => {
106
+ // finally.
107
+ });
108
+ ```
109
+
110
+ #### Callbacks
111
+
112
+ We do not recommend using callbacks because of [callback hell](http://callbackhell.com/),
113
+ but they are supported by the send operation.
114
+
115
+ ```js
116
+ // callbacks.
117
+ client.send(command, (err, data) => {
118
+ // process err and data.
119
+ });
120
+ ```
121
+
122
+ #### v2 compatible style
123
+
124
+ The client can also send requests using v2 compatible style.
125
+ However, it results in a bigger bundle size and may be dropped in next major version. More details in the blog post
126
+ on [modular packages in AWS SDK for JavaScript](https://aws.amazon.com/blogs/developer/modular-packages-in-aws-sdk-for-javascript/)
127
+
128
+ ```ts
129
+ import * as AWS from "@aws-sdk/client-bedrock-agent";
130
+ const client = new AWS.BedrockAgent({ region: "REGION" });
131
+
132
+ // async/await.
133
+ try {
134
+ const data = await client.listAgents(params);
135
+ // process data.
136
+ } catch (error) {
137
+ // error handling.
138
+ }
139
+
140
+ // Promises.
141
+ client
142
+ .listAgents(params)
143
+ .then((data) => {
144
+ // process data.
145
+ })
146
+ .catch((error) => {
147
+ // error handling.
148
+ });
149
+
150
+ // callbacks.
151
+ client.listAgents(params, (err, data) => {
152
+ // process err and data.
153
+ });
154
+ ```
155
+
156
+ ### Troubleshooting
157
+
158
+ When the service returns an exception, the error will include the exception information,
159
+ as well as response metadata (e.g. request id).
160
+
161
+ ```js
162
+ try {
163
+ const data = await client.send(command);
164
+ // process data.
165
+ } catch (error) {
166
+ const { requestId, cfId, extendedRequestId } = error.$metadata;
167
+ console.log({ requestId, cfId, extendedRequestId });
168
+ /**
169
+ * The keys within exceptions are also parsed.
170
+ * You can access them by specifying exception names:
171
+ * if (error.name === 'SomeServiceException') {
172
+ * const value = error.specialKeyInException;
173
+ * }
174
+ */
175
+ }
176
+ ```
177
+
178
+ ## Getting Help
179
+
180
+ Please use these community resources for getting help.
181
+ We use the GitHub issues for tracking bugs and feature requests, but have limited bandwidth to address them.
182
+
183
+ - Visit [Developer Guide](https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/welcome.html)
184
+ or [API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/index.html).
185
+ - Check out the blog posts tagged with [`aws-sdk-js`](https://aws.amazon.com/blogs/developer/tag/aws-sdk-js/)
186
+ on AWS Developer Blog.
187
+ - Ask a question on [StackOverflow](https://stackoverflow.com/questions/tagged/aws-sdk-js) and tag it with `aws-sdk-js`.
188
+ - Join the AWS JavaScript community on [gitter](https://gitter.im/aws/aws-sdk-js-v3).
189
+ - If it turns out that you may have found a bug, please [open an issue](https://github.com/aws/aws-sdk-js-v3/issues/new/choose).
190
+
191
+ To test your universal JavaScript code in Node.js, browser and react-native environments,
192
+ visit our [code samples repo](https://github.com/aws-samples/aws-sdk-js-tests).
193
+
194
+ ## Contributing
195
+
196
+ This client code is generated automatically. Any modifications will be overwritten the next time the `@aws-sdk/client-bedrock-agent` package is updated.
197
+ To contribute to client you can check our [generate clients scripts](https://github.com/aws/aws-sdk-js-v3/tree/main/scripts/generate-clients).
198
+
199
+ ## License
200
+
201
+ This SDK is distributed under the
202
+ [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0),
203
+ see LICENSE for more information.
204
+
205
+ ## Client Commands (Operations List)
206
+
207
+ <details>
208
+ <summary>
209
+ AssociateAgentKnowledgeBase
210
+ </summary>
211
+
212
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-agent/command/AssociateAgentKnowledgeBaseCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/AssociateAgentKnowledgeBaseCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/AssociateAgentKnowledgeBaseCommandOutput/)
213
+
214
+ </details>
215
+ <details>
216
+ <summary>
217
+ CreateAgent
218
+ </summary>
219
+
220
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-agent/command/CreateAgentCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/CreateAgentCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/CreateAgentCommandOutput/)
221
+
222
+ </details>
223
+ <details>
224
+ <summary>
225
+ CreateAgentActionGroup
226
+ </summary>
227
+
228
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-agent/command/CreateAgentActionGroupCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/CreateAgentActionGroupCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/CreateAgentActionGroupCommandOutput/)
229
+
230
+ </details>
231
+ <details>
232
+ <summary>
233
+ CreateAgentAlias
234
+ </summary>
235
+
236
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-agent/command/CreateAgentAliasCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/CreateAgentAliasCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/CreateAgentAliasCommandOutput/)
237
+
238
+ </details>
239
+ <details>
240
+ <summary>
241
+ CreateDataSource
242
+ </summary>
243
+
244
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-agent/command/CreateDataSourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/CreateDataSourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/CreateDataSourceCommandOutput/)
245
+
246
+ </details>
247
+ <details>
248
+ <summary>
249
+ CreateKnowledgeBase
250
+ </summary>
251
+
252
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-agent/command/CreateKnowledgeBaseCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/CreateKnowledgeBaseCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/CreateKnowledgeBaseCommandOutput/)
253
+
254
+ </details>
255
+ <details>
256
+ <summary>
257
+ DeleteAgent
258
+ </summary>
259
+
260
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-agent/command/DeleteAgentCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/DeleteAgentCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/DeleteAgentCommandOutput/)
261
+
262
+ </details>
263
+ <details>
264
+ <summary>
265
+ DeleteAgentActionGroup
266
+ </summary>
267
+
268
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-agent/command/DeleteAgentActionGroupCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/DeleteAgentActionGroupCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/DeleteAgentActionGroupCommandOutput/)
269
+
270
+ </details>
271
+ <details>
272
+ <summary>
273
+ DeleteAgentAlias
274
+ </summary>
275
+
276
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-agent/command/DeleteAgentAliasCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/DeleteAgentAliasCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/DeleteAgentAliasCommandOutput/)
277
+
278
+ </details>
279
+ <details>
280
+ <summary>
281
+ DeleteAgentVersion
282
+ </summary>
283
+
284
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-agent/command/DeleteAgentVersionCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/DeleteAgentVersionCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/DeleteAgentVersionCommandOutput/)
285
+
286
+ </details>
287
+ <details>
288
+ <summary>
289
+ DeleteDataSource
290
+ </summary>
291
+
292
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-agent/command/DeleteDataSourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/DeleteDataSourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/DeleteDataSourceCommandOutput/)
293
+
294
+ </details>
295
+ <details>
296
+ <summary>
297
+ DeleteKnowledgeBase
298
+ </summary>
299
+
300
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-agent/command/DeleteKnowledgeBaseCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/DeleteKnowledgeBaseCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/DeleteKnowledgeBaseCommandOutput/)
301
+
302
+ </details>
303
+ <details>
304
+ <summary>
305
+ DisassociateAgentKnowledgeBase
306
+ </summary>
307
+
308
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-agent/command/DisassociateAgentKnowledgeBaseCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/DisassociateAgentKnowledgeBaseCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/DisassociateAgentKnowledgeBaseCommandOutput/)
309
+
310
+ </details>
311
+ <details>
312
+ <summary>
313
+ GetAgent
314
+ </summary>
315
+
316
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-agent/command/GetAgentCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/GetAgentCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/GetAgentCommandOutput/)
317
+
318
+ </details>
319
+ <details>
320
+ <summary>
321
+ GetAgentActionGroup
322
+ </summary>
323
+
324
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-agent/command/GetAgentActionGroupCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/GetAgentActionGroupCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/GetAgentActionGroupCommandOutput/)
325
+
326
+ </details>
327
+ <details>
328
+ <summary>
329
+ GetAgentAlias
330
+ </summary>
331
+
332
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-agent/command/GetAgentAliasCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/GetAgentAliasCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/GetAgentAliasCommandOutput/)
333
+
334
+ </details>
335
+ <details>
336
+ <summary>
337
+ GetAgentKnowledgeBase
338
+ </summary>
339
+
340
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-agent/command/GetAgentKnowledgeBaseCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/GetAgentKnowledgeBaseCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/GetAgentKnowledgeBaseCommandOutput/)
341
+
342
+ </details>
343
+ <details>
344
+ <summary>
345
+ GetAgentVersion
346
+ </summary>
347
+
348
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-agent/command/GetAgentVersionCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/GetAgentVersionCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/GetAgentVersionCommandOutput/)
349
+
350
+ </details>
351
+ <details>
352
+ <summary>
353
+ GetDataSource
354
+ </summary>
355
+
356
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-agent/command/GetDataSourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/GetDataSourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/GetDataSourceCommandOutput/)
357
+
358
+ </details>
359
+ <details>
360
+ <summary>
361
+ GetIngestionJob
362
+ </summary>
363
+
364
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-agent/command/GetIngestionJobCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/GetIngestionJobCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/GetIngestionJobCommandOutput/)
365
+
366
+ </details>
367
+ <details>
368
+ <summary>
369
+ GetKnowledgeBase
370
+ </summary>
371
+
372
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-agent/command/GetKnowledgeBaseCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/GetKnowledgeBaseCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/GetKnowledgeBaseCommandOutput/)
373
+
374
+ </details>
375
+ <details>
376
+ <summary>
377
+ ListAgentActionGroups
378
+ </summary>
379
+
380
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-agent/command/ListAgentActionGroupsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/ListAgentActionGroupsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/ListAgentActionGroupsCommandOutput/)
381
+
382
+ </details>
383
+ <details>
384
+ <summary>
385
+ ListAgentAliases
386
+ </summary>
387
+
388
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-agent/command/ListAgentAliasesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/ListAgentAliasesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/ListAgentAliasesCommandOutput/)
389
+
390
+ </details>
391
+ <details>
392
+ <summary>
393
+ ListAgentKnowledgeBases
394
+ </summary>
395
+
396
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-agent/command/ListAgentKnowledgeBasesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/ListAgentKnowledgeBasesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/ListAgentKnowledgeBasesCommandOutput/)
397
+
398
+ </details>
399
+ <details>
400
+ <summary>
401
+ ListAgents
402
+ </summary>
403
+
404
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-agent/command/ListAgentsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/ListAgentsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/ListAgentsCommandOutput/)
405
+
406
+ </details>
407
+ <details>
408
+ <summary>
409
+ ListAgentVersions
410
+ </summary>
411
+
412
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-agent/command/ListAgentVersionsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/ListAgentVersionsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/ListAgentVersionsCommandOutput/)
413
+
414
+ </details>
415
+ <details>
416
+ <summary>
417
+ ListDataSources
418
+ </summary>
419
+
420
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-agent/command/ListDataSourcesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/ListDataSourcesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/ListDataSourcesCommandOutput/)
421
+
422
+ </details>
423
+ <details>
424
+ <summary>
425
+ ListIngestionJobs
426
+ </summary>
427
+
428
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-agent/command/ListIngestionJobsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/ListIngestionJobsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/ListIngestionJobsCommandOutput/)
429
+
430
+ </details>
431
+ <details>
432
+ <summary>
433
+ ListKnowledgeBases
434
+ </summary>
435
+
436
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-agent/command/ListKnowledgeBasesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/ListKnowledgeBasesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/ListKnowledgeBasesCommandOutput/)
437
+
438
+ </details>
439
+ <details>
440
+ <summary>
441
+ ListTagsForResource
442
+ </summary>
443
+
444
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-agent/command/ListTagsForResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/ListTagsForResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/ListTagsForResourceCommandOutput/)
445
+
446
+ </details>
447
+ <details>
448
+ <summary>
449
+ PrepareAgent
450
+ </summary>
451
+
452
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-agent/command/PrepareAgentCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/PrepareAgentCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/PrepareAgentCommandOutput/)
453
+
454
+ </details>
455
+ <details>
456
+ <summary>
457
+ StartIngestionJob
458
+ </summary>
459
+
460
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-agent/command/StartIngestionJobCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/StartIngestionJobCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/StartIngestionJobCommandOutput/)
461
+
462
+ </details>
463
+ <details>
464
+ <summary>
465
+ TagResource
466
+ </summary>
467
+
468
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-agent/command/TagResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/TagResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/TagResourceCommandOutput/)
469
+
470
+ </details>
471
+ <details>
472
+ <summary>
473
+ UntagResource
474
+ </summary>
475
+
476
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-agent/command/UntagResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/UntagResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/UntagResourceCommandOutput/)
477
+
478
+ </details>
479
+ <details>
480
+ <summary>
481
+ UpdateAgent
482
+ </summary>
483
+
484
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-agent/command/UpdateAgentCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/UpdateAgentCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/UpdateAgentCommandOutput/)
485
+
486
+ </details>
487
+ <details>
488
+ <summary>
489
+ UpdateAgentActionGroup
490
+ </summary>
491
+
492
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-agent/command/UpdateAgentActionGroupCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/UpdateAgentActionGroupCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/UpdateAgentActionGroupCommandOutput/)
493
+
494
+ </details>
495
+ <details>
496
+ <summary>
497
+ UpdateAgentAlias
498
+ </summary>
499
+
500
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-agent/command/UpdateAgentAliasCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/UpdateAgentAliasCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/UpdateAgentAliasCommandOutput/)
501
+
502
+ </details>
503
+ <details>
504
+ <summary>
505
+ UpdateAgentKnowledgeBase
506
+ </summary>
507
+
508
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-agent/command/UpdateAgentKnowledgeBaseCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/UpdateAgentKnowledgeBaseCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/UpdateAgentKnowledgeBaseCommandOutput/)
509
+
510
+ </details>
511
+ <details>
512
+ <summary>
513
+ UpdateDataSource
514
+ </summary>
515
+
516
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-agent/command/UpdateDataSourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/UpdateDataSourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/UpdateDataSourceCommandOutput/)
517
+
518
+ </details>
519
+ <details>
520
+ <summary>
521
+ UpdateKnowledgeBase
522
+ </summary>
523
+
524
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-agent/command/UpdateKnowledgeBaseCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/UpdateKnowledgeBaseCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/UpdateKnowledgeBaseCommandOutput/)
525
+
526
+ </details>
@@ -0,0 +1,91 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BedrockAgent = void 0;
4
+ const smithy_client_1 = require("@smithy/smithy-client");
5
+ const BedrockAgentClient_1 = require("./BedrockAgentClient");
6
+ const AssociateAgentKnowledgeBaseCommand_1 = require("./commands/AssociateAgentKnowledgeBaseCommand");
7
+ const CreateAgentActionGroupCommand_1 = require("./commands/CreateAgentActionGroupCommand");
8
+ const CreateAgentAliasCommand_1 = require("./commands/CreateAgentAliasCommand");
9
+ const CreateAgentCommand_1 = require("./commands/CreateAgentCommand");
10
+ const CreateDataSourceCommand_1 = require("./commands/CreateDataSourceCommand");
11
+ const CreateKnowledgeBaseCommand_1 = require("./commands/CreateKnowledgeBaseCommand");
12
+ const DeleteAgentActionGroupCommand_1 = require("./commands/DeleteAgentActionGroupCommand");
13
+ const DeleteAgentAliasCommand_1 = require("./commands/DeleteAgentAliasCommand");
14
+ const DeleteAgentCommand_1 = require("./commands/DeleteAgentCommand");
15
+ const DeleteAgentVersionCommand_1 = require("./commands/DeleteAgentVersionCommand");
16
+ const DeleteDataSourceCommand_1 = require("./commands/DeleteDataSourceCommand");
17
+ const DeleteKnowledgeBaseCommand_1 = require("./commands/DeleteKnowledgeBaseCommand");
18
+ const DisassociateAgentKnowledgeBaseCommand_1 = require("./commands/DisassociateAgentKnowledgeBaseCommand");
19
+ const GetAgentActionGroupCommand_1 = require("./commands/GetAgentActionGroupCommand");
20
+ const GetAgentAliasCommand_1 = require("./commands/GetAgentAliasCommand");
21
+ const GetAgentCommand_1 = require("./commands/GetAgentCommand");
22
+ const GetAgentKnowledgeBaseCommand_1 = require("./commands/GetAgentKnowledgeBaseCommand");
23
+ const GetAgentVersionCommand_1 = require("./commands/GetAgentVersionCommand");
24
+ const GetDataSourceCommand_1 = require("./commands/GetDataSourceCommand");
25
+ const GetIngestionJobCommand_1 = require("./commands/GetIngestionJobCommand");
26
+ const GetKnowledgeBaseCommand_1 = require("./commands/GetKnowledgeBaseCommand");
27
+ const ListAgentActionGroupsCommand_1 = require("./commands/ListAgentActionGroupsCommand");
28
+ const ListAgentAliasesCommand_1 = require("./commands/ListAgentAliasesCommand");
29
+ const ListAgentKnowledgeBasesCommand_1 = require("./commands/ListAgentKnowledgeBasesCommand");
30
+ const ListAgentsCommand_1 = require("./commands/ListAgentsCommand");
31
+ const ListAgentVersionsCommand_1 = require("./commands/ListAgentVersionsCommand");
32
+ const ListDataSourcesCommand_1 = require("./commands/ListDataSourcesCommand");
33
+ const ListIngestionJobsCommand_1 = require("./commands/ListIngestionJobsCommand");
34
+ const ListKnowledgeBasesCommand_1 = require("./commands/ListKnowledgeBasesCommand");
35
+ const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceCommand");
36
+ const PrepareAgentCommand_1 = require("./commands/PrepareAgentCommand");
37
+ const StartIngestionJobCommand_1 = require("./commands/StartIngestionJobCommand");
38
+ const TagResourceCommand_1 = require("./commands/TagResourceCommand");
39
+ const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
40
+ const UpdateAgentActionGroupCommand_1 = require("./commands/UpdateAgentActionGroupCommand");
41
+ const UpdateAgentAliasCommand_1 = require("./commands/UpdateAgentAliasCommand");
42
+ const UpdateAgentCommand_1 = require("./commands/UpdateAgentCommand");
43
+ const UpdateAgentKnowledgeBaseCommand_1 = require("./commands/UpdateAgentKnowledgeBaseCommand");
44
+ const UpdateDataSourceCommand_1 = require("./commands/UpdateDataSourceCommand");
45
+ const UpdateKnowledgeBaseCommand_1 = require("./commands/UpdateKnowledgeBaseCommand");
46
+ const commands = {
47
+ AssociateAgentKnowledgeBaseCommand: AssociateAgentKnowledgeBaseCommand_1.AssociateAgentKnowledgeBaseCommand,
48
+ CreateAgentCommand: CreateAgentCommand_1.CreateAgentCommand,
49
+ CreateAgentActionGroupCommand: CreateAgentActionGroupCommand_1.CreateAgentActionGroupCommand,
50
+ CreateAgentAliasCommand: CreateAgentAliasCommand_1.CreateAgentAliasCommand,
51
+ CreateDataSourceCommand: CreateDataSourceCommand_1.CreateDataSourceCommand,
52
+ CreateKnowledgeBaseCommand: CreateKnowledgeBaseCommand_1.CreateKnowledgeBaseCommand,
53
+ DeleteAgentCommand: DeleteAgentCommand_1.DeleteAgentCommand,
54
+ DeleteAgentActionGroupCommand: DeleteAgentActionGroupCommand_1.DeleteAgentActionGroupCommand,
55
+ DeleteAgentAliasCommand: DeleteAgentAliasCommand_1.DeleteAgentAliasCommand,
56
+ DeleteAgentVersionCommand: DeleteAgentVersionCommand_1.DeleteAgentVersionCommand,
57
+ DeleteDataSourceCommand: DeleteDataSourceCommand_1.DeleteDataSourceCommand,
58
+ DeleteKnowledgeBaseCommand: DeleteKnowledgeBaseCommand_1.DeleteKnowledgeBaseCommand,
59
+ DisassociateAgentKnowledgeBaseCommand: DisassociateAgentKnowledgeBaseCommand_1.DisassociateAgentKnowledgeBaseCommand,
60
+ GetAgentCommand: GetAgentCommand_1.GetAgentCommand,
61
+ GetAgentActionGroupCommand: GetAgentActionGroupCommand_1.GetAgentActionGroupCommand,
62
+ GetAgentAliasCommand: GetAgentAliasCommand_1.GetAgentAliasCommand,
63
+ GetAgentKnowledgeBaseCommand: GetAgentKnowledgeBaseCommand_1.GetAgentKnowledgeBaseCommand,
64
+ GetAgentVersionCommand: GetAgentVersionCommand_1.GetAgentVersionCommand,
65
+ GetDataSourceCommand: GetDataSourceCommand_1.GetDataSourceCommand,
66
+ GetIngestionJobCommand: GetIngestionJobCommand_1.GetIngestionJobCommand,
67
+ GetKnowledgeBaseCommand: GetKnowledgeBaseCommand_1.GetKnowledgeBaseCommand,
68
+ ListAgentActionGroupsCommand: ListAgentActionGroupsCommand_1.ListAgentActionGroupsCommand,
69
+ ListAgentAliasesCommand: ListAgentAliasesCommand_1.ListAgentAliasesCommand,
70
+ ListAgentKnowledgeBasesCommand: ListAgentKnowledgeBasesCommand_1.ListAgentKnowledgeBasesCommand,
71
+ ListAgentsCommand: ListAgentsCommand_1.ListAgentsCommand,
72
+ ListAgentVersionsCommand: ListAgentVersionsCommand_1.ListAgentVersionsCommand,
73
+ ListDataSourcesCommand: ListDataSourcesCommand_1.ListDataSourcesCommand,
74
+ ListIngestionJobsCommand: ListIngestionJobsCommand_1.ListIngestionJobsCommand,
75
+ ListKnowledgeBasesCommand: ListKnowledgeBasesCommand_1.ListKnowledgeBasesCommand,
76
+ ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
77
+ PrepareAgentCommand: PrepareAgentCommand_1.PrepareAgentCommand,
78
+ StartIngestionJobCommand: StartIngestionJobCommand_1.StartIngestionJobCommand,
79
+ TagResourceCommand: TagResourceCommand_1.TagResourceCommand,
80
+ UntagResourceCommand: UntagResourceCommand_1.UntagResourceCommand,
81
+ UpdateAgentCommand: UpdateAgentCommand_1.UpdateAgentCommand,
82
+ UpdateAgentActionGroupCommand: UpdateAgentActionGroupCommand_1.UpdateAgentActionGroupCommand,
83
+ UpdateAgentAliasCommand: UpdateAgentAliasCommand_1.UpdateAgentAliasCommand,
84
+ UpdateAgentKnowledgeBaseCommand: UpdateAgentKnowledgeBaseCommand_1.UpdateAgentKnowledgeBaseCommand,
85
+ UpdateDataSourceCommand: UpdateDataSourceCommand_1.UpdateDataSourceCommand,
86
+ UpdateKnowledgeBaseCommand: UpdateKnowledgeBaseCommand_1.UpdateKnowledgeBaseCommand,
87
+ };
88
+ class BedrockAgent extends BedrockAgentClient_1.BedrockAgentClient {
89
+ }
90
+ exports.BedrockAgent = BedrockAgent;
91
+ (0, smithy_client_1.createAggregatedClient)(commands, BedrockAgent);