@aws-sdk/client-bedrock 3.936.0 → 3.938.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 (45) hide show
  1. package/README.md +24 -0
  2. package/dist-cjs/index.js +183 -20
  3. package/dist-es/Bedrock.js +6 -0
  4. package/dist-es/commands/DeleteEnforcedGuardrailConfigurationCommand.js +16 -0
  5. package/dist-es/commands/ListEnforcedGuardrailsConfigurationCommand.js +16 -0
  6. package/dist-es/commands/PutEnforcedGuardrailConfigurationCommand.js +16 -0
  7. package/dist-es/commands/index.js +3 -0
  8. package/dist-es/models/enums.js +4 -0
  9. package/dist-es/models/models_0.js +3 -1
  10. package/dist-es/pagination/ListEnforcedGuardrailsConfigurationPaginator.js +4 -0
  11. package/dist-es/pagination/index.js +1 -0
  12. package/dist-es/schemas/schemas_0.js +133 -20
  13. package/dist-types/Bedrock.d.ts +22 -0
  14. package/dist-types/BedrockClient.d.ts +5 -2
  15. package/dist-types/commands/DeleteEnforcedGuardrailConfigurationCommand.d.ts +87 -0
  16. package/dist-types/commands/DeleteModelInvocationLoggingConfigurationCommand.d.ts +1 -1
  17. package/dist-types/commands/GetModelInvocationLoggingConfigurationCommand.d.ts +1 -1
  18. package/dist-types/commands/ListEnforcedGuardrailsConfigurationCommand.d.ts +103 -0
  19. package/dist-types/commands/ListInferenceProfilesCommand.d.ts +2 -1
  20. package/dist-types/commands/PutEnforcedGuardrailConfigurationCommand.d.ts +99 -0
  21. package/dist-types/commands/PutModelInvocationLoggingConfigurationCommand.d.ts +1 -2
  22. package/dist-types/commands/index.d.ts +3 -0
  23. package/dist-types/models/enums.d.ts +12 -0
  24. package/dist-types/models/models_0.d.ts +167 -124
  25. package/dist-types/models/models_1.d.ts +124 -1
  26. package/dist-types/pagination/ListEnforcedGuardrailsConfigurationPaginator.d.ts +7 -0
  27. package/dist-types/pagination/index.d.ts +1 -0
  28. package/dist-types/schemas/schemas_0.d.ts +12 -0
  29. package/dist-types/ts3.4/Bedrock.d.ts +70 -0
  30. package/dist-types/ts3.4/BedrockClient.d.ts +18 -0
  31. package/dist-types/ts3.4/commands/DeleteEnforcedGuardrailConfigurationCommand.d.ts +51 -0
  32. package/dist-types/ts3.4/commands/DeleteModelInvocationLoggingConfigurationCommand.d.ts +1 -1
  33. package/dist-types/ts3.4/commands/GetModelInvocationLoggingConfigurationCommand.d.ts +1 -1
  34. package/dist-types/ts3.4/commands/ListEnforcedGuardrailsConfigurationCommand.d.ts +51 -0
  35. package/dist-types/ts3.4/commands/ListInferenceProfilesCommand.d.ts +2 -4
  36. package/dist-types/ts3.4/commands/PutEnforcedGuardrailConfigurationCommand.d.ts +51 -0
  37. package/dist-types/ts3.4/commands/PutModelInvocationLoggingConfigurationCommand.d.ts +4 -2
  38. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  39. package/dist-types/ts3.4/models/enums.d.ts +5 -0
  40. package/dist-types/ts3.4/models/models_0.d.ts +45 -30
  41. package/dist-types/ts3.4/models/models_1.d.ts +31 -0
  42. package/dist-types/ts3.4/pagination/ListEnforcedGuardrailsConfigurationPaginator.d.ts +11 -0
  43. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  44. package/dist-types/ts3.4/schemas/schemas_0.d.ts +12 -0
  45. package/package.json +1 -1
package/README.md CHANGED
@@ -394,6 +394,14 @@ DeleteCustomModelDeployment
394
394
 
395
395
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock/command/DeleteCustomModelDeploymentCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/DeleteCustomModelDeploymentCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/DeleteCustomModelDeploymentCommandOutput/)
396
396
 
397
+ </details>
398
+ <details>
399
+ <summary>
400
+ DeleteEnforcedGuardrailConfiguration
401
+ </summary>
402
+
403
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock/command/DeleteEnforcedGuardrailConfigurationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/DeleteEnforcedGuardrailConfigurationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/DeleteEnforcedGuardrailConfigurationCommandOutput/)
404
+
397
405
  </details>
398
406
  <details>
399
407
  <summary>
@@ -714,6 +722,14 @@ ListCustomModels
714
722
 
715
723
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock/command/ListCustomModelsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/ListCustomModelsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/ListCustomModelsCommandOutput/)
716
724
 
725
+ </details>
726
+ <details>
727
+ <summary>
728
+ ListEnforcedGuardrailsConfiguration
729
+ </summary>
730
+
731
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock/command/ListEnforcedGuardrailsConfigurationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/ListEnforcedGuardrailsConfigurationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/ListEnforcedGuardrailsConfigurationCommandOutput/)
732
+
717
733
  </details>
718
734
  <details>
719
735
  <summary>
@@ -826,6 +842,14 @@ ListTagsForResource
826
842
 
827
843
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock/command/ListTagsForResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/ListTagsForResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/ListTagsForResourceCommandOutput/)
828
844
 
845
+ </details>
846
+ <details>
847
+ <summary>
848
+ PutEnforcedGuardrailConfiguration
849
+ </summary>
850
+
851
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock/command/PutEnforcedGuardrailConfigurationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/PutEnforcedGuardrailConfigurationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/PutEnforcedGuardrailConfigurationCommandOutput/)
852
+
829
853
  </details>
830
854
  <details>
831
855
  <summary>
package/dist-cjs/index.js CHANGED
@@ -255,6 +255,9 @@ const _AEC = "AutomatedEvaluationConfig";
255
255
  const _AECM = "AutomatedEvaluationCustomMetrics";
256
256
  const _AECMC = "AutomatedEvaluationCustomMetricConfig";
257
257
  const _AECMS = "AutomatedEvaluationCustomMetricSource";
258
+ const _AEGIIC = "AccountEnforcedGuardrailInferenceInputConfiguration";
259
+ const _AEGOC = "AccountEnforcedGuardrailOutputConfiguration";
260
+ const _AEGOCc = "AccountEnforcedGuardrailsOutputConfiguration";
258
261
  const _ARCDSL = "AutomatedReasoningCheckDifferenceScenarioList";
259
262
  const _ARCF = "AutomatedReasoningCheckFinding";
260
263
  const _ARCFL = "AutomatedReasoningCheckFindingList";
@@ -465,6 +468,9 @@ const _DCMDR = "DeleteCustomModelDeploymentRequest";
465
468
  const _DCMDRe = "DeleteCustomModelDeploymentResponse";
466
469
  const _DCMR = "DeleteCustomModelRequest";
467
470
  const _DCMRe = "DeleteCustomModelResponse";
471
+ const _DEGC = "DeleteEnforcedGuardrailConfiguration";
472
+ const _DEGCR = "DeleteEnforcedGuardrailConfigurationRequest";
473
+ const _DEGCRe = "DeleteEnforcedGuardrailConfigurationResponse";
468
474
  const _DFMA = "DeleteFoundationModelAgreement";
469
475
  const _DFMAR = "DeleteFoundationModelAgreementRequest";
470
476
  const _DFMARe = "DeleteFoundationModelAgreementResponse";
@@ -720,6 +726,9 @@ const _LCMDR = "ListCustomModelDeploymentsRequest";
720
726
  const _LCMDRi = "ListCustomModelDeploymentsResponse";
721
727
  const _LCMR = "ListCustomModelsRequest";
722
728
  const _LCMRi = "ListCustomModelsResponse";
729
+ const _LEGC = "ListEnforcedGuardrailsConfiguration";
730
+ const _LEGCR = "ListEnforcedGuardrailsConfigurationRequest";
731
+ const _LEGCRi = "ListEnforcedGuardrailsConfigurationResponse";
723
732
  const _LEJ = "ListEvaluationJobs";
724
733
  const _LEJR = "ListEvaluationJobsRequest";
725
734
  const _LEJRi = "ListEvaluationJobsResponse";
@@ -789,6 +798,9 @@ const _OC = "OrchestrationConfiguration";
789
798
  const _ODC = "OutputDataConfig";
790
799
  const _Of = "Offers";
791
800
  const _PC = "PerformanceConfiguration";
801
+ const _PEGC = "PutEnforcedGuardrailConfiguration";
802
+ const _PEGCR = "PutEnforcedGuardrailConfigurationRequest";
803
+ const _PEGCRu = "PutEnforcedGuardrailConfigurationResponse";
792
804
  const _PMILC = "PutModelInvocationLoggingConfiguration";
793
805
  const _PMILCR = "PutModelInvocationLoggingConfigurationRequest";
794
806
  const _PMILCRu = "PutModelInvocationLoggingConfigurationResponse";
@@ -947,7 +959,8 @@ const _bWT = "buildWorkflowType";
947
959
  const _c = "client";
948
960
  const _cA = "createdAt";
949
961
  const _cAr = "createdAfter";
950
- const _cB = "createdBefore";
962
+ const _cB = "createdBy";
963
+ const _cBr = "createdBefore";
951
964
  const _cC = "customizationConfig";
952
965
  const _cD = "commitmentDuration";
953
966
  const _cEKI = "customerEncryptionKeyId";
@@ -956,6 +969,7 @@ const _cF = "copyFrom";
956
969
  const _cFS = "claimsFalseScenario";
957
970
  const _cGP = "contextualGroundingPolicy";
958
971
  const _cGPC = "contextualGroundingPolicyConfig";
972
+ const _cI = "configId";
959
973
  const _cM = "customMetrics";
960
974
  const _cMA = "customModelArn";
961
975
  const _cMC = "customMetricConfig";
@@ -1064,8 +1078,10 @@ const _gA = "guardrailArn";
1064
1078
  const _gC = "guardContent";
1065
1079
  const _gCe = "generationConfiguration";
1066
1080
  const _gCu = "guardrailConfiguration";
1067
- const _gI = "guardrailId";
1068
- const _gIu = "guardrailIdentifier";
1081
+ const _gCua = "guardrailsConfig";
1082
+ const _gI = "guardrailIdentifier";
1083
+ const _gIC = "guardrailInferenceConfig";
1084
+ const _gIu = "guardrailId";
1069
1085
  const _gPA = "guardrailProfileArn";
1070
1086
  const _gPI = "guardrailProfileIdentifier";
1071
1087
  const _gPIu = "guardrailProfileId";
@@ -1109,9 +1125,10 @@ const _iPS = "inferenceProfileSummaries";
1109
1125
  const _iS = "instructSupported";
1110
1126
  const _iSI = "inferenceSourceIdentifier";
1111
1127
  const _iSn = "inputStrength";
1112
- const _iT = "instanceType";
1128
+ const _iT = "inputTags";
1113
1129
  const _iTS = "inferenceTypesSupported";
1114
1130
  const _iTd = "idempotencyToken";
1131
+ const _iTn = "instanceType";
1115
1132
  const _id = "identifier";
1116
1133
  const _im = "impossible";
1117
1134
  const _in = "instructions";
@@ -1204,7 +1221,7 @@ const _nORR = "numberOfRerankedResults";
1204
1221
  const _nT = "nextToken";
1205
1222
  const _nTo = "noTranslations";
1206
1223
  const _nV = "newValue";
1207
- const _o = "options";
1224
+ const _o = "owner";
1208
1225
  const _oA = "outputAction";
1209
1226
  const _oAI = "ownerAccountId";
1210
1227
  const _oAr = "orAll";
@@ -1222,6 +1239,7 @@ const _oST = "overrideSearchType";
1222
1239
  const _oT = "offerToken";
1223
1240
  const _oTf = "offerType";
1224
1241
  const _of = "offers";
1242
+ const _op = "options";
1225
1243
  const _p = "premises";
1226
1244
  const _pA = "policyArn";
1227
1245
  const _pC = "performanceConfig";
@@ -1380,6 +1398,7 @@ const _ty = "type";
1380
1398
  const _typ = "types";
1381
1399
  const _u = "unit";
1382
1400
  const _uA = "updatedAt";
1401
+ const _uB = "updatedBy";
1383
1402
  const _uBPT = "usageBasedPricingTerm";
1384
1403
  const _uC = "untranslatedClaims";
1385
1404
  const _uFRF = "updateFromRulesFeedback";
@@ -1482,6 +1501,22 @@ var AccessDeniedException = [
1482
1501
  [0],
1483
1502
  ];
1484
1503
  schema.TypeRegistry.for(n0).registerError(AccessDeniedException, AccessDeniedException$1);
1504
+ var AccountEnforcedGuardrailInferenceInputConfiguration = [
1505
+ 3,
1506
+ n0,
1507
+ _AEGIIC,
1508
+ 0,
1509
+ [_gI, _gV, _iT],
1510
+ [0, 0, 0],
1511
+ ];
1512
+ var AccountEnforcedGuardrailOutputConfiguration = [
1513
+ 3,
1514
+ n0,
1515
+ _AEGOC,
1516
+ 0,
1517
+ [_cI, _gA, _gIu, _iT, _gV, _cA, _cB, _uA, _uB, _o],
1518
+ [0, 0, 0, 0, 0, 5, 0, 5, 0, 0],
1519
+ ];
1485
1520
  var AgreementAvailability = [3, n0, _AA, 0, [_s, _eM], [0, 0]];
1486
1521
  var AutomatedEvaluationConfig = [
1487
1522
  3,
@@ -1586,7 +1621,7 @@ var AutomatedReasoningCheckTranslationAmbiguousFinding = [
1586
1621
  n0,
1587
1622
  _ARCTAF,
1588
1623
  0,
1589
- [_o, _dS],
1624
+ [_op, _dS],
1590
1625
  [
1591
1626
  [() => AutomatedReasoningCheckTranslationOptionList, 0],
1592
1627
  [() => AutomatedReasoningCheckDifferenceScenarioList, 0],
@@ -2239,20 +2274,20 @@ var CreateGuardrailRequest = [
2239
2274
  [0, 4],
2240
2275
  ],
2241
2276
  ];
2242
- var CreateGuardrailResponse = [3, n0, _CGRr, 0, [_gI, _gA, _ve, _cA], [0, 0, 0, 5]];
2277
+ var CreateGuardrailResponse = [3, n0, _CGRr, 0, [_gIu, _gA, _ve, _cA], [0, 0, 0, 5]];
2243
2278
  var CreateGuardrailVersionRequest = [
2244
2279
  3,
2245
2280
  n0,
2246
2281
  _CGVR,
2247
2282
  0,
2248
- [_gIu, _d, _cRT],
2283
+ [_gI, _d, _cRT],
2249
2284
  [
2250
2285
  [0, 1],
2251
2286
  [() => GuardrailDescription, 0],
2252
2287
  [0, 4],
2253
2288
  ],
2254
2289
  ];
2255
- var CreateGuardrailVersionResponse = [3, n0, _CGVRr, 0, [_gI, _ve], [0, 0]];
2290
+ var CreateGuardrailVersionResponse = [3, n0, _CGVRr, 0, [_gIu, _ve], [0, 0]];
2256
2291
  var CreateInferenceProfileRequest = [
2257
2292
  3,
2258
2293
  n0,
@@ -2458,6 +2493,8 @@ var DeleteCustomModelDeploymentRequest = [3, n0, _DCMDR, 0, [_cMDI], [[0, 1]]];
2458
2493
  var DeleteCustomModelDeploymentResponse = [3, n0, _DCMDRe, 0, [], []];
2459
2494
  var DeleteCustomModelRequest = [3, n0, _DCMR, 0, [_mI], [[0, 1]]];
2460
2495
  var DeleteCustomModelResponse = [3, n0, _DCMRe, 0, [], []];
2496
+ var DeleteEnforcedGuardrailConfigurationRequest = [3, n0, _DEGCR, 0, [_cI], [[0, 1]]];
2497
+ var DeleteEnforcedGuardrailConfigurationResponse = [3, n0, _DEGCRe, 0, [], []];
2461
2498
  var DeleteFoundationModelAgreementRequest = [3, n0, _DFMAR, 0, [_mIo], [0]];
2462
2499
  var DeleteFoundationModelAgreementResponse = [3, n0, _DFMARe, 0, [], []];
2463
2500
  var DeleteGuardrailRequest = [
@@ -2465,7 +2502,7 @@ var DeleteGuardrailRequest = [
2465
2502
  n0,
2466
2503
  _DGR,
2467
2504
  0,
2468
- [_gIu, _gV],
2505
+ [_gI, _gV],
2469
2506
  [
2470
2507
  [0, 1],
2471
2508
  [
@@ -2836,7 +2873,7 @@ var GetGuardrailRequest = [
2836
2873
  n0,
2837
2874
  _GGR,
2838
2875
  0,
2839
- [_gIu, _gV],
2876
+ [_gI, _gV],
2840
2877
  [
2841
2878
  [0, 1],
2842
2879
  [
@@ -2852,7 +2889,7 @@ var GetGuardrailResponse = [
2852
2889
  n0,
2853
2890
  _GGRe,
2854
2891
  0,
2855
- [_n, _d, _gI, _gA, _ve, _s, _tP, _cP, _wP, _sIP, _cGP, _aRP, _cRD, _cA, _uA, _sRt, _fR, _bIM, _bOM, _kKA],
2892
+ [_n, _d, _gIu, _gA, _ve, _s, _tP, _cP, _wP, _sIP, _cGP, _aRP, _cRD, _cA, _uA, _sRt, _fR, _bIM, _bOM, _kKA],
2856
2893
  [
2857
2894
  [() => GuardrailName, 0],
2858
2895
  [() => GuardrailDescription, 0],
@@ -3045,7 +3082,7 @@ var GetUseCaseForModelAccessRequest = [3, n0, _GUCFMAR, 0, [], []];
3045
3082
  var GetUseCaseForModelAccessResponse = [3, n0, _GUCFMARe, 0, [_fD], [21]];
3046
3083
  var GuardrailAutomatedReasoningPolicy = [3, n0, _GARP, 0, [_po, _cT], [64 | 0, 1]];
3047
3084
  var GuardrailAutomatedReasoningPolicyConfig = [3, n0, _GARPC, 0, [_po, _cT], [64 | 0, 1]];
3048
- var GuardrailConfiguration = [3, n0, _GCu, 0, [_gI, _gV], [0, 0]];
3085
+ var GuardrailConfiguration = [3, n0, _GCu, 0, [_gIu, _gV], [0, 0]];
3049
3086
  var GuardrailContentFilter = [
3050
3087
  3,
3051
3088
  n0,
@@ -3564,12 +3601,12 @@ var ListCustomModelDeploymentsRequest = [
3564
3601
  n0,
3565
3602
  _LCMDR,
3566
3603
  0,
3567
- [_cB, _cAr, _nC, _mR, _nT, _sB, _sO, _sEt, _mAE],
3604
+ [_cBr, _cAr, _nC, _mR, _nT, _sB, _sO, _sEt, _mAE],
3568
3605
  [
3569
3606
  [
3570
3607
  5,
3571
3608
  {
3572
- [_hQ]: _cB,
3609
+ [_hQ]: _cBr,
3573
3610
  },
3574
3611
  ],
3575
3612
  [
@@ -3713,6 +3750,29 @@ var ListCustomModelsResponse = [
3713
3750
  [_nT, _mSod],
3714
3751
  [0, () => CustomModelSummaryList],
3715
3752
  ];
3753
+ var ListEnforcedGuardrailsConfigurationRequest = [
3754
+ 3,
3755
+ n0,
3756
+ _LEGCR,
3757
+ 0,
3758
+ [_nT],
3759
+ [
3760
+ [
3761
+ 0,
3762
+ {
3763
+ [_hQ]: _nT,
3764
+ },
3765
+ ],
3766
+ ],
3767
+ ];
3768
+ var ListEnforcedGuardrailsConfigurationResponse = [
3769
+ 3,
3770
+ n0,
3771
+ _LEGCRi,
3772
+ 0,
3773
+ [_gCua, _nT],
3774
+ [() => AccountEnforcedGuardrailsOutputConfiguration, 0],
3775
+ ];
3716
3776
  var ListEvaluationJobsRequest = [
3717
3777
  3,
3718
3778
  n0,
@@ -3854,12 +3914,12 @@ var ListGuardrailsRequest = [
3854
3914
  n0,
3855
3915
  _LGR,
3856
3916
  0,
3857
- [_gIu, _mR, _nT],
3917
+ [_gI, _mR, _nT],
3858
3918
  [
3859
3919
  [
3860
3920
  0,
3861
3921
  {
3862
- [_hQ]: _gIu,
3922
+ [_hQ]: _gI,
3863
3923
  },
3864
3924
  ],
3865
3925
  [
@@ -4531,6 +4591,22 @@ var ProvisionedModelSummary = [
4531
4591
  [_pMN, _pMA, _mA, _dMA, _fMA, _mU, _dMU, _s, _cD, _cET, _cTr, _lMT],
4532
4592
  [0, 0, 0, 0, 0, 1, 1, 0, 0, 5, 5, 5],
4533
4593
  ];
4594
+ var PutEnforcedGuardrailConfigurationRequest = [
4595
+ 3,
4596
+ n0,
4597
+ _PEGCR,
4598
+ 0,
4599
+ [_cI, _gIC],
4600
+ [0, () => AccountEnforcedGuardrailInferenceInputConfiguration],
4601
+ ];
4602
+ var PutEnforcedGuardrailConfigurationResponse = [
4603
+ 3,
4604
+ n0,
4605
+ _PEGCRu,
4606
+ 0,
4607
+ [_cI, _uA, _uB],
4608
+ [0, 5, 0],
4609
+ ];
4534
4610
  var PutModelInvocationLoggingConfigurationRequest = [
4535
4611
  3,
4536
4612
  n0,
@@ -4624,7 +4700,7 @@ var SageMakerEndpoint = [
4624
4700
  n0,
4625
4701
  _SME,
4626
4702
  0,
4627
- [_iIC, _iT, _eRx, _kEK, _vp],
4703
+ [_iIC, _iTn, _eRx, _kEK, _vp],
4628
4704
  [1, 0, 0, 0, () => VpcConfig],
4629
4705
  ];
4630
4706
  var ServiceQuotaExceededException = [
@@ -4825,7 +4901,7 @@ var UpdateGuardrailRequest = [
4825
4901
  n0,
4826
4902
  _UGR,
4827
4903
  0,
4828
- [_gIu, _n, _d, _tPC, _cPC, _wPC, _sIPC, _cGPC, _aRPC, _cRC, _bIM, _bOM, _kKI],
4904
+ [_gI, _n, _d, _tPC, _cPC, _wPC, _sIPC, _cGPC, _aRPC, _cRC, _bIM, _bOM, _kKI],
4829
4905
  [
4830
4906
  [0, 1],
4831
4907
  [() => GuardrailName, 0],
@@ -4842,7 +4918,7 @@ var UpdateGuardrailRequest = [
4842
4918
  0,
4843
4919
  ],
4844
4920
  ];
4845
- var UpdateGuardrailResponse = [3, n0, _UGRp, 0, [_gI, _gA, _ve, _uA], [0, 0, 0, 5]];
4921
+ var UpdateGuardrailResponse = [3, n0, _UGRp, 0, [_gIu, _gA, _ve, _uA], [0, 0, 0, 5]];
4846
4922
  var UpdateMarketplaceModelEndpointRequest = [
4847
4923
  3,
4848
4924
  n0,
@@ -4912,6 +4988,13 @@ var VectorSearchRerankingConfiguration = [
4912
4988
  var VpcConfig = [3, n0, _VC, 0, [_sI, _sGI], [64 | 0, 64 | 0]];
4913
4989
  var BedrockServiceException = [-3, _sm, "BedrockServiceException", 0, [], []];
4914
4990
  schema.TypeRegistry.for(_sm).registerError(BedrockServiceException, BedrockServiceException$1);
4991
+ var AccountEnforcedGuardrailsOutputConfiguration = [
4992
+ 1,
4993
+ n0,
4994
+ _AEGOCc,
4995
+ 0,
4996
+ () => AccountEnforcedGuardrailOutputConfiguration,
4997
+ ];
4915
4998
  var AutomatedEvaluationCustomMetrics = [
4916
4999
  1,
4917
5000
  n0,
@@ -5698,6 +5781,16 @@ var DeleteCustomModelDeployment = [
5698
5781
  () => DeleteCustomModelDeploymentRequest,
5699
5782
  () => DeleteCustomModelDeploymentResponse,
5700
5783
  ];
5784
+ var DeleteEnforcedGuardrailConfiguration = [
5785
+ 9,
5786
+ n0,
5787
+ _DEGC,
5788
+ {
5789
+ [_ht]: ["DELETE", "/enforcedGuardrailsConfiguration/{configId}", 200],
5790
+ },
5791
+ () => DeleteEnforcedGuardrailConfigurationRequest,
5792
+ () => DeleteEnforcedGuardrailConfigurationResponse,
5793
+ ];
5701
5794
  var DeleteFoundationModelAgreement = [
5702
5795
  9,
5703
5796
  n0,
@@ -6102,6 +6195,16 @@ var ListCustomModels = [
6102
6195
  () => ListCustomModelsRequest,
6103
6196
  () => ListCustomModelsResponse,
6104
6197
  ];
6198
+ var ListEnforcedGuardrailsConfiguration = [
6199
+ 9,
6200
+ n0,
6201
+ _LEGC,
6202
+ {
6203
+ [_ht]: ["GET", "/enforcedGuardrailsConfiguration", 200],
6204
+ },
6205
+ () => ListEnforcedGuardrailsConfigurationRequest,
6206
+ () => ListEnforcedGuardrailsConfigurationResponse,
6207
+ ];
6105
6208
  var ListEvaluationJobs = [
6106
6209
  9,
6107
6210
  n0,
@@ -6242,6 +6345,16 @@ var ListTagsForResource = [
6242
6345
  () => ListTagsForResourceRequest,
6243
6346
  () => ListTagsForResourceResponse,
6244
6347
  ];
6348
+ var PutEnforcedGuardrailConfiguration = [
6349
+ 9,
6350
+ n0,
6351
+ _PEGC,
6352
+ {
6353
+ [_ht]: ["PUT", "/enforcedGuardrailsConfiguration", 200],
6354
+ },
6355
+ () => PutEnforcedGuardrailConfigurationRequest,
6356
+ () => PutEnforcedGuardrailConfigurationResponse,
6357
+ ];
6245
6358
  var PutModelInvocationLoggingConfiguration = [
6246
6359
  9,
6247
6360
  n0,
@@ -6691,6 +6804,18 @@ class DeleteCustomModelDeploymentCommand extends smithyClient.Command
6691
6804
  .build() {
6692
6805
  }
6693
6806
 
6807
+ class DeleteEnforcedGuardrailConfigurationCommand extends smithyClient.Command
6808
+ .classBuilder()
6809
+ .ep(commonParams)
6810
+ .m(function (Command, cs, config, o) {
6811
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
6812
+ })
6813
+ .s("AmazonBedrockControlPlaneService", "DeleteEnforcedGuardrailConfiguration", {})
6814
+ .n("BedrockClient", "DeleteEnforcedGuardrailConfigurationCommand")
6815
+ .sc(DeleteEnforcedGuardrailConfiguration)
6816
+ .build() {
6817
+ }
6818
+
6694
6819
  class DeleteFoundationModelAgreementCommand extends smithyClient.Command
6695
6820
  .classBuilder()
6696
6821
  .ep(commonParams)
@@ -7171,6 +7296,18 @@ class ListCustomModelsCommand extends smithyClient.Command
7171
7296
  .build() {
7172
7297
  }
7173
7298
 
7299
+ class ListEnforcedGuardrailsConfigurationCommand extends smithyClient.Command
7300
+ .classBuilder()
7301
+ .ep(commonParams)
7302
+ .m(function (Command, cs, config, o) {
7303
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
7304
+ })
7305
+ .s("AmazonBedrockControlPlaneService", "ListEnforcedGuardrailsConfiguration", {})
7306
+ .n("BedrockClient", "ListEnforcedGuardrailsConfigurationCommand")
7307
+ .sc(ListEnforcedGuardrailsConfiguration)
7308
+ .build() {
7309
+ }
7310
+
7174
7311
  class ListEvaluationJobsCommand extends smithyClient.Command
7175
7312
  .classBuilder()
7176
7313
  .ep(commonParams)
@@ -7339,6 +7476,18 @@ class ListTagsForResourceCommand extends smithyClient.Command
7339
7476
  .build() {
7340
7477
  }
7341
7478
 
7479
+ class PutEnforcedGuardrailConfigurationCommand extends smithyClient.Command
7480
+ .classBuilder()
7481
+ .ep(commonParams)
7482
+ .m(function (Command, cs, config, o) {
7483
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
7484
+ })
7485
+ .s("AmazonBedrockControlPlaneService", "PutEnforcedGuardrailConfiguration", {})
7486
+ .n("BedrockClient", "PutEnforcedGuardrailConfigurationCommand")
7487
+ .sc(PutEnforcedGuardrailConfiguration)
7488
+ .build() {
7489
+ }
7490
+
7342
7491
  class PutModelInvocationLoggingConfigurationCommand extends smithyClient.Command
7343
7492
  .classBuilder()
7344
7493
  .ep(commonParams)
@@ -7556,6 +7705,7 @@ const commands = {
7556
7705
  DeleteAutomatedReasoningPolicyTestCaseCommand,
7557
7706
  DeleteCustomModelCommand,
7558
7707
  DeleteCustomModelDeploymentCommand,
7708
+ DeleteEnforcedGuardrailConfigurationCommand,
7559
7709
  DeleteFoundationModelAgreementCommand,
7560
7710
  DeleteGuardrailCommand,
7561
7711
  DeleteImportedModelCommand,
@@ -7596,6 +7746,7 @@ const commands = {
7596
7746
  ListAutomatedReasoningPolicyTestResultsCommand,
7597
7747
  ListCustomModelDeploymentsCommand,
7598
7748
  ListCustomModelsCommand,
7749
+ ListEnforcedGuardrailsConfigurationCommand,
7599
7750
  ListEvaluationJobsCommand,
7600
7751
  ListFoundationModelAgreementOffersCommand,
7601
7752
  ListFoundationModelsCommand,
@@ -7610,6 +7761,7 @@ const commands = {
7610
7761
  ListPromptRoutersCommand,
7611
7762
  ListProvisionedModelThroughputsCommand,
7612
7763
  ListTagsForResourceCommand,
7764
+ PutEnforcedGuardrailConfigurationCommand,
7613
7765
  PutModelInvocationLoggingConfigurationCommand,
7614
7766
  PutUseCaseForModelAccessCommand,
7615
7767
  RegisterMarketplaceModelEndpointCommand,
@@ -7643,6 +7795,8 @@ const paginateListCustomModelDeployments = core.createPaginator(BedrockClient, L
7643
7795
 
7644
7796
  const paginateListCustomModels = core.createPaginator(BedrockClient, ListCustomModelsCommand, "nextToken", "nextToken", "maxResults");
7645
7797
 
7798
+ const paginateListEnforcedGuardrailsConfiguration = core.createPaginator(BedrockClient, ListEnforcedGuardrailsConfigurationCommand, "nextToken", "nextToken", "");
7799
+
7646
7800
  const paginateListEvaluationJobs = core.createPaginator(BedrockClient, ListEvaluationJobsCommand, "nextToken", "nextToken", "maxResults");
7647
7801
 
7648
7802
  const paginateListGuardrails = core.createPaginator(BedrockClient, ListGuardrailsCommand, "nextToken", "nextToken", "maxResults");
@@ -7665,6 +7819,10 @@ const paginateListPromptRouters = core.createPaginator(BedrockClient, ListPrompt
7665
7819
 
7666
7820
  const paginateListProvisionedModelThroughputs = core.createPaginator(BedrockClient, ListProvisionedModelThroughputsCommand, "nextToken", "nextToken", "maxResults");
7667
7821
 
7822
+ const InputTags = {
7823
+ HONOR: "HONOR",
7824
+ IGNORE: "IGNORE",
7825
+ };
7668
7826
  const AgreementStatus = {
7669
7827
  AVAILABLE: "AVAILABLE",
7670
7828
  ERROR: "ERROR",
@@ -8075,6 +8233,7 @@ exports.DeleteAutomatedReasoningPolicyCommand = DeleteAutomatedReasoningPolicyCo
8075
8233
  exports.DeleteAutomatedReasoningPolicyTestCaseCommand = DeleteAutomatedReasoningPolicyTestCaseCommand;
8076
8234
  exports.DeleteCustomModelCommand = DeleteCustomModelCommand;
8077
8235
  exports.DeleteCustomModelDeploymentCommand = DeleteCustomModelDeploymentCommand;
8236
+ exports.DeleteEnforcedGuardrailConfigurationCommand = DeleteEnforcedGuardrailConfigurationCommand;
8078
8237
  exports.DeleteFoundationModelAgreementCommand = DeleteFoundationModelAgreementCommand;
8079
8238
  exports.DeleteGuardrailCommand = DeleteGuardrailCommand;
8080
8239
  exports.DeleteImportedModelCommand = DeleteImportedModelCommand;
@@ -8134,6 +8293,7 @@ exports.GuardrailWordAction = GuardrailWordAction;
8134
8293
  exports.InferenceProfileStatus = InferenceProfileStatus;
8135
8294
  exports.InferenceProfileType = InferenceProfileType;
8136
8295
  exports.InferenceType = InferenceType;
8296
+ exports.InputTags = InputTags;
8137
8297
  exports.InternalServerException = InternalServerException$1;
8138
8298
  exports.JobStatusDetails = JobStatusDetails;
8139
8299
  exports.ListAutomatedReasoningPoliciesCommand = ListAutomatedReasoningPoliciesCommand;
@@ -8142,6 +8302,7 @@ exports.ListAutomatedReasoningPolicyTestCasesCommand = ListAutomatedReasoningPol
8142
8302
  exports.ListAutomatedReasoningPolicyTestResultsCommand = ListAutomatedReasoningPolicyTestResultsCommand;
8143
8303
  exports.ListCustomModelDeploymentsCommand = ListCustomModelDeploymentsCommand;
8144
8304
  exports.ListCustomModelsCommand = ListCustomModelsCommand;
8305
+ exports.ListEnforcedGuardrailsConfigurationCommand = ListEnforcedGuardrailsConfigurationCommand;
8145
8306
  exports.ListEvaluationJobsCommand = ListEvaluationJobsCommand;
8146
8307
  exports.ListFoundationModelAgreementOffersCommand = ListFoundationModelAgreementOffersCommand;
8147
8308
  exports.ListFoundationModelsCommand = ListFoundationModelsCommand;
@@ -8168,6 +8329,7 @@ exports.PerformanceConfigLatency = PerformanceConfigLatency;
8168
8329
  exports.PromptRouterStatus = PromptRouterStatus;
8169
8330
  exports.PromptRouterType = PromptRouterType;
8170
8331
  exports.ProvisionedModelStatus = ProvisionedModelStatus;
8332
+ exports.PutEnforcedGuardrailConfigurationCommand = PutEnforcedGuardrailConfigurationCommand;
8171
8333
  exports.PutModelInvocationLoggingConfigurationCommand = PutModelInvocationLoggingConfigurationCommand;
8172
8334
  exports.PutUseCaseForModelAccessCommand = PutUseCaseForModelAccessCommand;
8173
8335
  exports.QueryTransformationType = QueryTransformationType;
@@ -8209,6 +8371,7 @@ exports.paginateListAutomatedReasoningPolicyTestCases = paginateListAutomatedRea
8209
8371
  exports.paginateListAutomatedReasoningPolicyTestResults = paginateListAutomatedReasoningPolicyTestResults;
8210
8372
  exports.paginateListCustomModelDeployments = paginateListCustomModelDeployments;
8211
8373
  exports.paginateListCustomModels = paginateListCustomModels;
8374
+ exports.paginateListEnforcedGuardrailsConfiguration = paginateListEnforcedGuardrailsConfiguration;
8212
8375
  exports.paginateListEvaluationJobs = paginateListEvaluationJobs;
8213
8376
  exports.paginateListGuardrails = paginateListGuardrails;
8214
8377
  exports.paginateListImportedModels = paginateListImportedModels;
@@ -24,6 +24,7 @@ import { DeleteAutomatedReasoningPolicyCommand, } from "./commands/DeleteAutomat
24
24
  import { DeleteAutomatedReasoningPolicyTestCaseCommand, } from "./commands/DeleteAutomatedReasoningPolicyTestCaseCommand";
25
25
  import { DeleteCustomModelCommand, } from "./commands/DeleteCustomModelCommand";
26
26
  import { DeleteCustomModelDeploymentCommand, } from "./commands/DeleteCustomModelDeploymentCommand";
27
+ import { DeleteEnforcedGuardrailConfigurationCommand, } from "./commands/DeleteEnforcedGuardrailConfigurationCommand";
27
28
  import { DeleteFoundationModelAgreementCommand, } from "./commands/DeleteFoundationModelAgreementCommand";
28
29
  import { DeleteGuardrailCommand, } from "./commands/DeleteGuardrailCommand";
29
30
  import { DeleteImportedModelCommand, } from "./commands/DeleteImportedModelCommand";
@@ -64,6 +65,7 @@ import { ListAutomatedReasoningPolicyTestCasesCommand, } from "./commands/ListAu
64
65
  import { ListAutomatedReasoningPolicyTestResultsCommand, } from "./commands/ListAutomatedReasoningPolicyTestResultsCommand";
65
66
  import { ListCustomModelDeploymentsCommand, } from "./commands/ListCustomModelDeploymentsCommand";
66
67
  import { ListCustomModelsCommand, } from "./commands/ListCustomModelsCommand";
68
+ import { ListEnforcedGuardrailsConfigurationCommand, } from "./commands/ListEnforcedGuardrailsConfigurationCommand";
67
69
  import { ListEvaluationJobsCommand, } from "./commands/ListEvaluationJobsCommand";
68
70
  import { ListFoundationModelAgreementOffersCommand, } from "./commands/ListFoundationModelAgreementOffersCommand";
69
71
  import { ListFoundationModelsCommand, } from "./commands/ListFoundationModelsCommand";
@@ -78,6 +80,7 @@ import { ListModelInvocationJobsCommand, } from "./commands/ListModelInvocationJ
78
80
  import { ListPromptRoutersCommand, } from "./commands/ListPromptRoutersCommand";
79
81
  import { ListProvisionedModelThroughputsCommand, } from "./commands/ListProvisionedModelThroughputsCommand";
80
82
  import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
83
+ import { PutEnforcedGuardrailConfigurationCommand, } from "./commands/PutEnforcedGuardrailConfigurationCommand";
81
84
  import { PutModelInvocationLoggingConfigurationCommand, } from "./commands/PutModelInvocationLoggingConfigurationCommand";
82
85
  import { PutUseCaseForModelAccessCommand, } from "./commands/PutUseCaseForModelAccessCommand";
83
86
  import { RegisterMarketplaceModelEndpointCommand, } from "./commands/RegisterMarketplaceModelEndpointCommand";
@@ -119,6 +122,7 @@ const commands = {
119
122
  DeleteAutomatedReasoningPolicyTestCaseCommand,
120
123
  DeleteCustomModelCommand,
121
124
  DeleteCustomModelDeploymentCommand,
125
+ DeleteEnforcedGuardrailConfigurationCommand,
122
126
  DeleteFoundationModelAgreementCommand,
123
127
  DeleteGuardrailCommand,
124
128
  DeleteImportedModelCommand,
@@ -159,6 +163,7 @@ const commands = {
159
163
  ListAutomatedReasoningPolicyTestResultsCommand,
160
164
  ListCustomModelDeploymentsCommand,
161
165
  ListCustomModelsCommand,
166
+ ListEnforcedGuardrailsConfigurationCommand,
162
167
  ListEvaluationJobsCommand,
163
168
  ListFoundationModelAgreementOffersCommand,
164
169
  ListFoundationModelsCommand,
@@ -173,6 +178,7 @@ const commands = {
173
178
  ListPromptRoutersCommand,
174
179
  ListProvisionedModelThroughputsCommand,
175
180
  ListTagsForResourceCommand,
181
+ PutEnforcedGuardrailConfigurationCommand,
176
182
  PutModelInvocationLoggingConfigurationCommand,
177
183
  PutUseCaseForModelAccessCommand,
178
184
  RegisterMarketplaceModelEndpointCommand,
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { DeleteEnforcedGuardrailConfiguration } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class DeleteEnforcedGuardrailConfigurationCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("AmazonBedrockControlPlaneService", "DeleteEnforcedGuardrailConfiguration", {})
13
+ .n("BedrockClient", "DeleteEnforcedGuardrailConfigurationCommand")
14
+ .sc(DeleteEnforcedGuardrailConfiguration)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { ListEnforcedGuardrailsConfiguration } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class ListEnforcedGuardrailsConfigurationCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("AmazonBedrockControlPlaneService", "ListEnforcedGuardrailsConfiguration", {})
13
+ .n("BedrockClient", "ListEnforcedGuardrailsConfigurationCommand")
14
+ .sc(ListEnforcedGuardrailsConfiguration)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { PutEnforcedGuardrailConfiguration } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class PutEnforcedGuardrailConfigurationCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("AmazonBedrockControlPlaneService", "PutEnforcedGuardrailConfiguration", {})
13
+ .n("BedrockClient", "PutEnforcedGuardrailConfigurationCommand")
14
+ .sc(PutEnforcedGuardrailConfiguration)
15
+ .build() {
16
+ }
@@ -22,6 +22,7 @@ export * from "./DeleteAutomatedReasoningPolicyCommand";
22
22
  export * from "./DeleteAutomatedReasoningPolicyTestCaseCommand";
23
23
  export * from "./DeleteCustomModelCommand";
24
24
  export * from "./DeleteCustomModelDeploymentCommand";
25
+ export * from "./DeleteEnforcedGuardrailConfigurationCommand";
25
26
  export * from "./DeleteFoundationModelAgreementCommand";
26
27
  export * from "./DeleteGuardrailCommand";
27
28
  export * from "./DeleteImportedModelCommand";
@@ -62,6 +63,7 @@ export * from "./ListAutomatedReasoningPolicyTestCasesCommand";
62
63
  export * from "./ListAutomatedReasoningPolicyTestResultsCommand";
63
64
  export * from "./ListCustomModelDeploymentsCommand";
64
65
  export * from "./ListCustomModelsCommand";
66
+ export * from "./ListEnforcedGuardrailsConfigurationCommand";
65
67
  export * from "./ListEvaluationJobsCommand";
66
68
  export * from "./ListFoundationModelAgreementOffersCommand";
67
69
  export * from "./ListFoundationModelsCommand";
@@ -76,6 +78,7 @@ export * from "./ListModelInvocationJobsCommand";
76
78
  export * from "./ListPromptRoutersCommand";
77
79
  export * from "./ListProvisionedModelThroughputsCommand";
78
80
  export * from "./ListTagsForResourceCommand";
81
+ export * from "./PutEnforcedGuardrailConfigurationCommand";
79
82
  export * from "./PutModelInvocationLoggingConfigurationCommand";
80
83
  export * from "./PutUseCaseForModelAccessCommand";
81
84
  export * from "./RegisterMarketplaceModelEndpointCommand";