@aws-sdk/client-bedrock 3.703.0 → 3.706.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 +72 -0
- package/dist-cjs/index.js +717 -30
- package/dist-es/Bedrock.js +18 -0
- package/dist-es/commands/CreateMarketplaceModelEndpointCommand.js +22 -0
- package/dist-es/commands/CreateModelCustomizationJobCommand.js +2 -1
- package/dist-es/commands/DeleteMarketplaceModelEndpointCommand.js +22 -0
- package/dist-es/commands/DeregisterMarketplaceModelEndpointCommand.js +22 -0
- package/dist-es/commands/GetCustomModelCommand.js +2 -1
- package/dist-es/commands/GetMarketplaceModelEndpointCommand.js +22 -0
- package/dist-es/commands/GetModelCustomizationJobCommand.js +2 -1
- package/dist-es/commands/GetPromptRouterCommand.js +23 -0
- package/dist-es/commands/ListMarketplaceModelEndpointsCommand.js +22 -0
- package/dist-es/commands/ListPromptRoutersCommand.js +23 -0
- package/dist-es/commands/RegisterMarketplaceModelEndpointCommand.js +22 -0
- package/dist-es/commands/UpdateMarketplaceModelEndpointCommand.js +22 -0
- package/dist-es/commands/index.js +9 -0
- package/dist-es/models/models_0.js +173 -20
- package/dist-es/pagination/ListMarketplaceModelEndpointsPaginator.js +4 -0
- package/dist-es/pagination/ListPromptRoutersPaginator.js +4 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +317 -1
- package/dist-types/Bedrock.d.ts +65 -0
- package/dist-types/BedrockClient.d.ts +11 -2
- package/dist-types/commands/CreateGuardrailCommand.d.ts +7 -1
- package/dist-types/commands/CreateMarketplaceModelEndpointCommand.d.ts +143 -0
- package/dist-types/commands/CreateModelCustomizationJobCommand.d.ts +43 -3
- package/dist-types/commands/DeleteMarketplaceModelEndpointCommand.d.ts +84 -0
- package/dist-types/commands/DeregisterMarketplaceModelEndpointCommand.d.ts +89 -0
- package/dist-types/commands/GetCustomModelCommand.d.ts +42 -2
- package/dist-types/commands/GetFoundationModelCommand.d.ts +1 -1
- package/dist-types/commands/GetGuardrailCommand.d.ts +6 -0
- package/dist-types/commands/GetMarketplaceModelEndpointCommand.d.ts +111 -0
- package/dist-types/commands/GetModelCustomizationJobCommand.d.ts +43 -3
- package/dist-types/commands/GetModelInvocationJobCommand.d.ts +1 -1
- package/dist-types/commands/GetModelInvocationLoggingConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/GetPromptRouterCommand.d.ts +103 -0
- package/dist-types/commands/ListCustomModelsCommand.d.ts +1 -1
- package/dist-types/commands/ListFoundationModelsCommand.d.ts +2 -2
- package/dist-types/commands/ListMarketplaceModelEndpointsCommand.d.ts +99 -0
- package/dist-types/commands/ListModelCustomizationJobsCommand.d.ts +1 -1
- package/dist-types/commands/ListModelInvocationJobsCommand.d.ts +1 -1
- package/dist-types/commands/ListPromptRoutersCommand.d.ts +106 -0
- package/dist-types/commands/PutModelInvocationLoggingConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/RegisterMarketplaceModelEndpointCommand.d.ts +116 -0
- package/dist-types/commands/StopModelInvocationJobCommand.d.ts +1 -1
- package/dist-types/commands/UpdateGuardrailCommand.d.ts +6 -0
- package/dist-types/commands/UpdateMarketplaceModelEndpointCommand.d.ts +135 -0
- package/dist-types/commands/index.d.ts +9 -0
- package/dist-types/models/models_0.d.ts +1163 -139
- package/dist-types/pagination/ListMarketplaceModelEndpointsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListPromptRoutersPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +81 -0
- package/dist-types/ts3.4/Bedrock.d.ts +161 -0
- package/dist-types/ts3.4/BedrockClient.d.ts +54 -0
- package/dist-types/ts3.4/commands/CreateMarketplaceModelEndpointCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteMarketplaceModelEndpointCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeregisterMarketplaceModelEndpointCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetMarketplaceModelEndpointCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetPromptRouterCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/ListMarketplaceModelEndpointsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListPromptRoutersCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/RegisterMarketplaceModelEndpointCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdateMarketplaceModelEndpointCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +9 -0
- package/dist-types/ts3.4/models/models_0.d.ts +363 -44
- package/dist-types/ts3.4/pagination/ListMarketplaceModelEndpointsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListPromptRoutersPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +108 -0
- package/package.json +1 -1
|
@@ -14,94 +14,233 @@ export declare class AccessDeniedException extends __BaseException {
|
|
|
14
14
|
constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
|
|
15
15
|
}
|
|
16
16
|
/**
|
|
17
|
+
* <p>Error occurred because of a conflict while performing an operation.</p>
|
|
17
18
|
* @public
|
|
18
19
|
*/
|
|
19
|
-
export
|
|
20
|
+
export declare class ConflictException extends __BaseException {
|
|
21
|
+
readonly name: "ConflictException";
|
|
22
|
+
readonly $fault: "client";
|
|
20
23
|
/**
|
|
21
|
-
*
|
|
24
|
+
* @internal
|
|
25
|
+
*/
|
|
26
|
+
constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* <p>The configuration of a virtual private cloud (VPC). For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/usingVPC.html">Protect your data using Amazon Virtual Private Cloud and Amazon Web Services PrivateLink</a>.</p>
|
|
30
|
+
* @public
|
|
31
|
+
*/
|
|
32
|
+
export interface VpcConfig {
|
|
33
|
+
/**
|
|
34
|
+
* <p>An array of IDs for each subnet in the VPC to use.</p>
|
|
22
35
|
* @public
|
|
23
36
|
*/
|
|
24
|
-
|
|
37
|
+
subnetIds: string[] | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* <p>An array of IDs for each security group in the VPC to use.</p>
|
|
40
|
+
* @public
|
|
41
|
+
*/
|
|
42
|
+
securityGroupIds: string[] | undefined;
|
|
25
43
|
}
|
|
26
44
|
/**
|
|
27
|
-
* <p>
|
|
45
|
+
* <p>Specifies the configuration for a Amazon SageMaker endpoint.</p>
|
|
28
46
|
* @public
|
|
29
47
|
*/
|
|
30
|
-
export interface
|
|
48
|
+
export interface SageMakerEndpoint {
|
|
31
49
|
/**
|
|
32
|
-
* <p>The
|
|
50
|
+
* <p>The number of Amazon EC2 compute instances to deploy for initial endpoint
|
|
51
|
+
* creation.</p>
|
|
33
52
|
* @public
|
|
34
53
|
*/
|
|
35
|
-
|
|
54
|
+
initialInstanceCount: number | undefined;
|
|
36
55
|
/**
|
|
37
|
-
* <p>
|
|
56
|
+
* <p>The Amazon EC2 compute instance type to deploy for hosting the model.</p>
|
|
38
57
|
* @public
|
|
39
58
|
*/
|
|
40
|
-
|
|
59
|
+
instanceType: string | undefined;
|
|
41
60
|
/**
|
|
42
|
-
* <p>
|
|
61
|
+
* <p>The ARN of the IAM role that Amazon SageMaker can assume to access model artifacts
|
|
62
|
+
* and docker image for deployment on Amazon EC2 compute instances or for batch
|
|
63
|
+
* transform jobs.</p>
|
|
43
64
|
* @public
|
|
44
65
|
*/
|
|
45
|
-
|
|
66
|
+
executionRole: string | undefined;
|
|
67
|
+
/**
|
|
68
|
+
* <p>The Amazon Web Services KMS key that Amazon SageMaker uses to encrypt data on the storage volume
|
|
69
|
+
* attached to the Amazon EC2 compute instance that hosts the endpoint.</p>
|
|
70
|
+
* @public
|
|
71
|
+
*/
|
|
72
|
+
kmsEncryptionKey?: string | undefined;
|
|
73
|
+
/**
|
|
74
|
+
* <p>The VPC configuration for the endpoint.</p>
|
|
75
|
+
* @public
|
|
76
|
+
*/
|
|
77
|
+
vpc?: VpcConfig | undefined;
|
|
46
78
|
}
|
|
47
79
|
/**
|
|
80
|
+
* <p>Specifies the configuration for the endpoint.</p>
|
|
48
81
|
* @public
|
|
49
|
-
* @enum
|
|
50
82
|
*/
|
|
51
|
-
export
|
|
52
|
-
readonly COMPLETED: "Completed";
|
|
53
|
-
readonly DELETING: "Deleting";
|
|
54
|
-
readonly FAILED: "Failed";
|
|
55
|
-
readonly IN_PROGRESS: "InProgress";
|
|
56
|
-
readonly STOPPED: "Stopped";
|
|
57
|
-
readonly STOPPING: "Stopping";
|
|
58
|
-
};
|
|
83
|
+
export type EndpointConfig = EndpointConfig.SageMakerMember | EndpointConfig.$UnknownMember;
|
|
59
84
|
/**
|
|
60
85
|
* @public
|
|
61
86
|
*/
|
|
62
|
-
export
|
|
87
|
+
export declare namespace EndpointConfig {
|
|
88
|
+
/**
|
|
89
|
+
* <p>The configuration specific to Amazon SageMaker for the endpoint.</p>
|
|
90
|
+
* @public
|
|
91
|
+
*/
|
|
92
|
+
interface SageMakerMember {
|
|
93
|
+
sageMaker: SageMakerEndpoint;
|
|
94
|
+
$unknown?: never;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* @public
|
|
98
|
+
*/
|
|
99
|
+
interface $UnknownMember {
|
|
100
|
+
sageMaker?: never;
|
|
101
|
+
$unknown: [string, any];
|
|
102
|
+
}
|
|
103
|
+
interface Visitor<T> {
|
|
104
|
+
sageMaker: (value: SageMakerEndpoint) => T;
|
|
105
|
+
_: (name: string, value: any) => T;
|
|
106
|
+
}
|
|
107
|
+
const visit: <T>(value: EndpointConfig, visitor: Visitor<T>) => T;
|
|
108
|
+
}
|
|
63
109
|
/**
|
|
64
|
-
* <p>
|
|
110
|
+
* <p>Definition of the key/value pair for a tag.</p>
|
|
65
111
|
* @public
|
|
66
112
|
*/
|
|
67
|
-
export interface
|
|
113
|
+
export interface Tag {
|
|
68
114
|
/**
|
|
69
|
-
* <p>
|
|
115
|
+
* <p>Key for the tag.</p>
|
|
70
116
|
* @public
|
|
71
117
|
*/
|
|
72
|
-
|
|
118
|
+
key: string | undefined;
|
|
73
119
|
/**
|
|
74
|
-
* <p>
|
|
120
|
+
* <p>Value for the tag.</p>
|
|
75
121
|
* @public
|
|
76
122
|
*/
|
|
77
|
-
|
|
123
|
+
value: string | undefined;
|
|
78
124
|
}
|
|
79
125
|
/**
|
|
80
126
|
* @public
|
|
81
127
|
*/
|
|
82
|
-
export interface
|
|
128
|
+
export interface CreateMarketplaceModelEndpointRequest {
|
|
83
129
|
/**
|
|
84
|
-
* <p>
|
|
130
|
+
* <p>The ARN of the model from Amazon Bedrock Marketplace that you want to deploy to the
|
|
131
|
+
* endpoint.</p>
|
|
85
132
|
* @public
|
|
86
133
|
*/
|
|
87
|
-
|
|
134
|
+
modelSourceIdentifier: string | undefined;
|
|
88
135
|
/**
|
|
89
|
-
* <p>The
|
|
136
|
+
* <p>The configuration for the endpoint, including the number and type of instances to
|
|
137
|
+
* use.</p>
|
|
90
138
|
* @public
|
|
91
139
|
*/
|
|
92
|
-
|
|
140
|
+
endpointConfig: EndpointConfig | undefined;
|
|
141
|
+
/**
|
|
142
|
+
* <p>Indicates whether you accept the end-user license agreement (EULA) for the model. Set
|
|
143
|
+
* to <code>true</code> to accept the EULA.</p>
|
|
144
|
+
* @public
|
|
145
|
+
*/
|
|
146
|
+
acceptEula?: boolean | undefined;
|
|
147
|
+
/**
|
|
148
|
+
* <p>The name of the endpoint. This name must be unique within your Amazon Web Services
|
|
149
|
+
* account and region.</p>
|
|
150
|
+
* @public
|
|
151
|
+
*/
|
|
152
|
+
endpointName: string | undefined;
|
|
153
|
+
/**
|
|
154
|
+
* <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the
|
|
155
|
+
* request. This token is listed as not required because Amazon Web Services SDKs
|
|
156
|
+
* automatically generate it for you and set this parameter. If you're not using the
|
|
157
|
+
* Amazon Web Services SDK or the CLI, you must provide this token or the
|
|
158
|
+
* action will fail.</p>
|
|
159
|
+
* @public
|
|
160
|
+
*/
|
|
161
|
+
clientRequestToken?: string | undefined;
|
|
162
|
+
/**
|
|
163
|
+
* <p>An array of key-value pairs to apply to the underlying Amazon SageMaker endpoint. You can use
|
|
164
|
+
* these tags to organize and identify your Amazon Web Services resources.</p>
|
|
165
|
+
* @public
|
|
166
|
+
*/
|
|
167
|
+
tags?: Tag[] | undefined;
|
|
93
168
|
}
|
|
94
169
|
/**
|
|
95
|
-
* <p>Error occurred because of a conflict while performing an operation.</p>
|
|
96
170
|
* @public
|
|
171
|
+
* @enum
|
|
97
172
|
*/
|
|
98
|
-
export declare
|
|
99
|
-
readonly
|
|
100
|
-
readonly
|
|
173
|
+
export declare const Status: {
|
|
174
|
+
readonly INCOMPATIBLE_ENDPOINT: "INCOMPATIBLE_ENDPOINT";
|
|
175
|
+
readonly REGISTERED: "REGISTERED";
|
|
176
|
+
};
|
|
177
|
+
/**
|
|
178
|
+
* @public
|
|
179
|
+
*/
|
|
180
|
+
export type Status = (typeof Status)[keyof typeof Status];
|
|
181
|
+
/**
|
|
182
|
+
* <p>Contains details about an endpoint for a model from Amazon Bedrock Marketplace.</p>
|
|
183
|
+
* @public
|
|
184
|
+
*/
|
|
185
|
+
export interface MarketplaceModelEndpoint {
|
|
101
186
|
/**
|
|
102
|
-
*
|
|
187
|
+
* <p>The Amazon Resource Name (ARN) of the endpoint.</p>
|
|
188
|
+
* @public
|
|
103
189
|
*/
|
|
104
|
-
|
|
190
|
+
endpointArn: string | undefined;
|
|
191
|
+
/**
|
|
192
|
+
* <p>The ARN of the model from Amazon Bedrock Marketplace that is deployed on this endpoint.</p>
|
|
193
|
+
* @public
|
|
194
|
+
*/
|
|
195
|
+
modelSourceIdentifier: string | undefined;
|
|
196
|
+
/**
|
|
197
|
+
* <p>The overall status of the endpoint in Amazon Bedrock Marketplace (e.g., ACTIVE,
|
|
198
|
+
* INACTIVE).</p>
|
|
199
|
+
* @public
|
|
200
|
+
*/
|
|
201
|
+
status?: Status | undefined;
|
|
202
|
+
/**
|
|
203
|
+
* <p>Additional information about the overall status, if available.</p>
|
|
204
|
+
* @public
|
|
205
|
+
*/
|
|
206
|
+
statusMessage?: string | undefined;
|
|
207
|
+
/**
|
|
208
|
+
* <p>The timestamp when the endpoint was registered.</p>
|
|
209
|
+
* @public
|
|
210
|
+
*/
|
|
211
|
+
createdAt: Date | undefined;
|
|
212
|
+
/**
|
|
213
|
+
* <p>The timestamp when the endpoint was last updated.</p>
|
|
214
|
+
* @public
|
|
215
|
+
*/
|
|
216
|
+
updatedAt: Date | undefined;
|
|
217
|
+
/**
|
|
218
|
+
* <p>The configuration of the endpoint, including the number and type of instances
|
|
219
|
+
* used.</p>
|
|
220
|
+
* @public
|
|
221
|
+
*/
|
|
222
|
+
endpointConfig: EndpointConfig | undefined;
|
|
223
|
+
/**
|
|
224
|
+
* <p>The current status of the endpoint (e.g., Creating, InService, Updating,
|
|
225
|
+
* Failed).</p>
|
|
226
|
+
* @public
|
|
227
|
+
*/
|
|
228
|
+
endpointStatus: string | undefined;
|
|
229
|
+
/**
|
|
230
|
+
* <p>Additional information about the endpoint status, if available.</p>
|
|
231
|
+
* @public
|
|
232
|
+
*/
|
|
233
|
+
endpointStatusMessage?: string | undefined;
|
|
234
|
+
}
|
|
235
|
+
/**
|
|
236
|
+
* @public
|
|
237
|
+
*/
|
|
238
|
+
export interface CreateMarketplaceModelEndpointResponse {
|
|
239
|
+
/**
|
|
240
|
+
* <p>Details about the created endpoint.</p>
|
|
241
|
+
* @public
|
|
242
|
+
*/
|
|
243
|
+
marketplaceModelEndpoint: MarketplaceModelEndpoint | undefined;
|
|
105
244
|
}
|
|
106
245
|
/**
|
|
107
246
|
* <p>An internal server error occurred. Retry your request.</p>
|
|
@@ -127,6 +266,18 @@ export declare class ResourceNotFoundException extends __BaseException {
|
|
|
127
266
|
*/
|
|
128
267
|
constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
|
|
129
268
|
}
|
|
269
|
+
/**
|
|
270
|
+
* <p>The number of requests exceeds the service quota. Resubmit your request later.</p>
|
|
271
|
+
* @public
|
|
272
|
+
*/
|
|
273
|
+
export declare class ServiceQuotaExceededException extends __BaseException {
|
|
274
|
+
readonly name: "ServiceQuotaExceededException";
|
|
275
|
+
readonly $fault: "client";
|
|
276
|
+
/**
|
|
277
|
+
* @internal
|
|
278
|
+
*/
|
|
279
|
+
constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
|
|
280
|
+
}
|
|
130
281
|
/**
|
|
131
282
|
* <p>The number of requests exceeds the limit. Resubmit your request later.</p>
|
|
132
283
|
* @public
|
|
@@ -151,6 +302,282 @@ export declare class ValidationException extends __BaseException {
|
|
|
151
302
|
*/
|
|
152
303
|
constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
|
|
153
304
|
}
|
|
305
|
+
/**
|
|
306
|
+
* @public
|
|
307
|
+
*/
|
|
308
|
+
export interface DeleteMarketplaceModelEndpointRequest {
|
|
309
|
+
/**
|
|
310
|
+
* <p>The Amazon Resource Name (ARN) of the endpoint you want to delete.</p>
|
|
311
|
+
* @public
|
|
312
|
+
*/
|
|
313
|
+
endpointArn: string | undefined;
|
|
314
|
+
}
|
|
315
|
+
/**
|
|
316
|
+
* @public
|
|
317
|
+
*/
|
|
318
|
+
export interface DeleteMarketplaceModelEndpointResponse {
|
|
319
|
+
}
|
|
320
|
+
/**
|
|
321
|
+
* @public
|
|
322
|
+
*/
|
|
323
|
+
export interface DeregisterMarketplaceModelEndpointRequest {
|
|
324
|
+
/**
|
|
325
|
+
* <p>The Amazon Resource Name (ARN) of the endpoint you want to deregister.</p>
|
|
326
|
+
* @public
|
|
327
|
+
*/
|
|
328
|
+
endpointArn: string | undefined;
|
|
329
|
+
}
|
|
330
|
+
/**
|
|
331
|
+
* @public
|
|
332
|
+
*/
|
|
333
|
+
export interface DeregisterMarketplaceModelEndpointResponse {
|
|
334
|
+
}
|
|
335
|
+
/**
|
|
336
|
+
* <p>Returned if the service cannot complete the request.</p>
|
|
337
|
+
* @public
|
|
338
|
+
*/
|
|
339
|
+
export declare class ServiceUnavailableException extends __BaseException {
|
|
340
|
+
readonly name: "ServiceUnavailableException";
|
|
341
|
+
readonly $fault: "server";
|
|
342
|
+
/**
|
|
343
|
+
* @internal
|
|
344
|
+
*/
|
|
345
|
+
constructor(opts: __ExceptionOptionType<ServiceUnavailableException, __BaseException>);
|
|
346
|
+
}
|
|
347
|
+
/**
|
|
348
|
+
* @public
|
|
349
|
+
*/
|
|
350
|
+
export interface GetMarketplaceModelEndpointRequest {
|
|
351
|
+
/**
|
|
352
|
+
* <p>The Amazon Resource Name (ARN) of the endpoint you want to get information
|
|
353
|
+
* about.</p>
|
|
354
|
+
* @public
|
|
355
|
+
*/
|
|
356
|
+
endpointArn: string | undefined;
|
|
357
|
+
}
|
|
358
|
+
/**
|
|
359
|
+
* @public
|
|
360
|
+
*/
|
|
361
|
+
export interface GetMarketplaceModelEndpointResponse {
|
|
362
|
+
/**
|
|
363
|
+
* <p>Details about the requested endpoint.</p>
|
|
364
|
+
* @public
|
|
365
|
+
*/
|
|
366
|
+
marketplaceModelEndpoint?: MarketplaceModelEndpoint | undefined;
|
|
367
|
+
}
|
|
368
|
+
/**
|
|
369
|
+
* @public
|
|
370
|
+
*/
|
|
371
|
+
export interface ListMarketplaceModelEndpointsRequest {
|
|
372
|
+
/**
|
|
373
|
+
* <p>The maximum number of results to return in a single call. If more results are
|
|
374
|
+
* available, the operation returns a <code>NextToken</code> value.</p>
|
|
375
|
+
* @public
|
|
376
|
+
*/
|
|
377
|
+
maxResults?: number | undefined;
|
|
378
|
+
/**
|
|
379
|
+
* <p>The token for the next set of results. You receive this token from a previous
|
|
380
|
+
* <code>ListMarketplaceModelEndpoints</code> call.</p>
|
|
381
|
+
* @public
|
|
382
|
+
*/
|
|
383
|
+
nextToken?: string | undefined;
|
|
384
|
+
/**
|
|
385
|
+
* <p>If specified, only endpoints for the given model source identifier are
|
|
386
|
+
* returned.</p>
|
|
387
|
+
* @public
|
|
388
|
+
*/
|
|
389
|
+
modelSourceEquals?: string | undefined;
|
|
390
|
+
}
|
|
391
|
+
/**
|
|
392
|
+
* <p>Provides a summary of an endpoint for a model from Amazon Bedrock Marketplace.</p>
|
|
393
|
+
* @public
|
|
394
|
+
*/
|
|
395
|
+
export interface MarketplaceModelEndpointSummary {
|
|
396
|
+
/**
|
|
397
|
+
* <p>The Amazon Resource Name (ARN) of the endpoint.</p>
|
|
398
|
+
* @public
|
|
399
|
+
*/
|
|
400
|
+
endpointArn: string | undefined;
|
|
401
|
+
/**
|
|
402
|
+
* <p>The ARN of the model from Amazon Bedrock Marketplace that is deployed on this endpoint.</p>
|
|
403
|
+
* @public
|
|
404
|
+
*/
|
|
405
|
+
modelSourceIdentifier: string | undefined;
|
|
406
|
+
/**
|
|
407
|
+
* <p>The overall status of the endpoint in Amazon Bedrock Marketplace.</p>
|
|
408
|
+
* @public
|
|
409
|
+
*/
|
|
410
|
+
status?: Status | undefined;
|
|
411
|
+
/**
|
|
412
|
+
* <p>Additional information about the overall status, if available.</p>
|
|
413
|
+
* @public
|
|
414
|
+
*/
|
|
415
|
+
statusMessage?: string | undefined;
|
|
416
|
+
/**
|
|
417
|
+
* <p>The timestamp when the endpoint was created.</p>
|
|
418
|
+
* @public
|
|
419
|
+
*/
|
|
420
|
+
createdAt: Date | undefined;
|
|
421
|
+
/**
|
|
422
|
+
* <p>The timestamp when the endpoint was last updated.</p>
|
|
423
|
+
* @public
|
|
424
|
+
*/
|
|
425
|
+
updatedAt: Date | undefined;
|
|
426
|
+
}
|
|
427
|
+
/**
|
|
428
|
+
* @public
|
|
429
|
+
*/
|
|
430
|
+
export interface ListMarketplaceModelEndpointsResponse {
|
|
431
|
+
/**
|
|
432
|
+
* <p>An array of endpoint summaries.</p>
|
|
433
|
+
* @public
|
|
434
|
+
*/
|
|
435
|
+
marketplaceModelEndpoints?: MarketplaceModelEndpointSummary[] | undefined;
|
|
436
|
+
/**
|
|
437
|
+
* <p>The token for the next set of results. Use this token to get the next set of
|
|
438
|
+
* results.</p>
|
|
439
|
+
* @public
|
|
440
|
+
*/
|
|
441
|
+
nextToken?: string | undefined;
|
|
442
|
+
}
|
|
443
|
+
/**
|
|
444
|
+
* @public
|
|
445
|
+
*/
|
|
446
|
+
export interface RegisterMarketplaceModelEndpointRequest {
|
|
447
|
+
/**
|
|
448
|
+
* <p>The ARN of the Amazon SageMaker endpoint you want to register with Amazon Bedrock Marketplace.</p>
|
|
449
|
+
* @public
|
|
450
|
+
*/
|
|
451
|
+
endpointIdentifier: string | undefined;
|
|
452
|
+
/**
|
|
453
|
+
* <p>The ARN of the model from Amazon Bedrock Marketplace that is deployed on the endpoint.</p>
|
|
454
|
+
* @public
|
|
455
|
+
*/
|
|
456
|
+
modelSourceIdentifier: string | undefined;
|
|
457
|
+
}
|
|
458
|
+
/**
|
|
459
|
+
* @public
|
|
460
|
+
*/
|
|
461
|
+
export interface RegisterMarketplaceModelEndpointResponse {
|
|
462
|
+
/**
|
|
463
|
+
* <p>Details about the registered endpoint.</p>
|
|
464
|
+
* @public
|
|
465
|
+
*/
|
|
466
|
+
marketplaceModelEndpoint: MarketplaceModelEndpoint | undefined;
|
|
467
|
+
}
|
|
468
|
+
/**
|
|
469
|
+
* @public
|
|
470
|
+
*/
|
|
471
|
+
export interface UpdateMarketplaceModelEndpointRequest {
|
|
472
|
+
/**
|
|
473
|
+
* <p>The Amazon Resource Name (ARN) of the endpoint you want to update.</p>
|
|
474
|
+
* @public
|
|
475
|
+
*/
|
|
476
|
+
endpointArn: string | undefined;
|
|
477
|
+
/**
|
|
478
|
+
* <p>The new configuration for the endpoint, including the number and type of instances to
|
|
479
|
+
* use.</p>
|
|
480
|
+
* @public
|
|
481
|
+
*/
|
|
482
|
+
endpointConfig: EndpointConfig | undefined;
|
|
483
|
+
/**
|
|
484
|
+
* <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the
|
|
485
|
+
* request. This token is listed as not required because Amazon Web Services SDKs
|
|
486
|
+
* automatically generate it for you and set this parameter. If you're not using the
|
|
487
|
+
* Amazon Web Services SDK or the CLI, you must provide this token or the
|
|
488
|
+
* action will fail.</p>
|
|
489
|
+
* @public
|
|
490
|
+
*/
|
|
491
|
+
clientRequestToken?: string | undefined;
|
|
492
|
+
}
|
|
493
|
+
/**
|
|
494
|
+
* @public
|
|
495
|
+
*/
|
|
496
|
+
export interface UpdateMarketplaceModelEndpointResponse {
|
|
497
|
+
/**
|
|
498
|
+
* <p>Details about the updated endpoint.</p>
|
|
499
|
+
* @public
|
|
500
|
+
*/
|
|
501
|
+
marketplaceModelEndpoint: MarketplaceModelEndpoint | undefined;
|
|
502
|
+
}
|
|
503
|
+
/**
|
|
504
|
+
* @public
|
|
505
|
+
*/
|
|
506
|
+
export interface BatchDeleteEvaluationJobRequest {
|
|
507
|
+
/**
|
|
508
|
+
* <p>A list of one or more evaluation job Amazon Resource Names (ARNs) you want to delete.</p>
|
|
509
|
+
* @public
|
|
510
|
+
*/
|
|
511
|
+
jobIdentifiers: string[] | undefined;
|
|
512
|
+
}
|
|
513
|
+
/**
|
|
514
|
+
* <p>A JSON array that provides the status of the evaluation jobs being deleted.</p>
|
|
515
|
+
* @public
|
|
516
|
+
*/
|
|
517
|
+
export interface BatchDeleteEvaluationJobError {
|
|
518
|
+
/**
|
|
519
|
+
* <p>The ARN of the evaluation job being deleted.</p>
|
|
520
|
+
* @public
|
|
521
|
+
*/
|
|
522
|
+
jobIdentifier: string | undefined;
|
|
523
|
+
/**
|
|
524
|
+
* <p>A HTTP status code of the evaluation job being deleted.</p>
|
|
525
|
+
* @public
|
|
526
|
+
*/
|
|
527
|
+
code: string | undefined;
|
|
528
|
+
/**
|
|
529
|
+
* <p>A status message about the evaluation job deletion.</p>
|
|
530
|
+
* @public
|
|
531
|
+
*/
|
|
532
|
+
message?: string | undefined;
|
|
533
|
+
}
|
|
534
|
+
/**
|
|
535
|
+
* @public
|
|
536
|
+
* @enum
|
|
537
|
+
*/
|
|
538
|
+
export declare const EvaluationJobStatus: {
|
|
539
|
+
readonly COMPLETED: "Completed";
|
|
540
|
+
readonly DELETING: "Deleting";
|
|
541
|
+
readonly FAILED: "Failed";
|
|
542
|
+
readonly IN_PROGRESS: "InProgress";
|
|
543
|
+
readonly STOPPED: "Stopped";
|
|
544
|
+
readonly STOPPING: "Stopping";
|
|
545
|
+
};
|
|
546
|
+
/**
|
|
547
|
+
* @public
|
|
548
|
+
*/
|
|
549
|
+
export type EvaluationJobStatus = (typeof EvaluationJobStatus)[keyof typeof EvaluationJobStatus];
|
|
550
|
+
/**
|
|
551
|
+
* <p>An evaluation job for deletion, and it’s current status.</p>
|
|
552
|
+
* @public
|
|
553
|
+
*/
|
|
554
|
+
export interface BatchDeleteEvaluationJobItem {
|
|
555
|
+
/**
|
|
556
|
+
* <p>The Amazon Resource Name (ARN) of the evaluation job for deletion.</p>
|
|
557
|
+
* @public
|
|
558
|
+
*/
|
|
559
|
+
jobIdentifier: string | undefined;
|
|
560
|
+
/**
|
|
561
|
+
* <p>The status of the evaluation job for deletion.</p>
|
|
562
|
+
* @public
|
|
563
|
+
*/
|
|
564
|
+
jobStatus: EvaluationJobStatus | undefined;
|
|
565
|
+
}
|
|
566
|
+
/**
|
|
567
|
+
* @public
|
|
568
|
+
*/
|
|
569
|
+
export interface BatchDeleteEvaluationJobResponse {
|
|
570
|
+
/**
|
|
571
|
+
* <p>A JSON object containing the HTTP status codes and the ARNs of evaluation jobs that failed to be deleted.</p>
|
|
572
|
+
* @public
|
|
573
|
+
*/
|
|
574
|
+
errors: BatchDeleteEvaluationJobError[] | undefined;
|
|
575
|
+
/**
|
|
576
|
+
* <p>The list of evaluation jobs for deletion.</p>
|
|
577
|
+
* @public
|
|
578
|
+
*/
|
|
579
|
+
evaluationJobs: BatchDeleteEvaluationJobItem[] | undefined;
|
|
580
|
+
}
|
|
154
581
|
/**
|
|
155
582
|
* @public
|
|
156
583
|
* @enum
|
|
@@ -769,22 +1196,6 @@ export declare const RetrieveAndGenerateType: {
|
|
|
769
1196
|
* @public
|
|
770
1197
|
*/
|
|
771
1198
|
export type RetrieveAndGenerateType = (typeof RetrieveAndGenerateType)[keyof typeof RetrieveAndGenerateType];
|
|
772
|
-
/**
|
|
773
|
-
* <p>Definition of the key/value pair for a tag.</p>
|
|
774
|
-
* @public
|
|
775
|
-
*/
|
|
776
|
-
export interface Tag {
|
|
777
|
-
/**
|
|
778
|
-
* <p>Key for the tag.</p>
|
|
779
|
-
* @public
|
|
780
|
-
*/
|
|
781
|
-
key: string | undefined;
|
|
782
|
-
/**
|
|
783
|
-
* <p>Value for the tag.</p>
|
|
784
|
-
* @public
|
|
785
|
-
*/
|
|
786
|
-
value: string | undefined;
|
|
787
|
-
}
|
|
788
1199
|
/**
|
|
789
1200
|
* <p>The Amazon S3 location where the results of your evaluation job are saved.</p>
|
|
790
1201
|
* @public
|
|
@@ -806,18 +1217,6 @@ export interface CreateEvaluationJobResponse {
|
|
|
806
1217
|
*/
|
|
807
1218
|
jobArn: string | undefined;
|
|
808
1219
|
}
|
|
809
|
-
/**
|
|
810
|
-
* <p>The number of requests exceeds the service quota. Resubmit your request later.</p>
|
|
811
|
-
* @public
|
|
812
|
-
*/
|
|
813
|
-
export declare class ServiceQuotaExceededException extends __BaseException {
|
|
814
|
-
readonly name: "ServiceQuotaExceededException";
|
|
815
|
-
readonly $fault: "client";
|
|
816
|
-
/**
|
|
817
|
-
* @internal
|
|
818
|
-
*/
|
|
819
|
-
constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
|
|
820
|
-
}
|
|
821
1220
|
/**
|
|
822
1221
|
* @public
|
|
823
1222
|
*/
|
|
@@ -999,6 +1398,18 @@ export interface StopEvaluationJobRequest {
|
|
|
999
1398
|
*/
|
|
1000
1399
|
export interface StopEvaluationJobResponse {
|
|
1001
1400
|
}
|
|
1401
|
+
/**
|
|
1402
|
+
* @public
|
|
1403
|
+
* @enum
|
|
1404
|
+
*/
|
|
1405
|
+
export declare const GuardrailModality: {
|
|
1406
|
+
readonly IMAGE: "IMAGE";
|
|
1407
|
+
readonly TEXT: "TEXT";
|
|
1408
|
+
};
|
|
1409
|
+
/**
|
|
1410
|
+
* @public
|
|
1411
|
+
*/
|
|
1412
|
+
export type GuardrailModality = (typeof GuardrailModality)[keyof typeof GuardrailModality];
|
|
1002
1413
|
/**
|
|
1003
1414
|
* @public
|
|
1004
1415
|
* @enum
|
|
@@ -1080,6 +1491,16 @@ export interface GuardrailContentFilterConfig {
|
|
|
1080
1491
|
* @public
|
|
1081
1492
|
*/
|
|
1082
1493
|
outputStrength: GuardrailFilterStrength | undefined;
|
|
1494
|
+
/**
|
|
1495
|
+
* <p>The input modalities selected for the guardrail content filter configuration.</p>
|
|
1496
|
+
* @public
|
|
1497
|
+
*/
|
|
1498
|
+
inputModalities?: GuardrailModality[] | undefined;
|
|
1499
|
+
/**
|
|
1500
|
+
* <p>The output modalities selected for the guardrail content filter configuration.</p>
|
|
1501
|
+
* @public
|
|
1502
|
+
*/
|
|
1503
|
+
outputModalities?: GuardrailModality[] | undefined;
|
|
1083
1504
|
}
|
|
1084
1505
|
/**
|
|
1085
1506
|
* <p>Contains details about how to handle harmful content.</p>
|
|
@@ -1212,7 +1633,7 @@ export interface GuardrailPiiEntityConfig {
|
|
|
1212
1633
|
* <b>AGE</b>
|
|
1213
1634
|
* </p>
|
|
1214
1635
|
* <p>An individual's age, including the quantity and unit of time. For
|
|
1215
|
-
* example, in the phrase "I am 40 years old,"
|
|
1636
|
+
* example, in the phrase "I am 40 years old," Guardrails recognizes "40 years"
|
|
1216
1637
|
* as an age.
|
|
1217
1638
|
* </p>
|
|
1218
1639
|
* </li>
|
|
@@ -1294,7 +1715,7 @@ export interface GuardrailPiiEntityConfig {
|
|
|
1294
1715
|
* <ul>
|
|
1295
1716
|
* <li>
|
|
1296
1717
|
* <p>
|
|
1297
|
-
* <b>
|
|
1718
|
+
* <b>CREDIT_DEBIT_CARD_CVV</b>
|
|
1298
1719
|
* </p>
|
|
1299
1720
|
* <p>A three-digit card verification code (CVV) that is present on VISA,
|
|
1300
1721
|
* MasterCard, and Discover credit and debit cards. For American Express
|
|
@@ -1908,6 +2329,16 @@ export interface GuardrailContentFilter {
|
|
|
1908
2329
|
* @public
|
|
1909
2330
|
*/
|
|
1910
2331
|
outputStrength: GuardrailFilterStrength | undefined;
|
|
2332
|
+
/**
|
|
2333
|
+
* <p>The input modalities selected for the guardrail content filter.</p>
|
|
2334
|
+
* @public
|
|
2335
|
+
*/
|
|
2336
|
+
inputModalities?: GuardrailModality[] | undefined;
|
|
2337
|
+
/**
|
|
2338
|
+
* <p>The output modalities selected for the guardrail content filter.</p>
|
|
2339
|
+
* @public
|
|
2340
|
+
*/
|
|
2341
|
+
outputModalities?: GuardrailModality[] | undefined;
|
|
1911
2342
|
}
|
|
1912
2343
|
/**
|
|
1913
2344
|
* <p>Contains details about how to handle harmful content.</p>
|
|
@@ -1961,7 +2392,7 @@ export interface GuardrailContextualGroundingPolicy {
|
|
|
1961
2392
|
*/
|
|
1962
2393
|
export interface GuardrailPiiEntity {
|
|
1963
2394
|
/**
|
|
1964
|
-
* <p>The type of PII entity. For
|
|
2395
|
+
* <p>The type of PII entity. For example, Social Security Number.</p>
|
|
1965
2396
|
* @public
|
|
1966
2397
|
*/
|
|
1967
2398
|
type: GuardrailPiiEntityType | undefined;
|
|
@@ -2775,6 +3206,11 @@ export interface LoggingConfig {
|
|
|
2775
3206
|
* @public
|
|
2776
3207
|
*/
|
|
2777
3208
|
embeddingDataDeliveryEnabled?: boolean | undefined;
|
|
3209
|
+
/**
|
|
3210
|
+
* <p>Set to include video data in the log delivery.</p>
|
|
3211
|
+
* @public
|
|
3212
|
+
*/
|
|
3213
|
+
videoDataDeliveryEnabled?: boolean | undefined;
|
|
2778
3214
|
}
|
|
2779
3215
|
/**
|
|
2780
3216
|
* @public
|
|
@@ -3105,22 +3541,6 @@ export declare namespace ModelDataSource {
|
|
|
3105
3541
|
}
|
|
3106
3542
|
const visit: <T>(value: ModelDataSource, visitor: Visitor<T>) => T;
|
|
3107
3543
|
}
|
|
3108
|
-
/**
|
|
3109
|
-
* <p>The configuration of a virtual private cloud (VPC). For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/usingVPC.html">Protect your data using Amazon Virtual Private Cloud and Amazon Web Services PrivateLink</a>.</p>
|
|
3110
|
-
* @public
|
|
3111
|
-
*/
|
|
3112
|
-
export interface VpcConfig {
|
|
3113
|
-
/**
|
|
3114
|
-
* <p>An array of IDs for each subnet in the VPC to use.</p>
|
|
3115
|
-
* @public
|
|
3116
|
-
*/
|
|
3117
|
-
subnetIds: string[] | undefined;
|
|
3118
|
-
/**
|
|
3119
|
-
* <p>An array of IDs for each security group in the VPC to use.</p>
|
|
3120
|
-
* @public
|
|
3121
|
-
*/
|
|
3122
|
-
securityGroupIds: string[] | undefined;
|
|
3123
|
-
}
|
|
3124
3544
|
/**
|
|
3125
3545
|
* @public
|
|
3126
3546
|
*/
|
|
@@ -3705,7 +4125,7 @@ export interface CreateModelInvocationJobRequest {
|
|
|
3705
4125
|
*/
|
|
3706
4126
|
outputDataConfig: ModelInvocationJobOutputDataConfig | undefined;
|
|
3707
4127
|
/**
|
|
3708
|
-
* <p>The configuration of the Virtual Private Cloud (VPC) for the data in the batch inference job. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/batch-
|
|
4128
|
+
* <p>The configuration of the Virtual Private Cloud (VPC) for the data in the batch inference job. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/batch-vpc">Protect batch inference jobs using a VPC</a>.</p>
|
|
3709
4129
|
* @public
|
|
3710
4130
|
*/
|
|
3711
4131
|
vpcConfig?: VpcConfig | undefined;
|
|
@@ -3792,6 +4212,50 @@ export interface GetModelInvocationJobResponse {
|
|
|
3792
4212
|
roleArn: string | undefined;
|
|
3793
4213
|
/**
|
|
3794
4214
|
* <p>The status of the batch inference job.</p>
|
|
4215
|
+
* <p>The following statuses are possible:</p>
|
|
4216
|
+
* <ul>
|
|
4217
|
+
* <li>
|
|
4218
|
+
* <p>Submitted – This job has been submitted to a queue for validation.</p>
|
|
4219
|
+
* </li>
|
|
4220
|
+
* <li>
|
|
4221
|
+
* <p>Validating – This job is being validated for the requirements described in <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/batch-inference-data.html">Format and upload your batch inference data</a>. The criteria include the following:</p>
|
|
4222
|
+
* <ul>
|
|
4223
|
+
* <li>
|
|
4224
|
+
* <p>Your IAM service role has access to the Amazon S3 buckets containing your files.</p>
|
|
4225
|
+
* </li>
|
|
4226
|
+
* <li>
|
|
4227
|
+
* <p>Your files are .jsonl files and each individual record is a JSON object in the correct format. Note that validation doesn't check if the <code>modelInput</code> value matches the request body for the model.</p>
|
|
4228
|
+
* </li>
|
|
4229
|
+
* <li>
|
|
4230
|
+
* <p>Your files fulfill the requirements for file size and number of records. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/quotas.html">Quotas for Amazon Bedrock</a>.</p>
|
|
4231
|
+
* </li>
|
|
4232
|
+
* </ul>
|
|
4233
|
+
* </li>
|
|
4234
|
+
* <li>
|
|
4235
|
+
* <p>Scheduled – This job has been validated and is now in a queue. The job will automatically start when it reaches its turn.</p>
|
|
4236
|
+
* </li>
|
|
4237
|
+
* <li>
|
|
4238
|
+
* <p>Expired – This job timed out because it was scheduled but didn't begin before the set timeout duration. Submit a new job request.</p>
|
|
4239
|
+
* </li>
|
|
4240
|
+
* <li>
|
|
4241
|
+
* <p>InProgress – This job has begun. You can start viewing the results in the output S3 location.</p>
|
|
4242
|
+
* </li>
|
|
4243
|
+
* <li>
|
|
4244
|
+
* <p>Completed – This job has successfully completed. View the output files in the output S3 location.</p>
|
|
4245
|
+
* </li>
|
|
4246
|
+
* <li>
|
|
4247
|
+
* <p>PartiallyCompleted – This job has partially completed. Not all of your records could be processed in time. View the output files in the output S3 location.</p>
|
|
4248
|
+
* </li>
|
|
4249
|
+
* <li>
|
|
4250
|
+
* <p>Failed – This job has failed. Check the failure message for any further details. For further assistance, reach out to the <a href="https://console.aws.amazon.com/support/home/">Amazon Web Services Support Center</a>.</p>
|
|
4251
|
+
* </li>
|
|
4252
|
+
* <li>
|
|
4253
|
+
* <p>Stopped – This job was stopped by a user.</p>
|
|
4254
|
+
* </li>
|
|
4255
|
+
* <li>
|
|
4256
|
+
* <p>Stopping – This job is being stopped by a user.</p>
|
|
4257
|
+
* </li>
|
|
4258
|
+
* </ul>
|
|
3795
4259
|
* @public
|
|
3796
4260
|
*/
|
|
3797
4261
|
status?: ModelInvocationJobStatus | undefined;
|
|
@@ -3826,7 +4290,7 @@ export interface GetModelInvocationJobResponse {
|
|
|
3826
4290
|
*/
|
|
3827
4291
|
outputDataConfig: ModelInvocationJobOutputDataConfig | undefined;
|
|
3828
4292
|
/**
|
|
3829
|
-
* <p>The configuration of the Virtual Private Cloud (VPC) for the data in the batch inference job. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/batch-
|
|
4293
|
+
* <p>The configuration of the Virtual Private Cloud (VPC) for the data in the batch inference job. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/batch-vpc">Protect batch inference jobs using a VPC</a>.</p>
|
|
3830
4294
|
* @public
|
|
3831
4295
|
*/
|
|
3832
4296
|
vpcConfig?: VpcConfig | undefined;
|
|
@@ -3857,6 +4321,50 @@ export interface ListModelInvocationJobsRequest {
|
|
|
3857
4321
|
submitTimeBefore?: Date | undefined;
|
|
3858
4322
|
/**
|
|
3859
4323
|
* <p>Specify a status to filter for batch inference jobs whose statuses match the string you specify.</p>
|
|
4324
|
+
* <p>The following statuses are possible:</p>
|
|
4325
|
+
* <ul>
|
|
4326
|
+
* <li>
|
|
4327
|
+
* <p>Submitted – This job has been submitted to a queue for validation.</p>
|
|
4328
|
+
* </li>
|
|
4329
|
+
* <li>
|
|
4330
|
+
* <p>Validating – This job is being validated for the requirements described in <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/batch-inference-data.html">Format and upload your batch inference data</a>. The criteria include the following:</p>
|
|
4331
|
+
* <ul>
|
|
4332
|
+
* <li>
|
|
4333
|
+
* <p>Your IAM service role has access to the Amazon S3 buckets containing your files.</p>
|
|
4334
|
+
* </li>
|
|
4335
|
+
* <li>
|
|
4336
|
+
* <p>Your files are .jsonl files and each individual record is a JSON object in the correct format. Note that validation doesn't check if the <code>modelInput</code> value matches the request body for the model.</p>
|
|
4337
|
+
* </li>
|
|
4338
|
+
* <li>
|
|
4339
|
+
* <p>Your files fulfill the requirements for file size and number of records. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/quotas.html">Quotas for Amazon Bedrock</a>.</p>
|
|
4340
|
+
* </li>
|
|
4341
|
+
* </ul>
|
|
4342
|
+
* </li>
|
|
4343
|
+
* <li>
|
|
4344
|
+
* <p>Scheduled – This job has been validated and is now in a queue. The job will automatically start when it reaches its turn.</p>
|
|
4345
|
+
* </li>
|
|
4346
|
+
* <li>
|
|
4347
|
+
* <p>Expired – This job timed out because it was scheduled but didn't begin before the set timeout duration. Submit a new job request.</p>
|
|
4348
|
+
* </li>
|
|
4349
|
+
* <li>
|
|
4350
|
+
* <p>InProgress – This job has begun. You can start viewing the results in the output S3 location.</p>
|
|
4351
|
+
* </li>
|
|
4352
|
+
* <li>
|
|
4353
|
+
* <p>Completed – This job has successfully completed. View the output files in the output S3 location.</p>
|
|
4354
|
+
* </li>
|
|
4355
|
+
* <li>
|
|
4356
|
+
* <p>PartiallyCompleted – This job has partially completed. Not all of your records could be processed in time. View the output files in the output S3 location.</p>
|
|
4357
|
+
* </li>
|
|
4358
|
+
* <li>
|
|
4359
|
+
* <p>Failed – This job has failed. Check the failure message for any further details. For further assistance, reach out to the <a href="https://console.aws.amazon.com/support/home/">Amazon Web Services Support Center</a>.</p>
|
|
4360
|
+
* </li>
|
|
4361
|
+
* <li>
|
|
4362
|
+
* <p>Stopped – This job was stopped by a user.</p>
|
|
4363
|
+
* </li>
|
|
4364
|
+
* <li>
|
|
4365
|
+
* <p>Stopping – This job is being stopped by a user.</p>
|
|
4366
|
+
* </li>
|
|
4367
|
+
* </ul>
|
|
3860
4368
|
* @public
|
|
3861
4369
|
*/
|
|
3862
4370
|
statusEquals?: ModelInvocationJobStatus | undefined;
|
|
@@ -3923,6 +4431,50 @@ export interface ModelInvocationJobSummary {
|
|
|
3923
4431
|
roleArn: string | undefined;
|
|
3924
4432
|
/**
|
|
3925
4433
|
* <p>The status of the batch inference job.</p>
|
|
4434
|
+
* <p>The following statuses are possible:</p>
|
|
4435
|
+
* <ul>
|
|
4436
|
+
* <li>
|
|
4437
|
+
* <p>Submitted – This job has been submitted to a queue for validation.</p>
|
|
4438
|
+
* </li>
|
|
4439
|
+
* <li>
|
|
4440
|
+
* <p>Validating – This job is being validated for the requirements described in <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/batch-inference-data.html">Format and upload your batch inference data</a>. The criteria include the following:</p>
|
|
4441
|
+
* <ul>
|
|
4442
|
+
* <li>
|
|
4443
|
+
* <p>Your IAM service role has access to the Amazon S3 buckets containing your files.</p>
|
|
4444
|
+
* </li>
|
|
4445
|
+
* <li>
|
|
4446
|
+
* <p>Your files are .jsonl files and each individual record is a JSON object in the correct format. Note that validation doesn't check if the <code>modelInput</code> value matches the request body for the model.</p>
|
|
4447
|
+
* </li>
|
|
4448
|
+
* <li>
|
|
4449
|
+
* <p>Your files fulfill the requirements for file size and number of records. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/quotas.html">Quotas for Amazon Bedrock</a>.</p>
|
|
4450
|
+
* </li>
|
|
4451
|
+
* </ul>
|
|
4452
|
+
* </li>
|
|
4453
|
+
* <li>
|
|
4454
|
+
* <p>Scheduled – This job has been validated and is now in a queue. The job will automatically start when it reaches its turn.</p>
|
|
4455
|
+
* </li>
|
|
4456
|
+
* <li>
|
|
4457
|
+
* <p>Expired – This job timed out because it was scheduled but didn't begin before the set timeout duration. Submit a new job request.</p>
|
|
4458
|
+
* </li>
|
|
4459
|
+
* <li>
|
|
4460
|
+
* <p>InProgress – This job has begun. You can start viewing the results in the output S3 location.</p>
|
|
4461
|
+
* </li>
|
|
4462
|
+
* <li>
|
|
4463
|
+
* <p>Completed – This job has successfully completed. View the output files in the output S3 location.</p>
|
|
4464
|
+
* </li>
|
|
4465
|
+
* <li>
|
|
4466
|
+
* <p>PartiallyCompleted – This job has partially completed. Not all of your records could be processed in time. View the output files in the output S3 location.</p>
|
|
4467
|
+
* </li>
|
|
4468
|
+
* <li>
|
|
4469
|
+
* <p>Failed – This job has failed. Check the failure message for any further details. For further assistance, reach out to the <a href="https://console.aws.amazon.com/support/home/">Amazon Web Services Support Center</a>.</p>
|
|
4470
|
+
* </li>
|
|
4471
|
+
* <li>
|
|
4472
|
+
* <p>Stopped – This job was stopped by a user.</p>
|
|
4473
|
+
* </li>
|
|
4474
|
+
* <li>
|
|
4475
|
+
* <p>Stopping – This job is being stopped by a user.</p>
|
|
4476
|
+
* </li>
|
|
4477
|
+
* </ul>
|
|
3926
4478
|
* @public
|
|
3927
4479
|
*/
|
|
3928
4480
|
status?: ModelInvocationJobStatus | undefined;
|
|
@@ -3957,7 +4509,7 @@ export interface ModelInvocationJobSummary {
|
|
|
3957
4509
|
*/
|
|
3958
4510
|
outputDataConfig: ModelInvocationJobOutputDataConfig | undefined;
|
|
3959
4511
|
/**
|
|
3960
|
-
* <p>The configuration of the Virtual Private Cloud (VPC) for the data in the batch inference job. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/batch-
|
|
4512
|
+
* <p>The configuration of the Virtual Private Cloud (VPC) for the data in the batch inference job. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/batch-vpc">Protect batch inference jobs using a VPC</a>.</p>
|
|
3961
4513
|
* @public
|
|
3962
4514
|
*/
|
|
3963
4515
|
vpcConfig?: VpcConfig | undefined;
|
|
@@ -3985,70 +4537,269 @@ export interface ListModelInvocationJobsResponse {
|
|
|
3985
4537
|
* <p>A list of items, each of which contains a summary about a batch inference job.</p>
|
|
3986
4538
|
* @public
|
|
3987
4539
|
*/
|
|
3988
|
-
invocationJobSummaries?: ModelInvocationJobSummary[] | undefined;
|
|
3989
|
-
}
|
|
3990
|
-
/**
|
|
3991
|
-
* @public
|
|
3992
|
-
*/
|
|
3993
|
-
export interface StopModelInvocationJobRequest {
|
|
4540
|
+
invocationJobSummaries?: ModelInvocationJobSummary[] | undefined;
|
|
4541
|
+
}
|
|
4542
|
+
/**
|
|
4543
|
+
* @public
|
|
4544
|
+
*/
|
|
4545
|
+
export interface StopModelInvocationJobRequest {
|
|
4546
|
+
/**
|
|
4547
|
+
* <p>The Amazon Resource Name (ARN) of the batch inference job to stop.</p>
|
|
4548
|
+
* @public
|
|
4549
|
+
*/
|
|
4550
|
+
jobIdentifier: string | undefined;
|
|
4551
|
+
}
|
|
4552
|
+
/**
|
|
4553
|
+
* @public
|
|
4554
|
+
*/
|
|
4555
|
+
export interface StopModelInvocationJobResponse {
|
|
4556
|
+
}
|
|
4557
|
+
/**
|
|
4558
|
+
* @public
|
|
4559
|
+
*/
|
|
4560
|
+
export interface DeleteCustomModelRequest {
|
|
4561
|
+
/**
|
|
4562
|
+
* <p>Name of the model to delete.</p>
|
|
4563
|
+
* @public
|
|
4564
|
+
*/
|
|
4565
|
+
modelIdentifier: string | undefined;
|
|
4566
|
+
}
|
|
4567
|
+
/**
|
|
4568
|
+
* @public
|
|
4569
|
+
*/
|
|
4570
|
+
export interface DeleteCustomModelResponse {
|
|
4571
|
+
}
|
|
4572
|
+
/**
|
|
4573
|
+
* @public
|
|
4574
|
+
*/
|
|
4575
|
+
export interface GetCustomModelRequest {
|
|
4576
|
+
/**
|
|
4577
|
+
* <p>Name or Amazon Resource Name (ARN) of the custom model.</p>
|
|
4578
|
+
* @public
|
|
4579
|
+
*/
|
|
4580
|
+
modelIdentifier: string | undefined;
|
|
4581
|
+
}
|
|
4582
|
+
/**
|
|
4583
|
+
* <p>Details about a teacher model used for model customization.</p>
|
|
4584
|
+
* @public
|
|
4585
|
+
*/
|
|
4586
|
+
export interface TeacherModelConfig {
|
|
4587
|
+
/**
|
|
4588
|
+
* <p>The identifier of the teacher model.</p>
|
|
4589
|
+
* @public
|
|
4590
|
+
*/
|
|
4591
|
+
teacherModelIdentifier: string | undefined;
|
|
4592
|
+
/**
|
|
4593
|
+
* <p>The maximum number of tokens requested when the customization job invokes the teacher model.</p>
|
|
4594
|
+
* @public
|
|
4595
|
+
*/
|
|
4596
|
+
maxResponseLengthForInference?: number | undefined;
|
|
4597
|
+
}
|
|
4598
|
+
/**
|
|
4599
|
+
* <p>Settings for distilling a foundation model into a smaller and more efficient model.</p>
|
|
4600
|
+
* @public
|
|
4601
|
+
*/
|
|
4602
|
+
export interface DistillationConfig {
|
|
4603
|
+
/**
|
|
4604
|
+
* <p>The teacher model configuration.</p>
|
|
4605
|
+
* @public
|
|
4606
|
+
*/
|
|
4607
|
+
teacherModelConfig: TeacherModelConfig | undefined;
|
|
4608
|
+
}
|
|
4609
|
+
/**
|
|
4610
|
+
* <p>A model customization configuration</p>
|
|
4611
|
+
* @public
|
|
4612
|
+
*/
|
|
4613
|
+
export type CustomizationConfig = CustomizationConfig.DistillationConfigMember | CustomizationConfig.$UnknownMember;
|
|
4614
|
+
/**
|
|
4615
|
+
* @public
|
|
4616
|
+
*/
|
|
4617
|
+
export declare namespace CustomizationConfig {
|
|
4618
|
+
/**
|
|
4619
|
+
* <p>The distillation configuration for the custom model.</p>
|
|
4620
|
+
* @public
|
|
4621
|
+
*/
|
|
4622
|
+
interface DistillationConfigMember {
|
|
4623
|
+
distillationConfig: DistillationConfig;
|
|
4624
|
+
$unknown?: never;
|
|
4625
|
+
}
|
|
4626
|
+
/**
|
|
4627
|
+
* @public
|
|
4628
|
+
*/
|
|
4629
|
+
interface $UnknownMember {
|
|
4630
|
+
distillationConfig?: never;
|
|
4631
|
+
$unknown: [string, any];
|
|
4632
|
+
}
|
|
4633
|
+
interface Visitor<T> {
|
|
4634
|
+
distillationConfig: (value: DistillationConfig) => T;
|
|
4635
|
+
_: (name: string, value: any) => T;
|
|
4636
|
+
}
|
|
4637
|
+
const visit: <T>(value: CustomizationConfig, visitor: Visitor<T>) => T;
|
|
4638
|
+
}
|
|
4639
|
+
/**
|
|
4640
|
+
* @public
|
|
4641
|
+
* @enum
|
|
4642
|
+
*/
|
|
4643
|
+
export declare const CustomizationType: {
|
|
4644
|
+
readonly CONTINUED_PRE_TRAINING: "CONTINUED_PRE_TRAINING";
|
|
4645
|
+
readonly DISTILLATION: "DISTILLATION";
|
|
4646
|
+
readonly FINE_TUNING: "FINE_TUNING";
|
|
4647
|
+
};
|
|
4648
|
+
/**
|
|
4649
|
+
* @public
|
|
4650
|
+
*/
|
|
4651
|
+
export type CustomizationType = (typeof CustomizationType)[keyof typeof CustomizationType];
|
|
4652
|
+
/**
|
|
4653
|
+
* <p>S3 Location of the output data.</p>
|
|
4654
|
+
* @public
|
|
4655
|
+
*/
|
|
4656
|
+
export interface OutputDataConfig {
|
|
4657
|
+
/**
|
|
4658
|
+
* <p>The S3 URI where the output data is stored.</p>
|
|
4659
|
+
* @public
|
|
4660
|
+
*/
|
|
4661
|
+
s3Uri: string | undefined;
|
|
4662
|
+
}
|
|
4663
|
+
/**
|
|
4664
|
+
* <p>A storage location for invocation logs.</p>
|
|
4665
|
+
* @public
|
|
4666
|
+
*/
|
|
4667
|
+
export type InvocationLogSource = InvocationLogSource.S3UriMember | InvocationLogSource.$UnknownMember;
|
|
4668
|
+
/**
|
|
4669
|
+
* @public
|
|
4670
|
+
*/
|
|
4671
|
+
export declare namespace InvocationLogSource {
|
|
4672
|
+
/**
|
|
4673
|
+
* <p>The URI of an invocation log in a bucket.</p>
|
|
4674
|
+
* @public
|
|
4675
|
+
*/
|
|
4676
|
+
interface S3UriMember {
|
|
4677
|
+
s3Uri: string;
|
|
4678
|
+
$unknown?: never;
|
|
4679
|
+
}
|
|
4680
|
+
/**
|
|
4681
|
+
* @public
|
|
4682
|
+
*/
|
|
4683
|
+
interface $UnknownMember {
|
|
4684
|
+
s3Uri?: never;
|
|
4685
|
+
$unknown: [string, any];
|
|
4686
|
+
}
|
|
4687
|
+
interface Visitor<T> {
|
|
4688
|
+
s3Uri: (value: string) => T;
|
|
4689
|
+
_: (name: string, value: any) => T;
|
|
4690
|
+
}
|
|
4691
|
+
const visit: <T>(value: InvocationLogSource, visitor: Visitor<T>) => T;
|
|
4692
|
+
}
|
|
4693
|
+
/**
|
|
4694
|
+
* <p>A mapping of a metadata key to a value that it should or should not equal.</p>
|
|
4695
|
+
* @public
|
|
4696
|
+
*/
|
|
4697
|
+
export interface RequestMetadataBaseFilters {
|
|
4698
|
+
/**
|
|
4699
|
+
* <p>Include results where the key equals the value.</p>
|
|
4700
|
+
* @public
|
|
4701
|
+
*/
|
|
4702
|
+
equals?: Record<string, string> | undefined;
|
|
4703
|
+
/**
|
|
4704
|
+
* <p>Include results where the key does not equal the value.</p>
|
|
4705
|
+
* @public
|
|
4706
|
+
*/
|
|
4707
|
+
notEquals?: Record<string, string> | undefined;
|
|
4708
|
+
}
|
|
4709
|
+
/**
|
|
4710
|
+
* <p>Rules for filtering invocation logs. A filter can be a mapping of a metadata
|
|
4711
|
+
* key to a value that it should or should not equal (a base filter), or a list of base filters
|
|
4712
|
+
* that are all applied with <code>AND</code> or <code>OR</code> logical operators</p>
|
|
4713
|
+
* @public
|
|
4714
|
+
*/
|
|
4715
|
+
export type RequestMetadataFilters = RequestMetadataFilters.AndAllMember | RequestMetadataFilters.EqualsMember | RequestMetadataFilters.NotEqualsMember | RequestMetadataFilters.OrAllMember | RequestMetadataFilters.$UnknownMember;
|
|
4716
|
+
/**
|
|
4717
|
+
* @public
|
|
4718
|
+
*/
|
|
4719
|
+
export declare namespace RequestMetadataFilters {
|
|
4720
|
+
/**
|
|
4721
|
+
* <p>Include results where the key equals the value.</p>
|
|
4722
|
+
* @public
|
|
4723
|
+
*/
|
|
4724
|
+
interface EqualsMember {
|
|
4725
|
+
equals: Record<string, string>;
|
|
4726
|
+
notEquals?: never;
|
|
4727
|
+
andAll?: never;
|
|
4728
|
+
orAll?: never;
|
|
4729
|
+
$unknown?: never;
|
|
4730
|
+
}
|
|
4731
|
+
/**
|
|
4732
|
+
* <p>Include results where the key does not equal the value.</p>
|
|
4733
|
+
* @public
|
|
4734
|
+
*/
|
|
4735
|
+
interface NotEqualsMember {
|
|
4736
|
+
equals?: never;
|
|
4737
|
+
notEquals: Record<string, string>;
|
|
4738
|
+
andAll?: never;
|
|
4739
|
+
orAll?: never;
|
|
4740
|
+
$unknown?: never;
|
|
4741
|
+
}
|
|
4742
|
+
/**
|
|
4743
|
+
* <p>Include results where all of the based filters match.</p>
|
|
4744
|
+
* @public
|
|
4745
|
+
*/
|
|
4746
|
+
interface AndAllMember {
|
|
4747
|
+
equals?: never;
|
|
4748
|
+
notEquals?: never;
|
|
4749
|
+
andAll: RequestMetadataBaseFilters[];
|
|
4750
|
+
orAll?: never;
|
|
4751
|
+
$unknown?: never;
|
|
4752
|
+
}
|
|
4753
|
+
/**
|
|
4754
|
+
* <p>Include results where any of the base filters match.</p>
|
|
4755
|
+
* @public
|
|
4756
|
+
*/
|
|
4757
|
+
interface OrAllMember {
|
|
4758
|
+
equals?: never;
|
|
4759
|
+
notEquals?: never;
|
|
4760
|
+
andAll?: never;
|
|
4761
|
+
orAll: RequestMetadataBaseFilters[];
|
|
4762
|
+
$unknown?: never;
|
|
4763
|
+
}
|
|
3994
4764
|
/**
|
|
3995
|
-
* <p>The Amazon Resource Name (ARN) of the batch inference job to stop.</p>
|
|
3996
4765
|
* @public
|
|
3997
4766
|
*/
|
|
3998
|
-
|
|
3999
|
-
|
|
4000
|
-
|
|
4001
|
-
|
|
4002
|
-
|
|
4003
|
-
|
|
4767
|
+
interface $UnknownMember {
|
|
4768
|
+
equals?: never;
|
|
4769
|
+
notEquals?: never;
|
|
4770
|
+
andAll?: never;
|
|
4771
|
+
orAll?: never;
|
|
4772
|
+
$unknown: [string, any];
|
|
4773
|
+
}
|
|
4774
|
+
interface Visitor<T> {
|
|
4775
|
+
equals: (value: Record<string, string>) => T;
|
|
4776
|
+
notEquals: (value: Record<string, string>) => T;
|
|
4777
|
+
andAll: (value: RequestMetadataBaseFilters[]) => T;
|
|
4778
|
+
orAll: (value: RequestMetadataBaseFilters[]) => T;
|
|
4779
|
+
_: (name: string, value: any) => T;
|
|
4780
|
+
}
|
|
4781
|
+
const visit: <T>(value: RequestMetadataFilters, visitor: Visitor<T>) => T;
|
|
4004
4782
|
}
|
|
4005
4783
|
/**
|
|
4784
|
+
* <p>Settings for using invocation logs to customize a model.</p>
|
|
4006
4785
|
* @public
|
|
4007
4786
|
*/
|
|
4008
|
-
export interface
|
|
4787
|
+
export interface InvocationLogsConfig {
|
|
4009
4788
|
/**
|
|
4010
|
-
* <p>
|
|
4789
|
+
* <p>Whether to use the model's response for training, or just the prompt. The default value is <code>False</code>.</p>
|
|
4011
4790
|
* @public
|
|
4012
4791
|
*/
|
|
4013
|
-
|
|
4014
|
-
}
|
|
4015
|
-
/**
|
|
4016
|
-
* @public
|
|
4017
|
-
*/
|
|
4018
|
-
export interface DeleteCustomModelResponse {
|
|
4019
|
-
}
|
|
4020
|
-
/**
|
|
4021
|
-
* @public
|
|
4022
|
-
*/
|
|
4023
|
-
export interface GetCustomModelRequest {
|
|
4792
|
+
usePromptResponse?: boolean | undefined;
|
|
4024
4793
|
/**
|
|
4025
|
-
* <p>
|
|
4794
|
+
* <p>The source of the invocation logs.</p>
|
|
4026
4795
|
* @public
|
|
4027
4796
|
*/
|
|
4028
|
-
|
|
4029
|
-
}
|
|
4030
|
-
/**
|
|
4031
|
-
* @public
|
|
4032
|
-
* @enum
|
|
4033
|
-
*/
|
|
4034
|
-
export declare const CustomizationType: {
|
|
4035
|
-
readonly CONTINUED_PRE_TRAINING: "CONTINUED_PRE_TRAINING";
|
|
4036
|
-
readonly FINE_TUNING: "FINE_TUNING";
|
|
4037
|
-
};
|
|
4038
|
-
/**
|
|
4039
|
-
* @public
|
|
4040
|
-
*/
|
|
4041
|
-
export type CustomizationType = (typeof CustomizationType)[keyof typeof CustomizationType];
|
|
4042
|
-
/**
|
|
4043
|
-
* <p>S3 Location of the output data.</p>
|
|
4044
|
-
* @public
|
|
4045
|
-
*/
|
|
4046
|
-
export interface OutputDataConfig {
|
|
4797
|
+
invocationLogSource: InvocationLogSource | undefined;
|
|
4047
4798
|
/**
|
|
4048
|
-
* <p>
|
|
4799
|
+
* <p>Rules for filtering invocation logs based on request metadata.</p>
|
|
4049
4800
|
* @public
|
|
4050
4801
|
*/
|
|
4051
|
-
|
|
4802
|
+
requestMetadataFilters?: RequestMetadataFilters | undefined;
|
|
4052
4803
|
}
|
|
4053
4804
|
/**
|
|
4054
4805
|
* <p>S3 Location of the training data.</p>
|
|
@@ -4059,7 +4810,12 @@ export interface TrainingDataConfig {
|
|
|
4059
4810
|
* <p>The S3 URI where the training data is stored.</p>
|
|
4060
4811
|
* @public
|
|
4061
4812
|
*/
|
|
4062
|
-
s3Uri
|
|
4813
|
+
s3Uri?: string | undefined;
|
|
4814
|
+
/**
|
|
4815
|
+
* <p>Settings for using invocation logs to customize a model.</p>
|
|
4816
|
+
* @public
|
|
4817
|
+
*/
|
|
4818
|
+
invocationLogsConfig?: InvocationLogsConfig | undefined;
|
|
4063
4819
|
}
|
|
4064
4820
|
/**
|
|
4065
4821
|
* <p>Metrics associated with the custom job.</p>
|
|
@@ -4179,6 +4935,11 @@ export interface GetCustomModelResponse {
|
|
|
4179
4935
|
* @public
|
|
4180
4936
|
*/
|
|
4181
4937
|
creationTime: Date | undefined;
|
|
4938
|
+
/**
|
|
4939
|
+
* <p>The customization configuration for the custom model.</p>
|
|
4940
|
+
* @public
|
|
4941
|
+
*/
|
|
4942
|
+
customizationConfig?: CustomizationConfig | undefined;
|
|
4182
4943
|
}
|
|
4183
4944
|
/**
|
|
4184
4945
|
* @public
|
|
@@ -4196,6 +4957,7 @@ export interface GetFoundationModelRequest {
|
|
|
4196
4957
|
*/
|
|
4197
4958
|
export declare const ModelCustomization: {
|
|
4198
4959
|
readonly CONTINUED_PRE_TRAINING: "CONTINUED_PRE_TRAINING";
|
|
4960
|
+
readonly DISTILLATION: "DISTILLATION";
|
|
4199
4961
|
readonly FINE_TUNING: "FINE_TUNING";
|
|
4200
4962
|
};
|
|
4201
4963
|
/**
|
|
@@ -4518,6 +5280,202 @@ export interface ListFoundationModelsResponse {
|
|
|
4518
5280
|
*/
|
|
4519
5281
|
modelSummaries?: FoundationModelSummary[] | undefined;
|
|
4520
5282
|
}
|
|
5283
|
+
/**
|
|
5284
|
+
* @public
|
|
5285
|
+
*/
|
|
5286
|
+
export interface GetPromptRouterRequest {
|
|
5287
|
+
/**
|
|
5288
|
+
* <p>The prompt router's ARN</p>
|
|
5289
|
+
* @public
|
|
5290
|
+
*/
|
|
5291
|
+
promptRouterArn: string | undefined;
|
|
5292
|
+
}
|
|
5293
|
+
/**
|
|
5294
|
+
* <p>The target model for a prompt router.</p>
|
|
5295
|
+
* @public
|
|
5296
|
+
*/
|
|
5297
|
+
export interface PromptRouterTargetModel {
|
|
5298
|
+
/**
|
|
5299
|
+
* <p>The target model's ARN.</p>
|
|
5300
|
+
* @public
|
|
5301
|
+
*/
|
|
5302
|
+
modelArn?: string | undefined;
|
|
5303
|
+
}
|
|
5304
|
+
/**
|
|
5305
|
+
* <p>Routing criteria for a prompt router.</p>
|
|
5306
|
+
* @public
|
|
5307
|
+
*/
|
|
5308
|
+
export interface RoutingCriteria {
|
|
5309
|
+
/**
|
|
5310
|
+
* <p>The criteria's response quality difference.</p>
|
|
5311
|
+
* @public
|
|
5312
|
+
*/
|
|
5313
|
+
responseQualityDifference: number | undefined;
|
|
5314
|
+
}
|
|
5315
|
+
/**
|
|
5316
|
+
* @public
|
|
5317
|
+
* @enum
|
|
5318
|
+
*/
|
|
5319
|
+
export declare const PromptRouterStatus: {
|
|
5320
|
+
readonly AVAILABLE: "AVAILABLE";
|
|
5321
|
+
};
|
|
5322
|
+
/**
|
|
5323
|
+
* @public
|
|
5324
|
+
*/
|
|
5325
|
+
export type PromptRouterStatus = (typeof PromptRouterStatus)[keyof typeof PromptRouterStatus];
|
|
5326
|
+
/**
|
|
5327
|
+
* @public
|
|
5328
|
+
* @enum
|
|
5329
|
+
*/
|
|
5330
|
+
export declare const PromptRouterType: {
|
|
5331
|
+
readonly CUSTOM: "custom";
|
|
5332
|
+
readonly DEFAULT: "default";
|
|
5333
|
+
};
|
|
5334
|
+
/**
|
|
5335
|
+
* @public
|
|
5336
|
+
*/
|
|
5337
|
+
export type PromptRouterType = (typeof PromptRouterType)[keyof typeof PromptRouterType];
|
|
5338
|
+
/**
|
|
5339
|
+
* @public
|
|
5340
|
+
*/
|
|
5341
|
+
export interface GetPromptRouterResponse {
|
|
5342
|
+
/**
|
|
5343
|
+
* <p>The router's name.</p>
|
|
5344
|
+
* @public
|
|
5345
|
+
*/
|
|
5346
|
+
promptRouterName: string | undefined;
|
|
5347
|
+
/**
|
|
5348
|
+
* <p>The router's routing criteria.</p>
|
|
5349
|
+
* @public
|
|
5350
|
+
*/
|
|
5351
|
+
routingCriteria: RoutingCriteria | undefined;
|
|
5352
|
+
/**
|
|
5353
|
+
* <p>The router's description.</p>
|
|
5354
|
+
* @public
|
|
5355
|
+
*/
|
|
5356
|
+
description?: string | undefined;
|
|
5357
|
+
/**
|
|
5358
|
+
* <p>When the router was created.</p>
|
|
5359
|
+
* @public
|
|
5360
|
+
*/
|
|
5361
|
+
createdAt?: Date | undefined;
|
|
5362
|
+
/**
|
|
5363
|
+
* <p>When the router was updated.</p>
|
|
5364
|
+
* @public
|
|
5365
|
+
*/
|
|
5366
|
+
updatedAt?: Date | undefined;
|
|
5367
|
+
/**
|
|
5368
|
+
* <p>The prompt router's ARN</p>
|
|
5369
|
+
* @public
|
|
5370
|
+
*/
|
|
5371
|
+
promptRouterArn: string | undefined;
|
|
5372
|
+
/**
|
|
5373
|
+
* <p>The router's models.</p>
|
|
5374
|
+
* @public
|
|
5375
|
+
*/
|
|
5376
|
+
models: PromptRouterTargetModel[] | undefined;
|
|
5377
|
+
/**
|
|
5378
|
+
* <p>The router's fallback model.</p>
|
|
5379
|
+
* @public
|
|
5380
|
+
*/
|
|
5381
|
+
fallbackModel: PromptRouterTargetModel | undefined;
|
|
5382
|
+
/**
|
|
5383
|
+
* <p>The router's status.</p>
|
|
5384
|
+
* @public
|
|
5385
|
+
*/
|
|
5386
|
+
status: PromptRouterStatus | undefined;
|
|
5387
|
+
/**
|
|
5388
|
+
* <p>The router's type.</p>
|
|
5389
|
+
* @public
|
|
5390
|
+
*/
|
|
5391
|
+
type: PromptRouterType | undefined;
|
|
5392
|
+
}
|
|
5393
|
+
/**
|
|
5394
|
+
* @public
|
|
5395
|
+
*/
|
|
5396
|
+
export interface ListPromptRoutersRequest {
|
|
5397
|
+
/**
|
|
5398
|
+
* <p>The maximum number of prompt routers to return in one page of results.</p>
|
|
5399
|
+
* @public
|
|
5400
|
+
*/
|
|
5401
|
+
maxResults?: number | undefined;
|
|
5402
|
+
/**
|
|
5403
|
+
* <p>Specify the pagination token from a previous request to retrieve the next page of results.</p>
|
|
5404
|
+
* @public
|
|
5405
|
+
*/
|
|
5406
|
+
nextToken?: string | undefined;
|
|
5407
|
+
}
|
|
5408
|
+
/**
|
|
5409
|
+
* <p>Details about a prompt router.</p>
|
|
5410
|
+
* @public
|
|
5411
|
+
*/
|
|
5412
|
+
export interface PromptRouterSummary {
|
|
5413
|
+
/**
|
|
5414
|
+
* <p>The router's name.</p>
|
|
5415
|
+
* @public
|
|
5416
|
+
*/
|
|
5417
|
+
promptRouterName: string | undefined;
|
|
5418
|
+
/**
|
|
5419
|
+
* <p>The router's routing criteria.</p>
|
|
5420
|
+
* @public
|
|
5421
|
+
*/
|
|
5422
|
+
routingCriteria: RoutingCriteria | undefined;
|
|
5423
|
+
/**
|
|
5424
|
+
* <p>The router's description.</p>
|
|
5425
|
+
* @public
|
|
5426
|
+
*/
|
|
5427
|
+
description?: string | undefined;
|
|
5428
|
+
/**
|
|
5429
|
+
* <p>When the router was created.</p>
|
|
5430
|
+
* @public
|
|
5431
|
+
*/
|
|
5432
|
+
createdAt?: Date | undefined;
|
|
5433
|
+
/**
|
|
5434
|
+
* <p>When the router was updated.</p>
|
|
5435
|
+
* @public
|
|
5436
|
+
*/
|
|
5437
|
+
updatedAt?: Date | undefined;
|
|
5438
|
+
/**
|
|
5439
|
+
* <p>The router's ARN.</p>
|
|
5440
|
+
* @public
|
|
5441
|
+
*/
|
|
5442
|
+
promptRouterArn: string | undefined;
|
|
5443
|
+
/**
|
|
5444
|
+
* <p>The router's models.</p>
|
|
5445
|
+
* @public
|
|
5446
|
+
*/
|
|
5447
|
+
models: PromptRouterTargetModel[] | undefined;
|
|
5448
|
+
/**
|
|
5449
|
+
* <p>The router's fallback model.</p>
|
|
5450
|
+
* @public
|
|
5451
|
+
*/
|
|
5452
|
+
fallbackModel: PromptRouterTargetModel | undefined;
|
|
5453
|
+
/**
|
|
5454
|
+
* <p>The router's status.</p>
|
|
5455
|
+
* @public
|
|
5456
|
+
*/
|
|
5457
|
+
status: PromptRouterStatus | undefined;
|
|
5458
|
+
/**
|
|
5459
|
+
* <p>The summary's type.</p>
|
|
5460
|
+
* @public
|
|
5461
|
+
*/
|
|
5462
|
+
type: PromptRouterType | undefined;
|
|
5463
|
+
}
|
|
5464
|
+
/**
|
|
5465
|
+
* @public
|
|
5466
|
+
*/
|
|
5467
|
+
export interface ListPromptRoutersResponse {
|
|
5468
|
+
/**
|
|
5469
|
+
* <p>A list of prompt router summaries.</p>
|
|
5470
|
+
* @public
|
|
5471
|
+
*/
|
|
5472
|
+
promptRouterSummaries?: PromptRouterSummary[] | undefined;
|
|
5473
|
+
/**
|
|
5474
|
+
* <p>Specify the pagination token from a previous request to retrieve the next page of results.</p>
|
|
5475
|
+
* @public
|
|
5476
|
+
*/
|
|
5477
|
+
nextToken?: string | undefined;
|
|
5478
|
+
}
|
|
4521
5479
|
/**
|
|
4522
5480
|
* @public
|
|
4523
5481
|
* @enum
|
|
@@ -5007,12 +5965,17 @@ export interface CreateModelCustomizationJobRequest {
|
|
|
5007
5965
|
* <p>Parameters related to tuning the model. For details on the format for different models, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/custom-models-hp.html">Custom model hyperparameters</a>.</p>
|
|
5008
5966
|
* @public
|
|
5009
5967
|
*/
|
|
5010
|
-
hyperParameters
|
|
5968
|
+
hyperParameters?: Record<string, string> | undefined;
|
|
5011
5969
|
/**
|
|
5012
5970
|
* <p>The configuration of the Virtual Private Cloud (VPC) that contains the resources that you're using for this job. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/vpc-model-customization.html">Protect your model customization jobs using a VPC</a>.</p>
|
|
5013
5971
|
* @public
|
|
5014
5972
|
*/
|
|
5015
5973
|
vpcConfig?: VpcConfig | undefined;
|
|
5974
|
+
/**
|
|
5975
|
+
* <p>The customization configuration for the model customization job.</p>
|
|
5976
|
+
* @public
|
|
5977
|
+
*/
|
|
5978
|
+
customizationConfig?: CustomizationConfig | undefined;
|
|
5016
5979
|
}
|
|
5017
5980
|
/**
|
|
5018
5981
|
* @public
|
|
@@ -5118,7 +6081,7 @@ export interface GetModelCustomizationJobResponse {
|
|
|
5118
6081
|
* <p>The hyperparameter values for the job. For details on the format for different models, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/custom-models-hp.html">Custom model hyperparameters</a>.</p>
|
|
5119
6082
|
* @public
|
|
5120
6083
|
*/
|
|
5121
|
-
hyperParameters
|
|
6084
|
+
hyperParameters?: Record<string, string> | undefined;
|
|
5122
6085
|
/**
|
|
5123
6086
|
* <p>Contains information about the training dataset.</p>
|
|
5124
6087
|
* @public
|
|
@@ -5159,6 +6122,11 @@ export interface GetModelCustomizationJobResponse {
|
|
|
5159
6122
|
* @public
|
|
5160
6123
|
*/
|
|
5161
6124
|
vpcConfig?: VpcConfig | undefined;
|
|
6125
|
+
/**
|
|
6126
|
+
* <p>The customization configuration for the model customization job.</p>
|
|
6127
|
+
* @public
|
|
6128
|
+
*/
|
|
6129
|
+
customizationConfig?: CustomizationConfig | undefined;
|
|
5162
6130
|
}
|
|
5163
6131
|
/**
|
|
5164
6132
|
* @public
|
|
@@ -6116,6 +7084,14 @@ export declare const GetEvaluationJobRequestFilterSensitiveLog: (obj: GetEvaluat
|
|
|
6116
7084
|
* @internal
|
|
6117
7085
|
*/
|
|
6118
7086
|
export declare const StopEvaluationJobRequestFilterSensitiveLog: (obj: StopEvaluationJobRequest) => any;
|
|
7087
|
+
/**
|
|
7088
|
+
* @internal
|
|
7089
|
+
*/
|
|
7090
|
+
export declare const GuardrailContentFilterConfigFilterSensitiveLog: (obj: GuardrailContentFilterConfig) => any;
|
|
7091
|
+
/**
|
|
7092
|
+
* @internal
|
|
7093
|
+
*/
|
|
7094
|
+
export declare const GuardrailContentPolicyConfigFilterSensitiveLog: (obj: GuardrailContentPolicyConfig) => any;
|
|
6119
7095
|
/**
|
|
6120
7096
|
* @internal
|
|
6121
7097
|
*/
|
|
@@ -6132,6 +7108,14 @@ export declare const CreateGuardrailRequestFilterSensitiveLog: (obj: CreateGuard
|
|
|
6132
7108
|
* @internal
|
|
6133
7109
|
*/
|
|
6134
7110
|
export declare const CreateGuardrailVersionRequestFilterSensitiveLog: (obj: CreateGuardrailVersionRequest) => any;
|
|
7111
|
+
/**
|
|
7112
|
+
* @internal
|
|
7113
|
+
*/
|
|
7114
|
+
export declare const GuardrailContentFilterFilterSensitiveLog: (obj: GuardrailContentFilter) => any;
|
|
7115
|
+
/**
|
|
7116
|
+
* @internal
|
|
7117
|
+
*/
|
|
7118
|
+
export declare const GuardrailContentPolicyFilterSensitiveLog: (obj: GuardrailContentPolicy) => any;
|
|
6135
7119
|
/**
|
|
6136
7120
|
* @internal
|
|
6137
7121
|
*/
|
|
@@ -6184,6 +7168,46 @@ export declare const ModelInvocationJobSummaryFilterSensitiveLog: (obj: ModelInv
|
|
|
6184
7168
|
* @internal
|
|
6185
7169
|
*/
|
|
6186
7170
|
export declare const ListModelInvocationJobsResponseFilterSensitiveLog: (obj: ListModelInvocationJobsResponse) => any;
|
|
7171
|
+
/**
|
|
7172
|
+
* @internal
|
|
7173
|
+
*/
|
|
7174
|
+
export declare const RequestMetadataBaseFiltersFilterSensitiveLog: (obj: RequestMetadataBaseFilters) => any;
|
|
7175
|
+
/**
|
|
7176
|
+
* @internal
|
|
7177
|
+
*/
|
|
7178
|
+
export declare const RequestMetadataFiltersFilterSensitiveLog: (obj: RequestMetadataFilters) => any;
|
|
7179
|
+
/**
|
|
7180
|
+
* @internal
|
|
7181
|
+
*/
|
|
7182
|
+
export declare const InvocationLogsConfigFilterSensitiveLog: (obj: InvocationLogsConfig) => any;
|
|
7183
|
+
/**
|
|
7184
|
+
* @internal
|
|
7185
|
+
*/
|
|
7186
|
+
export declare const TrainingDataConfigFilterSensitiveLog: (obj: TrainingDataConfig) => any;
|
|
7187
|
+
/**
|
|
7188
|
+
* @internal
|
|
7189
|
+
*/
|
|
7190
|
+
export declare const GetCustomModelResponseFilterSensitiveLog: (obj: GetCustomModelResponse) => any;
|
|
7191
|
+
/**
|
|
7192
|
+
* @internal
|
|
7193
|
+
*/
|
|
7194
|
+
export declare const GetPromptRouterResponseFilterSensitiveLog: (obj: GetPromptRouterResponse) => any;
|
|
7195
|
+
/**
|
|
7196
|
+
* @internal
|
|
7197
|
+
*/
|
|
7198
|
+
export declare const PromptRouterSummaryFilterSensitiveLog: (obj: PromptRouterSummary) => any;
|
|
7199
|
+
/**
|
|
7200
|
+
* @internal
|
|
7201
|
+
*/
|
|
7202
|
+
export declare const ListPromptRoutersResponseFilterSensitiveLog: (obj: ListPromptRoutersResponse) => any;
|
|
7203
|
+
/**
|
|
7204
|
+
* @internal
|
|
7205
|
+
*/
|
|
7206
|
+
export declare const CreateModelCustomizationJobRequestFilterSensitiveLog: (obj: CreateModelCustomizationJobRequest) => any;
|
|
7207
|
+
/**
|
|
7208
|
+
* @internal
|
|
7209
|
+
*/
|
|
7210
|
+
export declare const GetModelCustomizationJobResponseFilterSensitiveLog: (obj: GetModelCustomizationJobResponse) => any;
|
|
6187
7211
|
/**
|
|
6188
7212
|
* @internal
|
|
6189
7213
|
*/
|