@aws-sdk/client-bedrock 3.556.0 → 3.563.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 +2 -2
@@ -7,8 +7,152 @@ export declare class AccessDeniedException extends __BaseException {
7
7
  opts: __ExceptionOptionType<AccessDeniedException, __BaseException>
8
8
  );
9
9
  }
10
- export interface DeleteModelInvocationLoggingConfigurationRequest {}
11
- export interface DeleteModelInvocationLoggingConfigurationResponse {}
10
+ export declare class ConflictException extends __BaseException {
11
+ readonly name: "ConflictException";
12
+ readonly $fault: "client";
13
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
14
+ }
15
+ export type EvaluationDatasetLocation =
16
+ | EvaluationDatasetLocation.S3UriMember
17
+ | EvaluationDatasetLocation.$UnknownMember;
18
+ export declare namespace EvaluationDatasetLocation {
19
+ interface S3UriMember {
20
+ s3Uri: string;
21
+ $unknown?: never;
22
+ }
23
+ interface $UnknownMember {
24
+ s3Uri?: never;
25
+ $unknown: [string, any];
26
+ }
27
+ interface Visitor<T> {
28
+ s3Uri: (value: string) => T;
29
+ _: (name: string, value: any) => T;
30
+ }
31
+ const visit: <T>(value: EvaluationDatasetLocation, visitor: Visitor<T>) => T;
32
+ }
33
+ export interface EvaluationDataset {
34
+ name: string | undefined;
35
+ datasetLocation?: EvaluationDatasetLocation;
36
+ }
37
+ export declare const EvaluationTaskType: {
38
+ readonly CLASSIFICATION: "Classification";
39
+ readonly CUSTOM: "Custom";
40
+ readonly GENERATION: "Generation";
41
+ readonly QUESTION_AND_ANSWER: "QuestionAndAnswer";
42
+ readonly SUMMARIZATION: "Summarization";
43
+ };
44
+ export type EvaluationTaskType =
45
+ (typeof EvaluationTaskType)[keyof typeof EvaluationTaskType];
46
+ export interface EvaluationDatasetMetricConfig {
47
+ taskType: EvaluationTaskType | undefined;
48
+ dataset: EvaluationDataset | undefined;
49
+ metricNames: string[] | undefined;
50
+ }
51
+ export interface AutomatedEvaluationConfig {
52
+ datasetMetricConfigs: EvaluationDatasetMetricConfig[] | undefined;
53
+ }
54
+ export interface HumanEvaluationCustomMetric {
55
+ name: string | undefined;
56
+ description?: string;
57
+ ratingMethod: string | undefined;
58
+ }
59
+ export interface HumanWorkflowConfig {
60
+ flowDefinitionArn: string | undefined;
61
+ instructions?: string;
62
+ }
63
+ export interface HumanEvaluationConfig {
64
+ humanWorkflowConfig?: HumanWorkflowConfig;
65
+ customMetrics?: HumanEvaluationCustomMetric[];
66
+ datasetMetricConfigs: EvaluationDatasetMetricConfig[] | undefined;
67
+ }
68
+ export type EvaluationConfig =
69
+ | EvaluationConfig.AutomatedMember
70
+ | EvaluationConfig.HumanMember
71
+ | EvaluationConfig.$UnknownMember;
72
+ export declare namespace EvaluationConfig {
73
+ interface AutomatedMember {
74
+ automated: AutomatedEvaluationConfig;
75
+ human?: never;
76
+ $unknown?: never;
77
+ }
78
+ interface HumanMember {
79
+ automated?: never;
80
+ human: HumanEvaluationConfig;
81
+ $unknown?: never;
82
+ }
83
+ interface $UnknownMember {
84
+ automated?: never;
85
+ human?: never;
86
+ $unknown: [string, any];
87
+ }
88
+ interface Visitor<T> {
89
+ automated: (value: AutomatedEvaluationConfig) => T;
90
+ human: (value: HumanEvaluationConfig) => T;
91
+ _: (name: string, value: any) => T;
92
+ }
93
+ const visit: <T>(value: EvaluationConfig, visitor: Visitor<T>) => T;
94
+ }
95
+ export interface EvaluationBedrockModel {
96
+ modelIdentifier: string | undefined;
97
+ inferenceParams: string | undefined;
98
+ }
99
+ export type EvaluationModelConfig =
100
+ | EvaluationModelConfig.BedrockModelMember
101
+ | EvaluationModelConfig.$UnknownMember;
102
+ export declare namespace EvaluationModelConfig {
103
+ interface BedrockModelMember {
104
+ bedrockModel: EvaluationBedrockModel;
105
+ $unknown?: never;
106
+ }
107
+ interface $UnknownMember {
108
+ bedrockModel?: never;
109
+ $unknown: [string, any];
110
+ }
111
+ interface Visitor<T> {
112
+ bedrockModel: (value: EvaluationBedrockModel) => T;
113
+ _: (name: string, value: any) => T;
114
+ }
115
+ const visit: <T>(value: EvaluationModelConfig, visitor: Visitor<T>) => T;
116
+ }
117
+ export type EvaluationInferenceConfig =
118
+ | EvaluationInferenceConfig.ModelsMember
119
+ | EvaluationInferenceConfig.$UnknownMember;
120
+ export declare namespace EvaluationInferenceConfig {
121
+ interface ModelsMember {
122
+ models: EvaluationModelConfig[];
123
+ $unknown?: never;
124
+ }
125
+ interface $UnknownMember {
126
+ models?: never;
127
+ $unknown: [string, any];
128
+ }
129
+ interface Visitor<T> {
130
+ models: (value: EvaluationModelConfig[]) => T;
131
+ _: (name: string, value: any) => T;
132
+ }
133
+ const visit: <T>(value: EvaluationInferenceConfig, visitor: Visitor<T>) => T;
134
+ }
135
+ export interface Tag {
136
+ key: string | undefined;
137
+ value: string | undefined;
138
+ }
139
+ export interface EvaluationOutputDataConfig {
140
+ s3Uri: string | undefined;
141
+ }
142
+ export interface CreateEvaluationJobRequest {
143
+ jobName: string | undefined;
144
+ jobDescription?: string;
145
+ clientRequestToken?: string;
146
+ roleArn: string | undefined;
147
+ customerEncryptionKeyId?: string;
148
+ jobTags?: Tag[];
149
+ evaluationConfig: EvaluationConfig | undefined;
150
+ inferenceConfig: EvaluationInferenceConfig | undefined;
151
+ outputDataConfig: EvaluationOutputDataConfig | undefined;
152
+ }
153
+ export interface CreateEvaluationJobResponse {
154
+ jobArn: string | undefined;
155
+ }
12
156
  export declare class InternalServerException extends __BaseException {
13
157
  readonly name: "InternalServerException";
14
158
  readonly $fault: "server";
@@ -16,6 +160,20 @@ export declare class InternalServerException extends __BaseException {
16
160
  opts: __ExceptionOptionType<InternalServerException, __BaseException>
17
161
  );
18
162
  }
163
+ export declare class ResourceNotFoundException extends __BaseException {
164
+ readonly name: "ResourceNotFoundException";
165
+ readonly $fault: "client";
166
+ constructor(
167
+ opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
168
+ );
169
+ }
170
+ export declare class ServiceQuotaExceededException extends __BaseException {
171
+ readonly name: "ServiceQuotaExceededException";
172
+ readonly $fault: "client";
173
+ constructor(
174
+ opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>
175
+ );
176
+ }
19
177
  export declare class ThrottlingException extends __BaseException {
20
178
  readonly name: "ThrottlingException";
21
179
  readonly $fault: "client";
@@ -23,6 +181,346 @@ export declare class ThrottlingException extends __BaseException {
23
181
  opts: __ExceptionOptionType<ThrottlingException, __BaseException>
24
182
  );
25
183
  }
184
+ export declare class ValidationException extends __BaseException {
185
+ readonly name: "ValidationException";
186
+ readonly $fault: "client";
187
+ constructor(
188
+ opts: __ExceptionOptionType<ValidationException, __BaseException>
189
+ );
190
+ }
191
+ export interface GetEvaluationJobRequest {
192
+ jobIdentifier: string | undefined;
193
+ }
194
+ export declare const EvaluationJobType: {
195
+ readonly AUTOMATED: "Automated";
196
+ readonly HUMAN: "Human";
197
+ };
198
+ export type EvaluationJobType =
199
+ (typeof EvaluationJobType)[keyof typeof EvaluationJobType];
200
+ export declare const EvaluationJobStatus: {
201
+ readonly COMPLETED: "Completed";
202
+ readonly FAILED: "Failed";
203
+ readonly IN_PROGRESS: "InProgress";
204
+ readonly STOPPED: "Stopped";
205
+ readonly STOPPING: "Stopping";
206
+ };
207
+ export type EvaluationJobStatus =
208
+ (typeof EvaluationJobStatus)[keyof typeof EvaluationJobStatus];
209
+ export interface GetEvaluationJobResponse {
210
+ jobName: string | undefined;
211
+ status: EvaluationJobStatus | undefined;
212
+ jobArn: string | undefined;
213
+ jobDescription?: string;
214
+ roleArn: string | undefined;
215
+ customerEncryptionKeyId?: string;
216
+ jobType: EvaluationJobType | undefined;
217
+ evaluationConfig: EvaluationConfig | undefined;
218
+ inferenceConfig: EvaluationInferenceConfig | undefined;
219
+ outputDataConfig: EvaluationOutputDataConfig | undefined;
220
+ creationTime: Date | undefined;
221
+ lastModifiedTime?: Date;
222
+ failureMessages?: string[];
223
+ }
224
+ export declare const SortJobsBy: {
225
+ readonly CREATION_TIME: "CreationTime";
226
+ };
227
+ export type SortJobsBy = (typeof SortJobsBy)[keyof typeof SortJobsBy];
228
+ export declare const SortOrder: {
229
+ readonly ASCENDING: "Ascending";
230
+ readonly DESCENDING: "Descending";
231
+ };
232
+ export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder];
233
+ export interface ListEvaluationJobsRequest {
234
+ creationTimeAfter?: Date;
235
+ creationTimeBefore?: Date;
236
+ statusEquals?: EvaluationJobStatus;
237
+ nameContains?: string;
238
+ maxResults?: number;
239
+ nextToken?: string;
240
+ sortBy?: SortJobsBy;
241
+ sortOrder?: SortOrder;
242
+ }
243
+ export interface EvaluationSummary {
244
+ jobArn: string | undefined;
245
+ jobName: string | undefined;
246
+ status: EvaluationJobStatus | undefined;
247
+ creationTime: Date | undefined;
248
+ jobType: EvaluationJobType | undefined;
249
+ evaluationTaskTypes: EvaluationTaskType[] | undefined;
250
+ modelIdentifiers: string[] | undefined;
251
+ }
252
+ export interface ListEvaluationJobsResponse {
253
+ nextToken?: string;
254
+ jobSummaries?: EvaluationSummary[];
255
+ }
256
+ export interface StopEvaluationJobRequest {
257
+ jobIdentifier: string | undefined;
258
+ }
259
+ export interface StopEvaluationJobResponse {}
260
+ export declare const GuardrailFilterStrength: {
261
+ readonly HIGH: "HIGH";
262
+ readonly LOW: "LOW";
263
+ readonly MEDIUM: "MEDIUM";
264
+ readonly NONE: "NONE";
265
+ };
266
+ export type GuardrailFilterStrength =
267
+ (typeof GuardrailFilterStrength)[keyof typeof GuardrailFilterStrength];
268
+ export declare const GuardrailContentFilterType: {
269
+ readonly HATE: "HATE";
270
+ readonly INSULTS: "INSULTS";
271
+ readonly MISCONDUCT: "MISCONDUCT";
272
+ readonly PROMPT_ATTACK: "PROMPT_ATTACK";
273
+ readonly SEXUAL: "SEXUAL";
274
+ readonly VIOLENCE: "VIOLENCE";
275
+ };
276
+ export type GuardrailContentFilterType =
277
+ (typeof GuardrailContentFilterType)[keyof typeof GuardrailContentFilterType];
278
+ export interface GuardrailContentFilterConfig {
279
+ type: GuardrailContentFilterType | undefined;
280
+ inputStrength: GuardrailFilterStrength | undefined;
281
+ outputStrength: GuardrailFilterStrength | undefined;
282
+ }
283
+ export interface GuardrailContentPolicyConfig {
284
+ filtersConfig: GuardrailContentFilterConfig[] | undefined;
285
+ }
286
+ export declare const GuardrailSensitiveInformationAction: {
287
+ readonly ANONYMIZE: "ANONYMIZE";
288
+ readonly BLOCK: "BLOCK";
289
+ };
290
+ export type GuardrailSensitiveInformationAction =
291
+ (typeof GuardrailSensitiveInformationAction)[keyof typeof GuardrailSensitiveInformationAction];
292
+ export declare const GuardrailPiiEntityType: {
293
+ readonly ADDRESS: "ADDRESS";
294
+ readonly AGE: "AGE";
295
+ readonly AWS_ACCESS_KEY: "AWS_ACCESS_KEY";
296
+ readonly AWS_SECRET_KEY: "AWS_SECRET_KEY";
297
+ readonly CA_HEALTH_NUMBER: "CA_HEALTH_NUMBER";
298
+ readonly CA_SOCIAL_INSURANCE_NUMBER: "CA_SOCIAL_INSURANCE_NUMBER";
299
+ readonly CREDIT_DEBIT_CARD_CVV: "CREDIT_DEBIT_CARD_CVV";
300
+ readonly CREDIT_DEBIT_CARD_EXPIRY: "CREDIT_DEBIT_CARD_EXPIRY";
301
+ readonly CREDIT_DEBIT_CARD_NUMBER: "CREDIT_DEBIT_CARD_NUMBER";
302
+ readonly DRIVER_ID: "DRIVER_ID";
303
+ readonly EMAIL: "EMAIL";
304
+ readonly INTERNATIONAL_BANK_ACCOUNT_NUMBER: "INTERNATIONAL_BANK_ACCOUNT_NUMBER";
305
+ readonly IP_ADDRESS: "IP_ADDRESS";
306
+ readonly LICENSE_PLATE: "LICENSE_PLATE";
307
+ readonly MAC_ADDRESS: "MAC_ADDRESS";
308
+ readonly NAME: "NAME";
309
+ readonly PASSWORD: "PASSWORD";
310
+ readonly PHONE: "PHONE";
311
+ readonly PIN: "PIN";
312
+ readonly SWIFT_CODE: "SWIFT_CODE";
313
+ readonly UK_NATIONAL_HEALTH_SERVICE_NUMBER: "UK_NATIONAL_HEALTH_SERVICE_NUMBER";
314
+ readonly UK_NATIONAL_INSURANCE_NUMBER: "UK_NATIONAL_INSURANCE_NUMBER";
315
+ readonly UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER: "UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER";
316
+ readonly URL: "URL";
317
+ readonly USERNAME: "USERNAME";
318
+ readonly US_BANK_ACCOUNT_NUMBER: "US_BANK_ACCOUNT_NUMBER";
319
+ readonly US_BANK_ROUTING_NUMBER: "US_BANK_ROUTING_NUMBER";
320
+ readonly US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER: "US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER";
321
+ readonly US_PASSPORT_NUMBER: "US_PASSPORT_NUMBER";
322
+ readonly US_SOCIAL_SECURITY_NUMBER: "US_SOCIAL_SECURITY_NUMBER";
323
+ readonly VEHICLE_IDENTIFICATION_NUMBER: "VEHICLE_IDENTIFICATION_NUMBER";
324
+ };
325
+ export type GuardrailPiiEntityType =
326
+ (typeof GuardrailPiiEntityType)[keyof typeof GuardrailPiiEntityType];
327
+ export interface GuardrailPiiEntityConfig {
328
+ type: GuardrailPiiEntityType | undefined;
329
+ action: GuardrailSensitiveInformationAction | undefined;
330
+ }
331
+ export interface GuardrailRegexConfig {
332
+ name: string | undefined;
333
+ description?: string;
334
+ pattern: string | undefined;
335
+ action: GuardrailSensitiveInformationAction | undefined;
336
+ }
337
+ export interface GuardrailSensitiveInformationPolicyConfig {
338
+ piiEntitiesConfig?: GuardrailPiiEntityConfig[];
339
+ regexesConfig?: GuardrailRegexConfig[];
340
+ }
341
+ export declare const GuardrailTopicType: {
342
+ readonly DENY: "DENY";
343
+ };
344
+ export type GuardrailTopicType =
345
+ (typeof GuardrailTopicType)[keyof typeof GuardrailTopicType];
346
+ export interface GuardrailTopicConfig {
347
+ name: string | undefined;
348
+ definition: string | undefined;
349
+ examples?: string[];
350
+ type: GuardrailTopicType | undefined;
351
+ }
352
+ export interface GuardrailTopicPolicyConfig {
353
+ topicsConfig: GuardrailTopicConfig[] | undefined;
354
+ }
355
+ export declare const GuardrailManagedWordsType: {
356
+ readonly PROFANITY: "PROFANITY";
357
+ };
358
+ export type GuardrailManagedWordsType =
359
+ (typeof GuardrailManagedWordsType)[keyof typeof GuardrailManagedWordsType];
360
+ export interface GuardrailManagedWordsConfig {
361
+ type: GuardrailManagedWordsType | undefined;
362
+ }
363
+ export interface GuardrailWordConfig {
364
+ text: string | undefined;
365
+ }
366
+ export interface GuardrailWordPolicyConfig {
367
+ wordsConfig?: GuardrailWordConfig[];
368
+ managedWordListsConfig?: GuardrailManagedWordsConfig[];
369
+ }
370
+ export interface CreateGuardrailRequest {
371
+ name: string | undefined;
372
+ description?: string;
373
+ topicPolicyConfig?: GuardrailTopicPolicyConfig;
374
+ contentPolicyConfig?: GuardrailContentPolicyConfig;
375
+ wordPolicyConfig?: GuardrailWordPolicyConfig;
376
+ sensitiveInformationPolicyConfig?: GuardrailSensitiveInformationPolicyConfig;
377
+ blockedInputMessaging: string | undefined;
378
+ blockedOutputsMessaging: string | undefined;
379
+ kmsKeyId?: string;
380
+ tags?: Tag[];
381
+ clientRequestToken?: string;
382
+ }
383
+ export interface CreateGuardrailResponse {
384
+ guardrailId: string | undefined;
385
+ guardrailArn: string | undefined;
386
+ version: string | undefined;
387
+ createdAt: Date | undefined;
388
+ }
389
+ export declare class TooManyTagsException extends __BaseException {
390
+ readonly name: "TooManyTagsException";
391
+ readonly $fault: "client";
392
+ resourceName?: string;
393
+ constructor(
394
+ opts: __ExceptionOptionType<TooManyTagsException, __BaseException>
395
+ );
396
+ }
397
+ export interface CreateGuardrailVersionRequest {
398
+ guardrailIdentifier: string | undefined;
399
+ description?: string;
400
+ clientRequestToken?: string;
401
+ }
402
+ export interface CreateGuardrailVersionResponse {
403
+ guardrailId: string | undefined;
404
+ version: string | undefined;
405
+ }
406
+ export interface DeleteGuardrailRequest {
407
+ guardrailIdentifier: string | undefined;
408
+ guardrailVersion?: string;
409
+ }
410
+ export interface DeleteGuardrailResponse {}
411
+ export interface GetGuardrailRequest {
412
+ guardrailIdentifier: string | undefined;
413
+ guardrailVersion?: string;
414
+ }
415
+ export interface GuardrailContentFilter {
416
+ type: GuardrailContentFilterType | undefined;
417
+ inputStrength: GuardrailFilterStrength | undefined;
418
+ outputStrength: GuardrailFilterStrength | undefined;
419
+ }
420
+ export interface GuardrailContentPolicy {
421
+ filters?: GuardrailContentFilter[];
422
+ }
423
+ export interface GuardrailPiiEntity {
424
+ type: GuardrailPiiEntityType | undefined;
425
+ action: GuardrailSensitiveInformationAction | undefined;
426
+ }
427
+ export interface GuardrailRegex {
428
+ name: string | undefined;
429
+ description?: string;
430
+ pattern: string | undefined;
431
+ action: GuardrailSensitiveInformationAction | undefined;
432
+ }
433
+ export interface GuardrailSensitiveInformationPolicy {
434
+ piiEntities?: GuardrailPiiEntity[];
435
+ regexes?: GuardrailRegex[];
436
+ }
437
+ export declare const GuardrailStatus: {
438
+ readonly CREATING: "CREATING";
439
+ readonly DELETING: "DELETING";
440
+ readonly FAILED: "FAILED";
441
+ readonly READY: "READY";
442
+ readonly UPDATING: "UPDATING";
443
+ readonly VERSIONING: "VERSIONING";
444
+ };
445
+ export type GuardrailStatus =
446
+ (typeof GuardrailStatus)[keyof typeof GuardrailStatus];
447
+ export interface GuardrailTopic {
448
+ name: string | undefined;
449
+ definition: string | undefined;
450
+ examples?: string[];
451
+ type?: GuardrailTopicType;
452
+ }
453
+ export interface GuardrailTopicPolicy {
454
+ topics: GuardrailTopic[] | undefined;
455
+ }
456
+ export interface GuardrailManagedWords {
457
+ type: GuardrailManagedWordsType | undefined;
458
+ }
459
+ export interface GuardrailWord {
460
+ text: string | undefined;
461
+ }
462
+ export interface GuardrailWordPolicy {
463
+ words?: GuardrailWord[];
464
+ managedWordLists?: GuardrailManagedWords[];
465
+ }
466
+ export interface GetGuardrailResponse {
467
+ name: string | undefined;
468
+ description?: string;
469
+ guardrailId: string | undefined;
470
+ guardrailArn: string | undefined;
471
+ version: string | undefined;
472
+ status: GuardrailStatus | undefined;
473
+ topicPolicy?: GuardrailTopicPolicy;
474
+ contentPolicy?: GuardrailContentPolicy;
475
+ wordPolicy?: GuardrailWordPolicy;
476
+ sensitiveInformationPolicy?: GuardrailSensitiveInformationPolicy;
477
+ createdAt: Date | undefined;
478
+ updatedAt: Date | undefined;
479
+ statusReasons?: string[];
480
+ failureRecommendations?: string[];
481
+ blockedInputMessaging: string | undefined;
482
+ blockedOutputsMessaging: string | undefined;
483
+ kmsKeyArn?: string;
484
+ }
485
+ export interface ListGuardrailsRequest {
486
+ guardrailIdentifier?: string;
487
+ maxResults?: number;
488
+ nextToken?: string;
489
+ }
490
+ export interface GuardrailSummary {
491
+ id: string | undefined;
492
+ arn: string | undefined;
493
+ status: GuardrailStatus | undefined;
494
+ name: string | undefined;
495
+ description?: string;
496
+ version: string | undefined;
497
+ createdAt: Date | undefined;
498
+ updatedAt: Date | undefined;
499
+ }
500
+ export interface ListGuardrailsResponse {
501
+ guardrails: GuardrailSummary[] | undefined;
502
+ nextToken?: string;
503
+ }
504
+ export interface UpdateGuardrailRequest {
505
+ guardrailIdentifier: string | undefined;
506
+ name: string | undefined;
507
+ description?: string;
508
+ topicPolicyConfig?: GuardrailTopicPolicyConfig;
509
+ contentPolicyConfig?: GuardrailContentPolicyConfig;
510
+ wordPolicyConfig?: GuardrailWordPolicyConfig;
511
+ sensitiveInformationPolicyConfig?: GuardrailSensitiveInformationPolicyConfig;
512
+ blockedInputMessaging: string | undefined;
513
+ blockedOutputsMessaging: string | undefined;
514
+ kmsKeyId?: string;
515
+ }
516
+ export interface UpdateGuardrailResponse {
517
+ guardrailId: string | undefined;
518
+ guardrailArn: string | undefined;
519
+ version: string | undefined;
520
+ updatedAt: Date | undefined;
521
+ }
522
+ export interface DeleteModelInvocationLoggingConfigurationRequest {}
523
+ export interface DeleteModelInvocationLoggingConfigurationResponse {}
26
524
  export interface GetModelInvocationLoggingConfigurationRequest {}
27
525
  export interface S3Config {
28
526
  bucketName: string | undefined;
@@ -47,29 +545,10 @@ export interface PutModelInvocationLoggingConfigurationRequest {
47
545
  loggingConfig: LoggingConfig | undefined;
48
546
  }
49
547
  export interface PutModelInvocationLoggingConfigurationResponse {}
50
- export declare class ValidationException extends __BaseException {
51
- readonly name: "ValidationException";
52
- readonly $fault: "client";
53
- constructor(
54
- opts: __ExceptionOptionType<ValidationException, __BaseException>
55
- );
56
- }
57
- export declare class ConflictException extends __BaseException {
58
- readonly name: "ConflictException";
59
- readonly $fault: "client";
60
- constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
61
- }
62
548
  export interface DeleteCustomModelRequest {
63
549
  modelIdentifier: string | undefined;
64
550
  }
65
551
  export interface DeleteCustomModelResponse {}
66
- export declare class ResourceNotFoundException extends __BaseException {
67
- readonly name: "ResourceNotFoundException";
68
- readonly $fault: "client";
69
- constructor(
70
- opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
71
- );
72
- }
73
552
  export interface GetCustomModelRequest {
74
553
  modelIdentifier: string | undefined;
75
554
  }
@@ -161,11 +640,6 @@ export declare const SortModelsBy: {
161
640
  readonly CREATION_TIME: "CreationTime";
162
641
  };
163
642
  export type SortModelsBy = (typeof SortModelsBy)[keyof typeof SortModelsBy];
164
- export declare const SortOrder: {
165
- readonly ASCENDING: "Ascending";
166
- readonly DESCENDING: "Descending";
167
- };
168
- export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder];
169
643
  export interface ListCustomModelsRequest {
170
644
  creationTimeBefore?: Date;
171
645
  creationTimeAfter?: Date;
@@ -216,10 +690,6 @@ export declare const CommitmentDuration: {
216
690
  };
217
691
  export type CommitmentDuration =
218
692
  (typeof CommitmentDuration)[keyof typeof CommitmentDuration];
219
- export interface Tag {
220
- key: string | undefined;
221
- value: string | undefined;
222
- }
223
693
  export interface CreateProvisionedModelThroughputRequest {
224
694
  clientRequestToken?: string;
225
695
  modelUnits: number | undefined;
@@ -231,21 +701,6 @@ export interface CreateProvisionedModelThroughputRequest {
231
701
  export interface CreateProvisionedModelThroughputResponse {
232
702
  provisionedModelArn: string | undefined;
233
703
  }
234
- export declare class ServiceQuotaExceededException extends __BaseException {
235
- readonly name: "ServiceQuotaExceededException";
236
- readonly $fault: "client";
237
- constructor(
238
- opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>
239
- );
240
- }
241
- export declare class TooManyTagsException extends __BaseException {
242
- readonly name: "TooManyTagsException";
243
- readonly $fault: "client";
244
- resourceName?: string;
245
- constructor(
246
- opts: __ExceptionOptionType<TooManyTagsException, __BaseException>
247
- );
248
- }
249
704
  export interface DeleteProvisionedModelThroughputRequest {
250
705
  provisionedModelId: string | undefined;
251
706
  }
@@ -390,10 +845,6 @@ export interface GetModelCustomizationJobResponse {
390
845
  validationMetrics?: ValidatorMetric[];
391
846
  vpcConfig?: VpcConfig;
392
847
  }
393
- export declare const SortJobsBy: {
394
- readonly CREATION_TIME: "CreationTime";
395
- };
396
- export type SortJobsBy = (typeof SortJobsBy)[keyof typeof SortJobsBy];
397
848
  export declare const FineTuningJobStatus: {
398
849
  readonly COMPLETED: "Completed";
399
850
  readonly FAILED: "Failed";
@@ -433,3 +884,75 @@ export interface StopModelCustomizationJobRequest {
433
884
  jobIdentifier: string | undefined;
434
885
  }
435
886
  export interface StopModelCustomizationJobResponse {}
887
+ export declare const EvaluationDatasetFilterSensitiveLog: (
888
+ obj: EvaluationDataset
889
+ ) => any;
890
+ export declare const EvaluationDatasetMetricConfigFilterSensitiveLog: (
891
+ obj: EvaluationDatasetMetricConfig
892
+ ) => any;
893
+ export declare const AutomatedEvaluationConfigFilterSensitiveLog: (
894
+ obj: AutomatedEvaluationConfig
895
+ ) => any;
896
+ export declare const HumanEvaluationCustomMetricFilterSensitiveLog: (
897
+ obj: HumanEvaluationCustomMetric
898
+ ) => any;
899
+ export declare const HumanWorkflowConfigFilterSensitiveLog: (
900
+ obj: HumanWorkflowConfig
901
+ ) => any;
902
+ export declare const HumanEvaluationConfigFilterSensitiveLog: (
903
+ obj: HumanEvaluationConfig
904
+ ) => any;
905
+ export declare const EvaluationConfigFilterSensitiveLog: (
906
+ obj: EvaluationConfig
907
+ ) => any;
908
+ export declare const EvaluationBedrockModelFilterSensitiveLog: (
909
+ obj: EvaluationBedrockModel
910
+ ) => any;
911
+ export declare const EvaluationModelConfigFilterSensitiveLog: (
912
+ obj: EvaluationModelConfig
913
+ ) => any;
914
+ export declare const EvaluationInferenceConfigFilterSensitiveLog: (
915
+ obj: EvaluationInferenceConfig
916
+ ) => any;
917
+ export declare const CreateEvaluationJobRequestFilterSensitiveLog: (
918
+ obj: CreateEvaluationJobRequest
919
+ ) => any;
920
+ export declare const GetEvaluationJobRequestFilterSensitiveLog: (
921
+ obj: GetEvaluationJobRequest
922
+ ) => any;
923
+ export declare const GetEvaluationJobResponseFilterSensitiveLog: (
924
+ obj: GetEvaluationJobResponse
925
+ ) => any;
926
+ export declare const StopEvaluationJobRequestFilterSensitiveLog: (
927
+ obj: StopEvaluationJobRequest
928
+ ) => any;
929
+ export declare const GuardrailTopicConfigFilterSensitiveLog: (
930
+ obj: GuardrailTopicConfig
931
+ ) => any;
932
+ export declare const GuardrailTopicPolicyConfigFilterSensitiveLog: (
933
+ obj: GuardrailTopicPolicyConfig
934
+ ) => any;
935
+ export declare const CreateGuardrailRequestFilterSensitiveLog: (
936
+ obj: CreateGuardrailRequest
937
+ ) => any;
938
+ export declare const CreateGuardrailVersionRequestFilterSensitiveLog: (
939
+ obj: CreateGuardrailVersionRequest
940
+ ) => any;
941
+ export declare const GuardrailTopicFilterSensitiveLog: (
942
+ obj: GuardrailTopic
943
+ ) => any;
944
+ export declare const GuardrailTopicPolicyFilterSensitiveLog: (
945
+ obj: GuardrailTopicPolicy
946
+ ) => any;
947
+ export declare const GetGuardrailResponseFilterSensitiveLog: (
948
+ obj: GetGuardrailResponse
949
+ ) => any;
950
+ export declare const GuardrailSummaryFilterSensitiveLog: (
951
+ obj: GuardrailSummary
952
+ ) => any;
953
+ export declare const ListGuardrailsResponseFilterSensitiveLog: (
954
+ obj: ListGuardrailsResponse
955
+ ) => any;
956
+ export declare const UpdateGuardrailRequestFilterSensitiveLog: (
957
+ obj: UpdateGuardrailRequest
958
+ ) => any;
@@ -0,0 +1,11 @@
1
+ import { Paginator } from "@smithy/types";
2
+ import {
3
+ ListEvaluationJobsCommandInput,
4
+ ListEvaluationJobsCommandOutput,
5
+ } from "../commands/ListEvaluationJobsCommand";
6
+ import { BedrockPaginationConfiguration } from "./Interfaces";
7
+ export declare const paginateListEvaluationJobs: (
8
+ config: BedrockPaginationConfiguration,
9
+ input: ListEvaluationJobsCommandInput,
10
+ ...rest: any[]
11
+ ) => Paginator<ListEvaluationJobsCommandOutput>;
@@ -0,0 +1,11 @@
1
+ import { Paginator } from "@smithy/types";
2
+ import {
3
+ ListGuardrailsCommandInput,
4
+ ListGuardrailsCommandOutput,
5
+ } from "../commands/ListGuardrailsCommand";
6
+ import { BedrockPaginationConfiguration } from "./Interfaces";
7
+ export declare const paginateListGuardrails: (
8
+ config: BedrockPaginationConfiguration,
9
+ input: ListGuardrailsCommandInput,
10
+ ...rest: any[]
11
+ ) => Paginator<ListGuardrailsCommandOutput>;