@aws-sdk/client-bedrock 3.758.0 → 3.763.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.
package/README.md CHANGED
@@ -282,6 +282,14 @@ CreateModelInvocationJob
282
282
 
283
283
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock/command/CreateModelInvocationJobCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/CreateModelInvocationJobCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/CreateModelInvocationJobCommandOutput/)
284
284
 
285
+ </details>
286
+ <details>
287
+ <summary>
288
+ CreatePromptRouter
289
+ </summary>
290
+
291
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock/command/CreatePromptRouterCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/CreatePromptRouterCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/CreatePromptRouterCommandOutput/)
292
+
285
293
  </details>
286
294
  <details>
287
295
  <summary>
@@ -338,6 +346,14 @@ DeleteModelInvocationLoggingConfiguration
338
346
 
339
347
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock/command/DeleteModelInvocationLoggingConfigurationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/DeleteModelInvocationLoggingConfigurationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/DeleteModelInvocationLoggingConfigurationCommandOutput/)
340
348
 
349
+ </details>
350
+ <details>
351
+ <summary>
352
+ DeletePromptRouter
353
+ </summary>
354
+
355
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock/command/DeletePromptRouterCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/DeletePromptRouterCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/DeletePromptRouterCommandOutput/)
356
+
341
357
  </details>
342
358
  <details>
343
359
  <summary>
package/dist-cjs/index.js CHANGED
@@ -49,6 +49,8 @@ __export(src_exports, {
49
49
  CreateModelCustomizationJobRequestFilterSensitiveLog: () => CreateModelCustomizationJobRequestFilterSensitiveLog,
50
50
  CreateModelImportJobCommand: () => CreateModelImportJobCommand,
51
51
  CreateModelInvocationJobCommand: () => CreateModelInvocationJobCommand,
52
+ CreatePromptRouterCommand: () => CreatePromptRouterCommand,
53
+ CreatePromptRouterRequestFilterSensitiveLog: () => CreatePromptRouterRequestFilterSensitiveLog,
52
54
  CreateProvisionedModelThroughputCommand: () => CreateProvisionedModelThroughputCommand,
53
55
  CustomizationConfig: () => CustomizationConfig,
54
56
  CustomizationType: () => CustomizationType,
@@ -58,6 +60,7 @@ __export(src_exports, {
58
60
  DeleteInferenceProfileCommand: () => DeleteInferenceProfileCommand,
59
61
  DeleteMarketplaceModelEndpointCommand: () => DeleteMarketplaceModelEndpointCommand,
60
62
  DeleteModelInvocationLoggingConfigurationCommand: () => DeleteModelInvocationLoggingConfigurationCommand,
63
+ DeletePromptRouterCommand: () => DeletePromptRouterCommand,
61
64
  DeleteProvisionedModelThroughputCommand: () => DeleteProvisionedModelThroughputCommand,
62
65
  DeregisterMarketplaceModelEndpointCommand: () => DeregisterMarketplaceModelEndpointCommand,
63
66
  EndpointConfig: () => EndpointConfig,
@@ -1221,6 +1224,10 @@ var GetCustomModelResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => (
1221
1224
  ...obj.trainingDataConfig && { trainingDataConfig: TrainingDataConfigFilterSensitiveLog(obj.trainingDataConfig) },
1222
1225
  ...obj.customizationConfig && { customizationConfig: obj.customizationConfig }
1223
1226
  }), "GetCustomModelResponseFilterSensitiveLog");
1227
+ var CreatePromptRouterRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1228
+ ...obj,
1229
+ ...obj.description && { description: import_smithy_client.SENSITIVE_STRING }
1230
+ }), "CreatePromptRouterRequestFilterSensitiveLog");
1224
1231
  var GetPromptRouterResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1225
1232
  ...obj,
1226
1233
  ...obj.description && { description: import_smithy_client.SENSITIVE_STRING }
@@ -1572,6 +1579,27 @@ var se_CreateModelInvocationJobCommand = /* @__PURE__ */ __name(async (input, co
1572
1579
  b.m("POST").h(headers).b(body);
1573
1580
  return b.build();
1574
1581
  }, "se_CreateModelInvocationJobCommand");
1582
+ var se_CreatePromptRouterCommand = /* @__PURE__ */ __name(async (input, context) => {
1583
+ const b = (0, import_core.requestBuilder)(input, context);
1584
+ const headers = {
1585
+ "content-type": "application/json"
1586
+ };
1587
+ b.bp("/prompt-routers");
1588
+ let body;
1589
+ body = JSON.stringify(
1590
+ (0, import_smithy_client.take)(input, {
1591
+ clientRequestToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
1592
+ description: [],
1593
+ fallbackModel: (_) => (0, import_smithy_client._json)(_),
1594
+ models: (_) => (0, import_smithy_client._json)(_),
1595
+ promptRouterName: [],
1596
+ routingCriteria: (_) => se_RoutingCriteria(_, context),
1597
+ tags: (_) => (0, import_smithy_client._json)(_)
1598
+ })
1599
+ );
1600
+ b.m("POST").h(headers).b(body);
1601
+ return b.build();
1602
+ }, "se_CreatePromptRouterCommand");
1575
1603
  var se_CreateProvisionedModelThroughputCommand = /* @__PURE__ */ __name(async (input, context) => {
1576
1604
  const b = (0, import_core.requestBuilder)(input, context);
1577
1605
  const headers = {
@@ -1648,6 +1676,15 @@ var se_DeleteModelInvocationLoggingConfigurationCommand = /* @__PURE__ */ __name
1648
1676
  b.m("DELETE").h(headers).b(body);
1649
1677
  return b.build();
1650
1678
  }, "se_DeleteModelInvocationLoggingConfigurationCommand");
1679
+ var se_DeletePromptRouterCommand = /* @__PURE__ */ __name(async (input, context) => {
1680
+ const b = (0, import_core.requestBuilder)(input, context);
1681
+ const headers = {};
1682
+ b.bp("/prompt-routers/{promptRouterArn}");
1683
+ b.p("promptRouterArn", () => input.promptRouterArn, "{promptRouterArn}", false);
1684
+ let body;
1685
+ b.m("DELETE").h(headers).b(body);
1686
+ return b.build();
1687
+ }, "se_DeletePromptRouterCommand");
1651
1688
  var se_DeleteProvisionedModelThroughputCommand = /* @__PURE__ */ __name(async (input, context) => {
1652
1689
  const b = (0, import_core.requestBuilder)(input, context);
1653
1690
  const headers = {};
@@ -1983,7 +2020,8 @@ var se_ListPromptRoutersCommand = /* @__PURE__ */ __name(async (input, context)
1983
2020
  b.bp("/prompt-routers");
1984
2021
  const query = (0, import_smithy_client.map)({
1985
2022
  [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
1986
- [_nT]: [, input[_nT]]
2023
+ [_nT]: [, input[_nT]],
2024
+ [_t]: [, input[_t]]
1987
2025
  });
1988
2026
  let body;
1989
2027
  b.m("GET").h(headers).q(query).b(body);
@@ -2318,6 +2356,20 @@ var de_CreateModelInvocationJobCommand = /* @__PURE__ */ __name(async (output, c
2318
2356
  Object.assign(contents, doc);
2319
2357
  return contents;
2320
2358
  }, "de_CreateModelInvocationJobCommand");
2359
+ var de_CreatePromptRouterCommand = /* @__PURE__ */ __name(async (output, context) => {
2360
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2361
+ return de_CommandError(output, context);
2362
+ }
2363
+ const contents = (0, import_smithy_client.map)({
2364
+ $metadata: deserializeMetadata(output)
2365
+ });
2366
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2367
+ const doc = (0, import_smithy_client.take)(data, {
2368
+ promptRouterArn: import_smithy_client.expectString
2369
+ });
2370
+ Object.assign(contents, doc);
2371
+ return contents;
2372
+ }, "de_CreatePromptRouterCommand");
2321
2373
  var de_CreateProvisionedModelThroughputCommand = /* @__PURE__ */ __name(async (output, context) => {
2322
2374
  if (output.statusCode !== 201 && output.statusCode >= 300) {
2323
2375
  return de_CommandError(output, context);
@@ -2392,6 +2444,16 @@ var de_DeleteModelInvocationLoggingConfigurationCommand = /* @__PURE__ */ __name
2392
2444
  await (0, import_smithy_client.collectBody)(output.body, context);
2393
2445
  return contents;
2394
2446
  }, "de_DeleteModelInvocationLoggingConfigurationCommand");
2447
+ var de_DeletePromptRouterCommand = /* @__PURE__ */ __name(async (output, context) => {
2448
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2449
+ return de_CommandError(output, context);
2450
+ }
2451
+ const contents = (0, import_smithy_client.map)({
2452
+ $metadata: deserializeMetadata(output)
2453
+ });
2454
+ await (0, import_smithy_client.collectBody)(output.body, context);
2455
+ return contents;
2456
+ }, "de_DeletePromptRouterCommand");
2395
2457
  var de_DeleteProvisionedModelThroughputCommand = /* @__PURE__ */ __name(async (output, context) => {
2396
2458
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2397
2459
  return de_CommandError(output, context);
@@ -3399,6 +3461,11 @@ var se_RetrieveConfig = /* @__PURE__ */ __name((input, context) => {
3399
3461
  knowledgeBaseRetrievalConfiguration: (_) => se_KnowledgeBaseRetrievalConfiguration(_, context)
3400
3462
  });
3401
3463
  }, "se_RetrieveConfig");
3464
+ var se_RoutingCriteria = /* @__PURE__ */ __name((input, context) => {
3465
+ return (0, import_smithy_client.take)(input, {
3466
+ responseQualityDifference: import_smithy_client.serializeFloat
3467
+ });
3468
+ }, "se_RoutingCriteria");
3402
3469
  var se_TextInferenceConfig = /* @__PURE__ */ __name((input, context) => {
3403
3470
  return (0, import_smithy_client.take)(input, {
3404
3471
  maxTokens: [],
@@ -4097,6 +4164,21 @@ var CreateModelInvocationJobCommand = class extends import_smithy_client.Command
4097
4164
  }
4098
4165
  };
4099
4166
 
4167
+ // src/commands/CreatePromptRouterCommand.ts
4168
+
4169
+
4170
+
4171
+ var CreatePromptRouterCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
4172
+ return [
4173
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4174
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4175
+ ];
4176
+ }).s("AmazonBedrockControlPlaneService", "CreatePromptRouter", {}).n("BedrockClient", "CreatePromptRouterCommand").f(CreatePromptRouterRequestFilterSensitiveLog, void 0).ser(se_CreatePromptRouterCommand).de(de_CreatePromptRouterCommand).build() {
4177
+ static {
4178
+ __name(this, "CreatePromptRouterCommand");
4179
+ }
4180
+ };
4181
+
4100
4182
  // src/commands/CreateProvisionedModelThroughputCommand.ts
4101
4183
 
4102
4184
 
@@ -4202,6 +4284,21 @@ var DeleteModelInvocationLoggingConfigurationCommand = class extends import_smit
4202
4284
  }
4203
4285
  };
4204
4286
 
4287
+ // src/commands/DeletePromptRouterCommand.ts
4288
+
4289
+
4290
+
4291
+ var DeletePromptRouterCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
4292
+ return [
4293
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4294
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4295
+ ];
4296
+ }).s("AmazonBedrockControlPlaneService", "DeletePromptRouter", {}).n("BedrockClient", "DeletePromptRouterCommand").f(void 0, void 0).ser(se_DeletePromptRouterCommand).de(de_DeletePromptRouterCommand).build() {
4297
+ static {
4298
+ __name(this, "DeletePromptRouterCommand");
4299
+ }
4300
+ };
4301
+
4205
4302
  // src/commands/DeleteProvisionedModelThroughputCommand.ts
4206
4303
 
4207
4304
 
@@ -4814,6 +4911,7 @@ var commands = {
4814
4911
  CreateModelCustomizationJobCommand,
4815
4912
  CreateModelImportJobCommand,
4816
4913
  CreateModelInvocationJobCommand,
4914
+ CreatePromptRouterCommand,
4817
4915
  CreateProvisionedModelThroughputCommand,
4818
4916
  DeleteCustomModelCommand,
4819
4917
  DeleteGuardrailCommand,
@@ -4821,6 +4919,7 @@ var commands = {
4821
4919
  DeleteInferenceProfileCommand,
4822
4920
  DeleteMarketplaceModelEndpointCommand,
4823
4921
  DeleteModelInvocationLoggingConfigurationCommand,
4922
+ DeletePromptRouterCommand,
4824
4923
  DeleteProvisionedModelThroughputCommand,
4825
4924
  DeregisterMarketplaceModelEndpointCommand,
4826
4925
  GetCustomModelCommand,
@@ -4934,6 +5033,7 @@ var paginateListProvisionedModelThroughputs = (0, import_core.createPaginator)(B
4934
5033
  CreateModelCustomizationJobCommand,
4935
5034
  CreateModelImportJobCommand,
4936
5035
  CreateModelInvocationJobCommand,
5036
+ CreatePromptRouterCommand,
4937
5037
  CreateProvisionedModelThroughputCommand,
4938
5038
  DeleteCustomModelCommand,
4939
5039
  DeleteGuardrailCommand,
@@ -4941,6 +5041,7 @@ var paginateListProvisionedModelThroughputs = (0, import_core.createPaginator)(B
4941
5041
  DeleteInferenceProfileCommand,
4942
5042
  DeleteMarketplaceModelEndpointCommand,
4943
5043
  DeleteModelInvocationLoggingConfigurationCommand,
5044
+ DeletePromptRouterCommand,
4944
5045
  DeleteProvisionedModelThroughputCommand,
4945
5046
  DeregisterMarketplaceModelEndpointCommand,
4946
5047
  GetCustomModelCommand,
@@ -5105,6 +5206,7 @@ var paginateListProvisionedModelThroughputs = (0, import_core.createPaginator)(B
5105
5206
  InvocationLogsConfigFilterSensitiveLog,
5106
5207
  TrainingDataConfigFilterSensitiveLog,
5107
5208
  GetCustomModelResponseFilterSensitiveLog,
5209
+ CreatePromptRouterRequestFilterSensitiveLog,
5108
5210
  GetPromptRouterResponseFilterSensitiveLog,
5109
5211
  PromptRouterSummaryFilterSensitiveLog,
5110
5212
  ListPromptRoutersResponseFilterSensitiveLog,
@@ -10,6 +10,7 @@ import { CreateModelCopyJobCommand, } from "./commands/CreateModelCopyJobCommand
10
10
  import { CreateModelCustomizationJobCommand, } from "./commands/CreateModelCustomizationJobCommand";
11
11
  import { CreateModelImportJobCommand, } from "./commands/CreateModelImportJobCommand";
12
12
  import { CreateModelInvocationJobCommand, } from "./commands/CreateModelInvocationJobCommand";
13
+ import { CreatePromptRouterCommand, } from "./commands/CreatePromptRouterCommand";
13
14
  import { CreateProvisionedModelThroughputCommand, } from "./commands/CreateProvisionedModelThroughputCommand";
14
15
  import { DeleteCustomModelCommand, } from "./commands/DeleteCustomModelCommand";
15
16
  import { DeleteGuardrailCommand, } from "./commands/DeleteGuardrailCommand";
@@ -17,6 +18,7 @@ import { DeleteImportedModelCommand, } from "./commands/DeleteImportedModelComma
17
18
  import { DeleteInferenceProfileCommand, } from "./commands/DeleteInferenceProfileCommand";
18
19
  import { DeleteMarketplaceModelEndpointCommand, } from "./commands/DeleteMarketplaceModelEndpointCommand";
19
20
  import { DeleteModelInvocationLoggingConfigurationCommand, } from "./commands/DeleteModelInvocationLoggingConfigurationCommand";
21
+ import { DeletePromptRouterCommand, } from "./commands/DeletePromptRouterCommand";
20
22
  import { DeleteProvisionedModelThroughputCommand, } from "./commands/DeleteProvisionedModelThroughputCommand";
21
23
  import { DeregisterMarketplaceModelEndpointCommand, } from "./commands/DeregisterMarketplaceModelEndpointCommand";
22
24
  import { GetCustomModelCommand, } from "./commands/GetCustomModelCommand";
@@ -68,6 +70,7 @@ const commands = {
68
70
  CreateModelCustomizationJobCommand,
69
71
  CreateModelImportJobCommand,
70
72
  CreateModelInvocationJobCommand,
73
+ CreatePromptRouterCommand,
71
74
  CreateProvisionedModelThroughputCommand,
72
75
  DeleteCustomModelCommand,
73
76
  DeleteGuardrailCommand,
@@ -75,6 +78,7 @@ const commands = {
75
78
  DeleteInferenceProfileCommand,
76
79
  DeleteMarketplaceModelEndpointCommand,
77
80
  DeleteModelInvocationLoggingConfigurationCommand,
81
+ DeletePromptRouterCommand,
78
82
  DeleteProvisionedModelThroughputCommand,
79
83
  DeregisterMarketplaceModelEndpointCommand,
80
84
  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 { CreatePromptRouterRequestFilterSensitiveLog, } from "../models/models_0";
6
+ import { de_CreatePromptRouterCommand, se_CreatePromptRouterCommand } from "../protocols/Aws_restJson1";
7
+ export { $Command };
8
+ export class CreatePromptRouterCommand 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", "CreatePromptRouter", {})
18
+ .n("BedrockClient", "CreatePromptRouterCommand")
19
+ .f(CreatePromptRouterRequestFilterSensitiveLog, void 0)
20
+ .ser(se_CreatePromptRouterCommand)
21
+ .de(de_CreatePromptRouterCommand)
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_DeletePromptRouterCommand, se_DeletePromptRouterCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class DeletePromptRouterCommand 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", "DeletePromptRouter", {})
17
+ .n("BedrockClient", "DeletePromptRouterCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_DeletePromptRouterCommand)
20
+ .de(de_DeletePromptRouterCommand)
21
+ .build() {
22
+ }
@@ -8,6 +8,7 @@ export * from "./CreateModelCopyJobCommand";
8
8
  export * from "./CreateModelCustomizationJobCommand";
9
9
  export * from "./CreateModelImportJobCommand";
10
10
  export * from "./CreateModelInvocationJobCommand";
11
+ export * from "./CreatePromptRouterCommand";
11
12
  export * from "./CreateProvisionedModelThroughputCommand";
12
13
  export * from "./DeleteCustomModelCommand";
13
14
  export * from "./DeleteGuardrailCommand";
@@ -15,6 +16,7 @@ export * from "./DeleteImportedModelCommand";
15
16
  export * from "./DeleteInferenceProfileCommand";
16
17
  export * from "./DeleteMarketplaceModelEndpointCommand";
17
18
  export * from "./DeleteModelInvocationLoggingConfigurationCommand";
19
+ export * from "./DeletePromptRouterCommand";
18
20
  export * from "./DeleteProvisionedModelThroughputCommand";
19
21
  export * from "./DeregisterMarketplaceModelEndpointCommand";
20
22
  export * from "./GetCustomModelCommand";
@@ -767,6 +767,10 @@ export const GetCustomModelResponseFilterSensitiveLog = (obj) => ({
767
767
  ...(obj.trainingDataConfig && { trainingDataConfig: TrainingDataConfigFilterSensitiveLog(obj.trainingDataConfig) }),
768
768
  ...(obj.customizationConfig && { customizationConfig: obj.customizationConfig }),
769
769
  });
770
+ export const CreatePromptRouterRequestFilterSensitiveLog = (obj) => ({
771
+ ...obj,
772
+ ...(obj.description && { description: SENSITIVE_STRING }),
773
+ });
770
774
  export const GetPromptRouterResponseFilterSensitiveLog = (obj) => ({
771
775
  ...obj,
772
776
  ...(obj.description && { description: SENSITIVE_STRING }),
@@ -199,6 +199,25 @@ export const se_CreateModelInvocationJobCommand = async (input, context) => {
199
199
  b.m("POST").h(headers).b(body);
200
200
  return b.build();
201
201
  };
202
+ export const se_CreatePromptRouterCommand = async (input, context) => {
203
+ const b = rb(input, context);
204
+ const headers = {
205
+ "content-type": "application/json",
206
+ };
207
+ b.bp("/prompt-routers");
208
+ let body;
209
+ body = JSON.stringify(take(input, {
210
+ clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
211
+ description: [],
212
+ fallbackModel: (_) => _json(_),
213
+ models: (_) => _json(_),
214
+ promptRouterName: [],
215
+ routingCriteria: (_) => se_RoutingCriteria(_, context),
216
+ tags: (_) => _json(_),
217
+ }));
218
+ b.m("POST").h(headers).b(body);
219
+ return b.build();
220
+ };
202
221
  export const se_CreateProvisionedModelThroughputCommand = async (input, context) => {
203
222
  const b = rb(input, context);
204
223
  const headers = {
@@ -273,6 +292,15 @@ export const se_DeleteModelInvocationLoggingConfigurationCommand = async (input,
273
292
  b.m("DELETE").h(headers).b(body);
274
293
  return b.build();
275
294
  };
295
+ export const se_DeletePromptRouterCommand = async (input, context) => {
296
+ const b = rb(input, context);
297
+ const headers = {};
298
+ b.bp("/prompt-routers/{promptRouterArn}");
299
+ b.p("promptRouterArn", () => input.promptRouterArn, "{promptRouterArn}", false);
300
+ let body;
301
+ b.m("DELETE").h(headers).b(body);
302
+ return b.build();
303
+ };
276
304
  export const se_DeleteProvisionedModelThroughputCommand = async (input, context) => {
277
305
  const b = rb(input, context);
278
306
  const headers = {};
@@ -609,6 +637,7 @@ export const se_ListPromptRoutersCommand = async (input, context) => {
609
637
  const query = map({
610
638
  [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
611
639
  [_nT]: [, input[_nT]],
640
+ [_t]: [, input[_t]],
612
641
  });
613
642
  let body;
614
643
  b.m("GET").h(headers).q(query).b(body);
@@ -927,6 +956,20 @@ export const de_CreateModelInvocationJobCommand = async (output, context) => {
927
956
  Object.assign(contents, doc);
928
957
  return contents;
929
958
  };
959
+ export const de_CreatePromptRouterCommand = async (output, context) => {
960
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
961
+ return de_CommandError(output, context);
962
+ }
963
+ const contents = map({
964
+ $metadata: deserializeMetadata(output),
965
+ });
966
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
967
+ const doc = take(data, {
968
+ promptRouterArn: __expectString,
969
+ });
970
+ Object.assign(contents, doc);
971
+ return contents;
972
+ };
930
973
  export const de_CreateProvisionedModelThroughputCommand = async (output, context) => {
931
974
  if (output.statusCode !== 201 && output.statusCode >= 300) {
932
975
  return de_CommandError(output, context);
@@ -1001,6 +1044,16 @@ export const de_DeleteModelInvocationLoggingConfigurationCommand = async (output
1001
1044
  await collectBody(output.body, context);
1002
1045
  return contents;
1003
1046
  };
1047
+ export const de_DeletePromptRouterCommand = async (output, context) => {
1048
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1049
+ return de_CommandError(output, context);
1050
+ }
1051
+ const contents = map({
1052
+ $metadata: deserializeMetadata(output),
1053
+ });
1054
+ await collectBody(output.body, context);
1055
+ return contents;
1056
+ };
1004
1057
  export const de_DeleteProvisionedModelThroughputCommand = async (output, context) => {
1005
1058
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1006
1059
  return de_CommandError(output, context);
@@ -2016,6 +2069,11 @@ const se_RetrieveConfig = (input, context) => {
2016
2069
  knowledgeBaseRetrievalConfiguration: (_) => se_KnowledgeBaseRetrievalConfiguration(_, context),
2017
2070
  });
2018
2071
  };
2072
+ const se_RoutingCriteria = (input, context) => {
2073
+ return take(input, {
2074
+ responseQualityDifference: __serializeFloat,
2075
+ });
2076
+ };
2019
2077
  const se_TextInferenceConfig = (input, context) => {
2020
2078
  return take(input, {
2021
2079
  maxTokens: [],
@@ -10,6 +10,7 @@ import { CreateModelCopyJobCommandInput, CreateModelCopyJobCommandOutput } from
10
10
  import { CreateModelCustomizationJobCommandInput, CreateModelCustomizationJobCommandOutput } from "./commands/CreateModelCustomizationJobCommand";
11
11
  import { CreateModelImportJobCommandInput, CreateModelImportJobCommandOutput } from "./commands/CreateModelImportJobCommand";
12
12
  import { CreateModelInvocationJobCommandInput, CreateModelInvocationJobCommandOutput } from "./commands/CreateModelInvocationJobCommand";
13
+ import { CreatePromptRouterCommandInput, CreatePromptRouterCommandOutput } from "./commands/CreatePromptRouterCommand";
13
14
  import { CreateProvisionedModelThroughputCommandInput, CreateProvisionedModelThroughputCommandOutput } from "./commands/CreateProvisionedModelThroughputCommand";
14
15
  import { DeleteCustomModelCommandInput, DeleteCustomModelCommandOutput } from "./commands/DeleteCustomModelCommand";
15
16
  import { DeleteGuardrailCommandInput, DeleteGuardrailCommandOutput } from "./commands/DeleteGuardrailCommand";
@@ -17,6 +18,7 @@ import { DeleteImportedModelCommandInput, DeleteImportedModelCommandOutput } fro
17
18
  import { DeleteInferenceProfileCommandInput, DeleteInferenceProfileCommandOutput } from "./commands/DeleteInferenceProfileCommand";
18
19
  import { DeleteMarketplaceModelEndpointCommandInput, DeleteMarketplaceModelEndpointCommandOutput } from "./commands/DeleteMarketplaceModelEndpointCommand";
19
20
  import { DeleteModelInvocationLoggingConfigurationCommandInput, DeleteModelInvocationLoggingConfigurationCommandOutput } from "./commands/DeleteModelInvocationLoggingConfigurationCommand";
21
+ import { DeletePromptRouterCommandInput, DeletePromptRouterCommandOutput } from "./commands/DeletePromptRouterCommand";
20
22
  import { DeleteProvisionedModelThroughputCommandInput, DeleteProvisionedModelThroughputCommandOutput } from "./commands/DeleteProvisionedModelThroughputCommand";
21
23
  import { DeregisterMarketplaceModelEndpointCommandInput, DeregisterMarketplaceModelEndpointCommandOutput } from "./commands/DeregisterMarketplaceModelEndpointCommand";
22
24
  import { GetCustomModelCommandInput, GetCustomModelCommandOutput } from "./commands/GetCustomModelCommand";
@@ -118,6 +120,12 @@ export interface Bedrock {
118
120
  createModelInvocationJob(args: CreateModelInvocationJobCommandInput, options?: __HttpHandlerOptions): Promise<CreateModelInvocationJobCommandOutput>;
119
121
  createModelInvocationJob(args: CreateModelInvocationJobCommandInput, cb: (err: any, data?: CreateModelInvocationJobCommandOutput) => void): void;
120
122
  createModelInvocationJob(args: CreateModelInvocationJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateModelInvocationJobCommandOutput) => void): void;
123
+ /**
124
+ * @see {@link CreatePromptRouterCommand}
125
+ */
126
+ createPromptRouter(args: CreatePromptRouterCommandInput, options?: __HttpHandlerOptions): Promise<CreatePromptRouterCommandOutput>;
127
+ createPromptRouter(args: CreatePromptRouterCommandInput, cb: (err: any, data?: CreatePromptRouterCommandOutput) => void): void;
128
+ createPromptRouter(args: CreatePromptRouterCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreatePromptRouterCommandOutput) => void): void;
121
129
  /**
122
130
  * @see {@link CreateProvisionedModelThroughputCommand}
123
131
  */
@@ -161,6 +169,12 @@ export interface Bedrock {
161
169
  deleteModelInvocationLoggingConfiguration(args: DeleteModelInvocationLoggingConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<DeleteModelInvocationLoggingConfigurationCommandOutput>;
162
170
  deleteModelInvocationLoggingConfiguration(args: DeleteModelInvocationLoggingConfigurationCommandInput, cb: (err: any, data?: DeleteModelInvocationLoggingConfigurationCommandOutput) => void): void;
163
171
  deleteModelInvocationLoggingConfiguration(args: DeleteModelInvocationLoggingConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteModelInvocationLoggingConfigurationCommandOutput) => void): void;
172
+ /**
173
+ * @see {@link DeletePromptRouterCommand}
174
+ */
175
+ deletePromptRouter(args: DeletePromptRouterCommandInput, options?: __HttpHandlerOptions): Promise<DeletePromptRouterCommandOutput>;
176
+ deletePromptRouter(args: DeletePromptRouterCommandInput, cb: (err: any, data?: DeletePromptRouterCommandOutput) => void): void;
177
+ deletePromptRouter(args: DeletePromptRouterCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeletePromptRouterCommandOutput) => void): void;
164
178
  /**
165
179
  * @see {@link DeleteProvisionedModelThroughputCommand}
166
180
  */
@@ -17,6 +17,7 @@ import { CreateModelCopyJobCommandInput, CreateModelCopyJobCommandOutput } from
17
17
  import { CreateModelCustomizationJobCommandInput, CreateModelCustomizationJobCommandOutput } from "./commands/CreateModelCustomizationJobCommand";
18
18
  import { CreateModelImportJobCommandInput, CreateModelImportJobCommandOutput } from "./commands/CreateModelImportJobCommand";
19
19
  import { CreateModelInvocationJobCommandInput, CreateModelInvocationJobCommandOutput } from "./commands/CreateModelInvocationJobCommand";
20
+ import { CreatePromptRouterCommandInput, CreatePromptRouterCommandOutput } from "./commands/CreatePromptRouterCommand";
20
21
  import { CreateProvisionedModelThroughputCommandInput, CreateProvisionedModelThroughputCommandOutput } from "./commands/CreateProvisionedModelThroughputCommand";
21
22
  import { DeleteCustomModelCommandInput, DeleteCustomModelCommandOutput } from "./commands/DeleteCustomModelCommand";
22
23
  import { DeleteGuardrailCommandInput, DeleteGuardrailCommandOutput } from "./commands/DeleteGuardrailCommand";
@@ -24,6 +25,7 @@ import { DeleteImportedModelCommandInput, DeleteImportedModelCommandOutput } fro
24
25
  import { DeleteInferenceProfileCommandInput, DeleteInferenceProfileCommandOutput } from "./commands/DeleteInferenceProfileCommand";
25
26
  import { DeleteMarketplaceModelEndpointCommandInput, DeleteMarketplaceModelEndpointCommandOutput } from "./commands/DeleteMarketplaceModelEndpointCommand";
26
27
  import { DeleteModelInvocationLoggingConfigurationCommandInput, DeleteModelInvocationLoggingConfigurationCommandOutput } from "./commands/DeleteModelInvocationLoggingConfigurationCommand";
28
+ import { DeletePromptRouterCommandInput, DeletePromptRouterCommandOutput } from "./commands/DeletePromptRouterCommand";
27
29
  import { DeleteProvisionedModelThroughputCommandInput, DeleteProvisionedModelThroughputCommandOutput } from "./commands/DeleteProvisionedModelThroughputCommand";
28
30
  import { DeregisterMarketplaceModelEndpointCommandInput, DeregisterMarketplaceModelEndpointCommandOutput } from "./commands/DeregisterMarketplaceModelEndpointCommand";
29
31
  import { GetCustomModelCommandInput, GetCustomModelCommandOutput } from "./commands/GetCustomModelCommand";
@@ -70,11 +72,11 @@ export { __Client };
70
72
  /**
71
73
  * @public
72
74
  */
73
- export type ServiceInputTypes = BatchDeleteEvaluationJobCommandInput | CreateEvaluationJobCommandInput | CreateGuardrailCommandInput | CreateGuardrailVersionCommandInput | CreateInferenceProfileCommandInput | CreateMarketplaceModelEndpointCommandInput | CreateModelCopyJobCommandInput | CreateModelCustomizationJobCommandInput | CreateModelImportJobCommandInput | CreateModelInvocationJobCommandInput | CreateProvisionedModelThroughputCommandInput | DeleteCustomModelCommandInput | DeleteGuardrailCommandInput | DeleteImportedModelCommandInput | DeleteInferenceProfileCommandInput | DeleteMarketplaceModelEndpointCommandInput | DeleteModelInvocationLoggingConfigurationCommandInput | DeleteProvisionedModelThroughputCommandInput | DeregisterMarketplaceModelEndpointCommandInput | GetCustomModelCommandInput | GetEvaluationJobCommandInput | GetFoundationModelCommandInput | GetGuardrailCommandInput | GetImportedModelCommandInput | GetInferenceProfileCommandInput | GetMarketplaceModelEndpointCommandInput | GetModelCopyJobCommandInput | GetModelCustomizationJobCommandInput | GetModelImportJobCommandInput | GetModelInvocationJobCommandInput | GetModelInvocationLoggingConfigurationCommandInput | GetPromptRouterCommandInput | GetProvisionedModelThroughputCommandInput | ListCustomModelsCommandInput | ListEvaluationJobsCommandInput | ListFoundationModelsCommandInput | ListGuardrailsCommandInput | ListImportedModelsCommandInput | ListInferenceProfilesCommandInput | ListMarketplaceModelEndpointsCommandInput | ListModelCopyJobsCommandInput | ListModelCustomizationJobsCommandInput | ListModelImportJobsCommandInput | ListModelInvocationJobsCommandInput | ListPromptRoutersCommandInput | ListProvisionedModelThroughputsCommandInput | ListTagsForResourceCommandInput | PutModelInvocationLoggingConfigurationCommandInput | RegisterMarketplaceModelEndpointCommandInput | StopEvaluationJobCommandInput | StopModelCustomizationJobCommandInput | StopModelInvocationJobCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateGuardrailCommandInput | UpdateMarketplaceModelEndpointCommandInput | UpdateProvisionedModelThroughputCommandInput;
75
+ export type ServiceInputTypes = BatchDeleteEvaluationJobCommandInput | CreateEvaluationJobCommandInput | CreateGuardrailCommandInput | CreateGuardrailVersionCommandInput | CreateInferenceProfileCommandInput | CreateMarketplaceModelEndpointCommandInput | CreateModelCopyJobCommandInput | CreateModelCustomizationJobCommandInput | CreateModelImportJobCommandInput | CreateModelInvocationJobCommandInput | CreatePromptRouterCommandInput | CreateProvisionedModelThroughputCommandInput | DeleteCustomModelCommandInput | DeleteGuardrailCommandInput | DeleteImportedModelCommandInput | DeleteInferenceProfileCommandInput | DeleteMarketplaceModelEndpointCommandInput | DeleteModelInvocationLoggingConfigurationCommandInput | DeletePromptRouterCommandInput | DeleteProvisionedModelThroughputCommandInput | DeregisterMarketplaceModelEndpointCommandInput | GetCustomModelCommandInput | GetEvaluationJobCommandInput | GetFoundationModelCommandInput | GetGuardrailCommandInput | GetImportedModelCommandInput | GetInferenceProfileCommandInput | GetMarketplaceModelEndpointCommandInput | GetModelCopyJobCommandInput | GetModelCustomizationJobCommandInput | GetModelImportJobCommandInput | GetModelInvocationJobCommandInput | GetModelInvocationLoggingConfigurationCommandInput | GetPromptRouterCommandInput | GetProvisionedModelThroughputCommandInput | ListCustomModelsCommandInput | ListEvaluationJobsCommandInput | ListFoundationModelsCommandInput | ListGuardrailsCommandInput | ListImportedModelsCommandInput | ListInferenceProfilesCommandInput | ListMarketplaceModelEndpointsCommandInput | ListModelCopyJobsCommandInput | ListModelCustomizationJobsCommandInput | ListModelImportJobsCommandInput | ListModelInvocationJobsCommandInput | ListPromptRoutersCommandInput | ListProvisionedModelThroughputsCommandInput | ListTagsForResourceCommandInput | PutModelInvocationLoggingConfigurationCommandInput | RegisterMarketplaceModelEndpointCommandInput | StopEvaluationJobCommandInput | StopModelCustomizationJobCommandInput | StopModelInvocationJobCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateGuardrailCommandInput | UpdateMarketplaceModelEndpointCommandInput | UpdateProvisionedModelThroughputCommandInput;
74
76
  /**
75
77
  * @public
76
78
  */
77
- export type ServiceOutputTypes = BatchDeleteEvaluationJobCommandOutput | CreateEvaluationJobCommandOutput | CreateGuardrailCommandOutput | CreateGuardrailVersionCommandOutput | CreateInferenceProfileCommandOutput | CreateMarketplaceModelEndpointCommandOutput | CreateModelCopyJobCommandOutput | CreateModelCustomizationJobCommandOutput | CreateModelImportJobCommandOutput | CreateModelInvocationJobCommandOutput | CreateProvisionedModelThroughputCommandOutput | DeleteCustomModelCommandOutput | DeleteGuardrailCommandOutput | DeleteImportedModelCommandOutput | DeleteInferenceProfileCommandOutput | DeleteMarketplaceModelEndpointCommandOutput | DeleteModelInvocationLoggingConfigurationCommandOutput | DeleteProvisionedModelThroughputCommandOutput | DeregisterMarketplaceModelEndpointCommandOutput | GetCustomModelCommandOutput | GetEvaluationJobCommandOutput | GetFoundationModelCommandOutput | GetGuardrailCommandOutput | GetImportedModelCommandOutput | GetInferenceProfileCommandOutput | GetMarketplaceModelEndpointCommandOutput | GetModelCopyJobCommandOutput | GetModelCustomizationJobCommandOutput | GetModelImportJobCommandOutput | GetModelInvocationJobCommandOutput | GetModelInvocationLoggingConfigurationCommandOutput | GetPromptRouterCommandOutput | GetProvisionedModelThroughputCommandOutput | ListCustomModelsCommandOutput | ListEvaluationJobsCommandOutput | ListFoundationModelsCommandOutput | ListGuardrailsCommandOutput | ListImportedModelsCommandOutput | ListInferenceProfilesCommandOutput | ListMarketplaceModelEndpointsCommandOutput | ListModelCopyJobsCommandOutput | ListModelCustomizationJobsCommandOutput | ListModelImportJobsCommandOutput | ListModelInvocationJobsCommandOutput | ListPromptRoutersCommandOutput | ListProvisionedModelThroughputsCommandOutput | ListTagsForResourceCommandOutput | PutModelInvocationLoggingConfigurationCommandOutput | RegisterMarketplaceModelEndpointCommandOutput | StopEvaluationJobCommandOutput | StopModelCustomizationJobCommandOutput | StopModelInvocationJobCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateGuardrailCommandOutput | UpdateMarketplaceModelEndpointCommandOutput | UpdateProvisionedModelThroughputCommandOutput;
79
+ export type ServiceOutputTypes = BatchDeleteEvaluationJobCommandOutput | CreateEvaluationJobCommandOutput | CreateGuardrailCommandOutput | CreateGuardrailVersionCommandOutput | CreateInferenceProfileCommandOutput | CreateMarketplaceModelEndpointCommandOutput | CreateModelCopyJobCommandOutput | CreateModelCustomizationJobCommandOutput | CreateModelImportJobCommandOutput | CreateModelInvocationJobCommandOutput | CreatePromptRouterCommandOutput | CreateProvisionedModelThroughputCommandOutput | DeleteCustomModelCommandOutput | DeleteGuardrailCommandOutput | DeleteImportedModelCommandOutput | DeleteInferenceProfileCommandOutput | DeleteMarketplaceModelEndpointCommandOutput | DeleteModelInvocationLoggingConfigurationCommandOutput | DeletePromptRouterCommandOutput | DeleteProvisionedModelThroughputCommandOutput | DeregisterMarketplaceModelEndpointCommandOutput | GetCustomModelCommandOutput | GetEvaluationJobCommandOutput | GetFoundationModelCommandOutput | GetGuardrailCommandOutput | GetImportedModelCommandOutput | GetInferenceProfileCommandOutput | GetMarketplaceModelEndpointCommandOutput | GetModelCopyJobCommandOutput | GetModelCustomizationJobCommandOutput | GetModelImportJobCommandOutput | GetModelInvocationJobCommandOutput | GetModelInvocationLoggingConfigurationCommandOutput | GetPromptRouterCommandOutput | GetProvisionedModelThroughputCommandOutput | ListCustomModelsCommandOutput | ListEvaluationJobsCommandOutput | ListFoundationModelsCommandOutput | ListGuardrailsCommandOutput | ListImportedModelsCommandOutput | ListInferenceProfilesCommandOutput | ListMarketplaceModelEndpointsCommandOutput | ListModelCopyJobsCommandOutput | ListModelCustomizationJobsCommandOutput | ListModelImportJobsCommandOutput | ListModelInvocationJobsCommandOutput | ListPromptRoutersCommandOutput | ListProvisionedModelThroughputsCommandOutput | ListTagsForResourceCommandOutput | PutModelInvocationLoggingConfigurationCommandOutput | RegisterMarketplaceModelEndpointCommandOutput | StopEvaluationJobCommandOutput | StopModelCustomizationJobCommandOutput | StopModelInvocationJobCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateGuardrailCommandOutput | UpdateMarketplaceModelEndpointCommandOutput | UpdateProvisionedModelThroughputCommandOutput;
78
80
  /**
79
81
  * @public
80
82
  */
@@ -0,0 +1,115 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockClient";
4
+ import { CreatePromptRouterRequest, CreatePromptRouterResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link CreatePromptRouterCommand}.
14
+ */
15
+ export interface CreatePromptRouterCommandInput extends CreatePromptRouterRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link CreatePromptRouterCommand}.
21
+ */
22
+ export interface CreatePromptRouterCommandOutput extends CreatePromptRouterResponse, __MetadataBearer {
23
+ }
24
+ declare const CreatePromptRouterCommand_base: {
25
+ new (input: CreatePromptRouterCommandInput): import("@smithy/smithy-client").CommandImpl<CreatePromptRouterCommandInput, CreatePromptRouterCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: CreatePromptRouterCommandInput): import("@smithy/smithy-client").CommandImpl<CreatePromptRouterCommandInput, CreatePromptRouterCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Creates a prompt router that manages the routing of requests between multiple foundation models based on the routing criteria.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { BedrockClient, CreatePromptRouterCommand } from "@aws-sdk/client-bedrock"; // ES Modules import
35
+ * // const { BedrockClient, CreatePromptRouterCommand } = require("@aws-sdk/client-bedrock"); // CommonJS import
36
+ * const client = new BedrockClient(config);
37
+ * const input = { // CreatePromptRouterRequest
38
+ * clientRequestToken: "STRING_VALUE",
39
+ * promptRouterName: "STRING_VALUE", // required
40
+ * models: [ // PromptRouterTargetModels // required
41
+ * { // PromptRouterTargetModel
42
+ * modelArn: "STRING_VALUE", // required
43
+ * },
44
+ * ],
45
+ * description: "STRING_VALUE",
46
+ * routingCriteria: { // RoutingCriteria
47
+ * responseQualityDifference: Number("double"), // required
48
+ * },
49
+ * fallbackModel: {
50
+ * modelArn: "STRING_VALUE", // required
51
+ * },
52
+ * tags: [ // TagList
53
+ * { // Tag
54
+ * key: "STRING_VALUE", // required
55
+ * value: "STRING_VALUE", // required
56
+ * },
57
+ * ],
58
+ * };
59
+ * const command = new CreatePromptRouterCommand(input);
60
+ * const response = await client.send(command);
61
+ * // { // CreatePromptRouterResponse
62
+ * // promptRouterArn: "STRING_VALUE",
63
+ * // };
64
+ *
65
+ * ```
66
+ *
67
+ * @param CreatePromptRouterCommandInput - {@link CreatePromptRouterCommandInput}
68
+ * @returns {@link CreatePromptRouterCommandOutput}
69
+ * @see {@link CreatePromptRouterCommandInput} for command's `input` shape.
70
+ * @see {@link CreatePromptRouterCommandOutput} for command's `response` shape.
71
+ * @see {@link BedrockClientResolvedConfig | config} for BedrockClient's `config` shape.
72
+ *
73
+ * @throws {@link AccessDeniedException} (client fault)
74
+ * <p>The request is denied because of missing access permissions.</p>
75
+ *
76
+ * @throws {@link ConflictException} (client fault)
77
+ * <p>Error occurred because of a conflict while performing an operation.</p>
78
+ *
79
+ * @throws {@link InternalServerException} (server fault)
80
+ * <p>An internal server error occurred. Retry your request.</p>
81
+ *
82
+ * @throws {@link ResourceNotFoundException} (client fault)
83
+ * <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
84
+ *
85
+ * @throws {@link ServiceQuotaExceededException} (client fault)
86
+ * <p>The number of requests exceeds the service quota. Resubmit your request later.</p>
87
+ *
88
+ * @throws {@link ThrottlingException} (client fault)
89
+ * <p>The number of requests exceeds the limit. Resubmit your request later.</p>
90
+ *
91
+ * @throws {@link TooManyTagsException} (client fault)
92
+ * <p>The request contains more tags than can be associated with a resource (50 tags per resource).
93
+ * The maximum number of tags includes both existing tags and those included in your current request. </p>
94
+ *
95
+ * @throws {@link ValidationException} (client fault)
96
+ * <p>Input validation failed. Check your request parameters and retry the request.</p>
97
+ *
98
+ * @throws {@link BedrockServiceException}
99
+ * <p>Base exception class for all service exceptions from Bedrock service.</p>
100
+ *
101
+ * @public
102
+ */
103
+ export declare class CreatePromptRouterCommand extends CreatePromptRouterCommand_base {
104
+ /** @internal type navigation helper, not in runtime. */
105
+ protected static __types: {
106
+ api: {
107
+ input: CreatePromptRouterRequest;
108
+ output: CreatePromptRouterResponse;
109
+ };
110
+ sdk: {
111
+ input: CreatePromptRouterCommandInput;
112
+ output: CreatePromptRouterCommandOutput;
113
+ };
114
+ };
115
+ }