aws-sdk 2.1466.0 → 2.1468.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/CHANGELOG.md +18 -1
- package/README.md +1 -1
- package/apis/bedrock-2023-04-20.examples.json +5 -0
- package/apis/bedrock-2023-04-20.min.json +1062 -0
- package/apis/bedrock-2023-04-20.paginators.json +22 -0
- package/apis/bedrock-2023-04-20.waiters2.json +5 -0
- package/apis/bedrock-runtime-2023-09-30.examples.json +5 -0
- package/apis/bedrock-runtime-2023-09-30.min.json +191 -0
- package/apis/bedrock-runtime-2023-09-30.paginators.json +4 -0
- package/apis/ec2-2016-11-15.min.json +1292 -1235
- package/apis/iotfleetwise-2021-06-17.min.json +62 -13
- package/apis/metadata.json +7 -0
- package/apis/rds-2014-10-31.min.json +1 -0
- package/apis/sagemaker-2017-07-24.min.json +681 -662
- package/apis/sagemaker-featurestore-runtime-2020-07-01.min.json +9 -6
- package/clients/all.d.ts +2 -0
- package/clients/all.js +3 -1
- package/clients/bedrock.d.ts +1102 -0
- package/clients/bedrock.js +19 -0
- package/clients/bedrockruntime.d.ts +141 -0
- package/clients/bedrockruntime.js +18 -0
- package/clients/budgets.d.ts +8 -7
- package/clients/ec2.d.ts +70 -5
- package/clients/iotfleetwise.d.ts +71 -1
- package/clients/managedblockchain.d.ts +3 -3
- package/clients/rds.d.ts +35 -31
- package/clients/sagemaker.d.ts +58 -31
- package/clients/sagemakerfeaturestoreruntime.d.ts +7 -2
- package/clients/sts.d.ts +2 -1
- package/clients/transfer.d.ts +21 -21
- package/clients/wafv2.d.ts +2 -2
- package/dist/aws-sdk-core-react-native.js +2 -2
- package/dist/aws-sdk-react-native.js +90 -9
- package/dist/aws-sdk.js +1303 -1238
- package/dist/aws-sdk.min.js +74 -74
- package/lib/config_service_placeholders.d.ts +4 -0
- package/lib/core.js +1 -1
- package/package.json +1 -1
@@ -0,0 +1,1102 @@
|
|
1
|
+
import {Request} from '../lib/request';
|
2
|
+
import {Response} from '../lib/response';
|
3
|
+
import {AWSError} from '../lib/error';
|
4
|
+
import {Service} from '../lib/service';
|
5
|
+
import {ServiceConfigurationOptions} from '../lib/service';
|
6
|
+
import {ConfigBase as Config} from '../lib/config-base';
|
7
|
+
interface Blob {}
|
8
|
+
declare class Bedrock extends Service {
|
9
|
+
/**
|
10
|
+
* Constructs a service object. This object has one method for each API operation.
|
11
|
+
*/
|
12
|
+
constructor(options?: Bedrock.Types.ClientConfiguration)
|
13
|
+
config: Config & Bedrock.Types.ClientConfiguration;
|
14
|
+
/**
|
15
|
+
* 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.
|
16
|
+
*/
|
17
|
+
createModelCustomizationJob(params: Bedrock.Types.CreateModelCustomizationJobRequest, callback?: (err: AWSError, data: Bedrock.Types.CreateModelCustomizationJobResponse) => void): Request<Bedrock.Types.CreateModelCustomizationJobResponse, AWSError>;
|
18
|
+
/**
|
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
|
+
*/
|
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>;
|
30
|
+
/**
|
31
|
+
* Deletes a custom model that you created earlier. For more information, see Custom models in the Bedrock User Guide.
|
32
|
+
*/
|
33
|
+
deleteCustomModel(params: Bedrock.Types.DeleteCustomModelRequest, callback?: (err: AWSError, data: Bedrock.Types.DeleteCustomModelResponse) => void): Request<Bedrock.Types.DeleteCustomModelResponse, AWSError>;
|
34
|
+
/**
|
35
|
+
* Deletes a custom model that you created earlier. For more information, see Custom models in the Bedrock User Guide.
|
36
|
+
*/
|
37
|
+
deleteCustomModel(callback?: (err: AWSError, data: Bedrock.Types.DeleteCustomModelResponse) => void): Request<Bedrock.Types.DeleteCustomModelResponse, AWSError>;
|
38
|
+
/**
|
39
|
+
* Delete the invocation logging.
|
40
|
+
*/
|
41
|
+
deleteModelInvocationLoggingConfiguration(params: Bedrock.Types.DeleteModelInvocationLoggingConfigurationRequest, callback?: (err: AWSError, data: Bedrock.Types.DeleteModelInvocationLoggingConfigurationResponse) => void): Request<Bedrock.Types.DeleteModelInvocationLoggingConfigurationResponse, AWSError>;
|
42
|
+
/**
|
43
|
+
* Delete the invocation logging.
|
44
|
+
*/
|
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>;
|
54
|
+
/**
|
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.
|
56
|
+
*/
|
57
|
+
getCustomModel(params: Bedrock.Types.GetCustomModelRequest, callback?: (err: AWSError, data: Bedrock.Types.GetCustomModelResponse) => void): Request<Bedrock.Types.GetCustomModelResponse, AWSError>;
|
58
|
+
/**
|
59
|
+
* Get the properties associated with a Bedrock custom model that you have created.For more information, see Custom models in the Bedrock User Guide.
|
60
|
+
*/
|
61
|
+
getCustomModel(callback?: (err: AWSError, data: Bedrock.Types.GetCustomModelResponse) => void): Request<Bedrock.Types.GetCustomModelResponse, AWSError>;
|
62
|
+
/**
|
63
|
+
* Get details about a Bedrock foundation model.
|
64
|
+
*/
|
65
|
+
getFoundationModel(params: Bedrock.Types.GetFoundationModelRequest, callback?: (err: AWSError, data: Bedrock.Types.GetFoundationModelResponse) => void): Request<Bedrock.Types.GetFoundationModelResponse, AWSError>;
|
66
|
+
/**
|
67
|
+
* Get details about a Bedrock foundation model.
|
68
|
+
*/
|
69
|
+
getFoundationModel(callback?: (err: AWSError, data: Bedrock.Types.GetFoundationModelResponse) => void): Request<Bedrock.Types.GetFoundationModelResponse, AWSError>;
|
70
|
+
/**
|
71
|
+
* Retrieves the properties associated with a model-customization job, including the status of the job. For more information, see Custom models in the Bedrock User Guide.
|
72
|
+
*/
|
73
|
+
getModelCustomizationJob(params: Bedrock.Types.GetModelCustomizationJobRequest, callback?: (err: AWSError, data: Bedrock.Types.GetModelCustomizationJobResponse) => void): Request<Bedrock.Types.GetModelCustomizationJobResponse, AWSError>;
|
74
|
+
/**
|
75
|
+
* Retrieves the properties associated with a model-customization job, including the status of the job. For more information, see Custom models in the Bedrock User Guide.
|
76
|
+
*/
|
77
|
+
getModelCustomizationJob(callback?: (err: AWSError, data: Bedrock.Types.GetModelCustomizationJobResponse) => void): Request<Bedrock.Types.GetModelCustomizationJobResponse, AWSError>;
|
78
|
+
/**
|
79
|
+
* Get the current configuration values for model invocation logging.
|
80
|
+
*/
|
81
|
+
getModelInvocationLoggingConfiguration(params: Bedrock.Types.GetModelInvocationLoggingConfigurationRequest, callback?: (err: AWSError, data: Bedrock.Types.GetModelInvocationLoggingConfigurationResponse) => void): Request<Bedrock.Types.GetModelInvocationLoggingConfigurationResponse, AWSError>;
|
82
|
+
/**
|
83
|
+
* Get the current configuration values for model invocation logging.
|
84
|
+
*/
|
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>;
|
94
|
+
/**
|
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.
|
96
|
+
*/
|
97
|
+
listCustomModels(params: Bedrock.Types.ListCustomModelsRequest, callback?: (err: AWSError, data: Bedrock.Types.ListCustomModelsResponse) => void): Request<Bedrock.Types.ListCustomModelsResponse, AWSError>;
|
98
|
+
/**
|
99
|
+
* 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.
|
100
|
+
*/
|
101
|
+
listCustomModels(callback?: (err: AWSError, data: Bedrock.Types.ListCustomModelsResponse) => void): Request<Bedrock.Types.ListCustomModelsResponse, AWSError>;
|
102
|
+
/**
|
103
|
+
* List of Bedrock foundation models that you can use. For more information, see Foundation models in the Bedrock User Guide.
|
104
|
+
*/
|
105
|
+
listFoundationModels(params: Bedrock.Types.ListFoundationModelsRequest, callback?: (err: AWSError, data: Bedrock.Types.ListFoundationModelsResponse) => void): Request<Bedrock.Types.ListFoundationModelsResponse, AWSError>;
|
106
|
+
/**
|
107
|
+
* List of Bedrock foundation models that you can use. For more information, see Foundation models in the Bedrock User Guide.
|
108
|
+
*/
|
109
|
+
listFoundationModels(callback?: (err: AWSError, data: Bedrock.Types.ListFoundationModelsResponse) => void): Request<Bedrock.Types.ListFoundationModelsResponse, AWSError>;
|
110
|
+
/**
|
111
|
+
* 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.
|
112
|
+
*/
|
113
|
+
listModelCustomizationJobs(params: Bedrock.Types.ListModelCustomizationJobsRequest, callback?: (err: AWSError, data: Bedrock.Types.ListModelCustomizationJobsResponse) => void): Request<Bedrock.Types.ListModelCustomizationJobsResponse, AWSError>;
|
114
|
+
/**
|
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.
|
116
|
+
*/
|
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>;
|
126
|
+
/**
|
127
|
+
* List the tags associated with the specified resource. For more information, see Tagging resources in the Bedrock User Guide.
|
128
|
+
*/
|
129
|
+
listTagsForResource(params: Bedrock.Types.ListTagsForResourceRequest, callback?: (err: AWSError, data: Bedrock.Types.ListTagsForResourceResponse) => void): Request<Bedrock.Types.ListTagsForResourceResponse, AWSError>;
|
130
|
+
/**
|
131
|
+
* List the tags associated with the specified resource. For more information, see Tagging resources in the Bedrock User Guide.
|
132
|
+
*/
|
133
|
+
listTagsForResource(callback?: (err: AWSError, data: Bedrock.Types.ListTagsForResourceResponse) => void): Request<Bedrock.Types.ListTagsForResourceResponse, AWSError>;
|
134
|
+
/**
|
135
|
+
* Set the configuration values for model invocation logging.
|
136
|
+
*/
|
137
|
+
putModelInvocationLoggingConfiguration(params: Bedrock.Types.PutModelInvocationLoggingConfigurationRequest, callback?: (err: AWSError, data: Bedrock.Types.PutModelInvocationLoggingConfigurationResponse) => void): Request<Bedrock.Types.PutModelInvocationLoggingConfigurationResponse, AWSError>;
|
138
|
+
/**
|
139
|
+
* Set the configuration values for model invocation logging.
|
140
|
+
*/
|
141
|
+
putModelInvocationLoggingConfiguration(callback?: (err: AWSError, data: Bedrock.Types.PutModelInvocationLoggingConfigurationResponse) => void): Request<Bedrock.Types.PutModelInvocationLoggingConfigurationResponse, AWSError>;
|
142
|
+
/**
|
143
|
+
* Stops an active model customization job. For more information, see Custom models in the Bedrock User Guide.
|
144
|
+
*/
|
145
|
+
stopModelCustomizationJob(params: Bedrock.Types.StopModelCustomizationJobRequest, callback?: (err: AWSError, data: Bedrock.Types.StopModelCustomizationJobResponse) => void): Request<Bedrock.Types.StopModelCustomizationJobResponse, AWSError>;
|
146
|
+
/**
|
147
|
+
* Stops an active model customization job. For more information, see Custom models in the Bedrock User Guide.
|
148
|
+
*/
|
149
|
+
stopModelCustomizationJob(callback?: (err: AWSError, data: Bedrock.Types.StopModelCustomizationJobResponse) => void): Request<Bedrock.Types.StopModelCustomizationJobResponse, AWSError>;
|
150
|
+
/**
|
151
|
+
* Associate tags with a resource. For more information, see Tagging resources in the Bedrock User Guide.
|
152
|
+
*/
|
153
|
+
tagResource(params: Bedrock.Types.TagResourceRequest, callback?: (err: AWSError, data: Bedrock.Types.TagResourceResponse) => void): Request<Bedrock.Types.TagResourceResponse, AWSError>;
|
154
|
+
/**
|
155
|
+
* Associate tags with a resource. For more information, see Tagging resources in the Bedrock User Guide.
|
156
|
+
*/
|
157
|
+
tagResource(callback?: (err: AWSError, data: Bedrock.Types.TagResourceResponse) => void): Request<Bedrock.Types.TagResourceResponse, AWSError>;
|
158
|
+
/**
|
159
|
+
* Remove one or more tags from a resource. For more information, see Tagging resources in the Bedrock User Guide.
|
160
|
+
*/
|
161
|
+
untagResource(params: Bedrock.Types.UntagResourceRequest, callback?: (err: AWSError, data: Bedrock.Types.UntagResourceResponse) => void): Request<Bedrock.Types.UntagResourceResponse, AWSError>;
|
162
|
+
/**
|
163
|
+
* Remove one or more tags from a resource. For more information, see Tagging resources in the Bedrock User Guide.
|
164
|
+
*/
|
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>;
|
174
|
+
}
|
175
|
+
declare namespace Bedrock {
|
176
|
+
export type BaseModelIdentifier = string;
|
177
|
+
export type BedrockModelId = string;
|
178
|
+
export type Boolean = boolean;
|
179
|
+
export type BrandedName = string;
|
180
|
+
export type BucketName = string;
|
181
|
+
export interface CloudWatchConfig {
|
182
|
+
/**
|
183
|
+
* The log group name.
|
184
|
+
*/
|
185
|
+
logGroupName: LogGroupName;
|
186
|
+
/**
|
187
|
+
* The role ARN.
|
188
|
+
*/
|
189
|
+
roleArn: RoleArn;
|
190
|
+
/**
|
191
|
+
* S3 configuration for delivering a large amount of data.
|
192
|
+
*/
|
193
|
+
largeDataDeliveryS3Config?: S3Config;
|
194
|
+
}
|
195
|
+
export type CommitmentDuration = "OneMonth"|"SixMonths"|string;
|
196
|
+
export interface CreateModelCustomizationJobRequest {
|
197
|
+
/**
|
198
|
+
* Enter a unique name for the fine-tuning job.
|
199
|
+
*/
|
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;
|
209
|
+
/**
|
210
|
+
* Unique token value that you can provide. The GetModelCustomizationJob response includes the same token value.
|
211
|
+
*/
|
212
|
+
clientRequestToken?: IdempotencyToken;
|
213
|
+
/**
|
214
|
+
* Name of the base model.
|
215
|
+
*/
|
216
|
+
baseModelIdentifier: BaseModelIdentifier;
|
217
|
+
/**
|
218
|
+
* The custom model is encrypted at rest using this key.
|
219
|
+
*/
|
220
|
+
customModelKmsKeyId?: KmsKeyId;
|
221
|
+
/**
|
222
|
+
* Assign tags to the job.
|
223
|
+
*/
|
224
|
+
jobTags?: TagList;
|
225
|
+
/**
|
226
|
+
* Assign tags to the custom model.
|
227
|
+
*/
|
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;
|
241
|
+
/**
|
242
|
+
* Parameters related to tuning the model.
|
243
|
+
*/
|
244
|
+
hyperParameters: ModelCustomizationHyperParameters;
|
245
|
+
/**
|
246
|
+
* VPC configuration (optional). Configuration parameters for the private Virtual Private Cloud (VPC) that contains the resources you are using for this job.
|
247
|
+
*/
|
248
|
+
vpcConfig?: VpcConfig;
|
249
|
+
}
|
250
|
+
export interface CreateModelCustomizationJobResponse {
|
251
|
+
/**
|
252
|
+
* ARN of the fine tuning job
|
253
|
+
*/
|
254
|
+
jobArn: ModelCustomizationJobArn;
|
255
|
+
}
|
256
|
+
export interface CreateProvisionedModelThroughputRequest {
|
257
|
+
/**
|
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.
|
259
|
+
*/
|
260
|
+
clientRequestToken?: IdempotencyToken;
|
261
|
+
/**
|
262
|
+
* Number of model units to allocate.
|
263
|
+
*/
|
264
|
+
modelUnits: PositiveInteger;
|
265
|
+
/**
|
266
|
+
* Unique name for this provisioned throughput.
|
267
|
+
*/
|
268
|
+
provisionedModelName: ProvisionedModelName;
|
269
|
+
/**
|
270
|
+
* Name or ARN of the model to associate with this provisioned throughput.
|
271
|
+
*/
|
272
|
+
modelId: ModelIdentifier;
|
273
|
+
/**
|
274
|
+
* Commitment duration requested for the provisioned throughput.
|
275
|
+
*/
|
276
|
+
commitmentDuration?: CommitmentDuration;
|
277
|
+
/**
|
278
|
+
* Tags to associate with this provisioned throughput.
|
279
|
+
*/
|
280
|
+
tags?: TagList;
|
281
|
+
}
|
282
|
+
export interface CreateProvisionedModelThroughputResponse {
|
283
|
+
/**
|
284
|
+
* The ARN for this provisioned throughput.
|
285
|
+
*/
|
286
|
+
provisionedModelArn: ProvisionedModelArn;
|
287
|
+
}
|
288
|
+
export type CustomModelArn = string;
|
289
|
+
export type CustomModelName = string;
|
290
|
+
export interface CustomModelSummary {
|
291
|
+
/**
|
292
|
+
* The ARN of the custom model.
|
293
|
+
*/
|
294
|
+
modelArn: CustomModelArn;
|
295
|
+
/**
|
296
|
+
* The name of the custom model.
|
297
|
+
*/
|
298
|
+
modelName: CustomModelName;
|
299
|
+
/**
|
300
|
+
* Creation time of the model.
|
301
|
+
*/
|
302
|
+
creationTime: Timestamp;
|
303
|
+
/**
|
304
|
+
* The base model ARN.
|
305
|
+
*/
|
306
|
+
baseModelArn: ModelArn;
|
307
|
+
/**
|
308
|
+
* The base model name.
|
309
|
+
*/
|
310
|
+
baseModelName: ModelName;
|
311
|
+
}
|
312
|
+
export type CustomModelSummaryList = CustomModelSummary[];
|
313
|
+
export interface DeleteCustomModelRequest {
|
314
|
+
/**
|
315
|
+
* Name of the model to delete.
|
316
|
+
*/
|
317
|
+
modelIdentifier: ModelIdentifier;
|
318
|
+
}
|
319
|
+
export interface DeleteCustomModelResponse {
|
320
|
+
}
|
321
|
+
export interface DeleteModelInvocationLoggingConfigurationRequest {
|
322
|
+
}
|
323
|
+
export interface DeleteModelInvocationLoggingConfigurationResponse {
|
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
|
+
}
|
333
|
+
export type ErrorMessage = string;
|
334
|
+
export type FineTuningJobStatus = "InProgress"|"Completed"|"Failed"|"Stopping"|"Stopped"|string;
|
335
|
+
export type FoundationModelArn = string;
|
336
|
+
export interface FoundationModelDetails {
|
337
|
+
/**
|
338
|
+
* The model ARN.
|
339
|
+
*/
|
340
|
+
modelArn: FoundationModelArn;
|
341
|
+
/**
|
342
|
+
* The model identifier.
|
343
|
+
*/
|
344
|
+
modelId: BedrockModelId;
|
345
|
+
/**
|
346
|
+
* The model name.
|
347
|
+
*/
|
348
|
+
modelName?: BrandedName;
|
349
|
+
/**
|
350
|
+
* he model's provider name.
|
351
|
+
*/
|
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;
|
361
|
+
/**
|
362
|
+
* Indicates whether the model supports streaming.
|
363
|
+
*/
|
364
|
+
responseStreamingSupported?: Boolean;
|
365
|
+
/**
|
366
|
+
* The customization that the model supports.
|
367
|
+
*/
|
368
|
+
customizationsSupported?: ModelCustomizationList;
|
369
|
+
/**
|
370
|
+
* The inference types that the model supports.
|
371
|
+
*/
|
372
|
+
inferenceTypesSupported?: InferenceTypeList;
|
373
|
+
}
|
374
|
+
export interface FoundationModelSummary {
|
375
|
+
/**
|
376
|
+
* The ARN of the foundation model.
|
377
|
+
*/
|
378
|
+
modelArn: FoundationModelArn;
|
379
|
+
/**
|
380
|
+
* The model Id of the foundation model.
|
381
|
+
*/
|
382
|
+
modelId: BedrockModelId;
|
383
|
+
/**
|
384
|
+
* The name of the model.
|
385
|
+
*/
|
386
|
+
modelName?: BrandedName;
|
387
|
+
/**
|
388
|
+
* The model's provider name.
|
389
|
+
*/
|
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;
|
399
|
+
/**
|
400
|
+
* Indicates whether the model supports streaming.
|
401
|
+
*/
|
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;
|
411
|
+
}
|
412
|
+
export type FoundationModelSummaryList = FoundationModelSummary[];
|
413
|
+
export interface GetCustomModelRequest {
|
414
|
+
/**
|
415
|
+
* Name or ARN of the custom model.
|
416
|
+
*/
|
417
|
+
modelIdentifier: ModelIdentifier;
|
418
|
+
}
|
419
|
+
export interface GetCustomModelResponse {
|
420
|
+
/**
|
421
|
+
* ARN associated with this model.
|
422
|
+
*/
|
423
|
+
modelArn: ModelArn;
|
424
|
+
/**
|
425
|
+
* Model name associated with this model.
|
426
|
+
*/
|
427
|
+
modelName: CustomModelName;
|
428
|
+
/**
|
429
|
+
* Job name associated with this model.
|
430
|
+
*/
|
431
|
+
jobName?: JobName;
|
432
|
+
/**
|
433
|
+
* Job ARN associated with this model.
|
434
|
+
*/
|
435
|
+
jobArn: ModelCustomizationJobArn;
|
436
|
+
/**
|
437
|
+
* ARN of the base model.
|
438
|
+
*/
|
439
|
+
baseModelArn: ModelArn;
|
440
|
+
/**
|
441
|
+
* The custom model is encrypted at rest using this key.
|
442
|
+
*/
|
443
|
+
modelKmsKeyArn?: KmsKeyArn;
|
444
|
+
/**
|
445
|
+
* Hyperparameter values associated with this model.
|
446
|
+
*/
|
447
|
+
hyperParameters?: ModelCustomizationHyperParameters;
|
448
|
+
/**
|
449
|
+
* Information about the training dataset.
|
450
|
+
*/
|
451
|
+
trainingDataConfig: TrainingDataConfig;
|
452
|
+
validationDataConfig?: ValidationDataConfig;
|
453
|
+
/**
|
454
|
+
* Output data configuration associated with this custom model.
|
455
|
+
*/
|
456
|
+
outputDataConfig: OutputDataConfig;
|
457
|
+
/**
|
458
|
+
* The training metrics from the job creation.
|
459
|
+
*/
|
460
|
+
trainingMetrics?: TrainingMetrics;
|
461
|
+
/**
|
462
|
+
* The validation metrics from the job creation.
|
463
|
+
*/
|
464
|
+
validationMetrics?: ValidationMetrics;
|
465
|
+
/**
|
466
|
+
* Creation time of the model.
|
467
|
+
*/
|
468
|
+
creationTime: Timestamp;
|
469
|
+
}
|
470
|
+
export interface GetFoundationModelRequest {
|
471
|
+
/**
|
472
|
+
* The model identifier.
|
473
|
+
*/
|
474
|
+
modelIdentifier: ModelIdentifier;
|
475
|
+
}
|
476
|
+
export interface GetFoundationModelResponse {
|
477
|
+
/**
|
478
|
+
* Information about the foundation model.
|
479
|
+
*/
|
480
|
+
modelDetails?: FoundationModelDetails;
|
481
|
+
}
|
482
|
+
export interface GetModelCustomizationJobRequest {
|
483
|
+
/**
|
484
|
+
* Identifier for the customization job.
|
485
|
+
*/
|
486
|
+
jobIdentifier: ModelCustomizationJobIdentifier;
|
487
|
+
}
|
488
|
+
export interface GetModelCustomizationJobResponse {
|
489
|
+
/**
|
490
|
+
* The ARN of the customization job.
|
491
|
+
*/
|
492
|
+
jobArn: ModelCustomizationJobArn;
|
493
|
+
/**
|
494
|
+
* The name of the customization job.
|
495
|
+
*/
|
496
|
+
jobName: JobName;
|
497
|
+
/**
|
498
|
+
* The name of the output model.
|
499
|
+
*/
|
500
|
+
outputModelName: CustomModelName;
|
501
|
+
/**
|
502
|
+
* The ARN of the output model.
|
503
|
+
*/
|
504
|
+
outputModelArn?: CustomModelArn;
|
505
|
+
/**
|
506
|
+
* The token that you specified in the CreateCustomizationJob request.
|
507
|
+
*/
|
508
|
+
clientRequestToken?: IdempotencyToken;
|
509
|
+
/**
|
510
|
+
* The ARN of the IAM role.
|
511
|
+
*/
|
512
|
+
roleArn: RoleArn;
|
513
|
+
/**
|
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.
|
515
|
+
*/
|
516
|
+
status?: ModelCustomizationJobStatus;
|
517
|
+
/**
|
518
|
+
* Information about why the job failed.
|
519
|
+
*/
|
520
|
+
failureMessage?: ErrorMessage;
|
521
|
+
/**
|
522
|
+
* Time that the resource was created.
|
523
|
+
*/
|
524
|
+
creationTime: Timestamp;
|
525
|
+
/**
|
526
|
+
* Time that the resource was last modified.
|
527
|
+
*/
|
528
|
+
lastModifiedTime?: Timestamp;
|
529
|
+
/**
|
530
|
+
* Time that the resource transitioned to terminal state.
|
531
|
+
*/
|
532
|
+
endTime?: Timestamp;
|
533
|
+
/**
|
534
|
+
* ARN of the base model.
|
535
|
+
*/
|
536
|
+
baseModelArn: FoundationModelArn;
|
537
|
+
/**
|
538
|
+
* The hyperparameter values for the job.
|
539
|
+
*/
|
540
|
+
hyperParameters: ModelCustomizationHyperParameters;
|
541
|
+
trainingDataConfig: TrainingDataConfig;
|
542
|
+
validationDataConfig: ValidationDataConfig;
|
543
|
+
/**
|
544
|
+
* Output data configuration
|
545
|
+
*/
|
546
|
+
outputDataConfig: OutputDataConfig;
|
547
|
+
/**
|
548
|
+
* The custom model is encrypted at rest using this key.
|
549
|
+
*/
|
550
|
+
outputModelKmsKeyArn?: KmsKeyArn;
|
551
|
+
trainingMetrics?: TrainingMetrics;
|
552
|
+
/**
|
553
|
+
* The loss metric for each validator that you provided in the createjob request.
|
554
|
+
*/
|
555
|
+
validationMetrics?: ValidationMetrics;
|
556
|
+
/**
|
557
|
+
* VPC configuration for the custom model job.
|
558
|
+
*/
|
559
|
+
vpcConfig?: VpcConfig;
|
560
|
+
}
|
561
|
+
export interface GetModelInvocationLoggingConfigurationRequest {
|
562
|
+
}
|
563
|
+
export interface GetModelInvocationLoggingConfigurationResponse {
|
564
|
+
/**
|
565
|
+
* The current configuration values.
|
566
|
+
*/
|
567
|
+
loggingConfig?: LoggingConfig;
|
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
|
+
}
|
629
|
+
export type IdempotencyToken = string;
|
630
|
+
export type InferenceType = "ON_DEMAND"|"PROVISIONED"|string;
|
631
|
+
export type InferenceTypeList = InferenceType[];
|
632
|
+
export type JobName = string;
|
633
|
+
export type KeyPrefix = string;
|
634
|
+
export type KmsKeyArn = string;
|
635
|
+
export type KmsKeyId = string;
|
636
|
+
export interface ListCustomModelsRequest {
|
637
|
+
/**
|
638
|
+
* Return custom models created before the specified time.
|
639
|
+
*/
|
640
|
+
creationTimeBefore?: Timestamp;
|
641
|
+
/**
|
642
|
+
* Return custom models created after the specified time.
|
643
|
+
*/
|
644
|
+
creationTimeAfter?: Timestamp;
|
645
|
+
/**
|
646
|
+
* Return custom models only if the job name contains these characters.
|
647
|
+
*/
|
648
|
+
nameContains?: CustomModelName;
|
649
|
+
/**
|
650
|
+
* Return custom models only if the base model ARN matches this parameter.
|
651
|
+
*/
|
652
|
+
baseModelArnEquals?: ModelArn;
|
653
|
+
/**
|
654
|
+
* Return custom models only if the foundation model ARN matches this parameter.
|
655
|
+
*/
|
656
|
+
foundationModelArnEquals?: FoundationModelArn;
|
657
|
+
/**
|
658
|
+
* Maximum number of results to return in the response.
|
659
|
+
*/
|
660
|
+
maxResults?: MaxResults;
|
661
|
+
/**
|
662
|
+
* Continuation token from the previous response, for Bedrock to list the next set of results.
|
663
|
+
*/
|
664
|
+
nextToken?: PaginationToken;
|
665
|
+
/**
|
666
|
+
* The field to sort by in the returned list of models.
|
667
|
+
*/
|
668
|
+
sortBy?: SortModelsBy;
|
669
|
+
/**
|
670
|
+
* The sort order of the results.
|
671
|
+
*/
|
672
|
+
sortOrder?: SortOrder;
|
673
|
+
}
|
674
|
+
export interface ListCustomModelsResponse {
|
675
|
+
/**
|
676
|
+
* Continuation token for the next request to list the next set of results.
|
677
|
+
*/
|
678
|
+
nextToken?: PaginationToken;
|
679
|
+
/**
|
680
|
+
* Model summaries.
|
681
|
+
*/
|
682
|
+
modelSummaries?: CustomModelSummaryList;
|
683
|
+
}
|
684
|
+
export interface ListFoundationModelsRequest {
|
685
|
+
/**
|
686
|
+
* A Bedrock model provider.
|
687
|
+
*/
|
688
|
+
byProvider?: Provider;
|
689
|
+
/**
|
690
|
+
* List by customization type.
|
691
|
+
*/
|
692
|
+
byCustomizationType?: ModelCustomization;
|
693
|
+
/**
|
694
|
+
* List by output modality type.
|
695
|
+
*/
|
696
|
+
byOutputModality?: ModelModality;
|
697
|
+
/**
|
698
|
+
* List by inference type.
|
699
|
+
*/
|
700
|
+
byInferenceType?: InferenceType;
|
701
|
+
}
|
702
|
+
export interface ListFoundationModelsResponse {
|
703
|
+
/**
|
704
|
+
* A list of bedrock foundation models.
|
705
|
+
*/
|
706
|
+
modelSummaries?: FoundationModelSummaryList;
|
707
|
+
}
|
708
|
+
export interface ListModelCustomizationJobsRequest {
|
709
|
+
/**
|
710
|
+
* Return customization jobs created after the specified time.
|
711
|
+
*/
|
712
|
+
creationTimeAfter?: Timestamp;
|
713
|
+
/**
|
714
|
+
* Return customization jobs created before the specified time.
|
715
|
+
*/
|
716
|
+
creationTimeBefore?: Timestamp;
|
717
|
+
/**
|
718
|
+
* Return customization jobs with the specified status.
|
719
|
+
*/
|
720
|
+
statusEquals?: FineTuningJobStatus;
|
721
|
+
/**
|
722
|
+
* Return customization jobs only if the job name contains these characters.
|
723
|
+
*/
|
724
|
+
nameContains?: JobName;
|
725
|
+
/**
|
726
|
+
* Maximum number of results to return in the response.
|
727
|
+
*/
|
728
|
+
maxResults?: MaxResults;
|
729
|
+
/**
|
730
|
+
* Continuation token from the previous response, for Bedrock to list the next set of results.
|
731
|
+
*/
|
732
|
+
nextToken?: PaginationToken;
|
733
|
+
/**
|
734
|
+
* The field to sort by in the returned list of jobs.
|
735
|
+
*/
|
736
|
+
sortBy?: SortJobsBy;
|
737
|
+
/**
|
738
|
+
* The sort order of the results.
|
739
|
+
*/
|
740
|
+
sortOrder?: SortOrder;
|
741
|
+
}
|
742
|
+
export interface ListModelCustomizationJobsResponse {
|
743
|
+
/**
|
744
|
+
* Page continuation token to use in the next request.
|
745
|
+
*/
|
746
|
+
nextToken?: PaginationToken;
|
747
|
+
/**
|
748
|
+
* Job summaries.
|
749
|
+
*/
|
750
|
+
modelCustomizationJobSummaries?: ModelCustomizationJobSummaries;
|
751
|
+
}
|
752
|
+
export interface ListProvisionedModelThroughputsRequest {
|
753
|
+
/**
|
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.
|
793
|
+
*/
|
794
|
+
nextToken?: PaginationToken;
|
795
|
+
/**
|
796
|
+
* List of summaries, one for each provisioned throughput in the response.
|
797
|
+
*/
|
798
|
+
provisionedModelSummaries?: ProvisionedModelSummaries;
|
799
|
+
}
|
800
|
+
export interface ListTagsForResourceRequest {
|
801
|
+
/**
|
802
|
+
* The ARN of the resource.
|
803
|
+
*/
|
804
|
+
resourceARN: TaggableResourcesArn;
|
805
|
+
}
|
806
|
+
export interface ListTagsForResourceResponse {
|
807
|
+
/**
|
808
|
+
* An array of the tags associated with this resource.
|
809
|
+
*/
|
810
|
+
tags?: TagList;
|
811
|
+
}
|
812
|
+
export type LogGroupName = string;
|
813
|
+
export interface LoggingConfig {
|
814
|
+
/**
|
815
|
+
* CloudWatch logging configuration.
|
816
|
+
*/
|
817
|
+
cloudWatchConfig?: CloudWatchConfig;
|
818
|
+
/**
|
819
|
+
* S3 configuration for storing log data.
|
820
|
+
*/
|
821
|
+
s3Config?: S3Config;
|
822
|
+
/**
|
823
|
+
* Set to include text data in the log delivery.
|
824
|
+
*/
|
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;
|
834
|
+
}
|
835
|
+
export type MaxResults = number;
|
836
|
+
export type MetricFloat = number;
|
837
|
+
export type ModelArn = string;
|
838
|
+
export type ModelCustomization = "FINE_TUNING"|string;
|
839
|
+
export type ModelCustomizationHyperParameters = {[key: string]: String};
|
840
|
+
export type ModelCustomizationJobArn = string;
|
841
|
+
export type ModelCustomizationJobIdentifier = string;
|
842
|
+
export type ModelCustomizationJobStatus = "InProgress"|"Completed"|"Failed"|"Stopping"|"Stopped"|string;
|
843
|
+
export type ModelCustomizationJobSummaries = ModelCustomizationJobSummary[];
|
844
|
+
export interface ModelCustomizationJobSummary {
|
845
|
+
/**
|
846
|
+
* ARN of the customization job.
|
847
|
+
*/
|
848
|
+
jobArn: ModelCustomizationJobArn;
|
849
|
+
/**
|
850
|
+
* ARN of the base model.
|
851
|
+
*/
|
852
|
+
baseModelArn: ModelArn;
|
853
|
+
/**
|
854
|
+
* Name of the customization job.
|
855
|
+
*/
|
856
|
+
jobName: JobName;
|
857
|
+
/**
|
858
|
+
* Status of the customization job.
|
859
|
+
*/
|
860
|
+
status: ModelCustomizationJobStatus;
|
861
|
+
/**
|
862
|
+
* Time that the customization job was last modified.
|
863
|
+
*/
|
864
|
+
lastModifiedTime?: Timestamp;
|
865
|
+
/**
|
866
|
+
* Creation time of the custom model.
|
867
|
+
*/
|
868
|
+
creationTime: Timestamp;
|
869
|
+
/**
|
870
|
+
* Time that the customization job ended.
|
871
|
+
*/
|
872
|
+
endTime?: Timestamp;
|
873
|
+
/**
|
874
|
+
* ARN of the custom model.
|
875
|
+
*/
|
876
|
+
customModelArn?: CustomModelArn;
|
877
|
+
/**
|
878
|
+
* Name of the custom model.
|
879
|
+
*/
|
880
|
+
customModelName?: CustomModelName;
|
881
|
+
}
|
882
|
+
export type ModelCustomizationList = ModelCustomization[];
|
883
|
+
export type ModelIdentifier = string;
|
884
|
+
export type ModelModality = "TEXT"|"IMAGE"|"EMBEDDING"|string;
|
885
|
+
export type ModelModalityList = ModelModality[];
|
886
|
+
export type ModelName = string;
|
887
|
+
export interface OutputDataConfig {
|
888
|
+
/**
|
889
|
+
* The S3 URI where the output data is stored.
|
890
|
+
*/
|
891
|
+
s3Uri: S3Uri;
|
892
|
+
}
|
893
|
+
export type PaginationToken = string;
|
894
|
+
export type PositiveInteger = number;
|
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
|
+
}
|
951
|
+
export interface PutModelInvocationLoggingConfigurationRequest {
|
952
|
+
/**
|
953
|
+
* The logging configuration values to set.
|
954
|
+
*/
|
955
|
+
loggingConfig: LoggingConfig;
|
956
|
+
}
|
957
|
+
export interface PutModelInvocationLoggingConfigurationResponse {
|
958
|
+
}
|
959
|
+
export type RoleArn = string;
|
960
|
+
export interface S3Config {
|
961
|
+
/**
|
962
|
+
* S3 bucket name.
|
963
|
+
*/
|
964
|
+
bucketName: BucketName;
|
965
|
+
/**
|
966
|
+
* S3 prefix.
|
967
|
+
*/
|
968
|
+
keyPrefix?: KeyPrefix;
|
969
|
+
}
|
970
|
+
export type S3Uri = string;
|
971
|
+
export type SecurityGroupId = string;
|
972
|
+
export type SecurityGroupIds = SecurityGroupId[];
|
973
|
+
export type SortByProvisionedModels = "CreationTime"|string;
|
974
|
+
export type SortJobsBy = "CreationTime"|string;
|
975
|
+
export type SortModelsBy = "CreationTime"|string;
|
976
|
+
export type SortOrder = "Ascending"|"Descending"|string;
|
977
|
+
export interface StopModelCustomizationJobRequest {
|
978
|
+
/**
|
979
|
+
* Job identifier of the job to stop.
|
980
|
+
*/
|
981
|
+
jobIdentifier: ModelCustomizationJobIdentifier;
|
982
|
+
}
|
983
|
+
export interface StopModelCustomizationJobResponse {
|
984
|
+
}
|
985
|
+
export type String = string;
|
986
|
+
export type SubnetId = string;
|
987
|
+
export type SubnetIds = SubnetId[];
|
988
|
+
export interface Tag {
|
989
|
+
/**
|
990
|
+
* Key for the tag.
|
991
|
+
*/
|
992
|
+
key: TagKey;
|
993
|
+
/**
|
994
|
+
* Value for the tag.
|
995
|
+
*/
|
996
|
+
value: TagValue;
|
997
|
+
}
|
998
|
+
export type TagKey = string;
|
999
|
+
export type TagKeyList = TagKey[];
|
1000
|
+
export type TagList = Tag[];
|
1001
|
+
export interface TagResourceRequest {
|
1002
|
+
/**
|
1003
|
+
* The ARN of the resource to tag.
|
1004
|
+
*/
|
1005
|
+
resourceARN: TaggableResourcesArn;
|
1006
|
+
/**
|
1007
|
+
* Tags to associate with the resource.
|
1008
|
+
*/
|
1009
|
+
tags: TagList;
|
1010
|
+
}
|
1011
|
+
export interface TagResourceResponse {
|
1012
|
+
}
|
1013
|
+
export type TagValue = string;
|
1014
|
+
export type TaggableResourcesArn = string;
|
1015
|
+
export type Timestamp = Date;
|
1016
|
+
export interface TrainingDataConfig {
|
1017
|
+
/**
|
1018
|
+
* The S3 URI where the training data is stored.
|
1019
|
+
*/
|
1020
|
+
s3Uri: S3Uri;
|
1021
|
+
}
|
1022
|
+
export interface TrainingMetrics {
|
1023
|
+
/**
|
1024
|
+
* Loss metric associated with the custom job.
|
1025
|
+
*/
|
1026
|
+
trainingLoss?: MetricFloat;
|
1027
|
+
}
|
1028
|
+
export interface UntagResourceRequest {
|
1029
|
+
/**
|
1030
|
+
* The ARN of the resource to untag.
|
1031
|
+
*/
|
1032
|
+
resourceARN: TaggableResourcesArn;
|
1033
|
+
/**
|
1034
|
+
* Tag keys of the tags to remove from the resource.
|
1035
|
+
*/
|
1036
|
+
tagKeys: TagKeyList;
|
1037
|
+
}
|
1038
|
+
export interface UntagResourceResponse {
|
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
|
+
}
|
1056
|
+
export interface ValidationDataConfig {
|
1057
|
+
/**
|
1058
|
+
* Information about the validators.
|
1059
|
+
*/
|
1060
|
+
validators: Validators;
|
1061
|
+
}
|
1062
|
+
export type ValidationMetrics = ValidatorMetric[];
|
1063
|
+
export interface Validator {
|
1064
|
+
/**
|
1065
|
+
* The S3 URI where the validation data is stored.
|
1066
|
+
*/
|
1067
|
+
s3Uri: S3Uri;
|
1068
|
+
}
|
1069
|
+
export interface ValidatorMetric {
|
1070
|
+
/**
|
1071
|
+
* The validation loss associated with this validator.
|
1072
|
+
*/
|
1073
|
+
validationLoss?: MetricFloat;
|
1074
|
+
}
|
1075
|
+
export type Validators = Validator[];
|
1076
|
+
export interface VpcConfig {
|
1077
|
+
/**
|
1078
|
+
* VPC configuration subnets.
|
1079
|
+
*/
|
1080
|
+
subnetIds: SubnetIds;
|
1081
|
+
/**
|
1082
|
+
* VPC configuration security group Ids.
|
1083
|
+
*/
|
1084
|
+
securityGroupIds: SecurityGroupIds;
|
1085
|
+
}
|
1086
|
+
/**
|
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.
|
1088
|
+
*/
|
1089
|
+
export type apiVersion = "2023-04-20"|"latest"|string;
|
1090
|
+
export interface ClientApiVersions {
|
1091
|
+
/**
|
1092
|
+
* 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.
|
1093
|
+
*/
|
1094
|
+
apiVersion?: apiVersion;
|
1095
|
+
}
|
1096
|
+
export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
|
1097
|
+
/**
|
1098
|
+
* Contains interfaces for use with the Bedrock client.
|
1099
|
+
*/
|
1100
|
+
export import Types = Bedrock;
|
1101
|
+
}
|
1102
|
+
export = Bedrock;
|