@aws-sdk/client-bedrock 3.460.0 → 3.462.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  AWS SDK for JavaScript Bedrock Client for Node.js, Browser and React Native.
8
8
 
9
- <p>Describes the API operations for creating and managing Bedrock models.</p>
9
+ <p>Describes the API operations for creating and managing Amazon Bedrock models.</p>
10
10
 
11
11
  ## Installing
12
12
 
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FineTuningJobStatus = exports.SortJobsBy = exports.ModelCustomizationJobStatus = exports.SortByProvisionedModels = exports.ProvisionedModelStatus = exports.TooManyTagsException = exports.ServiceQuotaExceededException = exports.CommitmentDuration = exports.SortOrder = exports.SortModelsBy = exports.ModelModality = exports.InferenceType = exports.ModelCustomization = exports.ResourceNotFoundException = exports.ConflictException = exports.ValidationException = exports.ThrottlingException = exports.InternalServerException = exports.AccessDeniedException = void 0;
3
+ exports.FineTuningJobStatus = exports.SortJobsBy = exports.ModelCustomizationJobStatus = exports.SortByProvisionedModels = exports.ProvisionedModelStatus = exports.TooManyTagsException = exports.ServiceQuotaExceededException = exports.CommitmentDuration = exports.SortOrder = exports.SortModelsBy = exports.FoundationModelLifecycleStatus = exports.ModelModality = exports.InferenceType = exports.ModelCustomization = exports.CustomizationType = exports.ResourceNotFoundException = exports.ConflictException = exports.ValidationException = exports.ThrottlingException = exports.InternalServerException = exports.AccessDeniedException = void 0;
4
4
  const BedrockServiceException_1 = require("./BedrockServiceException");
5
5
  class AccessDeniedException extends BedrockServiceException_1.BedrockServiceException {
6
6
  constructor(opts) {
@@ -80,7 +80,12 @@ class ResourceNotFoundException extends BedrockServiceException_1.BedrockService
80
80
  }
81
81
  }
82
82
  exports.ResourceNotFoundException = ResourceNotFoundException;
83
+ exports.CustomizationType = {
84
+ CONTINUED_PRE_TRAINING: "CONTINUED_PRE_TRAINING",
85
+ FINE_TUNING: "FINE_TUNING",
86
+ };
83
87
  exports.ModelCustomization = {
88
+ CONTINUED_PRE_TRAINING: "CONTINUED_PRE_TRAINING",
84
89
  FINE_TUNING: "FINE_TUNING",
85
90
  };
86
91
  exports.InferenceType = {
@@ -92,6 +97,10 @@ exports.ModelModality = {
92
97
  IMAGE: "IMAGE",
93
98
  TEXT: "TEXT",
94
99
  };
100
+ exports.FoundationModelLifecycleStatus = {
101
+ ACTIVE: "ACTIVE",
102
+ LEGACY: "LEGACY",
103
+ };
95
104
  exports.SortModelsBy = {
96
105
  CREATION_TIME: "CreationTime",
97
106
  };
@@ -19,6 +19,7 @@ const se_CreateModelCustomizationJobCommand = async (input, context) => {
19
19
  customModelKmsKeyId: [],
20
20
  customModelName: [],
21
21
  customModelTags: (_) => (0, smithy_client_1._json)(_),
22
+ customizationType: [],
22
23
  hyperParameters: (_) => (0, smithy_client_1._json)(_),
23
24
  jobName: [],
24
25
  jobTags: (_) => (0, smithy_client_1._json)(_),
@@ -703,6 +704,7 @@ const de_GetCustomModelCommand = async (output, context) => {
703
704
  const doc = (0, smithy_client_1.take)(data, {
704
705
  baseModelArn: smithy_client_1.expectString,
705
706
  creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
707
+ customizationType: smithy_client_1.expectString,
706
708
  hyperParameters: smithy_client_1._json,
707
709
  jobArn: smithy_client_1.expectString,
708
710
  jobName: smithy_client_1.expectString,
@@ -808,6 +810,7 @@ const de_GetModelCustomizationJobCommand = async (output, context) => {
808
810
  baseModelArn: smithy_client_1.expectString,
809
811
  clientRequestToken: smithy_client_1.expectString,
810
812
  creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
813
+ customizationType: smithy_client_1.expectString,
811
814
  endTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
812
815
  failureMessage: smithy_client_1.expectString,
813
816
  hyperParameters: smithy_client_1._json,
@@ -1504,6 +1507,7 @@ const de_CustomModelSummary = (output, context) => {
1504
1507
  baseModelArn: smithy_client_1.expectString,
1505
1508
  baseModelName: smithy_client_1.expectString,
1506
1509
  creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1510
+ customizationType: smithy_client_1.expectString,
1507
1511
  modelArn: smithy_client_1.expectString,
1508
1512
  modelName: smithy_client_1.expectString,
1509
1513
  });
@@ -1530,6 +1534,7 @@ const de_ModelCustomizationJobSummary = (output, context) => {
1530
1534
  creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1531
1535
  customModelArn: smithy_client_1.expectString,
1532
1536
  customModelName: smithy_client_1.expectString,
1537
+ customizationType: smithy_client_1.expectString,
1533
1538
  endTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1534
1539
  jobArn: smithy_client_1.expectString,
1535
1540
  jobName: smithy_client_1.expectString,
@@ -71,7 +71,12 @@ export class ResourceNotFoundException extends __BaseException {
71
71
  Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
72
72
  }
73
73
  }
74
+ export const CustomizationType = {
75
+ CONTINUED_PRE_TRAINING: "CONTINUED_PRE_TRAINING",
76
+ FINE_TUNING: "FINE_TUNING",
77
+ };
74
78
  export const ModelCustomization = {
79
+ CONTINUED_PRE_TRAINING: "CONTINUED_PRE_TRAINING",
75
80
  FINE_TUNING: "FINE_TUNING",
76
81
  };
77
82
  export const InferenceType = {
@@ -83,6 +88,10 @@ export const ModelModality = {
83
88
  IMAGE: "IMAGE",
84
89
  TEXT: "TEXT",
85
90
  };
91
+ export const FoundationModelLifecycleStatus = {
92
+ ACTIVE: "ACTIVE",
93
+ LEGACY: "LEGACY",
94
+ };
86
95
  export const SortModelsBy = {
87
96
  CREATION_TIME: "CreationTime",
88
97
  };
@@ -16,6 +16,7 @@ export const se_CreateModelCustomizationJobCommand = async (input, context) => {
16
16
  customModelKmsKeyId: [],
17
17
  customModelName: [],
18
18
  customModelTags: (_) => _json(_),
19
+ customizationType: [],
19
20
  hyperParameters: (_) => _json(_),
20
21
  jobName: [],
21
22
  jobTags: (_) => _json(_),
@@ -675,6 +676,7 @@ export const de_GetCustomModelCommand = async (output, context) => {
675
676
  const doc = take(data, {
676
677
  baseModelArn: __expectString,
677
678
  creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
679
+ customizationType: __expectString,
678
680
  hyperParameters: _json,
679
681
  jobArn: __expectString,
680
682
  jobName: __expectString,
@@ -778,6 +780,7 @@ export const de_GetModelCustomizationJobCommand = async (output, context) => {
778
780
  baseModelArn: __expectString,
779
781
  clientRequestToken: __expectString,
780
782
  creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
783
+ customizationType: __expectString,
781
784
  endTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
782
785
  failureMessage: __expectString,
783
786
  hyperParameters: _json,
@@ -1461,6 +1464,7 @@ const de_CustomModelSummary = (output, context) => {
1461
1464
  baseModelArn: __expectString,
1462
1465
  baseModelName: __expectString,
1463
1466
  creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1467
+ customizationType: __expectString,
1464
1468
  modelArn: __expectString,
1465
1469
  modelName: __expectString,
1466
1470
  });
@@ -1487,6 +1491,7 @@ const de_ModelCustomizationJobSummary = (output, context) => {
1487
1491
  creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1488
1492
  customModelArn: __expectString,
1489
1493
  customModelName: __expectString,
1494
+ customizationType: __expectString,
1490
1495
  endTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1491
1496
  jobArn: __expectString,
1492
1497
  jobName: __expectString,
@@ -144,7 +144,7 @@ export interface Bedrock {
144
144
  }
145
145
  /**
146
146
  * @public
147
- * <p>Describes the API operations for creating and managing Bedrock models.</p>
147
+ * <p>Describes the API operations for creating and managing Amazon Bedrock models.</p>
148
148
  */
149
149
  export declare class Bedrock extends BedrockClient implements Bedrock {
150
150
  }
@@ -172,7 +172,7 @@ export interface BedrockClientResolvedConfig extends BedrockClientResolvedConfig
172
172
  }
173
173
  /**
174
174
  * @public
175
- * <p>Describes the API operations for creating and managing Bedrock models.</p>
175
+ * <p>Describes the API operations for creating and managing Amazon Bedrock models.</p>
176
176
  */
177
177
  export declare class BedrockClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, BedrockClientResolvedConfig> {
178
178
  /**
@@ -25,14 +25,14 @@ export interface CreateModelCustomizationJobCommandOutput extends CreateModelCus
25
25
  * @public
26
26
  * <p>Creates a fine-tuning job to customize a base model.</p>
27
27
  * <p>You specify the base foundation model and the location of the training data.
28
- * After the model-customization job completes successfully, your custom model resource will be ready to use. Training data
29
- * contains input and output text for each record in a JSONL format. Optionally, you can specify validation data
30
- * in the same format as the training data. Bedrock returns validation loss metrics and output generations
31
- * after the job completes.
32
- * </p>
28
+ * After the model-customization job completes successfully, your custom model resource will be ready to use. Training data
29
+ * contains input and output text for each record in a JSONL format. Optionally, you can specify validation data
30
+ * in the same format as the training data. Amazon Bedrock returns validation loss metrics and output generations
31
+ * after the job completes.
32
+ * </p>
33
33
  * <p>
34
- * Model-customization jobs are asynchronous and the completion time depends on the base model and the training/validation data size.
35
- * To monitor a job, use the <code>GetModelCustomizationJob</code> operation to retrieve the job status.</p>
34
+ * Model-customization jobs are asynchronous and the completion time depends on the base model and the training/validation data size.
35
+ * To monitor a job, use the <code>GetModelCustomizationJob</code> operation to retrieve the job status.</p>
36
36
  * <p>For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/custom-models.html">Custom models</a> in the Bedrock User Guide.</p>
37
37
  * @example
38
38
  * Use a bare-bones client and the command you need to make an API call.
@@ -46,6 +46,7 @@ export interface CreateModelCustomizationJobCommandOutput extends CreateModelCus
46
46
  * roleArn: "STRING_VALUE", // required
47
47
  * clientRequestToken: "STRING_VALUE",
48
48
  * baseModelIdentifier: "STRING_VALUE", // required
49
+ * customizationType: "FINE_TUNING" || "CONTINUED_PRE_TRAINING",
49
50
  * customModelKmsKeyId: "STRING_VALUE",
50
51
  * jobTags: [ // TagList
51
52
  * { // Tag
@@ -118,7 +119,7 @@ export interface CreateModelCustomizationJobCommandOutput extends CreateModelCus
118
119
  *
119
120
  * @throws {@link TooManyTagsException} (client fault)
120
121
  * <p>The request contains more tags than can be associated with a resource (50 tags per resource).
121
- * The maximum number of tags includes both existing tags and those included in your current request. </p>
122
+ * The maximum number of tags includes both existing tags and those included in your current request. </p>
122
123
  *
123
124
  * @throws {@link ValidationException} (client fault)
124
125
  * <p>Input validation failed. Check your request parameters and retry the request.</p>
@@ -75,7 +75,7 @@ export interface CreateProvisionedModelThroughputCommandOutput extends CreatePro
75
75
  *
76
76
  * @throws {@link TooManyTagsException} (client fault)
77
77
  * <p>The request contains more tags than can be associated with a resource (50 tags per resource).
78
- * The maximum number of tags includes both existing tags and those included in your current request. </p>
78
+ * The maximum number of tags includes both existing tags and those included in your current request. </p>
79
79
  *
80
80
  * @throws {@link ValidationException} (client fault)
81
81
  * <p>Input validation failed. Check your request parameters and retry the request.</p>
@@ -23,7 +23,7 @@ export interface GetCustomModelCommandOutput extends GetCustomModelResponse, __M
23
23
  }
24
24
  /**
25
25
  * @public
26
- * <p>Get the properties associated with a Bedrock custom model that you have created.For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/custom-models.html">Custom models</a> in the Bedrock User Guide.</p>
26
+ * <p>Get the properties associated with a Amazon Bedrock custom model that you have created.For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/custom-models.html">Custom models</a> in the Bedrock User Guide.</p>
27
27
  * @example
28
28
  * Use a bare-bones client and the command you need to make an API call.
29
29
  * ```javascript
@@ -41,6 +41,7 @@ export interface GetCustomModelCommandOutput extends GetCustomModelResponse, __M
41
41
  * // jobName: "STRING_VALUE",
42
42
  * // jobArn: "STRING_VALUE", // required
43
43
  * // baseModelArn: "STRING_VALUE", // required
44
+ * // customizationType: "FINE_TUNING" || "CONTINUED_PRE_TRAINING",
44
45
  * // modelKmsKeyArn: "STRING_VALUE",
45
46
  * // hyperParameters: { // ModelCustomizationHyperParameters
46
47
  * // "<keys>": "STRING_VALUE",
@@ -23,7 +23,7 @@ export interface GetFoundationModelCommandOutput extends GetFoundationModelRespo
23
23
  }
24
24
  /**
25
25
  * @public
26
- * <p>Get details about a Bedrock foundation model.</p>
26
+ * <p>Get details about a Amazon Bedrock foundation model.</p>
27
27
  * @example
28
28
  * Use a bare-bones client and the command you need to make an API call.
29
29
  * ```javascript
@@ -49,11 +49,14 @@ export interface GetFoundationModelCommandOutput extends GetFoundationModelRespo
49
49
  * // ],
50
50
  * // responseStreamingSupported: true || false,
51
51
  * // customizationsSupported: [ // ModelCustomizationList
52
- * // "FINE_TUNING",
52
+ * // "FINE_TUNING" || "CONTINUED_PRE_TRAINING",
53
53
  * // ],
54
54
  * // inferenceTypesSupported: [ // InferenceTypeList
55
55
  * // "ON_DEMAND" || "PROVISIONED",
56
56
  * // ],
57
+ * // modelLifecycle: { // FoundationModelLifecycle
58
+ * // status: "ACTIVE" || "LEGACY", // required
59
+ * // },
57
60
  * // },
58
61
  * // };
59
62
  *
@@ -24,7 +24,7 @@ export interface GetModelCustomizationJobCommandOutput extends GetModelCustomiza
24
24
  /**
25
25
  * @public
26
26
  * <p>Retrieves the properties associated with a model-customization job, including the status of the job.
27
- * For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/custom-models.html">Custom models</a> in the Bedrock User Guide.</p>
27
+ * For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/custom-models.html">Custom models</a> in the Bedrock User Guide.</p>
28
28
  * @example
29
29
  * Use a bare-bones client and the command you need to make an API call.
30
30
  * ```javascript
@@ -65,6 +65,7 @@ export interface GetModelCustomizationJobCommandOutput extends GetModelCustomiza
65
65
  * // outputDataConfig: { // OutputDataConfig
66
66
  * // s3Uri: "STRING_VALUE", // required
67
67
  * // },
68
+ * // customizationType: "FINE_TUNING" || "CONTINUED_PRE_TRAINING",
68
69
  * // outputModelKmsKeyArn: "STRING_VALUE",
69
70
  * // trainingMetrics: { // TrainingMetrics
70
71
  * // trainingLoss: Number("float"),
@@ -53,6 +53,7 @@ export interface ListCustomModelsCommandOutput extends ListCustomModelsResponse,
53
53
  * // creationTime: new Date("TIMESTAMP"), // required
54
54
  * // baseModelArn: "STRING_VALUE", // required
55
55
  * // baseModelName: "STRING_VALUE", // required
56
+ * // customizationType: "FINE_TUNING" || "CONTINUED_PRE_TRAINING",
56
57
  * // },
57
58
  * // ],
58
59
  * // };
@@ -23,7 +23,7 @@ export interface ListFoundationModelsCommandOutput extends ListFoundationModelsR
23
23
  }
24
24
  /**
25
25
  * @public
26
- * <p>List of Bedrock foundation models that you can use. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/foundation-models.html">Foundation models</a> in the Bedrock User Guide.</p>
26
+ * <p>List of Amazon Bedrock foundation models that you can use. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/foundation-models.html">Foundation models</a> in the Bedrock User Guide.</p>
27
27
  * @example
28
28
  * Use a bare-bones client and the command you need to make an API call.
29
29
  * ```javascript
@@ -32,7 +32,7 @@ export interface ListFoundationModelsCommandOutput extends ListFoundationModelsR
32
32
  * const client = new BedrockClient(config);
33
33
  * const input = { // ListFoundationModelsRequest
34
34
  * byProvider: "STRING_VALUE",
35
- * byCustomizationType: "FINE_TUNING",
35
+ * byCustomizationType: "FINE_TUNING" || "CONTINUED_PRE_TRAINING",
36
36
  * byOutputModality: "TEXT" || "IMAGE" || "EMBEDDING",
37
37
  * byInferenceType: "ON_DEMAND" || "PROVISIONED",
38
38
  * };
@@ -53,11 +53,14 @@ export interface ListFoundationModelsCommandOutput extends ListFoundationModelsR
53
53
  * // ],
54
54
  * // responseStreamingSupported: true || false,
55
55
  * // customizationsSupported: [ // ModelCustomizationList
56
- * // "FINE_TUNING",
56
+ * // "FINE_TUNING" || "CONTINUED_PRE_TRAINING",
57
57
  * // ],
58
58
  * // inferenceTypesSupported: [ // InferenceTypeList
59
59
  * // "ON_DEMAND" || "PROVISIONED",
60
60
  * // ],
61
+ * // modelLifecycle: { // FoundationModelLifecycle
62
+ * // status: "ACTIVE" || "LEGACY", // required
63
+ * // },
61
64
  * // },
62
65
  * // ],
63
66
  * // };
@@ -24,7 +24,7 @@ export interface ListModelCustomizationJobsCommandOutput extends ListModelCustom
24
24
  /**
25
25
  * @public
26
26
  * <p>Returns a list of model customization jobs that you have submitted. You can filter the jobs to return based on
27
- * one or more criteria.</p>
27
+ * one or more criteria.</p>
28
28
  * <p>For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/custom-models.html">Custom models</a> in the Bedrock User Guide.</p>
29
29
  * @example
30
30
  * Use a bare-bones client and the command you need to make an API call.
@@ -57,6 +57,7 @@ export interface ListModelCustomizationJobsCommandOutput extends ListModelCustom
57
57
  * // endTime: new Date("TIMESTAMP"),
58
58
  * // customModelArn: "STRING_VALUE",
59
59
  * // customModelName: "STRING_VALUE",
60
+ * // customizationType: "FINE_TUNING" || "CONTINUED_PRE_TRAINING",
60
61
  * // },
61
62
  * // ],
62
63
  * // };
@@ -65,7 +65,7 @@ export interface TagResourceCommandOutput extends TagResourceResponse, __Metadat
65
65
  *
66
66
  * @throws {@link TooManyTagsException} (client fault)
67
67
  * <p>The request contains more tags than can be associated with a resource (50 tags per resource).
68
- * The maximum number of tags includes both existing tags and those included in your current request. </p>
68
+ * The maximum number of tags includes both existing tags and those included in your current request. </p>
69
69
  *
70
70
  * @throws {@link ValidationException} (client fault)
71
71
  * <p>Input validation failed. Check your request parameters and retry the request.</p>
@@ -1,5 +1,5 @@
1
1
  /**
2
- * <p>Describes the API operations for creating and managing Bedrock models.</p>
2
+ * <p>Describes the API operations for creating and managing Amazon Bedrock models.</p>
3
3
  *
4
4
  * @packageDocumentation
5
5
  */
@@ -205,6 +205,18 @@ export interface GetCustomModelRequest {
205
205
  */
206
206
  modelIdentifier: string | undefined;
207
207
  }
208
+ /**
209
+ * @public
210
+ * @enum
211
+ */
212
+ export declare const CustomizationType: {
213
+ readonly CONTINUED_PRE_TRAINING: "CONTINUED_PRE_TRAINING";
214
+ readonly FINE_TUNING: "FINE_TUNING";
215
+ };
216
+ /**
217
+ * @public
218
+ */
219
+ export type CustomizationType = (typeof CustomizationType)[keyof typeof CustomizationType];
208
220
  /**
209
221
  * @public
210
222
  * <p>S3 Location of the output data.</p>
@@ -300,6 +312,11 @@ export interface GetCustomModelResponse {
300
312
  * <p>ARN of the base model.</p>
301
313
  */
302
314
  baseModelArn: string | undefined;
315
+ /**
316
+ * @public
317
+ * <p>The type of model customization.</p>
318
+ */
319
+ customizationType?: CustomizationType;
303
320
  /**
304
321
  * @public
305
322
  * <p>The custom model is encrypted at rest using this key.</p>
@@ -356,6 +373,7 @@ export interface GetFoundationModelRequest {
356
373
  * @enum
357
374
  */
358
375
  export declare const ModelCustomization: {
376
+ readonly CONTINUED_PRE_TRAINING: "CONTINUED_PRE_TRAINING";
359
377
  readonly FINE_TUNING: "FINE_TUNING";
360
378
  };
361
379
  /**
@@ -387,6 +405,29 @@ export declare const ModelModality: {
387
405
  * @public
388
406
  */
389
407
  export type ModelModality = (typeof ModelModality)[keyof typeof ModelModality];
408
+ /**
409
+ * @public
410
+ * @enum
411
+ */
412
+ export declare const FoundationModelLifecycleStatus: {
413
+ readonly ACTIVE: "ACTIVE";
414
+ readonly LEGACY: "LEGACY";
415
+ };
416
+ /**
417
+ * @public
418
+ */
419
+ export type FoundationModelLifecycleStatus = (typeof FoundationModelLifecycleStatus)[keyof typeof FoundationModelLifecycleStatus];
420
+ /**
421
+ * @public
422
+ * <p>Details about whether a model version is available or deprecated.</p>
423
+ */
424
+ export interface FoundationModelLifecycle {
425
+ /**
426
+ * @public
427
+ * <p>Specifies whether a model version is available (<code>ACTIVE</code>) or deprecated (<code>LEGACY</code>.</p>
428
+ */
429
+ status: FoundationModelLifecycleStatus | undefined;
430
+ }
390
431
  /**
391
432
  * @public
392
433
  * <p>Information about a foundation model.</p>
@@ -437,6 +478,11 @@ export interface FoundationModelDetails {
437
478
  * <p>The inference types that the model supports.</p>
438
479
  */
439
480
  inferenceTypesSupported?: InferenceType[];
481
+ /**
482
+ * @public
483
+ * <p>Contains details about whether a model version is available or deprecated</p>
484
+ */
485
+ modelLifecycle?: FoundationModelLifecycle;
440
486
  }
441
487
  /**
442
488
  * @public
@@ -507,7 +553,7 @@ export interface ListCustomModelsRequest {
507
553
  maxResults?: number;
508
554
  /**
509
555
  * @public
510
- * <p>Continuation token from the previous response, for Bedrock to list the next set of results.</p>
556
+ * <p>Continuation token from the previous response, for Amazon Bedrock to list the next set of results.</p>
511
557
  */
512
558
  nextToken?: string;
513
559
  /**
@@ -551,6 +597,11 @@ export interface CustomModelSummary {
551
597
  * <p>The base model name.</p>
552
598
  */
553
599
  baseModelName: string | undefined;
600
+ /**
601
+ * @public
602
+ * <p>Specifies whether to carry out continued pre-training of a model or whether to fine-tune it. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/custom-models.html">Custom models</a>.</p>
603
+ */
604
+ customizationType?: CustomizationType;
554
605
  }
555
606
  /**
556
607
  * @public
@@ -573,7 +624,7 @@ export interface ListCustomModelsResponse {
573
624
  export interface ListFoundationModelsRequest {
574
625
  /**
575
626
  * @public
576
- * <p>A Bedrock model provider.</p>
627
+ * <p>A Amazon Bedrock model provider.</p>
577
628
  */
578
629
  byProvider?: string;
579
630
  /**
@@ -642,6 +693,11 @@ export interface FoundationModelSummary {
642
693
  * <p>The inference types that the model supports.</p>
643
694
  */
644
695
  inferenceTypesSupported?: InferenceType[];
696
+ /**
697
+ * @public
698
+ * <p>Contains details about whether a model version is available or deprecated.</p>
699
+ */
700
+ modelLifecycle?: FoundationModelLifecycle;
645
701
  }
646
702
  /**
647
703
  * @public
@@ -649,7 +705,7 @@ export interface FoundationModelSummary {
649
705
  export interface ListFoundationModelsResponse {
650
706
  /**
651
707
  * @public
652
- * <p>A list of bedrock foundation models.</p>
708
+ * <p>A list of Amazon Bedrock foundation models.</p>
653
709
  */
654
710
  modelSummaries?: FoundationModelSummary[];
655
711
  }
@@ -688,7 +744,7 @@ export interface CreateProvisionedModelThroughputRequest {
688
744
  /**
689
745
  * @public
690
746
  * <p>Unique token value that you can provide. If this token matches a previous request,
691
- * Bedrock ignores the request, but does not return an error.</p>
747
+ * Amazon Bedrock ignores the request, but does not return an error.</p>
692
748
  */
693
749
  clientRequestToken?: string;
694
750
  /**
@@ -742,7 +798,7 @@ export declare class ServiceQuotaExceededException extends __BaseException {
742
798
  /**
743
799
  * @public
744
800
  * <p>The request contains more tags than can be associated with a resource (50 tags per resource).
745
- * The maximum number of tags includes both existing tags and those included in your current request. </p>
801
+ * The maximum number of tags includes both existing tags and those included in your current request. </p>
746
802
  */
747
803
  export declare class TooManyTagsException extends __BaseException {
748
804
  readonly name: "TooManyTagsException";
@@ -913,7 +969,7 @@ export interface ListProvisionedModelThroughputsRequest {
913
969
  maxResults?: number;
914
970
  /**
915
971
  * @public
916
- * <p>Continuation token from the previous response, for Bedrock to list the next set of results.</p>
972
+ * <p>Continuation token from the previous response, for Amazon Bedrock to list the next set of results.</p>
917
973
  */
918
974
  nextToken?: string;
919
975
  /**
@@ -1125,10 +1181,10 @@ export interface CreateModelCustomizationJobRequest {
1125
1181
  customModelName: string | undefined;
1126
1182
  /**
1127
1183
  * @public
1128
- * <p>The Amazon Resource Name (ARN) of an IAM role that Bedrock can assume to perform tasks on your behalf.
1129
- * For example, during model training, Bedrock needs your permission to read input data from an S3 bucket, write model artifacts to an S3 bucket.
1130
- * To pass this role to Bedrock, the caller of this API must have the <code>iam:PassRole</code> permission.
1131
- * </p>
1184
+ * <p>The Amazon Resource Name (ARN) of an IAM role that Amazon Bedrock can assume to perform tasks on your behalf.
1185
+ * For example, during model training, Amazon Bedrock needs your permission to read input data from an S3 bucket, write model artifacts to an S3 bucket.
1186
+ * To pass this role to Amazon Bedrock, the caller of this API must have the <code>iam:PassRole</code> permission.
1187
+ * </p>
1132
1188
  */
1133
1189
  roleArn: string | undefined;
1134
1190
  /**
@@ -1141,6 +1197,11 @@ export interface CreateModelCustomizationJobRequest {
1141
1197
  * <p>Name of the base model.</p>
1142
1198
  */
1143
1199
  baseModelIdentifier: string | undefined;
1200
+ /**
1201
+ * @public
1202
+ * <p>The customization type.</p>
1203
+ */
1204
+ customizationType?: CustomizationType;
1144
1205
  /**
1145
1206
  * @public
1146
1207
  * <p>The custom model is encrypted at rest using this key.</p>
@@ -1179,7 +1240,7 @@ export interface CreateModelCustomizationJobRequest {
1179
1240
  /**
1180
1241
  * @public
1181
1242
  * <p>VPC configuration (optional). Configuration parameters for the
1182
- * private Virtual Private Cloud (VPC) that contains the resources you are using for this job.</p>
1243
+ * private Virtual Private Cloud (VPC) that contains the resources you are using for this job.</p>
1183
1244
  */
1184
1245
  vpcConfig?: VpcConfig;
1185
1246
  }
@@ -1255,7 +1316,7 @@ export interface GetModelCustomizationJobResponse {
1255
1316
  /**
1256
1317
  * @public
1257
1318
  * <p>The status of the job. A successful job transitions from in-progress to completed when the output model is ready to use.
1258
- * If the job failed, the failure message contains information about why the job failed.</p>
1319
+ * If the job failed, the failure message contains information about why the job failed.</p>
1259
1320
  */
1260
1321
  status?: ModelCustomizationJobStatus;
1261
1322
  /**
@@ -1285,7 +1346,7 @@ export interface GetModelCustomizationJobResponse {
1285
1346
  baseModelArn: string | undefined;
1286
1347
  /**
1287
1348
  * @public
1288
- * <p>The hyperparameter values for the job.</p>
1349
+ * <p>The hyperparameter values for the job. For information about hyperparameters for specific models, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-guidelines.html">Guidelines for model customization</a>.</p>
1289
1350
  */
1290
1351
  hyperParameters: Record<string, string> | undefined;
1291
1352
  /**
@@ -1303,6 +1364,11 @@ export interface GetModelCustomizationJobResponse {
1303
1364
  * <p>Output data configuration </p>
1304
1365
  */
1305
1366
  outputDataConfig: OutputDataConfig | undefined;
1367
+ /**
1368
+ * @public
1369
+ * <p>The type of model customization.</p>
1370
+ */
1371
+ customizationType?: CustomizationType;
1306
1372
  /**
1307
1373
  * @public
1308
1374
  * <p>The custom model is encrypted at rest using this key.</p>
@@ -1381,7 +1447,7 @@ export interface ListModelCustomizationJobsRequest {
1381
1447
  maxResults?: number;
1382
1448
  /**
1383
1449
  * @public
1384
- * <p>Continuation token from the previous response, for Bedrock to list the next set of results.</p>
1450
+ * <p>Continuation token from the previous response, for Amazon Bedrock to list the next set of results.</p>
1385
1451
  */
1386
1452
  nextToken?: string;
1387
1453
  /**
@@ -1445,6 +1511,11 @@ export interface ModelCustomizationJobSummary {
1445
1511
  * <p>Name of the custom model.</p>
1446
1512
  */
1447
1513
  customModelName?: string;
1514
+ /**
1515
+ * @public
1516
+ * <p>Specifies whether to carry out continued pre-training of a model or whether to fine-tune it. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/custom-models.html">Custom models</a>.</p>
1517
+ */
1518
+ customizationType?: CustomizationType;
1448
1519
  }
1449
1520
  /**
1450
1521
  * @public
@@ -73,6 +73,12 @@ export declare class ResourceNotFoundException extends __BaseException {
73
73
  export interface GetCustomModelRequest {
74
74
  modelIdentifier: string | undefined;
75
75
  }
76
+ export declare const CustomizationType: {
77
+ readonly CONTINUED_PRE_TRAINING: "CONTINUED_PRE_TRAINING";
78
+ readonly FINE_TUNING: "FINE_TUNING";
79
+ };
80
+ export type CustomizationType =
81
+ (typeof CustomizationType)[keyof typeof CustomizationType];
76
82
  export interface OutputDataConfig {
77
83
  s3Uri: string | undefined;
78
84
  }
@@ -97,6 +103,7 @@ export interface GetCustomModelResponse {
97
103
  jobName?: string;
98
104
  jobArn: string | undefined;
99
105
  baseModelArn: string | undefined;
106
+ customizationType?: CustomizationType;
100
107
  modelKmsKeyArn?: string;
101
108
  hyperParameters?: Record<string, string>;
102
109
  trainingDataConfig: TrainingDataConfig | undefined;
@@ -110,6 +117,7 @@ export interface GetFoundationModelRequest {
110
117
  modelIdentifier: string | undefined;
111
118
  }
112
119
  export declare const ModelCustomization: {
120
+ readonly CONTINUED_PRE_TRAINING: "CONTINUED_PRE_TRAINING";
113
121
  readonly FINE_TUNING: "FINE_TUNING";
114
122
  };
115
123
  export type ModelCustomization =
@@ -125,6 +133,15 @@ export declare const ModelModality: {
125
133
  readonly TEXT: "TEXT";
126
134
  };
127
135
  export type ModelModality = (typeof ModelModality)[keyof typeof ModelModality];
136
+ export declare const FoundationModelLifecycleStatus: {
137
+ readonly ACTIVE: "ACTIVE";
138
+ readonly LEGACY: "LEGACY";
139
+ };
140
+ export type FoundationModelLifecycleStatus =
141
+ (typeof FoundationModelLifecycleStatus)[keyof typeof FoundationModelLifecycleStatus];
142
+ export interface FoundationModelLifecycle {
143
+ status: FoundationModelLifecycleStatus | undefined;
144
+ }
128
145
  export interface FoundationModelDetails {
129
146
  modelArn: string | undefined;
130
147
  modelId: string | undefined;
@@ -135,6 +152,7 @@ export interface FoundationModelDetails {
135
152
  responseStreamingSupported?: boolean;
136
153
  customizationsSupported?: ModelCustomization[];
137
154
  inferenceTypesSupported?: InferenceType[];
155
+ modelLifecycle?: FoundationModelLifecycle;
138
156
  }
139
157
  export interface GetFoundationModelResponse {
140
158
  modelDetails?: FoundationModelDetails;
@@ -165,6 +183,7 @@ export interface CustomModelSummary {
165
183
  creationTime: Date | undefined;
166
184
  baseModelArn: string | undefined;
167
185
  baseModelName: string | undefined;
186
+ customizationType?: CustomizationType;
168
187
  }
169
188
  export interface ListCustomModelsResponse {
170
189
  nextToken?: string;
@@ -186,6 +205,7 @@ export interface FoundationModelSummary {
186
205
  responseStreamingSupported?: boolean;
187
206
  customizationsSupported?: ModelCustomization[];
188
207
  inferenceTypesSupported?: InferenceType[];
208
+ modelLifecycle?: FoundationModelLifecycle;
189
209
  }
190
210
  export interface ListFoundationModelsResponse {
191
211
  modelSummaries?: FoundationModelSummary[];
@@ -322,6 +342,7 @@ export interface CreateModelCustomizationJobRequest {
322
342
  roleArn: string | undefined;
323
343
  clientRequestToken?: string;
324
344
  baseModelIdentifier: string | undefined;
345
+ customizationType?: CustomizationType;
325
346
  customModelKmsKeyId?: string;
326
347
  jobTags?: Tag[];
327
348
  customModelTags?: Tag[];
@@ -363,6 +384,7 @@ export interface GetModelCustomizationJobResponse {
363
384
  trainingDataConfig: TrainingDataConfig | undefined;
364
385
  validationDataConfig: ValidationDataConfig | undefined;
365
386
  outputDataConfig: OutputDataConfig | undefined;
387
+ customizationType?: CustomizationType;
366
388
  outputModelKmsKeyArn?: string;
367
389
  trainingMetrics?: TrainingMetrics;
368
390
  validationMetrics?: ValidatorMetric[];
@@ -401,6 +423,7 @@ export interface ModelCustomizationJobSummary {
401
423
  endTime?: Date;
402
424
  customModelArn?: string;
403
425
  customModelName?: string;
426
+ customizationType?: CustomizationType;
404
427
  }
405
428
  export interface ListModelCustomizationJobsResponse {
406
429
  nextToken?: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-bedrock",
3
3
  "description": "AWS SDK for JavaScript Bedrock Client for Node.js, Browser and React Native",
4
- "version": "3.460.0",
4
+ "version": "3.462.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,13 +21,13 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.460.0",
24
+ "@aws-sdk/client-sts": "3.462.0",
25
25
  "@aws-sdk/core": "3.451.0",
26
26
  "@aws-sdk/credential-provider-node": "3.460.0",
27
27
  "@aws-sdk/middleware-host-header": "3.460.0",
28
28
  "@aws-sdk/middleware-logger": "3.460.0",
29
29
  "@aws-sdk/middleware-recursion-detection": "3.460.0",
30
- "@aws-sdk/middleware-signing": "3.460.0",
30
+ "@aws-sdk/middleware-signing": "3.461.0",
31
31
  "@aws-sdk/middleware-user-agent": "3.460.0",
32
32
  "@aws-sdk/region-config-resolver": "3.451.0",
33
33
  "@aws-sdk/types": "3.460.0",