@aws-sdk/client-bedrock 3.634.0 → 3.637.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 +56 -0
- package/dist-cjs/index.js +515 -78
- package/dist-es/Bedrock.js +14 -0
- package/dist-es/commands/BatchDeleteEvaluationJobCommand.js +25 -0
- package/dist-es/commands/CreateModelImportJobCommand.js +24 -0
- package/dist-es/commands/DeleteImportedModelCommand.js +24 -0
- package/dist-es/commands/GetImportedModelCommand.js +24 -0
- package/dist-es/commands/GetModelImportJobCommand.js +24 -0
- package/dist-es/commands/ListImportedModelsCommand.js +24 -0
- package/dist-es/commands/ListModelImportJobsCommand.js +24 -0
- package/dist-es/commands/index.js +7 -0
- package/dist-es/models/models_0.js +91 -58
- package/dist-es/pagination/ListImportedModelsPaginator.js +4 -0
- package/dist-es/pagination/ListModelImportJobsPaginator.js +4 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +250 -3
- package/dist-types/Bedrock.d.ts +51 -0
- package/dist-types/BedrockClient.d.ts +9 -2
- package/dist-types/commands/BatchDeleteEvaluationJobCommand.d.ts +92 -0
- package/dist-types/commands/CreateModelImportJobCommand.d.ts +116 -0
- package/dist-types/commands/DeleteImportedModelCommand.d.ts +78 -0
- package/dist-types/commands/GetEvaluationJobCommand.d.ts +1 -1
- package/dist-types/commands/GetImportedModelCommand.d.ts +86 -0
- package/dist-types/commands/GetModelImportJobCommand.d.ts +100 -0
- package/dist-types/commands/ListEvaluationJobsCommand.d.ts +2 -2
- package/dist-types/commands/ListImportedModelsCommand.d.ts +87 -0
- package/dist-types/commands/ListModelImportJobsCommand.d.ts +93 -0
- package/dist-types/commands/index.d.ts +7 -0
- package/dist-types/models/models_0.d.ts +696 -167
- package/dist-types/pagination/ListImportedModelsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListModelImportJobsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +63 -0
- package/dist-types/ts3.4/Bedrock.d.ts +121 -0
- package/dist-types/ts3.4/BedrockClient.d.ts +42 -0
- package/dist-types/ts3.4/commands/BatchDeleteEvaluationJobCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/CreateModelImportJobCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/DeleteImportedModelCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/GetImportedModelCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/GetModelImportJobCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/ListImportedModelsCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/ListModelImportJobsCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/index.d.ts +7 -0
- package/dist-types/ts3.4/models/models_0.d.ts +193 -45
- package/dist-types/ts3.4/pagination/ListImportedModelsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListModelImportJobsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +84 -0
- package/package.json +12 -12
|
@@ -12,6 +12,84 @@ export declare class AccessDeniedException extends __BaseException {
|
|
|
12
12
|
*/
|
|
13
13
|
constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
|
|
14
14
|
}
|
|
15
|
+
/**
|
|
16
|
+
* @public
|
|
17
|
+
*/
|
|
18
|
+
export interface BatchDeleteEvaluationJobRequest {
|
|
19
|
+
/**
|
|
20
|
+
* <p>An array of model evaluation job ARNs to be deleted.</p>
|
|
21
|
+
* @public
|
|
22
|
+
*/
|
|
23
|
+
jobIdentifiers: string[] | undefined;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* <p>A JSON array that provides the status of the model evaluation jobs being deleted.</p>
|
|
27
|
+
* @public
|
|
28
|
+
*/
|
|
29
|
+
export interface BatchDeleteEvaluationJobError {
|
|
30
|
+
/**
|
|
31
|
+
* <p>The ARN of the model evaluation job being deleted.</p>
|
|
32
|
+
* @public
|
|
33
|
+
*/
|
|
34
|
+
jobIdentifier: string | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* <p>A HTTP status code of the model evaluation job being deleted.</p>
|
|
37
|
+
* @public
|
|
38
|
+
*/
|
|
39
|
+
code: string | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* <p>A status message about the model evaluation job deletion.</p>
|
|
42
|
+
* @public
|
|
43
|
+
*/
|
|
44
|
+
message?: string;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* @public
|
|
48
|
+
* @enum
|
|
49
|
+
*/
|
|
50
|
+
export declare const EvaluationJobStatus: {
|
|
51
|
+
readonly COMPLETED: "Completed";
|
|
52
|
+
readonly DELETING: "Deleting";
|
|
53
|
+
readonly FAILED: "Failed";
|
|
54
|
+
readonly IN_PROGRESS: "InProgress";
|
|
55
|
+
readonly STOPPED: "Stopped";
|
|
56
|
+
readonly STOPPING: "Stopping";
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* @public
|
|
60
|
+
*/
|
|
61
|
+
export type EvaluationJobStatus = (typeof EvaluationJobStatus)[keyof typeof EvaluationJobStatus];
|
|
62
|
+
/**
|
|
63
|
+
* <p>An array of model evaluation jobs to be deleted, and their associated statuses.</p>
|
|
64
|
+
* @public
|
|
65
|
+
*/
|
|
66
|
+
export interface BatchDeleteEvaluationJobItem {
|
|
67
|
+
/**
|
|
68
|
+
* <p>The ARN of model evaluation job to be deleted.</p>
|
|
69
|
+
* @public
|
|
70
|
+
*/
|
|
71
|
+
jobIdentifier: string | undefined;
|
|
72
|
+
/**
|
|
73
|
+
* <p>The status of the job's deletion.</p>
|
|
74
|
+
* @public
|
|
75
|
+
*/
|
|
76
|
+
jobStatus: EvaluationJobStatus | undefined;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* @public
|
|
80
|
+
*/
|
|
81
|
+
export interface BatchDeleteEvaluationJobResponse {
|
|
82
|
+
/**
|
|
83
|
+
* <p>A JSON object containing the HTTP status codes and the ARNs of model evaluation jobs that failed to be deleted.</p>
|
|
84
|
+
* @public
|
|
85
|
+
*/
|
|
86
|
+
errors: BatchDeleteEvaluationJobError[] | undefined;
|
|
87
|
+
/**
|
|
88
|
+
* <p>The list of model evaluation jobs to be deleted.</p>
|
|
89
|
+
* @public
|
|
90
|
+
*/
|
|
91
|
+
evaluationJobs: BatchDeleteEvaluationJobItem[] | undefined;
|
|
92
|
+
}
|
|
15
93
|
/**
|
|
16
94
|
* <p>Error occurred because of a conflict while performing an operation.</p>
|
|
17
95
|
* @public
|
|
@@ -24,6 +102,54 @@ export declare class ConflictException extends __BaseException {
|
|
|
24
102
|
*/
|
|
25
103
|
constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
|
|
26
104
|
}
|
|
105
|
+
/**
|
|
106
|
+
* <p>An internal server error occurred. Retry your request.</p>
|
|
107
|
+
* @public
|
|
108
|
+
*/
|
|
109
|
+
export declare class InternalServerException extends __BaseException {
|
|
110
|
+
readonly name: "InternalServerException";
|
|
111
|
+
readonly $fault: "server";
|
|
112
|
+
/**
|
|
113
|
+
* @internal
|
|
114
|
+
*/
|
|
115
|
+
constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
|
|
119
|
+
* @public
|
|
120
|
+
*/
|
|
121
|
+
export declare class ResourceNotFoundException extends __BaseException {
|
|
122
|
+
readonly name: "ResourceNotFoundException";
|
|
123
|
+
readonly $fault: "client";
|
|
124
|
+
/**
|
|
125
|
+
* @internal
|
|
126
|
+
*/
|
|
127
|
+
constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* <p>The number of requests exceeds the limit. Resubmit your request later.</p>
|
|
131
|
+
* @public
|
|
132
|
+
*/
|
|
133
|
+
export declare class ThrottlingException extends __BaseException {
|
|
134
|
+
readonly name: "ThrottlingException";
|
|
135
|
+
readonly $fault: "client";
|
|
136
|
+
/**
|
|
137
|
+
* @internal
|
|
138
|
+
*/
|
|
139
|
+
constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* <p>Input validation failed. Check your request parameters and retry the request.</p>
|
|
143
|
+
* @public
|
|
144
|
+
*/
|
|
145
|
+
export declare class ValidationException extends __BaseException {
|
|
146
|
+
readonly name: "ValidationException";
|
|
147
|
+
readonly $fault: "client";
|
|
148
|
+
/**
|
|
149
|
+
* @internal
|
|
150
|
+
*/
|
|
151
|
+
constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
|
|
152
|
+
}
|
|
27
153
|
/**
|
|
28
154
|
* <p>The location in Amazon S3 where your prompt dataset is stored.</p>
|
|
29
155
|
* @public
|
|
@@ -60,7 +186,7 @@ export declare namespace EvaluationDatasetLocation {
|
|
|
60
186
|
*/
|
|
61
187
|
export interface EvaluationDataset {
|
|
62
188
|
/**
|
|
63
|
-
* <p>Used to specify supported built-in prompt datasets. Valid values are <code>Builtin.Bold</code>, <code>Builtin.BoolQ</code>, <code>Builtin.NaturalQuestions</code>, <code>Builtin.Gigaword</code>, <code>Builtin.RealToxicityPrompts</code>, <code>Builtin.
|
|
189
|
+
* <p>Used to specify supported built-in prompt datasets. Valid values are <code>Builtin.Bold</code>, <code>Builtin.BoolQ</code>, <code>Builtin.NaturalQuestions</code>, <code>Builtin.Gigaword</code>, <code>Builtin.RealToxicityPrompts</code>, <code>Builtin.TriviaQA</code>, <code>Builtin.T-Rex</code>, <code>Builtin.WomensEcommerceClothingReviews</code> and <code>Builtin.Wikitext2</code>.</p>
|
|
64
190
|
* @public
|
|
65
191
|
*/
|
|
66
192
|
name: string | undefined;
|
|
@@ -223,7 +349,7 @@ export declare namespace EvaluationConfig {
|
|
|
223
349
|
const visit: <T>(value: EvaluationConfig, visitor: Visitor<T>) => T;
|
|
224
350
|
}
|
|
225
351
|
/**
|
|
226
|
-
* <p>Contains the ARN of the Amazon Bedrock models specified in your model evaluation job. Each Amazon Bedrock model supports different <code>inferenceParams</code>. To learn more about supported inference parameters for Amazon Bedrock models, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-
|
|
352
|
+
* <p>Contains the ARN of the Amazon Bedrock models specified in your model evaluation job. Each Amazon Bedrock model supports different <code>inferenceParams</code>. To learn more about supported inference parameters for Amazon Bedrock models, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html">Inference parameters for foundation models</a>.</p>
|
|
227
353
|
* <p>The <code>inferenceParams</code> are specified using JSON. To successfully insert JSON as string make sure that all quotations are properly escaped. For example, <code>"temperature":"0.25"</code> key value pair would need to be formatted as <code>\"temperature\":\"0.25\"</code> to successfully accepted in the request.</p>
|
|
228
354
|
* @public
|
|
229
355
|
*/
|
|
@@ -387,30 +513,6 @@ export interface CreateEvaluationJobResponse {
|
|
|
387
513
|
*/
|
|
388
514
|
jobArn: string | undefined;
|
|
389
515
|
}
|
|
390
|
-
/**
|
|
391
|
-
* <p>An internal server error occurred. Retry your request.</p>
|
|
392
|
-
* @public
|
|
393
|
-
*/
|
|
394
|
-
export declare class InternalServerException extends __BaseException {
|
|
395
|
-
readonly name: "InternalServerException";
|
|
396
|
-
readonly $fault: "server";
|
|
397
|
-
/**
|
|
398
|
-
* @internal
|
|
399
|
-
*/
|
|
400
|
-
constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
|
|
401
|
-
}
|
|
402
|
-
/**
|
|
403
|
-
* <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
|
|
404
|
-
* @public
|
|
405
|
-
*/
|
|
406
|
-
export declare class ResourceNotFoundException extends __BaseException {
|
|
407
|
-
readonly name: "ResourceNotFoundException";
|
|
408
|
-
readonly $fault: "client";
|
|
409
|
-
/**
|
|
410
|
-
* @internal
|
|
411
|
-
*/
|
|
412
|
-
constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
|
|
413
|
-
}
|
|
414
516
|
/**
|
|
415
517
|
* <p>The number of requests exceeds the service quota. Resubmit your request later.</p>
|
|
416
518
|
* @public
|
|
@@ -423,30 +525,6 @@ export declare class ServiceQuotaExceededException extends __BaseException {
|
|
|
423
525
|
*/
|
|
424
526
|
constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
|
|
425
527
|
}
|
|
426
|
-
/**
|
|
427
|
-
* <p>The number of requests exceeds the limit. Resubmit your request later.</p>
|
|
428
|
-
* @public
|
|
429
|
-
*/
|
|
430
|
-
export declare class ThrottlingException extends __BaseException {
|
|
431
|
-
readonly name: "ThrottlingException";
|
|
432
|
-
readonly $fault: "client";
|
|
433
|
-
/**
|
|
434
|
-
* @internal
|
|
435
|
-
*/
|
|
436
|
-
constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
|
|
437
|
-
}
|
|
438
|
-
/**
|
|
439
|
-
* <p>Input validation failed. Check your request parameters and retry the request.</p>
|
|
440
|
-
* @public
|
|
441
|
-
*/
|
|
442
|
-
export declare class ValidationException extends __BaseException {
|
|
443
|
-
readonly name: "ValidationException";
|
|
444
|
-
readonly $fault: "client";
|
|
445
|
-
/**
|
|
446
|
-
* @internal
|
|
447
|
-
*/
|
|
448
|
-
constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
|
|
449
|
-
}
|
|
450
528
|
/**
|
|
451
529
|
* @public
|
|
452
530
|
*/
|
|
@@ -469,21 +547,6 @@ export declare const EvaluationJobType: {
|
|
|
469
547
|
* @public
|
|
470
548
|
*/
|
|
471
549
|
export type EvaluationJobType = (typeof EvaluationJobType)[keyof typeof EvaluationJobType];
|
|
472
|
-
/**
|
|
473
|
-
* @public
|
|
474
|
-
* @enum
|
|
475
|
-
*/
|
|
476
|
-
export declare const EvaluationJobStatus: {
|
|
477
|
-
readonly COMPLETED: "Completed";
|
|
478
|
-
readonly FAILED: "Failed";
|
|
479
|
-
readonly IN_PROGRESS: "InProgress";
|
|
480
|
-
readonly STOPPED: "Stopped";
|
|
481
|
-
readonly STOPPING: "Stopping";
|
|
482
|
-
};
|
|
483
|
-
/**
|
|
484
|
-
* @public
|
|
485
|
-
*/
|
|
486
|
-
export type EvaluationJobStatus = (typeof EvaluationJobStatus)[keyof typeof EvaluationJobStatus];
|
|
487
550
|
/**
|
|
488
551
|
* @public
|
|
489
552
|
*/
|
|
@@ -2458,149 +2521,626 @@ export interface ListModelCopyJobsResponse {
|
|
|
2458
2521
|
modelCopyJobSummaries?: ModelCopyJobSummary[];
|
|
2459
2522
|
}
|
|
2460
2523
|
/**
|
|
2461
|
-
*
|
|
2462
|
-
* @enum
|
|
2463
|
-
*/
|
|
2464
|
-
export declare const S3InputFormat: {
|
|
2465
|
-
readonly JSONL: "JSONL";
|
|
2466
|
-
};
|
|
2467
|
-
/**
|
|
2524
|
+
* <p>The Amazon S3 data source of the imported job.</p>
|
|
2468
2525
|
* @public
|
|
2469
2526
|
*/
|
|
2470
|
-
export
|
|
2471
|
-
/**
|
|
2472
|
-
* <p>Contains the configuration of the S3 location of the output data.</p>
|
|
2473
|
-
* @public
|
|
2474
|
-
*/
|
|
2475
|
-
export interface ModelInvocationJobS3InputDataConfig {
|
|
2476
|
-
/**
|
|
2477
|
-
* <p>The format of the input data.</p>
|
|
2478
|
-
* @public
|
|
2479
|
-
*/
|
|
2480
|
-
s3InputFormat?: S3InputFormat;
|
|
2527
|
+
export interface S3DataSource {
|
|
2481
2528
|
/**
|
|
2482
|
-
* <p>The
|
|
2529
|
+
* <p>The URI of the Amazon S3 data source.</p>
|
|
2483
2530
|
* @public
|
|
2484
2531
|
*/
|
|
2485
2532
|
s3Uri: string | undefined;
|
|
2486
2533
|
}
|
|
2487
2534
|
/**
|
|
2488
|
-
* <p>
|
|
2535
|
+
* <p>Data source for the imported model.</p>
|
|
2489
2536
|
* @public
|
|
2490
2537
|
*/
|
|
2491
|
-
export type
|
|
2538
|
+
export type ModelDataSource = ModelDataSource.S3DataSourceMember | ModelDataSource.$UnknownMember;
|
|
2492
2539
|
/**
|
|
2493
2540
|
* @public
|
|
2494
2541
|
*/
|
|
2495
|
-
export declare namespace
|
|
2542
|
+
export declare namespace ModelDataSource {
|
|
2496
2543
|
/**
|
|
2497
|
-
* <p>
|
|
2544
|
+
* <p>The Amazon S3 data source of the imported model.</p>
|
|
2498
2545
|
* @public
|
|
2499
2546
|
*/
|
|
2500
|
-
interface
|
|
2501
|
-
|
|
2547
|
+
interface S3DataSourceMember {
|
|
2548
|
+
s3DataSource: S3DataSource;
|
|
2502
2549
|
$unknown?: never;
|
|
2503
2550
|
}
|
|
2504
2551
|
/**
|
|
2505
2552
|
* @public
|
|
2506
2553
|
*/
|
|
2507
2554
|
interface $UnknownMember {
|
|
2508
|
-
|
|
2555
|
+
s3DataSource?: never;
|
|
2509
2556
|
$unknown: [string, any];
|
|
2510
2557
|
}
|
|
2511
2558
|
interface Visitor<T> {
|
|
2512
|
-
|
|
2559
|
+
s3DataSource: (value: S3DataSource) => T;
|
|
2513
2560
|
_: (name: string, value: any) => T;
|
|
2514
2561
|
}
|
|
2515
|
-
const visit: <T>(value:
|
|
2562
|
+
const visit: <T>(value: ModelDataSource, visitor: Visitor<T>) => T;
|
|
2516
2563
|
}
|
|
2517
2564
|
/**
|
|
2518
|
-
* <p>
|
|
2565
|
+
* <p>VPC configuration.</p>
|
|
2519
2566
|
* @public
|
|
2520
2567
|
*/
|
|
2521
|
-
export interface
|
|
2568
|
+
export interface VpcConfig {
|
|
2522
2569
|
/**
|
|
2523
|
-
* <p>
|
|
2570
|
+
* <p>VPC configuration subnets.</p>
|
|
2524
2571
|
* @public
|
|
2525
2572
|
*/
|
|
2526
|
-
|
|
2573
|
+
subnetIds: string[] | undefined;
|
|
2527
2574
|
/**
|
|
2528
|
-
* <p>
|
|
2575
|
+
* <p>VPC configuration security group Ids.</p>
|
|
2529
2576
|
* @public
|
|
2530
2577
|
*/
|
|
2531
|
-
|
|
2578
|
+
securityGroupIds: string[] | undefined;
|
|
2532
2579
|
}
|
|
2533
|
-
/**
|
|
2534
|
-
* <p>Contains the configuration of the S3 location of the output data.</p>
|
|
2535
|
-
* @public
|
|
2536
|
-
*/
|
|
2537
|
-
export type ModelInvocationJobOutputDataConfig = ModelInvocationJobOutputDataConfig.S3OutputDataConfigMember | ModelInvocationJobOutputDataConfig.$UnknownMember;
|
|
2538
2580
|
/**
|
|
2539
2581
|
* @public
|
|
2540
2582
|
*/
|
|
2541
|
-
export
|
|
2583
|
+
export interface CreateModelImportJobRequest {
|
|
2542
2584
|
/**
|
|
2543
|
-
* <p>
|
|
2585
|
+
* <p>The name of the import job.</p>
|
|
2544
2586
|
* @public
|
|
2545
2587
|
*/
|
|
2546
|
-
|
|
2547
|
-
s3OutputDataConfig: ModelInvocationJobS3OutputDataConfig;
|
|
2548
|
-
$unknown?: never;
|
|
2549
|
-
}
|
|
2588
|
+
jobName: string | undefined;
|
|
2550
2589
|
/**
|
|
2590
|
+
* <p>The name of the imported model.</p>
|
|
2551
2591
|
* @public
|
|
2552
2592
|
*/
|
|
2553
|
-
|
|
2554
|
-
s3OutputDataConfig?: never;
|
|
2555
|
-
$unknown: [string, any];
|
|
2556
|
-
}
|
|
2557
|
-
interface Visitor<T> {
|
|
2558
|
-
s3OutputDataConfig: (value: ModelInvocationJobS3OutputDataConfig) => T;
|
|
2559
|
-
_: (name: string, value: any) => T;
|
|
2560
|
-
}
|
|
2561
|
-
const visit: <T>(value: ModelInvocationJobOutputDataConfig, visitor: Visitor<T>) => T;
|
|
2562
|
-
}
|
|
2563
|
-
/**
|
|
2564
|
-
* @public
|
|
2565
|
-
*/
|
|
2566
|
-
export interface CreateModelInvocationJobRequest {
|
|
2593
|
+
importedModelName: string | undefined;
|
|
2567
2594
|
/**
|
|
2568
|
-
* <p>
|
|
2595
|
+
* <p>The Amazon Resource Name (ARN) of the model import job.</p>
|
|
2569
2596
|
* @public
|
|
2570
2597
|
*/
|
|
2571
|
-
|
|
2598
|
+
roleArn: string | undefined;
|
|
2572
2599
|
/**
|
|
2573
|
-
* <p>The
|
|
2600
|
+
* <p>The data source for the imported model.</p>
|
|
2574
2601
|
* @public
|
|
2575
2602
|
*/
|
|
2576
|
-
|
|
2603
|
+
modelDataSource: ModelDataSource | undefined;
|
|
2577
2604
|
/**
|
|
2578
|
-
* <p>
|
|
2579
|
-
* Amazon Bedrock ignores the request, but does not return an error. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html">Ensuring idempotency</a>.</p>
|
|
2605
|
+
* <p>Tags to attach to this import job. </p>
|
|
2580
2606
|
* @public
|
|
2581
2607
|
*/
|
|
2582
|
-
|
|
2608
|
+
jobTags?: Tag[];
|
|
2583
2609
|
/**
|
|
2584
|
-
* <p>
|
|
2610
|
+
* <p>Tags to attach to the imported model.</p>
|
|
2585
2611
|
* @public
|
|
2586
2612
|
*/
|
|
2587
|
-
|
|
2613
|
+
importedModelTags?: Tag[];
|
|
2588
2614
|
/**
|
|
2589
|
-
* <p>
|
|
2615
|
+
* <p>A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request,
|
|
2616
|
+
* Amazon Bedrock ignores the request, but does not return an error. For more information,
|
|
2617
|
+
* see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html">Ensuring idempotency</a>.</p>
|
|
2590
2618
|
* @public
|
|
2591
2619
|
*/
|
|
2592
|
-
|
|
2620
|
+
clientRequestToken?: string;
|
|
2593
2621
|
/**
|
|
2594
|
-
* <p>
|
|
2622
|
+
* <p>VPC configuration parameters for the
|
|
2623
|
+
* private Virtual Private Cloud (VPC) that contains the resources you are using for the import job.</p>
|
|
2595
2624
|
* @public
|
|
2596
2625
|
*/
|
|
2597
|
-
|
|
2626
|
+
vpcConfig?: VpcConfig;
|
|
2598
2627
|
/**
|
|
2599
|
-
* <p>The
|
|
2628
|
+
* <p>The imported model is encrypted at rest using this key.</p>
|
|
2600
2629
|
* @public
|
|
2601
2630
|
*/
|
|
2602
|
-
|
|
2603
|
-
|
|
2631
|
+
importedModelKmsKeyId?: string;
|
|
2632
|
+
}
|
|
2633
|
+
/**
|
|
2634
|
+
* @public
|
|
2635
|
+
*/
|
|
2636
|
+
export interface CreateModelImportJobResponse {
|
|
2637
|
+
/**
|
|
2638
|
+
* <p>The Amazon Resource Name (ARN) of the model import job.</p>
|
|
2639
|
+
* @public
|
|
2640
|
+
*/
|
|
2641
|
+
jobArn: string | undefined;
|
|
2642
|
+
}
|
|
2643
|
+
/**
|
|
2644
|
+
* @public
|
|
2645
|
+
*/
|
|
2646
|
+
export interface DeleteImportedModelRequest {
|
|
2647
|
+
/**
|
|
2648
|
+
* <p>Name of the imported model to delete.</p>
|
|
2649
|
+
* @public
|
|
2650
|
+
*/
|
|
2651
|
+
modelIdentifier: string | undefined;
|
|
2652
|
+
}
|
|
2653
|
+
/**
|
|
2654
|
+
* @public
|
|
2655
|
+
*/
|
|
2656
|
+
export interface DeleteImportedModelResponse {
|
|
2657
|
+
}
|
|
2658
|
+
/**
|
|
2659
|
+
* @public
|
|
2660
|
+
*/
|
|
2661
|
+
export interface GetImportedModelRequest {
|
|
2662
|
+
/**
|
|
2663
|
+
* <p>Name or Amazon Resource Name (ARN) of the imported model.</p>
|
|
2664
|
+
* @public
|
|
2665
|
+
*/
|
|
2666
|
+
modelIdentifier: string | undefined;
|
|
2667
|
+
}
|
|
2668
|
+
/**
|
|
2669
|
+
* @public
|
|
2670
|
+
*/
|
|
2671
|
+
export interface GetImportedModelResponse {
|
|
2672
|
+
/**
|
|
2673
|
+
* <p>The Amazon Resource Name (ARN) associated with this imported model.</p>
|
|
2674
|
+
* @public
|
|
2675
|
+
*/
|
|
2676
|
+
modelArn?: string;
|
|
2677
|
+
/**
|
|
2678
|
+
* <p>The name of the imported model.</p>
|
|
2679
|
+
* @public
|
|
2680
|
+
*/
|
|
2681
|
+
modelName?: string;
|
|
2682
|
+
/**
|
|
2683
|
+
* <p>Job name associated with the imported model.</p>
|
|
2684
|
+
* @public
|
|
2685
|
+
*/
|
|
2686
|
+
jobName?: string;
|
|
2687
|
+
/**
|
|
2688
|
+
* <p>Job Amazon Resource Name (ARN) associated with the imported model.</p>
|
|
2689
|
+
* @public
|
|
2690
|
+
*/
|
|
2691
|
+
jobArn?: string;
|
|
2692
|
+
/**
|
|
2693
|
+
* <p>The data source for this imported model.</p>
|
|
2694
|
+
* @public
|
|
2695
|
+
*/
|
|
2696
|
+
modelDataSource?: ModelDataSource;
|
|
2697
|
+
/**
|
|
2698
|
+
* <p>Creation time of the imported model.</p>
|
|
2699
|
+
* @public
|
|
2700
|
+
*/
|
|
2701
|
+
creationTime?: Date;
|
|
2702
|
+
/**
|
|
2703
|
+
* <p>The architecture of the imported model.</p>
|
|
2704
|
+
* @public
|
|
2705
|
+
*/
|
|
2706
|
+
modelArchitecture?: string;
|
|
2707
|
+
/**
|
|
2708
|
+
* <p>The imported model is encrypted at rest using this key.</p>
|
|
2709
|
+
* @public
|
|
2710
|
+
*/
|
|
2711
|
+
modelKmsKeyArn?: string;
|
|
2712
|
+
}
|
|
2713
|
+
/**
|
|
2714
|
+
* @public
|
|
2715
|
+
*/
|
|
2716
|
+
export interface GetModelImportJobRequest {
|
|
2717
|
+
/**
|
|
2718
|
+
* <p>The identifier of the import job.</p>
|
|
2719
|
+
* @public
|
|
2720
|
+
*/
|
|
2721
|
+
jobIdentifier: string | undefined;
|
|
2722
|
+
}
|
|
2723
|
+
/**
|
|
2724
|
+
* @public
|
|
2725
|
+
* @enum
|
|
2726
|
+
*/
|
|
2727
|
+
export declare const ModelImportJobStatus: {
|
|
2728
|
+
readonly COMPLETED: "Completed";
|
|
2729
|
+
readonly FAILED: "Failed";
|
|
2730
|
+
readonly IN_PROGRESS: "InProgress";
|
|
2731
|
+
};
|
|
2732
|
+
/**
|
|
2733
|
+
* @public
|
|
2734
|
+
*/
|
|
2735
|
+
export type ModelImportJobStatus = (typeof ModelImportJobStatus)[keyof typeof ModelImportJobStatus];
|
|
2736
|
+
/**
|
|
2737
|
+
* @public
|
|
2738
|
+
*/
|
|
2739
|
+
export interface GetModelImportJobResponse {
|
|
2740
|
+
/**
|
|
2741
|
+
* <p>The Amazon Resource Name (ARN) of the import job.</p>
|
|
2742
|
+
* @public
|
|
2743
|
+
*/
|
|
2744
|
+
jobArn?: string;
|
|
2745
|
+
/**
|
|
2746
|
+
* <p>The name of the import job.</p>
|
|
2747
|
+
* @public
|
|
2748
|
+
*/
|
|
2749
|
+
jobName?: string;
|
|
2750
|
+
/**
|
|
2751
|
+
* <p>The name of the imported model.</p>
|
|
2752
|
+
* @public
|
|
2753
|
+
*/
|
|
2754
|
+
importedModelName?: string;
|
|
2755
|
+
/**
|
|
2756
|
+
* <p>The Amazon Resource Name (ARN) of the imported model.</p>
|
|
2757
|
+
* @public
|
|
2758
|
+
*/
|
|
2759
|
+
importedModelArn?: string;
|
|
2760
|
+
/**
|
|
2761
|
+
* <p>The Amazon Resource Name (ARN) of the IAM role associated with this job.</p>
|
|
2762
|
+
* @public
|
|
2763
|
+
*/
|
|
2764
|
+
roleArn?: string;
|
|
2765
|
+
/**
|
|
2766
|
+
* <p>The data source for the imported model.</p>
|
|
2767
|
+
* @public
|
|
2768
|
+
*/
|
|
2769
|
+
modelDataSource?: ModelDataSource;
|
|
2770
|
+
/**
|
|
2771
|
+
* <p>The status of the job. A successful job transitions from in-progress to completed when the imported model is ready to use.
|
|
2772
|
+
* If the job failed, the failure message contains information about why the job failed.</p>
|
|
2773
|
+
* @public
|
|
2774
|
+
*/
|
|
2775
|
+
status?: ModelImportJobStatus;
|
|
2776
|
+
/**
|
|
2777
|
+
* <p>Information about why the import job failed.</p>
|
|
2778
|
+
* @public
|
|
2779
|
+
*/
|
|
2780
|
+
failureMessage?: string;
|
|
2781
|
+
/**
|
|
2782
|
+
* <p>The time the resource was created.</p>
|
|
2783
|
+
* @public
|
|
2784
|
+
*/
|
|
2785
|
+
creationTime?: Date;
|
|
2786
|
+
/**
|
|
2787
|
+
* <p>Time the resource was last modified.</p>
|
|
2788
|
+
* @public
|
|
2789
|
+
*/
|
|
2790
|
+
lastModifiedTime?: Date;
|
|
2791
|
+
/**
|
|
2792
|
+
* <p>Time that the resource transitioned to terminal state.</p>
|
|
2793
|
+
* @public
|
|
2794
|
+
*/
|
|
2795
|
+
endTime?: Date;
|
|
2796
|
+
/**
|
|
2797
|
+
* <p>The Virtual Private Cloud (VPC) configuration of the import model job.</p>
|
|
2798
|
+
* @public
|
|
2799
|
+
*/
|
|
2800
|
+
vpcConfig?: VpcConfig;
|
|
2801
|
+
/**
|
|
2802
|
+
* <p>The imported model is encrypted at rest using this key.</p>
|
|
2803
|
+
* @public
|
|
2804
|
+
*/
|
|
2805
|
+
importedModelKmsKeyArn?: string;
|
|
2806
|
+
}
|
|
2807
|
+
/**
|
|
2808
|
+
* @public
|
|
2809
|
+
* @enum
|
|
2810
|
+
*/
|
|
2811
|
+
export declare const SortModelsBy: {
|
|
2812
|
+
readonly CREATION_TIME: "CreationTime";
|
|
2813
|
+
};
|
|
2814
|
+
/**
|
|
2815
|
+
* @public
|
|
2816
|
+
*/
|
|
2817
|
+
export type SortModelsBy = (typeof SortModelsBy)[keyof typeof SortModelsBy];
|
|
2818
|
+
/**
|
|
2819
|
+
* @public
|
|
2820
|
+
*/
|
|
2821
|
+
export interface ListImportedModelsRequest {
|
|
2822
|
+
/**
|
|
2823
|
+
* <p>Return imported models that created before the specified time.</p>
|
|
2824
|
+
* @public
|
|
2825
|
+
*/
|
|
2826
|
+
creationTimeBefore?: Date;
|
|
2827
|
+
/**
|
|
2828
|
+
* <p>Return imported models that were created after the specified time.</p>
|
|
2829
|
+
* @public
|
|
2830
|
+
*/
|
|
2831
|
+
creationTimeAfter?: Date;
|
|
2832
|
+
/**
|
|
2833
|
+
* <p>Return imported models only if the model name contains these characters.</p>
|
|
2834
|
+
* @public
|
|
2835
|
+
*/
|
|
2836
|
+
nameContains?: string;
|
|
2837
|
+
/**
|
|
2838
|
+
* <p>The maximum number of results to return in the response. If the total number of results is greater than this value, use the token returned in the response in the <code>nextToken</code> field when making another request to return the next batch of results.</p>
|
|
2839
|
+
* @public
|
|
2840
|
+
*/
|
|
2841
|
+
maxResults?: number;
|
|
2842
|
+
/**
|
|
2843
|
+
* <p>If the total number of results is greater than the <code>maxResults</code> value provided in the request, enter the token returned in the <code>nextToken</code> field in the response in this field to return the next batch of results.</p>
|
|
2844
|
+
* @public
|
|
2845
|
+
*/
|
|
2846
|
+
nextToken?: string;
|
|
2847
|
+
/**
|
|
2848
|
+
* <p>The field to sort by in the returned list of imported models.</p>
|
|
2849
|
+
* @public
|
|
2850
|
+
*/
|
|
2851
|
+
sortBy?: SortModelsBy;
|
|
2852
|
+
/**
|
|
2853
|
+
* <p>Specifies whetehr to sort the results in ascending or descending order.</p>
|
|
2854
|
+
* @public
|
|
2855
|
+
*/
|
|
2856
|
+
sortOrder?: SortOrder;
|
|
2857
|
+
}
|
|
2858
|
+
/**
|
|
2859
|
+
* <p>Information about tne imported model.</p>
|
|
2860
|
+
* @public
|
|
2861
|
+
*/
|
|
2862
|
+
export interface ImportedModelSummary {
|
|
2863
|
+
/**
|
|
2864
|
+
* <p>The Amazon Resource Name (ARN) of the imported model.</p>
|
|
2865
|
+
* @public
|
|
2866
|
+
*/
|
|
2867
|
+
modelArn: string | undefined;
|
|
2868
|
+
/**
|
|
2869
|
+
* <p>Name of the imported model.</p>
|
|
2870
|
+
* @public
|
|
2871
|
+
*/
|
|
2872
|
+
modelName: string | undefined;
|
|
2873
|
+
/**
|
|
2874
|
+
* <p>Creation time of the imported model.</p>
|
|
2875
|
+
* @public
|
|
2876
|
+
*/
|
|
2877
|
+
creationTime: Date | undefined;
|
|
2878
|
+
}
|
|
2879
|
+
/**
|
|
2880
|
+
* @public
|
|
2881
|
+
*/
|
|
2882
|
+
export interface ListImportedModelsResponse {
|
|
2883
|
+
/**
|
|
2884
|
+
* <p>If the total number of results is greater than the <code>maxResults</code> value provided in the request, use this token when making another request in the <code>nextToken</code> field to return the next batch of results.</p>
|
|
2885
|
+
* @public
|
|
2886
|
+
*/
|
|
2887
|
+
nextToken?: string;
|
|
2888
|
+
/**
|
|
2889
|
+
* <p>Model summaries.</p>
|
|
2890
|
+
* @public
|
|
2891
|
+
*/
|
|
2892
|
+
modelSummaries?: ImportedModelSummary[];
|
|
2893
|
+
}
|
|
2894
|
+
/**
|
|
2895
|
+
* @public
|
|
2896
|
+
*/
|
|
2897
|
+
export interface ListModelImportJobsRequest {
|
|
2898
|
+
/**
|
|
2899
|
+
* <p>Return import jobs that were created after the specified time.</p>
|
|
2900
|
+
* @public
|
|
2901
|
+
*/
|
|
2902
|
+
creationTimeAfter?: Date;
|
|
2903
|
+
/**
|
|
2904
|
+
* <p>Return import jobs that were created before the specified time.</p>
|
|
2905
|
+
* @public
|
|
2906
|
+
*/
|
|
2907
|
+
creationTimeBefore?: Date;
|
|
2908
|
+
/**
|
|
2909
|
+
* <p>Return imported jobs with the specified status.</p>
|
|
2910
|
+
* @public
|
|
2911
|
+
*/
|
|
2912
|
+
statusEquals?: ModelImportJobStatus;
|
|
2913
|
+
/**
|
|
2914
|
+
* <p>Return imported jobs only if the job name contains these characters.</p>
|
|
2915
|
+
* @public
|
|
2916
|
+
*/
|
|
2917
|
+
nameContains?: string;
|
|
2918
|
+
/**
|
|
2919
|
+
* <p>The maximum number of results to return in the response. If the total number of results is greater than this value, use the token returned in the response in the <code>nextToken</code> field when making another request to return the next batch of results.</p>
|
|
2920
|
+
* @public
|
|
2921
|
+
*/
|
|
2922
|
+
maxResults?: number;
|
|
2923
|
+
/**
|
|
2924
|
+
* <p>If the total number of results is greater than the <code>maxResults</code> value provided in the request, enter the token returned in the <code>nextToken</code> field in the response in this field to return the next batch of results.</p>
|
|
2925
|
+
* @public
|
|
2926
|
+
*/
|
|
2927
|
+
nextToken?: string;
|
|
2928
|
+
/**
|
|
2929
|
+
* <p>The field to sort by in the returned list of imported jobs.</p>
|
|
2930
|
+
* @public
|
|
2931
|
+
*/
|
|
2932
|
+
sortBy?: SortJobsBy;
|
|
2933
|
+
/**
|
|
2934
|
+
* <p>Specifies whether to sort the results in ascending or descending order.</p>
|
|
2935
|
+
* @public
|
|
2936
|
+
*/
|
|
2937
|
+
sortOrder?: SortOrder;
|
|
2938
|
+
}
|
|
2939
|
+
/**
|
|
2940
|
+
* <p>Information about the import job.</p>
|
|
2941
|
+
* @public
|
|
2942
|
+
*/
|
|
2943
|
+
export interface ModelImportJobSummary {
|
|
2944
|
+
/**
|
|
2945
|
+
* <p>The Amazon Resource Name (ARN) of the import job.</p>
|
|
2946
|
+
* @public
|
|
2947
|
+
*/
|
|
2948
|
+
jobArn: string | undefined;
|
|
2949
|
+
/**
|
|
2950
|
+
* <p>The name of the import job.</p>
|
|
2951
|
+
* @public
|
|
2952
|
+
*/
|
|
2953
|
+
jobName: string | undefined;
|
|
2954
|
+
/**
|
|
2955
|
+
* <p>The status of the imported job. </p>
|
|
2956
|
+
* @public
|
|
2957
|
+
*/
|
|
2958
|
+
status: ModelImportJobStatus | undefined;
|
|
2959
|
+
/**
|
|
2960
|
+
* <p>The time when the import job was last modified.</p>
|
|
2961
|
+
* @public
|
|
2962
|
+
*/
|
|
2963
|
+
lastModifiedTime?: Date;
|
|
2964
|
+
/**
|
|
2965
|
+
* <p>The time import job was created.</p>
|
|
2966
|
+
* @public
|
|
2967
|
+
*/
|
|
2968
|
+
creationTime: Date | undefined;
|
|
2969
|
+
/**
|
|
2970
|
+
* <p>The time when import job ended.</p>
|
|
2971
|
+
* @public
|
|
2972
|
+
*/
|
|
2973
|
+
endTime?: Date;
|
|
2974
|
+
/**
|
|
2975
|
+
* <p>The Amazon resource Name (ARN) of the imported model.</p>
|
|
2976
|
+
* @public
|
|
2977
|
+
*/
|
|
2978
|
+
importedModelArn?: string;
|
|
2979
|
+
/**
|
|
2980
|
+
* <p>The name of the imported model.</p>
|
|
2981
|
+
* @public
|
|
2982
|
+
*/
|
|
2983
|
+
importedModelName?: string;
|
|
2984
|
+
}
|
|
2985
|
+
/**
|
|
2986
|
+
* @public
|
|
2987
|
+
*/
|
|
2988
|
+
export interface ListModelImportJobsResponse {
|
|
2989
|
+
/**
|
|
2990
|
+
* <p>If the total number of results is greater than the <code>maxResults</code> value provided in the request, enter the token returned in the <code>nextToken</code> field in the response in this field to return the next batch of results.</p>
|
|
2991
|
+
* @public
|
|
2992
|
+
*/
|
|
2993
|
+
nextToken?: string;
|
|
2994
|
+
/**
|
|
2995
|
+
* <p>Import job summaries.</p>
|
|
2996
|
+
* @public
|
|
2997
|
+
*/
|
|
2998
|
+
modelImportJobSummaries?: ModelImportJobSummary[];
|
|
2999
|
+
}
|
|
3000
|
+
/**
|
|
3001
|
+
* @public
|
|
3002
|
+
* @enum
|
|
3003
|
+
*/
|
|
3004
|
+
export declare const S3InputFormat: {
|
|
3005
|
+
readonly JSONL: "JSONL";
|
|
3006
|
+
};
|
|
3007
|
+
/**
|
|
3008
|
+
* @public
|
|
3009
|
+
*/
|
|
3010
|
+
export type S3InputFormat = (typeof S3InputFormat)[keyof typeof S3InputFormat];
|
|
3011
|
+
/**
|
|
3012
|
+
* <p>Contains the configuration of the S3 location of the output data.</p>
|
|
3013
|
+
* @public
|
|
3014
|
+
*/
|
|
3015
|
+
export interface ModelInvocationJobS3InputDataConfig {
|
|
3016
|
+
/**
|
|
3017
|
+
* <p>The format of the input data.</p>
|
|
3018
|
+
* @public
|
|
3019
|
+
*/
|
|
3020
|
+
s3InputFormat?: S3InputFormat;
|
|
3021
|
+
/**
|
|
3022
|
+
* <p>The S3 location of the input data.</p>
|
|
3023
|
+
* @public
|
|
3024
|
+
*/
|
|
3025
|
+
s3Uri: string | undefined;
|
|
3026
|
+
}
|
|
3027
|
+
/**
|
|
3028
|
+
* <p>Details about the location of the input to the batch inference job.</p>
|
|
3029
|
+
* @public
|
|
3030
|
+
*/
|
|
3031
|
+
export type ModelInvocationJobInputDataConfig = ModelInvocationJobInputDataConfig.S3InputDataConfigMember | ModelInvocationJobInputDataConfig.$UnknownMember;
|
|
3032
|
+
/**
|
|
3033
|
+
* @public
|
|
3034
|
+
*/
|
|
3035
|
+
export declare namespace ModelInvocationJobInputDataConfig {
|
|
3036
|
+
/**
|
|
3037
|
+
* <p>Contains the configuration of the S3 location of the input data.</p>
|
|
3038
|
+
* @public
|
|
3039
|
+
*/
|
|
3040
|
+
interface S3InputDataConfigMember {
|
|
3041
|
+
s3InputDataConfig: ModelInvocationJobS3InputDataConfig;
|
|
3042
|
+
$unknown?: never;
|
|
3043
|
+
}
|
|
3044
|
+
/**
|
|
3045
|
+
* @public
|
|
3046
|
+
*/
|
|
3047
|
+
interface $UnknownMember {
|
|
3048
|
+
s3InputDataConfig?: never;
|
|
3049
|
+
$unknown: [string, any];
|
|
3050
|
+
}
|
|
3051
|
+
interface Visitor<T> {
|
|
3052
|
+
s3InputDataConfig: (value: ModelInvocationJobS3InputDataConfig) => T;
|
|
3053
|
+
_: (name: string, value: any) => T;
|
|
3054
|
+
}
|
|
3055
|
+
const visit: <T>(value: ModelInvocationJobInputDataConfig, visitor: Visitor<T>) => T;
|
|
3056
|
+
}
|
|
3057
|
+
/**
|
|
3058
|
+
* <p>Contains the configuration of the S3 location of the output data.</p>
|
|
3059
|
+
* @public
|
|
3060
|
+
*/
|
|
3061
|
+
export interface ModelInvocationJobS3OutputDataConfig {
|
|
3062
|
+
/**
|
|
3063
|
+
* <p>The S3 location of the output data.</p>
|
|
3064
|
+
* @public
|
|
3065
|
+
*/
|
|
3066
|
+
s3Uri: string | undefined;
|
|
3067
|
+
/**
|
|
3068
|
+
* <p>The unique identifier of the key that encrypts the S3 location of the output data.</p>
|
|
3069
|
+
* @public
|
|
3070
|
+
*/
|
|
3071
|
+
s3EncryptionKeyId?: string;
|
|
3072
|
+
}
|
|
3073
|
+
/**
|
|
3074
|
+
* <p>Contains the configuration of the S3 location of the output data.</p>
|
|
3075
|
+
* @public
|
|
3076
|
+
*/
|
|
3077
|
+
export type ModelInvocationJobOutputDataConfig = ModelInvocationJobOutputDataConfig.S3OutputDataConfigMember | ModelInvocationJobOutputDataConfig.$UnknownMember;
|
|
3078
|
+
/**
|
|
3079
|
+
* @public
|
|
3080
|
+
*/
|
|
3081
|
+
export declare namespace ModelInvocationJobOutputDataConfig {
|
|
3082
|
+
/**
|
|
3083
|
+
* <p>Contains the configuration of the S3 location of the output data.</p>
|
|
3084
|
+
* @public
|
|
3085
|
+
*/
|
|
3086
|
+
interface S3OutputDataConfigMember {
|
|
3087
|
+
s3OutputDataConfig: ModelInvocationJobS3OutputDataConfig;
|
|
3088
|
+
$unknown?: never;
|
|
3089
|
+
}
|
|
3090
|
+
/**
|
|
3091
|
+
* @public
|
|
3092
|
+
*/
|
|
3093
|
+
interface $UnknownMember {
|
|
3094
|
+
s3OutputDataConfig?: never;
|
|
3095
|
+
$unknown: [string, any];
|
|
3096
|
+
}
|
|
3097
|
+
interface Visitor<T> {
|
|
3098
|
+
s3OutputDataConfig: (value: ModelInvocationJobS3OutputDataConfig) => T;
|
|
3099
|
+
_: (name: string, value: any) => T;
|
|
3100
|
+
}
|
|
3101
|
+
const visit: <T>(value: ModelInvocationJobOutputDataConfig, visitor: Visitor<T>) => T;
|
|
3102
|
+
}
|
|
3103
|
+
/**
|
|
3104
|
+
* @public
|
|
3105
|
+
*/
|
|
3106
|
+
export interface CreateModelInvocationJobRequest {
|
|
3107
|
+
/**
|
|
3108
|
+
* <p>A name to give the batch inference job.</p>
|
|
3109
|
+
* @public
|
|
3110
|
+
*/
|
|
3111
|
+
jobName: string | undefined;
|
|
3112
|
+
/**
|
|
3113
|
+
* <p>The Amazon Resource Name (ARN) of the service role with permissions to carry out and manage batch inference. You can use the console to create a default service role or follow the steps at <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/batch-iam-sr.html">Create a service role for batch inference</a>.</p>
|
|
3114
|
+
* @public
|
|
3115
|
+
*/
|
|
3116
|
+
roleArn: string | undefined;
|
|
3117
|
+
/**
|
|
3118
|
+
* <p>A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request,
|
|
3119
|
+
* Amazon Bedrock ignores the request, but does not return an error. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html">Ensuring idempotency</a>.</p>
|
|
3120
|
+
* @public
|
|
3121
|
+
*/
|
|
3122
|
+
clientRequestToken?: string;
|
|
3123
|
+
/**
|
|
3124
|
+
* <p>The unique identifier of the foundation model to use for the batch inference job.</p>
|
|
3125
|
+
* @public
|
|
3126
|
+
*/
|
|
3127
|
+
modelId: string | undefined;
|
|
3128
|
+
/**
|
|
3129
|
+
* <p>Details about the location of the input to the batch inference job.</p>
|
|
3130
|
+
* @public
|
|
3131
|
+
*/
|
|
3132
|
+
inputDataConfig: ModelInvocationJobInputDataConfig | undefined;
|
|
3133
|
+
/**
|
|
3134
|
+
* <p>Details about the location of the output of the batch inference job.</p>
|
|
3135
|
+
* @public
|
|
3136
|
+
*/
|
|
3137
|
+
outputDataConfig: ModelInvocationJobOutputDataConfig | undefined;
|
|
3138
|
+
/**
|
|
3139
|
+
* <p>The number of hours after which to force the batch inference job to time out.</p>
|
|
3140
|
+
* @public
|
|
3141
|
+
*/
|
|
3142
|
+
timeoutDurationInHours?: number;
|
|
3143
|
+
/**
|
|
2604
3144
|
* <p>Any tags to associate with the batch inference job. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/tagging.html">Tagging Amazon Bedrock resources</a>.</p>
|
|
2605
3145
|
* @public
|
|
2606
3146
|
*/
|
|
@@ -3192,17 +3732,6 @@ export interface GetFoundationModelResponse {
|
|
|
3192
3732
|
*/
|
|
3193
3733
|
modelDetails?: FoundationModelDetails;
|
|
3194
3734
|
}
|
|
3195
|
-
/**
|
|
3196
|
-
* @public
|
|
3197
|
-
* @enum
|
|
3198
|
-
*/
|
|
3199
|
-
export declare const SortModelsBy: {
|
|
3200
|
-
readonly CREATION_TIME: "CreationTime";
|
|
3201
|
-
};
|
|
3202
|
-
/**
|
|
3203
|
-
* @public
|
|
3204
|
-
*/
|
|
3205
|
-
export type SortModelsBy = (typeof SortModelsBy)[keyof typeof SortModelsBy];
|
|
3206
3735
|
/**
|
|
3207
3736
|
* @public
|
|
3208
3737
|
*/
|
|
@@ -3822,22 +4351,6 @@ export interface UntagResourceRequest {
|
|
|
3822
4351
|
*/
|
|
3823
4352
|
export interface UntagResourceResponse {
|
|
3824
4353
|
}
|
|
3825
|
-
/**
|
|
3826
|
-
* <p>VPC configuration.</p>
|
|
3827
|
-
* @public
|
|
3828
|
-
*/
|
|
3829
|
-
export interface VpcConfig {
|
|
3830
|
-
/**
|
|
3831
|
-
* <p>VPC configuration subnets.</p>
|
|
3832
|
-
* @public
|
|
3833
|
-
*/
|
|
3834
|
-
subnetIds: string[] | undefined;
|
|
3835
|
-
/**
|
|
3836
|
-
* <p>VPC configuration security group Ids.</p>
|
|
3837
|
-
* @public
|
|
3838
|
-
*/
|
|
3839
|
-
securityGroupIds: string[] | undefined;
|
|
3840
|
-
}
|
|
3841
4354
|
/**
|
|
3842
4355
|
* @public
|
|
3843
4356
|
*/
|
|
@@ -4210,6 +4723,22 @@ export interface StopModelCustomizationJobRequest {
|
|
|
4210
4723
|
*/
|
|
4211
4724
|
export interface StopModelCustomizationJobResponse {
|
|
4212
4725
|
}
|
|
4726
|
+
/**
|
|
4727
|
+
* @internal
|
|
4728
|
+
*/
|
|
4729
|
+
export declare const BatchDeleteEvaluationJobRequestFilterSensitiveLog: (obj: BatchDeleteEvaluationJobRequest) => any;
|
|
4730
|
+
/**
|
|
4731
|
+
* @internal
|
|
4732
|
+
*/
|
|
4733
|
+
export declare const BatchDeleteEvaluationJobErrorFilterSensitiveLog: (obj: BatchDeleteEvaluationJobError) => any;
|
|
4734
|
+
/**
|
|
4735
|
+
* @internal
|
|
4736
|
+
*/
|
|
4737
|
+
export declare const BatchDeleteEvaluationJobItemFilterSensitiveLog: (obj: BatchDeleteEvaluationJobItem) => any;
|
|
4738
|
+
/**
|
|
4739
|
+
* @internal
|
|
4740
|
+
*/
|
|
4741
|
+
export declare const BatchDeleteEvaluationJobResponseFilterSensitiveLog: (obj: BatchDeleteEvaluationJobResponse) => any;
|
|
4213
4742
|
/**
|
|
4214
4743
|
* @internal
|
|
4215
4744
|
*/
|