@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
package/dist-cjs/index.js CHANGED
@@ -22,28 +22,72 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
22
22
  var src_exports = {};
23
23
  __export(src_exports, {
24
24
  AccessDeniedException: () => AccessDeniedException,
25
+ AutomatedEvaluationConfigFilterSensitiveLog: () => AutomatedEvaluationConfigFilterSensitiveLog,
25
26
  Bedrock: () => Bedrock,
26
27
  BedrockClient: () => BedrockClient,
27
28
  BedrockServiceException: () => BedrockServiceException,
28
29
  CommitmentDuration: () => CommitmentDuration,
29
30
  ConflictException: () => ConflictException,
31
+ CreateEvaluationJobCommand: () => CreateEvaluationJobCommand,
32
+ CreateEvaluationJobRequestFilterSensitiveLog: () => CreateEvaluationJobRequestFilterSensitiveLog,
33
+ CreateGuardrailCommand: () => CreateGuardrailCommand,
34
+ CreateGuardrailRequestFilterSensitiveLog: () => CreateGuardrailRequestFilterSensitiveLog,
35
+ CreateGuardrailVersionCommand: () => CreateGuardrailVersionCommand,
36
+ CreateGuardrailVersionRequestFilterSensitiveLog: () => CreateGuardrailVersionRequestFilterSensitiveLog,
30
37
  CreateModelCustomizationJobCommand: () => CreateModelCustomizationJobCommand,
31
38
  CreateProvisionedModelThroughputCommand: () => CreateProvisionedModelThroughputCommand,
32
39
  CustomizationType: () => CustomizationType,
33
40
  DeleteCustomModelCommand: () => DeleteCustomModelCommand,
41
+ DeleteGuardrailCommand: () => DeleteGuardrailCommand,
34
42
  DeleteModelInvocationLoggingConfigurationCommand: () => DeleteModelInvocationLoggingConfigurationCommand,
35
43
  DeleteProvisionedModelThroughputCommand: () => DeleteProvisionedModelThroughputCommand,
44
+ EvaluationBedrockModelFilterSensitiveLog: () => EvaluationBedrockModelFilterSensitiveLog,
45
+ EvaluationConfig: () => EvaluationConfig,
46
+ EvaluationConfigFilterSensitiveLog: () => EvaluationConfigFilterSensitiveLog,
47
+ EvaluationDatasetFilterSensitiveLog: () => EvaluationDatasetFilterSensitiveLog,
48
+ EvaluationDatasetLocation: () => EvaluationDatasetLocation,
49
+ EvaluationDatasetMetricConfigFilterSensitiveLog: () => EvaluationDatasetMetricConfigFilterSensitiveLog,
50
+ EvaluationInferenceConfig: () => EvaluationInferenceConfig,
51
+ EvaluationInferenceConfigFilterSensitiveLog: () => EvaluationInferenceConfigFilterSensitiveLog,
52
+ EvaluationJobStatus: () => EvaluationJobStatus,
53
+ EvaluationJobType: () => EvaluationJobType,
54
+ EvaluationModelConfig: () => EvaluationModelConfig,
55
+ EvaluationModelConfigFilterSensitiveLog: () => EvaluationModelConfigFilterSensitiveLog,
56
+ EvaluationTaskType: () => EvaluationTaskType,
36
57
  FineTuningJobStatus: () => FineTuningJobStatus,
37
58
  FoundationModelLifecycleStatus: () => FoundationModelLifecycleStatus,
38
59
  GetCustomModelCommand: () => GetCustomModelCommand,
60
+ GetEvaluationJobCommand: () => GetEvaluationJobCommand,
61
+ GetEvaluationJobRequestFilterSensitiveLog: () => GetEvaluationJobRequestFilterSensitiveLog,
62
+ GetEvaluationJobResponseFilterSensitiveLog: () => GetEvaluationJobResponseFilterSensitiveLog,
39
63
  GetFoundationModelCommand: () => GetFoundationModelCommand,
64
+ GetGuardrailCommand: () => GetGuardrailCommand,
65
+ GetGuardrailResponseFilterSensitiveLog: () => GetGuardrailResponseFilterSensitiveLog,
40
66
  GetModelCustomizationJobCommand: () => GetModelCustomizationJobCommand,
41
67
  GetModelInvocationLoggingConfigurationCommand: () => GetModelInvocationLoggingConfigurationCommand,
42
68
  GetProvisionedModelThroughputCommand: () => GetProvisionedModelThroughputCommand,
69
+ GuardrailContentFilterType: () => GuardrailContentFilterType,
70
+ GuardrailFilterStrength: () => GuardrailFilterStrength,
71
+ GuardrailManagedWordsType: () => GuardrailManagedWordsType,
72
+ GuardrailPiiEntityType: () => GuardrailPiiEntityType,
73
+ GuardrailSensitiveInformationAction: () => GuardrailSensitiveInformationAction,
74
+ GuardrailStatus: () => GuardrailStatus,
75
+ GuardrailSummaryFilterSensitiveLog: () => GuardrailSummaryFilterSensitiveLog,
76
+ GuardrailTopicConfigFilterSensitiveLog: () => GuardrailTopicConfigFilterSensitiveLog,
77
+ GuardrailTopicFilterSensitiveLog: () => GuardrailTopicFilterSensitiveLog,
78
+ GuardrailTopicPolicyConfigFilterSensitiveLog: () => GuardrailTopicPolicyConfigFilterSensitiveLog,
79
+ GuardrailTopicPolicyFilterSensitiveLog: () => GuardrailTopicPolicyFilterSensitiveLog,
80
+ GuardrailTopicType: () => GuardrailTopicType,
81
+ HumanEvaluationConfigFilterSensitiveLog: () => HumanEvaluationConfigFilterSensitiveLog,
82
+ HumanEvaluationCustomMetricFilterSensitiveLog: () => HumanEvaluationCustomMetricFilterSensitiveLog,
83
+ HumanWorkflowConfigFilterSensitiveLog: () => HumanWorkflowConfigFilterSensitiveLog,
43
84
  InferenceType: () => InferenceType,
44
85
  InternalServerException: () => InternalServerException,
45
86
  ListCustomModelsCommand: () => ListCustomModelsCommand,
87
+ ListEvaluationJobsCommand: () => ListEvaluationJobsCommand,
46
88
  ListFoundationModelsCommand: () => ListFoundationModelsCommand,
89
+ ListGuardrailsCommand: () => ListGuardrailsCommand,
90
+ ListGuardrailsResponseFilterSensitiveLog: () => ListGuardrailsResponseFilterSensitiveLog,
47
91
  ListModelCustomizationJobsCommand: () => ListModelCustomizationJobsCommand,
48
92
  ListProvisionedModelThroughputsCommand: () => ListProvisionedModelThroughputsCommand,
49
93
  ListTagsForResourceCommand: () => ListTagsForResourceCommand,
@@ -58,15 +102,21 @@ __export(src_exports, {
58
102
  SortJobsBy: () => SortJobsBy,
59
103
  SortModelsBy: () => SortModelsBy,
60
104
  SortOrder: () => SortOrder,
105
+ StopEvaluationJobCommand: () => StopEvaluationJobCommand,
106
+ StopEvaluationJobRequestFilterSensitiveLog: () => StopEvaluationJobRequestFilterSensitiveLog,
61
107
  StopModelCustomizationJobCommand: () => StopModelCustomizationJobCommand,
62
108
  TagResourceCommand: () => TagResourceCommand,
63
109
  ThrottlingException: () => ThrottlingException,
64
110
  TooManyTagsException: () => TooManyTagsException,
65
111
  UntagResourceCommand: () => UntagResourceCommand,
112
+ UpdateGuardrailCommand: () => UpdateGuardrailCommand,
113
+ UpdateGuardrailRequestFilterSensitiveLog: () => UpdateGuardrailRequestFilterSensitiveLog,
66
114
  UpdateProvisionedModelThroughputCommand: () => UpdateProvisionedModelThroughputCommand,
67
115
  ValidationException: () => ValidationException,
68
116
  __Client: () => import_smithy_client.Client,
69
117
  paginateListCustomModels: () => paginateListCustomModels,
118
+ paginateListEvaluationJobs: () => paginateListEvaluationJobs,
119
+ paginateListGuardrails: () => paginateListGuardrails,
70
120
  paginateListModelCustomizationJobs: () => paginateListModelCustomizationJobs,
71
121
  paginateListProvisionedModelThroughputs: () => paginateListProvisionedModelThroughputs
72
122
  });
@@ -218,18 +268,15 @@ var BedrockClient = _BedrockClient;
218
268
  // src/Bedrock.ts
219
269
 
220
270
 
221
- // src/commands/CreateModelCustomizationJobCommand.ts
271
+ // src/commands/CreateEvaluationJobCommand.ts
222
272
 
223
273
  var import_middleware_serde = require("@smithy/middleware-serde");
224
274
 
225
275
  var import_types = require("@smithy/types");
226
276
 
227
- // src/protocols/Aws_restJson1.ts
228
- var import_core2 = require("@aws-sdk/core");
277
+ // src/models/models_0.ts
229
278
 
230
279
 
231
- var import_uuid = require("uuid");
232
-
233
280
  // src/models/BedrockServiceException.ts
234
281
 
235
282
  var _BedrockServiceException = class _BedrockServiceException extends import_smithy_client.ServiceException {
@@ -262,6 +309,64 @@ var _AccessDeniedException = class _AccessDeniedException extends BedrockService
262
309
  };
263
310
  __name(_AccessDeniedException, "AccessDeniedException");
264
311
  var AccessDeniedException = _AccessDeniedException;
312
+ var _ConflictException = class _ConflictException extends BedrockServiceException {
313
+ /**
314
+ * @internal
315
+ */
316
+ constructor(opts) {
317
+ super({
318
+ name: "ConflictException",
319
+ $fault: "client",
320
+ ...opts
321
+ });
322
+ this.name = "ConflictException";
323
+ this.$fault = "client";
324
+ Object.setPrototypeOf(this, _ConflictException.prototype);
325
+ }
326
+ };
327
+ __name(_ConflictException, "ConflictException");
328
+ var ConflictException = _ConflictException;
329
+ var EvaluationDatasetLocation;
330
+ ((EvaluationDatasetLocation3) => {
331
+ EvaluationDatasetLocation3.visit = /* @__PURE__ */ __name((value, visitor) => {
332
+ if (value.s3Uri !== void 0)
333
+ return visitor.s3Uri(value.s3Uri);
334
+ return visitor._(value.$unknown[0], value.$unknown[1]);
335
+ }, "visit");
336
+ })(EvaluationDatasetLocation || (EvaluationDatasetLocation = {}));
337
+ var EvaluationTaskType = {
338
+ CLASSIFICATION: "Classification",
339
+ CUSTOM: "Custom",
340
+ GENERATION: "Generation",
341
+ QUESTION_AND_ANSWER: "QuestionAndAnswer",
342
+ SUMMARIZATION: "Summarization"
343
+ };
344
+ var EvaluationConfig;
345
+ ((EvaluationConfig3) => {
346
+ EvaluationConfig3.visit = /* @__PURE__ */ __name((value, visitor) => {
347
+ if (value.automated !== void 0)
348
+ return visitor.automated(value.automated);
349
+ if (value.human !== void 0)
350
+ return visitor.human(value.human);
351
+ return visitor._(value.$unknown[0], value.$unknown[1]);
352
+ }, "visit");
353
+ })(EvaluationConfig || (EvaluationConfig = {}));
354
+ var EvaluationModelConfig;
355
+ ((EvaluationModelConfig3) => {
356
+ EvaluationModelConfig3.visit = /* @__PURE__ */ __name((value, visitor) => {
357
+ if (value.bedrockModel !== void 0)
358
+ return visitor.bedrockModel(value.bedrockModel);
359
+ return visitor._(value.$unknown[0], value.$unknown[1]);
360
+ }, "visit");
361
+ })(EvaluationModelConfig || (EvaluationModelConfig = {}));
362
+ var EvaluationInferenceConfig;
363
+ ((EvaluationInferenceConfig3) => {
364
+ EvaluationInferenceConfig3.visit = /* @__PURE__ */ __name((value, visitor) => {
365
+ if (value.models !== void 0)
366
+ return visitor.models(value.models);
367
+ return visitor._(value.$unknown[0], value.$unknown[1]);
368
+ }, "visit");
369
+ })(EvaluationInferenceConfig || (EvaluationInferenceConfig = {}));
265
370
  var _InternalServerException = class _InternalServerException extends BedrockServiceException {
266
371
  /**
267
372
  * @internal
@@ -279,6 +384,40 @@ var _InternalServerException = class _InternalServerException extends BedrockSer
279
384
  };
280
385
  __name(_InternalServerException, "InternalServerException");
281
386
  var InternalServerException = _InternalServerException;
387
+ var _ResourceNotFoundException = class _ResourceNotFoundException extends BedrockServiceException {
388
+ /**
389
+ * @internal
390
+ */
391
+ constructor(opts) {
392
+ super({
393
+ name: "ResourceNotFoundException",
394
+ $fault: "client",
395
+ ...opts
396
+ });
397
+ this.name = "ResourceNotFoundException";
398
+ this.$fault = "client";
399
+ Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
400
+ }
401
+ };
402
+ __name(_ResourceNotFoundException, "ResourceNotFoundException");
403
+ var ResourceNotFoundException = _ResourceNotFoundException;
404
+ var _ServiceQuotaExceededException = class _ServiceQuotaExceededException extends BedrockServiceException {
405
+ /**
406
+ * @internal
407
+ */
408
+ constructor(opts) {
409
+ super({
410
+ name: "ServiceQuotaExceededException",
411
+ $fault: "client",
412
+ ...opts
413
+ });
414
+ this.name = "ServiceQuotaExceededException";
415
+ this.$fault = "client";
416
+ Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
417
+ }
418
+ };
419
+ __name(_ServiceQuotaExceededException, "ServiceQuotaExceededException");
420
+ var ServiceQuotaExceededException = _ServiceQuotaExceededException;
282
421
  var _ThrottlingException = class _ThrottlingException extends BedrockServiceException {
283
422
  /**
284
423
  * @internal
@@ -313,40 +452,107 @@ var _ValidationException = class _ValidationException extends BedrockServiceExce
313
452
  };
314
453
  __name(_ValidationException, "ValidationException");
315
454
  var ValidationException = _ValidationException;
316
- var _ConflictException = class _ConflictException extends BedrockServiceException {
317
- /**
318
- * @internal
319
- */
320
- constructor(opts) {
321
- super({
322
- name: "ConflictException",
323
- $fault: "client",
324
- ...opts
325
- });
326
- this.name = "ConflictException";
327
- this.$fault = "client";
328
- Object.setPrototypeOf(this, _ConflictException.prototype);
329
- }
455
+ var EvaluationJobType = {
456
+ AUTOMATED: "Automated",
457
+ HUMAN: "Human"
330
458
  };
331
- __name(_ConflictException, "ConflictException");
332
- var ConflictException = _ConflictException;
333
- var _ResourceNotFoundException = class _ResourceNotFoundException extends BedrockServiceException {
459
+ var EvaluationJobStatus = {
460
+ COMPLETED: "Completed",
461
+ FAILED: "Failed",
462
+ IN_PROGRESS: "InProgress",
463
+ STOPPED: "Stopped",
464
+ STOPPING: "Stopping"
465
+ };
466
+ var SortJobsBy = {
467
+ CREATION_TIME: "CreationTime"
468
+ };
469
+ var SortOrder = {
470
+ ASCENDING: "Ascending",
471
+ DESCENDING: "Descending"
472
+ };
473
+ var GuardrailFilterStrength = {
474
+ HIGH: "HIGH",
475
+ LOW: "LOW",
476
+ MEDIUM: "MEDIUM",
477
+ NONE: "NONE"
478
+ };
479
+ var GuardrailContentFilterType = {
480
+ HATE: "HATE",
481
+ INSULTS: "INSULTS",
482
+ MISCONDUCT: "MISCONDUCT",
483
+ PROMPT_ATTACK: "PROMPT_ATTACK",
484
+ SEXUAL: "SEXUAL",
485
+ VIOLENCE: "VIOLENCE"
486
+ };
487
+ var GuardrailSensitiveInformationAction = {
488
+ ANONYMIZE: "ANONYMIZE",
489
+ BLOCK: "BLOCK"
490
+ };
491
+ var GuardrailPiiEntityType = {
492
+ ADDRESS: "ADDRESS",
493
+ AGE: "AGE",
494
+ AWS_ACCESS_KEY: "AWS_ACCESS_KEY",
495
+ AWS_SECRET_KEY: "AWS_SECRET_KEY",
496
+ CA_HEALTH_NUMBER: "CA_HEALTH_NUMBER",
497
+ CA_SOCIAL_INSURANCE_NUMBER: "CA_SOCIAL_INSURANCE_NUMBER",
498
+ CREDIT_DEBIT_CARD_CVV: "CREDIT_DEBIT_CARD_CVV",
499
+ CREDIT_DEBIT_CARD_EXPIRY: "CREDIT_DEBIT_CARD_EXPIRY",
500
+ CREDIT_DEBIT_CARD_NUMBER: "CREDIT_DEBIT_CARD_NUMBER",
501
+ DRIVER_ID: "DRIVER_ID",
502
+ EMAIL: "EMAIL",
503
+ INTERNATIONAL_BANK_ACCOUNT_NUMBER: "INTERNATIONAL_BANK_ACCOUNT_NUMBER",
504
+ IP_ADDRESS: "IP_ADDRESS",
505
+ LICENSE_PLATE: "LICENSE_PLATE",
506
+ MAC_ADDRESS: "MAC_ADDRESS",
507
+ NAME: "NAME",
508
+ PASSWORD: "PASSWORD",
509
+ PHONE: "PHONE",
510
+ PIN: "PIN",
511
+ SWIFT_CODE: "SWIFT_CODE",
512
+ UK_NATIONAL_HEALTH_SERVICE_NUMBER: "UK_NATIONAL_HEALTH_SERVICE_NUMBER",
513
+ UK_NATIONAL_INSURANCE_NUMBER: "UK_NATIONAL_INSURANCE_NUMBER",
514
+ UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER: "UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER",
515
+ URL: "URL",
516
+ USERNAME: "USERNAME",
517
+ US_BANK_ACCOUNT_NUMBER: "US_BANK_ACCOUNT_NUMBER",
518
+ US_BANK_ROUTING_NUMBER: "US_BANK_ROUTING_NUMBER",
519
+ US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER: "US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER",
520
+ US_PASSPORT_NUMBER: "US_PASSPORT_NUMBER",
521
+ US_SOCIAL_SECURITY_NUMBER: "US_SOCIAL_SECURITY_NUMBER",
522
+ VEHICLE_IDENTIFICATION_NUMBER: "VEHICLE_IDENTIFICATION_NUMBER"
523
+ };
524
+ var GuardrailTopicType = {
525
+ DENY: "DENY"
526
+ };
527
+ var GuardrailManagedWordsType = {
528
+ PROFANITY: "PROFANITY"
529
+ };
530
+ var _TooManyTagsException = class _TooManyTagsException extends BedrockServiceException {
334
531
  /**
335
532
  * @internal
336
533
  */
337
534
  constructor(opts) {
338
535
  super({
339
- name: "ResourceNotFoundException",
536
+ name: "TooManyTagsException",
340
537
  $fault: "client",
341
538
  ...opts
342
539
  });
343
- this.name = "ResourceNotFoundException";
540
+ this.name = "TooManyTagsException";
344
541
  this.$fault = "client";
345
- Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
542
+ Object.setPrototypeOf(this, _TooManyTagsException.prototype);
543
+ this.resourceName = opts.resourceName;
346
544
  }
347
545
  };
348
- __name(_ResourceNotFoundException, "ResourceNotFoundException");
349
- var ResourceNotFoundException = _ResourceNotFoundException;
546
+ __name(_TooManyTagsException, "TooManyTagsException");
547
+ var TooManyTagsException = _TooManyTagsException;
548
+ var GuardrailStatus = {
549
+ CREATING: "CREATING",
550
+ DELETING: "DELETING",
551
+ FAILED: "FAILED",
552
+ READY: "READY",
553
+ UPDATING: "UPDATING",
554
+ VERSIONING: "VERSIONING"
555
+ };
350
556
  var CustomizationType = {
351
557
  CONTINUED_PRE_TRAINING: "CONTINUED_PRE_TRAINING",
352
558
  FINE_TUNING: "FINE_TUNING"
@@ -371,49 +577,10 @@ var FoundationModelLifecycleStatus = {
371
577
  var SortModelsBy = {
372
578
  CREATION_TIME: "CreationTime"
373
579
  };
374
- var SortOrder = {
375
- ASCENDING: "Ascending",
376
- DESCENDING: "Descending"
377
- };
378
580
  var CommitmentDuration = {
379
581
  ONE_MONTH: "OneMonth",
380
582
  SIX_MONTHS: "SixMonths"
381
583
  };
382
- var _ServiceQuotaExceededException = class _ServiceQuotaExceededException extends BedrockServiceException {
383
- /**
384
- * @internal
385
- */
386
- constructor(opts) {
387
- super({
388
- name: "ServiceQuotaExceededException",
389
- $fault: "client",
390
- ...opts
391
- });
392
- this.name = "ServiceQuotaExceededException";
393
- this.$fault = "client";
394
- Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
395
- }
396
- };
397
- __name(_ServiceQuotaExceededException, "ServiceQuotaExceededException");
398
- var ServiceQuotaExceededException = _ServiceQuotaExceededException;
399
- var _TooManyTagsException = class _TooManyTagsException extends BedrockServiceException {
400
- /**
401
- * @internal
402
- */
403
- constructor(opts) {
404
- super({
405
- name: "TooManyTagsException",
406
- $fault: "client",
407
- ...opts
408
- });
409
- this.name = "TooManyTagsException";
410
- this.$fault = "client";
411
- Object.setPrototypeOf(this, _TooManyTagsException.prototype);
412
- this.resourceName = opts.resourceName;
413
- }
414
- };
415
- __name(_TooManyTagsException, "TooManyTagsException");
416
- var TooManyTagsException = _TooManyTagsException;
417
584
  var ProvisionedModelStatus = {
418
585
  CREATING: "Creating",
419
586
  FAILED: "Failed",
@@ -430,9 +597,6 @@ var ModelCustomizationJobStatus = {
430
597
  STOPPED: "Stopped",
431
598
  STOPPING: "Stopping"
432
599
  };
433
- var SortJobsBy = {
434
- CREATION_TIME: "CreationTime"
435
- };
436
600
  var FineTuningJobStatus = {
437
601
  COMPLETED: "Completed",
438
602
  FAILED: "Failed",
@@ -440,8 +604,223 @@ var FineTuningJobStatus = {
440
604
  STOPPED: "Stopped",
441
605
  STOPPING: "Stopping"
442
606
  };
607
+ var EvaluationDatasetFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
608
+ ...obj,
609
+ ...obj.name && { name: import_smithy_client.SENSITIVE_STRING },
610
+ ...obj.datasetLocation && { datasetLocation: obj.datasetLocation }
611
+ }), "EvaluationDatasetFilterSensitiveLog");
612
+ var EvaluationDatasetMetricConfigFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
613
+ ...obj,
614
+ ...obj.dataset && { dataset: EvaluationDatasetFilterSensitiveLog(obj.dataset) },
615
+ ...obj.metricNames && { metricNames: import_smithy_client.SENSITIVE_STRING }
616
+ }), "EvaluationDatasetMetricConfigFilterSensitiveLog");
617
+ var AutomatedEvaluationConfigFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
618
+ ...obj,
619
+ ...obj.datasetMetricConfigs && {
620
+ datasetMetricConfigs: obj.datasetMetricConfigs.map((item) => EvaluationDatasetMetricConfigFilterSensitiveLog(item))
621
+ }
622
+ }), "AutomatedEvaluationConfigFilterSensitiveLog");
623
+ var HumanEvaluationCustomMetricFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
624
+ ...obj,
625
+ ...obj.name && { name: import_smithy_client.SENSITIVE_STRING },
626
+ ...obj.description && { description: import_smithy_client.SENSITIVE_STRING }
627
+ }), "HumanEvaluationCustomMetricFilterSensitiveLog");
628
+ var HumanWorkflowConfigFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
629
+ ...obj,
630
+ ...obj.instructions && { instructions: import_smithy_client.SENSITIVE_STRING }
631
+ }), "HumanWorkflowConfigFilterSensitiveLog");
632
+ var HumanEvaluationConfigFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
633
+ ...obj,
634
+ ...obj.humanWorkflowConfig && {
635
+ humanWorkflowConfig: HumanWorkflowConfigFilterSensitiveLog(obj.humanWorkflowConfig)
636
+ },
637
+ ...obj.customMetrics && {
638
+ customMetrics: obj.customMetrics.map((item) => HumanEvaluationCustomMetricFilterSensitiveLog(item))
639
+ },
640
+ ...obj.datasetMetricConfigs && {
641
+ datasetMetricConfigs: obj.datasetMetricConfigs.map((item) => EvaluationDatasetMetricConfigFilterSensitiveLog(item))
642
+ }
643
+ }), "HumanEvaluationConfigFilterSensitiveLog");
644
+ var EvaluationConfigFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
645
+ if (obj.automated !== void 0)
646
+ return { automated: AutomatedEvaluationConfigFilterSensitiveLog(obj.automated) };
647
+ if (obj.human !== void 0)
648
+ return { human: HumanEvaluationConfigFilterSensitiveLog(obj.human) };
649
+ if (obj.$unknown !== void 0)
650
+ return { [obj.$unknown[0]]: "UNKNOWN" };
651
+ }, "EvaluationConfigFilterSensitiveLog");
652
+ var EvaluationBedrockModelFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
653
+ ...obj,
654
+ ...obj.inferenceParams && { inferenceParams: import_smithy_client.SENSITIVE_STRING }
655
+ }), "EvaluationBedrockModelFilterSensitiveLog");
656
+ var EvaluationModelConfigFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
657
+ if (obj.bedrockModel !== void 0)
658
+ return { bedrockModel: EvaluationBedrockModelFilterSensitiveLog(obj.bedrockModel) };
659
+ if (obj.$unknown !== void 0)
660
+ return { [obj.$unknown[0]]: "UNKNOWN" };
661
+ }, "EvaluationModelConfigFilterSensitiveLog");
662
+ var EvaluationInferenceConfigFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
663
+ if (obj.models !== void 0)
664
+ return { models: obj.models.map((item) => EvaluationModelConfigFilterSensitiveLog(item)) };
665
+ if (obj.$unknown !== void 0)
666
+ return { [obj.$unknown[0]]: "UNKNOWN" };
667
+ }, "EvaluationInferenceConfigFilterSensitiveLog");
668
+ var CreateEvaluationJobRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
669
+ ...obj,
670
+ ...obj.jobDescription && { jobDescription: import_smithy_client.SENSITIVE_STRING },
671
+ ...obj.evaluationConfig && { evaluationConfig: EvaluationConfigFilterSensitiveLog(obj.evaluationConfig) },
672
+ ...obj.inferenceConfig && { inferenceConfig: EvaluationInferenceConfigFilterSensitiveLog(obj.inferenceConfig) }
673
+ }), "CreateEvaluationJobRequestFilterSensitiveLog");
674
+ var GetEvaluationJobRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
675
+ ...obj,
676
+ ...obj.jobIdentifier && { jobIdentifier: import_smithy_client.SENSITIVE_STRING }
677
+ }), "GetEvaluationJobRequestFilterSensitiveLog");
678
+ var GetEvaluationJobResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
679
+ ...obj,
680
+ ...obj.jobDescription && { jobDescription: import_smithy_client.SENSITIVE_STRING },
681
+ ...obj.evaluationConfig && { evaluationConfig: EvaluationConfigFilterSensitiveLog(obj.evaluationConfig) },
682
+ ...obj.inferenceConfig && { inferenceConfig: EvaluationInferenceConfigFilterSensitiveLog(obj.inferenceConfig) }
683
+ }), "GetEvaluationJobResponseFilterSensitiveLog");
684
+ var StopEvaluationJobRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
685
+ ...obj,
686
+ ...obj.jobIdentifier && { jobIdentifier: import_smithy_client.SENSITIVE_STRING }
687
+ }), "StopEvaluationJobRequestFilterSensitiveLog");
688
+ var GuardrailTopicConfigFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
689
+ ...obj,
690
+ ...obj.name && { name: import_smithy_client.SENSITIVE_STRING },
691
+ ...obj.definition && { definition: import_smithy_client.SENSITIVE_STRING },
692
+ ...obj.examples && { examples: import_smithy_client.SENSITIVE_STRING }
693
+ }), "GuardrailTopicConfigFilterSensitiveLog");
694
+ var GuardrailTopicPolicyConfigFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
695
+ ...obj,
696
+ ...obj.topicsConfig && {
697
+ topicsConfig: obj.topicsConfig.map((item) => GuardrailTopicConfigFilterSensitiveLog(item))
698
+ }
699
+ }), "GuardrailTopicPolicyConfigFilterSensitiveLog");
700
+ var CreateGuardrailRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
701
+ ...obj,
702
+ ...obj.name && { name: import_smithy_client.SENSITIVE_STRING },
703
+ ...obj.description && { description: import_smithy_client.SENSITIVE_STRING },
704
+ ...obj.topicPolicyConfig && {
705
+ topicPolicyConfig: GuardrailTopicPolicyConfigFilterSensitiveLog(obj.topicPolicyConfig)
706
+ },
707
+ ...obj.blockedInputMessaging && { blockedInputMessaging: import_smithy_client.SENSITIVE_STRING },
708
+ ...obj.blockedOutputsMessaging && { blockedOutputsMessaging: import_smithy_client.SENSITIVE_STRING }
709
+ }), "CreateGuardrailRequestFilterSensitiveLog");
710
+ var CreateGuardrailVersionRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
711
+ ...obj,
712
+ ...obj.description && { description: import_smithy_client.SENSITIVE_STRING }
713
+ }), "CreateGuardrailVersionRequestFilterSensitiveLog");
714
+ var GuardrailTopicFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
715
+ ...obj,
716
+ ...obj.name && { name: import_smithy_client.SENSITIVE_STRING },
717
+ ...obj.definition && { definition: import_smithy_client.SENSITIVE_STRING },
718
+ ...obj.examples && { examples: import_smithy_client.SENSITIVE_STRING }
719
+ }), "GuardrailTopicFilterSensitiveLog");
720
+ var GuardrailTopicPolicyFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
721
+ ...obj,
722
+ ...obj.topics && { topics: obj.topics.map((item) => GuardrailTopicFilterSensitiveLog(item)) }
723
+ }), "GuardrailTopicPolicyFilterSensitiveLog");
724
+ var GetGuardrailResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
725
+ ...obj,
726
+ ...obj.name && { name: import_smithy_client.SENSITIVE_STRING },
727
+ ...obj.description && { description: import_smithy_client.SENSITIVE_STRING },
728
+ ...obj.topicPolicy && { topicPolicy: GuardrailTopicPolicyFilterSensitiveLog(obj.topicPolicy) },
729
+ ...obj.statusReasons && { statusReasons: import_smithy_client.SENSITIVE_STRING },
730
+ ...obj.failureRecommendations && { failureRecommendations: import_smithy_client.SENSITIVE_STRING },
731
+ ...obj.blockedInputMessaging && { blockedInputMessaging: import_smithy_client.SENSITIVE_STRING },
732
+ ...obj.blockedOutputsMessaging && { blockedOutputsMessaging: import_smithy_client.SENSITIVE_STRING }
733
+ }), "GetGuardrailResponseFilterSensitiveLog");
734
+ var GuardrailSummaryFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
735
+ ...obj,
736
+ ...obj.name && { name: import_smithy_client.SENSITIVE_STRING },
737
+ ...obj.description && { description: import_smithy_client.SENSITIVE_STRING }
738
+ }), "GuardrailSummaryFilterSensitiveLog");
739
+ var ListGuardrailsResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
740
+ ...obj,
741
+ ...obj.guardrails && { guardrails: obj.guardrails.map((item) => GuardrailSummaryFilterSensitiveLog(item)) }
742
+ }), "ListGuardrailsResponseFilterSensitiveLog");
743
+ var UpdateGuardrailRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
744
+ ...obj,
745
+ ...obj.name && { name: import_smithy_client.SENSITIVE_STRING },
746
+ ...obj.description && { description: import_smithy_client.SENSITIVE_STRING },
747
+ ...obj.topicPolicyConfig && {
748
+ topicPolicyConfig: GuardrailTopicPolicyConfigFilterSensitiveLog(obj.topicPolicyConfig)
749
+ },
750
+ ...obj.blockedInputMessaging && { blockedInputMessaging: import_smithy_client.SENSITIVE_STRING },
751
+ ...obj.blockedOutputsMessaging && { blockedOutputsMessaging: import_smithy_client.SENSITIVE_STRING }
752
+ }), "UpdateGuardrailRequestFilterSensitiveLog");
443
753
 
444
754
  // src/protocols/Aws_restJson1.ts
755
+ var import_core2 = require("@aws-sdk/core");
756
+
757
+
758
+ var import_uuid = require("uuid");
759
+ var se_CreateEvaluationJobCommand = /* @__PURE__ */ __name(async (input, context) => {
760
+ const b = (0, import_core.requestBuilder)(input, context);
761
+ const headers = {
762
+ "content-type": "application/json"
763
+ };
764
+ b.bp("/evaluation-jobs");
765
+ let body;
766
+ body = JSON.stringify(
767
+ (0, import_smithy_client.take)(input, {
768
+ clientRequestToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
769
+ customerEncryptionKeyId: [],
770
+ evaluationConfig: (_) => (0, import_smithy_client._json)(_),
771
+ inferenceConfig: (_) => (0, import_smithy_client._json)(_),
772
+ jobDescription: [],
773
+ jobName: [],
774
+ jobTags: (_) => (0, import_smithy_client._json)(_),
775
+ outputDataConfig: (_) => (0, import_smithy_client._json)(_),
776
+ roleArn: []
777
+ })
778
+ );
779
+ b.m("POST").h(headers).b(body);
780
+ return b.build();
781
+ }, "se_CreateEvaluationJobCommand");
782
+ var se_CreateGuardrailCommand = /* @__PURE__ */ __name(async (input, context) => {
783
+ const b = (0, import_core.requestBuilder)(input, context);
784
+ const headers = {
785
+ "content-type": "application/json"
786
+ };
787
+ b.bp("/guardrails");
788
+ let body;
789
+ body = JSON.stringify(
790
+ (0, import_smithy_client.take)(input, {
791
+ blockedInputMessaging: [],
792
+ blockedOutputsMessaging: [],
793
+ clientRequestToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
794
+ contentPolicyConfig: (_) => (0, import_smithy_client._json)(_),
795
+ description: [],
796
+ kmsKeyId: [],
797
+ name: [],
798
+ sensitiveInformationPolicyConfig: (_) => (0, import_smithy_client._json)(_),
799
+ tags: (_) => (0, import_smithy_client._json)(_),
800
+ topicPolicyConfig: (_) => (0, import_smithy_client._json)(_),
801
+ wordPolicyConfig: (_) => (0, import_smithy_client._json)(_)
802
+ })
803
+ );
804
+ b.m("POST").h(headers).b(body);
805
+ return b.build();
806
+ }, "se_CreateGuardrailCommand");
807
+ var se_CreateGuardrailVersionCommand = /* @__PURE__ */ __name(async (input, context) => {
808
+ const b = (0, import_core.requestBuilder)(input, context);
809
+ const headers = {
810
+ "content-type": "application/json"
811
+ };
812
+ b.bp("/guardrails/{guardrailIdentifier}");
813
+ b.p("guardrailIdentifier", () => input.guardrailIdentifier, "{guardrailIdentifier}", false);
814
+ let body;
815
+ body = JSON.stringify(
816
+ (0, import_smithy_client.take)(input, {
817
+ clientRequestToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
818
+ description: []
819
+ })
820
+ );
821
+ b.m("POST").h(headers).b(body);
822
+ return b.build();
823
+ }, "se_CreateGuardrailVersionCommand");
445
824
  var se_CreateModelCustomizationJobCommand = /* @__PURE__ */ __name(async (input, context) => {
446
825
  const b = (0, import_core.requestBuilder)(input, context);
447
826
  const headers = {
@@ -499,6 +878,18 @@ var se_DeleteCustomModelCommand = /* @__PURE__ */ __name(async (input, context)
499
878
  b.m("DELETE").h(headers).b(body);
500
879
  return b.build();
501
880
  }, "se_DeleteCustomModelCommand");
881
+ var se_DeleteGuardrailCommand = /* @__PURE__ */ __name(async (input, context) => {
882
+ const b = (0, import_core.requestBuilder)(input, context);
883
+ const headers = {};
884
+ b.bp("/guardrails/{guardrailIdentifier}");
885
+ b.p("guardrailIdentifier", () => input.guardrailIdentifier, "{guardrailIdentifier}", false);
886
+ const query = (0, import_smithy_client.map)({
887
+ [_gV]: [, input[_gV]]
888
+ });
889
+ let body;
890
+ b.m("DELETE").h(headers).q(query).b(body);
891
+ return b.build();
892
+ }, "se_DeleteGuardrailCommand");
502
893
  var se_DeleteModelInvocationLoggingConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
503
894
  const b = (0, import_core.requestBuilder)(input, context);
504
895
  const headers = {
@@ -528,6 +919,15 @@ var se_GetCustomModelCommand = /* @__PURE__ */ __name(async (input, context) =>
528
919
  b.m("GET").h(headers).b(body);
529
920
  return b.build();
530
921
  }, "se_GetCustomModelCommand");
922
+ var se_GetEvaluationJobCommand = /* @__PURE__ */ __name(async (input, context) => {
923
+ const b = (0, import_core.requestBuilder)(input, context);
924
+ const headers = {};
925
+ b.bp("/evaluation-jobs/{jobIdentifier}");
926
+ b.p("jobIdentifier", () => input.jobIdentifier, "{jobIdentifier}", false);
927
+ let body;
928
+ b.m("GET").h(headers).b(body);
929
+ return b.build();
930
+ }, "se_GetEvaluationJobCommand");
531
931
  var se_GetFoundationModelCommand = /* @__PURE__ */ __name(async (input, context) => {
532
932
  const b = (0, import_core.requestBuilder)(input, context);
533
933
  const headers = {};
@@ -537,6 +937,18 @@ var se_GetFoundationModelCommand = /* @__PURE__ */ __name(async (input, context)
537
937
  b.m("GET").h(headers).b(body);
538
938
  return b.build();
539
939
  }, "se_GetFoundationModelCommand");
940
+ var se_GetGuardrailCommand = /* @__PURE__ */ __name(async (input, context) => {
941
+ const b = (0, import_core.requestBuilder)(input, context);
942
+ const headers = {};
943
+ b.bp("/guardrails/{guardrailIdentifier}");
944
+ b.p("guardrailIdentifier", () => input.guardrailIdentifier, "{guardrailIdentifier}", false);
945
+ const query = (0, import_smithy_client.map)({
946
+ [_gV]: [, input[_gV]]
947
+ });
948
+ let body;
949
+ b.m("GET").h(headers).q(query).b(body);
950
+ return b.build();
951
+ }, "se_GetGuardrailCommand");
540
952
  var se_GetModelCustomizationJobCommand = /* @__PURE__ */ __name(async (input, context) => {
541
953
  const b = (0, import_core.requestBuilder)(input, context);
542
954
  const headers = {};
@@ -591,6 +1003,30 @@ var se_ListCustomModelsCommand = /* @__PURE__ */ __name(async (input, context) =
591
1003
  b.m("GET").h(headers).q(query).b(body);
592
1004
  return b.build();
593
1005
  }, "se_ListCustomModelsCommand");
1006
+ var se_ListEvaluationJobsCommand = /* @__PURE__ */ __name(async (input, context) => {
1007
+ const b = (0, import_core.requestBuilder)(input, context);
1008
+ const headers = {};
1009
+ b.bp("/evaluation-jobs");
1010
+ const query = (0, import_smithy_client.map)({
1011
+ [_cTA]: [
1012
+ () => input.creationTimeAfter !== void 0,
1013
+ () => (input[_cTA].toISOString().split(".")[0] + "Z").toString()
1014
+ ],
1015
+ [_cTB]: [
1016
+ () => input.creationTimeBefore !== void 0,
1017
+ () => (input[_cTB].toISOString().split(".")[0] + "Z").toString()
1018
+ ],
1019
+ [_sE]: [, input[_sE]],
1020
+ [_nC]: [, input[_nC]],
1021
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
1022
+ [_nT]: [, input[_nT]],
1023
+ [_sB]: [, input[_sB]],
1024
+ [_sO]: [, input[_sO]]
1025
+ });
1026
+ let body;
1027
+ b.m("GET").h(headers).q(query).b(body);
1028
+ return b.build();
1029
+ }, "se_ListEvaluationJobsCommand");
594
1030
  var se_ListFoundationModelsCommand = /* @__PURE__ */ __name(async (input, context) => {
595
1031
  const b = (0, import_core.requestBuilder)(input, context);
596
1032
  const headers = {};
@@ -605,6 +1041,19 @@ var se_ListFoundationModelsCommand = /* @__PURE__ */ __name(async (input, contex
605
1041
  b.m("GET").h(headers).q(query).b(body);
606
1042
  return b.build();
607
1043
  }, "se_ListFoundationModelsCommand");
1044
+ var se_ListGuardrailsCommand = /* @__PURE__ */ __name(async (input, context) => {
1045
+ const b = (0, import_core.requestBuilder)(input, context);
1046
+ const headers = {};
1047
+ b.bp("/guardrails");
1048
+ const query = (0, import_smithy_client.map)({
1049
+ [_gI]: [, input[_gI]],
1050
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
1051
+ [_nT]: [, input[_nT]]
1052
+ });
1053
+ let body;
1054
+ b.m("GET").h(headers).q(query).b(body);
1055
+ return b.build();
1056
+ }, "se_ListGuardrailsCommand");
608
1057
  var se_ListModelCustomizationJobsCommand = /* @__PURE__ */ __name(async (input, context) => {
609
1058
  const b = (0, import_core.requestBuilder)(input, context);
610
1059
  const headers = {};
@@ -684,6 +1133,15 @@ var se_PutModelInvocationLoggingConfigurationCommand = /* @__PURE__ */ __name(as
684
1133
  b.m("PUT").h(headers).b(body);
685
1134
  return b.build();
686
1135
  }, "se_PutModelInvocationLoggingConfigurationCommand");
1136
+ var se_StopEvaluationJobCommand = /* @__PURE__ */ __name(async (input, context) => {
1137
+ const b = (0, import_core.requestBuilder)(input, context);
1138
+ const headers = {};
1139
+ b.bp("/evaluation-job/{jobIdentifier}/stop");
1140
+ b.p("jobIdentifier", () => input.jobIdentifier, "{jobIdentifier}", false);
1141
+ let body;
1142
+ b.m("POST").h(headers).b(body);
1143
+ return b.build();
1144
+ }, "se_StopEvaluationJobCommand");
687
1145
  var se_StopModelCustomizationJobCommand = /* @__PURE__ */ __name(async (input, context) => {
688
1146
  const b = (0, import_core.requestBuilder)(input, context);
689
1147
  const headers = {};
@@ -725,6 +1183,30 @@ var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
725
1183
  b.m("POST").h(headers).b(body);
726
1184
  return b.build();
727
1185
  }, "se_UntagResourceCommand");
1186
+ var se_UpdateGuardrailCommand = /* @__PURE__ */ __name(async (input, context) => {
1187
+ const b = (0, import_core.requestBuilder)(input, context);
1188
+ const headers = {
1189
+ "content-type": "application/json"
1190
+ };
1191
+ b.bp("/guardrails/{guardrailIdentifier}");
1192
+ b.p("guardrailIdentifier", () => input.guardrailIdentifier, "{guardrailIdentifier}", false);
1193
+ let body;
1194
+ body = JSON.stringify(
1195
+ (0, import_smithy_client.take)(input, {
1196
+ blockedInputMessaging: [],
1197
+ blockedOutputsMessaging: [],
1198
+ contentPolicyConfig: (_) => (0, import_smithy_client._json)(_),
1199
+ description: [],
1200
+ kmsKeyId: [],
1201
+ name: [],
1202
+ sensitiveInformationPolicyConfig: (_) => (0, import_smithy_client._json)(_),
1203
+ topicPolicyConfig: (_) => (0, import_smithy_client._json)(_),
1204
+ wordPolicyConfig: (_) => (0, import_smithy_client._json)(_)
1205
+ })
1206
+ );
1207
+ b.m("PUT").h(headers).b(body);
1208
+ return b.build();
1209
+ }, "se_UpdateGuardrailCommand");
728
1210
  var se_UpdateProvisionedModelThroughputCommand = /* @__PURE__ */ __name(async (input, context) => {
729
1211
  const b = (0, import_core.requestBuilder)(input, context);
730
1212
  const headers = {
@@ -742,6 +1224,52 @@ var se_UpdateProvisionedModelThroughputCommand = /* @__PURE__ */ __name(async (i
742
1224
  b.m("PATCH").h(headers).b(body);
743
1225
  return b.build();
744
1226
  }, "se_UpdateProvisionedModelThroughputCommand");
1227
+ var de_CreateEvaluationJobCommand = /* @__PURE__ */ __name(async (output, context) => {
1228
+ if (output.statusCode !== 202 && output.statusCode >= 300) {
1229
+ return de_CommandError(output, context);
1230
+ }
1231
+ const contents = (0, import_smithy_client.map)({
1232
+ $metadata: deserializeMetadata(output)
1233
+ });
1234
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1235
+ const doc = (0, import_smithy_client.take)(data, {
1236
+ jobArn: import_smithy_client.expectString
1237
+ });
1238
+ Object.assign(contents, doc);
1239
+ return contents;
1240
+ }, "de_CreateEvaluationJobCommand");
1241
+ var de_CreateGuardrailCommand = /* @__PURE__ */ __name(async (output, context) => {
1242
+ if (output.statusCode !== 202 && output.statusCode >= 300) {
1243
+ return de_CommandError(output, context);
1244
+ }
1245
+ const contents = (0, import_smithy_client.map)({
1246
+ $metadata: deserializeMetadata(output)
1247
+ });
1248
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1249
+ const doc = (0, import_smithy_client.take)(data, {
1250
+ createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
1251
+ guardrailArn: import_smithy_client.expectString,
1252
+ guardrailId: import_smithy_client.expectString,
1253
+ version: import_smithy_client.expectString
1254
+ });
1255
+ Object.assign(contents, doc);
1256
+ return contents;
1257
+ }, "de_CreateGuardrailCommand");
1258
+ var de_CreateGuardrailVersionCommand = /* @__PURE__ */ __name(async (output, context) => {
1259
+ if (output.statusCode !== 202 && output.statusCode >= 300) {
1260
+ return de_CommandError(output, context);
1261
+ }
1262
+ const contents = (0, import_smithy_client.map)({
1263
+ $metadata: deserializeMetadata(output)
1264
+ });
1265
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1266
+ const doc = (0, import_smithy_client.take)(data, {
1267
+ guardrailId: import_smithy_client.expectString,
1268
+ version: import_smithy_client.expectString
1269
+ });
1270
+ Object.assign(contents, doc);
1271
+ return contents;
1272
+ }, "de_CreateGuardrailVersionCommand");
745
1273
  var de_CreateModelCustomizationJobCommand = /* @__PURE__ */ __name(async (output, context) => {
746
1274
  if (output.statusCode !== 201 && output.statusCode >= 300) {
747
1275
  return de_CommandError(output, context);
@@ -780,6 +1308,16 @@ var de_DeleteCustomModelCommand = /* @__PURE__ */ __name(async (output, context)
780
1308
  await (0, import_smithy_client.collectBody)(output.body, context);
781
1309
  return contents;
782
1310
  }, "de_DeleteCustomModelCommand");
1311
+ var de_DeleteGuardrailCommand = /* @__PURE__ */ __name(async (output, context) => {
1312
+ if (output.statusCode !== 202 && output.statusCode >= 300) {
1313
+ return de_CommandError(output, context);
1314
+ }
1315
+ const contents = (0, import_smithy_client.map)({
1316
+ $metadata: deserializeMetadata(output)
1317
+ });
1318
+ await (0, import_smithy_client.collectBody)(output.body, context);
1319
+ return contents;
1320
+ }, "de_DeleteGuardrailCommand");
783
1321
  var de_DeleteModelInvocationLoggingConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
784
1322
  if (output.statusCode !== 200 && output.statusCode >= 300) {
785
1323
  return de_CommandError(output, context);
@@ -827,6 +1365,32 @@ var de_GetCustomModelCommand = /* @__PURE__ */ __name(async (output, context) =>
827
1365
  Object.assign(contents, doc);
828
1366
  return contents;
829
1367
  }, "de_GetCustomModelCommand");
1368
+ var de_GetEvaluationJobCommand = /* @__PURE__ */ __name(async (output, context) => {
1369
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1370
+ return de_CommandError(output, context);
1371
+ }
1372
+ const contents = (0, import_smithy_client.map)({
1373
+ $metadata: deserializeMetadata(output)
1374
+ });
1375
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1376
+ const doc = (0, import_smithy_client.take)(data, {
1377
+ creationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
1378
+ customerEncryptionKeyId: import_smithy_client.expectString,
1379
+ evaluationConfig: (_) => (0, import_smithy_client._json)((0, import_core2.awsExpectUnion)(_)),
1380
+ failureMessages: import_smithy_client._json,
1381
+ inferenceConfig: (_) => (0, import_smithy_client._json)((0, import_core2.awsExpectUnion)(_)),
1382
+ jobArn: import_smithy_client.expectString,
1383
+ jobDescription: import_smithy_client.expectString,
1384
+ jobName: import_smithy_client.expectString,
1385
+ jobType: import_smithy_client.expectString,
1386
+ lastModifiedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
1387
+ outputDataConfig: import_smithy_client._json,
1388
+ roleArn: import_smithy_client.expectString,
1389
+ status: import_smithy_client.expectString
1390
+ });
1391
+ Object.assign(contents, doc);
1392
+ return contents;
1393
+ }, "de_GetEvaluationJobCommand");
830
1394
  var de_GetFoundationModelCommand = /* @__PURE__ */ __name(async (output, context) => {
831
1395
  if (output.statusCode !== 200 && output.statusCode >= 300) {
832
1396
  return de_CommandError(output, context);
@@ -841,6 +1405,36 @@ var de_GetFoundationModelCommand = /* @__PURE__ */ __name(async (output, context
841
1405
  Object.assign(contents, doc);
842
1406
  return contents;
843
1407
  }, "de_GetFoundationModelCommand");
1408
+ var de_GetGuardrailCommand = /* @__PURE__ */ __name(async (output, context) => {
1409
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1410
+ return de_CommandError(output, context);
1411
+ }
1412
+ const contents = (0, import_smithy_client.map)({
1413
+ $metadata: deserializeMetadata(output)
1414
+ });
1415
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1416
+ const doc = (0, import_smithy_client.take)(data, {
1417
+ blockedInputMessaging: import_smithy_client.expectString,
1418
+ blockedOutputsMessaging: import_smithy_client.expectString,
1419
+ contentPolicy: import_smithy_client._json,
1420
+ createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
1421
+ description: import_smithy_client.expectString,
1422
+ failureRecommendations: import_smithy_client._json,
1423
+ guardrailArn: import_smithy_client.expectString,
1424
+ guardrailId: import_smithy_client.expectString,
1425
+ kmsKeyArn: import_smithy_client.expectString,
1426
+ name: import_smithy_client.expectString,
1427
+ sensitiveInformationPolicy: import_smithy_client._json,
1428
+ status: import_smithy_client.expectString,
1429
+ statusReasons: import_smithy_client._json,
1430
+ topicPolicy: import_smithy_client._json,
1431
+ updatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
1432
+ version: import_smithy_client.expectString,
1433
+ wordPolicy: import_smithy_client._json
1434
+ });
1435
+ Object.assign(contents, doc);
1436
+ return contents;
1437
+ }, "de_GetGuardrailCommand");
844
1438
  var de_GetModelCustomizationJobCommand = /* @__PURE__ */ __name(async (output, context) => {
845
1439
  if (output.statusCode !== 200 && output.statusCode >= 300) {
846
1440
  return de_CommandError(output, context);
@@ -930,6 +1524,21 @@ var de_ListCustomModelsCommand = /* @__PURE__ */ __name(async (output, context)
930
1524
  Object.assign(contents, doc);
931
1525
  return contents;
932
1526
  }, "de_ListCustomModelsCommand");
1527
+ var de_ListEvaluationJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
1528
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1529
+ return de_CommandError(output, context);
1530
+ }
1531
+ const contents = (0, import_smithy_client.map)({
1532
+ $metadata: deserializeMetadata(output)
1533
+ });
1534
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1535
+ const doc = (0, import_smithy_client.take)(data, {
1536
+ jobSummaries: (_) => de_EvaluationSummaries(_, context),
1537
+ nextToken: import_smithy_client.expectString
1538
+ });
1539
+ Object.assign(contents, doc);
1540
+ return contents;
1541
+ }, "de_ListEvaluationJobsCommand");
933
1542
  var de_ListFoundationModelsCommand = /* @__PURE__ */ __name(async (output, context) => {
934
1543
  if (output.statusCode !== 200 && output.statusCode >= 300) {
935
1544
  return de_CommandError(output, context);
@@ -944,6 +1553,21 @@ var de_ListFoundationModelsCommand = /* @__PURE__ */ __name(async (output, conte
944
1553
  Object.assign(contents, doc);
945
1554
  return contents;
946
1555
  }, "de_ListFoundationModelsCommand");
1556
+ var de_ListGuardrailsCommand = /* @__PURE__ */ __name(async (output, context) => {
1557
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1558
+ return de_CommandError(output, context);
1559
+ }
1560
+ const contents = (0, import_smithy_client.map)({
1561
+ $metadata: deserializeMetadata(output)
1562
+ });
1563
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1564
+ const doc = (0, import_smithy_client.take)(data, {
1565
+ guardrails: (_) => de_GuardrailSummaries(_, context),
1566
+ nextToken: import_smithy_client.expectString
1567
+ });
1568
+ Object.assign(contents, doc);
1569
+ return contents;
1570
+ }, "de_ListGuardrailsCommand");
947
1571
  var de_ListModelCustomizationJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
948
1572
  if (output.statusCode !== 200 && output.statusCode >= 300) {
949
1573
  return de_CommandError(output, context);
@@ -998,6 +1622,16 @@ var de_PutModelInvocationLoggingConfigurationCommand = /* @__PURE__ */ __name(as
998
1622
  await (0, import_smithy_client.collectBody)(output.body, context);
999
1623
  return contents;
1000
1624
  }, "de_PutModelInvocationLoggingConfigurationCommand");
1625
+ var de_StopEvaluationJobCommand = /* @__PURE__ */ __name(async (output, context) => {
1626
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1627
+ return de_CommandError(output, context);
1628
+ }
1629
+ const contents = (0, import_smithy_client.map)({
1630
+ $metadata: deserializeMetadata(output)
1631
+ });
1632
+ await (0, import_smithy_client.collectBody)(output.body, context);
1633
+ return contents;
1634
+ }, "de_StopEvaluationJobCommand");
1001
1635
  var de_StopModelCustomizationJobCommand = /* @__PURE__ */ __name(async (output, context) => {
1002
1636
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1003
1637
  return de_CommandError(output, context);
@@ -1028,6 +1662,23 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
1028
1662
  await (0, import_smithy_client.collectBody)(output.body, context);
1029
1663
  return contents;
1030
1664
  }, "de_UntagResourceCommand");
1665
+ var de_UpdateGuardrailCommand = /* @__PURE__ */ __name(async (output, context) => {
1666
+ if (output.statusCode !== 202 && output.statusCode >= 300) {
1667
+ return de_CommandError(output, context);
1668
+ }
1669
+ const contents = (0, import_smithy_client.map)({
1670
+ $metadata: deserializeMetadata(output)
1671
+ });
1672
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1673
+ const doc = (0, import_smithy_client.take)(data, {
1674
+ guardrailArn: import_smithy_client.expectString,
1675
+ guardrailId: import_smithy_client.expectString,
1676
+ updatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
1677
+ version: import_smithy_client.expectString
1678
+ });
1679
+ Object.assign(contents, doc);
1680
+ return contents;
1681
+ }, "de_UpdateGuardrailCommand");
1031
1682
  var de_UpdateProvisionedModelThroughputCommand = /* @__PURE__ */ __name(async (output, context) => {
1032
1683
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1033
1684
  return de_CommandError(output, context);
@@ -1063,12 +1714,12 @@ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
1063
1714
  case "ThrottlingException":
1064
1715
  case "com.amazonaws.bedrock#ThrottlingException":
1065
1716
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
1066
- case "TooManyTagsException":
1067
- case "com.amazonaws.bedrock#TooManyTagsException":
1068
- throw await de_TooManyTagsExceptionRes(parsedOutput, context);
1069
1717
  case "ValidationException":
1070
1718
  case "com.amazonaws.bedrock#ValidationException":
1071
1719
  throw await de_ValidationExceptionRes(parsedOutput, context);
1720
+ case "TooManyTagsException":
1721
+ case "com.amazonaws.bedrock#TooManyTagsException":
1722
+ throw await de_TooManyTagsExceptionRes(parsedOutput, context);
1072
1723
  default:
1073
1724
  const parsedBody = parsedOutput.body;
1074
1725
  return throwDefaultError({
@@ -1200,6 +1851,41 @@ var de_CustomModelSummaryList = /* @__PURE__ */ __name((output, context) => {
1200
1851
  });
1201
1852
  return retVal;
1202
1853
  }, "de_CustomModelSummaryList");
1854
+ var de_EvaluationSummaries = /* @__PURE__ */ __name((output, context) => {
1855
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1856
+ return de_EvaluationSummary(entry, context);
1857
+ });
1858
+ return retVal;
1859
+ }, "de_EvaluationSummaries");
1860
+ var de_EvaluationSummary = /* @__PURE__ */ __name((output, context) => {
1861
+ return (0, import_smithy_client.take)(output, {
1862
+ creationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
1863
+ evaluationTaskTypes: import_smithy_client._json,
1864
+ jobArn: import_smithy_client.expectString,
1865
+ jobName: import_smithy_client.expectString,
1866
+ jobType: import_smithy_client.expectString,
1867
+ modelIdentifiers: import_smithy_client._json,
1868
+ status: import_smithy_client.expectString
1869
+ });
1870
+ }, "de_EvaluationSummary");
1871
+ var de_GuardrailSummaries = /* @__PURE__ */ __name((output, context) => {
1872
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1873
+ return de_GuardrailSummary(entry, context);
1874
+ });
1875
+ return retVal;
1876
+ }, "de_GuardrailSummaries");
1877
+ var de_GuardrailSummary = /* @__PURE__ */ __name((output, context) => {
1878
+ return (0, import_smithy_client.take)(output, {
1879
+ arn: import_smithy_client.expectString,
1880
+ createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
1881
+ description: import_smithy_client.expectString,
1882
+ id: import_smithy_client.expectString,
1883
+ name: import_smithy_client.expectString,
1884
+ status: import_smithy_client.expectString,
1885
+ updatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
1886
+ version: import_smithy_client.expectString
1887
+ });
1888
+ }, "de_GuardrailSummary");
1203
1889
  var de_ModelCustomizationJobSummaries = /* @__PURE__ */ __name((output, context) => {
1204
1890
  const retVal = (output || []).filter((e) => e != null).map((entry) => {
1205
1891
  return de_ModelCustomizationJobSummary(entry, context);
@@ -1272,6 +1958,8 @@ var _bP = "byProvider";
1272
1958
  var _cTA = "creationTimeAfter";
1273
1959
  var _cTB = "creationTimeBefore";
1274
1960
  var _fMAE = "foundationModelArnEquals";
1961
+ var _gI = "guardrailIdentifier";
1962
+ var _gV = "guardrailVersion";
1275
1963
  var _mAE = "modelArnEquals";
1276
1964
  var _mR = "maxResults";
1277
1965
  var _nC = "nameContains";
@@ -1280,7 +1968,58 @@ var _sB = "sortBy";
1280
1968
  var _sE = "statusEquals";
1281
1969
  var _sO = "sortOrder";
1282
1970
 
1971
+ // src/commands/CreateEvaluationJobCommand.ts
1972
+ var _CreateEvaluationJobCommand = class _CreateEvaluationJobCommand extends import_smithy_client.Command.classBuilder().ep({
1973
+ ...commonParams
1974
+ }).m(function(Command, cs, config, o) {
1975
+ return [
1976
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1977
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1978
+ ];
1979
+ }).s("AmazonBedrockControlPlaneService", "CreateEvaluationJob", {}).n("BedrockClient", "CreateEvaluationJobCommand").f(CreateEvaluationJobRequestFilterSensitiveLog, void 0).ser(se_CreateEvaluationJobCommand).de(de_CreateEvaluationJobCommand).build() {
1980
+ };
1981
+ __name(_CreateEvaluationJobCommand, "CreateEvaluationJobCommand");
1982
+ var CreateEvaluationJobCommand = _CreateEvaluationJobCommand;
1983
+
1984
+ // src/commands/CreateGuardrailCommand.ts
1985
+
1986
+
1987
+
1988
+
1989
+ var _CreateGuardrailCommand = class _CreateGuardrailCommand extends import_smithy_client.Command.classBuilder().ep({
1990
+ ...commonParams
1991
+ }).m(function(Command, cs, config, o) {
1992
+ return [
1993
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1994
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1995
+ ];
1996
+ }).s("AmazonBedrockControlPlaneService", "CreateGuardrail", {}).n("BedrockClient", "CreateGuardrailCommand").f(CreateGuardrailRequestFilterSensitiveLog, void 0).ser(se_CreateGuardrailCommand).de(de_CreateGuardrailCommand).build() {
1997
+ };
1998
+ __name(_CreateGuardrailCommand, "CreateGuardrailCommand");
1999
+ var CreateGuardrailCommand = _CreateGuardrailCommand;
2000
+
2001
+ // src/commands/CreateGuardrailVersionCommand.ts
2002
+
2003
+
2004
+
2005
+
2006
+ var _CreateGuardrailVersionCommand = class _CreateGuardrailVersionCommand extends import_smithy_client.Command.classBuilder().ep({
2007
+ ...commonParams
2008
+ }).m(function(Command, cs, config, o) {
2009
+ return [
2010
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2011
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2012
+ ];
2013
+ }).s("AmazonBedrockControlPlaneService", "CreateGuardrailVersion", {}).n("BedrockClient", "CreateGuardrailVersionCommand").f(CreateGuardrailVersionRequestFilterSensitiveLog, void 0).ser(se_CreateGuardrailVersionCommand).de(de_CreateGuardrailVersionCommand).build() {
2014
+ };
2015
+ __name(_CreateGuardrailVersionCommand, "CreateGuardrailVersionCommand");
2016
+ var CreateGuardrailVersionCommand = _CreateGuardrailVersionCommand;
2017
+
1283
2018
  // src/commands/CreateModelCustomizationJobCommand.ts
2019
+
2020
+
2021
+
2022
+
1284
2023
  var _CreateModelCustomizationJobCommand = class _CreateModelCustomizationJobCommand extends import_smithy_client.Command.classBuilder().ep({
1285
2024
  ...commonParams
1286
2025
  }).m(function(Command, cs, config, o) {
@@ -1327,6 +2066,23 @@ var _DeleteCustomModelCommand = class _DeleteCustomModelCommand extends import_s
1327
2066
  __name(_DeleteCustomModelCommand, "DeleteCustomModelCommand");
1328
2067
  var DeleteCustomModelCommand = _DeleteCustomModelCommand;
1329
2068
 
2069
+ // src/commands/DeleteGuardrailCommand.ts
2070
+
2071
+
2072
+
2073
+
2074
+ var _DeleteGuardrailCommand = class _DeleteGuardrailCommand extends import_smithy_client.Command.classBuilder().ep({
2075
+ ...commonParams
2076
+ }).m(function(Command, cs, config, o) {
2077
+ return [
2078
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2079
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2080
+ ];
2081
+ }).s("AmazonBedrockControlPlaneService", "DeleteGuardrail", {}).n("BedrockClient", "DeleteGuardrailCommand").f(void 0, void 0).ser(se_DeleteGuardrailCommand).de(de_DeleteGuardrailCommand).build() {
2082
+ };
2083
+ __name(_DeleteGuardrailCommand, "DeleteGuardrailCommand");
2084
+ var DeleteGuardrailCommand = _DeleteGuardrailCommand;
2085
+
1330
2086
  // src/commands/DeleteModelInvocationLoggingConfigurationCommand.ts
1331
2087
 
1332
2088
 
@@ -1378,6 +2134,23 @@ var _GetCustomModelCommand = class _GetCustomModelCommand extends import_smithy_
1378
2134
  __name(_GetCustomModelCommand, "GetCustomModelCommand");
1379
2135
  var GetCustomModelCommand = _GetCustomModelCommand;
1380
2136
 
2137
+ // src/commands/GetEvaluationJobCommand.ts
2138
+
2139
+
2140
+
2141
+
2142
+ var _GetEvaluationJobCommand = class _GetEvaluationJobCommand extends import_smithy_client.Command.classBuilder().ep({
2143
+ ...commonParams
2144
+ }).m(function(Command, cs, config, o) {
2145
+ return [
2146
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2147
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2148
+ ];
2149
+ }).s("AmazonBedrockControlPlaneService", "GetEvaluationJob", {}).n("BedrockClient", "GetEvaluationJobCommand").f(GetEvaluationJobRequestFilterSensitiveLog, GetEvaluationJobResponseFilterSensitiveLog).ser(se_GetEvaluationJobCommand).de(de_GetEvaluationJobCommand).build() {
2150
+ };
2151
+ __name(_GetEvaluationJobCommand, "GetEvaluationJobCommand");
2152
+ var GetEvaluationJobCommand = _GetEvaluationJobCommand;
2153
+
1381
2154
  // src/commands/GetFoundationModelCommand.ts
1382
2155
 
1383
2156
 
@@ -1395,6 +2168,23 @@ var _GetFoundationModelCommand = class _GetFoundationModelCommand extends import
1395
2168
  __name(_GetFoundationModelCommand, "GetFoundationModelCommand");
1396
2169
  var GetFoundationModelCommand = _GetFoundationModelCommand;
1397
2170
 
2171
+ // src/commands/GetGuardrailCommand.ts
2172
+
2173
+
2174
+
2175
+
2176
+ var _GetGuardrailCommand = class _GetGuardrailCommand extends import_smithy_client.Command.classBuilder().ep({
2177
+ ...commonParams
2178
+ }).m(function(Command, cs, config, o) {
2179
+ return [
2180
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2181
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2182
+ ];
2183
+ }).s("AmazonBedrockControlPlaneService", "GetGuardrail", {}).n("BedrockClient", "GetGuardrailCommand").f(void 0, GetGuardrailResponseFilterSensitiveLog).ser(se_GetGuardrailCommand).de(de_GetGuardrailCommand).build() {
2184
+ };
2185
+ __name(_GetGuardrailCommand, "GetGuardrailCommand");
2186
+ var GetGuardrailCommand = _GetGuardrailCommand;
2187
+
1398
2188
  // src/commands/GetModelCustomizationJobCommand.ts
1399
2189
 
1400
2190
 
@@ -1463,6 +2253,23 @@ var _ListCustomModelsCommand = class _ListCustomModelsCommand extends import_smi
1463
2253
  __name(_ListCustomModelsCommand, "ListCustomModelsCommand");
1464
2254
  var ListCustomModelsCommand = _ListCustomModelsCommand;
1465
2255
 
2256
+ // src/commands/ListEvaluationJobsCommand.ts
2257
+
2258
+
2259
+
2260
+
2261
+ var _ListEvaluationJobsCommand = class _ListEvaluationJobsCommand extends import_smithy_client.Command.classBuilder().ep({
2262
+ ...commonParams
2263
+ }).m(function(Command, cs, config, o) {
2264
+ return [
2265
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2266
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2267
+ ];
2268
+ }).s("AmazonBedrockControlPlaneService", "ListEvaluationJobs", {}).n("BedrockClient", "ListEvaluationJobsCommand").f(void 0, void 0).ser(se_ListEvaluationJobsCommand).de(de_ListEvaluationJobsCommand).build() {
2269
+ };
2270
+ __name(_ListEvaluationJobsCommand, "ListEvaluationJobsCommand");
2271
+ var ListEvaluationJobsCommand = _ListEvaluationJobsCommand;
2272
+
1466
2273
  // src/commands/ListFoundationModelsCommand.ts
1467
2274
 
1468
2275
 
@@ -1480,6 +2287,23 @@ var _ListFoundationModelsCommand = class _ListFoundationModelsCommand extends im
1480
2287
  __name(_ListFoundationModelsCommand, "ListFoundationModelsCommand");
1481
2288
  var ListFoundationModelsCommand = _ListFoundationModelsCommand;
1482
2289
 
2290
+ // src/commands/ListGuardrailsCommand.ts
2291
+
2292
+
2293
+
2294
+
2295
+ var _ListGuardrailsCommand = class _ListGuardrailsCommand extends import_smithy_client.Command.classBuilder().ep({
2296
+ ...commonParams
2297
+ }).m(function(Command, cs, config, o) {
2298
+ return [
2299
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2300
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2301
+ ];
2302
+ }).s("AmazonBedrockControlPlaneService", "ListGuardrails", {}).n("BedrockClient", "ListGuardrailsCommand").f(void 0, ListGuardrailsResponseFilterSensitiveLog).ser(se_ListGuardrailsCommand).de(de_ListGuardrailsCommand).build() {
2303
+ };
2304
+ __name(_ListGuardrailsCommand, "ListGuardrailsCommand");
2305
+ var ListGuardrailsCommand = _ListGuardrailsCommand;
2306
+
1483
2307
  // src/commands/ListModelCustomizationJobsCommand.ts
1484
2308
 
1485
2309
 
@@ -1548,6 +2372,23 @@ var _PutModelInvocationLoggingConfigurationCommand = class _PutModelInvocationLo
1548
2372
  __name(_PutModelInvocationLoggingConfigurationCommand, "PutModelInvocationLoggingConfigurationCommand");
1549
2373
  var PutModelInvocationLoggingConfigurationCommand = _PutModelInvocationLoggingConfigurationCommand;
1550
2374
 
2375
+ // src/commands/StopEvaluationJobCommand.ts
2376
+
2377
+
2378
+
2379
+
2380
+ var _StopEvaluationJobCommand = class _StopEvaluationJobCommand extends import_smithy_client.Command.classBuilder().ep({
2381
+ ...commonParams
2382
+ }).m(function(Command, cs, config, o) {
2383
+ return [
2384
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2385
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2386
+ ];
2387
+ }).s("AmazonBedrockControlPlaneService", "StopEvaluationJob", {}).n("BedrockClient", "StopEvaluationJobCommand").f(StopEvaluationJobRequestFilterSensitiveLog, void 0).ser(se_StopEvaluationJobCommand).de(de_StopEvaluationJobCommand).build() {
2388
+ };
2389
+ __name(_StopEvaluationJobCommand, "StopEvaluationJobCommand");
2390
+ var StopEvaluationJobCommand = _StopEvaluationJobCommand;
2391
+
1551
2392
  // src/commands/StopModelCustomizationJobCommand.ts
1552
2393
 
1553
2394
 
@@ -1599,6 +2440,23 @@ var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_cl
1599
2440
  __name(_UntagResourceCommand, "UntagResourceCommand");
1600
2441
  var UntagResourceCommand = _UntagResourceCommand;
1601
2442
 
2443
+ // src/commands/UpdateGuardrailCommand.ts
2444
+
2445
+
2446
+
2447
+
2448
+ var _UpdateGuardrailCommand = class _UpdateGuardrailCommand extends import_smithy_client.Command.classBuilder().ep({
2449
+ ...commonParams
2450
+ }).m(function(Command, cs, config, o) {
2451
+ return [
2452
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2453
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2454
+ ];
2455
+ }).s("AmazonBedrockControlPlaneService", "UpdateGuardrail", {}).n("BedrockClient", "UpdateGuardrailCommand").f(UpdateGuardrailRequestFilterSensitiveLog, void 0).ser(se_UpdateGuardrailCommand).de(de_UpdateGuardrailCommand).build() {
2456
+ };
2457
+ __name(_UpdateGuardrailCommand, "UpdateGuardrailCommand");
2458
+ var UpdateGuardrailCommand = _UpdateGuardrailCommand;
2459
+
1602
2460
  // src/commands/UpdateProvisionedModelThroughputCommand.ts
1603
2461
 
1604
2462
 
@@ -1618,25 +2476,35 @@ var UpdateProvisionedModelThroughputCommand = _UpdateProvisionedModelThroughputC
1618
2476
 
1619
2477
  // src/Bedrock.ts
1620
2478
  var commands = {
2479
+ CreateEvaluationJobCommand,
2480
+ CreateGuardrailCommand,
2481
+ CreateGuardrailVersionCommand,
1621
2482
  CreateModelCustomizationJobCommand,
1622
2483
  CreateProvisionedModelThroughputCommand,
1623
2484
  DeleteCustomModelCommand,
2485
+ DeleteGuardrailCommand,
1624
2486
  DeleteModelInvocationLoggingConfigurationCommand,
1625
2487
  DeleteProvisionedModelThroughputCommand,
1626
2488
  GetCustomModelCommand,
2489
+ GetEvaluationJobCommand,
1627
2490
  GetFoundationModelCommand,
2491
+ GetGuardrailCommand,
1628
2492
  GetModelCustomizationJobCommand,
1629
2493
  GetModelInvocationLoggingConfigurationCommand,
1630
2494
  GetProvisionedModelThroughputCommand,
1631
2495
  ListCustomModelsCommand,
2496
+ ListEvaluationJobsCommand,
1632
2497
  ListFoundationModelsCommand,
2498
+ ListGuardrailsCommand,
1633
2499
  ListModelCustomizationJobsCommand,
1634
2500
  ListProvisionedModelThroughputsCommand,
1635
2501
  ListTagsForResourceCommand,
1636
2502
  PutModelInvocationLoggingConfigurationCommand,
2503
+ StopEvaluationJobCommand,
1637
2504
  StopModelCustomizationJobCommand,
1638
2505
  TagResourceCommand,
1639
2506
  UntagResourceCommand,
2507
+ UpdateGuardrailCommand,
1640
2508
  UpdateProvisionedModelThroughputCommand
1641
2509
  };
1642
2510
  var _Bedrock = class _Bedrock extends BedrockClient {
@@ -1649,6 +2517,14 @@ var Bedrock = _Bedrock;
1649
2517
 
1650
2518
  var paginateListCustomModels = (0, import_core.createPaginator)(BedrockClient, ListCustomModelsCommand, "nextToken", "nextToken", "maxResults");
1651
2519
 
2520
+ // src/pagination/ListEvaluationJobsPaginator.ts
2521
+
2522
+ var paginateListEvaluationJobs = (0, import_core.createPaginator)(BedrockClient, ListEvaluationJobsCommand, "nextToken", "nextToken", "maxResults");
2523
+
2524
+ // src/pagination/ListGuardrailsPaginator.ts
2525
+
2526
+ var paginateListGuardrails = (0, import_core.createPaginator)(BedrockClient, ListGuardrailsCommand, "nextToken", "nextToken", "maxResults");
2527
+
1652
2528
  // src/pagination/ListModelCustomizationJobsPaginator.ts
1653
2529
 
1654
2530
  var paginateListModelCustomizationJobs = (0, import_core.createPaginator)(BedrockClient, ListModelCustomizationJobsCommand, "nextToken", "nextToken", "maxResults");
@@ -1664,49 +2540,99 @@ var paginateListProvisionedModelThroughputs = (0, import_core.createPaginator)(B
1664
2540
  BedrockClient,
1665
2541
  Bedrock,
1666
2542
  $Command,
2543
+ CreateEvaluationJobCommand,
2544
+ CreateGuardrailCommand,
2545
+ CreateGuardrailVersionCommand,
1667
2546
  CreateModelCustomizationJobCommand,
1668
2547
  CreateProvisionedModelThroughputCommand,
1669
2548
  DeleteCustomModelCommand,
2549
+ DeleteGuardrailCommand,
1670
2550
  DeleteModelInvocationLoggingConfigurationCommand,
1671
2551
  DeleteProvisionedModelThroughputCommand,
1672
2552
  GetCustomModelCommand,
2553
+ GetEvaluationJobCommand,
1673
2554
  GetFoundationModelCommand,
2555
+ GetGuardrailCommand,
1674
2556
  GetModelCustomizationJobCommand,
1675
2557
  GetModelInvocationLoggingConfigurationCommand,
1676
2558
  GetProvisionedModelThroughputCommand,
1677
2559
  ListCustomModelsCommand,
2560
+ ListEvaluationJobsCommand,
1678
2561
  ListFoundationModelsCommand,
2562
+ ListGuardrailsCommand,
1679
2563
  ListModelCustomizationJobsCommand,
1680
2564
  ListProvisionedModelThroughputsCommand,
1681
2565
  ListTagsForResourceCommand,
1682
2566
  PutModelInvocationLoggingConfigurationCommand,
2567
+ StopEvaluationJobCommand,
1683
2568
  StopModelCustomizationJobCommand,
1684
2569
  TagResourceCommand,
1685
2570
  UntagResourceCommand,
2571
+ UpdateGuardrailCommand,
1686
2572
  UpdateProvisionedModelThroughputCommand,
1687
2573
  paginateListCustomModels,
2574
+ paginateListEvaluationJobs,
2575
+ paginateListGuardrails,
1688
2576
  paginateListModelCustomizationJobs,
1689
2577
  paginateListProvisionedModelThroughputs,
1690
2578
  AccessDeniedException,
2579
+ ConflictException,
2580
+ EvaluationDatasetLocation,
2581
+ EvaluationTaskType,
2582
+ EvaluationConfig,
2583
+ EvaluationModelConfig,
2584
+ EvaluationInferenceConfig,
1691
2585
  InternalServerException,
2586
+ ResourceNotFoundException,
2587
+ ServiceQuotaExceededException,
1692
2588
  ThrottlingException,
1693
2589
  ValidationException,
1694
- ConflictException,
1695
- ResourceNotFoundException,
2590
+ EvaluationJobType,
2591
+ EvaluationJobStatus,
2592
+ SortJobsBy,
2593
+ SortOrder,
2594
+ GuardrailFilterStrength,
2595
+ GuardrailContentFilterType,
2596
+ GuardrailSensitiveInformationAction,
2597
+ GuardrailPiiEntityType,
2598
+ GuardrailTopicType,
2599
+ GuardrailManagedWordsType,
2600
+ TooManyTagsException,
2601
+ GuardrailStatus,
1696
2602
  CustomizationType,
1697
2603
  ModelCustomization,
1698
2604
  InferenceType,
1699
2605
  ModelModality,
1700
2606
  FoundationModelLifecycleStatus,
1701
2607
  SortModelsBy,
1702
- SortOrder,
1703
2608
  CommitmentDuration,
1704
- ServiceQuotaExceededException,
1705
- TooManyTagsException,
1706
2609
  ProvisionedModelStatus,
1707
2610
  SortByProvisionedModels,
1708
2611
  ModelCustomizationJobStatus,
1709
- SortJobsBy,
1710
- FineTuningJobStatus
2612
+ FineTuningJobStatus,
2613
+ EvaluationDatasetFilterSensitiveLog,
2614
+ EvaluationDatasetMetricConfigFilterSensitiveLog,
2615
+ AutomatedEvaluationConfigFilterSensitiveLog,
2616
+ HumanEvaluationCustomMetricFilterSensitiveLog,
2617
+ HumanWorkflowConfigFilterSensitiveLog,
2618
+ HumanEvaluationConfigFilterSensitiveLog,
2619
+ EvaluationConfigFilterSensitiveLog,
2620
+ EvaluationBedrockModelFilterSensitiveLog,
2621
+ EvaluationModelConfigFilterSensitiveLog,
2622
+ EvaluationInferenceConfigFilterSensitiveLog,
2623
+ CreateEvaluationJobRequestFilterSensitiveLog,
2624
+ GetEvaluationJobRequestFilterSensitiveLog,
2625
+ GetEvaluationJobResponseFilterSensitiveLog,
2626
+ StopEvaluationJobRequestFilterSensitiveLog,
2627
+ GuardrailTopicConfigFilterSensitiveLog,
2628
+ GuardrailTopicPolicyConfigFilterSensitiveLog,
2629
+ CreateGuardrailRequestFilterSensitiveLog,
2630
+ CreateGuardrailVersionRequestFilterSensitiveLog,
2631
+ GuardrailTopicFilterSensitiveLog,
2632
+ GuardrailTopicPolicyFilterSensitiveLog,
2633
+ GetGuardrailResponseFilterSensitiveLog,
2634
+ GuardrailSummaryFilterSensitiveLog,
2635
+ ListGuardrailsResponseFilterSensitiveLog,
2636
+ UpdateGuardrailRequestFilterSensitiveLog
1711
2637
  });
1712
2638