@aws-sdk/client-bedrock 3.556.0 → 3.561.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 (74) hide show
  1. package/README.md +81 -1
  2. package/dist-cjs/index.js +1005 -79
  3. package/dist-es/Bedrock.js +20 -0
  4. package/dist-es/commands/CreateEvaluationJobCommand.js +25 -0
  5. package/dist-es/commands/CreateGuardrailCommand.js +25 -0
  6. package/dist-es/commands/CreateGuardrailVersionCommand.js +25 -0
  7. package/dist-es/commands/DeleteGuardrailCommand.js +24 -0
  8. package/dist-es/commands/GetEvaluationJobCommand.js +25 -0
  9. package/dist-es/commands/GetGuardrailCommand.js +25 -0
  10. package/dist-es/commands/ListEvaluationJobsCommand.js +24 -0
  11. package/dist-es/commands/ListGuardrailsCommand.js +25 -0
  12. package/dist-es/commands/StopEvaluationJobCommand.js +25 -0
  13. package/dist-es/commands/UpdateGuardrailCommand.js +25 -0
  14. package/dist-es/commands/index.js +10 -0
  15. package/dist-es/models/models_0.js +312 -48
  16. package/dist-es/pagination/ListEvaluationJobsPaginator.js +4 -0
  17. package/dist-es/pagination/ListGuardrailsPaginator.js +4 -0
  18. package/dist-es/pagination/index.js +2 -0
  19. package/dist-es/protocols/Aws_restJson1.js +374 -4
  20. package/dist-types/Bedrock.d.ts +73 -1
  21. package/dist-types/BedrockClient.d.ts +13 -3
  22. package/dist-types/commands/CreateEvaluationJobCommand.d.ts +148 -0
  23. package/dist-types/commands/CreateGuardrailCommand.d.ts +186 -0
  24. package/dist-types/commands/CreateGuardrailVersionCommand.d.ts +84 -0
  25. package/dist-types/commands/CreateModelCustomizationJobCommand.d.ts +6 -8
  26. package/dist-types/commands/CreateProvisionedModelThroughputCommand.d.ts +2 -3
  27. package/dist-types/commands/DeleteCustomModelCommand.d.ts +2 -2
  28. package/dist-types/commands/DeleteGuardrailCommand.d.ts +84 -0
  29. package/dist-types/commands/DeleteProvisionedModelThroughputCommand.d.ts +2 -2
  30. package/dist-types/commands/GetCustomModelCommand.d.ts +2 -2
  31. package/dist-types/commands/GetEvaluationJobCommand.d.ts +144 -0
  32. package/dist-types/commands/GetFoundationModelCommand.d.ts +1 -1
  33. package/dist-types/commands/GetGuardrailCommand.d.ts +140 -0
  34. package/dist-types/commands/GetModelCustomizationJobCommand.d.ts +2 -2
  35. package/dist-types/commands/GetProvisionedModelThroughputCommand.d.ts +2 -2
  36. package/dist-types/commands/ListCustomModelsCommand.d.ts +1 -1
  37. package/dist-types/commands/ListEvaluationJobsCommand.d.ts +93 -0
  38. package/dist-types/commands/ListFoundationModelsCommand.d.ts +1 -1
  39. package/dist-types/commands/ListGuardrailsCommand.d.ts +89 -0
  40. package/dist-types/commands/ListModelCustomizationJobsCommand.d.ts +2 -2
  41. package/dist-types/commands/ListProvisionedModelThroughputsCommand.d.ts +1 -1
  42. package/dist-types/commands/ListTagsForResourceCommand.d.ts +2 -2
  43. package/dist-types/commands/StopEvaluationJobCommand.d.ts +75 -0
  44. package/dist-types/commands/StopModelCustomizationJobCommand.d.ts +2 -2
  45. package/dist-types/commands/TagResourceCommand.d.ts +2 -2
  46. package/dist-types/commands/UntagResourceCommand.d.ts +2 -2
  47. package/dist-types/commands/UpdateGuardrailCommand.d.ts +176 -0
  48. package/dist-types/commands/UpdateProvisionedModelThroughputCommand.d.ts +2 -2
  49. package/dist-types/commands/index.d.ts +10 -0
  50. package/dist-types/index.d.ts +1 -1
  51. package/dist-types/models/models_0.d.ts +1926 -215
  52. package/dist-types/pagination/ListEvaluationJobsPaginator.d.ts +7 -0
  53. package/dist-types/pagination/ListGuardrailsPaginator.d.ts +7 -0
  54. package/dist-types/pagination/index.d.ts +2 -0
  55. package/dist-types/protocols/Aws_restJson1.d.ts +90 -0
  56. package/dist-types/ts3.4/Bedrock.d.ts +172 -0
  57. package/dist-types/ts3.4/BedrockClient.d.ts +60 -0
  58. package/dist-types/ts3.4/commands/CreateEvaluationJobCommand.d.ts +39 -0
  59. package/dist-types/ts3.4/commands/CreateGuardrailCommand.d.ts +38 -0
  60. package/dist-types/ts3.4/commands/CreateGuardrailVersionCommand.d.ts +39 -0
  61. package/dist-types/ts3.4/commands/DeleteGuardrailCommand.d.ts +38 -0
  62. package/dist-types/ts3.4/commands/GetEvaluationJobCommand.d.ts +38 -0
  63. package/dist-types/ts3.4/commands/GetGuardrailCommand.d.ts +35 -0
  64. package/dist-types/ts3.4/commands/ListEvaluationJobsCommand.d.ts +39 -0
  65. package/dist-types/ts3.4/commands/ListGuardrailsCommand.d.ts +38 -0
  66. package/dist-types/ts3.4/commands/StopEvaluationJobCommand.d.ts +39 -0
  67. package/dist-types/ts3.4/commands/UpdateGuardrailCommand.d.ts +38 -0
  68. package/dist-types/ts3.4/commands/index.d.ts +10 -0
  69. package/dist-types/ts3.4/models/models_0.d.ts +572 -49
  70. package/dist-types/ts3.4/pagination/ListEvaluationJobsPaginator.d.ts +11 -0
  71. package/dist-types/ts3.4/pagination/ListGuardrailsPaginator.d.ts +11 -0
  72. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  73. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +120 -0
  74. package/package.json +1 -1
package/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  AWS SDK for JavaScript Bedrock Client for Node.js, Browser and React Native.
8
8
 
9
- <p>Describes the API operations for creating and managing Amazon Bedrock models.</p>
9
+ <p>Describes the API operations for creating, managing, fine-turning, and evaluating Amazon Bedrock models.</p>
10
10
 
11
11
  ## Installing
12
12
 
@@ -203,6 +203,30 @@ see LICENSE for more information.
203
203
 
204
204
  ## Client Commands (Operations List)
205
205
 
206
+ <details>
207
+ <summary>
208
+ CreateEvaluationJob
209
+ </summary>
210
+
211
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock/command/CreateEvaluationJobCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/CreateEvaluationJobCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/CreateEvaluationJobCommandOutput/)
212
+
213
+ </details>
214
+ <details>
215
+ <summary>
216
+ CreateGuardrail
217
+ </summary>
218
+
219
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock/command/CreateGuardrailCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/CreateGuardrailCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/CreateGuardrailCommandOutput/)
220
+
221
+ </details>
222
+ <details>
223
+ <summary>
224
+ CreateGuardrailVersion
225
+ </summary>
226
+
227
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock/command/CreateGuardrailVersionCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/CreateGuardrailVersionCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/CreateGuardrailVersionCommandOutput/)
228
+
229
+ </details>
206
230
  <details>
207
231
  <summary>
208
232
  CreateModelCustomizationJob
@@ -226,6 +250,14 @@ DeleteCustomModel
226
250
 
227
251
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock/command/DeleteCustomModelCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/DeleteCustomModelCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/DeleteCustomModelCommandOutput/)
228
252
 
253
+ </details>
254
+ <details>
255
+ <summary>
256
+ DeleteGuardrail
257
+ </summary>
258
+
259
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock/command/DeleteGuardrailCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/DeleteGuardrailCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/DeleteGuardrailCommandOutput/)
260
+
229
261
  </details>
230
262
  <details>
231
263
  <summary>
@@ -250,6 +282,14 @@ GetCustomModel
250
282
 
251
283
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock/command/GetCustomModelCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/GetCustomModelCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/GetCustomModelCommandOutput/)
252
284
 
285
+ </details>
286
+ <details>
287
+ <summary>
288
+ GetEvaluationJob
289
+ </summary>
290
+
291
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock/command/GetEvaluationJobCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/GetEvaluationJobCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/GetEvaluationJobCommandOutput/)
292
+
253
293
  </details>
254
294
  <details>
255
295
  <summary>
@@ -258,6 +298,14 @@ GetFoundationModel
258
298
 
259
299
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock/command/GetFoundationModelCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/GetFoundationModelCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/GetFoundationModelCommandOutput/)
260
300
 
301
+ </details>
302
+ <details>
303
+ <summary>
304
+ GetGuardrail
305
+ </summary>
306
+
307
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock/command/GetGuardrailCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/GetGuardrailCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/GetGuardrailCommandOutput/)
308
+
261
309
  </details>
262
310
  <details>
263
311
  <summary>
@@ -290,6 +338,14 @@ ListCustomModels
290
338
 
291
339
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock/command/ListCustomModelsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/ListCustomModelsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/ListCustomModelsCommandOutput/)
292
340
 
341
+ </details>
342
+ <details>
343
+ <summary>
344
+ ListEvaluationJobs
345
+ </summary>
346
+
347
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock/command/ListEvaluationJobsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/ListEvaluationJobsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/ListEvaluationJobsCommandOutput/)
348
+
293
349
  </details>
294
350
  <details>
295
351
  <summary>
@@ -298,6 +354,14 @@ ListFoundationModels
298
354
 
299
355
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock/command/ListFoundationModelsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/ListFoundationModelsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/ListFoundationModelsCommandOutput/)
300
356
 
357
+ </details>
358
+ <details>
359
+ <summary>
360
+ ListGuardrails
361
+ </summary>
362
+
363
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock/command/ListGuardrailsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/ListGuardrailsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/ListGuardrailsCommandOutput/)
364
+
301
365
  </details>
302
366
  <details>
303
367
  <summary>
@@ -330,6 +394,14 @@ PutModelInvocationLoggingConfiguration
330
394
 
331
395
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock/command/PutModelInvocationLoggingConfigurationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/PutModelInvocationLoggingConfigurationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/PutModelInvocationLoggingConfigurationCommandOutput/)
332
396
 
397
+ </details>
398
+ <details>
399
+ <summary>
400
+ StopEvaluationJob
401
+ </summary>
402
+
403
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock/command/StopEvaluationJobCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/StopEvaluationJobCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/StopEvaluationJobCommandOutput/)
404
+
333
405
  </details>
334
406
  <details>
335
407
  <summary>
@@ -354,6 +426,14 @@ UntagResource
354
426
 
355
427
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock/command/UntagResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/UntagResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/UntagResourceCommandOutput/)
356
428
 
429
+ </details>
430
+ <details>
431
+ <summary>
432
+ UpdateGuardrail
433
+ </summary>
434
+
435
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock/command/UpdateGuardrailCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/UpdateGuardrailCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/UpdateGuardrailCommandOutput/)
436
+
357
437
  </details>
358
438
  <details>
359
439
  <summary>