@aws-sdk/client-bedrock 3.678.0 → 3.682.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 (30) hide show
  1. package/README.md +16 -0
  2. package/dist-cjs/index.js +133 -3
  3. package/dist-es/Bedrock.js +4 -0
  4. package/dist-es/commands/CreateInferenceProfileCommand.js +23 -0
  5. package/dist-es/commands/DeleteInferenceProfileCommand.js +22 -0
  6. package/dist-es/commands/GetInferenceProfileCommand.js +2 -1
  7. package/dist-es/commands/ListInferenceProfilesCommand.js +2 -1
  8. package/dist-es/commands/index.js +2 -0
  9. package/dist-es/models/models_0.js +28 -0
  10. package/dist-es/protocols/Aws_restJson1.js +54 -0
  11. package/dist-types/Bedrock.d.ts +14 -0
  12. package/dist-types/BedrockClient.d.ts +4 -2
  13. package/dist-types/commands/CreateInferenceProfileCommand.d.ts +108 -0
  14. package/dist-types/commands/DeleteInferenceProfileCommand.d.ts +87 -0
  15. package/dist-types/commands/GetInferenceProfileCommand.d.ts +6 -6
  16. package/dist-types/commands/ListInferenceProfilesCommand.d.ts +8 -7
  17. package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
  18. package/dist-types/commands/TagResourceCommand.d.ts +1 -1
  19. package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
  20. package/dist-types/commands/index.d.ts +2 -0
  21. package/dist-types/models/models_0.d.ts +164 -21
  22. package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
  23. package/dist-types/ts3.4/Bedrock.d.ts +34 -0
  24. package/dist-types/ts3.4/BedrockClient.d.ts +12 -0
  25. package/dist-types/ts3.4/commands/CreateInferenceProfileCommand.d.ts +51 -0
  26. package/dist-types/ts3.4/commands/DeleteInferenceProfileCommand.d.ts +51 -0
  27. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  28. package/dist-types/ts3.4/models/models_0.d.ts +56 -6
  29. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +24 -0
  30. package/package.json +14 -14
package/README.md CHANGED
@@ -234,6 +234,14 @@ CreateGuardrailVersion
234
234
 
235
235
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock/command/CreateGuardrailVersionCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/CreateGuardrailVersionCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/CreateGuardrailVersionCommandOutput/)
236
236
 
237
+ </details>
238
+ <details>
239
+ <summary>
240
+ CreateInferenceProfile
241
+ </summary>
242
+
243
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock/command/CreateInferenceProfileCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/CreateInferenceProfileCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/CreateInferenceProfileCommandOutput/)
244
+
237
245
  </details>
238
246
  <details>
239
247
  <summary>
@@ -298,6 +306,14 @@ DeleteImportedModel
298
306
 
299
307
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock/command/DeleteImportedModelCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/DeleteImportedModelCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/DeleteImportedModelCommandOutput/)
300
308
 
309
+ </details>
310
+ <details>
311
+ <summary>
312
+ DeleteInferenceProfile
313
+ </summary>
314
+
315
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock/command/DeleteInferenceProfileCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/DeleteInferenceProfileCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/DeleteInferenceProfileCommandOutput/)
316
+
301
317
  </details>
302
318
  <details>
303
319
  <summary>
package/dist-cjs/index.js CHANGED
@@ -39,6 +39,8 @@ __export(src_exports, {
39
39
  CreateGuardrailRequestFilterSensitiveLog: () => CreateGuardrailRequestFilterSensitiveLog,
40
40
  CreateGuardrailVersionCommand: () => CreateGuardrailVersionCommand,
41
41
  CreateGuardrailVersionRequestFilterSensitiveLog: () => CreateGuardrailVersionRequestFilterSensitiveLog,
42
+ CreateInferenceProfileCommand: () => CreateInferenceProfileCommand,
43
+ CreateInferenceProfileRequestFilterSensitiveLog: () => CreateInferenceProfileRequestFilterSensitiveLog,
42
44
  CreateModelCopyJobCommand: () => CreateModelCopyJobCommand,
43
45
  CreateModelCustomizationJobCommand: () => CreateModelCustomizationJobCommand,
44
46
  CreateModelImportJobCommand: () => CreateModelImportJobCommand,
@@ -48,6 +50,7 @@ __export(src_exports, {
48
50
  DeleteCustomModelCommand: () => DeleteCustomModelCommand,
49
51
  DeleteGuardrailCommand: () => DeleteGuardrailCommand,
50
52
  DeleteImportedModelCommand: () => DeleteImportedModelCommand,
53
+ DeleteInferenceProfileCommand: () => DeleteInferenceProfileCommand,
51
54
  DeleteModelInvocationLoggingConfigurationCommand: () => DeleteModelInvocationLoggingConfigurationCommand,
52
55
  DeleteProvisionedModelThroughputCommand: () => DeleteProvisionedModelThroughputCommand,
53
56
  EvaluationBedrockModelFilterSensitiveLog: () => EvaluationBedrockModelFilterSensitiveLog,
@@ -74,6 +77,7 @@ __export(src_exports, {
74
77
  GetGuardrailResponseFilterSensitiveLog: () => GetGuardrailResponseFilterSensitiveLog,
75
78
  GetImportedModelCommand: () => GetImportedModelCommand,
76
79
  GetInferenceProfileCommand: () => GetInferenceProfileCommand,
80
+ GetInferenceProfileResponseFilterSensitiveLog: () => GetInferenceProfileResponseFilterSensitiveLog,
77
81
  GetModelCopyJobCommand: () => GetModelCopyJobCommand,
78
82
  GetModelCustomizationJobCommand: () => GetModelCustomizationJobCommand,
79
83
  GetModelImportJobCommand: () => GetModelImportJobCommand,
@@ -97,7 +101,9 @@ __export(src_exports, {
97
101
  HumanEvaluationConfigFilterSensitiveLog: () => HumanEvaluationConfigFilterSensitiveLog,
98
102
  HumanEvaluationCustomMetricFilterSensitiveLog: () => HumanEvaluationCustomMetricFilterSensitiveLog,
99
103
  HumanWorkflowConfigFilterSensitiveLog: () => HumanWorkflowConfigFilterSensitiveLog,
104
+ InferenceProfileModelSource: () => InferenceProfileModelSource,
100
105
  InferenceProfileStatus: () => InferenceProfileStatus,
106
+ InferenceProfileSummaryFilterSensitiveLog: () => InferenceProfileSummaryFilterSensitiveLog,
101
107
  InferenceProfileType: () => InferenceProfileType,
102
108
  InferenceType: () => InferenceType,
103
109
  InternalServerException: () => InternalServerException,
@@ -108,6 +114,7 @@ __export(src_exports, {
108
114
  ListGuardrailsResponseFilterSensitiveLog: () => ListGuardrailsResponseFilterSensitiveLog,
109
115
  ListImportedModelsCommand: () => ListImportedModelsCommand,
110
116
  ListInferenceProfilesCommand: () => ListInferenceProfilesCommand,
117
+ ListInferenceProfilesResponseFilterSensitiveLog: () => ListInferenceProfilesResponseFilterSensitiveLog,
111
118
  ListModelCopyJobsCommand: () => ListModelCopyJobsCommand,
112
119
  ListModelCustomizationJobsCommand: () => ListModelCustomizationJobsCommand,
113
120
  ListModelImportJobsCommand: () => ListModelImportJobsCommand,
@@ -589,10 +596,19 @@ var GuardrailStatus = {
589
596
  UPDATING: "UPDATING",
590
597
  VERSIONING: "VERSIONING"
591
598
  };
599
+ var InferenceProfileModelSource;
600
+ ((InferenceProfileModelSource3) => {
601
+ InferenceProfileModelSource3.visit = /* @__PURE__ */ __name((value, visitor) => {
602
+ if (value.copyFrom !== void 0)
603
+ return visitor.copyFrom(value.copyFrom);
604
+ return visitor._(value.$unknown[0], value.$unknown[1]);
605
+ }, "visit");
606
+ })(InferenceProfileModelSource || (InferenceProfileModelSource = {}));
592
607
  var InferenceProfileStatus = {
593
608
  ACTIVE: "ACTIVE"
594
609
  };
595
610
  var InferenceProfileType = {
611
+ APPLICATION: "APPLICATION",
596
612
  SYSTEM_DEFINED: "SYSTEM_DEFINED"
597
613
  };
598
614
  var ModelCopyJobStatus = {
@@ -860,6 +876,27 @@ var UpdateGuardrailRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => (
860
876
  ...obj.blockedInputMessaging && { blockedInputMessaging: import_smithy_client.SENSITIVE_STRING },
861
877
  ...obj.blockedOutputsMessaging && { blockedOutputsMessaging: import_smithy_client.SENSITIVE_STRING }
862
878
  }), "UpdateGuardrailRequestFilterSensitiveLog");
879
+ var CreateInferenceProfileRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
880
+ ...obj,
881
+ ...obj.description && { description: import_smithy_client.SENSITIVE_STRING },
882
+ ...obj.modelSource && { modelSource: obj.modelSource }
883
+ }), "CreateInferenceProfileRequestFilterSensitiveLog");
884
+ var GetInferenceProfileResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
885
+ ...obj,
886
+ ...obj.description && { description: import_smithy_client.SENSITIVE_STRING }
887
+ }), "GetInferenceProfileResponseFilterSensitiveLog");
888
+ var InferenceProfileSummaryFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
889
+ ...obj,
890
+ ...obj.description && { description: import_smithy_client.SENSITIVE_STRING }
891
+ }), "InferenceProfileSummaryFilterSensitiveLog");
892
+ var ListInferenceProfilesResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
893
+ ...obj,
894
+ ...obj.inferenceProfileSummaries && {
895
+ inferenceProfileSummaries: obj.inferenceProfileSummaries.map(
896
+ (item) => InferenceProfileSummaryFilterSensitiveLog(item)
897
+ )
898
+ }
899
+ }), "ListInferenceProfilesResponseFilterSensitiveLog");
863
900
  var GetModelInvocationJobResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
864
901
  ...obj,
865
902
  ...obj.message && { message: import_smithy_client.SENSITIVE_STRING },
@@ -965,6 +1002,25 @@ var se_CreateGuardrailVersionCommand = /* @__PURE__ */ __name(async (input, cont
965
1002
  b.m("POST").h(headers).b(body);
966
1003
  return b.build();
967
1004
  }, "se_CreateGuardrailVersionCommand");
1005
+ var se_CreateInferenceProfileCommand = /* @__PURE__ */ __name(async (input, context) => {
1006
+ const b = (0, import_core.requestBuilder)(input, context);
1007
+ const headers = {
1008
+ "content-type": "application/json"
1009
+ };
1010
+ b.bp("/inference-profiles");
1011
+ let body;
1012
+ body = JSON.stringify(
1013
+ (0, import_smithy_client.take)(input, {
1014
+ clientRequestToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
1015
+ description: [],
1016
+ inferenceProfileName: [],
1017
+ modelSource: (_) => (0, import_smithy_client._json)(_),
1018
+ tags: (_) => (0, import_smithy_client._json)(_)
1019
+ })
1020
+ );
1021
+ b.m("POST").h(headers).b(body);
1022
+ return b.build();
1023
+ }, "se_CreateInferenceProfileCommand");
968
1024
  var se_CreateModelCopyJobCommand = /* @__PURE__ */ __name(async (input, context) => {
969
1025
  const b = (0, import_core.requestBuilder)(input, context);
970
1026
  const headers = {
@@ -1108,6 +1164,15 @@ var se_DeleteImportedModelCommand = /* @__PURE__ */ __name(async (input, context
1108
1164
  b.m("DELETE").h(headers).b(body);
1109
1165
  return b.build();
1110
1166
  }, "se_DeleteImportedModelCommand");
1167
+ var se_DeleteInferenceProfileCommand = /* @__PURE__ */ __name(async (input, context) => {
1168
+ const b = (0, import_core.requestBuilder)(input, context);
1169
+ const headers = {};
1170
+ b.bp("/inference-profiles/{inferenceProfileIdentifier}");
1171
+ b.p("inferenceProfileIdentifier", () => input.inferenceProfileIdentifier, "{inferenceProfileIdentifier}", false);
1172
+ let body;
1173
+ b.m("DELETE").h(headers).b(body);
1174
+ return b.build();
1175
+ }, "se_DeleteInferenceProfileCommand");
1111
1176
  var se_DeleteModelInvocationLoggingConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
1112
1177
  const b = (0, import_core.requestBuilder)(input, context);
1113
1178
  const headers = {};
@@ -1323,7 +1388,8 @@ var se_ListInferenceProfilesCommand = /* @__PURE__ */ __name(async (input, conte
1323
1388
  b.bp("/inference-profiles");
1324
1389
  const query = (0, import_smithy_client.map)({
1325
1390
  [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
1326
- [_nT]: [, input[_nT]]
1391
+ [_nT]: [, input[_nT]],
1392
+ [_t]: [, input[_tE]]
1327
1393
  });
1328
1394
  let body;
1329
1395
  b.m("GET").h(headers).q(query).b(body);
@@ -1614,6 +1680,21 @@ var de_CreateGuardrailVersionCommand = /* @__PURE__ */ __name(async (output, con
1614
1680
  Object.assign(contents, doc);
1615
1681
  return contents;
1616
1682
  }, "de_CreateGuardrailVersionCommand");
1683
+ var de_CreateInferenceProfileCommand = /* @__PURE__ */ __name(async (output, context) => {
1684
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
1685
+ return de_CommandError(output, context);
1686
+ }
1687
+ const contents = (0, import_smithy_client.map)({
1688
+ $metadata: deserializeMetadata(output)
1689
+ });
1690
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1691
+ const doc = (0, import_smithy_client.take)(data, {
1692
+ inferenceProfileArn: import_smithy_client.expectString,
1693
+ status: import_smithy_client.expectString
1694
+ });
1695
+ Object.assign(contents, doc);
1696
+ return contents;
1697
+ }, "de_CreateInferenceProfileCommand");
1617
1698
  var de_CreateModelCopyJobCommand = /* @__PURE__ */ __name(async (output, context) => {
1618
1699
  if (output.statusCode !== 201 && output.statusCode >= 300) {
1619
1700
  return de_CommandError(output, context);
@@ -1714,6 +1795,16 @@ var de_DeleteImportedModelCommand = /* @__PURE__ */ __name(async (output, contex
1714
1795
  await (0, import_smithy_client.collectBody)(output.body, context);
1715
1796
  return contents;
1716
1797
  }, "de_DeleteImportedModelCommand");
1798
+ var de_DeleteInferenceProfileCommand = /* @__PURE__ */ __name(async (output, context) => {
1799
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1800
+ return de_CommandError(output, context);
1801
+ }
1802
+ const contents = (0, import_smithy_client.map)({
1803
+ $metadata: deserializeMetadata(output)
1804
+ });
1805
+ await (0, import_smithy_client.collectBody)(output.body, context);
1806
+ return contents;
1807
+ }, "de_DeleteInferenceProfileCommand");
1717
1808
  var de_DeleteModelInvocationLoggingConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
1718
1809
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1719
1810
  return de_CommandError(output, context);
@@ -2709,6 +2800,8 @@ var _sMAE = "sourceModelArnEquals";
2709
2800
  var _sO = "sortOrder";
2710
2801
  var _sTA = "submitTimeAfter";
2711
2802
  var _sTB = "submitTimeBefore";
2803
+ var _t = "type";
2804
+ var _tE = "typeEquals";
2712
2805
  var _tMNC = "targetModelNameContains";
2713
2806
 
2714
2807
  // src/commands/BatchDeleteEvaluationJobCommand.ts
@@ -2764,6 +2857,20 @@ var _CreateGuardrailVersionCommand = class _CreateGuardrailVersionCommand extend
2764
2857
  __name(_CreateGuardrailVersionCommand, "CreateGuardrailVersionCommand");
2765
2858
  var CreateGuardrailVersionCommand = _CreateGuardrailVersionCommand;
2766
2859
 
2860
+ // src/commands/CreateInferenceProfileCommand.ts
2861
+
2862
+
2863
+
2864
+ var _CreateInferenceProfileCommand = class _CreateInferenceProfileCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2865
+ return [
2866
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2867
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2868
+ ];
2869
+ }).s("AmazonBedrockControlPlaneService", "CreateInferenceProfile", {}).n("BedrockClient", "CreateInferenceProfileCommand").f(CreateInferenceProfileRequestFilterSensitiveLog, void 0).ser(se_CreateInferenceProfileCommand).de(de_CreateInferenceProfileCommand).build() {
2870
+ };
2871
+ __name(_CreateInferenceProfileCommand, "CreateInferenceProfileCommand");
2872
+ var CreateInferenceProfileCommand = _CreateInferenceProfileCommand;
2873
+
2767
2874
  // src/commands/CreateModelCopyJobCommand.ts
2768
2875
 
2769
2876
 
@@ -2876,6 +2983,20 @@ var _DeleteImportedModelCommand = class _DeleteImportedModelCommand extends impo
2876
2983
  __name(_DeleteImportedModelCommand, "DeleteImportedModelCommand");
2877
2984
  var DeleteImportedModelCommand = _DeleteImportedModelCommand;
2878
2985
 
2986
+ // src/commands/DeleteInferenceProfileCommand.ts
2987
+
2988
+
2989
+
2990
+ var _DeleteInferenceProfileCommand = class _DeleteInferenceProfileCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2991
+ return [
2992
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2993
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2994
+ ];
2995
+ }).s("AmazonBedrockControlPlaneService", "DeleteInferenceProfile", {}).n("BedrockClient", "DeleteInferenceProfileCommand").f(void 0, void 0).ser(se_DeleteInferenceProfileCommand).de(de_DeleteInferenceProfileCommand).build() {
2996
+ };
2997
+ __name(_DeleteInferenceProfileCommand, "DeleteInferenceProfileCommand");
2998
+ var DeleteInferenceProfileCommand = _DeleteInferenceProfileCommand;
2999
+
2879
3000
  // src/commands/DeleteModelInvocationLoggingConfigurationCommand.ts
2880
3001
 
2881
3002
 
@@ -2983,7 +3104,7 @@ var _GetInferenceProfileCommand = class _GetInferenceProfileCommand extends impo
2983
3104
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2984
3105
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2985
3106
  ];
2986
- }).s("AmazonBedrockControlPlaneService", "GetInferenceProfile", {}).n("BedrockClient", "GetInferenceProfileCommand").f(void 0, void 0).ser(se_GetInferenceProfileCommand).de(de_GetInferenceProfileCommand).build() {
3107
+ }).s("AmazonBedrockControlPlaneService", "GetInferenceProfile", {}).n("BedrockClient", "GetInferenceProfileCommand").f(void 0, GetInferenceProfileResponseFilterSensitiveLog).ser(se_GetInferenceProfileCommand).de(de_GetInferenceProfileCommand).build() {
2987
3108
  };
2988
3109
  __name(_GetInferenceProfileCommand, "GetInferenceProfileCommand");
2989
3110
  var GetInferenceProfileCommand = _GetInferenceProfileCommand;
@@ -3151,7 +3272,7 @@ var _ListInferenceProfilesCommand = class _ListInferenceProfilesCommand extends
3151
3272
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3152
3273
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3153
3274
  ];
3154
- }).s("AmazonBedrockControlPlaneService", "ListInferenceProfiles", {}).n("BedrockClient", "ListInferenceProfilesCommand").f(void 0, void 0).ser(se_ListInferenceProfilesCommand).de(de_ListInferenceProfilesCommand).build() {
3275
+ }).s("AmazonBedrockControlPlaneService", "ListInferenceProfiles", {}).n("BedrockClient", "ListInferenceProfilesCommand").f(void 0, ListInferenceProfilesResponseFilterSensitiveLog).ser(se_ListInferenceProfilesCommand).de(de_ListInferenceProfilesCommand).build() {
3155
3276
  };
3156
3277
  __name(_ListInferenceProfilesCommand, "ListInferenceProfilesCommand");
3157
3278
  var ListInferenceProfilesCommand = _ListInferenceProfilesCommand;
@@ -3358,6 +3479,7 @@ var commands = {
3358
3479
  CreateEvaluationJobCommand,
3359
3480
  CreateGuardrailCommand,
3360
3481
  CreateGuardrailVersionCommand,
3482
+ CreateInferenceProfileCommand,
3361
3483
  CreateModelCopyJobCommand,
3362
3484
  CreateModelCustomizationJobCommand,
3363
3485
  CreateModelImportJobCommand,
@@ -3366,6 +3488,7 @@ var commands = {
3366
3488
  DeleteCustomModelCommand,
3367
3489
  DeleteGuardrailCommand,
3368
3490
  DeleteImportedModelCommand,
3491
+ DeleteInferenceProfileCommand,
3369
3492
  DeleteModelInvocationLoggingConfigurationCommand,
3370
3493
  DeleteProvisionedModelThroughputCommand,
3371
3494
  GetCustomModelCommand,
@@ -3458,6 +3581,7 @@ var paginateListProvisionedModelThroughputs = (0, import_core.createPaginator)(B
3458
3581
  CreateEvaluationJobCommand,
3459
3582
  CreateGuardrailCommand,
3460
3583
  CreateGuardrailVersionCommand,
3584
+ CreateInferenceProfileCommand,
3461
3585
  CreateModelCopyJobCommand,
3462
3586
  CreateModelCustomizationJobCommand,
3463
3587
  CreateModelImportJobCommand,
@@ -3466,6 +3590,7 @@ var paginateListProvisionedModelThroughputs = (0, import_core.createPaginator)(B
3466
3590
  DeleteCustomModelCommand,
3467
3591
  DeleteGuardrailCommand,
3468
3592
  DeleteImportedModelCommand,
3593
+ DeleteInferenceProfileCommand,
3469
3594
  DeleteModelInvocationLoggingConfigurationCommand,
3470
3595
  DeleteProvisionedModelThroughputCommand,
3471
3596
  GetCustomModelCommand,
@@ -3535,6 +3660,7 @@ var paginateListProvisionedModelThroughputs = (0, import_core.createPaginator)(B
3535
3660
  GuardrailManagedWordsType,
3536
3661
  TooManyTagsException,
3537
3662
  GuardrailStatus,
3663
+ InferenceProfileModelSource,
3538
3664
  InferenceProfileStatus,
3539
3665
  InferenceProfileType,
3540
3666
  ModelCopyJobStatus,
@@ -3583,6 +3709,10 @@ var paginateListProvisionedModelThroughputs = (0, import_core.createPaginator)(B
3583
3709
  GuardrailSummaryFilterSensitiveLog,
3584
3710
  ListGuardrailsResponseFilterSensitiveLog,
3585
3711
  UpdateGuardrailRequestFilterSensitiveLog,
3712
+ CreateInferenceProfileRequestFilterSensitiveLog,
3713
+ GetInferenceProfileResponseFilterSensitiveLog,
3714
+ InferenceProfileSummaryFilterSensitiveLog,
3715
+ ListInferenceProfilesResponseFilterSensitiveLog,
3586
3716
  GetModelInvocationJobResponseFilterSensitiveLog,
3587
3717
  ModelInvocationJobSummaryFilterSensitiveLog,
3588
3718
  ListModelInvocationJobsResponseFilterSensitiveLog
@@ -4,6 +4,7 @@ import { BatchDeleteEvaluationJobCommand, } from "./commands/BatchDeleteEvaluati
4
4
  import { CreateEvaluationJobCommand, } from "./commands/CreateEvaluationJobCommand";
5
5
  import { CreateGuardrailCommand, } from "./commands/CreateGuardrailCommand";
6
6
  import { CreateGuardrailVersionCommand, } from "./commands/CreateGuardrailVersionCommand";
7
+ import { CreateInferenceProfileCommand, } from "./commands/CreateInferenceProfileCommand";
7
8
  import { CreateModelCopyJobCommand, } from "./commands/CreateModelCopyJobCommand";
8
9
  import { CreateModelCustomizationJobCommand, } from "./commands/CreateModelCustomizationJobCommand";
9
10
  import { CreateModelImportJobCommand, } from "./commands/CreateModelImportJobCommand";
@@ -12,6 +13,7 @@ import { CreateProvisionedModelThroughputCommand, } from "./commands/CreateProvi
12
13
  import { DeleteCustomModelCommand, } from "./commands/DeleteCustomModelCommand";
13
14
  import { DeleteGuardrailCommand, } from "./commands/DeleteGuardrailCommand";
14
15
  import { DeleteImportedModelCommand, } from "./commands/DeleteImportedModelCommand";
16
+ import { DeleteInferenceProfileCommand, } from "./commands/DeleteInferenceProfileCommand";
15
17
  import { DeleteModelInvocationLoggingConfigurationCommand, } from "./commands/DeleteModelInvocationLoggingConfigurationCommand";
16
18
  import { DeleteProvisionedModelThroughputCommand, } from "./commands/DeleteProvisionedModelThroughputCommand";
17
19
  import { GetCustomModelCommand, } from "./commands/GetCustomModelCommand";
@@ -51,6 +53,7 @@ const commands = {
51
53
  CreateEvaluationJobCommand,
52
54
  CreateGuardrailCommand,
53
55
  CreateGuardrailVersionCommand,
56
+ CreateInferenceProfileCommand,
54
57
  CreateModelCopyJobCommand,
55
58
  CreateModelCustomizationJobCommand,
56
59
  CreateModelImportJobCommand,
@@ -59,6 +62,7 @@ const commands = {
59
62
  DeleteCustomModelCommand,
60
63
  DeleteGuardrailCommand,
61
64
  DeleteImportedModelCommand,
65
+ DeleteInferenceProfileCommand,
62
66
  DeleteModelInvocationLoggingConfigurationCommand,
63
67
  DeleteProvisionedModelThroughputCommand,
64
68
  GetCustomModelCommand,
@@ -0,0 +1,23 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { CreateInferenceProfileRequestFilterSensitiveLog, } from "../models/models_0";
6
+ import { de_CreateInferenceProfileCommand, se_CreateInferenceProfileCommand } from "../protocols/Aws_restJson1";
7
+ export { $Command };
8
+ export class CreateInferenceProfileCommand extends $Command
9
+ .classBuilder()
10
+ .ep(commonParams)
11
+ .m(function (Command, cs, config, o) {
12
+ return [
13
+ getSerdePlugin(config, this.serialize, this.deserialize),
14
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
15
+ ];
16
+ })
17
+ .s("AmazonBedrockControlPlaneService", "CreateInferenceProfile", {})
18
+ .n("BedrockClient", "CreateInferenceProfileCommand")
19
+ .f(CreateInferenceProfileRequestFilterSensitiveLog, void 0)
20
+ .ser(se_CreateInferenceProfileCommand)
21
+ .de(de_CreateInferenceProfileCommand)
22
+ .build() {
23
+ }
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_DeleteInferenceProfileCommand, se_DeleteInferenceProfileCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class DeleteInferenceProfileCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("AmazonBedrockControlPlaneService", "DeleteInferenceProfile", {})
17
+ .n("BedrockClient", "DeleteInferenceProfileCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_DeleteInferenceProfileCommand)
20
+ .de(de_DeleteInferenceProfileCommand)
21
+ .build() {
22
+ }
@@ -2,6 +2,7 @@ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
4
  import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { GetInferenceProfileResponseFilterSensitiveLog, } from "../models/models_0";
5
6
  import { de_GetInferenceProfileCommand, se_GetInferenceProfileCommand } from "../protocols/Aws_restJson1";
6
7
  export { $Command };
7
8
  export class GetInferenceProfileCommand extends $Command
@@ -15,7 +16,7 @@ export class GetInferenceProfileCommand extends $Command
15
16
  })
16
17
  .s("AmazonBedrockControlPlaneService", "GetInferenceProfile", {})
17
18
  .n("BedrockClient", "GetInferenceProfileCommand")
18
- .f(void 0, void 0)
19
+ .f(void 0, GetInferenceProfileResponseFilterSensitiveLog)
19
20
  .ser(se_GetInferenceProfileCommand)
20
21
  .de(de_GetInferenceProfileCommand)
21
22
  .build() {
@@ -2,6 +2,7 @@ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
4
  import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { ListInferenceProfilesResponseFilterSensitiveLog, } from "../models/models_0";
5
6
  import { de_ListInferenceProfilesCommand, se_ListInferenceProfilesCommand } from "../protocols/Aws_restJson1";
6
7
  export { $Command };
7
8
  export class ListInferenceProfilesCommand extends $Command
@@ -15,7 +16,7 @@ export class ListInferenceProfilesCommand extends $Command
15
16
  })
16
17
  .s("AmazonBedrockControlPlaneService", "ListInferenceProfiles", {})
17
18
  .n("BedrockClient", "ListInferenceProfilesCommand")
18
- .f(void 0, void 0)
19
+ .f(void 0, ListInferenceProfilesResponseFilterSensitiveLog)
19
20
  .ser(se_ListInferenceProfilesCommand)
20
21
  .de(de_ListInferenceProfilesCommand)
21
22
  .build() {
@@ -2,6 +2,7 @@ export * from "./BatchDeleteEvaluationJobCommand";
2
2
  export * from "./CreateEvaluationJobCommand";
3
3
  export * from "./CreateGuardrailCommand";
4
4
  export * from "./CreateGuardrailVersionCommand";
5
+ export * from "./CreateInferenceProfileCommand";
5
6
  export * from "./CreateModelCopyJobCommand";
6
7
  export * from "./CreateModelCustomizationJobCommand";
7
8
  export * from "./CreateModelImportJobCommand";
@@ -10,6 +11,7 @@ export * from "./CreateProvisionedModelThroughputCommand";
10
11
  export * from "./DeleteCustomModelCommand";
11
12
  export * from "./DeleteGuardrailCommand";
12
13
  export * from "./DeleteImportedModelCommand";
14
+ export * from "./DeleteInferenceProfileCommand";
13
15
  export * from "./DeleteModelInvocationLoggingConfigurationCommand";
14
16
  export * from "./DeleteProvisionedModelThroughputCommand";
15
17
  export * from "./GetCustomModelCommand";
@@ -226,10 +226,19 @@ export const GuardrailStatus = {
226
226
  UPDATING: "UPDATING",
227
227
  VERSIONING: "VERSIONING",
228
228
  };
229
+ export var InferenceProfileModelSource;
230
+ (function (InferenceProfileModelSource) {
231
+ InferenceProfileModelSource.visit = (value, visitor) => {
232
+ if (value.copyFrom !== undefined)
233
+ return visitor.copyFrom(value.copyFrom);
234
+ return visitor._(value.$unknown[0], value.$unknown[1]);
235
+ };
236
+ })(InferenceProfileModelSource || (InferenceProfileModelSource = {}));
229
237
  export const InferenceProfileStatus = {
230
238
  ACTIVE: "ACTIVE",
231
239
  };
232
240
  export const InferenceProfileType = {
241
+ APPLICATION: "APPLICATION",
233
242
  SYSTEM_DEFINED: "SYSTEM_DEFINED",
234
243
  };
235
244
  export const ModelCopyJobStatus = {
@@ -497,6 +506,25 @@ export const UpdateGuardrailRequestFilterSensitiveLog = (obj) => ({
497
506
  ...(obj.blockedInputMessaging && { blockedInputMessaging: SENSITIVE_STRING }),
498
507
  ...(obj.blockedOutputsMessaging && { blockedOutputsMessaging: SENSITIVE_STRING }),
499
508
  });
509
+ export const CreateInferenceProfileRequestFilterSensitiveLog = (obj) => ({
510
+ ...obj,
511
+ ...(obj.description && { description: SENSITIVE_STRING }),
512
+ ...(obj.modelSource && { modelSource: obj.modelSource }),
513
+ });
514
+ export const GetInferenceProfileResponseFilterSensitiveLog = (obj) => ({
515
+ ...obj,
516
+ ...(obj.description && { description: SENSITIVE_STRING }),
517
+ });
518
+ export const InferenceProfileSummaryFilterSensitiveLog = (obj) => ({
519
+ ...obj,
520
+ ...(obj.description && { description: SENSITIVE_STRING }),
521
+ });
522
+ export const ListInferenceProfilesResponseFilterSensitiveLog = (obj) => ({
523
+ ...obj,
524
+ ...(obj.inferenceProfileSummaries && {
525
+ inferenceProfileSummaries: obj.inferenceProfileSummaries.map((item) => InferenceProfileSummaryFilterSensitiveLog(item)),
526
+ }),
527
+ });
500
528
  export const GetModelInvocationJobResponseFilterSensitiveLog = (obj) => ({
501
529
  ...obj,
502
530
  ...(obj.message && { message: SENSITIVE_STRING }),
@@ -77,6 +77,23 @@ export const se_CreateGuardrailVersionCommand = async (input, context) => {
77
77
  b.m("POST").h(headers).b(body);
78
78
  return b.build();
79
79
  };
80
+ export const se_CreateInferenceProfileCommand = async (input, context) => {
81
+ const b = rb(input, context);
82
+ const headers = {
83
+ "content-type": "application/json",
84
+ };
85
+ b.bp("/inference-profiles");
86
+ let body;
87
+ body = JSON.stringify(take(input, {
88
+ clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
89
+ description: [],
90
+ inferenceProfileName: [],
91
+ modelSource: (_) => _json(_),
92
+ tags: (_) => _json(_),
93
+ }));
94
+ b.m("POST").h(headers).b(body);
95
+ return b.build();
96
+ };
80
97
  export const se_CreateModelCopyJobCommand = async (input, context) => {
81
98
  const b = rb(input, context);
82
99
  const headers = {
@@ -210,6 +227,15 @@ export const se_DeleteImportedModelCommand = async (input, context) => {
210
227
  b.m("DELETE").h(headers).b(body);
211
228
  return b.build();
212
229
  };
230
+ export const se_DeleteInferenceProfileCommand = async (input, context) => {
231
+ const b = rb(input, context);
232
+ const headers = {};
233
+ b.bp("/inference-profiles/{inferenceProfileIdentifier}");
234
+ b.p("inferenceProfileIdentifier", () => input.inferenceProfileIdentifier, "{inferenceProfileIdentifier}", false);
235
+ let body;
236
+ b.m("DELETE").h(headers).b(body);
237
+ return b.build();
238
+ };
213
239
  export const se_DeleteModelInvocationLoggingConfigurationCommand = async (input, context) => {
214
240
  const b = rb(input, context);
215
241
  const headers = {};
@@ -426,6 +452,7 @@ export const se_ListInferenceProfilesCommand = async (input, context) => {
426
452
  const query = map({
427
453
  [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
428
454
  [_nT]: [, input[_nT]],
455
+ [_t]: [, input[_tE]],
429
456
  });
430
457
  let body;
431
458
  b.m("GET").h(headers).q(query).b(body);
@@ -704,6 +731,21 @@ export const de_CreateGuardrailVersionCommand = async (output, context) => {
704
731
  Object.assign(contents, doc);
705
732
  return contents;
706
733
  };
734
+ export const de_CreateInferenceProfileCommand = async (output, context) => {
735
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
736
+ return de_CommandError(output, context);
737
+ }
738
+ const contents = map({
739
+ $metadata: deserializeMetadata(output),
740
+ });
741
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
742
+ const doc = take(data, {
743
+ inferenceProfileArn: __expectString,
744
+ status: __expectString,
745
+ });
746
+ Object.assign(contents, doc);
747
+ return contents;
748
+ };
707
749
  export const de_CreateModelCopyJobCommand = async (output, context) => {
708
750
  if (output.statusCode !== 201 && output.statusCode >= 300) {
709
751
  return de_CommandError(output, context);
@@ -804,6 +846,16 @@ export const de_DeleteImportedModelCommand = async (output, context) => {
804
846
  await collectBody(output.body, context);
805
847
  return contents;
806
848
  };
849
+ export const de_DeleteInferenceProfileCommand = async (output, context) => {
850
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
851
+ return de_CommandError(output, context);
852
+ }
853
+ const contents = map({
854
+ $metadata: deserializeMetadata(output),
855
+ });
856
+ await collectBody(output.body, context);
857
+ return contents;
858
+ };
807
859
  export const de_DeleteModelInvocationLoggingConfigurationCommand = async (output, context) => {
808
860
  if (output.statusCode !== 200 && output.statusCode >= 300) {
809
861
  return de_CommandError(output, context);
@@ -1826,4 +1878,6 @@ const _sMAE = "sourceModelArnEquals";
1826
1878
  const _sO = "sortOrder";
1827
1879
  const _sTA = "submitTimeAfter";
1828
1880
  const _sTB = "submitTimeBefore";
1881
+ const _t = "type";
1882
+ const _tE = "typeEquals";
1829
1883
  const _tMNC = "targetModelNameContains";
@@ -4,6 +4,7 @@ import { BatchDeleteEvaluationJobCommandInput, BatchDeleteEvaluationJobCommandOu
4
4
  import { CreateEvaluationJobCommandInput, CreateEvaluationJobCommandOutput } from "./commands/CreateEvaluationJobCommand";
5
5
  import { CreateGuardrailCommandInput, CreateGuardrailCommandOutput } from "./commands/CreateGuardrailCommand";
6
6
  import { CreateGuardrailVersionCommandInput, CreateGuardrailVersionCommandOutput } from "./commands/CreateGuardrailVersionCommand";
7
+ import { CreateInferenceProfileCommandInput, CreateInferenceProfileCommandOutput } from "./commands/CreateInferenceProfileCommand";
7
8
  import { CreateModelCopyJobCommandInput, CreateModelCopyJobCommandOutput } from "./commands/CreateModelCopyJobCommand";
8
9
  import { CreateModelCustomizationJobCommandInput, CreateModelCustomizationJobCommandOutput } from "./commands/CreateModelCustomizationJobCommand";
9
10
  import { CreateModelImportJobCommandInput, CreateModelImportJobCommandOutput } from "./commands/CreateModelImportJobCommand";
@@ -12,6 +13,7 @@ import { CreateProvisionedModelThroughputCommandInput, CreateProvisionedModelThr
12
13
  import { DeleteCustomModelCommandInput, DeleteCustomModelCommandOutput } from "./commands/DeleteCustomModelCommand";
13
14
  import { DeleteGuardrailCommandInput, DeleteGuardrailCommandOutput } from "./commands/DeleteGuardrailCommand";
14
15
  import { DeleteImportedModelCommandInput, DeleteImportedModelCommandOutput } from "./commands/DeleteImportedModelCommand";
16
+ import { DeleteInferenceProfileCommandInput, DeleteInferenceProfileCommandOutput } from "./commands/DeleteInferenceProfileCommand";
15
17
  import { DeleteModelInvocationLoggingConfigurationCommandInput, DeleteModelInvocationLoggingConfigurationCommandOutput } from "./commands/DeleteModelInvocationLoggingConfigurationCommand";
16
18
  import { DeleteProvisionedModelThroughputCommandInput, DeleteProvisionedModelThroughputCommandOutput } from "./commands/DeleteProvisionedModelThroughputCommand";
17
19
  import { GetCustomModelCommandInput, GetCustomModelCommandOutput } from "./commands/GetCustomModelCommand";
@@ -71,6 +73,12 @@ export interface Bedrock {
71
73
  createGuardrailVersion(args: CreateGuardrailVersionCommandInput, options?: __HttpHandlerOptions): Promise<CreateGuardrailVersionCommandOutput>;
72
74
  createGuardrailVersion(args: CreateGuardrailVersionCommandInput, cb: (err: any, data?: CreateGuardrailVersionCommandOutput) => void): void;
73
75
  createGuardrailVersion(args: CreateGuardrailVersionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateGuardrailVersionCommandOutput) => void): void;
76
+ /**
77
+ * @see {@link CreateInferenceProfileCommand}
78
+ */
79
+ createInferenceProfile(args: CreateInferenceProfileCommandInput, options?: __HttpHandlerOptions): Promise<CreateInferenceProfileCommandOutput>;
80
+ createInferenceProfile(args: CreateInferenceProfileCommandInput, cb: (err: any, data?: CreateInferenceProfileCommandOutput) => void): void;
81
+ createInferenceProfile(args: CreateInferenceProfileCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateInferenceProfileCommandOutput) => void): void;
74
82
  /**
75
83
  * @see {@link CreateModelCopyJobCommand}
76
84
  */
@@ -119,6 +127,12 @@ export interface Bedrock {
119
127
  deleteImportedModel(args: DeleteImportedModelCommandInput, options?: __HttpHandlerOptions): Promise<DeleteImportedModelCommandOutput>;
120
128
  deleteImportedModel(args: DeleteImportedModelCommandInput, cb: (err: any, data?: DeleteImportedModelCommandOutput) => void): void;
121
129
  deleteImportedModel(args: DeleteImportedModelCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteImportedModelCommandOutput) => void): void;
130
+ /**
131
+ * @see {@link DeleteInferenceProfileCommand}
132
+ */
133
+ deleteInferenceProfile(args: DeleteInferenceProfileCommandInput, options?: __HttpHandlerOptions): Promise<DeleteInferenceProfileCommandOutput>;
134
+ deleteInferenceProfile(args: DeleteInferenceProfileCommandInput, cb: (err: any, data?: DeleteInferenceProfileCommandOutput) => void): void;
135
+ deleteInferenceProfile(args: DeleteInferenceProfileCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteInferenceProfileCommandOutput) => void): void;
122
136
  /**
123
137
  * @see {@link DeleteModelInvocationLoggingConfigurationCommand}
124
138
  */