@aws-sdk/client-bedrock 3.703.0 → 3.706.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 +72 -0
- package/dist-cjs/index.js +717 -30
- package/dist-es/Bedrock.js +18 -0
- package/dist-es/commands/CreateMarketplaceModelEndpointCommand.js +22 -0
- package/dist-es/commands/CreateModelCustomizationJobCommand.js +2 -1
- package/dist-es/commands/DeleteMarketplaceModelEndpointCommand.js +22 -0
- package/dist-es/commands/DeregisterMarketplaceModelEndpointCommand.js +22 -0
- package/dist-es/commands/GetCustomModelCommand.js +2 -1
- package/dist-es/commands/GetMarketplaceModelEndpointCommand.js +22 -0
- package/dist-es/commands/GetModelCustomizationJobCommand.js +2 -1
- package/dist-es/commands/GetPromptRouterCommand.js +23 -0
- package/dist-es/commands/ListMarketplaceModelEndpointsCommand.js +22 -0
- package/dist-es/commands/ListPromptRoutersCommand.js +23 -0
- package/dist-es/commands/RegisterMarketplaceModelEndpointCommand.js +22 -0
- package/dist-es/commands/UpdateMarketplaceModelEndpointCommand.js +22 -0
- package/dist-es/commands/index.js +9 -0
- package/dist-es/models/models_0.js +173 -20
- package/dist-es/pagination/ListMarketplaceModelEndpointsPaginator.js +4 -0
- package/dist-es/pagination/ListPromptRoutersPaginator.js +4 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +317 -1
- package/dist-types/Bedrock.d.ts +65 -0
- package/dist-types/BedrockClient.d.ts +11 -2
- package/dist-types/commands/CreateGuardrailCommand.d.ts +7 -1
- package/dist-types/commands/CreateMarketplaceModelEndpointCommand.d.ts +143 -0
- package/dist-types/commands/CreateModelCustomizationJobCommand.d.ts +43 -3
- package/dist-types/commands/DeleteMarketplaceModelEndpointCommand.d.ts +84 -0
- package/dist-types/commands/DeregisterMarketplaceModelEndpointCommand.d.ts +89 -0
- package/dist-types/commands/GetCustomModelCommand.d.ts +42 -2
- package/dist-types/commands/GetFoundationModelCommand.d.ts +1 -1
- package/dist-types/commands/GetGuardrailCommand.d.ts +6 -0
- package/dist-types/commands/GetMarketplaceModelEndpointCommand.d.ts +111 -0
- package/dist-types/commands/GetModelCustomizationJobCommand.d.ts +43 -3
- package/dist-types/commands/GetModelInvocationJobCommand.d.ts +1 -1
- package/dist-types/commands/GetModelInvocationLoggingConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/GetPromptRouterCommand.d.ts +103 -0
- package/dist-types/commands/ListCustomModelsCommand.d.ts +1 -1
- package/dist-types/commands/ListFoundationModelsCommand.d.ts +2 -2
- package/dist-types/commands/ListMarketplaceModelEndpointsCommand.d.ts +99 -0
- package/dist-types/commands/ListModelCustomizationJobsCommand.d.ts +1 -1
- package/dist-types/commands/ListModelInvocationJobsCommand.d.ts +1 -1
- package/dist-types/commands/ListPromptRoutersCommand.d.ts +106 -0
- package/dist-types/commands/PutModelInvocationLoggingConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/RegisterMarketplaceModelEndpointCommand.d.ts +116 -0
- package/dist-types/commands/StopModelInvocationJobCommand.d.ts +1 -1
- package/dist-types/commands/UpdateGuardrailCommand.d.ts +6 -0
- package/dist-types/commands/UpdateMarketplaceModelEndpointCommand.d.ts +135 -0
- package/dist-types/commands/index.d.ts +9 -0
- package/dist-types/models/models_0.d.ts +1163 -139
- package/dist-types/pagination/ListMarketplaceModelEndpointsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListPromptRoutersPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +81 -0
- package/dist-types/ts3.4/Bedrock.d.ts +161 -0
- package/dist-types/ts3.4/BedrockClient.d.ts +54 -0
- package/dist-types/ts3.4/commands/CreateMarketplaceModelEndpointCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteMarketplaceModelEndpointCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeregisterMarketplaceModelEndpointCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetMarketplaceModelEndpointCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetPromptRouterCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/ListMarketplaceModelEndpointsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListPromptRoutersCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/RegisterMarketplaceModelEndpointCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdateMarketplaceModelEndpointCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +9 -0
- package/dist-types/ts3.4/models/models_0.d.ts +363 -44
- package/dist-types/ts3.4/pagination/ListMarketplaceModelEndpointsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListPromptRoutersPaginator.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 +108 -0
- package/package.json +1 -1
|
@@ -3,6 +3,7 @@ export * from "./CreateEvaluationJobCommand";
|
|
|
3
3
|
export * from "./CreateGuardrailCommand";
|
|
4
4
|
export * from "./CreateGuardrailVersionCommand";
|
|
5
5
|
export * from "./CreateInferenceProfileCommand";
|
|
6
|
+
export * from "./CreateMarketplaceModelEndpointCommand";
|
|
6
7
|
export * from "./CreateModelCopyJobCommand";
|
|
7
8
|
export * from "./CreateModelCustomizationJobCommand";
|
|
8
9
|
export * from "./CreateModelImportJobCommand";
|
|
@@ -12,19 +13,23 @@ export * from "./DeleteCustomModelCommand";
|
|
|
12
13
|
export * from "./DeleteGuardrailCommand";
|
|
13
14
|
export * from "./DeleteImportedModelCommand";
|
|
14
15
|
export * from "./DeleteInferenceProfileCommand";
|
|
16
|
+
export * from "./DeleteMarketplaceModelEndpointCommand";
|
|
15
17
|
export * from "./DeleteModelInvocationLoggingConfigurationCommand";
|
|
16
18
|
export * from "./DeleteProvisionedModelThroughputCommand";
|
|
19
|
+
export * from "./DeregisterMarketplaceModelEndpointCommand";
|
|
17
20
|
export * from "./GetCustomModelCommand";
|
|
18
21
|
export * from "./GetEvaluationJobCommand";
|
|
19
22
|
export * from "./GetFoundationModelCommand";
|
|
20
23
|
export * from "./GetGuardrailCommand";
|
|
21
24
|
export * from "./GetImportedModelCommand";
|
|
22
25
|
export * from "./GetInferenceProfileCommand";
|
|
26
|
+
export * from "./GetMarketplaceModelEndpointCommand";
|
|
23
27
|
export * from "./GetModelCopyJobCommand";
|
|
24
28
|
export * from "./GetModelCustomizationJobCommand";
|
|
25
29
|
export * from "./GetModelImportJobCommand";
|
|
26
30
|
export * from "./GetModelInvocationJobCommand";
|
|
27
31
|
export * from "./GetModelInvocationLoggingConfigurationCommand";
|
|
32
|
+
export * from "./GetPromptRouterCommand";
|
|
28
33
|
export * from "./GetProvisionedModelThroughputCommand";
|
|
29
34
|
export * from "./ListCustomModelsCommand";
|
|
30
35
|
export * from "./ListEvaluationJobsCommand";
|
|
@@ -32,17 +37,21 @@ export * from "./ListFoundationModelsCommand";
|
|
|
32
37
|
export * from "./ListGuardrailsCommand";
|
|
33
38
|
export * from "./ListImportedModelsCommand";
|
|
34
39
|
export * from "./ListInferenceProfilesCommand";
|
|
40
|
+
export * from "./ListMarketplaceModelEndpointsCommand";
|
|
35
41
|
export * from "./ListModelCopyJobsCommand";
|
|
36
42
|
export * from "./ListModelCustomizationJobsCommand";
|
|
37
43
|
export * from "./ListModelImportJobsCommand";
|
|
38
44
|
export * from "./ListModelInvocationJobsCommand";
|
|
45
|
+
export * from "./ListPromptRoutersCommand";
|
|
39
46
|
export * from "./ListProvisionedModelThroughputsCommand";
|
|
40
47
|
export * from "./ListTagsForResourceCommand";
|
|
41
48
|
export * from "./PutModelInvocationLoggingConfigurationCommand";
|
|
49
|
+
export * from "./RegisterMarketplaceModelEndpointCommand";
|
|
42
50
|
export * from "./StopEvaluationJobCommand";
|
|
43
51
|
export * from "./StopModelCustomizationJobCommand";
|
|
44
52
|
export * from "./StopModelInvocationJobCommand";
|
|
45
53
|
export * from "./TagResourceCommand";
|
|
46
54
|
export * from "./UntagResourceCommand";
|
|
47
55
|
export * from "./UpdateGuardrailCommand";
|
|
56
|
+
export * from "./UpdateMarketplaceModelEndpointCommand";
|
|
48
57
|
export * from "./UpdateProvisionedModelThroughputCommand";
|
|
@@ -8,37 +8,71 @@ export declare class AccessDeniedException extends __BaseException {
|
|
|
8
8
|
opts: __ExceptionOptionType<AccessDeniedException, __BaseException>
|
|
9
9
|
);
|
|
10
10
|
}
|
|
11
|
-
export interface BatchDeleteEvaluationJobRequest {
|
|
12
|
-
jobIdentifiers: string[] | undefined;
|
|
13
|
-
}
|
|
14
|
-
export interface BatchDeleteEvaluationJobError {
|
|
15
|
-
jobIdentifier: string | undefined;
|
|
16
|
-
code: string | undefined;
|
|
17
|
-
message?: string | undefined;
|
|
18
|
-
}
|
|
19
|
-
export declare const EvaluationJobStatus: {
|
|
20
|
-
readonly COMPLETED: "Completed";
|
|
21
|
-
readonly DELETING: "Deleting";
|
|
22
|
-
readonly FAILED: "Failed";
|
|
23
|
-
readonly IN_PROGRESS: "InProgress";
|
|
24
|
-
readonly STOPPED: "Stopped";
|
|
25
|
-
readonly STOPPING: "Stopping";
|
|
26
|
-
};
|
|
27
|
-
export type EvaluationJobStatus =
|
|
28
|
-
(typeof EvaluationJobStatus)[keyof typeof EvaluationJobStatus];
|
|
29
|
-
export interface BatchDeleteEvaluationJobItem {
|
|
30
|
-
jobIdentifier: string | undefined;
|
|
31
|
-
jobStatus: EvaluationJobStatus | undefined;
|
|
32
|
-
}
|
|
33
|
-
export interface BatchDeleteEvaluationJobResponse {
|
|
34
|
-
errors: BatchDeleteEvaluationJobError[] | undefined;
|
|
35
|
-
evaluationJobs: BatchDeleteEvaluationJobItem[] | undefined;
|
|
36
|
-
}
|
|
37
11
|
export declare class ConflictException extends __BaseException {
|
|
38
12
|
readonly name: "ConflictException";
|
|
39
13
|
readonly $fault: "client";
|
|
40
14
|
constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
|
|
41
15
|
}
|
|
16
|
+
export interface VpcConfig {
|
|
17
|
+
subnetIds: string[] | undefined;
|
|
18
|
+
securityGroupIds: string[] | undefined;
|
|
19
|
+
}
|
|
20
|
+
export interface SageMakerEndpoint {
|
|
21
|
+
initialInstanceCount: number | undefined;
|
|
22
|
+
instanceType: string | undefined;
|
|
23
|
+
executionRole: string | undefined;
|
|
24
|
+
kmsEncryptionKey?: string | undefined;
|
|
25
|
+
vpc?: VpcConfig | undefined;
|
|
26
|
+
}
|
|
27
|
+
export type EndpointConfig =
|
|
28
|
+
| EndpointConfig.SageMakerMember
|
|
29
|
+
| EndpointConfig.$UnknownMember;
|
|
30
|
+
export declare namespace EndpointConfig {
|
|
31
|
+
interface SageMakerMember {
|
|
32
|
+
sageMaker: SageMakerEndpoint;
|
|
33
|
+
$unknown?: never;
|
|
34
|
+
}
|
|
35
|
+
interface $UnknownMember {
|
|
36
|
+
sageMaker?: never;
|
|
37
|
+
$unknown: [string, any];
|
|
38
|
+
}
|
|
39
|
+
interface Visitor<T> {
|
|
40
|
+
sageMaker: (value: SageMakerEndpoint) => T;
|
|
41
|
+
_: (name: string, value: any) => T;
|
|
42
|
+
}
|
|
43
|
+
const visit: <T>(value: EndpointConfig, visitor: Visitor<T>) => T;
|
|
44
|
+
}
|
|
45
|
+
export interface Tag {
|
|
46
|
+
key: string | undefined;
|
|
47
|
+
value: string | undefined;
|
|
48
|
+
}
|
|
49
|
+
export interface CreateMarketplaceModelEndpointRequest {
|
|
50
|
+
modelSourceIdentifier: string | undefined;
|
|
51
|
+
endpointConfig: EndpointConfig | undefined;
|
|
52
|
+
acceptEula?: boolean | undefined;
|
|
53
|
+
endpointName: string | undefined;
|
|
54
|
+
clientRequestToken?: string | undefined;
|
|
55
|
+
tags?: Tag[] | undefined;
|
|
56
|
+
}
|
|
57
|
+
export declare const Status: {
|
|
58
|
+
readonly INCOMPATIBLE_ENDPOINT: "INCOMPATIBLE_ENDPOINT";
|
|
59
|
+
readonly REGISTERED: "REGISTERED";
|
|
60
|
+
};
|
|
61
|
+
export type Status = (typeof Status)[keyof typeof Status];
|
|
62
|
+
export interface MarketplaceModelEndpoint {
|
|
63
|
+
endpointArn: string | undefined;
|
|
64
|
+
modelSourceIdentifier: string | undefined;
|
|
65
|
+
status?: Status | undefined;
|
|
66
|
+
statusMessage?: string | undefined;
|
|
67
|
+
createdAt: Date | undefined;
|
|
68
|
+
updatedAt: Date | undefined;
|
|
69
|
+
endpointConfig: EndpointConfig | undefined;
|
|
70
|
+
endpointStatus: string | undefined;
|
|
71
|
+
endpointStatusMessage?: string | undefined;
|
|
72
|
+
}
|
|
73
|
+
export interface CreateMarketplaceModelEndpointResponse {
|
|
74
|
+
marketplaceModelEndpoint: MarketplaceModelEndpoint | undefined;
|
|
75
|
+
}
|
|
42
76
|
export declare class InternalServerException extends __BaseException {
|
|
43
77
|
readonly name: "InternalServerException";
|
|
44
78
|
readonly $fault: "server";
|
|
@@ -53,6 +87,13 @@ export declare class ResourceNotFoundException extends __BaseException {
|
|
|
53
87
|
opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
|
|
54
88
|
);
|
|
55
89
|
}
|
|
90
|
+
export declare class ServiceQuotaExceededException extends __BaseException {
|
|
91
|
+
readonly name: "ServiceQuotaExceededException";
|
|
92
|
+
readonly $fault: "client";
|
|
93
|
+
constructor(
|
|
94
|
+
opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>
|
|
95
|
+
);
|
|
96
|
+
}
|
|
56
97
|
export declare class ThrottlingException extends __BaseException {
|
|
57
98
|
readonly name: "ThrottlingException";
|
|
58
99
|
readonly $fault: "client";
|
|
@@ -67,6 +108,85 @@ export declare class ValidationException extends __BaseException {
|
|
|
67
108
|
opts: __ExceptionOptionType<ValidationException, __BaseException>
|
|
68
109
|
);
|
|
69
110
|
}
|
|
111
|
+
export interface DeleteMarketplaceModelEndpointRequest {
|
|
112
|
+
endpointArn: string | undefined;
|
|
113
|
+
}
|
|
114
|
+
export interface DeleteMarketplaceModelEndpointResponse {}
|
|
115
|
+
export interface DeregisterMarketplaceModelEndpointRequest {
|
|
116
|
+
endpointArn: string | undefined;
|
|
117
|
+
}
|
|
118
|
+
export interface DeregisterMarketplaceModelEndpointResponse {}
|
|
119
|
+
export declare class ServiceUnavailableException extends __BaseException {
|
|
120
|
+
readonly name: "ServiceUnavailableException";
|
|
121
|
+
readonly $fault: "server";
|
|
122
|
+
constructor(
|
|
123
|
+
opts: __ExceptionOptionType<ServiceUnavailableException, __BaseException>
|
|
124
|
+
);
|
|
125
|
+
}
|
|
126
|
+
export interface GetMarketplaceModelEndpointRequest {
|
|
127
|
+
endpointArn: string | undefined;
|
|
128
|
+
}
|
|
129
|
+
export interface GetMarketplaceModelEndpointResponse {
|
|
130
|
+
marketplaceModelEndpoint?: MarketplaceModelEndpoint | undefined;
|
|
131
|
+
}
|
|
132
|
+
export interface ListMarketplaceModelEndpointsRequest {
|
|
133
|
+
maxResults?: number | undefined;
|
|
134
|
+
nextToken?: string | undefined;
|
|
135
|
+
modelSourceEquals?: string | undefined;
|
|
136
|
+
}
|
|
137
|
+
export interface MarketplaceModelEndpointSummary {
|
|
138
|
+
endpointArn: string | undefined;
|
|
139
|
+
modelSourceIdentifier: string | undefined;
|
|
140
|
+
status?: Status | undefined;
|
|
141
|
+
statusMessage?: string | undefined;
|
|
142
|
+
createdAt: Date | undefined;
|
|
143
|
+
updatedAt: Date | undefined;
|
|
144
|
+
}
|
|
145
|
+
export interface ListMarketplaceModelEndpointsResponse {
|
|
146
|
+
marketplaceModelEndpoints?: MarketplaceModelEndpointSummary[] | undefined;
|
|
147
|
+
nextToken?: string | undefined;
|
|
148
|
+
}
|
|
149
|
+
export interface RegisterMarketplaceModelEndpointRequest {
|
|
150
|
+
endpointIdentifier: string | undefined;
|
|
151
|
+
modelSourceIdentifier: string | undefined;
|
|
152
|
+
}
|
|
153
|
+
export interface RegisterMarketplaceModelEndpointResponse {
|
|
154
|
+
marketplaceModelEndpoint: MarketplaceModelEndpoint | undefined;
|
|
155
|
+
}
|
|
156
|
+
export interface UpdateMarketplaceModelEndpointRequest {
|
|
157
|
+
endpointArn: string | undefined;
|
|
158
|
+
endpointConfig: EndpointConfig | undefined;
|
|
159
|
+
clientRequestToken?: string | undefined;
|
|
160
|
+
}
|
|
161
|
+
export interface UpdateMarketplaceModelEndpointResponse {
|
|
162
|
+
marketplaceModelEndpoint: MarketplaceModelEndpoint | undefined;
|
|
163
|
+
}
|
|
164
|
+
export interface BatchDeleteEvaluationJobRequest {
|
|
165
|
+
jobIdentifiers: string[] | undefined;
|
|
166
|
+
}
|
|
167
|
+
export interface BatchDeleteEvaluationJobError {
|
|
168
|
+
jobIdentifier: string | undefined;
|
|
169
|
+
code: string | undefined;
|
|
170
|
+
message?: string | undefined;
|
|
171
|
+
}
|
|
172
|
+
export declare const EvaluationJobStatus: {
|
|
173
|
+
readonly COMPLETED: "Completed";
|
|
174
|
+
readonly DELETING: "Deleting";
|
|
175
|
+
readonly FAILED: "Failed";
|
|
176
|
+
readonly IN_PROGRESS: "InProgress";
|
|
177
|
+
readonly STOPPED: "Stopped";
|
|
178
|
+
readonly STOPPING: "Stopping";
|
|
179
|
+
};
|
|
180
|
+
export type EvaluationJobStatus =
|
|
181
|
+
(typeof EvaluationJobStatus)[keyof typeof EvaluationJobStatus];
|
|
182
|
+
export interface BatchDeleteEvaluationJobItem {
|
|
183
|
+
jobIdentifier: string | undefined;
|
|
184
|
+
jobStatus: EvaluationJobStatus | undefined;
|
|
185
|
+
}
|
|
186
|
+
export interface BatchDeleteEvaluationJobResponse {
|
|
187
|
+
errors: BatchDeleteEvaluationJobError[] | undefined;
|
|
188
|
+
evaluationJobs: BatchDeleteEvaluationJobItem[] | undefined;
|
|
189
|
+
}
|
|
70
190
|
export declare const ApplicationType: {
|
|
71
191
|
readonly MODEL_EVALUATION: "ModelEvaluation";
|
|
72
192
|
readonly RAG_EVALUATION: "RagEvaluation";
|
|
@@ -277,23 +397,12 @@ export declare const RetrieveAndGenerateType: {
|
|
|
277
397
|
};
|
|
278
398
|
export type RetrieveAndGenerateType =
|
|
279
399
|
(typeof RetrieveAndGenerateType)[keyof typeof RetrieveAndGenerateType];
|
|
280
|
-
export interface Tag {
|
|
281
|
-
key: string | undefined;
|
|
282
|
-
value: string | undefined;
|
|
283
|
-
}
|
|
284
400
|
export interface EvaluationOutputDataConfig {
|
|
285
401
|
s3Uri: string | undefined;
|
|
286
402
|
}
|
|
287
403
|
export interface CreateEvaluationJobResponse {
|
|
288
404
|
jobArn: string | undefined;
|
|
289
405
|
}
|
|
290
|
-
export declare class ServiceQuotaExceededException extends __BaseException {
|
|
291
|
-
readonly name: "ServiceQuotaExceededException";
|
|
292
|
-
readonly $fault: "client";
|
|
293
|
-
constructor(
|
|
294
|
-
opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>
|
|
295
|
-
);
|
|
296
|
-
}
|
|
297
406
|
export interface GetEvaluationJobRequest {
|
|
298
407
|
jobIdentifier: string | undefined;
|
|
299
408
|
}
|
|
@@ -343,6 +452,12 @@ export interface StopEvaluationJobRequest {
|
|
|
343
452
|
jobIdentifier: string | undefined;
|
|
344
453
|
}
|
|
345
454
|
export interface StopEvaluationJobResponse {}
|
|
455
|
+
export declare const GuardrailModality: {
|
|
456
|
+
readonly IMAGE: "IMAGE";
|
|
457
|
+
readonly TEXT: "TEXT";
|
|
458
|
+
};
|
|
459
|
+
export type GuardrailModality =
|
|
460
|
+
(typeof GuardrailModality)[keyof typeof GuardrailModality];
|
|
346
461
|
export declare const GuardrailFilterStrength: {
|
|
347
462
|
readonly HIGH: "HIGH";
|
|
348
463
|
readonly LOW: "LOW";
|
|
@@ -365,6 +480,8 @@ export interface GuardrailContentFilterConfig {
|
|
|
365
480
|
type: GuardrailContentFilterType | undefined;
|
|
366
481
|
inputStrength: GuardrailFilterStrength | undefined;
|
|
367
482
|
outputStrength: GuardrailFilterStrength | undefined;
|
|
483
|
+
inputModalities?: GuardrailModality[] | undefined;
|
|
484
|
+
outputModalities?: GuardrailModality[] | undefined;
|
|
368
485
|
}
|
|
369
486
|
export interface GuardrailContentPolicyConfig {
|
|
370
487
|
filtersConfig: GuardrailContentFilterConfig[] | undefined;
|
|
@@ -520,6 +637,8 @@ export interface GuardrailContentFilter {
|
|
|
520
637
|
type: GuardrailContentFilterType | undefined;
|
|
521
638
|
inputStrength: GuardrailFilterStrength | undefined;
|
|
522
639
|
outputStrength: GuardrailFilterStrength | undefined;
|
|
640
|
+
inputModalities?: GuardrailModality[] | undefined;
|
|
641
|
+
outputModalities?: GuardrailModality[] | undefined;
|
|
523
642
|
}
|
|
524
643
|
export interface GuardrailContentPolicy {
|
|
525
644
|
filters?: GuardrailContentFilter[] | undefined;
|
|
@@ -738,6 +857,7 @@ export interface LoggingConfig {
|
|
|
738
857
|
textDataDeliveryEnabled?: boolean | undefined;
|
|
739
858
|
imageDataDeliveryEnabled?: boolean | undefined;
|
|
740
859
|
embeddingDataDeliveryEnabled?: boolean | undefined;
|
|
860
|
+
videoDataDeliveryEnabled?: boolean | undefined;
|
|
741
861
|
}
|
|
742
862
|
export interface GetModelInvocationLoggingConfigurationResponse {
|
|
743
863
|
loggingConfig?: LoggingConfig | undefined;
|
|
@@ -829,10 +949,6 @@ export declare namespace ModelDataSource {
|
|
|
829
949
|
}
|
|
830
950
|
const visit: <T>(value: ModelDataSource, visitor: Visitor<T>) => T;
|
|
831
951
|
}
|
|
832
|
-
export interface VpcConfig {
|
|
833
|
-
subnetIds: string[] | undefined;
|
|
834
|
-
securityGroupIds: string[] | undefined;
|
|
835
|
-
}
|
|
836
952
|
export interface CreateModelImportJobRequest {
|
|
837
953
|
jobName: string | undefined;
|
|
838
954
|
importedModelName: string | undefined;
|
|
@@ -1084,8 +1200,34 @@ export interface DeleteCustomModelResponse {}
|
|
|
1084
1200
|
export interface GetCustomModelRequest {
|
|
1085
1201
|
modelIdentifier: string | undefined;
|
|
1086
1202
|
}
|
|
1203
|
+
export interface TeacherModelConfig {
|
|
1204
|
+
teacherModelIdentifier: string | undefined;
|
|
1205
|
+
maxResponseLengthForInference?: number | undefined;
|
|
1206
|
+
}
|
|
1207
|
+
export interface DistillationConfig {
|
|
1208
|
+
teacherModelConfig: TeacherModelConfig | undefined;
|
|
1209
|
+
}
|
|
1210
|
+
export type CustomizationConfig =
|
|
1211
|
+
| CustomizationConfig.DistillationConfigMember
|
|
1212
|
+
| CustomizationConfig.$UnknownMember;
|
|
1213
|
+
export declare namespace CustomizationConfig {
|
|
1214
|
+
interface DistillationConfigMember {
|
|
1215
|
+
distillationConfig: DistillationConfig;
|
|
1216
|
+
$unknown?: never;
|
|
1217
|
+
}
|
|
1218
|
+
interface $UnknownMember {
|
|
1219
|
+
distillationConfig?: never;
|
|
1220
|
+
$unknown: [string, any];
|
|
1221
|
+
}
|
|
1222
|
+
interface Visitor<T> {
|
|
1223
|
+
distillationConfig: (value: DistillationConfig) => T;
|
|
1224
|
+
_: (name: string, value: any) => T;
|
|
1225
|
+
}
|
|
1226
|
+
const visit: <T>(value: CustomizationConfig, visitor: Visitor<T>) => T;
|
|
1227
|
+
}
|
|
1087
1228
|
export declare const CustomizationType: {
|
|
1088
1229
|
readonly CONTINUED_PRE_TRAINING: "CONTINUED_PRE_TRAINING";
|
|
1230
|
+
readonly DISTILLATION: "DISTILLATION";
|
|
1089
1231
|
readonly FINE_TUNING: "FINE_TUNING";
|
|
1090
1232
|
};
|
|
1091
1233
|
export type CustomizationType =
|
|
@@ -1093,8 +1235,87 @@ export type CustomizationType =
|
|
|
1093
1235
|
export interface OutputDataConfig {
|
|
1094
1236
|
s3Uri: string | undefined;
|
|
1095
1237
|
}
|
|
1238
|
+
export type InvocationLogSource =
|
|
1239
|
+
| InvocationLogSource.S3UriMember
|
|
1240
|
+
| InvocationLogSource.$UnknownMember;
|
|
1241
|
+
export declare namespace InvocationLogSource {
|
|
1242
|
+
interface S3UriMember {
|
|
1243
|
+
s3Uri: string;
|
|
1244
|
+
$unknown?: never;
|
|
1245
|
+
}
|
|
1246
|
+
interface $UnknownMember {
|
|
1247
|
+
s3Uri?: never;
|
|
1248
|
+
$unknown: [string, any];
|
|
1249
|
+
}
|
|
1250
|
+
interface Visitor<T> {
|
|
1251
|
+
s3Uri: (value: string) => T;
|
|
1252
|
+
_: (name: string, value: any) => T;
|
|
1253
|
+
}
|
|
1254
|
+
const visit: <T>(value: InvocationLogSource, visitor: Visitor<T>) => T;
|
|
1255
|
+
}
|
|
1256
|
+
export interface RequestMetadataBaseFilters {
|
|
1257
|
+
equals?: Record<string, string> | undefined;
|
|
1258
|
+
notEquals?: Record<string, string> | undefined;
|
|
1259
|
+
}
|
|
1260
|
+
export type RequestMetadataFilters =
|
|
1261
|
+
| RequestMetadataFilters.AndAllMember
|
|
1262
|
+
| RequestMetadataFilters.EqualsMember
|
|
1263
|
+
| RequestMetadataFilters.NotEqualsMember
|
|
1264
|
+
| RequestMetadataFilters.OrAllMember
|
|
1265
|
+
| RequestMetadataFilters.$UnknownMember;
|
|
1266
|
+
export declare namespace RequestMetadataFilters {
|
|
1267
|
+
interface EqualsMember {
|
|
1268
|
+
equals: Record<string, string>;
|
|
1269
|
+
notEquals?: never;
|
|
1270
|
+
andAll?: never;
|
|
1271
|
+
orAll?: never;
|
|
1272
|
+
$unknown?: never;
|
|
1273
|
+
}
|
|
1274
|
+
interface NotEqualsMember {
|
|
1275
|
+
equals?: never;
|
|
1276
|
+
notEquals: Record<string, string>;
|
|
1277
|
+
andAll?: never;
|
|
1278
|
+
orAll?: never;
|
|
1279
|
+
$unknown?: never;
|
|
1280
|
+
}
|
|
1281
|
+
interface AndAllMember {
|
|
1282
|
+
equals?: never;
|
|
1283
|
+
notEquals?: never;
|
|
1284
|
+
andAll: RequestMetadataBaseFilters[];
|
|
1285
|
+
orAll?: never;
|
|
1286
|
+
$unknown?: never;
|
|
1287
|
+
}
|
|
1288
|
+
interface OrAllMember {
|
|
1289
|
+
equals?: never;
|
|
1290
|
+
notEquals?: never;
|
|
1291
|
+
andAll?: never;
|
|
1292
|
+
orAll: RequestMetadataBaseFilters[];
|
|
1293
|
+
$unknown?: never;
|
|
1294
|
+
}
|
|
1295
|
+
interface $UnknownMember {
|
|
1296
|
+
equals?: never;
|
|
1297
|
+
notEquals?: never;
|
|
1298
|
+
andAll?: never;
|
|
1299
|
+
orAll?: never;
|
|
1300
|
+
$unknown: [string, any];
|
|
1301
|
+
}
|
|
1302
|
+
interface Visitor<T> {
|
|
1303
|
+
equals: (value: Record<string, string>) => T;
|
|
1304
|
+
notEquals: (value: Record<string, string>) => T;
|
|
1305
|
+
andAll: (value: RequestMetadataBaseFilters[]) => T;
|
|
1306
|
+
orAll: (value: RequestMetadataBaseFilters[]) => T;
|
|
1307
|
+
_: (name: string, value: any) => T;
|
|
1308
|
+
}
|
|
1309
|
+
const visit: <T>(value: RequestMetadataFilters, visitor: Visitor<T>) => T;
|
|
1310
|
+
}
|
|
1311
|
+
export interface InvocationLogsConfig {
|
|
1312
|
+
usePromptResponse?: boolean | undefined;
|
|
1313
|
+
invocationLogSource: InvocationLogSource | undefined;
|
|
1314
|
+
requestMetadataFilters?: RequestMetadataFilters | undefined;
|
|
1315
|
+
}
|
|
1096
1316
|
export interface TrainingDataConfig {
|
|
1097
|
-
s3Uri
|
|
1317
|
+
s3Uri?: string | undefined;
|
|
1318
|
+
invocationLogsConfig?: InvocationLogsConfig | undefined;
|
|
1098
1319
|
}
|
|
1099
1320
|
export interface TrainingMetrics {
|
|
1100
1321
|
trainingLoss?: number | undefined;
|
|
@@ -1123,12 +1344,14 @@ export interface GetCustomModelResponse {
|
|
|
1123
1344
|
trainingMetrics?: TrainingMetrics | undefined;
|
|
1124
1345
|
validationMetrics?: ValidatorMetric[] | undefined;
|
|
1125
1346
|
creationTime: Date | undefined;
|
|
1347
|
+
customizationConfig?: CustomizationConfig | undefined;
|
|
1126
1348
|
}
|
|
1127
1349
|
export interface GetFoundationModelRequest {
|
|
1128
1350
|
modelIdentifier: string | undefined;
|
|
1129
1351
|
}
|
|
1130
1352
|
export declare const ModelCustomization: {
|
|
1131
1353
|
readonly CONTINUED_PRE_TRAINING: "CONTINUED_PRE_TRAINING";
|
|
1354
|
+
readonly DISTILLATION: "DISTILLATION";
|
|
1132
1355
|
readonly FINE_TUNING: "FINE_TUNING";
|
|
1133
1356
|
};
|
|
1134
1357
|
export type ModelCustomization =
|
|
@@ -1214,6 +1437,58 @@ export interface FoundationModelSummary {
|
|
|
1214
1437
|
export interface ListFoundationModelsResponse {
|
|
1215
1438
|
modelSummaries?: FoundationModelSummary[] | undefined;
|
|
1216
1439
|
}
|
|
1440
|
+
export interface GetPromptRouterRequest {
|
|
1441
|
+
promptRouterArn: string | undefined;
|
|
1442
|
+
}
|
|
1443
|
+
export interface PromptRouterTargetModel {
|
|
1444
|
+
modelArn?: string | undefined;
|
|
1445
|
+
}
|
|
1446
|
+
export interface RoutingCriteria {
|
|
1447
|
+
responseQualityDifference: number | undefined;
|
|
1448
|
+
}
|
|
1449
|
+
export declare const PromptRouterStatus: {
|
|
1450
|
+
readonly AVAILABLE: "AVAILABLE";
|
|
1451
|
+
};
|
|
1452
|
+
export type PromptRouterStatus =
|
|
1453
|
+
(typeof PromptRouterStatus)[keyof typeof PromptRouterStatus];
|
|
1454
|
+
export declare const PromptRouterType: {
|
|
1455
|
+
readonly CUSTOM: "custom";
|
|
1456
|
+
readonly DEFAULT: "default";
|
|
1457
|
+
};
|
|
1458
|
+
export type PromptRouterType =
|
|
1459
|
+
(typeof PromptRouterType)[keyof typeof PromptRouterType];
|
|
1460
|
+
export interface GetPromptRouterResponse {
|
|
1461
|
+
promptRouterName: string | undefined;
|
|
1462
|
+
routingCriteria: RoutingCriteria | undefined;
|
|
1463
|
+
description?: string | undefined;
|
|
1464
|
+
createdAt?: Date | undefined;
|
|
1465
|
+
updatedAt?: Date | undefined;
|
|
1466
|
+
promptRouterArn: string | undefined;
|
|
1467
|
+
models: PromptRouterTargetModel[] | undefined;
|
|
1468
|
+
fallbackModel: PromptRouterTargetModel | undefined;
|
|
1469
|
+
status: PromptRouterStatus | undefined;
|
|
1470
|
+
type: PromptRouterType | undefined;
|
|
1471
|
+
}
|
|
1472
|
+
export interface ListPromptRoutersRequest {
|
|
1473
|
+
maxResults?: number | undefined;
|
|
1474
|
+
nextToken?: string | undefined;
|
|
1475
|
+
}
|
|
1476
|
+
export interface PromptRouterSummary {
|
|
1477
|
+
promptRouterName: string | undefined;
|
|
1478
|
+
routingCriteria: RoutingCriteria | undefined;
|
|
1479
|
+
description?: string | undefined;
|
|
1480
|
+
createdAt?: Date | undefined;
|
|
1481
|
+
updatedAt?: Date | undefined;
|
|
1482
|
+
promptRouterArn: string | undefined;
|
|
1483
|
+
models: PromptRouterTargetModel[] | undefined;
|
|
1484
|
+
fallbackModel: PromptRouterTargetModel | undefined;
|
|
1485
|
+
status: PromptRouterStatus | undefined;
|
|
1486
|
+
type: PromptRouterType | undefined;
|
|
1487
|
+
}
|
|
1488
|
+
export interface ListPromptRoutersResponse {
|
|
1489
|
+
promptRouterSummaries?: PromptRouterSummary[] | undefined;
|
|
1490
|
+
nextToken?: string | undefined;
|
|
1491
|
+
}
|
|
1217
1492
|
export declare const CommitmentDuration: {
|
|
1218
1493
|
readonly ONE_MONTH: "OneMonth";
|
|
1219
1494
|
readonly SIX_MONTHS: "SixMonths";
|
|
@@ -1330,8 +1605,9 @@ export interface CreateModelCustomizationJobRequest {
|
|
|
1330
1605
|
trainingDataConfig: TrainingDataConfig | undefined;
|
|
1331
1606
|
validationDataConfig?: ValidationDataConfig | undefined;
|
|
1332
1607
|
outputDataConfig: OutputDataConfig | undefined;
|
|
1333
|
-
hyperParameters
|
|
1608
|
+
hyperParameters?: Record<string, string> | undefined;
|
|
1334
1609
|
vpcConfig?: VpcConfig | undefined;
|
|
1610
|
+
customizationConfig?: CustomizationConfig | undefined;
|
|
1335
1611
|
}
|
|
1336
1612
|
export interface CreateModelCustomizationJobResponse {
|
|
1337
1613
|
jobArn: string | undefined;
|
|
@@ -1361,7 +1637,7 @@ export interface GetModelCustomizationJobResponse {
|
|
|
1361
1637
|
lastModifiedTime?: Date | undefined;
|
|
1362
1638
|
endTime?: Date | undefined;
|
|
1363
1639
|
baseModelArn: string | undefined;
|
|
1364
|
-
hyperParameters
|
|
1640
|
+
hyperParameters?: Record<string, string> | undefined;
|
|
1365
1641
|
trainingDataConfig: TrainingDataConfig | undefined;
|
|
1366
1642
|
validationDataConfig: ValidationDataConfig | undefined;
|
|
1367
1643
|
outputDataConfig: OutputDataConfig | undefined;
|
|
@@ -1370,6 +1646,7 @@ export interface GetModelCustomizationJobResponse {
|
|
|
1370
1646
|
trainingMetrics?: TrainingMetrics | undefined;
|
|
1371
1647
|
validationMetrics?: ValidatorMetric[] | undefined;
|
|
1372
1648
|
vpcConfig?: VpcConfig | undefined;
|
|
1649
|
+
customizationConfig?: CustomizationConfig | undefined;
|
|
1373
1650
|
}
|
|
1374
1651
|
export declare const FineTuningJobStatus: {
|
|
1375
1652
|
readonly COMPLETED: "Completed";
|
|
@@ -1861,6 +2138,12 @@ export declare const GetEvaluationJobRequestFilterSensitiveLog: (
|
|
|
1861
2138
|
export declare const StopEvaluationJobRequestFilterSensitiveLog: (
|
|
1862
2139
|
obj: StopEvaluationJobRequest
|
|
1863
2140
|
) => any;
|
|
2141
|
+
export declare const GuardrailContentFilterConfigFilterSensitiveLog: (
|
|
2142
|
+
obj: GuardrailContentFilterConfig
|
|
2143
|
+
) => any;
|
|
2144
|
+
export declare const GuardrailContentPolicyConfigFilterSensitiveLog: (
|
|
2145
|
+
obj: GuardrailContentPolicyConfig
|
|
2146
|
+
) => any;
|
|
1864
2147
|
export declare const GuardrailTopicConfigFilterSensitiveLog: (
|
|
1865
2148
|
obj: GuardrailTopicConfig
|
|
1866
2149
|
) => any;
|
|
@@ -1873,6 +2156,12 @@ export declare const CreateGuardrailRequestFilterSensitiveLog: (
|
|
|
1873
2156
|
export declare const CreateGuardrailVersionRequestFilterSensitiveLog: (
|
|
1874
2157
|
obj: CreateGuardrailVersionRequest
|
|
1875
2158
|
) => any;
|
|
2159
|
+
export declare const GuardrailContentFilterFilterSensitiveLog: (
|
|
2160
|
+
obj: GuardrailContentFilter
|
|
2161
|
+
) => any;
|
|
2162
|
+
export declare const GuardrailContentPolicyFilterSensitiveLog: (
|
|
2163
|
+
obj: GuardrailContentPolicy
|
|
2164
|
+
) => any;
|
|
1876
2165
|
export declare const GuardrailTopicFilterSensitiveLog: (
|
|
1877
2166
|
obj: GuardrailTopic
|
|
1878
2167
|
) => any;
|
|
@@ -1912,6 +2201,36 @@ export declare const ModelInvocationJobSummaryFilterSensitiveLog: (
|
|
|
1912
2201
|
export declare const ListModelInvocationJobsResponseFilterSensitiveLog: (
|
|
1913
2202
|
obj: ListModelInvocationJobsResponse
|
|
1914
2203
|
) => any;
|
|
2204
|
+
export declare const RequestMetadataBaseFiltersFilterSensitiveLog: (
|
|
2205
|
+
obj: RequestMetadataBaseFilters
|
|
2206
|
+
) => any;
|
|
2207
|
+
export declare const RequestMetadataFiltersFilterSensitiveLog: (
|
|
2208
|
+
obj: RequestMetadataFilters
|
|
2209
|
+
) => any;
|
|
2210
|
+
export declare const InvocationLogsConfigFilterSensitiveLog: (
|
|
2211
|
+
obj: InvocationLogsConfig
|
|
2212
|
+
) => any;
|
|
2213
|
+
export declare const TrainingDataConfigFilterSensitiveLog: (
|
|
2214
|
+
obj: TrainingDataConfig
|
|
2215
|
+
) => any;
|
|
2216
|
+
export declare const GetCustomModelResponseFilterSensitiveLog: (
|
|
2217
|
+
obj: GetCustomModelResponse
|
|
2218
|
+
) => any;
|
|
2219
|
+
export declare const GetPromptRouterResponseFilterSensitiveLog: (
|
|
2220
|
+
obj: GetPromptRouterResponse
|
|
2221
|
+
) => any;
|
|
2222
|
+
export declare const PromptRouterSummaryFilterSensitiveLog: (
|
|
2223
|
+
obj: PromptRouterSummary
|
|
2224
|
+
) => any;
|
|
2225
|
+
export declare const ListPromptRoutersResponseFilterSensitiveLog: (
|
|
2226
|
+
obj: ListPromptRoutersResponse
|
|
2227
|
+
) => any;
|
|
2228
|
+
export declare const CreateModelCustomizationJobRequestFilterSensitiveLog: (
|
|
2229
|
+
obj: CreateModelCustomizationJobRequest
|
|
2230
|
+
) => any;
|
|
2231
|
+
export declare const GetModelCustomizationJobResponseFilterSensitiveLog: (
|
|
2232
|
+
obj: GetModelCustomizationJobResponse
|
|
2233
|
+
) => any;
|
|
1915
2234
|
export declare const RetrievalFilterFilterSensitiveLog: (
|
|
1916
2235
|
obj: RetrievalFilter
|
|
1917
2236
|
) => any;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Paginator } from "@smithy/types";
|
|
2
|
+
import {
|
|
3
|
+
ListMarketplaceModelEndpointsCommandInput,
|
|
4
|
+
ListMarketplaceModelEndpointsCommandOutput,
|
|
5
|
+
} from "../commands/ListMarketplaceModelEndpointsCommand";
|
|
6
|
+
import { BedrockPaginationConfiguration } from "./Interfaces";
|
|
7
|
+
export declare const paginateListMarketplaceModelEndpoints: (
|
|
8
|
+
config: BedrockPaginationConfiguration,
|
|
9
|
+
input: ListMarketplaceModelEndpointsCommandInput,
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListMarketplaceModelEndpointsCommandOutput>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Paginator } from "@smithy/types";
|
|
2
|
+
import {
|
|
3
|
+
ListPromptRoutersCommandInput,
|
|
4
|
+
ListPromptRoutersCommandOutput,
|
|
5
|
+
} from "../commands/ListPromptRoutersCommand";
|
|
6
|
+
import { BedrockPaginationConfiguration } from "./Interfaces";
|
|
7
|
+
export declare const paginateListPromptRouters: (
|
|
8
|
+
config: BedrockPaginationConfiguration,
|
|
9
|
+
input: ListPromptRoutersCommandInput,
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListPromptRoutersCommandOutput>;
|
|
@@ -4,8 +4,10 @@ export * from "./ListEvaluationJobsPaginator";
|
|
|
4
4
|
export * from "./ListGuardrailsPaginator";
|
|
5
5
|
export * from "./ListImportedModelsPaginator";
|
|
6
6
|
export * from "./ListInferenceProfilesPaginator";
|
|
7
|
+
export * from "./ListMarketplaceModelEndpointsPaginator";
|
|
7
8
|
export * from "./ListModelCopyJobsPaginator";
|
|
8
9
|
export * from "./ListModelCustomizationJobsPaginator";
|
|
9
10
|
export * from "./ListModelImportJobsPaginator";
|
|
10
11
|
export * from "./ListModelInvocationJobsPaginator";
|
|
12
|
+
export * from "./ListPromptRoutersPaginator";
|
|
11
13
|
export * from "./ListProvisionedModelThroughputsPaginator";
|