@aws-sdk/client-bedrock 3.422.1 → 3.423.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. package/README.md +40 -0
  2. package/dist-cjs/Bedrock.js +10 -0
  3. package/dist-cjs/commands/CreateProvisionedModelThroughputCommand.js +51 -0
  4. package/dist-cjs/commands/DeleteProvisionedModelThroughputCommand.js +51 -0
  5. package/dist-cjs/commands/GetProvisionedModelThroughputCommand.js +51 -0
  6. package/dist-cjs/commands/ListProvisionedModelThroughputsCommand.js +51 -0
  7. package/dist-cjs/commands/UpdateProvisionedModelThroughputCommand.js +51 -0
  8. package/dist-cjs/commands/index.js +5 -0
  9. package/dist-cjs/models/models_0.js +25 -12
  10. package/dist-cjs/pagination/ListProvisionedModelThroughputsPaginator.js +29 -0
  11. package/dist-cjs/pagination/index.js +1 -0
  12. package/dist-cjs/protocols/Aws_restJson1.js +386 -1
  13. package/dist-es/Bedrock.js +10 -0
  14. package/dist-es/commands/CreateProvisionedModelThroughputCommand.js +47 -0
  15. package/dist-es/commands/DeleteProvisionedModelThroughputCommand.js +47 -0
  16. package/dist-es/commands/GetProvisionedModelThroughputCommand.js +47 -0
  17. package/dist-es/commands/ListProvisionedModelThroughputsCommand.js +47 -0
  18. package/dist-es/commands/UpdateProvisionedModelThroughputCommand.js +47 -0
  19. package/dist-es/commands/index.js +5 -0
  20. package/dist-es/models/models_0.js +22 -9
  21. package/dist-es/pagination/ListProvisionedModelThroughputsPaginator.js +25 -0
  22. package/dist-es/pagination/index.js +1 -0
  23. package/dist-es/protocols/Aws_restJson1.js +376 -1
  24. package/dist-types/Bedrock.d.ts +35 -0
  25. package/dist-types/BedrockClient.d.ts +7 -2
  26. package/dist-types/commands/CreateModelCustomizationJobCommand.d.ts +8 -8
  27. package/dist-types/commands/CreateProvisionedModelThroughputCommand.d.ts +106 -0
  28. package/dist-types/commands/DeleteProvisionedModelThroughputCommand.d.ts +89 -0
  29. package/dist-types/commands/GetModelCustomizationJobCommand.d.ts +1 -1
  30. package/dist-types/commands/GetProvisionedModelThroughputCommand.d.ts +100 -0
  31. package/dist-types/commands/ListModelCustomizationJobsCommand.d.ts +1 -1
  32. package/dist-types/commands/ListProvisionedModelThroughputsCommand.d.ts +109 -0
  33. package/dist-types/commands/TagResourceCommand.d.ts +1 -1
  34. package/dist-types/commands/UpdateProvisionedModelThroughputCommand.d.ts +88 -0
  35. package/dist-types/commands/index.d.ts +5 -0
  36. package/dist-types/models/models_0.d.ts +370 -36
  37. package/dist-types/pagination/ListProvisionedModelThroughputsPaginator.d.ts +7 -0
  38. package/dist-types/pagination/index.d.ts +1 -0
  39. package/dist-types/protocols/Aws_restJson1.d.ts +45 -0
  40. package/dist-types/ts3.4/Bedrock.d.ts +363 -115
  41. package/dist-types/ts3.4/BedrockClient.d.ts +238 -182
  42. package/dist-types/ts3.4/commands/CreateModelCustomizationJobCommand.d.ts +42 -149
  43. package/dist-types/ts3.4/commands/CreateProvisionedModelThroughputCommand.d.ts +42 -0
  44. package/dist-types/ts3.4/commands/DeleteCustomModelCommand.d.ts +39 -89
  45. package/dist-types/ts3.4/commands/DeleteModelInvocationLoggingConfigurationCommand.d.ts +42 -78
  46. package/dist-types/ts3.4/commands/DeleteProvisionedModelThroughputCommand.d.ts +42 -0
  47. package/dist-types/ts3.4/commands/GetCustomModelCommand.d.ts +38 -118
  48. package/dist-types/ts3.4/commands/GetFoundationModelCommand.d.ts +39 -106
  49. package/dist-types/ts3.4/commands/GetModelCustomizationJobCommand.d.ts +42 -133
  50. package/dist-types/ts3.4/commands/GetModelInvocationLoggingConfigurationCommand.d.ts +42 -96
  51. package/dist-types/ts3.4/commands/GetProvisionedModelThroughputCommand.d.ts +42 -0
  52. package/dist-types/ts3.4/commands/ListCustomModelsCommand.d.ts +38 -103
  53. package/dist-types/ts3.4/commands/ListFoundationModelsCommand.d.ts +42 -108
  54. package/dist-types/ts3.4/commands/ListModelCustomizationJobsCommand.d.ts +42 -107
  55. package/dist-types/ts3.4/commands/ListProvisionedModelThroughputsCommand.d.ts +42 -0
  56. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +39 -94
  57. package/dist-types/ts3.4/commands/PutModelInvocationLoggingConfigurationCommand.d.ts +42 -99
  58. package/dist-types/ts3.4/commands/StopModelCustomizationJobCommand.d.ts +42 -89
  59. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +35 -96
  60. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +38 -89
  61. package/dist-types/ts3.4/commands/UpdateProvisionedModelThroughputCommand.d.ts +42 -0
  62. package/dist-types/ts3.4/commands/index.d.ts +20 -15
  63. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +33 -22
  64. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -5
  65. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -2
  66. package/dist-types/ts3.4/extensionConfiguration.d.ts +7 -8
  67. package/dist-types/ts3.4/index.d.ts +7 -12
  68. package/dist-types/ts3.4/models/BedrockServiceException.d.ts +8 -13
  69. package/dist-types/ts3.4/models/index.d.ts +1 -1
  70. package/dist-types/ts3.4/models/models_0.d.ts +412 -1144
  71. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -8
  72. package/dist-types/ts3.4/pagination/ListCustomModelsPaginator.d.ts +11 -7
  73. package/dist-types/ts3.4/pagination/ListModelCustomizationJobsPaginator.d.ts +11 -7
  74. package/dist-types/ts3.4/pagination/ListProvisionedModelThroughputsPaginator.d.ts +11 -0
  75. package/dist-types/ts3.4/pagination/index.d.ts +4 -3
  76. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +245 -137
  77. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +97 -46
  78. package/dist-types/ts3.4/runtimeConfig.d.ts +97 -46
  79. package/dist-types/ts3.4/runtimeConfig.native.d.ts +88 -45
  80. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +19 -19
  81. package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -17
  82. package/package.json +3 -3
@@ -1,1144 +1,412 @@
1
- import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
- import { BedrockServiceException as __BaseException } from "./BedrockServiceException";
3
- /**
4
- * @public
5
- * <p>The request is denied because of missing access permissions.</p>
6
- */
7
- export declare class AccessDeniedException extends __BaseException {
8
- readonly name: "AccessDeniedException";
9
- readonly $fault: "client";
10
- /**
11
- * @internal
12
- */
13
- constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
14
- }
15
- /**
16
- * @public
17
- */
18
- export interface DeleteModelInvocationLoggingConfigurationRequest {
19
- }
20
- /**
21
- * @public
22
- */
23
- export interface DeleteModelInvocationLoggingConfigurationResponse {
24
- }
25
- /**
26
- * @public
27
- * <p>An internal server error occurred. Retry your request.</p>
28
- */
29
- export declare class InternalServerException extends __BaseException {
30
- readonly name: "InternalServerException";
31
- readonly $fault: "server";
32
- /**
33
- * @internal
34
- */
35
- constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
36
- }
37
- /**
38
- * @public
39
- * <p>The number of requests exceeds the limit. Resubmit your request later.</p>
40
- */
41
- export declare class ThrottlingException extends __BaseException {
42
- readonly name: "ThrottlingException";
43
- readonly $fault: "client";
44
- /**
45
- * @internal
46
- */
47
- constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
48
- }
49
- /**
50
- * @public
51
- */
52
- export interface GetModelInvocationLoggingConfigurationRequest {
53
- }
54
- /**
55
- * @public
56
- * <p>S3 configuration for storing log data.</p>
57
- */
58
- export interface S3Config {
59
- /**
60
- * @public
61
- * <p>S3 bucket name.</p>
62
- */
63
- bucketName: string | undefined;
64
- /**
65
- * @public
66
- * <p>S3 prefix. </p>
67
- */
68
- keyPrefix?: string;
69
- }
70
- /**
71
- * @public
72
- * <p>CloudWatch logging configuration.</p>
73
- */
74
- export interface CloudWatchConfig {
75
- /**
76
- * @public
77
- * <p>The log group name.</p>
78
- */
79
- logGroupName: string | undefined;
80
- /**
81
- * @public
82
- * <p>The role ARN.</p>
83
- */
84
- roleArn: string | undefined;
85
- /**
86
- * @public
87
- * <p>S3 configuration for delivering a large amount of data.</p>
88
- */
89
- largeDataDeliveryS3Config?: S3Config;
90
- }
91
- /**
92
- * @public
93
- * <p>Configuration fields for invokation logging.</p>
94
- */
95
- export interface LoggingConfig {
96
- /**
97
- * @public
98
- * <p>CloudWatch logging configuration.</p>
99
- */
100
- cloudWatchConfig?: CloudWatchConfig;
101
- /**
102
- * @public
103
- * <p>S3 configuration for storing log data.</p>
104
- */
105
- s3Config?: S3Config;
106
- /**
107
- * @public
108
- * <p>Set to include text data in the log delivery.</p>
109
- */
110
- textDataDeliveryEnabled?: boolean;
111
- /**
112
- * @public
113
- * <p>Set to include image data in the log delivery.</p>
114
- */
115
- imageDataDeliveryEnabled?: boolean;
116
- /**
117
- * @public
118
- * <p>Set to include embeddings data in the log delivery.</p>
119
- */
120
- embeddingDataDeliveryEnabled?: boolean;
121
- }
122
- /**
123
- * @public
124
- */
125
- export interface GetModelInvocationLoggingConfigurationResponse {
126
- /**
127
- * @public
128
- * <p>The current configuration values.</p>
129
- */
130
- loggingConfig?: LoggingConfig;
131
- }
132
- /**
133
- * @public
134
- */
135
- export interface PutModelInvocationLoggingConfigurationRequest {
136
- /**
137
- * @public
138
- * <p>The logging configuration values to set.</p>
139
- */
140
- loggingConfig: LoggingConfig | undefined;
141
- }
142
- /**
143
- * @public
144
- */
145
- export interface PutModelInvocationLoggingConfigurationResponse {
146
- }
147
- /**
148
- * @public
149
- * <p>Input validation failed. Check your request parameters and retry the request.</p>
150
- */
151
- export declare class ValidationException extends __BaseException {
152
- readonly name: "ValidationException";
153
- readonly $fault: "client";
154
- /**
155
- * @internal
156
- */
157
- constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
158
- }
159
- /**
160
- * @public
161
- * <p>Error occurred because of a conflict while performing an operation.</p>
162
- */
163
- export declare class ConflictException extends __BaseException {
164
- readonly name: "ConflictException";
165
- readonly $fault: "client";
166
- /**
167
- * @internal
168
- */
169
- constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
170
- }
171
- /**
172
- * @public
173
- */
174
- export interface DeleteCustomModelRequest {
175
- /**
176
- * @public
177
- * <p>Name of the model to delete.</p>
178
- */
179
- modelIdentifier: string | undefined;
180
- }
181
- /**
182
- * @public
183
- */
184
- export interface DeleteCustomModelResponse {
185
- }
186
- /**
187
- * @public
188
- * <p>The specified resource ARN was not found. Check the ARN and try your request again.</p>
189
- */
190
- export declare class ResourceNotFoundException extends __BaseException {
191
- readonly name: "ResourceNotFoundException";
192
- readonly $fault: "client";
193
- /**
194
- * @internal
195
- */
196
- constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
197
- }
198
- /**
199
- * @public
200
- */
201
- export interface GetCustomModelRequest {
202
- /**
203
- * @public
204
- * <p>Name or ARN of the custom model.</p>
205
- */
206
- modelIdentifier: string | undefined;
207
- }
208
- /**
209
- * @public
210
- * <p>S3 Location of the output data.</p>
211
- */
212
- export interface OutputDataConfig {
213
- /**
214
- * @public
215
- * <p>The S3 URI where the output data is stored.</p>
216
- */
217
- s3Uri: string | undefined;
218
- }
219
- /**
220
- * @public
221
- * <p>S3 Location of the training data.</p>
222
- */
223
- export interface TrainingDataConfig {
224
- /**
225
- * @public
226
- * <p>The S3 URI where the training data is stored.</p>
227
- */
228
- s3Uri: string | undefined;
229
- }
230
- /**
231
- * @public
232
- * <p>Metrics associated with the custom job.</p>
233
- */
234
- export interface TrainingMetrics {
235
- /**
236
- * @public
237
- * <p>Loss metric associated with the custom job.</p>
238
- */
239
- trainingLoss?: number;
240
- }
241
- /**
242
- * @public
243
- * <p>Information about a validator.</p>
244
- */
245
- export interface Validator {
246
- /**
247
- * @public
248
- * <p>The S3 URI where the validation data is stored.</p>
249
- */
250
- s3Uri: string | undefined;
251
- }
252
- /**
253
- * @public
254
- * <p>Array of up to 10 validators.</p>
255
- */
256
- export interface ValidationDataConfig {
257
- /**
258
- * @public
259
- * <p>Information about the validators.</p>
260
- */
261
- validators: Validator[] | undefined;
262
- }
263
- /**
264
- * @public
265
- * <p>The metric for the validator.</p>
266
- */
267
- export interface ValidatorMetric {
268
- /**
269
- * @public
270
- * <p>The validation loss associated with this validator.</p>
271
- */
272
- validationLoss?: number;
273
- }
274
- /**
275
- * @public
276
- */
277
- export interface GetCustomModelResponse {
278
- /**
279
- * @public
280
- * <p>ARN associated with this model.</p>
281
- */
282
- modelArn: string | undefined;
283
- /**
284
- * @public
285
- * <p>Model name associated with this model.</p>
286
- */
287
- modelName: string | undefined;
288
- /**
289
- * @public
290
- * <p>Job name associated with this model.</p>
291
- */
292
- jobName?: string;
293
- /**
294
- * @public
295
- * <p>Job ARN associated with this model.</p>
296
- */
297
- jobArn: string | undefined;
298
- /**
299
- * @public
300
- * <p>ARN of the base model.</p>
301
- */
302
- baseModelArn: string | undefined;
303
- /**
304
- * @public
305
- * <p>The custom model is encrypted at rest using this key.</p>
306
- */
307
- modelKmsKeyArn?: string;
308
- /**
309
- * @public
310
- * <p>Hyperparameter values associated with this model.</p>
311
- */
312
- hyperParameters?: Record<string, string>;
313
- /**
314
- * @public
315
- * <p>Information about the training dataset.</p>
316
- */
317
- trainingDataConfig: TrainingDataConfig | undefined;
318
- /**
319
- * @public
320
- * <p>Array of up to 10 validators.</p>
321
- */
322
- validationDataConfig?: ValidationDataConfig;
323
- /**
324
- * @public
325
- * <p>Output data configuration associated with this custom model.</p>
326
- */
327
- outputDataConfig: OutputDataConfig | undefined;
328
- /**
329
- * @public
330
- * <p>The training metrics from the job creation.</p>
331
- */
332
- trainingMetrics?: TrainingMetrics;
333
- /**
334
- * @public
335
- * <p>The validation metrics from the job creation.</p>
336
- */
337
- validationMetrics?: ValidatorMetric[];
338
- /**
339
- * @public
340
- * <p>Creation time of the model.</p>
341
- */
342
- creationTime: Date | undefined;
343
- }
344
- /**
345
- * @public
346
- */
347
- export interface GetFoundationModelRequest {
348
- /**
349
- * @public
350
- * <p>The model identifier. </p>
351
- */
352
- modelIdentifier: string | undefined;
353
- }
354
- /**
355
- * @public
356
- * @enum
357
- */
358
- export declare const ModelCustomization: {
359
- readonly FINE_TUNING: "FINE_TUNING";
360
- };
361
- /**
362
- * @public
363
- */
364
- export type ModelCustomization = (typeof ModelCustomization)[keyof typeof ModelCustomization];
365
- /**
366
- * @public
367
- * @enum
368
- */
369
- export declare const InferenceType: {
370
- readonly ON_DEMAND: "ON_DEMAND";
371
- readonly PROVISIONED: "PROVISIONED";
372
- };
373
- /**
374
- * @public
375
- */
376
- export type InferenceType = (typeof InferenceType)[keyof typeof InferenceType];
377
- /**
378
- * @public
379
- * @enum
380
- */
381
- export declare const ModelModality: {
382
- readonly EMBEDDING: "EMBEDDING";
383
- readonly IMAGE: "IMAGE";
384
- readonly TEXT: "TEXT";
385
- };
386
- /**
387
- * @public
388
- */
389
- export type ModelModality = (typeof ModelModality)[keyof typeof ModelModality];
390
- /**
391
- * @public
392
- * <p>Information about a foundation model.</p>
393
- */
394
- export interface FoundationModelDetails {
395
- /**
396
- * @public
397
- * <p>The model ARN.</p>
398
- */
399
- modelArn: string | undefined;
400
- /**
401
- * @public
402
- * <p>The model identifier.</p>
403
- */
404
- modelId: string | undefined;
405
- /**
406
- * @public
407
- * <p>The model name.</p>
408
- */
409
- modelName?: string;
410
- /**
411
- * @public
412
- * <p>he model's provider name.</p>
413
- */
414
- providerName?: string;
415
- /**
416
- * @public
417
- * <p>The input modalities that the model supports.</p>
418
- */
419
- inputModalities?: (ModelModality | string)[];
420
- /**
421
- * @public
422
- * <p>The output modalities that the model supports.</p>
423
- */
424
- outputModalities?: (ModelModality | string)[];
425
- /**
426
- * @public
427
- * <p>Indicates whether the model supports streaming.</p>
428
- */
429
- responseStreamingSupported?: boolean;
430
- /**
431
- * @public
432
- * <p>The customization that the model supports.</p>
433
- */
434
- customizationsSupported?: (ModelCustomization | string)[];
435
- /**
436
- * @public
437
- * <p>The inference types that the model supports.</p>
438
- */
439
- inferenceTypesSupported?: (InferenceType | string)[];
440
- }
441
- /**
442
- * @public
443
- */
444
- export interface GetFoundationModelResponse {
445
- /**
446
- * @public
447
- * <p>Information about the foundation model.</p>
448
- */
449
- modelDetails?: FoundationModelDetails;
450
- }
451
- /**
452
- * @public
453
- * @enum
454
- */
455
- export declare const SortModelsBy: {
456
- readonly CREATION_TIME: "CreationTime";
457
- };
458
- /**
459
- * @public
460
- */
461
- export type SortModelsBy = (typeof SortModelsBy)[keyof typeof SortModelsBy];
462
- /**
463
- * @public
464
- * @enum
465
- */
466
- export declare const SortOrder: {
467
- readonly ASCENDING: "Ascending";
468
- readonly DESCENDING: "Descending";
469
- };
470
- /**
471
- * @public
472
- */
473
- export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder];
474
- /**
475
- * @public
476
- */
477
- export interface ListCustomModelsRequest {
478
- /**
479
- * @public
480
- * <p>Return custom models created before the specified time. </p>
481
- */
482
- creationTimeBefore?: Date;
483
- /**
484
- * @public
485
- * <p>Return custom models created after the specified time. </p>
486
- */
487
- creationTimeAfter?: Date;
488
- /**
489
- * @public
490
- * <p>Return custom models only if the job name contains these characters.</p>
491
- */
492
- nameContains?: string;
493
- /**
494
- * @public
495
- * <p>Return custom models only if the base model ARN matches this parameter.</p>
496
- */
497
- baseModelArnEquals?: string;
498
- /**
499
- * @public
500
- * <p>Return custom models only if the foundation model ARN matches this parameter.</p>
501
- */
502
- foundationModelArnEquals?: string;
503
- /**
504
- * @public
505
- * <p>Maximum number of results to return in the response.</p>
506
- */
507
- maxResults?: number;
508
- /**
509
- * @public
510
- * <p>Continuation token from the previous response, for Bedrock to list the next set of results.</p>
511
- */
512
- nextToken?: string;
513
- /**
514
- * @public
515
- * <p>The field to sort by in the returned list of models.</p>
516
- */
517
- sortBy?: SortModelsBy | string;
518
- /**
519
- * @public
520
- * <p>The sort order of the results.</p>
521
- */
522
- sortOrder?: SortOrder | string;
523
- }
524
- /**
525
- * @public
526
- * <p>Summary information for a custom model.</p>
527
- */
528
- export interface CustomModelSummary {
529
- /**
530
- * @public
531
- * <p>The ARN of the custom model.</p>
532
- */
533
- modelArn: string | undefined;
534
- /**
535
- * @public
536
- * <p>The name of the custom model.</p>
537
- */
538
- modelName: string | undefined;
539
- /**
540
- * @public
541
- * <p>Creation time of the model.</p>
542
- */
543
- creationTime: Date | undefined;
544
- /**
545
- * @public
546
- * <p>The base model ARN.</p>
547
- */
548
- baseModelArn: string | undefined;
549
- /**
550
- * @public
551
- * <p>The base model name.</p>
552
- */
553
- baseModelName: string | undefined;
554
- }
555
- /**
556
- * @public
557
- */
558
- export interface ListCustomModelsResponse {
559
- /**
560
- * @public
561
- * <p>Continuation token for the next request to list the next set of results.</p>
562
- */
563
- nextToken?: string;
564
- /**
565
- * @public
566
- * <p>Model summaries.</p>
567
- */
568
- modelSummaries?: CustomModelSummary[];
569
- }
570
- /**
571
- * @public
572
- */
573
- export interface ListFoundationModelsRequest {
574
- /**
575
- * @public
576
- * <p>A Bedrock model provider.</p>
577
- */
578
- byProvider?: string;
579
- /**
580
- * @public
581
- * <p>List by customization type.</p>
582
- */
583
- byCustomizationType?: ModelCustomization | string;
584
- /**
585
- * @public
586
- * <p>List by output modality type.</p>
587
- */
588
- byOutputModality?: ModelModality | string;
589
- /**
590
- * @public
591
- * <p>List by inference type.</p>
592
- */
593
- byInferenceType?: InferenceType | string;
594
- }
595
- /**
596
- * @public
597
- * <p>Summary information for a foundation model.</p>
598
- */
599
- export interface FoundationModelSummary {
600
- /**
601
- * @public
602
- * <p>The ARN of the foundation model.</p>
603
- */
604
- modelArn: string | undefined;
605
- /**
606
- * @public
607
- * <p>The model Id of the foundation model.</p>
608
- */
609
- modelId: string | undefined;
610
- /**
611
- * @public
612
- * <p>The name of the model.</p>
613
- */
614
- modelName?: string;
615
- /**
616
- * @public
617
- * <p>The model's provider name.</p>
618
- */
619
- providerName?: string;
620
- /**
621
- * @public
622
- * <p>The input modalities that the model supports.</p>
623
- */
624
- inputModalities?: (ModelModality | string)[];
625
- /**
626
- * @public
627
- * <p>The output modalities that the model supports.</p>
628
- */
629
- outputModalities?: (ModelModality | string)[];
630
- /**
631
- * @public
632
- * <p>Indicates whether the model supports streaming.</p>
633
- */
634
- responseStreamingSupported?: boolean;
635
- /**
636
- * @public
637
- * <p>Whether the model supports fine-tuning or continual pre-training.</p>
638
- */
639
- customizationsSupported?: (ModelCustomization | string)[];
640
- /**
641
- * @public
642
- * <p>The inference types that the model supports.</p>
643
- */
644
- inferenceTypesSupported?: (InferenceType | string)[];
645
- }
646
- /**
647
- * @public
648
- */
649
- export interface ListFoundationModelsResponse {
650
- /**
651
- * @public
652
- * <p>A list of bedrock foundation models.</p>
653
- */
654
- modelSummaries?: FoundationModelSummary[];
655
- }
656
- /**
657
- * @public
658
- */
659
- export interface ListTagsForResourceRequest {
660
- /**
661
- * @public
662
- * <p>The ARN of the resource.</p>
663
- */
664
- resourceARN: string | undefined;
665
- }
666
- /**
667
- * @public
668
- * <p>Definition of the key/value pair for a tag.</p>
669
- */
670
- export interface Tag {
671
- /**
672
- * @public
673
- * <p>Key for the tag.</p>
674
- */
675
- key: string | undefined;
676
- /**
677
- * @public
678
- * <p>Value for the tag.</p>
679
- */
680
- value: string | undefined;
681
- }
682
- /**
683
- * @public
684
- */
685
- export interface ListTagsForResourceResponse {
686
- /**
687
- * @public
688
- * <p>An array of the tags associated with this resource.</p>
689
- */
690
- tags?: Tag[];
691
- }
692
- /**
693
- * @public
694
- */
695
- export interface TagResourceRequest {
696
- /**
697
- * @public
698
- * <p>The ARN of the resource to tag.</p>
699
- */
700
- resourceARN: string | undefined;
701
- /**
702
- * @public
703
- * <p>Tags to associate with the resource.</p>
704
- */
705
- tags: Tag[] | undefined;
706
- }
707
- /**
708
- * @public
709
- */
710
- export interface TagResourceResponse {
711
- }
712
- /**
713
- * @public
714
- * <p>The request contains more tags than can be associated with a resource (50 tags per resource).
715
- * The maximum number of tags includes both existing tags and those included in your current request. </p>
716
- */
717
- export declare class TooManyTagsException extends __BaseException {
718
- readonly name: "TooManyTagsException";
719
- readonly $fault: "client";
720
- /**
721
- * @public
722
- * <p>The name of the resource with too many tags.</p>
723
- */
724
- resourceName?: string;
725
- /**
726
- * @internal
727
- */
728
- constructor(opts: __ExceptionOptionType<TooManyTagsException, __BaseException>);
729
- }
730
- /**
731
- * @public
732
- */
733
- export interface UntagResourceRequest {
734
- /**
735
- * @public
736
- * <p>The ARN of the resource to untag.</p>
737
- */
738
- resourceARN: string | undefined;
739
- /**
740
- * @public
741
- * <p>Tag keys of the tags to remove from the resource.</p>
742
- */
743
- tagKeys: string[] | undefined;
744
- }
745
- /**
746
- * @public
747
- */
748
- export interface UntagResourceResponse {
749
- }
750
- /**
751
- * @public
752
- * <p>VPC configuration.</p>
753
- */
754
- export interface VpcConfig {
755
- /**
756
- * @public
757
- * <p>VPC configuration subnets.</p>
758
- */
759
- subnetIds: string[] | undefined;
760
- /**
761
- * @public
762
- * <p>VPC configuration security group Ids.</p>
763
- */
764
- securityGroupIds: string[] | undefined;
765
- }
766
- /**
767
- * @public
768
- */
769
- export interface CreateModelCustomizationJobRequest {
770
- /**
771
- * @public
772
- * <p>Enter a unique name for the fine-tuning job.</p>
773
- */
774
- jobName: string | undefined;
775
- /**
776
- * @public
777
- * <p>Enter a name for the custom model.</p>
778
- */
779
- customModelName: string | undefined;
780
- /**
781
- * @public
782
- * <p>The Amazon Resource Name (ARN) of an IAM role that Bedrock can assume to perform tasks on your behalf.
783
- * For example, during model training, Bedrock needs your permission to read input data from an S3 bucket, write model artifacts to an S3 bucket.
784
- * To pass this role to Bedrock, the caller of this API must have the <code>iam:PassRole</code> permission.
785
- * </p>
786
- */
787
- roleArn: string | undefined;
788
- /**
789
- * @public
790
- * <p>Unique token value that you can provide. The GetModelCustomizationJob response includes the same token value.</p>
791
- */
792
- clientRequestToken?: string;
793
- /**
794
- * @public
795
- * <p>Name of the base model.</p>
796
- */
797
- baseModelIdentifier: string | undefined;
798
- /**
799
- * @public
800
- * <p>The custom model is encrypted at rest using this key.</p>
801
- */
802
- customModelKmsKeyId?: string;
803
- /**
804
- * @public
805
- * <p>Assign tags to the job.</p>
806
- */
807
- jobTags?: Tag[];
808
- /**
809
- * @public
810
- * <p>Assign tags to the custom model.</p>
811
- */
812
- customModelTags?: Tag[];
813
- /**
814
- * @public
815
- * <p>Information about the training dataset.</p>
816
- */
817
- trainingDataConfig: TrainingDataConfig | undefined;
818
- /**
819
- * @public
820
- * <p>Information about the validation dataset. </p>
821
- */
822
- validationDataConfig?: ValidationDataConfig;
823
- /**
824
- * @public
825
- * <p>S3 location for the output data.</p>
826
- */
827
- outputDataConfig: OutputDataConfig | undefined;
828
- /**
829
- * @public
830
- * <p>Parameters related to tuning the model.</p>
831
- */
832
- hyperParameters: Record<string, string> | undefined;
833
- /**
834
- * @public
835
- * <p>VPC configuration (optional). Configuration parameters for the
836
- * private Virtual Private Cloud (VPC) that contains the resources you are using for this job.</p>
837
- */
838
- vpcConfig?: VpcConfig;
839
- }
840
- /**
841
- * @public
842
- */
843
- export interface CreateModelCustomizationJobResponse {
844
- /**
845
- * @public
846
- * <p>ARN of the fine tuning job</p>
847
- */
848
- jobArn: string | undefined;
849
- }
850
- /**
851
- * @public
852
- * <p>The number of requests exceeds the service quota. Resubmit your request later.</p>
853
- */
854
- export declare class ServiceQuotaExceededException extends __BaseException {
855
- readonly name: "ServiceQuotaExceededException";
856
- readonly $fault: "client";
857
- /**
858
- * @internal
859
- */
860
- constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
861
- }
862
- /**
863
- * @public
864
- */
865
- export interface GetModelCustomizationJobRequest {
866
- /**
867
- * @public
868
- * <p>Identifier for the customization job.</p>
869
- */
870
- jobIdentifier: string | undefined;
871
- }
872
- /**
873
- * @public
874
- * @enum
875
- */
876
- export declare const ModelCustomizationJobStatus: {
877
- readonly COMPLETED: "Completed";
878
- readonly FAILED: "Failed";
879
- readonly IN_PROGRESS: "InProgress";
880
- readonly STOPPED: "Stopped";
881
- readonly STOPPING: "Stopping";
882
- };
883
- /**
884
- * @public
885
- */
886
- export type ModelCustomizationJobStatus = (typeof ModelCustomizationJobStatus)[keyof typeof ModelCustomizationJobStatus];
887
- /**
888
- * @public
889
- */
890
- export interface GetModelCustomizationJobResponse {
891
- /**
892
- * @public
893
- * <p>The ARN of the customization job.</p>
894
- */
895
- jobArn: string | undefined;
896
- /**
897
- * @public
898
- * <p>The name of the customization job.</p>
899
- */
900
- jobName: string | undefined;
901
- /**
902
- * @public
903
- * <p>The name of the output model.</p>
904
- */
905
- outputModelName: string | undefined;
906
- /**
907
- * @public
908
- * <p>The ARN of the output model.</p>
909
- */
910
- outputModelArn?: string;
911
- /**
912
- * @public
913
- * <p>The token that you specified in the CreateCustomizationJob request.</p>
914
- */
915
- clientRequestToken?: string;
916
- /**
917
- * @public
918
- * <p>The ARN of the IAM role.</p>
919
- */
920
- roleArn: string | undefined;
921
- /**
922
- * @public
923
- * <p>The status of the job. A successful job transitions from in-progress to completed when the output model is ready to use.
924
- * If the job failed, the failure message contains information about why the job failed.</p>
925
- */
926
- status?: ModelCustomizationJobStatus | string;
927
- /**
928
- * @public
929
- * <p>Information about why the job failed.</p>
930
- */
931
- failureMessage?: string;
932
- /**
933
- * @public
934
- * <p>Time that the resource was created.</p>
935
- */
936
- creationTime: Date | undefined;
937
- /**
938
- * @public
939
- * <p>Time that the resource was last modified.</p>
940
- */
941
- lastModifiedTime?: Date;
942
- /**
943
- * @public
944
- * <p>Time that the resource transitioned to terminal state.</p>
945
- */
946
- endTime?: Date;
947
- /**
948
- * @public
949
- * <p>ARN of the base model.</p>
950
- */
951
- baseModelArn: string | undefined;
952
- /**
953
- * @public
954
- * <p>The hyperparameter values for the job.</p>
955
- */
956
- hyperParameters: Record<string, string> | undefined;
957
- /**
958
- * @public
959
- * <p>S3 Location of the training data.</p>
960
- */
961
- trainingDataConfig: TrainingDataConfig | undefined;
962
- /**
963
- * @public
964
- * <p>Array of up to 10 validators.</p>
965
- */
966
- validationDataConfig: ValidationDataConfig | undefined;
967
- /**
968
- * @public
969
- * <p>Output data configuration </p>
970
- */
971
- outputDataConfig: OutputDataConfig | undefined;
972
- /**
973
- * @public
974
- * <p>The custom model is encrypted at rest using this key.</p>
975
- */
976
- outputModelKmsKeyArn?: string;
977
- /**
978
- * @public
979
- * <p>Metrics associated with the custom job.</p>
980
- */
981
- trainingMetrics?: TrainingMetrics;
982
- /**
983
- * @public
984
- * <p>The loss metric for each validator that you provided in the createjob request.</p>
985
- */
986
- validationMetrics?: ValidatorMetric[];
987
- /**
988
- * @public
989
- * <p>VPC configuration for the custom model job.</p>
990
- */
991
- vpcConfig?: VpcConfig;
992
- }
993
- /**
994
- * @public
995
- * @enum
996
- */
997
- export declare const SortJobsBy: {
998
- readonly CREATION_TIME: "CreationTime";
999
- };
1000
- /**
1001
- * @public
1002
- */
1003
- export type SortJobsBy = (typeof SortJobsBy)[keyof typeof SortJobsBy];
1004
- /**
1005
- * @public
1006
- * @enum
1007
- */
1008
- export declare const FineTuningJobStatus: {
1009
- readonly COMPLETED: "Completed";
1010
- readonly FAILED: "Failed";
1011
- readonly IN_PROGRESS: "InProgress";
1012
- readonly STOPPED: "Stopped";
1013
- readonly STOPPING: "Stopping";
1014
- };
1015
- /**
1016
- * @public
1017
- */
1018
- export type FineTuningJobStatus = (typeof FineTuningJobStatus)[keyof typeof FineTuningJobStatus];
1019
- /**
1020
- * @public
1021
- */
1022
- export interface ListModelCustomizationJobsRequest {
1023
- /**
1024
- * @public
1025
- * <p>Return customization jobs created after the specified time. </p>
1026
- */
1027
- creationTimeAfter?: Date;
1028
- /**
1029
- * @public
1030
- * <p>Return customization jobs created before the specified time. </p>
1031
- */
1032
- creationTimeBefore?: Date;
1033
- /**
1034
- * @public
1035
- * <p>Return customization jobs with the specified status. </p>
1036
- */
1037
- statusEquals?: FineTuningJobStatus | string;
1038
- /**
1039
- * @public
1040
- * <p>Return customization jobs only if the job name contains these characters.</p>
1041
- */
1042
- nameContains?: string;
1043
- /**
1044
- * @public
1045
- * <p>Maximum number of results to return in the response.</p>
1046
- */
1047
- maxResults?: number;
1048
- /**
1049
- * @public
1050
- * <p>Continuation token from the previous response, for Bedrock to list the next set of results.</p>
1051
- */
1052
- nextToken?: string;
1053
- /**
1054
- * @public
1055
- * <p>The field to sort by in the returned list of jobs.</p>
1056
- */
1057
- sortBy?: SortJobsBy | string;
1058
- /**
1059
- * @public
1060
- * <p>The sort order of the results.</p>
1061
- */
1062
- sortOrder?: SortOrder | string;
1063
- }
1064
- /**
1065
- * @public
1066
- * <p>Information about one customization job</p>
1067
- */
1068
- export interface ModelCustomizationJobSummary {
1069
- /**
1070
- * @public
1071
- * <p>ARN of the customization job.</p>
1072
- */
1073
- jobArn: string | undefined;
1074
- /**
1075
- * @public
1076
- * <p>ARN of the base model.</p>
1077
- */
1078
- baseModelArn: string | undefined;
1079
- /**
1080
- * @public
1081
- * <p>Name of the customization job.</p>
1082
- */
1083
- jobName: string | undefined;
1084
- /**
1085
- * @public
1086
- * <p>Status of the customization job. </p>
1087
- */
1088
- status: ModelCustomizationJobStatus | string | undefined;
1089
- /**
1090
- * @public
1091
- * <p>Time that the customization job was last modified.</p>
1092
- */
1093
- lastModifiedTime?: Date;
1094
- /**
1095
- * @public
1096
- * <p>Creation time of the custom model. </p>
1097
- */
1098
- creationTime: Date | undefined;
1099
- /**
1100
- * @public
1101
- * <p>Time that the customization job ended.</p>
1102
- */
1103
- endTime?: Date;
1104
- /**
1105
- * @public
1106
- * <p>ARN of the custom model.</p>
1107
- */
1108
- customModelArn?: string;
1109
- /**
1110
- * @public
1111
- * <p>Name of the custom model.</p>
1112
- */
1113
- customModelName?: string;
1114
- }
1115
- /**
1116
- * @public
1117
- */
1118
- export interface ListModelCustomizationJobsResponse {
1119
- /**
1120
- * @public
1121
- * <p>Page continuation token to use in the next request.</p>
1122
- */
1123
- nextToken?: string;
1124
- /**
1125
- * @public
1126
- * <p>Job summaries.</p>
1127
- */
1128
- modelCustomizationJobSummaries?: ModelCustomizationJobSummary[];
1129
- }
1130
- /**
1131
- * @public
1132
- */
1133
- export interface StopModelCustomizationJobRequest {
1134
- /**
1135
- * @public
1136
- * <p>Job identifier of the job to stop.</p>
1137
- */
1138
- jobIdentifier: string | undefined;
1139
- }
1140
- /**
1141
- * @public
1142
- */
1143
- export interface StopModelCustomizationJobResponse {
1144
- }
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { BedrockServiceException as __BaseException } from "./BedrockServiceException";
3
+ export declare class AccessDeniedException extends __BaseException {
4
+ readonly name: "AccessDeniedException";
5
+ readonly $fault: "client";
6
+ constructor(
7
+ opts: __ExceptionOptionType<AccessDeniedException, __BaseException>
8
+ );
9
+ }
10
+ export interface DeleteModelInvocationLoggingConfigurationRequest {}
11
+ export interface DeleteModelInvocationLoggingConfigurationResponse {}
12
+ export declare class InternalServerException extends __BaseException {
13
+ readonly name: "InternalServerException";
14
+ readonly $fault: "server";
15
+ constructor(
16
+ opts: __ExceptionOptionType<InternalServerException, __BaseException>
17
+ );
18
+ }
19
+ export declare class ThrottlingException extends __BaseException {
20
+ readonly name: "ThrottlingException";
21
+ readonly $fault: "client";
22
+ constructor(
23
+ opts: __ExceptionOptionType<ThrottlingException, __BaseException>
24
+ );
25
+ }
26
+ export interface GetModelInvocationLoggingConfigurationRequest {}
27
+ export interface S3Config {
28
+ bucketName: string | undefined;
29
+ keyPrefix?: string;
30
+ }
31
+ export interface CloudWatchConfig {
32
+ logGroupName: string | undefined;
33
+ roleArn: string | undefined;
34
+ largeDataDeliveryS3Config?: S3Config;
35
+ }
36
+ export interface LoggingConfig {
37
+ cloudWatchConfig?: CloudWatchConfig;
38
+ s3Config?: S3Config;
39
+ textDataDeliveryEnabled?: boolean;
40
+ imageDataDeliveryEnabled?: boolean;
41
+ embeddingDataDeliveryEnabled?: boolean;
42
+ }
43
+ export interface GetModelInvocationLoggingConfigurationResponse {
44
+ loggingConfig?: LoggingConfig;
45
+ }
46
+ export interface PutModelInvocationLoggingConfigurationRequest {
47
+ loggingConfig: LoggingConfig | undefined;
48
+ }
49
+ export interface PutModelInvocationLoggingConfigurationResponse {}
50
+ export declare class ValidationException extends __BaseException {
51
+ readonly name: "ValidationException";
52
+ readonly $fault: "client";
53
+ constructor(
54
+ opts: __ExceptionOptionType<ValidationException, __BaseException>
55
+ );
56
+ }
57
+ export declare class ConflictException extends __BaseException {
58
+ readonly name: "ConflictException";
59
+ readonly $fault: "client";
60
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
61
+ }
62
+ export interface DeleteCustomModelRequest {
63
+ modelIdentifier: string | undefined;
64
+ }
65
+ export interface DeleteCustomModelResponse {}
66
+ export declare class ResourceNotFoundException extends __BaseException {
67
+ readonly name: "ResourceNotFoundException";
68
+ readonly $fault: "client";
69
+ constructor(
70
+ opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
71
+ );
72
+ }
73
+ export interface GetCustomModelRequest {
74
+ modelIdentifier: string | undefined;
75
+ }
76
+ export interface OutputDataConfig {
77
+ s3Uri: string | undefined;
78
+ }
79
+ export interface TrainingDataConfig {
80
+ s3Uri: string | undefined;
81
+ }
82
+ export interface TrainingMetrics {
83
+ trainingLoss?: number;
84
+ }
85
+ export interface Validator {
86
+ s3Uri: string | undefined;
87
+ }
88
+ export interface ValidationDataConfig {
89
+ validators: Validator[] | undefined;
90
+ }
91
+ export interface ValidatorMetric {
92
+ validationLoss?: number;
93
+ }
94
+ export interface GetCustomModelResponse {
95
+ modelArn: string | undefined;
96
+ modelName: string | undefined;
97
+ jobName?: string;
98
+ jobArn: string | undefined;
99
+ baseModelArn: string | undefined;
100
+ modelKmsKeyArn?: string;
101
+ hyperParameters?: Record<string, string>;
102
+ trainingDataConfig: TrainingDataConfig | undefined;
103
+ validationDataConfig?: ValidationDataConfig;
104
+ outputDataConfig: OutputDataConfig | undefined;
105
+ trainingMetrics?: TrainingMetrics;
106
+ validationMetrics?: ValidatorMetric[];
107
+ creationTime: Date | undefined;
108
+ }
109
+ export interface GetFoundationModelRequest {
110
+ modelIdentifier: string | undefined;
111
+ }
112
+ export declare const ModelCustomization: {
113
+ readonly FINE_TUNING: "FINE_TUNING";
114
+ };
115
+ export type ModelCustomization =
116
+ (typeof ModelCustomization)[keyof typeof ModelCustomization];
117
+ export declare const InferenceType: {
118
+ readonly ON_DEMAND: "ON_DEMAND";
119
+ readonly PROVISIONED: "PROVISIONED";
120
+ };
121
+ export type InferenceType = (typeof InferenceType)[keyof typeof InferenceType];
122
+ export declare const ModelModality: {
123
+ readonly EMBEDDING: "EMBEDDING";
124
+ readonly IMAGE: "IMAGE";
125
+ readonly TEXT: "TEXT";
126
+ };
127
+ export type ModelModality = (typeof ModelModality)[keyof typeof ModelModality];
128
+ export interface FoundationModelDetails {
129
+ modelArn: string | undefined;
130
+ modelId: string | undefined;
131
+ modelName?: string;
132
+ providerName?: string;
133
+ inputModalities?: (ModelModality | string)[];
134
+ outputModalities?: (ModelModality | string)[];
135
+ responseStreamingSupported?: boolean;
136
+ customizationsSupported?: (ModelCustomization | string)[];
137
+ inferenceTypesSupported?: (InferenceType | string)[];
138
+ }
139
+ export interface GetFoundationModelResponse {
140
+ modelDetails?: FoundationModelDetails;
141
+ }
142
+ export declare const SortModelsBy: {
143
+ readonly CREATION_TIME: "CreationTime";
144
+ };
145
+ export type SortModelsBy = (typeof SortModelsBy)[keyof typeof SortModelsBy];
146
+ export declare const SortOrder: {
147
+ readonly ASCENDING: "Ascending";
148
+ readonly DESCENDING: "Descending";
149
+ };
150
+ export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder];
151
+ export interface ListCustomModelsRequest {
152
+ creationTimeBefore?: Date;
153
+ creationTimeAfter?: Date;
154
+ nameContains?: string;
155
+ baseModelArnEquals?: string;
156
+ foundationModelArnEquals?: string;
157
+ maxResults?: number;
158
+ nextToken?: string;
159
+ sortBy?: SortModelsBy | string;
160
+ sortOrder?: SortOrder | string;
161
+ }
162
+ export interface CustomModelSummary {
163
+ modelArn: string | undefined;
164
+ modelName: string | undefined;
165
+ creationTime: Date | undefined;
166
+ baseModelArn: string | undefined;
167
+ baseModelName: string | undefined;
168
+ }
169
+ export interface ListCustomModelsResponse {
170
+ nextToken?: string;
171
+ modelSummaries?: CustomModelSummary[];
172
+ }
173
+ export interface ListFoundationModelsRequest {
174
+ byProvider?: string;
175
+ byCustomizationType?: ModelCustomization | string;
176
+ byOutputModality?: ModelModality | string;
177
+ byInferenceType?: InferenceType | string;
178
+ }
179
+ export interface FoundationModelSummary {
180
+ modelArn: string | undefined;
181
+ modelId: string | undefined;
182
+ modelName?: string;
183
+ providerName?: string;
184
+ inputModalities?: (ModelModality | string)[];
185
+ outputModalities?: (ModelModality | string)[];
186
+ responseStreamingSupported?: boolean;
187
+ customizationsSupported?: (ModelCustomization | string)[];
188
+ inferenceTypesSupported?: (InferenceType | string)[];
189
+ }
190
+ export interface ListFoundationModelsResponse {
191
+ modelSummaries?: FoundationModelSummary[];
192
+ }
193
+ export declare const CommitmentDuration: {
194
+ readonly ONE_MONTH: "OneMonth";
195
+ readonly SIX_MONTHS: "SixMonths";
196
+ };
197
+ export type CommitmentDuration =
198
+ (typeof CommitmentDuration)[keyof typeof CommitmentDuration];
199
+ export interface Tag {
200
+ key: string | undefined;
201
+ value: string | undefined;
202
+ }
203
+ export interface CreateProvisionedModelThroughputRequest {
204
+ clientRequestToken?: string;
205
+ modelUnits: number | undefined;
206
+ provisionedModelName: string | undefined;
207
+ modelId: string | undefined;
208
+ commitmentDuration?: CommitmentDuration | string;
209
+ tags?: Tag[];
210
+ }
211
+ export interface CreateProvisionedModelThroughputResponse {
212
+ provisionedModelArn: string | undefined;
213
+ }
214
+ export declare class ServiceQuotaExceededException extends __BaseException {
215
+ readonly name: "ServiceQuotaExceededException";
216
+ readonly $fault: "client";
217
+ constructor(
218
+ opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>
219
+ );
220
+ }
221
+ export declare class TooManyTagsException extends __BaseException {
222
+ readonly name: "TooManyTagsException";
223
+ readonly $fault: "client";
224
+ resourceName?: string;
225
+ constructor(
226
+ opts: __ExceptionOptionType<TooManyTagsException, __BaseException>
227
+ );
228
+ }
229
+ export interface DeleteProvisionedModelThroughputRequest {
230
+ provisionedModelId: string | undefined;
231
+ }
232
+ export interface DeleteProvisionedModelThroughputResponse {}
233
+ export interface GetProvisionedModelThroughputRequest {
234
+ provisionedModelId: string | undefined;
235
+ }
236
+ export declare const ProvisionedModelStatus: {
237
+ readonly CREATING: "Creating";
238
+ readonly FAILED: "Failed";
239
+ readonly IN_SERVICE: "InService";
240
+ readonly UPDATING: "Updating";
241
+ };
242
+ export type ProvisionedModelStatus =
243
+ (typeof ProvisionedModelStatus)[keyof typeof ProvisionedModelStatus];
244
+ export interface GetProvisionedModelThroughputResponse {
245
+ modelUnits: number | undefined;
246
+ desiredModelUnits: number | undefined;
247
+ provisionedModelName: string | undefined;
248
+ provisionedModelArn: string | undefined;
249
+ modelArn: string | undefined;
250
+ desiredModelArn: string | undefined;
251
+ foundationModelArn: string | undefined;
252
+ status: ProvisionedModelStatus | string | undefined;
253
+ creationTime: Date | undefined;
254
+ lastModifiedTime: Date | undefined;
255
+ failureMessage?: string;
256
+ commitmentDuration?: CommitmentDuration | string;
257
+ commitmentExpirationTime?: Date;
258
+ }
259
+ export declare const SortByProvisionedModels: {
260
+ readonly CREATION_TIME: "CreationTime";
261
+ };
262
+ export type SortByProvisionedModels =
263
+ (typeof SortByProvisionedModels)[keyof typeof SortByProvisionedModels];
264
+ export interface ListProvisionedModelThroughputsRequest {
265
+ creationTimeAfter?: Date;
266
+ creationTimeBefore?: Date;
267
+ statusEquals?: ProvisionedModelStatus | string;
268
+ modelArnEquals?: string;
269
+ nameContains?: string;
270
+ maxResults?: number;
271
+ nextToken?: string;
272
+ sortBy?: SortByProvisionedModels | string;
273
+ sortOrder?: SortOrder | string;
274
+ }
275
+ export interface ProvisionedModelSummary {
276
+ provisionedModelName: string | undefined;
277
+ provisionedModelArn: string | undefined;
278
+ modelArn: string | undefined;
279
+ desiredModelArn: string | undefined;
280
+ foundationModelArn: string | undefined;
281
+ modelUnits: number | undefined;
282
+ desiredModelUnits: number | undefined;
283
+ status: ProvisionedModelStatus | string | undefined;
284
+ commitmentDuration?: CommitmentDuration | string;
285
+ commitmentExpirationTime?: Date;
286
+ creationTime: Date | undefined;
287
+ lastModifiedTime: Date | undefined;
288
+ }
289
+ export interface ListProvisionedModelThroughputsResponse {
290
+ nextToken?: string;
291
+ provisionedModelSummaries?: ProvisionedModelSummary[];
292
+ }
293
+ export interface UpdateProvisionedModelThroughputRequest {
294
+ provisionedModelId: string | undefined;
295
+ desiredProvisionedModelName?: string;
296
+ desiredModelId?: string;
297
+ }
298
+ export interface UpdateProvisionedModelThroughputResponse {}
299
+ export interface ListTagsForResourceRequest {
300
+ resourceARN: string | undefined;
301
+ }
302
+ export interface ListTagsForResourceResponse {
303
+ tags?: Tag[];
304
+ }
305
+ export interface TagResourceRequest {
306
+ resourceARN: string | undefined;
307
+ tags: Tag[] | undefined;
308
+ }
309
+ export interface TagResourceResponse {}
310
+ export interface UntagResourceRequest {
311
+ resourceARN: string | undefined;
312
+ tagKeys: string[] | undefined;
313
+ }
314
+ export interface UntagResourceResponse {}
315
+ export interface VpcConfig {
316
+ subnetIds: string[] | undefined;
317
+ securityGroupIds: string[] | undefined;
318
+ }
319
+ export interface CreateModelCustomizationJobRequest {
320
+ jobName: string | undefined;
321
+ customModelName: string | undefined;
322
+ roleArn: string | undefined;
323
+ clientRequestToken?: string;
324
+ baseModelIdentifier: string | undefined;
325
+ customModelKmsKeyId?: string;
326
+ jobTags?: Tag[];
327
+ customModelTags?: Tag[];
328
+ trainingDataConfig: TrainingDataConfig | undefined;
329
+ validationDataConfig?: ValidationDataConfig;
330
+ outputDataConfig: OutputDataConfig | undefined;
331
+ hyperParameters: Record<string, string> | undefined;
332
+ vpcConfig?: VpcConfig;
333
+ }
334
+ export interface CreateModelCustomizationJobResponse {
335
+ jobArn: string | undefined;
336
+ }
337
+ export interface GetModelCustomizationJobRequest {
338
+ jobIdentifier: string | undefined;
339
+ }
340
+ export declare const ModelCustomizationJobStatus: {
341
+ readonly COMPLETED: "Completed";
342
+ readonly FAILED: "Failed";
343
+ readonly IN_PROGRESS: "InProgress";
344
+ readonly STOPPED: "Stopped";
345
+ readonly STOPPING: "Stopping";
346
+ };
347
+ export type ModelCustomizationJobStatus =
348
+ (typeof ModelCustomizationJobStatus)[keyof typeof ModelCustomizationJobStatus];
349
+ export interface GetModelCustomizationJobResponse {
350
+ jobArn: string | undefined;
351
+ jobName: string | undefined;
352
+ outputModelName: string | undefined;
353
+ outputModelArn?: string;
354
+ clientRequestToken?: string;
355
+ roleArn: string | undefined;
356
+ status?: ModelCustomizationJobStatus | string;
357
+ failureMessage?: string;
358
+ creationTime: Date | undefined;
359
+ lastModifiedTime?: Date;
360
+ endTime?: Date;
361
+ baseModelArn: string | undefined;
362
+ hyperParameters: Record<string, string> | undefined;
363
+ trainingDataConfig: TrainingDataConfig | undefined;
364
+ validationDataConfig: ValidationDataConfig | undefined;
365
+ outputDataConfig: OutputDataConfig | undefined;
366
+ outputModelKmsKeyArn?: string;
367
+ trainingMetrics?: TrainingMetrics;
368
+ validationMetrics?: ValidatorMetric[];
369
+ vpcConfig?: VpcConfig;
370
+ }
371
+ export declare const SortJobsBy: {
372
+ readonly CREATION_TIME: "CreationTime";
373
+ };
374
+ export type SortJobsBy = (typeof SortJobsBy)[keyof typeof SortJobsBy];
375
+ export declare const FineTuningJobStatus: {
376
+ readonly COMPLETED: "Completed";
377
+ readonly FAILED: "Failed";
378
+ readonly IN_PROGRESS: "InProgress";
379
+ readonly STOPPED: "Stopped";
380
+ readonly STOPPING: "Stopping";
381
+ };
382
+ export type FineTuningJobStatus =
383
+ (typeof FineTuningJobStatus)[keyof typeof FineTuningJobStatus];
384
+ export interface ListModelCustomizationJobsRequest {
385
+ creationTimeAfter?: Date;
386
+ creationTimeBefore?: Date;
387
+ statusEquals?: FineTuningJobStatus | string;
388
+ nameContains?: string;
389
+ maxResults?: number;
390
+ nextToken?: string;
391
+ sortBy?: SortJobsBy | string;
392
+ sortOrder?: SortOrder | string;
393
+ }
394
+ export interface ModelCustomizationJobSummary {
395
+ jobArn: string | undefined;
396
+ baseModelArn: string | undefined;
397
+ jobName: string | undefined;
398
+ status: ModelCustomizationJobStatus | string | undefined;
399
+ lastModifiedTime?: Date;
400
+ creationTime: Date | undefined;
401
+ endTime?: Date;
402
+ customModelArn?: string;
403
+ customModelName?: string;
404
+ }
405
+ export interface ListModelCustomizationJobsResponse {
406
+ nextToken?: string;
407
+ modelCustomizationJobSummaries?: ModelCustomizationJobSummary[];
408
+ }
409
+ export interface StopModelCustomizationJobRequest {
410
+ jobIdentifier: string | undefined;
411
+ }
412
+ export interface StopModelCustomizationJobResponse {}