@aws-sdk/client-bedrock 3.705.0 → 3.709.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 (56) hide show
  1. package/README.md +72 -0
  2. package/dist-cjs/index.js +614 -27
  3. package/dist-es/Bedrock.js +18 -0
  4. package/dist-es/commands/CreateMarketplaceModelEndpointCommand.js +22 -0
  5. package/dist-es/commands/DeleteMarketplaceModelEndpointCommand.js +22 -0
  6. package/dist-es/commands/DeregisterMarketplaceModelEndpointCommand.js +22 -0
  7. package/dist-es/commands/GetMarketplaceModelEndpointCommand.js +22 -0
  8. package/dist-es/commands/GetPromptRouterCommand.js +23 -0
  9. package/dist-es/commands/ListMarketplaceModelEndpointsCommand.js +22 -0
  10. package/dist-es/commands/ListPromptRoutersCommand.js +23 -0
  11. package/dist-es/commands/RegisterMarketplaceModelEndpointCommand.js +22 -0
  12. package/dist-es/commands/UpdateMarketplaceModelEndpointCommand.js +22 -0
  13. package/dist-es/commands/index.js +9 -0
  14. package/dist-es/models/models_0.js +96 -20
  15. package/dist-es/pagination/ListMarketplaceModelEndpointsPaginator.js +4 -0
  16. package/dist-es/pagination/ListPromptRoutersPaginator.js +4 -0
  17. package/dist-es/pagination/index.js +2 -0
  18. package/dist-es/protocols/Aws_restJson1.js +314 -1
  19. package/dist-types/Bedrock.d.ts +65 -0
  20. package/dist-types/BedrockClient.d.ts +11 -2
  21. package/dist-types/commands/CreateGuardrailCommand.d.ts +6 -0
  22. package/dist-types/commands/CreateMarketplaceModelEndpointCommand.d.ts +143 -0
  23. package/dist-types/commands/DeleteMarketplaceModelEndpointCommand.d.ts +84 -0
  24. package/dist-types/commands/DeregisterMarketplaceModelEndpointCommand.d.ts +89 -0
  25. package/dist-types/commands/GetGuardrailCommand.d.ts +6 -0
  26. package/dist-types/commands/GetMarketplaceModelEndpointCommand.d.ts +111 -0
  27. package/dist-types/commands/GetPromptRouterCommand.d.ts +103 -0
  28. package/dist-types/commands/ListMarketplaceModelEndpointsCommand.d.ts +99 -0
  29. package/dist-types/commands/ListPromptRoutersCommand.d.ts +106 -0
  30. package/dist-types/commands/RegisterMarketplaceModelEndpointCommand.d.ts +116 -0
  31. package/dist-types/commands/UpdateGuardrailCommand.d.ts +6 -0
  32. package/dist-types/commands/UpdateMarketplaceModelEndpointCommand.d.ts +135 -0
  33. package/dist-types/commands/index.d.ts +9 -0
  34. package/dist-types/models/models_0.d.ts +736 -97
  35. package/dist-types/pagination/ListMarketplaceModelEndpointsPaginator.d.ts +7 -0
  36. package/dist-types/pagination/ListPromptRoutersPaginator.d.ts +7 -0
  37. package/dist-types/pagination/index.d.ts +2 -0
  38. package/dist-types/protocols/Aws_restJson1.d.ts +81 -0
  39. package/dist-types/ts3.4/Bedrock.d.ts +161 -0
  40. package/dist-types/ts3.4/BedrockClient.d.ts +54 -0
  41. package/dist-types/ts3.4/commands/CreateMarketplaceModelEndpointCommand.d.ts +51 -0
  42. package/dist-types/ts3.4/commands/DeleteMarketplaceModelEndpointCommand.d.ts +51 -0
  43. package/dist-types/ts3.4/commands/DeregisterMarketplaceModelEndpointCommand.d.ts +51 -0
  44. package/dist-types/ts3.4/commands/GetMarketplaceModelEndpointCommand.d.ts +51 -0
  45. package/dist-types/ts3.4/commands/GetPromptRouterCommand.d.ts +50 -0
  46. package/dist-types/ts3.4/commands/ListMarketplaceModelEndpointsCommand.d.ts +51 -0
  47. package/dist-types/ts3.4/commands/ListPromptRoutersCommand.d.ts +51 -0
  48. package/dist-types/ts3.4/commands/RegisterMarketplaceModelEndpointCommand.d.ts +51 -0
  49. package/dist-types/ts3.4/commands/UpdateMarketplaceModelEndpointCommand.d.ts +51 -0
  50. package/dist-types/ts3.4/commands/index.d.ts +9 -0
  51. package/dist-types/ts3.4/models/models_0.d.ts +229 -41
  52. package/dist-types/ts3.4/pagination/ListMarketplaceModelEndpointsPaginator.d.ts +11 -0
  53. package/dist-types/ts3.4/pagination/ListPromptRoutersPaginator.d.ts +11 -0
  54. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  55. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +108 -0
  56. package/package.json +35 -35
@@ -14,94 +14,233 @@ export declare class AccessDeniedException extends __BaseException {
14
14
  constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
15
15
  }
16
16
  /**
17
+ * <p>Error occurred because of a conflict while performing an operation.</p>
17
18
  * @public
18
19
  */
19
- export interface BatchDeleteEvaluationJobRequest {
20
+ export declare class ConflictException extends __BaseException {
21
+ readonly name: "ConflictException";
22
+ readonly $fault: "client";
20
23
  /**
21
- * <p>A list of one or more evaluation job Amazon Resource Names (ARNs) you want to delete.</p>
24
+ * @internal
25
+ */
26
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
27
+ }
28
+ /**
29
+ * <p>The configuration of a virtual private cloud (VPC). For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/usingVPC.html">Protect your data using Amazon Virtual Private Cloud and Amazon Web Services PrivateLink</a>.</p>
30
+ * @public
31
+ */
32
+ export interface VpcConfig {
33
+ /**
34
+ * <p>An array of IDs for each subnet in the VPC to use.</p>
22
35
  * @public
23
36
  */
24
- jobIdentifiers: string[] | undefined;
37
+ subnetIds: string[] | undefined;
38
+ /**
39
+ * <p>An array of IDs for each security group in the VPC to use.</p>
40
+ * @public
41
+ */
42
+ securityGroupIds: string[] | undefined;
25
43
  }
26
44
  /**
27
- * <p>A JSON array that provides the status of the evaluation jobs being deleted.</p>
45
+ * <p>Specifies the configuration for a Amazon SageMaker endpoint.</p>
28
46
  * @public
29
47
  */
30
- export interface BatchDeleteEvaluationJobError {
48
+ export interface SageMakerEndpoint {
31
49
  /**
32
- * <p>The ARN of the evaluation job being deleted.</p>
50
+ * <p>The number of Amazon EC2 compute instances to deploy for initial endpoint
51
+ * creation.</p>
33
52
  * @public
34
53
  */
35
- jobIdentifier: string | undefined;
54
+ initialInstanceCount: number | undefined;
36
55
  /**
37
- * <p>A HTTP status code of the evaluation job being deleted.</p>
56
+ * <p>The Amazon EC2 compute instance type to deploy for hosting the model.</p>
38
57
  * @public
39
58
  */
40
- code: string | undefined;
59
+ instanceType: string | undefined;
41
60
  /**
42
- * <p>A status message about the evaluation job deletion.</p>
61
+ * <p>The ARN of the IAM role that Amazon SageMaker can assume to access model artifacts
62
+ * and docker image for deployment on Amazon EC2 compute instances or for batch
63
+ * transform jobs.</p>
43
64
  * @public
44
65
  */
45
- message?: string | undefined;
66
+ executionRole: string | undefined;
67
+ /**
68
+ * <p>The Amazon Web Services KMS key that Amazon SageMaker uses to encrypt data on the storage volume
69
+ * attached to the Amazon EC2 compute instance that hosts the endpoint.</p>
70
+ * @public
71
+ */
72
+ kmsEncryptionKey?: string | undefined;
73
+ /**
74
+ * <p>The VPC configuration for the endpoint.</p>
75
+ * @public
76
+ */
77
+ vpc?: VpcConfig | undefined;
46
78
  }
47
79
  /**
80
+ * <p>Specifies the configuration for the endpoint.</p>
48
81
  * @public
49
- * @enum
50
82
  */
51
- export declare const EvaluationJobStatus: {
52
- readonly COMPLETED: "Completed";
53
- readonly DELETING: "Deleting";
54
- readonly FAILED: "Failed";
55
- readonly IN_PROGRESS: "InProgress";
56
- readonly STOPPED: "Stopped";
57
- readonly STOPPING: "Stopping";
58
- };
83
+ export type EndpointConfig = EndpointConfig.SageMakerMember | EndpointConfig.$UnknownMember;
59
84
  /**
60
85
  * @public
61
86
  */
62
- export type EvaluationJobStatus = (typeof EvaluationJobStatus)[keyof typeof EvaluationJobStatus];
87
+ export declare namespace EndpointConfig {
88
+ /**
89
+ * <p>The configuration specific to Amazon SageMaker for the endpoint.</p>
90
+ * @public
91
+ */
92
+ interface SageMakerMember {
93
+ sageMaker: SageMakerEndpoint;
94
+ $unknown?: never;
95
+ }
96
+ /**
97
+ * @public
98
+ */
99
+ interface $UnknownMember {
100
+ sageMaker?: never;
101
+ $unknown: [string, any];
102
+ }
103
+ interface Visitor<T> {
104
+ sageMaker: (value: SageMakerEndpoint) => T;
105
+ _: (name: string, value: any) => T;
106
+ }
107
+ const visit: <T>(value: EndpointConfig, visitor: Visitor<T>) => T;
108
+ }
63
109
  /**
64
- * <p>An evaluation job for deletion, and it’s current status.</p>
110
+ * <p>Definition of the key/value pair for a tag.</p>
65
111
  * @public
66
112
  */
67
- export interface BatchDeleteEvaluationJobItem {
113
+ export interface Tag {
68
114
  /**
69
- * <p>The Amazon Resource Name (ARN) of the evaluation job for deletion.</p>
115
+ * <p>Key for the tag.</p>
70
116
  * @public
71
117
  */
72
- jobIdentifier: string | undefined;
118
+ key: string | undefined;
73
119
  /**
74
- * <p>The status of the evaluation job for deletion.</p>
120
+ * <p>Value for the tag.</p>
75
121
  * @public
76
122
  */
77
- jobStatus: EvaluationJobStatus | undefined;
123
+ value: string | undefined;
78
124
  }
79
125
  /**
80
126
  * @public
81
127
  */
82
- export interface BatchDeleteEvaluationJobResponse {
128
+ export interface CreateMarketplaceModelEndpointRequest {
83
129
  /**
84
- * <p>A JSON object containing the HTTP status codes and the ARNs of evaluation jobs that failed to be deleted.</p>
130
+ * <p>The ARN of the model from Amazon Bedrock Marketplace that you want to deploy to the
131
+ * endpoint.</p>
85
132
  * @public
86
133
  */
87
- errors: BatchDeleteEvaluationJobError[] | undefined;
134
+ modelSourceIdentifier: string | undefined;
88
135
  /**
89
- * <p>The list of evaluation jobs for deletion.</p>
136
+ * <p>The configuration for the endpoint, including the number and type of instances to
137
+ * use.</p>
90
138
  * @public
91
139
  */
92
- evaluationJobs: BatchDeleteEvaluationJobItem[] | undefined;
140
+ endpointConfig: EndpointConfig | undefined;
141
+ /**
142
+ * <p>Indicates whether you accept the end-user license agreement (EULA) for the model. Set
143
+ * to <code>true</code> to accept the EULA.</p>
144
+ * @public
145
+ */
146
+ acceptEula?: boolean | undefined;
147
+ /**
148
+ * <p>The name of the endpoint. This name must be unique within your Amazon Web Services
149
+ * account and region.</p>
150
+ * @public
151
+ */
152
+ endpointName: string | undefined;
153
+ /**
154
+ * <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the
155
+ * request. This token is listed as not required because Amazon Web Services SDKs
156
+ * automatically generate it for you and set this parameter. If you're not using the
157
+ * Amazon Web Services SDK or the CLI, you must provide this token or the
158
+ * action will fail.</p>
159
+ * @public
160
+ */
161
+ clientRequestToken?: string | undefined;
162
+ /**
163
+ * <p>An array of key-value pairs to apply to the underlying Amazon SageMaker endpoint. You can use
164
+ * these tags to organize and identify your Amazon Web Services resources.</p>
165
+ * @public
166
+ */
167
+ tags?: Tag[] | undefined;
93
168
  }
94
169
  /**
95
- * <p>Error occurred because of a conflict while performing an operation.</p>
96
170
  * @public
171
+ * @enum
97
172
  */
98
- export declare class ConflictException extends __BaseException {
99
- readonly name: "ConflictException";
100
- readonly $fault: "client";
173
+ export declare const Status: {
174
+ readonly INCOMPATIBLE_ENDPOINT: "INCOMPATIBLE_ENDPOINT";
175
+ readonly REGISTERED: "REGISTERED";
176
+ };
177
+ /**
178
+ * @public
179
+ */
180
+ export type Status = (typeof Status)[keyof typeof Status];
181
+ /**
182
+ * <p>Contains details about an endpoint for a model from Amazon Bedrock Marketplace.</p>
183
+ * @public
184
+ */
185
+ export interface MarketplaceModelEndpoint {
101
186
  /**
102
- * @internal
187
+ * <p>The Amazon Resource Name (ARN) of the endpoint.</p>
188
+ * @public
103
189
  */
104
- constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
190
+ endpointArn: string | undefined;
191
+ /**
192
+ * <p>The ARN of the model from Amazon Bedrock Marketplace that is deployed on this endpoint.</p>
193
+ * @public
194
+ */
195
+ modelSourceIdentifier: string | undefined;
196
+ /**
197
+ * <p>The overall status of the endpoint in Amazon Bedrock Marketplace (e.g., ACTIVE,
198
+ * INACTIVE).</p>
199
+ * @public
200
+ */
201
+ status?: Status | undefined;
202
+ /**
203
+ * <p>Additional information about the overall status, if available.</p>
204
+ * @public
205
+ */
206
+ statusMessage?: string | undefined;
207
+ /**
208
+ * <p>The timestamp when the endpoint was registered.</p>
209
+ * @public
210
+ */
211
+ createdAt: Date | undefined;
212
+ /**
213
+ * <p>The timestamp when the endpoint was last updated.</p>
214
+ * @public
215
+ */
216
+ updatedAt: Date | undefined;
217
+ /**
218
+ * <p>The configuration of the endpoint, including the number and type of instances
219
+ * used.</p>
220
+ * @public
221
+ */
222
+ endpointConfig: EndpointConfig | undefined;
223
+ /**
224
+ * <p>The current status of the endpoint (e.g., Creating, InService, Updating,
225
+ * Failed).</p>
226
+ * @public
227
+ */
228
+ endpointStatus: string | undefined;
229
+ /**
230
+ * <p>Additional information about the endpoint status, if available.</p>
231
+ * @public
232
+ */
233
+ endpointStatusMessage?: string | undefined;
234
+ }
235
+ /**
236
+ * @public
237
+ */
238
+ export interface CreateMarketplaceModelEndpointResponse {
239
+ /**
240
+ * <p>Details about the created endpoint.</p>
241
+ * @public
242
+ */
243
+ marketplaceModelEndpoint: MarketplaceModelEndpoint | undefined;
105
244
  }
106
245
  /**
107
246
  * <p>An internal server error occurred. Retry your request.</p>
@@ -128,28 +267,316 @@ export declare class ResourceNotFoundException extends __BaseException {
128
267
  constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
129
268
  }
130
269
  /**
131
- * <p>The number of requests exceeds the limit. Resubmit your request later.</p>
270
+ * <p>The number of requests exceeds the service quota. Resubmit your request later.</p>
271
+ * @public
272
+ */
273
+ export declare class ServiceQuotaExceededException extends __BaseException {
274
+ readonly name: "ServiceQuotaExceededException";
275
+ readonly $fault: "client";
276
+ /**
277
+ * @internal
278
+ */
279
+ constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
280
+ }
281
+ /**
282
+ * <p>The number of requests exceeds the limit. Resubmit your request later.</p>
283
+ * @public
284
+ */
285
+ export declare class ThrottlingException extends __BaseException {
286
+ readonly name: "ThrottlingException";
287
+ readonly $fault: "client";
288
+ /**
289
+ * @internal
290
+ */
291
+ constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
292
+ }
293
+ /**
294
+ * <p>Input validation failed. Check your request parameters and retry the request.</p>
295
+ * @public
296
+ */
297
+ export declare class ValidationException extends __BaseException {
298
+ readonly name: "ValidationException";
299
+ readonly $fault: "client";
300
+ /**
301
+ * @internal
302
+ */
303
+ constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
304
+ }
305
+ /**
306
+ * @public
307
+ */
308
+ export interface DeleteMarketplaceModelEndpointRequest {
309
+ /**
310
+ * <p>The Amazon Resource Name (ARN) of the endpoint you want to delete.</p>
311
+ * @public
312
+ */
313
+ endpointArn: string | undefined;
314
+ }
315
+ /**
316
+ * @public
317
+ */
318
+ export interface DeleteMarketplaceModelEndpointResponse {
319
+ }
320
+ /**
321
+ * @public
322
+ */
323
+ export interface DeregisterMarketplaceModelEndpointRequest {
324
+ /**
325
+ * <p>The Amazon Resource Name (ARN) of the endpoint you want to deregister.</p>
326
+ * @public
327
+ */
328
+ endpointArn: string | undefined;
329
+ }
330
+ /**
331
+ * @public
332
+ */
333
+ export interface DeregisterMarketplaceModelEndpointResponse {
334
+ }
335
+ /**
336
+ * <p>Returned if the service cannot complete the request.</p>
337
+ * @public
338
+ */
339
+ export declare class ServiceUnavailableException extends __BaseException {
340
+ readonly name: "ServiceUnavailableException";
341
+ readonly $fault: "server";
342
+ /**
343
+ * @internal
344
+ */
345
+ constructor(opts: __ExceptionOptionType<ServiceUnavailableException, __BaseException>);
346
+ }
347
+ /**
348
+ * @public
349
+ */
350
+ export interface GetMarketplaceModelEndpointRequest {
351
+ /**
352
+ * <p>The Amazon Resource Name (ARN) of the endpoint you want to get information
353
+ * about.</p>
354
+ * @public
355
+ */
356
+ endpointArn: string | undefined;
357
+ }
358
+ /**
359
+ * @public
360
+ */
361
+ export interface GetMarketplaceModelEndpointResponse {
362
+ /**
363
+ * <p>Details about the requested endpoint.</p>
364
+ * @public
365
+ */
366
+ marketplaceModelEndpoint?: MarketplaceModelEndpoint | undefined;
367
+ }
368
+ /**
369
+ * @public
370
+ */
371
+ export interface ListMarketplaceModelEndpointsRequest {
372
+ /**
373
+ * <p>The maximum number of results to return in a single call. If more results are
374
+ * available, the operation returns a <code>NextToken</code> value.</p>
375
+ * @public
376
+ */
377
+ maxResults?: number | undefined;
378
+ /**
379
+ * <p>The token for the next set of results. You receive this token from a previous
380
+ * <code>ListMarketplaceModelEndpoints</code> call.</p>
381
+ * @public
382
+ */
383
+ nextToken?: string | undefined;
384
+ /**
385
+ * <p>If specified, only endpoints for the given model source identifier are
386
+ * returned.</p>
387
+ * @public
388
+ */
389
+ modelSourceEquals?: string | undefined;
390
+ }
391
+ /**
392
+ * <p>Provides a summary of an endpoint for a model from Amazon Bedrock Marketplace.</p>
393
+ * @public
394
+ */
395
+ export interface MarketplaceModelEndpointSummary {
396
+ /**
397
+ * <p>The Amazon Resource Name (ARN) of the endpoint.</p>
398
+ * @public
399
+ */
400
+ endpointArn: string | undefined;
401
+ /**
402
+ * <p>The ARN of the model from Amazon Bedrock Marketplace that is deployed on this endpoint.</p>
403
+ * @public
404
+ */
405
+ modelSourceIdentifier: string | undefined;
406
+ /**
407
+ * <p>The overall status of the endpoint in Amazon Bedrock Marketplace.</p>
408
+ * @public
409
+ */
410
+ status?: Status | undefined;
411
+ /**
412
+ * <p>Additional information about the overall status, if available.</p>
413
+ * @public
414
+ */
415
+ statusMessage?: string | undefined;
416
+ /**
417
+ * <p>The timestamp when the endpoint was created.</p>
418
+ * @public
419
+ */
420
+ createdAt: Date | undefined;
421
+ /**
422
+ * <p>The timestamp when the endpoint was last updated.</p>
423
+ * @public
424
+ */
425
+ updatedAt: Date | undefined;
426
+ }
427
+ /**
428
+ * @public
429
+ */
430
+ export interface ListMarketplaceModelEndpointsResponse {
431
+ /**
432
+ * <p>An array of endpoint summaries.</p>
433
+ * @public
434
+ */
435
+ marketplaceModelEndpoints?: MarketplaceModelEndpointSummary[] | undefined;
436
+ /**
437
+ * <p>The token for the next set of results. Use this token to get the next set of
438
+ * results.</p>
439
+ * @public
440
+ */
441
+ nextToken?: string | undefined;
442
+ }
443
+ /**
444
+ * @public
445
+ */
446
+ export interface RegisterMarketplaceModelEndpointRequest {
447
+ /**
448
+ * <p>The ARN of the Amazon SageMaker endpoint you want to register with Amazon Bedrock Marketplace.</p>
449
+ * @public
450
+ */
451
+ endpointIdentifier: string | undefined;
452
+ /**
453
+ * <p>The ARN of the model from Amazon Bedrock Marketplace that is deployed on the endpoint.</p>
454
+ * @public
455
+ */
456
+ modelSourceIdentifier: string | undefined;
457
+ }
458
+ /**
459
+ * @public
460
+ */
461
+ export interface RegisterMarketplaceModelEndpointResponse {
462
+ /**
463
+ * <p>Details about the registered endpoint.</p>
464
+ * @public
465
+ */
466
+ marketplaceModelEndpoint: MarketplaceModelEndpoint | undefined;
467
+ }
468
+ /**
469
+ * @public
470
+ */
471
+ export interface UpdateMarketplaceModelEndpointRequest {
472
+ /**
473
+ * <p>The Amazon Resource Name (ARN) of the endpoint you want to update.</p>
474
+ * @public
475
+ */
476
+ endpointArn: string | undefined;
477
+ /**
478
+ * <p>The new configuration for the endpoint, including the number and type of instances to
479
+ * use.</p>
480
+ * @public
481
+ */
482
+ endpointConfig: EndpointConfig | undefined;
483
+ /**
484
+ * <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the
485
+ * request. This token is listed as not required because Amazon Web Services SDKs
486
+ * automatically generate it for you and set this parameter. If you're not using the
487
+ * Amazon Web Services SDK or the CLI, you must provide this token or the
488
+ * action will fail.</p>
489
+ * @public
490
+ */
491
+ clientRequestToken?: string | undefined;
492
+ }
493
+ /**
494
+ * @public
495
+ */
496
+ export interface UpdateMarketplaceModelEndpointResponse {
497
+ /**
498
+ * <p>Details about the updated endpoint.</p>
499
+ * @public
500
+ */
501
+ marketplaceModelEndpoint: MarketplaceModelEndpoint | undefined;
502
+ }
503
+ /**
504
+ * @public
505
+ */
506
+ export interface BatchDeleteEvaluationJobRequest {
507
+ /**
508
+ * <p>A list of one or more evaluation job Amazon Resource Names (ARNs) you want to delete.</p>
509
+ * @public
510
+ */
511
+ jobIdentifiers: string[] | undefined;
512
+ }
513
+ /**
514
+ * <p>A JSON array that provides the status of the evaluation jobs being deleted.</p>
515
+ * @public
516
+ */
517
+ export interface BatchDeleteEvaluationJobError {
518
+ /**
519
+ * <p>The ARN of the evaluation job being deleted.</p>
520
+ * @public
521
+ */
522
+ jobIdentifier: string | undefined;
523
+ /**
524
+ * <p>A HTTP status code of the evaluation job being deleted.</p>
525
+ * @public
526
+ */
527
+ code: string | undefined;
528
+ /**
529
+ * <p>A status message about the evaluation job deletion.</p>
530
+ * @public
531
+ */
532
+ message?: string | undefined;
533
+ }
534
+ /**
535
+ * @public
536
+ * @enum
537
+ */
538
+ export declare const EvaluationJobStatus: {
539
+ readonly COMPLETED: "Completed";
540
+ readonly DELETING: "Deleting";
541
+ readonly FAILED: "Failed";
542
+ readonly IN_PROGRESS: "InProgress";
543
+ readonly STOPPED: "Stopped";
544
+ readonly STOPPING: "Stopping";
545
+ };
546
+ /**
547
+ * @public
548
+ */
549
+ export type EvaluationJobStatus = (typeof EvaluationJobStatus)[keyof typeof EvaluationJobStatus];
550
+ /**
551
+ * <p>An evaluation job for deletion, and it’s current status.</p>
132
552
  * @public
133
553
  */
134
- export declare class ThrottlingException extends __BaseException {
135
- readonly name: "ThrottlingException";
136
- readonly $fault: "client";
554
+ export interface BatchDeleteEvaluationJobItem {
137
555
  /**
138
- * @internal
556
+ * <p>The Amazon Resource Name (ARN) of the evaluation job for deletion.</p>
557
+ * @public
139
558
  */
140
- constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
559
+ jobIdentifier: string | undefined;
560
+ /**
561
+ * <p>The status of the evaluation job for deletion.</p>
562
+ * @public
563
+ */
564
+ jobStatus: EvaluationJobStatus | undefined;
141
565
  }
142
566
  /**
143
- * <p>Input validation failed. Check your request parameters and retry the request.</p>
144
567
  * @public
145
568
  */
146
- export declare class ValidationException extends __BaseException {
147
- readonly name: "ValidationException";
148
- readonly $fault: "client";
569
+ export interface BatchDeleteEvaluationJobResponse {
149
570
  /**
150
- * @internal
571
+ * <p>A JSON object containing the HTTP status codes and the ARNs of evaluation jobs that failed to be deleted.</p>
572
+ * @public
151
573
  */
152
- constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
574
+ errors: BatchDeleteEvaluationJobError[] | undefined;
575
+ /**
576
+ * <p>The list of evaluation jobs for deletion.</p>
577
+ * @public
578
+ */
579
+ evaluationJobs: BatchDeleteEvaluationJobItem[] | undefined;
153
580
  }
154
581
  /**
155
582
  * @public
@@ -769,22 +1196,6 @@ export declare const RetrieveAndGenerateType: {
769
1196
  * @public
770
1197
  */
771
1198
  export type RetrieveAndGenerateType = (typeof RetrieveAndGenerateType)[keyof typeof RetrieveAndGenerateType];
772
- /**
773
- * <p>Definition of the key/value pair for a tag.</p>
774
- * @public
775
- */
776
- export interface Tag {
777
- /**
778
- * <p>Key for the tag.</p>
779
- * @public
780
- */
781
- key: string | undefined;
782
- /**
783
- * <p>Value for the tag.</p>
784
- * @public
785
- */
786
- value: string | undefined;
787
- }
788
1199
  /**
789
1200
  * <p>The Amazon S3 location where the results of your evaluation job are saved.</p>
790
1201
  * @public
@@ -806,18 +1217,6 @@ export interface CreateEvaluationJobResponse {
806
1217
  */
807
1218
  jobArn: string | undefined;
808
1219
  }
809
- /**
810
- * <p>The number of requests exceeds the service quota. Resubmit your request later.</p>
811
- * @public
812
- */
813
- export declare class ServiceQuotaExceededException extends __BaseException {
814
- readonly name: "ServiceQuotaExceededException";
815
- readonly $fault: "client";
816
- /**
817
- * @internal
818
- */
819
- constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
820
- }
821
1220
  /**
822
1221
  * @public
823
1222
  */
@@ -999,6 +1398,18 @@ export interface StopEvaluationJobRequest {
999
1398
  */
1000
1399
  export interface StopEvaluationJobResponse {
1001
1400
  }
1401
+ /**
1402
+ * @public
1403
+ * @enum
1404
+ */
1405
+ export declare const GuardrailModality: {
1406
+ readonly IMAGE: "IMAGE";
1407
+ readonly TEXT: "TEXT";
1408
+ };
1409
+ /**
1410
+ * @public
1411
+ */
1412
+ export type GuardrailModality = (typeof GuardrailModality)[keyof typeof GuardrailModality];
1002
1413
  /**
1003
1414
  * @public
1004
1415
  * @enum
@@ -1080,6 +1491,16 @@ export interface GuardrailContentFilterConfig {
1080
1491
  * @public
1081
1492
  */
1082
1493
  outputStrength: GuardrailFilterStrength | undefined;
1494
+ /**
1495
+ * <p>The input modalities selected for the guardrail content filter configuration.</p>
1496
+ * @public
1497
+ */
1498
+ inputModalities?: GuardrailModality[] | undefined;
1499
+ /**
1500
+ * <p>The output modalities selected for the guardrail content filter configuration.</p>
1501
+ * @public
1502
+ */
1503
+ outputModalities?: GuardrailModality[] | undefined;
1083
1504
  }
1084
1505
  /**
1085
1506
  * <p>Contains details about how to handle harmful content.</p>
@@ -1212,7 +1633,7 @@ export interface GuardrailPiiEntityConfig {
1212
1633
  * <b>AGE</b>
1213
1634
  * </p>
1214
1635
  * <p>An individual's age, including the quantity and unit of time. For
1215
- * example, in the phrase "I am 40 years old," Guarrails recognizes "40 years"
1636
+ * example, in the phrase "I am 40 years old," Guardrails recognizes "40 years"
1216
1637
  * as an age.
1217
1638
  * </p>
1218
1639
  * </li>
@@ -1294,7 +1715,7 @@ export interface GuardrailPiiEntityConfig {
1294
1715
  * <ul>
1295
1716
  * <li>
1296
1717
  * <p>
1297
- * <b>REDIT_DEBIT_CARD_CVV</b>
1718
+ * <b>CREDIT_DEBIT_CARD_CVV</b>
1298
1719
  * </p>
1299
1720
  * <p>A three-digit card verification code (CVV) that is present on VISA,
1300
1721
  * MasterCard, and Discover credit and debit cards. For American Express
@@ -1908,6 +2329,16 @@ export interface GuardrailContentFilter {
1908
2329
  * @public
1909
2330
  */
1910
2331
  outputStrength: GuardrailFilterStrength | undefined;
2332
+ /**
2333
+ * <p>The input modalities selected for the guardrail content filter.</p>
2334
+ * @public
2335
+ */
2336
+ inputModalities?: GuardrailModality[] | undefined;
2337
+ /**
2338
+ * <p>The output modalities selected for the guardrail content filter.</p>
2339
+ * @public
2340
+ */
2341
+ outputModalities?: GuardrailModality[] | undefined;
1911
2342
  }
1912
2343
  /**
1913
2344
  * <p>Contains details about how to handle harmful content.</p>
@@ -1961,7 +2392,7 @@ export interface GuardrailContextualGroundingPolicy {
1961
2392
  */
1962
2393
  export interface GuardrailPiiEntity {
1963
2394
  /**
1964
- * <p>The type of PII entity. For exampvle, Social Security Number.</p>
2395
+ * <p>The type of PII entity. For example, Social Security Number.</p>
1965
2396
  * @public
1966
2397
  */
1967
2398
  type: GuardrailPiiEntityType | undefined;
@@ -3110,22 +3541,6 @@ export declare namespace ModelDataSource {
3110
3541
  }
3111
3542
  const visit: <T>(value: ModelDataSource, visitor: Visitor<T>) => T;
3112
3543
  }
3113
- /**
3114
- * <p>The configuration of a virtual private cloud (VPC). For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/usingVPC.html">Protect your data using Amazon Virtual Private Cloud and Amazon Web Services PrivateLink</a>.</p>
3115
- * @public
3116
- */
3117
- export interface VpcConfig {
3118
- /**
3119
- * <p>An array of IDs for each subnet in the VPC to use.</p>
3120
- * @public
3121
- */
3122
- subnetIds: string[] | undefined;
3123
- /**
3124
- * <p>An array of IDs for each security group in the VPC to use.</p>
3125
- * @public
3126
- */
3127
- securityGroupIds: string[] | undefined;
3128
- }
3129
3544
  /**
3130
3545
  * @public
3131
3546
  */
@@ -4865,6 +5280,202 @@ export interface ListFoundationModelsResponse {
4865
5280
  */
4866
5281
  modelSummaries?: FoundationModelSummary[] | undefined;
4867
5282
  }
5283
+ /**
5284
+ * @public
5285
+ */
5286
+ export interface GetPromptRouterRequest {
5287
+ /**
5288
+ * <p>The prompt router's ARN</p>
5289
+ * @public
5290
+ */
5291
+ promptRouterArn: string | undefined;
5292
+ }
5293
+ /**
5294
+ * <p>The target model for a prompt router.</p>
5295
+ * @public
5296
+ */
5297
+ export interface PromptRouterTargetModel {
5298
+ /**
5299
+ * <p>The target model's ARN.</p>
5300
+ * @public
5301
+ */
5302
+ modelArn?: string | undefined;
5303
+ }
5304
+ /**
5305
+ * <p>Routing criteria for a prompt router.</p>
5306
+ * @public
5307
+ */
5308
+ export interface RoutingCriteria {
5309
+ /**
5310
+ * <p>The criteria's response quality difference.</p>
5311
+ * @public
5312
+ */
5313
+ responseQualityDifference: number | undefined;
5314
+ }
5315
+ /**
5316
+ * @public
5317
+ * @enum
5318
+ */
5319
+ export declare const PromptRouterStatus: {
5320
+ readonly AVAILABLE: "AVAILABLE";
5321
+ };
5322
+ /**
5323
+ * @public
5324
+ */
5325
+ export type PromptRouterStatus = (typeof PromptRouterStatus)[keyof typeof PromptRouterStatus];
5326
+ /**
5327
+ * @public
5328
+ * @enum
5329
+ */
5330
+ export declare const PromptRouterType: {
5331
+ readonly CUSTOM: "custom";
5332
+ readonly DEFAULT: "default";
5333
+ };
5334
+ /**
5335
+ * @public
5336
+ */
5337
+ export type PromptRouterType = (typeof PromptRouterType)[keyof typeof PromptRouterType];
5338
+ /**
5339
+ * @public
5340
+ */
5341
+ export interface GetPromptRouterResponse {
5342
+ /**
5343
+ * <p>The router's name.</p>
5344
+ * @public
5345
+ */
5346
+ promptRouterName: string | undefined;
5347
+ /**
5348
+ * <p>The router's routing criteria.</p>
5349
+ * @public
5350
+ */
5351
+ routingCriteria: RoutingCriteria | undefined;
5352
+ /**
5353
+ * <p>The router's description.</p>
5354
+ * @public
5355
+ */
5356
+ description?: string | undefined;
5357
+ /**
5358
+ * <p>When the router was created.</p>
5359
+ * @public
5360
+ */
5361
+ createdAt?: Date | undefined;
5362
+ /**
5363
+ * <p>When the router was updated.</p>
5364
+ * @public
5365
+ */
5366
+ updatedAt?: Date | undefined;
5367
+ /**
5368
+ * <p>The prompt router's ARN</p>
5369
+ * @public
5370
+ */
5371
+ promptRouterArn: string | undefined;
5372
+ /**
5373
+ * <p>The router's models.</p>
5374
+ * @public
5375
+ */
5376
+ models: PromptRouterTargetModel[] | undefined;
5377
+ /**
5378
+ * <p>The router's fallback model.</p>
5379
+ * @public
5380
+ */
5381
+ fallbackModel: PromptRouterTargetModel | undefined;
5382
+ /**
5383
+ * <p>The router's status.</p>
5384
+ * @public
5385
+ */
5386
+ status: PromptRouterStatus | undefined;
5387
+ /**
5388
+ * <p>The router's type.</p>
5389
+ * @public
5390
+ */
5391
+ type: PromptRouterType | undefined;
5392
+ }
5393
+ /**
5394
+ * @public
5395
+ */
5396
+ export interface ListPromptRoutersRequest {
5397
+ /**
5398
+ * <p>The maximum number of prompt routers to return in one page of results.</p>
5399
+ * @public
5400
+ */
5401
+ maxResults?: number | undefined;
5402
+ /**
5403
+ * <p>Specify the pagination token from a previous request to retrieve the next page of results.</p>
5404
+ * @public
5405
+ */
5406
+ nextToken?: string | undefined;
5407
+ }
5408
+ /**
5409
+ * <p>Details about a prompt router.</p>
5410
+ * @public
5411
+ */
5412
+ export interface PromptRouterSummary {
5413
+ /**
5414
+ * <p>The router's name.</p>
5415
+ * @public
5416
+ */
5417
+ promptRouterName: string | undefined;
5418
+ /**
5419
+ * <p>The router's routing criteria.</p>
5420
+ * @public
5421
+ */
5422
+ routingCriteria: RoutingCriteria | undefined;
5423
+ /**
5424
+ * <p>The router's description.</p>
5425
+ * @public
5426
+ */
5427
+ description?: string | undefined;
5428
+ /**
5429
+ * <p>When the router was created.</p>
5430
+ * @public
5431
+ */
5432
+ createdAt?: Date | undefined;
5433
+ /**
5434
+ * <p>When the router was updated.</p>
5435
+ * @public
5436
+ */
5437
+ updatedAt?: Date | undefined;
5438
+ /**
5439
+ * <p>The router's ARN.</p>
5440
+ * @public
5441
+ */
5442
+ promptRouterArn: string | undefined;
5443
+ /**
5444
+ * <p>The router's models.</p>
5445
+ * @public
5446
+ */
5447
+ models: PromptRouterTargetModel[] | undefined;
5448
+ /**
5449
+ * <p>The router's fallback model.</p>
5450
+ * @public
5451
+ */
5452
+ fallbackModel: PromptRouterTargetModel | undefined;
5453
+ /**
5454
+ * <p>The router's status.</p>
5455
+ * @public
5456
+ */
5457
+ status: PromptRouterStatus | undefined;
5458
+ /**
5459
+ * <p>The summary's type.</p>
5460
+ * @public
5461
+ */
5462
+ type: PromptRouterType | undefined;
5463
+ }
5464
+ /**
5465
+ * @public
5466
+ */
5467
+ export interface ListPromptRoutersResponse {
5468
+ /**
5469
+ * <p>A list of prompt router summaries.</p>
5470
+ * @public
5471
+ */
5472
+ promptRouterSummaries?: PromptRouterSummary[] | undefined;
5473
+ /**
5474
+ * <p>Specify the pagination token from a previous request to retrieve the next page of results.</p>
5475
+ * @public
5476
+ */
5477
+ nextToken?: string | undefined;
5478
+ }
4868
5479
  /**
4869
5480
  * @public
4870
5481
  * @enum
@@ -6473,6 +7084,14 @@ export declare const GetEvaluationJobRequestFilterSensitiveLog: (obj: GetEvaluat
6473
7084
  * @internal
6474
7085
  */
6475
7086
  export declare const StopEvaluationJobRequestFilterSensitiveLog: (obj: StopEvaluationJobRequest) => any;
7087
+ /**
7088
+ * @internal
7089
+ */
7090
+ export declare const GuardrailContentFilterConfigFilterSensitiveLog: (obj: GuardrailContentFilterConfig) => any;
7091
+ /**
7092
+ * @internal
7093
+ */
7094
+ export declare const GuardrailContentPolicyConfigFilterSensitiveLog: (obj: GuardrailContentPolicyConfig) => any;
6476
7095
  /**
6477
7096
  * @internal
6478
7097
  */
@@ -6489,6 +7108,14 @@ export declare const CreateGuardrailRequestFilterSensitiveLog: (obj: CreateGuard
6489
7108
  * @internal
6490
7109
  */
6491
7110
  export declare const CreateGuardrailVersionRequestFilterSensitiveLog: (obj: CreateGuardrailVersionRequest) => any;
7111
+ /**
7112
+ * @internal
7113
+ */
7114
+ export declare const GuardrailContentFilterFilterSensitiveLog: (obj: GuardrailContentFilter) => any;
7115
+ /**
7116
+ * @internal
7117
+ */
7118
+ export declare const GuardrailContentPolicyFilterSensitiveLog: (obj: GuardrailContentPolicy) => any;
6492
7119
  /**
6493
7120
  * @internal
6494
7121
  */
@@ -6561,6 +7188,18 @@ export declare const TrainingDataConfigFilterSensitiveLog: (obj: TrainingDataCon
6561
7188
  * @internal
6562
7189
  */
6563
7190
  export declare const GetCustomModelResponseFilterSensitiveLog: (obj: GetCustomModelResponse) => any;
7191
+ /**
7192
+ * @internal
7193
+ */
7194
+ export declare const GetPromptRouterResponseFilterSensitiveLog: (obj: GetPromptRouterResponse) => any;
7195
+ /**
7196
+ * @internal
7197
+ */
7198
+ export declare const PromptRouterSummaryFilterSensitiveLog: (obj: PromptRouterSummary) => any;
7199
+ /**
7200
+ * @internal
7201
+ */
7202
+ export declare const ListPromptRoutersResponseFilterSensitiveLog: (obj: ListPromptRoutersResponse) => any;
6564
7203
  /**
6565
7204
  * @internal
6566
7205
  */