@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
@@ -1,4 +1,6 @@
1
1
  export * from "./Interfaces";
2
2
  export * from "./ListCustomModelsPaginator";
3
+ export * from "./ListEvaluationJobsPaginator";
4
+ export * from "./ListGuardrailsPaginator";
3
5
  export * from "./ListModelCustomizationJobsPaginator";
4
6
  export * from "./ListProvisionedModelThroughputsPaginator";
@@ -3,6 +3,18 @@ import {
3
3
  HttpResponse as __HttpResponse,
4
4
  } from "@smithy/protocol-http";
5
5
  import { SerdeContext as __SerdeContext } from "@smithy/types";
6
+ import {
7
+ CreateEvaluationJobCommandInput,
8
+ CreateEvaluationJobCommandOutput,
9
+ } from "../commands/CreateEvaluationJobCommand";
10
+ import {
11
+ CreateGuardrailCommandInput,
12
+ CreateGuardrailCommandOutput,
13
+ } from "../commands/CreateGuardrailCommand";
14
+ import {
15
+ CreateGuardrailVersionCommandInput,
16
+ CreateGuardrailVersionCommandOutput,
17
+ } from "../commands/CreateGuardrailVersionCommand";
6
18
  import {
7
19
  CreateModelCustomizationJobCommandInput,
8
20
  CreateModelCustomizationJobCommandOutput,
@@ -15,6 +27,10 @@ import {
15
27
  DeleteCustomModelCommandInput,
16
28
  DeleteCustomModelCommandOutput,
17
29
  } from "../commands/DeleteCustomModelCommand";
30
+ import {
31
+ DeleteGuardrailCommandInput,
32
+ DeleteGuardrailCommandOutput,
33
+ } from "../commands/DeleteGuardrailCommand";
18
34
  import {
19
35
  DeleteModelInvocationLoggingConfigurationCommandInput,
20
36
  DeleteModelInvocationLoggingConfigurationCommandOutput,
@@ -27,10 +43,18 @@ import {
27
43
  GetCustomModelCommandInput,
28
44
  GetCustomModelCommandOutput,
29
45
  } from "../commands/GetCustomModelCommand";
46
+ import {
47
+ GetEvaluationJobCommandInput,
48
+ GetEvaluationJobCommandOutput,
49
+ } from "../commands/GetEvaluationJobCommand";
30
50
  import {
31
51
  GetFoundationModelCommandInput,
32
52
  GetFoundationModelCommandOutput,
33
53
  } from "../commands/GetFoundationModelCommand";
54
+ import {
55
+ GetGuardrailCommandInput,
56
+ GetGuardrailCommandOutput,
57
+ } from "../commands/GetGuardrailCommand";
34
58
  import {
35
59
  GetModelCustomizationJobCommandInput,
36
60
  GetModelCustomizationJobCommandOutput,
@@ -47,10 +71,18 @@ import {
47
71
  ListCustomModelsCommandInput,
48
72
  ListCustomModelsCommandOutput,
49
73
  } from "../commands/ListCustomModelsCommand";
74
+ import {
75
+ ListEvaluationJobsCommandInput,
76
+ ListEvaluationJobsCommandOutput,
77
+ } from "../commands/ListEvaluationJobsCommand";
50
78
  import {
51
79
  ListFoundationModelsCommandInput,
52
80
  ListFoundationModelsCommandOutput,
53
81
  } from "../commands/ListFoundationModelsCommand";
82
+ import {
83
+ ListGuardrailsCommandInput,
84
+ ListGuardrailsCommandOutput,
85
+ } from "../commands/ListGuardrailsCommand";
54
86
  import {
55
87
  ListModelCustomizationJobsCommandInput,
56
88
  ListModelCustomizationJobsCommandOutput,
@@ -67,6 +99,10 @@ import {
67
99
  PutModelInvocationLoggingConfigurationCommandInput,
68
100
  PutModelInvocationLoggingConfigurationCommandOutput,
69
101
  } from "../commands/PutModelInvocationLoggingConfigurationCommand";
102
+ import {
103
+ StopEvaluationJobCommandInput,
104
+ StopEvaluationJobCommandOutput,
105
+ } from "../commands/StopEvaluationJobCommand";
70
106
  import {
71
107
  StopModelCustomizationJobCommandInput,
72
108
  StopModelCustomizationJobCommandOutput,
@@ -79,10 +115,26 @@ import {
79
115
  UntagResourceCommandInput,
80
116
  UntagResourceCommandOutput,
81
117
  } from "../commands/UntagResourceCommand";
118
+ import {
119
+ UpdateGuardrailCommandInput,
120
+ UpdateGuardrailCommandOutput,
121
+ } from "../commands/UpdateGuardrailCommand";
82
122
  import {
83
123
  UpdateProvisionedModelThroughputCommandInput,
84
124
  UpdateProvisionedModelThroughputCommandOutput,
85
125
  } from "../commands/UpdateProvisionedModelThroughputCommand";
126
+ export declare const se_CreateEvaluationJobCommand: (
127
+ input: CreateEvaluationJobCommandInput,
128
+ context: __SerdeContext
129
+ ) => Promise<__HttpRequest>;
130
+ export declare const se_CreateGuardrailCommand: (
131
+ input: CreateGuardrailCommandInput,
132
+ context: __SerdeContext
133
+ ) => Promise<__HttpRequest>;
134
+ export declare const se_CreateGuardrailVersionCommand: (
135
+ input: CreateGuardrailVersionCommandInput,
136
+ context: __SerdeContext
137
+ ) => Promise<__HttpRequest>;
86
138
  export declare const se_CreateModelCustomizationJobCommand: (
87
139
  input: CreateModelCustomizationJobCommandInput,
88
140
  context: __SerdeContext
@@ -95,6 +147,10 @@ export declare const se_DeleteCustomModelCommand: (
95
147
  input: DeleteCustomModelCommandInput,
96
148
  context: __SerdeContext
97
149
  ) => Promise<__HttpRequest>;
150
+ export declare const se_DeleteGuardrailCommand: (
151
+ input: DeleteGuardrailCommandInput,
152
+ context: __SerdeContext
153
+ ) => Promise<__HttpRequest>;
98
154
  export declare const se_DeleteModelInvocationLoggingConfigurationCommand: (
99
155
  input: DeleteModelInvocationLoggingConfigurationCommandInput,
100
156
  context: __SerdeContext
@@ -107,10 +163,18 @@ export declare const se_GetCustomModelCommand: (
107
163
  input: GetCustomModelCommandInput,
108
164
  context: __SerdeContext
109
165
  ) => Promise<__HttpRequest>;
166
+ export declare const se_GetEvaluationJobCommand: (
167
+ input: GetEvaluationJobCommandInput,
168
+ context: __SerdeContext
169
+ ) => Promise<__HttpRequest>;
110
170
  export declare const se_GetFoundationModelCommand: (
111
171
  input: GetFoundationModelCommandInput,
112
172
  context: __SerdeContext
113
173
  ) => Promise<__HttpRequest>;
174
+ export declare const se_GetGuardrailCommand: (
175
+ input: GetGuardrailCommandInput,
176
+ context: __SerdeContext
177
+ ) => Promise<__HttpRequest>;
114
178
  export declare const se_GetModelCustomizationJobCommand: (
115
179
  input: GetModelCustomizationJobCommandInput,
116
180
  context: __SerdeContext
@@ -127,10 +191,18 @@ export declare const se_ListCustomModelsCommand: (
127
191
  input: ListCustomModelsCommandInput,
128
192
  context: __SerdeContext
129
193
  ) => Promise<__HttpRequest>;
194
+ export declare const se_ListEvaluationJobsCommand: (
195
+ input: ListEvaluationJobsCommandInput,
196
+ context: __SerdeContext
197
+ ) => Promise<__HttpRequest>;
130
198
  export declare const se_ListFoundationModelsCommand: (
131
199
  input: ListFoundationModelsCommandInput,
132
200
  context: __SerdeContext
133
201
  ) => Promise<__HttpRequest>;
202
+ export declare const se_ListGuardrailsCommand: (
203
+ input: ListGuardrailsCommandInput,
204
+ context: __SerdeContext
205
+ ) => Promise<__HttpRequest>;
134
206
  export declare const se_ListModelCustomizationJobsCommand: (
135
207
  input: ListModelCustomizationJobsCommandInput,
136
208
  context: __SerdeContext
@@ -147,6 +219,10 @@ export declare const se_PutModelInvocationLoggingConfigurationCommand: (
147
219
  input: PutModelInvocationLoggingConfigurationCommandInput,
148
220
  context: __SerdeContext
149
221
  ) => Promise<__HttpRequest>;
222
+ export declare const se_StopEvaluationJobCommand: (
223
+ input: StopEvaluationJobCommandInput,
224
+ context: __SerdeContext
225
+ ) => Promise<__HttpRequest>;
150
226
  export declare const se_StopModelCustomizationJobCommand: (
151
227
  input: StopModelCustomizationJobCommandInput,
152
228
  context: __SerdeContext
@@ -159,10 +235,26 @@ export declare const se_UntagResourceCommand: (
159
235
  input: UntagResourceCommandInput,
160
236
  context: __SerdeContext
161
237
  ) => Promise<__HttpRequest>;
238
+ export declare const se_UpdateGuardrailCommand: (
239
+ input: UpdateGuardrailCommandInput,
240
+ context: __SerdeContext
241
+ ) => Promise<__HttpRequest>;
162
242
  export declare const se_UpdateProvisionedModelThroughputCommand: (
163
243
  input: UpdateProvisionedModelThroughputCommandInput,
164
244
  context: __SerdeContext
165
245
  ) => Promise<__HttpRequest>;
246
+ export declare const de_CreateEvaluationJobCommand: (
247
+ output: __HttpResponse,
248
+ context: __SerdeContext
249
+ ) => Promise<CreateEvaluationJobCommandOutput>;
250
+ export declare const de_CreateGuardrailCommand: (
251
+ output: __HttpResponse,
252
+ context: __SerdeContext
253
+ ) => Promise<CreateGuardrailCommandOutput>;
254
+ export declare const de_CreateGuardrailVersionCommand: (
255
+ output: __HttpResponse,
256
+ context: __SerdeContext
257
+ ) => Promise<CreateGuardrailVersionCommandOutput>;
166
258
  export declare const de_CreateModelCustomizationJobCommand: (
167
259
  output: __HttpResponse,
168
260
  context: __SerdeContext
@@ -175,6 +267,10 @@ export declare const de_DeleteCustomModelCommand: (
175
267
  output: __HttpResponse,
176
268
  context: __SerdeContext
177
269
  ) => Promise<DeleteCustomModelCommandOutput>;
270
+ export declare const de_DeleteGuardrailCommand: (
271
+ output: __HttpResponse,
272
+ context: __SerdeContext
273
+ ) => Promise<DeleteGuardrailCommandOutput>;
178
274
  export declare const de_DeleteModelInvocationLoggingConfigurationCommand: (
179
275
  output: __HttpResponse,
180
276
  context: __SerdeContext
@@ -187,10 +283,18 @@ export declare const de_GetCustomModelCommand: (
187
283
  output: __HttpResponse,
188
284
  context: __SerdeContext
189
285
  ) => Promise<GetCustomModelCommandOutput>;
286
+ export declare const de_GetEvaluationJobCommand: (
287
+ output: __HttpResponse,
288
+ context: __SerdeContext
289
+ ) => Promise<GetEvaluationJobCommandOutput>;
190
290
  export declare const de_GetFoundationModelCommand: (
191
291
  output: __HttpResponse,
192
292
  context: __SerdeContext
193
293
  ) => Promise<GetFoundationModelCommandOutput>;
294
+ export declare const de_GetGuardrailCommand: (
295
+ output: __HttpResponse,
296
+ context: __SerdeContext
297
+ ) => Promise<GetGuardrailCommandOutput>;
194
298
  export declare const de_GetModelCustomizationJobCommand: (
195
299
  output: __HttpResponse,
196
300
  context: __SerdeContext
@@ -207,10 +311,18 @@ export declare const de_ListCustomModelsCommand: (
207
311
  output: __HttpResponse,
208
312
  context: __SerdeContext
209
313
  ) => Promise<ListCustomModelsCommandOutput>;
314
+ export declare const de_ListEvaluationJobsCommand: (
315
+ output: __HttpResponse,
316
+ context: __SerdeContext
317
+ ) => Promise<ListEvaluationJobsCommandOutput>;
210
318
  export declare const de_ListFoundationModelsCommand: (
211
319
  output: __HttpResponse,
212
320
  context: __SerdeContext
213
321
  ) => Promise<ListFoundationModelsCommandOutput>;
322
+ export declare const de_ListGuardrailsCommand: (
323
+ output: __HttpResponse,
324
+ context: __SerdeContext
325
+ ) => Promise<ListGuardrailsCommandOutput>;
214
326
  export declare const de_ListModelCustomizationJobsCommand: (
215
327
  output: __HttpResponse,
216
328
  context: __SerdeContext
@@ -227,6 +339,10 @@ export declare const de_PutModelInvocationLoggingConfigurationCommand: (
227
339
  output: __HttpResponse,
228
340
  context: __SerdeContext
229
341
  ) => Promise<PutModelInvocationLoggingConfigurationCommandOutput>;
342
+ export declare const de_StopEvaluationJobCommand: (
343
+ output: __HttpResponse,
344
+ context: __SerdeContext
345
+ ) => Promise<StopEvaluationJobCommandOutput>;
230
346
  export declare const de_StopModelCustomizationJobCommand: (
231
347
  output: __HttpResponse,
232
348
  context: __SerdeContext
@@ -239,6 +355,10 @@ export declare const de_UntagResourceCommand: (
239
355
  output: __HttpResponse,
240
356
  context: __SerdeContext
241
357
  ) => Promise<UntagResourceCommandOutput>;
358
+ export declare const de_UpdateGuardrailCommand: (
359
+ output: __HttpResponse,
360
+ context: __SerdeContext
361
+ ) => Promise<UpdateGuardrailCommandOutput>;
242
362
  export declare const de_UpdateProvisionedModelThroughputCommand: (
243
363
  output: __HttpResponse,
244
364
  context: __SerdeContext
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-bedrock",
3
3
  "description": "AWS SDK for JavaScript Bedrock Client for Node.js, Browser and React Native",
4
- "version": "3.556.0",
4
+ "version": "3.561.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-bedrock",