cdk-lambda-subminute 2.0.251 → 2.0.254

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 (35) hide show
  1. package/.jsii +3 -3
  2. package/lib/cdk-lambda-subminute.js +3 -3
  3. package/node_modules/aws-sdk/CHANGELOG.md +10 -1
  4. package/node_modules/aws-sdk/README.md +1 -1
  5. package/node_modules/aws-sdk/apis/bedrock-2023-04-20.examples.json +5 -0
  6. package/node_modules/aws-sdk/apis/bedrock-2023-04-20.min.json +816 -0
  7. package/node_modules/aws-sdk/apis/bedrock-2023-04-20.paginators.json +16 -0
  8. package/node_modules/aws-sdk/apis/bedrock-runtime-2023-09-30.examples.json +5 -0
  9. package/node_modules/aws-sdk/apis/bedrock-runtime-2023-09-30.min.json +180 -0
  10. package/node_modules/aws-sdk/apis/bedrock-runtime-2023-09-30.paginators.json +4 -0
  11. package/node_modules/aws-sdk/apis/ec2-2016-11-15.min.json +1292 -1235
  12. package/node_modules/aws-sdk/apis/iotfleetwise-2021-06-17.min.json +62 -13
  13. package/node_modules/aws-sdk/apis/metadata.json +7 -0
  14. package/node_modules/aws-sdk/apis/sagemaker-2017-07-24.min.json +681 -662
  15. package/node_modules/aws-sdk/apis/sagemaker-featurestore-runtime-2020-07-01.min.json +9 -6
  16. package/node_modules/aws-sdk/clients/all.d.ts +2 -0
  17. package/node_modules/aws-sdk/clients/all.js +3 -1
  18. package/node_modules/aws-sdk/clients/bedrock.d.ts +840 -0
  19. package/node_modules/aws-sdk/clients/bedrock.js +18 -0
  20. package/node_modules/aws-sdk/clients/bedrockruntime.d.ts +138 -0
  21. package/node_modules/aws-sdk/clients/bedrockruntime.js +18 -0
  22. package/node_modules/aws-sdk/clients/budgets.d.ts +8 -7
  23. package/node_modules/aws-sdk/clients/ec2.d.ts +69 -4
  24. package/node_modules/aws-sdk/clients/iotfleetwise.d.ts +71 -1
  25. package/node_modules/aws-sdk/clients/sagemaker.d.ts +58 -31
  26. package/node_modules/aws-sdk/clients/sagemakerfeaturestoreruntime.d.ts +7 -2
  27. package/node_modules/aws-sdk/clients/wafv2.d.ts +2 -2
  28. package/node_modules/aws-sdk/dist/aws-sdk-core-react-native.js +2 -2
  29. package/node_modules/aws-sdk/dist/aws-sdk-react-native.js +82 -8
  30. package/node_modules/aws-sdk/dist/aws-sdk.js +1302 -1238
  31. package/node_modules/aws-sdk/dist/aws-sdk.min.js +74 -74
  32. package/node_modules/aws-sdk/lib/config_service_placeholders.d.ts +4 -0
  33. package/node_modules/aws-sdk/lib/core.js +1 -1
  34. package/node_modules/aws-sdk/package.json +1 -1
  35. package/package.json +4 -4
@@ -0,0 +1,840 @@
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
+ * Deletes a custom model that you created earlier. For more information, see Custom models in the Bedrock User Guide.
24
+ */
25
+ deleteCustomModel(params: Bedrock.Types.DeleteCustomModelRequest, callback?: (err: AWSError, data: Bedrock.Types.DeleteCustomModelResponse) => void): Request<Bedrock.Types.DeleteCustomModelResponse, AWSError>;
26
+ /**
27
+ * Deletes a custom model that you created earlier. For more information, see Custom models in the Bedrock User Guide.
28
+ */
29
+ deleteCustomModel(callback?: (err: AWSError, data: Bedrock.Types.DeleteCustomModelResponse) => void): Request<Bedrock.Types.DeleteCustomModelResponse, AWSError>;
30
+ /**
31
+ * Delete the invocation logging.
32
+ */
33
+ deleteModelInvocationLoggingConfiguration(params: Bedrock.Types.DeleteModelInvocationLoggingConfigurationRequest, callback?: (err: AWSError, data: Bedrock.Types.DeleteModelInvocationLoggingConfigurationResponse) => void): Request<Bedrock.Types.DeleteModelInvocationLoggingConfigurationResponse, AWSError>;
34
+ /**
35
+ * Delete the invocation logging.
36
+ */
37
+ deleteModelInvocationLoggingConfiguration(callback?: (err: AWSError, data: Bedrock.Types.DeleteModelInvocationLoggingConfigurationResponse) => void): Request<Bedrock.Types.DeleteModelInvocationLoggingConfigurationResponse, AWSError>;
38
+ /**
39
+ * Get the properties associated with a Bedrock custom model that you have created.For more information, see Custom models in the Bedrock User Guide.
40
+ */
41
+ getCustomModel(params: Bedrock.Types.GetCustomModelRequest, callback?: (err: AWSError, data: Bedrock.Types.GetCustomModelResponse) => void): Request<Bedrock.Types.GetCustomModelResponse, AWSError>;
42
+ /**
43
+ * Get the properties associated with a Bedrock custom model that you have created.For more information, see Custom models in the Bedrock User Guide.
44
+ */
45
+ getCustomModel(callback?: (err: AWSError, data: Bedrock.Types.GetCustomModelResponse) => void): Request<Bedrock.Types.GetCustomModelResponse, AWSError>;
46
+ /**
47
+ * Get details about a Bedrock foundation model.
48
+ */
49
+ getFoundationModel(params: Bedrock.Types.GetFoundationModelRequest, callback?: (err: AWSError, data: Bedrock.Types.GetFoundationModelResponse) => void): Request<Bedrock.Types.GetFoundationModelResponse, AWSError>;
50
+ /**
51
+ * Get details about a Bedrock foundation model.
52
+ */
53
+ getFoundationModel(callback?: (err: AWSError, data: Bedrock.Types.GetFoundationModelResponse) => void): Request<Bedrock.Types.GetFoundationModelResponse, AWSError>;
54
+ /**
55
+ * 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.
56
+ */
57
+ getModelCustomizationJob(params: Bedrock.Types.GetModelCustomizationJobRequest, callback?: (err: AWSError, data: Bedrock.Types.GetModelCustomizationJobResponse) => void): Request<Bedrock.Types.GetModelCustomizationJobResponse, AWSError>;
58
+ /**
59
+ * 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.
60
+ */
61
+ getModelCustomizationJob(callback?: (err: AWSError, data: Bedrock.Types.GetModelCustomizationJobResponse) => void): Request<Bedrock.Types.GetModelCustomizationJobResponse, AWSError>;
62
+ /**
63
+ * Get the current configuration values for model invocation logging.
64
+ */
65
+ getModelInvocationLoggingConfiguration(params: Bedrock.Types.GetModelInvocationLoggingConfigurationRequest, callback?: (err: AWSError, data: Bedrock.Types.GetModelInvocationLoggingConfigurationResponse) => void): Request<Bedrock.Types.GetModelInvocationLoggingConfigurationResponse, AWSError>;
66
+ /**
67
+ * Get the current configuration values for model invocation logging.
68
+ */
69
+ getModelInvocationLoggingConfiguration(callback?: (err: AWSError, data: Bedrock.Types.GetModelInvocationLoggingConfigurationResponse) => void): Request<Bedrock.Types.GetModelInvocationLoggingConfigurationResponse, AWSError>;
70
+ /**
71
+ * Returns a list of the custom models that you have created with the CreateModelCustomizationJob operation. For more information, see Custom models in the Bedrock User Guide.
72
+ */
73
+ listCustomModels(params: Bedrock.Types.ListCustomModelsRequest, callback?: (err: AWSError, data: Bedrock.Types.ListCustomModelsResponse) => void): Request<Bedrock.Types.ListCustomModelsResponse, AWSError>;
74
+ /**
75
+ * 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.
76
+ */
77
+ listCustomModels(callback?: (err: AWSError, data: Bedrock.Types.ListCustomModelsResponse) => void): Request<Bedrock.Types.ListCustomModelsResponse, AWSError>;
78
+ /**
79
+ * List of Bedrock foundation models that you can use. For more information, see Foundation models in the Bedrock User Guide.
80
+ */
81
+ listFoundationModels(params: Bedrock.Types.ListFoundationModelsRequest, callback?: (err: AWSError, data: Bedrock.Types.ListFoundationModelsResponse) => void): Request<Bedrock.Types.ListFoundationModelsResponse, AWSError>;
82
+ /**
83
+ * List of Bedrock foundation models that you can use. For more information, see Foundation models in the Bedrock User Guide.
84
+ */
85
+ listFoundationModels(callback?: (err: AWSError, data: Bedrock.Types.ListFoundationModelsResponse) => void): Request<Bedrock.Types.ListFoundationModelsResponse, AWSError>;
86
+ /**
87
+ * 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.
88
+ */
89
+ listModelCustomizationJobs(params: Bedrock.Types.ListModelCustomizationJobsRequest, callback?: (err: AWSError, data: Bedrock.Types.ListModelCustomizationJobsResponse) => void): Request<Bedrock.Types.ListModelCustomizationJobsResponse, AWSError>;
90
+ /**
91
+ * Returns a list of model customization jobs that you have submitted. You can filter the jobs to return based on one or more criteria. For more information, see Custom models in the Bedrock User Guide.
92
+ */
93
+ listModelCustomizationJobs(callback?: (err: AWSError, data: Bedrock.Types.ListModelCustomizationJobsResponse) => void): Request<Bedrock.Types.ListModelCustomizationJobsResponse, AWSError>;
94
+ /**
95
+ * List the tags associated with the specified resource. For more information, see Tagging resources in the Bedrock User Guide.
96
+ */
97
+ listTagsForResource(params: Bedrock.Types.ListTagsForResourceRequest, callback?: (err: AWSError, data: Bedrock.Types.ListTagsForResourceResponse) => void): Request<Bedrock.Types.ListTagsForResourceResponse, AWSError>;
98
+ /**
99
+ * List the tags associated with the specified resource. For more information, see Tagging resources in the Bedrock User Guide.
100
+ */
101
+ listTagsForResource(callback?: (err: AWSError, data: Bedrock.Types.ListTagsForResourceResponse) => void): Request<Bedrock.Types.ListTagsForResourceResponse, AWSError>;
102
+ /**
103
+ * Set the configuration values for model invocation logging.
104
+ */
105
+ putModelInvocationLoggingConfiguration(params: Bedrock.Types.PutModelInvocationLoggingConfigurationRequest, callback?: (err: AWSError, data: Bedrock.Types.PutModelInvocationLoggingConfigurationResponse) => void): Request<Bedrock.Types.PutModelInvocationLoggingConfigurationResponse, AWSError>;
106
+ /**
107
+ * Set the configuration values for model invocation logging.
108
+ */
109
+ putModelInvocationLoggingConfiguration(callback?: (err: AWSError, data: Bedrock.Types.PutModelInvocationLoggingConfigurationResponse) => void): Request<Bedrock.Types.PutModelInvocationLoggingConfigurationResponse, AWSError>;
110
+ /**
111
+ * Stops an active model customization job. For more information, see Custom models in the Bedrock User Guide.
112
+ */
113
+ stopModelCustomizationJob(params: Bedrock.Types.StopModelCustomizationJobRequest, callback?: (err: AWSError, data: Bedrock.Types.StopModelCustomizationJobResponse) => void): Request<Bedrock.Types.StopModelCustomizationJobResponse, AWSError>;
114
+ /**
115
+ * Stops an active model customization job. For more information, see Custom models in the Bedrock User Guide.
116
+ */
117
+ stopModelCustomizationJob(callback?: (err: AWSError, data: Bedrock.Types.StopModelCustomizationJobResponse) => void): Request<Bedrock.Types.StopModelCustomizationJobResponse, AWSError>;
118
+ /**
119
+ * Associate tags with a resource. For more information, see Tagging resources in the Bedrock User Guide.
120
+ */
121
+ tagResource(params: Bedrock.Types.TagResourceRequest, callback?: (err: AWSError, data: Bedrock.Types.TagResourceResponse) => void): Request<Bedrock.Types.TagResourceResponse, AWSError>;
122
+ /**
123
+ * Associate tags with a resource. For more information, see Tagging resources in the Bedrock User Guide.
124
+ */
125
+ tagResource(callback?: (err: AWSError, data: Bedrock.Types.TagResourceResponse) => void): Request<Bedrock.Types.TagResourceResponse, AWSError>;
126
+ /**
127
+ * Remove one or more tags from a resource. For more information, see Tagging resources in the Bedrock User Guide.
128
+ */
129
+ untagResource(params: Bedrock.Types.UntagResourceRequest, callback?: (err: AWSError, data: Bedrock.Types.UntagResourceResponse) => void): Request<Bedrock.Types.UntagResourceResponse, AWSError>;
130
+ /**
131
+ * Remove one or more tags from a resource. For more information, see Tagging resources in the Bedrock User Guide.
132
+ */
133
+ untagResource(callback?: (err: AWSError, data: Bedrock.Types.UntagResourceResponse) => void): Request<Bedrock.Types.UntagResourceResponse, AWSError>;
134
+ }
135
+ declare namespace Bedrock {
136
+ export type BaseModelIdentifier = string;
137
+ export type BedrockModelId = string;
138
+ export type Boolean = boolean;
139
+ export type BrandedName = string;
140
+ export type BucketName = string;
141
+ export interface CloudWatchConfig {
142
+ /**
143
+ * S3 configuration for delivering a large amount of data.
144
+ */
145
+ largeDataDeliveryS3Config?: S3Config;
146
+ /**
147
+ * The log group name.
148
+ */
149
+ logGroupName: LogGroupName;
150
+ /**
151
+ * The role ARN.
152
+ */
153
+ roleArn: RoleArn;
154
+ }
155
+ export interface CreateModelCustomizationJobRequest {
156
+ /**
157
+ * Name of the base model.
158
+ */
159
+ baseModelIdentifier: BaseModelIdentifier;
160
+ /**
161
+ * Unique token value that you can provide. The GetModelCustomizationJob response includes the same token value.
162
+ */
163
+ clientRequestToken?: IdempotencyToken;
164
+ /**
165
+ * The custom model is encrypted at rest using this key.
166
+ */
167
+ customModelKmsKeyId?: KmsKeyId;
168
+ /**
169
+ * Enter a name for the custom model.
170
+ */
171
+ customModelName: CustomModelName;
172
+ /**
173
+ * Assign tags to the custom model.
174
+ */
175
+ customModelTags?: TagList;
176
+ /**
177
+ * Parameters related to tuning the model.
178
+ */
179
+ hyperParameters: ModelCustomizationHyperParameters;
180
+ /**
181
+ * Enter a unique name for the fine-tuning job.
182
+ */
183
+ jobName: JobName;
184
+ /**
185
+ * Assign tags to the job.
186
+ */
187
+ jobTags?: TagList;
188
+ /**
189
+ * S3 location for the output data.
190
+ */
191
+ outputDataConfig: OutputDataConfig;
192
+ /**
193
+ * 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.
194
+ */
195
+ roleArn: RoleArn;
196
+ /**
197
+ * Information about the training dataset.
198
+ */
199
+ trainingDataConfig: TrainingDataConfig;
200
+ /**
201
+ * Information about the validation dataset.
202
+ */
203
+ validationDataConfig?: ValidationDataConfig;
204
+ /**
205
+ * VPC configuration (optional). Configuration parameters for the private Virtual Private Cloud (VPC) that contains the resources you are using for this job.
206
+ */
207
+ vpcConfig?: VpcConfig;
208
+ }
209
+ export interface CreateModelCustomizationJobResponse {
210
+ /**
211
+ * ARN of the fine tuning job
212
+ */
213
+ jobArn: ModelCustomizationJobArn;
214
+ }
215
+ export type CustomModelArn = string;
216
+ export type CustomModelName = string;
217
+ export interface CustomModelSummary {
218
+ /**
219
+ * The base model ARN.
220
+ */
221
+ baseModelArn: ModelArn;
222
+ /**
223
+ * The base model name.
224
+ */
225
+ baseModelName: ModelName;
226
+ /**
227
+ * Creation time of the model.
228
+ */
229
+ creationTime: Timestamp;
230
+ /**
231
+ * The ARN of the custom model.
232
+ */
233
+ modelArn: CustomModelArn;
234
+ /**
235
+ * The name of the custom model.
236
+ */
237
+ modelName: CustomModelName;
238
+ }
239
+ export type CustomModelSummaryList = CustomModelSummary[];
240
+ export interface DeleteCustomModelRequest {
241
+ /**
242
+ * Name of the model to delete.
243
+ */
244
+ modelIdentifier: ModelIdentifier;
245
+ }
246
+ export interface DeleteCustomModelResponse {
247
+ }
248
+ export interface DeleteModelInvocationLoggingConfigurationRequest {
249
+ }
250
+ export interface DeleteModelInvocationLoggingConfigurationResponse {
251
+ }
252
+ export type ErrorMessage = string;
253
+ export type FineTuningJobStatus = "InProgress"|"Completed"|"Failed"|"Stopping"|"Stopped"|string;
254
+ export type FoundationModelArn = string;
255
+ export interface FoundationModelDetails {
256
+ /**
257
+ * The customization that the model supports.
258
+ */
259
+ customizationsSupported?: ModelCustomizationList;
260
+ /**
261
+ * The inference types that the model supports.
262
+ */
263
+ inferenceTypesSupported?: InferenceTypeList;
264
+ /**
265
+ * The input modalities that the model supports.
266
+ */
267
+ inputModalities?: ModelModalityList;
268
+ /**
269
+ * The model ARN.
270
+ */
271
+ modelArn: FoundationModelArn;
272
+ /**
273
+ * The model identifier.
274
+ */
275
+ modelId: BedrockModelId;
276
+ /**
277
+ * The model name.
278
+ */
279
+ modelName?: BrandedName;
280
+ /**
281
+ * The output modalities that the model supports.
282
+ */
283
+ outputModalities?: ModelModalityList;
284
+ /**
285
+ * he model's provider name.
286
+ */
287
+ providerName?: BrandedName;
288
+ /**
289
+ * Indicates whether the model supports streaming.
290
+ */
291
+ responseStreamingSupported?: Boolean;
292
+ }
293
+ export interface FoundationModelSummary {
294
+ /**
295
+ * Whether the model supports fine-tuning or continual pre-training.
296
+ */
297
+ customizationsSupported?: ModelCustomizationList;
298
+ /**
299
+ * The inference types that the model supports.
300
+ */
301
+ inferenceTypesSupported?: InferenceTypeList;
302
+ /**
303
+ * The input modalities that the model supports.
304
+ */
305
+ inputModalities?: ModelModalityList;
306
+ /**
307
+ * The ARN of the foundation model.
308
+ */
309
+ modelArn: FoundationModelArn;
310
+ /**
311
+ * The model Id of the foundation model.
312
+ */
313
+ modelId: BedrockModelId;
314
+ /**
315
+ * The name of the model.
316
+ */
317
+ modelName?: BrandedName;
318
+ /**
319
+ * The output modalities that the model supports.
320
+ */
321
+ outputModalities?: ModelModalityList;
322
+ /**
323
+ * The model's provider name.
324
+ */
325
+ providerName?: BrandedName;
326
+ /**
327
+ * Indicates whether the model supports streaming.
328
+ */
329
+ responseStreamingSupported?: Boolean;
330
+ }
331
+ export type FoundationModelSummaryList = FoundationModelSummary[];
332
+ export interface GetCustomModelRequest {
333
+ /**
334
+ * Name or ARN of the custom model.
335
+ */
336
+ modelIdentifier: ModelIdentifier;
337
+ }
338
+ export interface GetCustomModelResponse {
339
+ /**
340
+ * ARN of the base model.
341
+ */
342
+ baseModelArn: ModelArn;
343
+ /**
344
+ * Creation time of the model.
345
+ */
346
+ creationTime: Timestamp;
347
+ /**
348
+ * Hyperparameter values associated with this model.
349
+ */
350
+ hyperParameters?: ModelCustomizationHyperParameters;
351
+ /**
352
+ * Job ARN associated with this model.
353
+ */
354
+ jobArn: ModelCustomizationJobArn;
355
+ /**
356
+ * Job name associated with this model.
357
+ */
358
+ jobName?: JobName;
359
+ /**
360
+ * ARN associated with this model.
361
+ */
362
+ modelArn: ModelArn;
363
+ /**
364
+ * The custom model is encrypted at rest using this key.
365
+ */
366
+ modelKmsKeyArn?: KmsKeyArn;
367
+ /**
368
+ * Model name associated with this model.
369
+ */
370
+ modelName: CustomModelName;
371
+ /**
372
+ * Output data configuration associated with this custom model.
373
+ */
374
+ outputDataConfig: OutputDataConfig;
375
+ /**
376
+ * Information about the training dataset.
377
+ */
378
+ trainingDataConfig: TrainingDataConfig;
379
+ /**
380
+ * The training metrics from the job creation.
381
+ */
382
+ trainingMetrics?: TrainingMetrics;
383
+ validationDataConfig?: ValidationDataConfig;
384
+ /**
385
+ * The validation metrics from the job creation.
386
+ */
387
+ validationMetrics?: ValidationMetrics;
388
+ }
389
+ export interface GetFoundationModelRequest {
390
+ /**
391
+ * The model identifier.
392
+ */
393
+ modelIdentifier: ModelIdentifier;
394
+ }
395
+ export interface GetFoundationModelResponse {
396
+ /**
397
+ * Information about the foundation model.
398
+ */
399
+ modelDetails?: FoundationModelDetails;
400
+ }
401
+ export interface GetModelCustomizationJobRequest {
402
+ /**
403
+ * Identifier for the customization job.
404
+ */
405
+ jobIdentifier: ModelCustomizationJobIdentifier;
406
+ }
407
+ export interface GetModelCustomizationJobResponse {
408
+ /**
409
+ * ARN of the base model.
410
+ */
411
+ baseModelArn: FoundationModelArn;
412
+ /**
413
+ * The token that you specified in the CreateCustomizationJob request.
414
+ */
415
+ clientRequestToken?: IdempotencyToken;
416
+ /**
417
+ * Time that the resource was created.
418
+ */
419
+ creationTime: Timestamp;
420
+ /**
421
+ * Time that the resource transitioned to terminal state.
422
+ */
423
+ endTime?: Timestamp;
424
+ /**
425
+ * Information about why the job failed.
426
+ */
427
+ failureMessage?: ErrorMessage;
428
+ /**
429
+ * The hyperparameter values for the job.
430
+ */
431
+ hyperParameters: ModelCustomizationHyperParameters;
432
+ /**
433
+ * The ARN of the customization job.
434
+ */
435
+ jobArn: ModelCustomizationJobArn;
436
+ /**
437
+ * The name of the customization job.
438
+ */
439
+ jobName: JobName;
440
+ /**
441
+ * Time that the resource was last modified.
442
+ */
443
+ lastModifiedTime?: Timestamp;
444
+ /**
445
+ * Output data configuration
446
+ */
447
+ outputDataConfig: OutputDataConfig;
448
+ /**
449
+ * The ARN of the output model.
450
+ */
451
+ outputModelArn?: CustomModelArn;
452
+ /**
453
+ * The custom model is encrypted at rest using this key.
454
+ */
455
+ outputModelKmsKeyArn?: KmsKeyArn;
456
+ /**
457
+ * The name of the output model.
458
+ */
459
+ outputModelName: CustomModelName;
460
+ /**
461
+ * The ARN of the IAM role.
462
+ */
463
+ roleArn: RoleArn;
464
+ /**
465
+ * 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.
466
+ */
467
+ status?: ModelCustomizationJobStatus;
468
+ trainingDataConfig: TrainingDataConfig;
469
+ trainingMetrics?: TrainingMetrics;
470
+ validationDataConfig: ValidationDataConfig;
471
+ /**
472
+ * The loss metric for each validator that you provided in the createjob request.
473
+ */
474
+ validationMetrics?: ValidationMetrics;
475
+ /**
476
+ * VPC configuration for the custom model job.
477
+ */
478
+ vpcConfig?: VpcConfig;
479
+ }
480
+ export interface GetModelInvocationLoggingConfigurationRequest {
481
+ }
482
+ export interface GetModelInvocationLoggingConfigurationResponse {
483
+ /**
484
+ * The current configuration values.
485
+ */
486
+ loggingConfig?: LoggingConfig;
487
+ }
488
+ export type IdempotencyToken = string;
489
+ export type InferenceType = "ON_DEMAND"|"PROVISIONED"|string;
490
+ export type InferenceTypeList = InferenceType[];
491
+ export type JobName = string;
492
+ export type KeyPrefix = string;
493
+ export type KmsKeyArn = string;
494
+ export type KmsKeyId = string;
495
+ export interface ListCustomModelsRequest {
496
+ /**
497
+ * Return custom models only if the base model ARN matches this parameter.
498
+ */
499
+ baseModelArnEquals?: ModelArn;
500
+ /**
501
+ * Return custom models created after the specified time.
502
+ */
503
+ creationTimeAfter?: Timestamp;
504
+ /**
505
+ * Return custom models created before the specified time.
506
+ */
507
+ creationTimeBefore?: Timestamp;
508
+ /**
509
+ * Return custom models only if the foundation model ARN matches this parameter.
510
+ */
511
+ foundationModelArnEquals?: FoundationModelArn;
512
+ /**
513
+ * Maximum number of results to return in the response.
514
+ */
515
+ maxResults?: MaxResults;
516
+ /**
517
+ * Return custom models only if the job name contains these characters.
518
+ */
519
+ nameContains?: CustomModelName;
520
+ /**
521
+ * Continuation token from the previous response, for Bedrock to list the next set of results.
522
+ */
523
+ nextToken?: PaginationToken;
524
+ /**
525
+ * The field to sort by in the returned list of models.
526
+ */
527
+ sortBy?: SortModelsBy;
528
+ /**
529
+ * The sort order of the results.
530
+ */
531
+ sortOrder?: SortOrder;
532
+ }
533
+ export interface ListCustomModelsResponse {
534
+ /**
535
+ * Model summaries.
536
+ */
537
+ modelSummaries?: CustomModelSummaryList;
538
+ /**
539
+ * Continuation token for the next request to list the next set of results.
540
+ */
541
+ nextToken?: PaginationToken;
542
+ }
543
+ export interface ListFoundationModelsRequest {
544
+ /**
545
+ * List by customization type.
546
+ */
547
+ byCustomizationType?: ModelCustomization;
548
+ /**
549
+ * List by inference type.
550
+ */
551
+ byInferenceType?: InferenceType;
552
+ /**
553
+ * List by output modality type.
554
+ */
555
+ byOutputModality?: ModelModality;
556
+ /**
557
+ * A Bedrock model provider.
558
+ */
559
+ byProvider?: Provider;
560
+ }
561
+ export interface ListFoundationModelsResponse {
562
+ /**
563
+ * A list of bedrock foundation models.
564
+ */
565
+ modelSummaries?: FoundationModelSummaryList;
566
+ }
567
+ export interface ListModelCustomizationJobsRequest {
568
+ /**
569
+ * Return customization jobs created after the specified time.
570
+ */
571
+ creationTimeAfter?: Timestamp;
572
+ /**
573
+ * Return customization jobs created before the specified time.
574
+ */
575
+ creationTimeBefore?: Timestamp;
576
+ /**
577
+ * Maximum number of results to return in the response.
578
+ */
579
+ maxResults?: MaxResults;
580
+ /**
581
+ * Return customization jobs only if the job name contains these characters.
582
+ */
583
+ nameContains?: JobName;
584
+ /**
585
+ * Continuation token from the previous response, for Bedrock to list the next set of results.
586
+ */
587
+ nextToken?: PaginationToken;
588
+ /**
589
+ * The field to sort by in the returned list of jobs.
590
+ */
591
+ sortBy?: SortJobsBy;
592
+ /**
593
+ * The sort order of the results.
594
+ */
595
+ sortOrder?: SortOrder;
596
+ /**
597
+ * Return customization jobs with the specified status.
598
+ */
599
+ statusEquals?: FineTuningJobStatus;
600
+ }
601
+ export interface ListModelCustomizationJobsResponse {
602
+ /**
603
+ * Job summaries.
604
+ */
605
+ modelCustomizationJobSummaries?: ModelCustomizationJobSummaries;
606
+ /**
607
+ * Page continuation token to use in the next request.
608
+ */
609
+ nextToken?: PaginationToken;
610
+ }
611
+ export interface ListTagsForResourceRequest {
612
+ /**
613
+ * The ARN of the resource.
614
+ */
615
+ resourceARN: TaggableResourcesArn;
616
+ }
617
+ export interface ListTagsForResourceResponse {
618
+ /**
619
+ * An array of the tags associated with this resource.
620
+ */
621
+ tags?: TagList;
622
+ }
623
+ export type LogGroupName = string;
624
+ export interface LoggingConfig {
625
+ /**
626
+ * CloudWatch logging configuration.
627
+ */
628
+ cloudWatchConfig?: CloudWatchConfig;
629
+ /**
630
+ * Set to include embeddings data in the log delivery.
631
+ */
632
+ embeddingDataDeliveryEnabled?: Boolean;
633
+ /**
634
+ * Set to include image data in the log delivery.
635
+ */
636
+ imageDataDeliveryEnabled?: Boolean;
637
+ /**
638
+ * S3 configuration for storing log data.
639
+ */
640
+ s3Config?: S3Config;
641
+ /**
642
+ * Set to include text data in the log delivery.
643
+ */
644
+ textDataDeliveryEnabled?: Boolean;
645
+ }
646
+ export type MaxResults = number;
647
+ export type MetricFloat = number;
648
+ export type ModelArn = string;
649
+ export type ModelCustomization = "FINE_TUNING"|string;
650
+ export type ModelCustomizationHyperParameters = {[key: string]: String};
651
+ export type ModelCustomizationJobArn = string;
652
+ export type ModelCustomizationJobIdentifier = string;
653
+ export type ModelCustomizationJobStatus = "InProgress"|"Completed"|"Failed"|"Stopping"|"Stopped"|string;
654
+ export type ModelCustomizationJobSummaries = ModelCustomizationJobSummary[];
655
+ export interface ModelCustomizationJobSummary {
656
+ /**
657
+ * ARN of the base model.
658
+ */
659
+ baseModelArn: ModelArn;
660
+ /**
661
+ * Creation time of the custom model.
662
+ */
663
+ creationTime: Timestamp;
664
+ /**
665
+ * ARN of the custom model.
666
+ */
667
+ customModelArn?: CustomModelArn;
668
+ /**
669
+ * Name of the custom model.
670
+ */
671
+ customModelName?: CustomModelName;
672
+ /**
673
+ * Time that the customization job ended.
674
+ */
675
+ endTime?: Timestamp;
676
+ /**
677
+ * ARN of the customization job.
678
+ */
679
+ jobArn: ModelCustomizationJobArn;
680
+ /**
681
+ * Name of the customization job.
682
+ */
683
+ jobName: JobName;
684
+ /**
685
+ * Time that the customization job was last modified.
686
+ */
687
+ lastModifiedTime?: Timestamp;
688
+ /**
689
+ * Status of the customization job.
690
+ */
691
+ status: ModelCustomizationJobStatus;
692
+ }
693
+ export type ModelCustomizationList = ModelCustomization[];
694
+ export type ModelIdentifier = string;
695
+ export type ModelModality = "TEXT"|"IMAGE"|"EMBEDDING"|string;
696
+ export type ModelModalityList = ModelModality[];
697
+ export type ModelName = string;
698
+ export interface OutputDataConfig {
699
+ /**
700
+ * The S3 URI where the output data is stored.
701
+ */
702
+ s3Uri: S3Uri;
703
+ }
704
+ export type PaginationToken = string;
705
+ export type Provider = string;
706
+ export interface PutModelInvocationLoggingConfigurationRequest {
707
+ /**
708
+ * The logging configuration values to set.
709
+ */
710
+ loggingConfig: LoggingConfig;
711
+ }
712
+ export interface PutModelInvocationLoggingConfigurationResponse {
713
+ }
714
+ export type RoleArn = string;
715
+ export interface S3Config {
716
+ /**
717
+ * S3 bucket name.
718
+ */
719
+ bucketName: BucketName;
720
+ /**
721
+ * S3 prefix.
722
+ */
723
+ keyPrefix?: KeyPrefix;
724
+ }
725
+ export type S3Uri = string;
726
+ export type SecurityGroupId = string;
727
+ export type SecurityGroupIds = SecurityGroupId[];
728
+ export type SortJobsBy = "CreationTime"|string;
729
+ export type SortModelsBy = "CreationTime"|string;
730
+ export type SortOrder = "Ascending"|"Descending"|string;
731
+ export interface StopModelCustomizationJobRequest {
732
+ /**
733
+ * Job identifier of the job to stop.
734
+ */
735
+ jobIdentifier: ModelCustomizationJobIdentifier;
736
+ }
737
+ export interface StopModelCustomizationJobResponse {
738
+ }
739
+ export type String = string;
740
+ export type SubnetId = string;
741
+ export type SubnetIds = SubnetId[];
742
+ export interface Tag {
743
+ /**
744
+ * Key for the tag.
745
+ */
746
+ key: TagKey;
747
+ /**
748
+ * Value for the tag.
749
+ */
750
+ value: TagValue;
751
+ }
752
+ export type TagKey = string;
753
+ export type TagKeyList = TagKey[];
754
+ export type TagList = Tag[];
755
+ export interface TagResourceRequest {
756
+ /**
757
+ * The ARN of the resource to tag.
758
+ */
759
+ resourceARN: TaggableResourcesArn;
760
+ /**
761
+ * Tags to associate with the resource.
762
+ */
763
+ tags: TagList;
764
+ }
765
+ export interface TagResourceResponse {
766
+ }
767
+ export type TagValue = string;
768
+ export type TaggableResourcesArn = string;
769
+ export type Timestamp = Date;
770
+ export interface TrainingDataConfig {
771
+ /**
772
+ * The S3 URI where the training data is stored.
773
+ */
774
+ s3Uri: S3Uri;
775
+ }
776
+ export interface TrainingMetrics {
777
+ /**
778
+ * Loss metric associated with the custom job.
779
+ */
780
+ trainingLoss?: MetricFloat;
781
+ }
782
+ export interface UntagResourceRequest {
783
+ /**
784
+ * The ARN of the resource to untag.
785
+ */
786
+ resourceARN: TaggableResourcesArn;
787
+ /**
788
+ * Tag keys of the tags to remove from the resource.
789
+ */
790
+ tagKeys: TagKeyList;
791
+ }
792
+ export interface UntagResourceResponse {
793
+ }
794
+ export interface ValidationDataConfig {
795
+ /**
796
+ * Information about the validators.
797
+ */
798
+ validators: Validators;
799
+ }
800
+ export type ValidationMetrics = ValidatorMetric[];
801
+ export interface Validator {
802
+ /**
803
+ * The S3 URI where the validation data is stored.
804
+ */
805
+ s3Uri: S3Uri;
806
+ }
807
+ export interface ValidatorMetric {
808
+ /**
809
+ * The validation loss associated with this validator.
810
+ */
811
+ validationLoss?: MetricFloat;
812
+ }
813
+ export type Validators = Validator[];
814
+ export interface VpcConfig {
815
+ /**
816
+ * VPC configuration security group Ids.
817
+ */
818
+ securityGroupIds: SecurityGroupIds;
819
+ /**
820
+ * VPC configuration subnets.
821
+ */
822
+ subnetIds: SubnetIds;
823
+ }
824
+ /**
825
+ * 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.
826
+ */
827
+ export type apiVersion = "2023-04-20"|"latest"|string;
828
+ export interface ClientApiVersions {
829
+ /**
830
+ * 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.
831
+ */
832
+ apiVersion?: apiVersion;
833
+ }
834
+ export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
835
+ /**
836
+ * Contains interfaces for use with the Bedrock client.
837
+ */
838
+ export import Types = Bedrock;
839
+ }
840
+ export = Bedrock;