cdk-lambda-subminute 2.0.255 → 2.0.256
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/.jsii +3 -3
- package/lib/cdk-lambda-subminute.js +3 -3
- package/node_modules/aws-sdk/CHANGELOG.md +9 -1
- package/node_modules/aws-sdk/README.md +1 -1
- package/node_modules/aws-sdk/apis/bedrock-2023-04-20.min.json +430 -184
- package/node_modules/aws-sdk/apis/bedrock-2023-04-20.paginators.json +6 -0
- package/node_modules/aws-sdk/apis/bedrock-2023-04-20.waiters2.json +5 -0
- package/node_modules/aws-sdk/apis/bedrock-runtime-2023-09-30.min.json +11 -0
- package/node_modules/aws-sdk/apis/rds-2014-10-31.min.json +1 -0
- package/node_modules/aws-sdk/clients/bedrock.d.ts +428 -166
- package/node_modules/aws-sdk/clients/bedrock.js +1 -0
- package/node_modules/aws-sdk/clients/bedrockruntime.d.ts +8 -5
- package/node_modules/aws-sdk/clients/ec2.d.ts +1 -1
- package/node_modules/aws-sdk/clients/managedblockchain.d.ts +3 -3
- package/node_modules/aws-sdk/clients/rds.d.ts +35 -31
- package/node_modules/aws-sdk/clients/sts.d.ts +2 -1
- package/node_modules/aws-sdk/clients/transfer.d.ts +21 -21
- package/node_modules/aws-sdk/dist/aws-sdk-core-react-native.js +1 -1
- package/node_modules/aws-sdk/dist/aws-sdk-react-native.js +17 -10
- package/node_modules/aws-sdk/dist/aws-sdk.js +4 -3
- package/node_modules/aws-sdk/dist/aws-sdk.min.js +10 -10
- package/node_modules/aws-sdk/lib/core.js +1 -1
- package/node_modules/aws-sdk/package.json +1 -1
- package/package.json +3 -3
@@ -19,6 +19,14 @@ declare class Bedrock extends Service {
|
|
19
19
|
* Creates a fine-tuning job to customize a base model. You specify the base foundation model and the location of the training data. After the model-customization job completes successfully, your custom model resource will be ready to use. Training data contains input and output text for each record in a JSONL format. Optionally, you can specify validation data in the same format as the training data. Bedrock returns validation loss metrics and output generations after the job completes. Model-customization jobs are asynchronous and the completion time depends on the base model and the training/validation data size. To monitor a job, use the GetModelCustomizationJob operation to retrieve the job status. For more information, see Custom models in the Bedrock User Guide.
|
20
20
|
*/
|
21
21
|
createModelCustomizationJob(callback?: (err: AWSError, data: Bedrock.Types.CreateModelCustomizationJobResponse) => void): Request<Bedrock.Types.CreateModelCustomizationJobResponse, AWSError>;
|
22
|
+
/**
|
23
|
+
* Creates a provisioned throughput with dedicated capacity for a foundation model or a fine-tuned model. For more information, see Provisioned throughput in the Bedrock User Guide.
|
24
|
+
*/
|
25
|
+
createProvisionedModelThroughput(params: Bedrock.Types.CreateProvisionedModelThroughputRequest, callback?: (err: AWSError, data: Bedrock.Types.CreateProvisionedModelThroughputResponse) => void): Request<Bedrock.Types.CreateProvisionedModelThroughputResponse, AWSError>;
|
26
|
+
/**
|
27
|
+
* Creates a provisioned throughput with dedicated capacity for a foundation model or a fine-tuned model. For more information, see Provisioned throughput in the Bedrock User Guide.
|
28
|
+
*/
|
29
|
+
createProvisionedModelThroughput(callback?: (err: AWSError, data: Bedrock.Types.CreateProvisionedModelThroughputResponse) => void): Request<Bedrock.Types.CreateProvisionedModelThroughputResponse, AWSError>;
|
22
30
|
/**
|
23
31
|
* Deletes a custom model that you created earlier. For more information, see Custom models in the Bedrock User Guide.
|
24
32
|
*/
|
@@ -35,6 +43,14 @@ declare class Bedrock extends Service {
|
|
35
43
|
* Delete the invocation logging.
|
36
44
|
*/
|
37
45
|
deleteModelInvocationLoggingConfiguration(callback?: (err: AWSError, data: Bedrock.Types.DeleteModelInvocationLoggingConfigurationResponse) => void): Request<Bedrock.Types.DeleteModelInvocationLoggingConfigurationResponse, AWSError>;
|
46
|
+
/**
|
47
|
+
* Deletes a provisioned throughput. For more information, see Provisioned throughput in the Bedrock User Guide.
|
48
|
+
*/
|
49
|
+
deleteProvisionedModelThroughput(params: Bedrock.Types.DeleteProvisionedModelThroughputRequest, callback?: (err: AWSError, data: Bedrock.Types.DeleteProvisionedModelThroughputResponse) => void): Request<Bedrock.Types.DeleteProvisionedModelThroughputResponse, AWSError>;
|
50
|
+
/**
|
51
|
+
* Deletes a provisioned throughput. For more information, see Provisioned throughput in the Bedrock User Guide.
|
52
|
+
*/
|
53
|
+
deleteProvisionedModelThroughput(callback?: (err: AWSError, data: Bedrock.Types.DeleteProvisionedModelThroughputResponse) => void): Request<Bedrock.Types.DeleteProvisionedModelThroughputResponse, AWSError>;
|
38
54
|
/**
|
39
55
|
* Get the properties associated with a Bedrock custom model that you have created.For more information, see Custom models in the Bedrock User Guide.
|
40
56
|
*/
|
@@ -67,6 +83,14 @@ declare class Bedrock extends Service {
|
|
67
83
|
* Get the current configuration values for model invocation logging.
|
68
84
|
*/
|
69
85
|
getModelInvocationLoggingConfiguration(callback?: (err: AWSError, data: Bedrock.Types.GetModelInvocationLoggingConfigurationResponse) => void): Request<Bedrock.Types.GetModelInvocationLoggingConfigurationResponse, AWSError>;
|
86
|
+
/**
|
87
|
+
* Get details for a provisioned throughput. For more information, see Provisioned throughput in the Bedrock User Guide.
|
88
|
+
*/
|
89
|
+
getProvisionedModelThroughput(params: Bedrock.Types.GetProvisionedModelThroughputRequest, callback?: (err: AWSError, data: Bedrock.Types.GetProvisionedModelThroughputResponse) => void): Request<Bedrock.Types.GetProvisionedModelThroughputResponse, AWSError>;
|
90
|
+
/**
|
91
|
+
* Get details for a provisioned throughput. For more information, see Provisioned throughput in the Bedrock User Guide.
|
92
|
+
*/
|
93
|
+
getProvisionedModelThroughput(callback?: (err: AWSError, data: Bedrock.Types.GetProvisionedModelThroughputResponse) => void): Request<Bedrock.Types.GetProvisionedModelThroughputResponse, AWSError>;
|
70
94
|
/**
|
71
95
|
* Returns a list of the custom models that you have created with the CreateModelCustomizationJob operation. For more information, see Custom models in the Bedrock User Guide.
|
72
96
|
*/
|
@@ -91,6 +115,14 @@ declare class Bedrock extends Service {
|
|
91
115
|
* Returns a list of model customization jobs that you have submitted. You can filter the jobs to return based on one or more criteria. For more information, see Custom models in the Bedrock User Guide.
|
92
116
|
*/
|
93
117
|
listModelCustomizationJobs(callback?: (err: AWSError, data: Bedrock.Types.ListModelCustomizationJobsResponse) => void): Request<Bedrock.Types.ListModelCustomizationJobsResponse, AWSError>;
|
118
|
+
/**
|
119
|
+
* List the provisioned capacities. For more information, see Provisioned throughput in the Bedrock User Guide.
|
120
|
+
*/
|
121
|
+
listProvisionedModelThroughputs(params: Bedrock.Types.ListProvisionedModelThroughputsRequest, callback?: (err: AWSError, data: Bedrock.Types.ListProvisionedModelThroughputsResponse) => void): Request<Bedrock.Types.ListProvisionedModelThroughputsResponse, AWSError>;
|
122
|
+
/**
|
123
|
+
* List the provisioned capacities. For more information, see Provisioned throughput in the Bedrock User Guide.
|
124
|
+
*/
|
125
|
+
listProvisionedModelThroughputs(callback?: (err: AWSError, data: Bedrock.Types.ListProvisionedModelThroughputsResponse) => void): Request<Bedrock.Types.ListProvisionedModelThroughputsResponse, AWSError>;
|
94
126
|
/**
|
95
127
|
* List the tags associated with the specified resource. For more information, see Tagging resources in the Bedrock User Guide.
|
96
128
|
*/
|
@@ -131,6 +163,14 @@ declare class Bedrock extends Service {
|
|
131
163
|
* Remove one or more tags from a resource. For more information, see Tagging resources in the Bedrock User Guide.
|
132
164
|
*/
|
133
165
|
untagResource(callback?: (err: AWSError, data: Bedrock.Types.UntagResourceResponse) => void): Request<Bedrock.Types.UntagResourceResponse, AWSError>;
|
166
|
+
/**
|
167
|
+
* Update a provisioned throughput. For more information, see Provisioned throughput in the Bedrock User Guide.
|
168
|
+
*/
|
169
|
+
updateProvisionedModelThroughput(params: Bedrock.Types.UpdateProvisionedModelThroughputRequest, callback?: (err: AWSError, data: Bedrock.Types.UpdateProvisionedModelThroughputResponse) => void): Request<Bedrock.Types.UpdateProvisionedModelThroughputResponse, AWSError>;
|
170
|
+
/**
|
171
|
+
* Update a provisioned throughput. For more information, see Provisioned throughput in the Bedrock User Guide.
|
172
|
+
*/
|
173
|
+
updateProvisionedModelThroughput(callback?: (err: AWSError, data: Bedrock.Types.UpdateProvisionedModelThroughputResponse) => void): Request<Bedrock.Types.UpdateProvisionedModelThroughputResponse, AWSError>;
|
134
174
|
}
|
135
175
|
declare namespace Bedrock {
|
136
176
|
export type BaseModelIdentifier = string;
|
@@ -139,10 +179,6 @@ declare namespace Bedrock {
|
|
139
179
|
export type BrandedName = string;
|
140
180
|
export type BucketName = string;
|
141
181
|
export interface CloudWatchConfig {
|
142
|
-
/**
|
143
|
-
* S3 configuration for delivering a large amount of data.
|
144
|
-
*/
|
145
|
-
largeDataDeliveryS3Config?: S3Config;
|
146
182
|
/**
|
147
183
|
* The log group name.
|
148
184
|
*/
|
@@ -151,90 +187,127 @@ declare namespace Bedrock {
|
|
151
187
|
* The role ARN.
|
152
188
|
*/
|
153
189
|
roleArn: RoleArn;
|
190
|
+
/**
|
191
|
+
* S3 configuration for delivering a large amount of data.
|
192
|
+
*/
|
193
|
+
largeDataDeliveryS3Config?: S3Config;
|
154
194
|
}
|
195
|
+
export type CommitmentDuration = "OneMonth"|"SixMonths"|string;
|
155
196
|
export interface CreateModelCustomizationJobRequest {
|
156
197
|
/**
|
157
|
-
*
|
198
|
+
* Enter a unique name for the fine-tuning job.
|
158
199
|
*/
|
159
|
-
|
200
|
+
jobName: JobName;
|
201
|
+
/**
|
202
|
+
* Enter a name for the custom model.
|
203
|
+
*/
|
204
|
+
customModelName: CustomModelName;
|
205
|
+
/**
|
206
|
+
* The Amazon Resource Name (ARN) of an IAM role that Bedrock can assume to perform tasks on your behalf. For example, during model training, Bedrock needs your permission to read input data from an S3 bucket, write model artifacts to an S3 bucket. To pass this role to Bedrock, the caller of this API must have the iam:PassRole permission.
|
207
|
+
*/
|
208
|
+
roleArn: RoleArn;
|
160
209
|
/**
|
161
210
|
* Unique token value that you can provide. The GetModelCustomizationJob response includes the same token value.
|
162
211
|
*/
|
163
212
|
clientRequestToken?: IdempotencyToken;
|
213
|
+
/**
|
214
|
+
* Name of the base model.
|
215
|
+
*/
|
216
|
+
baseModelIdentifier: BaseModelIdentifier;
|
164
217
|
/**
|
165
218
|
* The custom model is encrypted at rest using this key.
|
166
219
|
*/
|
167
220
|
customModelKmsKeyId?: KmsKeyId;
|
168
221
|
/**
|
169
|
-
*
|
222
|
+
* Assign tags to the job.
|
170
223
|
*/
|
171
|
-
|
224
|
+
jobTags?: TagList;
|
172
225
|
/**
|
173
226
|
* Assign tags to the custom model.
|
174
227
|
*/
|
175
228
|
customModelTags?: TagList;
|
229
|
+
/**
|
230
|
+
* Information about the training dataset.
|
231
|
+
*/
|
232
|
+
trainingDataConfig: TrainingDataConfig;
|
233
|
+
/**
|
234
|
+
* Information about the validation dataset.
|
235
|
+
*/
|
236
|
+
validationDataConfig?: ValidationDataConfig;
|
237
|
+
/**
|
238
|
+
* S3 location for the output data.
|
239
|
+
*/
|
240
|
+
outputDataConfig: OutputDataConfig;
|
176
241
|
/**
|
177
242
|
* Parameters related to tuning the model.
|
178
243
|
*/
|
179
244
|
hyperParameters: ModelCustomizationHyperParameters;
|
180
245
|
/**
|
181
|
-
*
|
246
|
+
* VPC configuration (optional). Configuration parameters for the private Virtual Private Cloud (VPC) that contains the resources you are using for this job.
|
182
247
|
*/
|
183
|
-
|
248
|
+
vpcConfig?: VpcConfig;
|
249
|
+
}
|
250
|
+
export interface CreateModelCustomizationJobResponse {
|
184
251
|
/**
|
185
|
-
*
|
252
|
+
* ARN of the fine tuning job
|
186
253
|
*/
|
187
|
-
|
254
|
+
jobArn: ModelCustomizationJobArn;
|
255
|
+
}
|
256
|
+
export interface CreateProvisionedModelThroughputRequest {
|
188
257
|
/**
|
189
|
-
*
|
258
|
+
* Unique token value that you can provide. If this token matches a previous request, Bedrock ignores the request, but does not return an error.
|
190
259
|
*/
|
191
|
-
|
260
|
+
clientRequestToken?: IdempotencyToken;
|
192
261
|
/**
|
193
|
-
*
|
262
|
+
* Number of model units to allocate.
|
194
263
|
*/
|
195
|
-
|
264
|
+
modelUnits: PositiveInteger;
|
196
265
|
/**
|
197
|
-
*
|
266
|
+
* Unique name for this provisioned throughput.
|
198
267
|
*/
|
199
|
-
|
268
|
+
provisionedModelName: ProvisionedModelName;
|
200
269
|
/**
|
201
|
-
*
|
270
|
+
* Name or ARN of the model to associate with this provisioned throughput.
|
202
271
|
*/
|
203
|
-
|
272
|
+
modelId: ModelIdentifier;
|
204
273
|
/**
|
205
|
-
*
|
274
|
+
* Commitment duration requested for the provisioned throughput.
|
206
275
|
*/
|
207
|
-
|
276
|
+
commitmentDuration?: CommitmentDuration;
|
277
|
+
/**
|
278
|
+
* Tags to associate with this provisioned throughput.
|
279
|
+
*/
|
280
|
+
tags?: TagList;
|
208
281
|
}
|
209
|
-
export interface
|
282
|
+
export interface CreateProvisionedModelThroughputResponse {
|
210
283
|
/**
|
211
|
-
* ARN
|
284
|
+
* The ARN for this provisioned throughput.
|
212
285
|
*/
|
213
|
-
|
286
|
+
provisionedModelArn: ProvisionedModelArn;
|
214
287
|
}
|
215
288
|
export type CustomModelArn = string;
|
216
289
|
export type CustomModelName = string;
|
217
290
|
export interface CustomModelSummary {
|
218
291
|
/**
|
219
|
-
* The
|
292
|
+
* The ARN of the custom model.
|
220
293
|
*/
|
221
|
-
|
294
|
+
modelArn: CustomModelArn;
|
222
295
|
/**
|
223
|
-
* The
|
296
|
+
* The name of the custom model.
|
224
297
|
*/
|
225
|
-
|
298
|
+
modelName: CustomModelName;
|
226
299
|
/**
|
227
300
|
* Creation time of the model.
|
228
301
|
*/
|
229
302
|
creationTime: Timestamp;
|
230
303
|
/**
|
231
|
-
* The
|
304
|
+
* The base model ARN.
|
232
305
|
*/
|
233
|
-
|
306
|
+
baseModelArn: ModelArn;
|
234
307
|
/**
|
235
|
-
* The
|
308
|
+
* The base model name.
|
236
309
|
*/
|
237
|
-
|
310
|
+
baseModelName: ModelName;
|
238
311
|
}
|
239
312
|
export type CustomModelSummaryList = CustomModelSummary[];
|
240
313
|
export interface DeleteCustomModelRequest {
|
@@ -249,22 +322,18 @@ declare namespace Bedrock {
|
|
249
322
|
}
|
250
323
|
export interface DeleteModelInvocationLoggingConfigurationResponse {
|
251
324
|
}
|
325
|
+
export interface DeleteProvisionedModelThroughputRequest {
|
326
|
+
/**
|
327
|
+
* The ARN or name of the provisioned throughput.
|
328
|
+
*/
|
329
|
+
provisionedModelId: ProvisionedModelId;
|
330
|
+
}
|
331
|
+
export interface DeleteProvisionedModelThroughputResponse {
|
332
|
+
}
|
252
333
|
export type ErrorMessage = string;
|
253
334
|
export type FineTuningJobStatus = "InProgress"|"Completed"|"Failed"|"Stopping"|"Stopped"|string;
|
254
335
|
export type FoundationModelArn = string;
|
255
336
|
export interface FoundationModelDetails {
|
256
|
-
/**
|
257
|
-
* The customization that the model supports.
|
258
|
-
*/
|
259
|
-
customizationsSupported?: ModelCustomizationList;
|
260
|
-
/**
|
261
|
-
* The inference types that the model supports.
|
262
|
-
*/
|
263
|
-
inferenceTypesSupported?: InferenceTypeList;
|
264
|
-
/**
|
265
|
-
* The input modalities that the model supports.
|
266
|
-
*/
|
267
|
-
inputModalities?: ModelModalityList;
|
268
337
|
/**
|
269
338
|
* The model ARN.
|
270
339
|
*/
|
@@ -277,32 +346,32 @@ declare namespace Bedrock {
|
|
277
346
|
* The model name.
|
278
347
|
*/
|
279
348
|
modelName?: BrandedName;
|
280
|
-
/**
|
281
|
-
* The output modalities that the model supports.
|
282
|
-
*/
|
283
|
-
outputModalities?: ModelModalityList;
|
284
349
|
/**
|
285
350
|
* he model's provider name.
|
286
351
|
*/
|
287
352
|
providerName?: BrandedName;
|
353
|
+
/**
|
354
|
+
* The input modalities that the model supports.
|
355
|
+
*/
|
356
|
+
inputModalities?: ModelModalityList;
|
357
|
+
/**
|
358
|
+
* The output modalities that the model supports.
|
359
|
+
*/
|
360
|
+
outputModalities?: ModelModalityList;
|
288
361
|
/**
|
289
362
|
* Indicates whether the model supports streaming.
|
290
363
|
*/
|
291
364
|
responseStreamingSupported?: Boolean;
|
292
|
-
}
|
293
|
-
export interface FoundationModelSummary {
|
294
365
|
/**
|
295
|
-
*
|
366
|
+
* The customization that the model supports.
|
296
367
|
*/
|
297
368
|
customizationsSupported?: ModelCustomizationList;
|
298
369
|
/**
|
299
370
|
* The inference types that the model supports.
|
300
371
|
*/
|
301
372
|
inferenceTypesSupported?: InferenceTypeList;
|
302
|
-
|
303
|
-
|
304
|
-
*/
|
305
|
-
inputModalities?: ModelModalityList;
|
373
|
+
}
|
374
|
+
export interface FoundationModelSummary {
|
306
375
|
/**
|
307
376
|
* The ARN of the foundation model.
|
308
377
|
*/
|
@@ -315,18 +384,30 @@ declare namespace Bedrock {
|
|
315
384
|
* The name of the model.
|
316
385
|
*/
|
317
386
|
modelName?: BrandedName;
|
318
|
-
/**
|
319
|
-
* The output modalities that the model supports.
|
320
|
-
*/
|
321
|
-
outputModalities?: ModelModalityList;
|
322
387
|
/**
|
323
388
|
* The model's provider name.
|
324
389
|
*/
|
325
390
|
providerName?: BrandedName;
|
391
|
+
/**
|
392
|
+
* The input modalities that the model supports.
|
393
|
+
*/
|
394
|
+
inputModalities?: ModelModalityList;
|
395
|
+
/**
|
396
|
+
* The output modalities that the model supports.
|
397
|
+
*/
|
398
|
+
outputModalities?: ModelModalityList;
|
326
399
|
/**
|
327
400
|
* Indicates whether the model supports streaming.
|
328
401
|
*/
|
329
402
|
responseStreamingSupported?: Boolean;
|
403
|
+
/**
|
404
|
+
* Whether the model supports fine-tuning or continual pre-training.
|
405
|
+
*/
|
406
|
+
customizationsSupported?: ModelCustomizationList;
|
407
|
+
/**
|
408
|
+
* The inference types that the model supports.
|
409
|
+
*/
|
410
|
+
inferenceTypesSupported?: InferenceTypeList;
|
330
411
|
}
|
331
412
|
export type FoundationModelSummaryList = FoundationModelSummary[];
|
332
413
|
export interface GetCustomModelRequest {
|
@@ -337,54 +418,54 @@ declare namespace Bedrock {
|
|
337
418
|
}
|
338
419
|
export interface GetCustomModelResponse {
|
339
420
|
/**
|
340
|
-
* ARN
|
421
|
+
* ARN associated with this model.
|
341
422
|
*/
|
342
|
-
|
423
|
+
modelArn: ModelArn;
|
343
424
|
/**
|
344
|
-
*
|
425
|
+
* Model name associated with this model.
|
345
426
|
*/
|
346
|
-
|
427
|
+
modelName: CustomModelName;
|
347
428
|
/**
|
348
|
-
*
|
429
|
+
* Job name associated with this model.
|
349
430
|
*/
|
350
|
-
|
431
|
+
jobName?: JobName;
|
351
432
|
/**
|
352
433
|
* Job ARN associated with this model.
|
353
434
|
*/
|
354
435
|
jobArn: ModelCustomizationJobArn;
|
355
436
|
/**
|
356
|
-
*
|
357
|
-
*/
|
358
|
-
jobName?: JobName;
|
359
|
-
/**
|
360
|
-
* ARN associated with this model.
|
437
|
+
* ARN of the base model.
|
361
438
|
*/
|
362
|
-
|
439
|
+
baseModelArn: ModelArn;
|
363
440
|
/**
|
364
441
|
* The custom model is encrypted at rest using this key.
|
365
442
|
*/
|
366
443
|
modelKmsKeyArn?: KmsKeyArn;
|
367
444
|
/**
|
368
|
-
*
|
369
|
-
*/
|
370
|
-
modelName: CustomModelName;
|
371
|
-
/**
|
372
|
-
* Output data configuration associated with this custom model.
|
445
|
+
* Hyperparameter values associated with this model.
|
373
446
|
*/
|
374
|
-
|
447
|
+
hyperParameters?: ModelCustomizationHyperParameters;
|
375
448
|
/**
|
376
449
|
* Information about the training dataset.
|
377
450
|
*/
|
378
451
|
trainingDataConfig: TrainingDataConfig;
|
452
|
+
validationDataConfig?: ValidationDataConfig;
|
453
|
+
/**
|
454
|
+
* Output data configuration associated with this custom model.
|
455
|
+
*/
|
456
|
+
outputDataConfig: OutputDataConfig;
|
379
457
|
/**
|
380
458
|
* The training metrics from the job creation.
|
381
459
|
*/
|
382
460
|
trainingMetrics?: TrainingMetrics;
|
383
|
-
validationDataConfig?: ValidationDataConfig;
|
384
461
|
/**
|
385
462
|
* The validation metrics from the job creation.
|
386
463
|
*/
|
387
464
|
validationMetrics?: ValidationMetrics;
|
465
|
+
/**
|
466
|
+
* Creation time of the model.
|
467
|
+
*/
|
468
|
+
creationTime: Timestamp;
|
388
469
|
}
|
389
470
|
export interface GetFoundationModelRequest {
|
390
471
|
/**
|
@@ -406,68 +487,68 @@ declare namespace Bedrock {
|
|
406
487
|
}
|
407
488
|
export interface GetModelCustomizationJobResponse {
|
408
489
|
/**
|
409
|
-
* ARN of the
|
490
|
+
* The ARN of the customization job.
|
410
491
|
*/
|
411
|
-
|
492
|
+
jobArn: ModelCustomizationJobArn;
|
412
493
|
/**
|
413
|
-
* The
|
494
|
+
* The name of the customization job.
|
414
495
|
*/
|
415
|
-
|
496
|
+
jobName: JobName;
|
416
497
|
/**
|
417
|
-
*
|
498
|
+
* The name of the output model.
|
418
499
|
*/
|
419
|
-
|
500
|
+
outputModelName: CustomModelName;
|
420
501
|
/**
|
421
|
-
*
|
502
|
+
* The ARN of the output model.
|
422
503
|
*/
|
423
|
-
|
504
|
+
outputModelArn?: CustomModelArn;
|
424
505
|
/**
|
425
|
-
*
|
506
|
+
* The token that you specified in the CreateCustomizationJob request.
|
426
507
|
*/
|
427
|
-
|
508
|
+
clientRequestToken?: IdempotencyToken;
|
428
509
|
/**
|
429
|
-
* The
|
510
|
+
* The ARN of the IAM role.
|
430
511
|
*/
|
431
|
-
|
512
|
+
roleArn: RoleArn;
|
432
513
|
/**
|
433
|
-
* The
|
514
|
+
* The status of the job. A successful job transitions from in-progress to completed when the output model is ready to use. If the job failed, the failure message contains information about why the job failed.
|
434
515
|
*/
|
435
|
-
|
516
|
+
status?: ModelCustomizationJobStatus;
|
436
517
|
/**
|
437
|
-
*
|
518
|
+
* Information about why the job failed.
|
438
519
|
*/
|
439
|
-
|
520
|
+
failureMessage?: ErrorMessage;
|
440
521
|
/**
|
441
|
-
* Time that the resource was
|
522
|
+
* Time that the resource was created.
|
442
523
|
*/
|
443
|
-
|
524
|
+
creationTime: Timestamp;
|
444
525
|
/**
|
445
|
-
*
|
526
|
+
* Time that the resource was last modified.
|
446
527
|
*/
|
447
|
-
|
528
|
+
lastModifiedTime?: Timestamp;
|
448
529
|
/**
|
449
|
-
*
|
530
|
+
* Time that the resource transitioned to terminal state.
|
450
531
|
*/
|
451
|
-
|
532
|
+
endTime?: Timestamp;
|
452
533
|
/**
|
453
|
-
*
|
534
|
+
* ARN of the base model.
|
454
535
|
*/
|
455
|
-
|
536
|
+
baseModelArn: FoundationModelArn;
|
456
537
|
/**
|
457
|
-
* The
|
538
|
+
* The hyperparameter values for the job.
|
458
539
|
*/
|
459
|
-
|
540
|
+
hyperParameters: ModelCustomizationHyperParameters;
|
541
|
+
trainingDataConfig: TrainingDataConfig;
|
542
|
+
validationDataConfig: ValidationDataConfig;
|
460
543
|
/**
|
461
|
-
*
|
544
|
+
* Output data configuration
|
462
545
|
*/
|
463
|
-
|
546
|
+
outputDataConfig: OutputDataConfig;
|
464
547
|
/**
|
465
|
-
* The
|
548
|
+
* The custom model is encrypted at rest using this key.
|
466
549
|
*/
|
467
|
-
|
468
|
-
trainingDataConfig: TrainingDataConfig;
|
550
|
+
outputModelKmsKeyArn?: KmsKeyArn;
|
469
551
|
trainingMetrics?: TrainingMetrics;
|
470
|
-
validationDataConfig: ValidationDataConfig;
|
471
552
|
/**
|
472
553
|
* The loss metric for each validator that you provided in the createjob request.
|
473
554
|
*/
|
@@ -485,6 +566,66 @@ declare namespace Bedrock {
|
|
485
566
|
*/
|
486
567
|
loggingConfig?: LoggingConfig;
|
487
568
|
}
|
569
|
+
export interface GetProvisionedModelThroughputRequest {
|
570
|
+
/**
|
571
|
+
* The ARN or name of the provisioned throughput.
|
572
|
+
*/
|
573
|
+
provisionedModelId: ProvisionedModelId;
|
574
|
+
}
|
575
|
+
export interface GetProvisionedModelThroughputResponse {
|
576
|
+
/**
|
577
|
+
* The current number of model units requested to be available for this provisioned throughput.
|
578
|
+
*/
|
579
|
+
modelUnits: PositiveInteger;
|
580
|
+
/**
|
581
|
+
* The desired number of model units that was requested to be available for this provisioned throughput.
|
582
|
+
*/
|
583
|
+
desiredModelUnits: PositiveInteger;
|
584
|
+
/**
|
585
|
+
* The name of the provisioned throughput.
|
586
|
+
*/
|
587
|
+
provisionedModelName: ProvisionedModelName;
|
588
|
+
/**
|
589
|
+
* The ARN of the provisioned throughput.
|
590
|
+
*/
|
591
|
+
provisionedModelArn: ProvisionedModelArn;
|
592
|
+
/**
|
593
|
+
* The ARN or name of the model associated with this provisioned throughput.
|
594
|
+
*/
|
595
|
+
modelArn: ModelArn;
|
596
|
+
/**
|
597
|
+
* The ARN of the new model to asssociate with this provisioned throughput.
|
598
|
+
*/
|
599
|
+
desiredModelArn: ModelArn;
|
600
|
+
/**
|
601
|
+
* ARN of the foundation model.
|
602
|
+
*/
|
603
|
+
foundationModelArn: FoundationModelArn;
|
604
|
+
/**
|
605
|
+
* Status of the provisioned throughput.
|
606
|
+
*/
|
607
|
+
status: ProvisionedModelStatus;
|
608
|
+
/**
|
609
|
+
* The timestamp of the creation time for this provisioned throughput.
|
610
|
+
*/
|
611
|
+
creationTime: Timestamp;
|
612
|
+
/**
|
613
|
+
* The timestamp of the last modified time of this provisioned throughput.
|
614
|
+
*/
|
615
|
+
lastModifiedTime: Timestamp;
|
616
|
+
/**
|
617
|
+
* Failure message for any issues that the create operation encounters.
|
618
|
+
*/
|
619
|
+
failureMessage?: ErrorMessage;
|
620
|
+
/**
|
621
|
+
* Commitment duration of the provisioned throughput.
|
622
|
+
*/
|
623
|
+
commitmentDuration?: CommitmentDuration;
|
624
|
+
/**
|
625
|
+
* Commitment expiration time for the provisioned throughput.
|
626
|
+
*/
|
627
|
+
commitmentExpirationTime?: Timestamp;
|
628
|
+
}
|
488
629
|
export type IdempotencyToken = string;
|
489
630
|
export type InferenceType = "ON_DEMAND"|"PROVISIONED"|string;
|
490
631
|
export type InferenceTypeList = InferenceType[];
|
@@ -494,17 +635,21 @@ declare namespace Bedrock {
|
|
494
635
|
export type KmsKeyId = string;
|
495
636
|
export interface ListCustomModelsRequest {
|
496
637
|
/**
|
497
|
-
* Return custom models
|
638
|
+
* Return custom models created before the specified time.
|
498
639
|
*/
|
499
|
-
|
640
|
+
creationTimeBefore?: Timestamp;
|
500
641
|
/**
|
501
642
|
* Return custom models created after the specified time.
|
502
643
|
*/
|
503
644
|
creationTimeAfter?: Timestamp;
|
504
645
|
/**
|
505
|
-
* Return custom models
|
646
|
+
* Return custom models only if the job name contains these characters.
|
506
647
|
*/
|
507
|
-
|
648
|
+
nameContains?: CustomModelName;
|
649
|
+
/**
|
650
|
+
* Return custom models only if the base model ARN matches this parameter.
|
651
|
+
*/
|
652
|
+
baseModelArnEquals?: ModelArn;
|
508
653
|
/**
|
509
654
|
* Return custom models only if the foundation model ARN matches this parameter.
|
510
655
|
*/
|
@@ -513,10 +658,6 @@ declare namespace Bedrock {
|
|
513
658
|
* Maximum number of results to return in the response.
|
514
659
|
*/
|
515
660
|
maxResults?: MaxResults;
|
516
|
-
/**
|
517
|
-
* Return custom models only if the job name contains these characters.
|
518
|
-
*/
|
519
|
-
nameContains?: CustomModelName;
|
520
661
|
/**
|
521
662
|
* Continuation token from the previous response, for Bedrock to list the next set of results.
|
522
663
|
*/
|
@@ -531,32 +672,32 @@ declare namespace Bedrock {
|
|
531
672
|
sortOrder?: SortOrder;
|
532
673
|
}
|
533
674
|
export interface ListCustomModelsResponse {
|
534
|
-
/**
|
535
|
-
* Model summaries.
|
536
|
-
*/
|
537
|
-
modelSummaries?: CustomModelSummaryList;
|
538
675
|
/**
|
539
676
|
* Continuation token for the next request to list the next set of results.
|
540
677
|
*/
|
541
678
|
nextToken?: PaginationToken;
|
679
|
+
/**
|
680
|
+
* Model summaries.
|
681
|
+
*/
|
682
|
+
modelSummaries?: CustomModelSummaryList;
|
542
683
|
}
|
543
684
|
export interface ListFoundationModelsRequest {
|
544
685
|
/**
|
545
|
-
*
|
686
|
+
* A Bedrock model provider.
|
546
687
|
*/
|
547
|
-
|
688
|
+
byProvider?: Provider;
|
548
689
|
/**
|
549
|
-
* List by
|
690
|
+
* List by customization type.
|
550
691
|
*/
|
551
|
-
|
692
|
+
byCustomizationType?: ModelCustomization;
|
552
693
|
/**
|
553
694
|
* List by output modality type.
|
554
695
|
*/
|
555
696
|
byOutputModality?: ModelModality;
|
556
697
|
/**
|
557
|
-
*
|
698
|
+
* List by inference type.
|
558
699
|
*/
|
559
|
-
|
700
|
+
byInferenceType?: InferenceType;
|
560
701
|
}
|
561
702
|
export interface ListFoundationModelsResponse {
|
562
703
|
/**
|
@@ -574,13 +715,17 @@ declare namespace Bedrock {
|
|
574
715
|
*/
|
575
716
|
creationTimeBefore?: Timestamp;
|
576
717
|
/**
|
577
|
-
*
|
718
|
+
* Return customization jobs with the specified status.
|
578
719
|
*/
|
579
|
-
|
720
|
+
statusEquals?: FineTuningJobStatus;
|
580
721
|
/**
|
581
722
|
* Return customization jobs only if the job name contains these characters.
|
582
723
|
*/
|
583
724
|
nameContains?: JobName;
|
725
|
+
/**
|
726
|
+
* Maximum number of results to return in the response.
|
727
|
+
*/
|
728
|
+
maxResults?: MaxResults;
|
584
729
|
/**
|
585
730
|
* Continuation token from the previous response, for Bedrock to list the next set of results.
|
586
731
|
*/
|
@@ -593,20 +738,64 @@ declare namespace Bedrock {
|
|
593
738
|
* The sort order of the results.
|
594
739
|
*/
|
595
740
|
sortOrder?: SortOrder;
|
596
|
-
/**
|
597
|
-
* Return customization jobs with the specified status.
|
598
|
-
*/
|
599
|
-
statusEquals?: FineTuningJobStatus;
|
600
741
|
}
|
601
742
|
export interface ListModelCustomizationJobsResponse {
|
743
|
+
/**
|
744
|
+
* Page continuation token to use in the next request.
|
745
|
+
*/
|
746
|
+
nextToken?: PaginationToken;
|
602
747
|
/**
|
603
748
|
* Job summaries.
|
604
749
|
*/
|
605
750
|
modelCustomizationJobSummaries?: ModelCustomizationJobSummaries;
|
751
|
+
}
|
752
|
+
export interface ListProvisionedModelThroughputsRequest {
|
606
753
|
/**
|
607
|
-
*
|
754
|
+
* Return provisioned capacities created after the specified time.
|
755
|
+
*/
|
756
|
+
creationTimeAfter?: Timestamp;
|
757
|
+
/**
|
758
|
+
* Return provisioned capacities created before the specified time.
|
759
|
+
*/
|
760
|
+
creationTimeBefore?: Timestamp;
|
761
|
+
/**
|
762
|
+
* Return the list of provisioned capacities that match the specified status.
|
763
|
+
*/
|
764
|
+
statusEquals?: ProvisionedModelStatus;
|
765
|
+
/**
|
766
|
+
* Return the list of provisioned capacities where their model ARN is equal to this parameter.
|
767
|
+
*/
|
768
|
+
modelArnEquals?: ModelArn;
|
769
|
+
/**
|
770
|
+
* Return the list of provisioned capacities if their name contains these characters.
|
771
|
+
*/
|
772
|
+
nameContains?: ProvisionedModelName;
|
773
|
+
/**
|
774
|
+
* THe maximum number of results to return in the response.
|
775
|
+
*/
|
776
|
+
maxResults?: MaxResults;
|
777
|
+
/**
|
778
|
+
* Continuation token from the previous response, for Bedrock to list the next set of results.
|
779
|
+
*/
|
780
|
+
nextToken?: PaginationToken;
|
781
|
+
/**
|
782
|
+
* The field to sort by in the returned list of provisioned capacities.
|
783
|
+
*/
|
784
|
+
sortBy?: SortByProvisionedModels;
|
785
|
+
/**
|
786
|
+
* The sort order of the results.
|
787
|
+
*/
|
788
|
+
sortOrder?: SortOrder;
|
789
|
+
}
|
790
|
+
export interface ListProvisionedModelThroughputsResponse {
|
791
|
+
/**
|
792
|
+
* Continuation token for the next request to list the next set of results.
|
608
793
|
*/
|
609
794
|
nextToken?: PaginationToken;
|
795
|
+
/**
|
796
|
+
* List of summaries, one for each provisioned throughput in the response.
|
797
|
+
*/
|
798
|
+
provisionedModelSummaries?: ProvisionedModelSummaries;
|
610
799
|
}
|
611
800
|
export interface ListTagsForResourceRequest {
|
612
801
|
/**
|
@@ -626,14 +815,6 @@ declare namespace Bedrock {
|
|
626
815
|
* CloudWatch logging configuration.
|
627
816
|
*/
|
628
817
|
cloudWatchConfig?: CloudWatchConfig;
|
629
|
-
/**
|
630
|
-
* Set to include embeddings data in the log delivery.
|
631
|
-
*/
|
632
|
-
embeddingDataDeliveryEnabled?: Boolean;
|
633
|
-
/**
|
634
|
-
* Set to include image data in the log delivery.
|
635
|
-
*/
|
636
|
-
imageDataDeliveryEnabled?: Boolean;
|
637
818
|
/**
|
638
819
|
* S3 configuration for storing log data.
|
639
820
|
*/
|
@@ -642,6 +823,14 @@ declare namespace Bedrock {
|
|
642
823
|
* Set to include text data in the log delivery.
|
643
824
|
*/
|
644
825
|
textDataDeliveryEnabled?: Boolean;
|
826
|
+
/**
|
827
|
+
* Set to include image data in the log delivery.
|
828
|
+
*/
|
829
|
+
imageDataDeliveryEnabled?: Boolean;
|
830
|
+
/**
|
831
|
+
* Set to include embeddings data in the log delivery.
|
832
|
+
*/
|
833
|
+
embeddingDataDeliveryEnabled?: Boolean;
|
645
834
|
}
|
646
835
|
export type MaxResults = number;
|
647
836
|
export type MetricFloat = number;
|
@@ -654,41 +843,41 @@ declare namespace Bedrock {
|
|
654
843
|
export type ModelCustomizationJobSummaries = ModelCustomizationJobSummary[];
|
655
844
|
export interface ModelCustomizationJobSummary {
|
656
845
|
/**
|
657
|
-
* ARN of the
|
846
|
+
* ARN of the customization job.
|
658
847
|
*/
|
659
|
-
|
848
|
+
jobArn: ModelCustomizationJobArn;
|
660
849
|
/**
|
661
|
-
*
|
850
|
+
* ARN of the base model.
|
662
851
|
*/
|
663
|
-
|
852
|
+
baseModelArn: ModelArn;
|
664
853
|
/**
|
665
|
-
*
|
854
|
+
* Name of the customization job.
|
666
855
|
*/
|
667
|
-
|
856
|
+
jobName: JobName;
|
668
857
|
/**
|
669
|
-
*
|
858
|
+
* Status of the customization job.
|
670
859
|
*/
|
671
|
-
|
860
|
+
status: ModelCustomizationJobStatus;
|
672
861
|
/**
|
673
|
-
* Time that the customization job
|
862
|
+
* Time that the customization job was last modified.
|
674
863
|
*/
|
675
|
-
|
864
|
+
lastModifiedTime?: Timestamp;
|
676
865
|
/**
|
677
|
-
*
|
866
|
+
* Creation time of the custom model.
|
678
867
|
*/
|
679
|
-
|
868
|
+
creationTime: Timestamp;
|
680
869
|
/**
|
681
|
-
*
|
870
|
+
* Time that the customization job ended.
|
682
871
|
*/
|
683
|
-
|
872
|
+
endTime?: Timestamp;
|
684
873
|
/**
|
685
|
-
*
|
874
|
+
* ARN of the custom model.
|
686
875
|
*/
|
687
|
-
|
876
|
+
customModelArn?: CustomModelArn;
|
688
877
|
/**
|
689
|
-
*
|
878
|
+
* Name of the custom model.
|
690
879
|
*/
|
691
|
-
|
880
|
+
customModelName?: CustomModelName;
|
692
881
|
}
|
693
882
|
export type ModelCustomizationList = ModelCustomization[];
|
694
883
|
export type ModelIdentifier = string;
|
@@ -702,7 +891,63 @@ declare namespace Bedrock {
|
|
702
891
|
s3Uri: S3Uri;
|
703
892
|
}
|
704
893
|
export type PaginationToken = string;
|
894
|
+
export type PositiveInteger = number;
|
705
895
|
export type Provider = string;
|
896
|
+
export type ProvisionedModelArn = string;
|
897
|
+
export type ProvisionedModelId = string;
|
898
|
+
export type ProvisionedModelName = string;
|
899
|
+
export type ProvisionedModelStatus = "Creating"|"InService"|"Updating"|"Failed"|string;
|
900
|
+
export type ProvisionedModelSummaries = ProvisionedModelSummary[];
|
901
|
+
export interface ProvisionedModelSummary {
|
902
|
+
/**
|
903
|
+
* The name of the provisioned throughput.
|
904
|
+
*/
|
905
|
+
provisionedModelName: ProvisionedModelName;
|
906
|
+
/**
|
907
|
+
* The ARN of the provisioned throughput.
|
908
|
+
*/
|
909
|
+
provisionedModelArn: ProvisionedModelArn;
|
910
|
+
/**
|
911
|
+
* The ARN of the model associated with this provisioned throughput.
|
912
|
+
*/
|
913
|
+
modelArn: ModelArn;
|
914
|
+
/**
|
915
|
+
* Desired model ARN.
|
916
|
+
*/
|
917
|
+
desiredModelArn: ModelArn;
|
918
|
+
/**
|
919
|
+
* Foundation model ARN.
|
920
|
+
*/
|
921
|
+
foundationModelArn: FoundationModelArn;
|
922
|
+
/**
|
923
|
+
* The number of model units allocated.
|
924
|
+
*/
|
925
|
+
modelUnits: PositiveInteger;
|
926
|
+
/**
|
927
|
+
* Desired model units.
|
928
|
+
*/
|
929
|
+
desiredModelUnits: PositiveInteger;
|
930
|
+
/**
|
931
|
+
* Status of the provisioned throughput.
|
932
|
+
*/
|
933
|
+
status: ProvisionedModelStatus;
|
934
|
+
/**
|
935
|
+
* Commitment duration for the provisioned throughput.
|
936
|
+
*/
|
937
|
+
commitmentDuration?: CommitmentDuration;
|
938
|
+
/**
|
939
|
+
* Commitment expiration time for the provisioned throughput.
|
940
|
+
*/
|
941
|
+
commitmentExpirationTime?: Timestamp;
|
942
|
+
/**
|
943
|
+
* The time that this provisioned throughput was created.
|
944
|
+
*/
|
945
|
+
creationTime: Timestamp;
|
946
|
+
/**
|
947
|
+
* The time that this provisioned throughput was last modified.
|
948
|
+
*/
|
949
|
+
lastModifiedTime: Timestamp;
|
950
|
+
}
|
706
951
|
export interface PutModelInvocationLoggingConfigurationRequest {
|
707
952
|
/**
|
708
953
|
* The logging configuration values to set.
|
@@ -725,6 +970,7 @@ declare namespace Bedrock {
|
|
725
970
|
export type S3Uri = string;
|
726
971
|
export type SecurityGroupId = string;
|
727
972
|
export type SecurityGroupIds = SecurityGroupId[];
|
973
|
+
export type SortByProvisionedModels = "CreationTime"|string;
|
728
974
|
export type SortJobsBy = "CreationTime"|string;
|
729
975
|
export type SortModelsBy = "CreationTime"|string;
|
730
976
|
export type SortOrder = "Ascending"|"Descending"|string;
|
@@ -791,6 +1037,22 @@ declare namespace Bedrock {
|
|
791
1037
|
}
|
792
1038
|
export interface UntagResourceResponse {
|
793
1039
|
}
|
1040
|
+
export interface UpdateProvisionedModelThroughputRequest {
|
1041
|
+
/**
|
1042
|
+
* The ARN or name of the provisioned throughput to update.
|
1043
|
+
*/
|
1044
|
+
provisionedModelId: ProvisionedModelId;
|
1045
|
+
/**
|
1046
|
+
* The new name for this provisioned throughput.
|
1047
|
+
*/
|
1048
|
+
desiredProvisionedModelName?: ProvisionedModelName;
|
1049
|
+
/**
|
1050
|
+
* The ARN of the new model to associate with this provisioned throughput.
|
1051
|
+
*/
|
1052
|
+
desiredModelId?: ModelIdentifier;
|
1053
|
+
}
|
1054
|
+
export interface UpdateProvisionedModelThroughputResponse {
|
1055
|
+
}
|
794
1056
|
export interface ValidationDataConfig {
|
795
1057
|
/**
|
796
1058
|
* Information about the validators.
|
@@ -812,14 +1074,14 @@ declare namespace Bedrock {
|
|
812
1074
|
}
|
813
1075
|
export type Validators = Validator[];
|
814
1076
|
export interface VpcConfig {
|
815
|
-
/**
|
816
|
-
* VPC configuration security group Ids.
|
817
|
-
*/
|
818
|
-
securityGroupIds: SecurityGroupIds;
|
819
1077
|
/**
|
820
1078
|
* VPC configuration subnets.
|
821
1079
|
*/
|
822
1080
|
subnetIds: SubnetIds;
|
1081
|
+
/**
|
1082
|
+
* VPC configuration security group Ids.
|
1083
|
+
*/
|
1084
|
+
securityGroupIds: SecurityGroupIds;
|
823
1085
|
}
|
824
1086
|
/**
|
825
1087
|
* A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
|