@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.
@@ -0,0 +1,84 @@
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 { DeletePromptRouterRequest, DeletePromptRouterResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link DeletePromptRouterCommand}.
14
+ */
15
+ export interface DeletePromptRouterCommandInput extends DeletePromptRouterRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DeletePromptRouterCommand}.
21
+ */
22
+ export interface DeletePromptRouterCommandOutput extends DeletePromptRouterResponse, __MetadataBearer {
23
+ }
24
+ declare const DeletePromptRouterCommand_base: {
25
+ new (input: DeletePromptRouterCommandInput): import("@smithy/smithy-client").CommandImpl<DeletePromptRouterCommandInput, DeletePromptRouterCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: DeletePromptRouterCommandInput): import("@smithy/smithy-client").CommandImpl<DeletePromptRouterCommandInput, DeletePromptRouterCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Deletes a specified prompt router. This action cannot be undone.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { BedrockClient, DeletePromptRouterCommand } from "@aws-sdk/client-bedrock"; // ES Modules import
35
+ * // const { BedrockClient, DeletePromptRouterCommand } = require("@aws-sdk/client-bedrock"); // CommonJS import
36
+ * const client = new BedrockClient(config);
37
+ * const input = { // DeletePromptRouterRequest
38
+ * promptRouterArn: "STRING_VALUE", // required
39
+ * };
40
+ * const command = new DeletePromptRouterCommand(input);
41
+ * const response = await client.send(command);
42
+ * // {};
43
+ *
44
+ * ```
45
+ *
46
+ * @param DeletePromptRouterCommandInput - {@link DeletePromptRouterCommandInput}
47
+ * @returns {@link DeletePromptRouterCommandOutput}
48
+ * @see {@link DeletePromptRouterCommandInput} for command's `input` shape.
49
+ * @see {@link DeletePromptRouterCommandOutput} for command's `response` shape.
50
+ * @see {@link BedrockClientResolvedConfig | config} for BedrockClient's `config` shape.
51
+ *
52
+ * @throws {@link AccessDeniedException} (client fault)
53
+ * <p>The request is denied because of missing access permissions.</p>
54
+ *
55
+ * @throws {@link InternalServerException} (server fault)
56
+ * <p>An internal server error occurred. Retry your request.</p>
57
+ *
58
+ * @throws {@link ResourceNotFoundException} (client fault)
59
+ * <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
60
+ *
61
+ * @throws {@link ThrottlingException} (client fault)
62
+ * <p>The number of requests exceeds the limit. Resubmit your request later.</p>
63
+ *
64
+ * @throws {@link ValidationException} (client fault)
65
+ * <p>Input validation failed. Check your request parameters and retry the request.</p>
66
+ *
67
+ * @throws {@link BedrockServiceException}
68
+ * <p>Base exception class for all service exceptions from Bedrock service.</p>
69
+ *
70
+ * @public
71
+ */
72
+ export declare class DeletePromptRouterCommand extends DeletePromptRouterCommand_base {
73
+ /** @internal type navigation helper, not in runtime. */
74
+ protected static __types: {
75
+ api: {
76
+ input: DeletePromptRouterRequest;
77
+ output: {};
78
+ };
79
+ sdk: {
80
+ input: DeletePromptRouterCommandInput;
81
+ output: DeletePromptRouterCommandOutput;
82
+ };
83
+ };
84
+ }
@@ -50,11 +50,11 @@ declare const GetPromptRouterCommand_base: {
50
50
  * // promptRouterArn: "STRING_VALUE", // required
51
51
  * // models: [ // PromptRouterTargetModels // required
52
52
  * // { // PromptRouterTargetModel
53
- * // modelArn: "STRING_VALUE",
53
+ * // modelArn: "STRING_VALUE", // required
54
54
  * // },
55
55
  * // ],
56
56
  * // fallbackModel: {
57
- * // modelArn: "STRING_VALUE",
57
+ * // modelArn: "STRING_VALUE", // required
58
58
  * // },
59
59
  * // status: "AVAILABLE", // required
60
60
  * // type: "custom" || "default", // required
@@ -37,6 +37,7 @@ declare const ListPromptRoutersCommand_base: {
37
37
  * const input = { // ListPromptRoutersRequest
38
38
  * maxResults: Number("int"),
39
39
  * nextToken: "STRING_VALUE",
40
+ * type: "custom" || "default",
40
41
  * };
41
42
  * const command = new ListPromptRoutersCommand(input);
42
43
  * const response = await client.send(command);
@@ -53,11 +54,11 @@ declare const ListPromptRoutersCommand_base: {
53
54
  * // promptRouterArn: "STRING_VALUE", // required
54
55
  * // models: [ // PromptRouterTargetModels // required
55
56
  * // { // PromptRouterTargetModel
56
- * // modelArn: "STRING_VALUE",
57
+ * // modelArn: "STRING_VALUE", // required
57
58
  * // },
58
59
  * // ],
59
60
  * // fallbackModel: {
60
- * // modelArn: "STRING_VALUE",
61
+ * // modelArn: "STRING_VALUE", // required
61
62
  * // },
62
63
  * // status: "AVAILABLE", // required
63
64
  * // type: "custom" || "default", // required
@@ -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";
@@ -5308,16 +5308,6 @@ export interface ListFoundationModelsResponse {
5308
5308
  */
5309
5309
  modelSummaries?: FoundationModelSummary[] | undefined;
5310
5310
  }
5311
- /**
5312
- * @public
5313
- */
5314
- export interface GetPromptRouterRequest {
5315
- /**
5316
- * <p>The prompt router's ARN</p>
5317
- * @public
5318
- */
5319
- promptRouterArn: string | undefined;
5320
- }
5321
5311
  /**
5322
5312
  * <p>The target model for a prompt router.</p>
5323
5313
  * @public
@@ -5327,7 +5317,7 @@ export interface PromptRouterTargetModel {
5327
5317
  * <p>The target model's ARN.</p>
5328
5318
  * @public
5329
5319
  */
5330
- modelArn?: string | undefined;
5320
+ modelArn: string | undefined;
5331
5321
  }
5332
5322
  /**
5333
5323
  * <p>Routing criteria for a prompt router.</p>
@@ -5340,6 +5330,82 @@ export interface RoutingCriteria {
5340
5330
  */
5341
5331
  responseQualityDifference: number | undefined;
5342
5332
  }
5333
+ /**
5334
+ * @public
5335
+ */
5336
+ export interface CreatePromptRouterRequest {
5337
+ /**
5338
+ * <p>A unique, case-sensitive identifier that you provide to ensure idempotency of your requests. If not specified, the Amazon Web Services SDK
5339
+ * automatically generates one for you.</p>
5340
+ * @public
5341
+ */
5342
+ clientRequestToken?: string | undefined;
5343
+ /**
5344
+ * <p>The name of the prompt router. The name must be unique within your Amazon Web Services account in the current region.</p>
5345
+ * @public
5346
+ */
5347
+ promptRouterName: string | undefined;
5348
+ /**
5349
+ * <p>A list of foundation models that the prompt router can route requests to. At least one model must be specified.</p>
5350
+ * @public
5351
+ */
5352
+ models: PromptRouterTargetModel[] | undefined;
5353
+ /**
5354
+ * <p>An optional description of the prompt router to help identify its purpose.</p>
5355
+ * @public
5356
+ */
5357
+ description?: string | undefined;
5358
+ /**
5359
+ * <p>The criteria, which is the response quality difference, used to determine how incoming requests are routed to different models.</p>
5360
+ * @public
5361
+ */
5362
+ routingCriteria: RoutingCriteria | undefined;
5363
+ /**
5364
+ * <p>The default model to use when the routing criteria is not met.</p>
5365
+ * @public
5366
+ */
5367
+ fallbackModel: PromptRouterTargetModel | undefined;
5368
+ /**
5369
+ * <p>An array of key-value pairs to apply to this resource as tags. You can use tags to categorize and manage your Amazon Web Services resources.</p>
5370
+ * @public
5371
+ */
5372
+ tags?: Tag[] | undefined;
5373
+ }
5374
+ /**
5375
+ * @public
5376
+ */
5377
+ export interface CreatePromptRouterResponse {
5378
+ /**
5379
+ * <p>The Amazon Resource Name (ARN) that uniquely identifies the prompt router.</p>
5380
+ * @public
5381
+ */
5382
+ promptRouterArn?: string | undefined;
5383
+ }
5384
+ /**
5385
+ * @public
5386
+ */
5387
+ export interface DeletePromptRouterRequest {
5388
+ /**
5389
+ * <p>The Amazon Resource Name (ARN) of the prompt router to delete.</p>
5390
+ * @public
5391
+ */
5392
+ promptRouterArn: string | undefined;
5393
+ }
5394
+ /**
5395
+ * @public
5396
+ */
5397
+ export interface DeletePromptRouterResponse {
5398
+ }
5399
+ /**
5400
+ * @public
5401
+ */
5402
+ export interface GetPromptRouterRequest {
5403
+ /**
5404
+ * <p>The prompt router's ARN</p>
5405
+ * @public
5406
+ */
5407
+ promptRouterArn: string | undefined;
5408
+ }
5343
5409
  /**
5344
5410
  * @public
5345
5411
  * @enum
@@ -5432,6 +5498,11 @@ export interface ListPromptRoutersRequest {
5432
5498
  * @public
5433
5499
  */
5434
5500
  nextToken?: string | undefined;
5501
+ /**
5502
+ * <p>The type of the prompt routers, such as whether it's default or custom.</p>
5503
+ * @public
5504
+ */
5505
+ type?: PromptRouterType | undefined;
5435
5506
  }
5436
5507
  /**
5437
5508
  * <p>Details about a prompt router.</p>
@@ -7216,6 +7287,10 @@ export declare const TrainingDataConfigFilterSensitiveLog: (obj: TrainingDataCon
7216
7287
  * @internal
7217
7288
  */
7218
7289
  export declare const GetCustomModelResponseFilterSensitiveLog: (obj: GetCustomModelResponse) => any;
7290
+ /**
7291
+ * @internal
7292
+ */
7293
+ export declare const CreatePromptRouterRequestFilterSensitiveLog: (obj: CreatePromptRouterRequest) => any;
7219
7294
  /**
7220
7295
  * @internal
7221
7296
  */
@@ -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";
@@ -97,6 +99,10 @@ export declare const se_CreateModelImportJobCommand: (input: CreateModelImportJo
97
99
  * serializeAws_restJson1CreateModelInvocationJobCommand
98
100
  */
99
101
  export declare const se_CreateModelInvocationJobCommand: (input: CreateModelInvocationJobCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
102
+ /**
103
+ * serializeAws_restJson1CreatePromptRouterCommand
104
+ */
105
+ export declare const se_CreatePromptRouterCommand: (input: CreatePromptRouterCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
100
106
  /**
101
107
  * serializeAws_restJson1CreateProvisionedModelThroughputCommand
102
108
  */
@@ -125,6 +131,10 @@ export declare const se_DeleteMarketplaceModelEndpointCommand: (input: DeleteMar
125
131
  * serializeAws_restJson1DeleteModelInvocationLoggingConfigurationCommand
126
132
  */
127
133
  export declare const se_DeleteModelInvocationLoggingConfigurationCommand: (input: DeleteModelInvocationLoggingConfigurationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
134
+ /**
135
+ * serializeAws_restJson1DeletePromptRouterCommand
136
+ */
137
+ export declare const se_DeletePromptRouterCommand: (input: DeletePromptRouterCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
128
138
  /**
129
139
  * serializeAws_restJson1DeleteProvisionedModelThroughputCommand
130
140
  */
@@ -325,6 +335,10 @@ export declare const de_CreateModelImportJobCommand: (output: __HttpResponse, co
325
335
  * deserializeAws_restJson1CreateModelInvocationJobCommand
326
336
  */
327
337
  export declare const de_CreateModelInvocationJobCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateModelInvocationJobCommandOutput>;
338
+ /**
339
+ * deserializeAws_restJson1CreatePromptRouterCommand
340
+ */
341
+ export declare const de_CreatePromptRouterCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreatePromptRouterCommandOutput>;
328
342
  /**
329
343
  * deserializeAws_restJson1CreateProvisionedModelThroughputCommand
330
344
  */
@@ -353,6 +367,10 @@ export declare const de_DeleteMarketplaceModelEndpointCommand: (output: __HttpRe
353
367
  * deserializeAws_restJson1DeleteModelInvocationLoggingConfigurationCommand
354
368
  */
355
369
  export declare const de_DeleteModelInvocationLoggingConfigurationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteModelInvocationLoggingConfigurationCommandOutput>;
370
+ /**
371
+ * deserializeAws_restJson1DeletePromptRouterCommand
372
+ */
373
+ export declare const de_DeletePromptRouterCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeletePromptRouterCommandOutput>;
356
374
  /**
357
375
  * deserializeAws_restJson1DeleteProvisionedModelThroughputCommand
358
376
  */
@@ -40,6 +40,10 @@ import {
40
40
  CreateModelInvocationJobCommandInput,
41
41
  CreateModelInvocationJobCommandOutput,
42
42
  } from "./commands/CreateModelInvocationJobCommand";
43
+ import {
44
+ CreatePromptRouterCommandInput,
45
+ CreatePromptRouterCommandOutput,
46
+ } from "./commands/CreatePromptRouterCommand";
43
47
  import {
44
48
  CreateProvisionedModelThroughputCommandInput,
45
49
  CreateProvisionedModelThroughputCommandOutput,
@@ -68,6 +72,10 @@ import {
68
72
  DeleteModelInvocationLoggingConfigurationCommandInput,
69
73
  DeleteModelInvocationLoggingConfigurationCommandOutput,
70
74
  } from "./commands/DeleteModelInvocationLoggingConfigurationCommand";
75
+ import {
76
+ DeletePromptRouterCommandInput,
77
+ DeletePromptRouterCommandOutput,
78
+ } from "./commands/DeletePromptRouterCommand";
71
79
  import {
72
80
  DeleteProvisionedModelThroughputCommandInput,
73
81
  DeleteProvisionedModelThroughputCommandOutput,
@@ -359,6 +367,19 @@ export interface Bedrock {
359
367
  options: __HttpHandlerOptions,
360
368
  cb: (err: any, data?: CreateModelInvocationJobCommandOutput) => void
361
369
  ): void;
370
+ createPromptRouter(
371
+ args: CreatePromptRouterCommandInput,
372
+ options?: __HttpHandlerOptions
373
+ ): Promise<CreatePromptRouterCommandOutput>;
374
+ createPromptRouter(
375
+ args: CreatePromptRouterCommandInput,
376
+ cb: (err: any, data?: CreatePromptRouterCommandOutput) => void
377
+ ): void;
378
+ createPromptRouter(
379
+ args: CreatePromptRouterCommandInput,
380
+ options: __HttpHandlerOptions,
381
+ cb: (err: any, data?: CreatePromptRouterCommandOutput) => void
382
+ ): void;
362
383
  createProvisionedModelThroughput(
363
384
  args: CreateProvisionedModelThroughputCommandInput,
364
385
  options?: __HttpHandlerOptions
@@ -457,6 +478,19 @@ export interface Bedrock {
457
478
  data?: DeleteModelInvocationLoggingConfigurationCommandOutput
458
479
  ) => void
459
480
  ): void;
481
+ deletePromptRouter(
482
+ args: DeletePromptRouterCommandInput,
483
+ options?: __HttpHandlerOptions
484
+ ): Promise<DeletePromptRouterCommandOutput>;
485
+ deletePromptRouter(
486
+ args: DeletePromptRouterCommandInput,
487
+ cb: (err: any, data?: DeletePromptRouterCommandOutput) => void
488
+ ): void;
489
+ deletePromptRouter(
490
+ args: DeletePromptRouterCommandInput,
491
+ options: __HttpHandlerOptions,
492
+ cb: (err: any, data?: DeletePromptRouterCommandOutput) => void
493
+ ): void;
460
494
  deleteProvisionedModelThroughput(
461
495
  args: DeleteProvisionedModelThroughputCommandInput,
462
496
  options?: __HttpHandlerOptions
@@ -85,6 +85,10 @@ import {
85
85
  CreateModelInvocationJobCommandInput,
86
86
  CreateModelInvocationJobCommandOutput,
87
87
  } from "./commands/CreateModelInvocationJobCommand";
88
+ import {
89
+ CreatePromptRouterCommandInput,
90
+ CreatePromptRouterCommandOutput,
91
+ } from "./commands/CreatePromptRouterCommand";
88
92
  import {
89
93
  CreateProvisionedModelThroughputCommandInput,
90
94
  CreateProvisionedModelThroughputCommandOutput,
@@ -113,6 +117,10 @@ import {
113
117
  DeleteModelInvocationLoggingConfigurationCommandInput,
114
118
  DeleteModelInvocationLoggingConfigurationCommandOutput,
115
119
  } from "./commands/DeleteModelInvocationLoggingConfigurationCommand";
120
+ import {
121
+ DeletePromptRouterCommandInput,
122
+ DeletePromptRouterCommandOutput,
123
+ } from "./commands/DeletePromptRouterCommand";
116
124
  import {
117
125
  DeleteProvisionedModelThroughputCommandInput,
118
126
  DeleteProvisionedModelThroughputCommandOutput,
@@ -291,6 +299,7 @@ export type ServiceInputTypes =
291
299
  | CreateModelCustomizationJobCommandInput
292
300
  | CreateModelImportJobCommandInput
293
301
  | CreateModelInvocationJobCommandInput
302
+ | CreatePromptRouterCommandInput
294
303
  | CreateProvisionedModelThroughputCommandInput
295
304
  | DeleteCustomModelCommandInput
296
305
  | DeleteGuardrailCommandInput
@@ -298,6 +307,7 @@ export type ServiceInputTypes =
298
307
  | DeleteInferenceProfileCommandInput
299
308
  | DeleteMarketplaceModelEndpointCommandInput
300
309
  | DeleteModelInvocationLoggingConfigurationCommandInput
310
+ | DeletePromptRouterCommandInput
301
311
  | DeleteProvisionedModelThroughputCommandInput
302
312
  | DeregisterMarketplaceModelEndpointCommandInput
303
313
  | GetCustomModelCommandInput
@@ -349,6 +359,7 @@ export type ServiceOutputTypes =
349
359
  | CreateModelCustomizationJobCommandOutput
350
360
  | CreateModelImportJobCommandOutput
351
361
  | CreateModelInvocationJobCommandOutput
362
+ | CreatePromptRouterCommandOutput
352
363
  | CreateProvisionedModelThroughputCommandOutput
353
364
  | DeleteCustomModelCommandOutput
354
365
  | DeleteGuardrailCommandOutput
@@ -356,6 +367,7 @@ export type ServiceOutputTypes =
356
367
  | DeleteInferenceProfileCommandOutput
357
368
  | DeleteMarketplaceModelEndpointCommandOutput
358
369
  | DeleteModelInvocationLoggingConfigurationCommandOutput
370
+ | DeletePromptRouterCommandOutput
359
371
  | DeleteProvisionedModelThroughputCommandOutput
360
372
  | DeregisterMarketplaceModelEndpointCommandOutput
361
373
  | GetCustomModelCommandOutput
@@ -0,0 +1,51 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import {
4
+ BedrockClientResolvedConfig,
5
+ ServiceInputTypes,
6
+ ServiceOutputTypes,
7
+ } from "../BedrockClient";
8
+ import {
9
+ CreatePromptRouterRequest,
10
+ CreatePromptRouterResponse,
11
+ } from "../models/models_0";
12
+ export { __MetadataBearer };
13
+ export { $Command };
14
+ export interface CreatePromptRouterCommandInput
15
+ extends CreatePromptRouterRequest {}
16
+ export interface CreatePromptRouterCommandOutput
17
+ extends CreatePromptRouterResponse,
18
+ __MetadataBearer {}
19
+ declare const CreatePromptRouterCommand_base: {
20
+ new (
21
+ input: CreatePromptRouterCommandInput
22
+ ): import("@smithy/smithy-client").CommandImpl<
23
+ CreatePromptRouterCommandInput,
24
+ CreatePromptRouterCommandOutput,
25
+ BedrockClientResolvedConfig,
26
+ ServiceInputTypes,
27
+ ServiceOutputTypes
28
+ >;
29
+ new (
30
+ __0_0: CreatePromptRouterCommandInput
31
+ ): import("@smithy/smithy-client").CommandImpl<
32
+ CreatePromptRouterCommandInput,
33
+ CreatePromptRouterCommandOutput,
34
+ BedrockClientResolvedConfig,
35
+ ServiceInputTypes,
36
+ ServiceOutputTypes
37
+ >;
38
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
39
+ };
40
+ export declare class CreatePromptRouterCommand extends CreatePromptRouterCommand_base {
41
+ protected static __types: {
42
+ api: {
43
+ input: CreatePromptRouterRequest;
44
+ output: CreatePromptRouterResponse;
45
+ };
46
+ sdk: {
47
+ input: CreatePromptRouterCommandInput;
48
+ output: CreatePromptRouterCommandOutput;
49
+ };
50
+ };
51
+ }
@@ -0,0 +1,51 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import {
4
+ BedrockClientResolvedConfig,
5
+ ServiceInputTypes,
6
+ ServiceOutputTypes,
7
+ } from "../BedrockClient";
8
+ import {
9
+ DeletePromptRouterRequest,
10
+ DeletePromptRouterResponse,
11
+ } from "../models/models_0";
12
+ export { __MetadataBearer };
13
+ export { $Command };
14
+ export interface DeletePromptRouterCommandInput
15
+ extends DeletePromptRouterRequest {}
16
+ export interface DeletePromptRouterCommandOutput
17
+ extends DeletePromptRouterResponse,
18
+ __MetadataBearer {}
19
+ declare const DeletePromptRouterCommand_base: {
20
+ new (
21
+ input: DeletePromptRouterCommandInput
22
+ ): import("@smithy/smithy-client").CommandImpl<
23
+ DeletePromptRouterCommandInput,
24
+ DeletePromptRouterCommandOutput,
25
+ BedrockClientResolvedConfig,
26
+ ServiceInputTypes,
27
+ ServiceOutputTypes
28
+ >;
29
+ new (
30
+ __0_0: DeletePromptRouterCommandInput
31
+ ): import("@smithy/smithy-client").CommandImpl<
32
+ DeletePromptRouterCommandInput,
33
+ DeletePromptRouterCommandOutput,
34
+ BedrockClientResolvedConfig,
35
+ ServiceInputTypes,
36
+ ServiceOutputTypes
37
+ >;
38
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
39
+ };
40
+ export declare class DeletePromptRouterCommand extends DeletePromptRouterCommand_base {
41
+ protected static __types: {
42
+ api: {
43
+ input: DeletePromptRouterRequest;
44
+ output: {};
45
+ };
46
+ sdk: {
47
+ input: DeletePromptRouterCommandInput;
48
+ output: DeletePromptRouterCommandOutput;
49
+ };
50
+ };
51
+ }
@@ -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";
@@ -1447,15 +1447,31 @@ export interface FoundationModelSummary {
1447
1447
  export interface ListFoundationModelsResponse {
1448
1448
  modelSummaries?: FoundationModelSummary[] | undefined;
1449
1449
  }
1450
- export interface GetPromptRouterRequest {
1451
- promptRouterArn: string | undefined;
1452
- }
1453
1450
  export interface PromptRouterTargetModel {
1454
- modelArn?: string | undefined;
1451
+ modelArn: string | undefined;
1455
1452
  }
1456
1453
  export interface RoutingCriteria {
1457
1454
  responseQualityDifference: number | undefined;
1458
1455
  }
1456
+ export interface CreatePromptRouterRequest {
1457
+ clientRequestToken?: string | undefined;
1458
+ promptRouterName: string | undefined;
1459
+ models: PromptRouterTargetModel[] | undefined;
1460
+ description?: string | undefined;
1461
+ routingCriteria: RoutingCriteria | undefined;
1462
+ fallbackModel: PromptRouterTargetModel | undefined;
1463
+ tags?: Tag[] | undefined;
1464
+ }
1465
+ export interface CreatePromptRouterResponse {
1466
+ promptRouterArn?: string | undefined;
1467
+ }
1468
+ export interface DeletePromptRouterRequest {
1469
+ promptRouterArn: string | undefined;
1470
+ }
1471
+ export interface DeletePromptRouterResponse {}
1472
+ export interface GetPromptRouterRequest {
1473
+ promptRouterArn: string | undefined;
1474
+ }
1459
1475
  export declare const PromptRouterStatus: {
1460
1476
  readonly AVAILABLE: "AVAILABLE";
1461
1477
  };
@@ -1482,6 +1498,7 @@ export interface GetPromptRouterResponse {
1482
1498
  export interface ListPromptRoutersRequest {
1483
1499
  maxResults?: number | undefined;
1484
1500
  nextToken?: string | undefined;
1501
+ type?: PromptRouterType | undefined;
1485
1502
  }
1486
1503
  export interface PromptRouterSummary {
1487
1504
  promptRouterName: string | undefined;
@@ -2226,6 +2243,9 @@ export declare const TrainingDataConfigFilterSensitiveLog: (
2226
2243
  export declare const GetCustomModelResponseFilterSensitiveLog: (
2227
2244
  obj: GetCustomModelResponse
2228
2245
  ) => any;
2246
+ export declare const CreatePromptRouterRequestFilterSensitiveLog: (
2247
+ obj: CreatePromptRouterRequest
2248
+ ) => any;
2229
2249
  export declare const GetPromptRouterResponseFilterSensitiveLog: (
2230
2250
  obj: GetPromptRouterResponse
2231
2251
  ) => any;