@aws-sdk/client-bedrock-runtime 3.699.0 → 3.705.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 (43) hide show
  1. package/README.md +31 -7
  2. package/dist-cjs/index.js +484 -116
  3. package/dist-es/BedrockRuntime.js +6 -0
  4. package/dist-es/commands/GetAsyncInvokeCommand.js +23 -0
  5. package/dist-es/commands/ListAsyncInvokesCommand.js +23 -0
  6. package/dist-es/commands/StartAsyncInvokeCommand.js +23 -0
  7. package/dist-es/commands/index.js +3 -0
  8. package/dist-es/index.js +1 -0
  9. package/dist-es/models/models_0.js +156 -72
  10. package/dist-es/pagination/Interfaces.js +1 -0
  11. package/dist-es/pagination/ListAsyncInvokesPaginator.js +4 -0
  12. package/dist-es/pagination/index.js +2 -0
  13. package/dist-es/protocols/Aws_restJson1.js +200 -2
  14. package/dist-types/BedrockRuntime.d.ts +22 -0
  15. package/dist-types/BedrockRuntimeClient.d.ts +5 -2
  16. package/dist-types/commands/ApplyGuardrailCommand.d.ts +12 -5
  17. package/dist-types/commands/ConverseCommand.d.ts +73 -9
  18. package/dist-types/commands/ConverseStreamCommand.d.ts +53 -9
  19. package/dist-types/commands/GetAsyncInvokeCommand.d.ts +101 -0
  20. package/dist-types/commands/InvokeModelCommand.d.ts +26 -9
  21. package/dist-types/commands/InvokeModelWithResponseStreamCommand.d.ts +26 -9
  22. package/dist-types/commands/ListAsyncInvokesCommand.d.ts +112 -0
  23. package/dist-types/commands/StartAsyncInvokeCommand.d.ts +124 -0
  24. package/dist-types/commands/index.d.ts +3 -0
  25. package/dist-types/index.d.ts +1 -0
  26. package/dist-types/models/models_0.d.ts +652 -97
  27. package/dist-types/pagination/Interfaces.d.ts +8 -0
  28. package/dist-types/pagination/ListAsyncInvokesPaginator.d.ts +7 -0
  29. package/dist-types/pagination/index.d.ts +2 -0
  30. package/dist-types/protocols/Aws_restJson1.d.ts +27 -0
  31. package/dist-types/ts3.4/BedrockRuntime.d.ts +52 -0
  32. package/dist-types/ts3.4/BedrockRuntimeClient.d.ts +20 -2
  33. package/dist-types/ts3.4/commands/GetAsyncInvokeCommand.d.ts +50 -0
  34. package/dist-types/ts3.4/commands/ListAsyncInvokesCommand.d.ts +50 -0
  35. package/dist-types/ts3.4/commands/StartAsyncInvokeCommand.d.ts +50 -0
  36. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  37. package/dist-types/ts3.4/index.d.ts +1 -0
  38. package/dist-types/ts3.4/models/models_0.d.ts +254 -42
  39. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  40. package/dist-types/ts3.4/pagination/ListAsyncInvokesPaginator.d.ts +11 -0
  41. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  42. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +36 -0
  43. package/package.json +4 -2
package/README.md CHANGED
@@ -23,16 +23,16 @@ using your favorite package manager:
23
23
 
24
24
  The AWS SDK is modulized by clients and commands.
25
25
  To send a request, you only need to import the `BedrockRuntimeClient` and
26
- the commands you need, for example `ConverseCommand`:
26
+ the commands you need, for example `ListAsyncInvokesCommand`:
27
27
 
28
28
  ```js
29
29
  // ES5 example
30
- const { BedrockRuntimeClient, ConverseCommand } = require("@aws-sdk/client-bedrock-runtime");
30
+ const { BedrockRuntimeClient, ListAsyncInvokesCommand } = require("@aws-sdk/client-bedrock-runtime");
31
31
  ```
32
32
 
33
33
  ```ts
34
34
  // ES6+ example
35
- import { BedrockRuntimeClient, ConverseCommand } from "@aws-sdk/client-bedrock-runtime";
35
+ import { BedrockRuntimeClient, ListAsyncInvokesCommand } from "@aws-sdk/client-bedrock-runtime";
36
36
  ```
37
37
 
38
38
  ### Usage
@@ -51,7 +51,7 @@ const client = new BedrockRuntimeClient({ region: "REGION" });
51
51
  const params = {
52
52
  /** input parameters */
53
53
  };
54
- const command = new ConverseCommand(params);
54
+ const command = new ListAsyncInvokesCommand(params);
55
55
  ```
56
56
 
57
57
  #### Async/await
@@ -130,7 +130,7 @@ const client = new AWS.BedrockRuntime({ region: "REGION" });
130
130
 
131
131
  // async/await.
132
132
  try {
133
- const data = await client.converse(params);
133
+ const data = await client.listAsyncInvokes(params);
134
134
  // process data.
135
135
  } catch (error) {
136
136
  // error handling.
@@ -138,7 +138,7 @@ try {
138
138
 
139
139
  // Promises.
140
140
  client
141
- .converse(params)
141
+ .listAsyncInvokes(params)
142
142
  .then((data) => {
143
143
  // process data.
144
144
  })
@@ -147,7 +147,7 @@ client
147
147
  });
148
148
 
149
149
  // callbacks.
150
- client.converse(params, (err, data) => {
150
+ client.listAsyncInvokes(params, (err, data) => {
151
151
  // process err and data.
152
152
  });
153
153
  ```
@@ -226,6 +226,14 @@ ConverseStream
226
226
 
227
227
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-runtime/command/ConverseStreamCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-runtime/Interface/ConverseStreamCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-runtime/Interface/ConverseStreamCommandOutput/)
228
228
 
229
+ </details>
230
+ <details>
231
+ <summary>
232
+ GetAsyncInvoke
233
+ </summary>
234
+
235
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-runtime/command/GetAsyncInvokeCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-runtime/Interface/GetAsyncInvokeCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-runtime/Interface/GetAsyncInvokeCommandOutput/)
236
+
229
237
  </details>
230
238
  <details>
231
239
  <summary>
@@ -243,3 +251,19 @@ InvokeModelWithResponseStream
243
251
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-runtime/command/InvokeModelWithResponseStreamCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-runtime/Interface/InvokeModelWithResponseStreamCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-runtime/Interface/InvokeModelWithResponseStreamCommandOutput/)
244
252
 
245
253
  </details>
254
+ <details>
255
+ <summary>
256
+ ListAsyncInvokes
257
+ </summary>
258
+
259
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-runtime/command/ListAsyncInvokesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-runtime/Interface/ListAsyncInvokesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-runtime/Interface/ListAsyncInvokesCommandOutput/)
260
+
261
+ </details>
262
+ <details>
263
+ <summary>
264
+ StartAsyncInvoke
265
+ </summary>
266
+
267
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-runtime/command/StartAsyncInvokeCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-runtime/Interface/StartAsyncInvokeCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-runtime/Interface/StartAsyncInvokeCommandOutput/)
268
+
269
+ </details>