@aws-sdk/client-bedrock 3.826.0 → 3.830.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 +8 -0
- package/dist-cjs/index.js +218 -153
- package/dist-es/Bedrock.js +2 -0
- package/dist-es/commands/CreateCustomModelCommand.js +22 -0
- package/dist-es/commands/CreateEvaluationJobCommand.js +1 -1
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +105 -141
- package/dist-es/models/models_1.js +43 -1
- package/dist-es/protocols/Aws_restJson1.js +39 -1
- package/dist-types/Bedrock.d.ts +7 -0
- package/dist-types/BedrockClient.d.ts +3 -2
- package/dist-types/commands/BatchDeleteEvaluationJobCommand.d.ts +1 -3
- package/dist-types/commands/CreateCustomModelCommand.d.ts +143 -0
- package/dist-types/commands/CreateEvaluationJobCommand.d.ts +2 -1
- package/dist-types/commands/CreateGuardrailCommand.d.ts +2 -34
- package/dist-types/commands/CreateGuardrailVersionCommand.d.ts +1 -2
- package/dist-types/commands/CreateInferenceProfileCommand.d.ts +1 -2
- package/dist-types/commands/CreateMarketplaceModelEndpointCommand.d.ts +1 -2
- package/dist-types/commands/CreateModelCopyJobCommand.d.ts +1 -2
- package/dist-types/commands/CreateModelCustomizationJobCommand.d.ts +3 -12
- package/dist-types/commands/CreateModelImportJobCommand.d.ts +2 -5
- package/dist-types/commands/CreateModelInvocationJobCommand.d.ts +1 -2
- package/dist-types/commands/CreatePromptRouterCommand.d.ts +1 -2
- package/dist-types/commands/CreateProvisionedModelThroughputCommand.d.ts +1 -2
- package/dist-types/commands/DeleteGuardrailCommand.d.ts +1 -9
- package/dist-types/commands/DeleteImportedModelCommand.d.ts +1 -3
- package/dist-types/commands/DeregisterMarketplaceModelEndpointCommand.d.ts +1 -3
- package/dist-types/commands/GetCustomModelCommand.d.ts +6 -4
- package/dist-types/commands/GetModelCustomizationJobCommand.d.ts +3 -4
- package/dist-types/commands/GetModelImportJobCommand.d.ts +1 -3
- package/dist-types/commands/GetModelInvocationJobCommand.d.ts +1 -2
- package/dist-types/commands/ListCustomModelsCommand.d.ts +4 -3
- package/dist-types/commands/ListGuardrailsCommand.d.ts +1 -2
- package/dist-types/commands/ListImportedModelsCommand.d.ts +1 -3
- package/dist-types/commands/ListMarketplaceModelEndpointsCommand.d.ts +1 -2
- package/dist-types/commands/ListModelCopyJobsCommand.d.ts +1 -2
- package/dist-types/commands/ListModelCustomizationJobsCommand.d.ts +3 -5
- package/dist-types/commands/ListModelImportJobsCommand.d.ts +1 -3
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -2
- package/dist-types/commands/RegisterMarketplaceModelEndpointCommand.d.ts +1 -2
- package/dist-types/commands/TagResourceCommand.d.ts +2 -3
- package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UpdateGuardrailCommand.d.ts +1 -37
- package/dist-types/commands/UpdateMarketplaceModelEndpointCommand.d.ts +1 -2
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +7 -7
- package/dist-types/models/models_0.d.ts +1188 -2462
- package/dist-types/models/models_1.d.ts +153 -3
- package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
- package/dist-types/runtimeConfig.browser.d.ts +2 -2
- package/dist-types/runtimeConfig.native.d.ts +2 -2
- package/dist-types/ts3.4/Bedrock.d.ts +17 -0
- package/dist-types/ts3.4/BedrockClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/CreateCustomModelCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateEvaluationJobCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +7 -7
- package/dist-types/ts3.4/models/models_0.d.ts +255 -308
- package/dist-types/ts3.4/models/models_1.d.ts +79 -1
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -2
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -2
- package/package.json +5 -5
|
@@ -108,6 +108,76 @@ export class ServiceUnavailableException extends __BaseException {
|
|
|
108
108
|
Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
|
+
export var ModelDataSource;
|
|
112
|
+
(function (ModelDataSource) {
|
|
113
|
+
ModelDataSource.visit = (value, visitor) => {
|
|
114
|
+
if (value.s3DataSource !== undefined)
|
|
115
|
+
return visitor.s3DataSource(value.s3DataSource);
|
|
116
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
117
|
+
};
|
|
118
|
+
})(ModelDataSource || (ModelDataSource = {}));
|
|
119
|
+
export class TooManyTagsException extends __BaseException {
|
|
120
|
+
name = "TooManyTagsException";
|
|
121
|
+
$fault = "client";
|
|
122
|
+
resourceName;
|
|
123
|
+
constructor(opts) {
|
|
124
|
+
super({
|
|
125
|
+
name: "TooManyTagsException",
|
|
126
|
+
$fault: "client",
|
|
127
|
+
...opts,
|
|
128
|
+
});
|
|
129
|
+
Object.setPrototypeOf(this, TooManyTagsException.prototype);
|
|
130
|
+
this.resourceName = opts.resourceName;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
export var CustomizationConfig;
|
|
134
|
+
(function (CustomizationConfig) {
|
|
135
|
+
CustomizationConfig.visit = (value, visitor) => {
|
|
136
|
+
if (value.distillationConfig !== undefined)
|
|
137
|
+
return visitor.distillationConfig(value.distillationConfig);
|
|
138
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
139
|
+
};
|
|
140
|
+
})(CustomizationConfig || (CustomizationConfig = {}));
|
|
141
|
+
export const CustomizationType = {
|
|
142
|
+
CONTINUED_PRE_TRAINING: "CONTINUED_PRE_TRAINING",
|
|
143
|
+
DISTILLATION: "DISTILLATION",
|
|
144
|
+
FINE_TUNING: "FINE_TUNING",
|
|
145
|
+
IMPORTED: "IMPORTED",
|
|
146
|
+
};
|
|
147
|
+
export const ModelStatus = {
|
|
148
|
+
ACTIVE: "Active",
|
|
149
|
+
CREATING: "Creating",
|
|
150
|
+
FAILED: "Failed",
|
|
151
|
+
};
|
|
152
|
+
export var InvocationLogSource;
|
|
153
|
+
(function (InvocationLogSource) {
|
|
154
|
+
InvocationLogSource.visit = (value, visitor) => {
|
|
155
|
+
if (value.s3Uri !== undefined)
|
|
156
|
+
return visitor.s3Uri(value.s3Uri);
|
|
157
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
158
|
+
};
|
|
159
|
+
})(InvocationLogSource || (InvocationLogSource = {}));
|
|
160
|
+
export var RequestMetadataFilters;
|
|
161
|
+
(function (RequestMetadataFilters) {
|
|
162
|
+
RequestMetadataFilters.visit = (value, visitor) => {
|
|
163
|
+
if (value.equals !== undefined)
|
|
164
|
+
return visitor.equals(value.equals);
|
|
165
|
+
if (value.notEquals !== undefined)
|
|
166
|
+
return visitor.notEquals(value.notEquals);
|
|
167
|
+
if (value.andAll !== undefined)
|
|
168
|
+
return visitor.andAll(value.andAll);
|
|
169
|
+
if (value.orAll !== undefined)
|
|
170
|
+
return visitor.orAll(value.orAll);
|
|
171
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
172
|
+
};
|
|
173
|
+
})(RequestMetadataFilters || (RequestMetadataFilters = {}));
|
|
174
|
+
export const SortModelsBy = {
|
|
175
|
+
CREATION_TIME: "CreationTime",
|
|
176
|
+
};
|
|
177
|
+
export const SortOrder = {
|
|
178
|
+
ASCENDING: "Ascending",
|
|
179
|
+
DESCENDING: "Descending",
|
|
180
|
+
};
|
|
111
181
|
export const EvaluationJobStatus = {
|
|
112
182
|
COMPLETED: "Completed",
|
|
113
183
|
DELETING: "Deleting",
|
|
@@ -217,10 +287,6 @@ export const EvaluationJobType = {
|
|
|
217
287
|
export const SortJobsBy = {
|
|
218
288
|
CREATION_TIME: "CreationTime",
|
|
219
289
|
};
|
|
220
|
-
export const SortOrder = {
|
|
221
|
-
ASCENDING: "Ascending",
|
|
222
|
-
DESCENDING: "Descending",
|
|
223
|
-
};
|
|
224
290
|
export const GuardrailContentFilterAction = {
|
|
225
291
|
BLOCK: "BLOCK",
|
|
226
292
|
NONE: "NONE",
|
|
@@ -303,20 +369,6 @@ export const GuardrailWordAction = {
|
|
|
303
369
|
export const GuardrailManagedWordsType = {
|
|
304
370
|
PROFANITY: "PROFANITY",
|
|
305
371
|
};
|
|
306
|
-
export class TooManyTagsException extends __BaseException {
|
|
307
|
-
name = "TooManyTagsException";
|
|
308
|
-
$fault = "client";
|
|
309
|
-
resourceName;
|
|
310
|
-
constructor(opts) {
|
|
311
|
-
super({
|
|
312
|
-
name: "TooManyTagsException",
|
|
313
|
-
$fault: "client",
|
|
314
|
-
...opts,
|
|
315
|
-
});
|
|
316
|
-
Object.setPrototypeOf(this, TooManyTagsException.prototype);
|
|
317
|
-
this.resourceName = opts.resourceName;
|
|
318
|
-
}
|
|
319
|
-
}
|
|
320
372
|
export const GuardrailStatus = {
|
|
321
373
|
CREATING: "CREATING",
|
|
322
374
|
DELETING: "DELETING",
|
|
@@ -345,22 +397,11 @@ export const ModelCopyJobStatus = {
|
|
|
345
397
|
FAILED: "Failed",
|
|
346
398
|
IN_PROGRESS: "InProgress",
|
|
347
399
|
};
|
|
348
|
-
export var ModelDataSource;
|
|
349
|
-
(function (ModelDataSource) {
|
|
350
|
-
ModelDataSource.visit = (value, visitor) => {
|
|
351
|
-
if (value.s3DataSource !== undefined)
|
|
352
|
-
return visitor.s3DataSource(value.s3DataSource);
|
|
353
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
354
|
-
};
|
|
355
|
-
})(ModelDataSource || (ModelDataSource = {}));
|
|
356
400
|
export const ModelImportJobStatus = {
|
|
357
401
|
COMPLETED: "Completed",
|
|
358
402
|
FAILED: "Failed",
|
|
359
403
|
IN_PROGRESS: "InProgress",
|
|
360
404
|
};
|
|
361
|
-
export const SortModelsBy = {
|
|
362
|
-
CREATION_TIME: "CreationTime",
|
|
363
|
-
};
|
|
364
405
|
export const S3InputFormat = {
|
|
365
406
|
JSONL: "JSONL",
|
|
366
407
|
};
|
|
@@ -392,41 +433,6 @@ export const ModelInvocationJobStatus = {
|
|
|
392
433
|
SUBMITTED: "Submitted",
|
|
393
434
|
VALIDATING: "Validating",
|
|
394
435
|
};
|
|
395
|
-
export var CustomizationConfig;
|
|
396
|
-
(function (CustomizationConfig) {
|
|
397
|
-
CustomizationConfig.visit = (value, visitor) => {
|
|
398
|
-
if (value.distillationConfig !== undefined)
|
|
399
|
-
return visitor.distillationConfig(value.distillationConfig);
|
|
400
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
401
|
-
};
|
|
402
|
-
})(CustomizationConfig || (CustomizationConfig = {}));
|
|
403
|
-
export const CustomizationType = {
|
|
404
|
-
CONTINUED_PRE_TRAINING: "CONTINUED_PRE_TRAINING",
|
|
405
|
-
DISTILLATION: "DISTILLATION",
|
|
406
|
-
FINE_TUNING: "FINE_TUNING",
|
|
407
|
-
};
|
|
408
|
-
export var InvocationLogSource;
|
|
409
|
-
(function (InvocationLogSource) {
|
|
410
|
-
InvocationLogSource.visit = (value, visitor) => {
|
|
411
|
-
if (value.s3Uri !== undefined)
|
|
412
|
-
return visitor.s3Uri(value.s3Uri);
|
|
413
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
414
|
-
};
|
|
415
|
-
})(InvocationLogSource || (InvocationLogSource = {}));
|
|
416
|
-
export var RequestMetadataFilters;
|
|
417
|
-
(function (RequestMetadataFilters) {
|
|
418
|
-
RequestMetadataFilters.visit = (value, visitor) => {
|
|
419
|
-
if (value.equals !== undefined)
|
|
420
|
-
return visitor.equals(value.equals);
|
|
421
|
-
if (value.notEquals !== undefined)
|
|
422
|
-
return visitor.notEquals(value.notEquals);
|
|
423
|
-
if (value.andAll !== undefined)
|
|
424
|
-
return visitor.andAll(value.andAll);
|
|
425
|
-
if (value.orAll !== undefined)
|
|
426
|
-
return visitor.orAll(value.orAll);
|
|
427
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
428
|
-
};
|
|
429
|
-
})(RequestMetadataFilters || (RequestMetadataFilters = {}));
|
|
430
436
|
export const ModelCustomization = {
|
|
431
437
|
CONTINUED_PRE_TRAINING: "CONTINUED_PRE_TRAINING",
|
|
432
438
|
DISTILLATION: "DISTILLATION",
|
|
@@ -529,26 +535,41 @@ export var KnowledgeBaseConfig;
|
|
|
529
535
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
530
536
|
};
|
|
531
537
|
})(KnowledgeBaseConfig || (KnowledgeBaseConfig = {}));
|
|
532
|
-
export
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
return
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
(
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
538
|
+
export const RequestMetadataBaseFiltersFilterSensitiveLog = (obj) => ({
|
|
539
|
+
...obj,
|
|
540
|
+
...(obj.equals && { equals: SENSITIVE_STRING }),
|
|
541
|
+
...(obj.notEquals && { notEquals: SENSITIVE_STRING }),
|
|
542
|
+
});
|
|
543
|
+
export const RequestMetadataFiltersFilterSensitiveLog = (obj) => {
|
|
544
|
+
if (obj.equals !== undefined)
|
|
545
|
+
return { equals: SENSITIVE_STRING };
|
|
546
|
+
if (obj.notEquals !== undefined)
|
|
547
|
+
return { notEquals: SENSITIVE_STRING };
|
|
548
|
+
if (obj.andAll !== undefined)
|
|
549
|
+
return { andAll: obj.andAll.map((item) => RequestMetadataBaseFiltersFilterSensitiveLog(item)) };
|
|
550
|
+
if (obj.orAll !== undefined)
|
|
551
|
+
return { orAll: obj.orAll.map((item) => RequestMetadataBaseFiltersFilterSensitiveLog(item)) };
|
|
552
|
+
if (obj.$unknown !== undefined)
|
|
553
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
554
|
+
};
|
|
555
|
+
export const InvocationLogsConfigFilterSensitiveLog = (obj) => ({
|
|
556
|
+
...obj,
|
|
557
|
+
...(obj.invocationLogSource && { invocationLogSource: obj.invocationLogSource }),
|
|
558
|
+
...(obj.requestMetadataFilters && {
|
|
559
|
+
requestMetadataFilters: RequestMetadataFiltersFilterSensitiveLog(obj.requestMetadataFilters),
|
|
560
|
+
}),
|
|
561
|
+
});
|
|
562
|
+
export const TrainingDataConfigFilterSensitiveLog = (obj) => ({
|
|
563
|
+
...obj,
|
|
564
|
+
...(obj.invocationLogsConfig && {
|
|
565
|
+
invocationLogsConfig: InvocationLogsConfigFilterSensitiveLog(obj.invocationLogsConfig),
|
|
566
|
+
}),
|
|
567
|
+
});
|
|
568
|
+
export const GetCustomModelResponseFilterSensitiveLog = (obj) => ({
|
|
569
|
+
...obj,
|
|
570
|
+
...(obj.trainingDataConfig && { trainingDataConfig: TrainingDataConfigFilterSensitiveLog(obj.trainingDataConfig) }),
|
|
571
|
+
...(obj.customizationConfig && { customizationConfig: obj.customizationConfig }),
|
|
572
|
+
});
|
|
552
573
|
export const BatchDeleteEvaluationJobRequestFilterSensitiveLog = (obj) => ({
|
|
553
574
|
...obj,
|
|
554
575
|
...(obj.jobIdentifiers && { jobIdentifiers: SENSITIVE_STRING }),
|
|
@@ -885,41 +906,6 @@ export const ListModelInvocationJobsResponseFilterSensitiveLog = (obj) => ({
|
|
|
885
906
|
invocationJobSummaries: obj.invocationJobSummaries.map((item) => ModelInvocationJobSummaryFilterSensitiveLog(item)),
|
|
886
907
|
}),
|
|
887
908
|
});
|
|
888
|
-
export const RequestMetadataBaseFiltersFilterSensitiveLog = (obj) => ({
|
|
889
|
-
...obj,
|
|
890
|
-
...(obj.equals && { equals: SENSITIVE_STRING }),
|
|
891
|
-
...(obj.notEquals && { notEquals: SENSITIVE_STRING }),
|
|
892
|
-
});
|
|
893
|
-
export const RequestMetadataFiltersFilterSensitiveLog = (obj) => {
|
|
894
|
-
if (obj.equals !== undefined)
|
|
895
|
-
return { equals: SENSITIVE_STRING };
|
|
896
|
-
if (obj.notEquals !== undefined)
|
|
897
|
-
return { notEquals: SENSITIVE_STRING };
|
|
898
|
-
if (obj.andAll !== undefined)
|
|
899
|
-
return { andAll: obj.andAll.map((item) => RequestMetadataBaseFiltersFilterSensitiveLog(item)) };
|
|
900
|
-
if (obj.orAll !== undefined)
|
|
901
|
-
return { orAll: obj.orAll.map((item) => RequestMetadataBaseFiltersFilterSensitiveLog(item)) };
|
|
902
|
-
if (obj.$unknown !== undefined)
|
|
903
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
904
|
-
};
|
|
905
|
-
export const InvocationLogsConfigFilterSensitiveLog = (obj) => ({
|
|
906
|
-
...obj,
|
|
907
|
-
...(obj.invocationLogSource && { invocationLogSource: obj.invocationLogSource }),
|
|
908
|
-
...(obj.requestMetadataFilters && {
|
|
909
|
-
requestMetadataFilters: RequestMetadataFiltersFilterSensitiveLog(obj.requestMetadataFilters),
|
|
910
|
-
}),
|
|
911
|
-
});
|
|
912
|
-
export const TrainingDataConfigFilterSensitiveLog = (obj) => ({
|
|
913
|
-
...obj,
|
|
914
|
-
...(obj.invocationLogsConfig && {
|
|
915
|
-
invocationLogsConfig: InvocationLogsConfigFilterSensitiveLog(obj.invocationLogsConfig),
|
|
916
|
-
}),
|
|
917
|
-
});
|
|
918
|
-
export const GetCustomModelResponseFilterSensitiveLog = (obj) => ({
|
|
919
|
-
...obj,
|
|
920
|
-
...(obj.trainingDataConfig && { trainingDataConfig: TrainingDataConfigFilterSensitiveLog(obj.trainingDataConfig) }),
|
|
921
|
-
...(obj.customizationConfig && { customizationConfig: obj.customizationConfig }),
|
|
922
|
-
});
|
|
923
909
|
export const CreatePromptRouterRequestFilterSensitiveLog = (obj) => ({
|
|
924
910
|
...obj,
|
|
925
911
|
...(obj.description && { description: SENSITIVE_STRING }),
|
|
@@ -1022,25 +1008,3 @@ export const KnowledgeBaseConfigFilterSensitiveLog = (obj) => {
|
|
|
1022
1008
|
if (obj.$unknown !== undefined)
|
|
1023
1009
|
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1024
1010
|
};
|
|
1025
|
-
export const RAGConfigFilterSensitiveLog = (obj) => {
|
|
1026
|
-
if (obj.knowledgeBaseConfig !== undefined)
|
|
1027
|
-
return { knowledgeBaseConfig: KnowledgeBaseConfigFilterSensitiveLog(obj.knowledgeBaseConfig) };
|
|
1028
|
-
if (obj.precomputedRagSourceConfig !== undefined)
|
|
1029
|
-
return { precomputedRagSourceConfig: obj.precomputedRagSourceConfig };
|
|
1030
|
-
if (obj.$unknown !== undefined)
|
|
1031
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1032
|
-
};
|
|
1033
|
-
export const EvaluationInferenceConfigFilterSensitiveLog = (obj) => {
|
|
1034
|
-
if (obj.models !== undefined)
|
|
1035
|
-
return { models: obj.models.map((item) => EvaluationModelConfigFilterSensitiveLog(item)) };
|
|
1036
|
-
if (obj.ragConfigs !== undefined)
|
|
1037
|
-
return { ragConfigs: obj.ragConfigs.map((item) => RAGConfigFilterSensitiveLog(item)) };
|
|
1038
|
-
if (obj.$unknown !== undefined)
|
|
1039
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1040
|
-
};
|
|
1041
|
-
export const CreateEvaluationJobRequestFilterSensitiveLog = (obj) => ({
|
|
1042
|
-
...obj,
|
|
1043
|
-
...(obj.jobDescription && { jobDescription: SENSITIVE_STRING }),
|
|
1044
|
-
...(obj.evaluationConfig && { evaluationConfig: EvaluationConfigFilterSensitiveLog(obj.evaluationConfig) }),
|
|
1045
|
-
...(obj.inferenceConfig && { inferenceConfig: EvaluationInferenceConfigFilterSensitiveLog(obj.inferenceConfig) }),
|
|
1046
|
-
});
|
|
@@ -1,5 +1,47 @@
|
|
|
1
1
|
import { SENSITIVE_STRING } from "@smithy/smithy-client";
|
|
2
|
-
import { EvaluationConfigFilterSensitiveLog,
|
|
2
|
+
import { EvaluationConfigFilterSensitiveLog, EvaluationModelConfigFilterSensitiveLog, KnowledgeBaseConfigFilterSensitiveLog, } from "./models_0";
|
|
3
|
+
export var RAGConfig;
|
|
4
|
+
(function (RAGConfig) {
|
|
5
|
+
RAGConfig.visit = (value, visitor) => {
|
|
6
|
+
if (value.knowledgeBaseConfig !== undefined)
|
|
7
|
+
return visitor.knowledgeBaseConfig(value.knowledgeBaseConfig);
|
|
8
|
+
if (value.precomputedRagSourceConfig !== undefined)
|
|
9
|
+
return visitor.precomputedRagSourceConfig(value.precomputedRagSourceConfig);
|
|
10
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
11
|
+
};
|
|
12
|
+
})(RAGConfig || (RAGConfig = {}));
|
|
13
|
+
export var EvaluationInferenceConfig;
|
|
14
|
+
(function (EvaluationInferenceConfig) {
|
|
15
|
+
EvaluationInferenceConfig.visit = (value, visitor) => {
|
|
16
|
+
if (value.models !== undefined)
|
|
17
|
+
return visitor.models(value.models);
|
|
18
|
+
if (value.ragConfigs !== undefined)
|
|
19
|
+
return visitor.ragConfigs(value.ragConfigs);
|
|
20
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
21
|
+
};
|
|
22
|
+
})(EvaluationInferenceConfig || (EvaluationInferenceConfig = {}));
|
|
23
|
+
export const RAGConfigFilterSensitiveLog = (obj) => {
|
|
24
|
+
if (obj.knowledgeBaseConfig !== undefined)
|
|
25
|
+
return { knowledgeBaseConfig: KnowledgeBaseConfigFilterSensitiveLog(obj.knowledgeBaseConfig) };
|
|
26
|
+
if (obj.precomputedRagSourceConfig !== undefined)
|
|
27
|
+
return { precomputedRagSourceConfig: obj.precomputedRagSourceConfig };
|
|
28
|
+
if (obj.$unknown !== undefined)
|
|
29
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
30
|
+
};
|
|
31
|
+
export const EvaluationInferenceConfigFilterSensitiveLog = (obj) => {
|
|
32
|
+
if (obj.models !== undefined)
|
|
33
|
+
return { models: obj.models.map((item) => EvaluationModelConfigFilterSensitiveLog(item)) };
|
|
34
|
+
if (obj.ragConfigs !== undefined)
|
|
35
|
+
return { ragConfigs: obj.ragConfigs.map((item) => RAGConfigFilterSensitiveLog(item)) };
|
|
36
|
+
if (obj.$unknown !== undefined)
|
|
37
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
38
|
+
};
|
|
39
|
+
export const CreateEvaluationJobRequestFilterSensitiveLog = (obj) => ({
|
|
40
|
+
...obj,
|
|
41
|
+
...(obj.jobDescription && { jobDescription: SENSITIVE_STRING }),
|
|
42
|
+
...(obj.evaluationConfig && { evaluationConfig: EvaluationConfigFilterSensitiveLog(obj.evaluationConfig) }),
|
|
43
|
+
...(obj.inferenceConfig && { inferenceConfig: EvaluationInferenceConfigFilterSensitiveLog(obj.inferenceConfig) }),
|
|
44
|
+
});
|
|
3
45
|
export const GetEvaluationJobResponseFilterSensitiveLog = (obj) => ({
|
|
4
46
|
...obj,
|
|
5
47
|
...(obj.jobDescription && { jobDescription: SENSITIVE_STRING }),
|
|
@@ -3,7 +3,8 @@ import { requestBuilder as rb } from "@smithy/core";
|
|
|
3
3
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, limitedParseFloat32 as __limitedParseFloat32, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, serializeDateTime as __serializeDateTime, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
5
5
|
import { BedrockServiceException as __BaseException } from "../models/BedrockServiceException";
|
|
6
|
-
import { AccessDeniedException, AutomatedEvaluationCustomMetricSource, ConflictException, EvaluationConfig,
|
|
6
|
+
import { AccessDeniedException, AutomatedEvaluationCustomMetricSource, ConflictException, EvaluationConfig, InternalServerException, KnowledgeBaseConfig, RatingScaleItemValue, ResourceNotFoundException, RetrievalFilter, ServiceQuotaExceededException, ServiceUnavailableException, ThrottlingException, TooManyTagsException, ValidationException, } from "../models/models_0";
|
|
7
|
+
import { EvaluationInferenceConfig, RAGConfig } from "../models/models_1";
|
|
7
8
|
export const se_BatchDeleteEvaluationJobCommand = async (input, context) => {
|
|
8
9
|
const b = rb(input, context);
|
|
9
10
|
const headers = {
|
|
@@ -17,6 +18,24 @@ export const se_BatchDeleteEvaluationJobCommand = async (input, context) => {
|
|
|
17
18
|
b.m("POST").h(headers).b(body);
|
|
18
19
|
return b.build();
|
|
19
20
|
};
|
|
21
|
+
export const se_CreateCustomModelCommand = async (input, context) => {
|
|
22
|
+
const b = rb(input, context);
|
|
23
|
+
const headers = {
|
|
24
|
+
"content-type": "application/json",
|
|
25
|
+
};
|
|
26
|
+
b.bp("/custom-models/create-custom-model");
|
|
27
|
+
let body;
|
|
28
|
+
body = JSON.stringify(take(input, {
|
|
29
|
+
clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
30
|
+
modelKmsKeyArn: [],
|
|
31
|
+
modelName: [],
|
|
32
|
+
modelSourceConfig: (_) => _json(_),
|
|
33
|
+
modelTags: (_) => _json(_),
|
|
34
|
+
roleArn: [],
|
|
35
|
+
}));
|
|
36
|
+
b.m("POST").h(headers).b(body);
|
|
37
|
+
return b.build();
|
|
38
|
+
};
|
|
20
39
|
export const se_CreateEvaluationJobCommand = async (input, context) => {
|
|
21
40
|
const b = rb(input, context);
|
|
22
41
|
const headers = {
|
|
@@ -463,6 +482,7 @@ export const se_ListCustomModelsCommand = async (input, context) => {
|
|
|
463
482
|
[_sB]: [, input[_sB]],
|
|
464
483
|
[_sO]: [, input[_sO]],
|
|
465
484
|
[_iO]: [() => input.isOwned !== void 0, () => input[_iO].toString()],
|
|
485
|
+
[_mS]: [, input[_mS]],
|
|
466
486
|
});
|
|
467
487
|
let body;
|
|
468
488
|
b.m("GET").h(headers).q(query).b(body);
|
|
@@ -827,6 +847,20 @@ export const de_BatchDeleteEvaluationJobCommand = async (output, context) => {
|
|
|
827
847
|
Object.assign(contents, doc);
|
|
828
848
|
return contents;
|
|
829
849
|
};
|
|
850
|
+
export const de_CreateCustomModelCommand = async (output, context) => {
|
|
851
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
852
|
+
return de_CommandError(output, context);
|
|
853
|
+
}
|
|
854
|
+
const contents = map({
|
|
855
|
+
$metadata: deserializeMetadata(output),
|
|
856
|
+
});
|
|
857
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
858
|
+
const doc = take(data, {
|
|
859
|
+
modelArn: __expectString,
|
|
860
|
+
});
|
|
861
|
+
Object.assign(contents, doc);
|
|
862
|
+
return contents;
|
|
863
|
+
};
|
|
830
864
|
export const de_CreateEvaluationJobCommand = async (output, context) => {
|
|
831
865
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
832
866
|
return de_CommandError(output, context);
|
|
@@ -1089,12 +1123,14 @@ export const de_GetCustomModelCommand = async (output, context) => {
|
|
|
1089
1123
|
creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1090
1124
|
customizationConfig: (_) => _json(__expectUnion(_)),
|
|
1091
1125
|
customizationType: __expectString,
|
|
1126
|
+
failureMessage: __expectString,
|
|
1092
1127
|
hyperParameters: _json,
|
|
1093
1128
|
jobArn: __expectString,
|
|
1094
1129
|
jobName: __expectString,
|
|
1095
1130
|
modelArn: __expectString,
|
|
1096
1131
|
modelKmsKeyArn: __expectString,
|
|
1097
1132
|
modelName: __expectString,
|
|
1133
|
+
modelStatus: __expectString,
|
|
1098
1134
|
outputDataConfig: _json,
|
|
1099
1135
|
trainingDataConfig: _json,
|
|
1100
1136
|
trainingMetrics: (_) => de_TrainingMetrics(_, context),
|
|
@@ -2213,6 +2249,7 @@ const de_CustomModelSummary = (output, context) => {
|
|
|
2213
2249
|
customizationType: __expectString,
|
|
2214
2250
|
modelArn: __expectString,
|
|
2215
2251
|
modelName: __expectString,
|
|
2252
|
+
modelStatus: __expectString,
|
|
2216
2253
|
ownerAccountId: __expectString,
|
|
2217
2254
|
});
|
|
2218
2255
|
};
|
|
@@ -2823,6 +2860,7 @@ const _gV = "guardrailVersion";
|
|
|
2823
2860
|
const _iO = "isOwned";
|
|
2824
2861
|
const _mAE = "modelArnEquals";
|
|
2825
2862
|
const _mR = "maxResults";
|
|
2863
|
+
const _mS = "modelStatus";
|
|
2826
2864
|
const _mSE = "modelSourceEquals";
|
|
2827
2865
|
const _mSI = "modelSourceIdentifier";
|
|
2828
2866
|
const _nC = "nameContains";
|
package/dist-types/Bedrock.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
2
2
|
import { BedrockClient } from "./BedrockClient";
|
|
3
3
|
import { BatchDeleteEvaluationJobCommandInput, BatchDeleteEvaluationJobCommandOutput } from "./commands/BatchDeleteEvaluationJobCommand";
|
|
4
|
+
import { CreateCustomModelCommandInput, CreateCustomModelCommandOutput } from "./commands/CreateCustomModelCommand";
|
|
4
5
|
import { CreateEvaluationJobCommandInput, CreateEvaluationJobCommandOutput } from "./commands/CreateEvaluationJobCommand";
|
|
5
6
|
import { CreateGuardrailCommandInput, CreateGuardrailCommandOutput } from "./commands/CreateGuardrailCommand";
|
|
6
7
|
import { CreateGuardrailVersionCommandInput, CreateGuardrailVersionCommandOutput } from "./commands/CreateGuardrailVersionCommand";
|
|
@@ -66,6 +67,12 @@ export interface Bedrock {
|
|
|
66
67
|
batchDeleteEvaluationJob(args: BatchDeleteEvaluationJobCommandInput, options?: __HttpHandlerOptions): Promise<BatchDeleteEvaluationJobCommandOutput>;
|
|
67
68
|
batchDeleteEvaluationJob(args: BatchDeleteEvaluationJobCommandInput, cb: (err: any, data?: BatchDeleteEvaluationJobCommandOutput) => void): void;
|
|
68
69
|
batchDeleteEvaluationJob(args: BatchDeleteEvaluationJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchDeleteEvaluationJobCommandOutput) => void): void;
|
|
70
|
+
/**
|
|
71
|
+
* @see {@link CreateCustomModelCommand}
|
|
72
|
+
*/
|
|
73
|
+
createCustomModel(args: CreateCustomModelCommandInput, options?: __HttpHandlerOptions): Promise<CreateCustomModelCommandOutput>;
|
|
74
|
+
createCustomModel(args: CreateCustomModelCommandInput, cb: (err: any, data?: CreateCustomModelCommandOutput) => void): void;
|
|
75
|
+
createCustomModel(args: CreateCustomModelCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateCustomModelCommandOutput) => void): void;
|
|
69
76
|
/**
|
|
70
77
|
* @see {@link CreateEvaluationJobCommand}
|
|
71
78
|
*/
|
|
@@ -8,6 +8,7 @@ import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration
|
|
|
8
8
|
import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
|
|
9
9
|
import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
|
|
10
10
|
import { BatchDeleteEvaluationJobCommandInput, BatchDeleteEvaluationJobCommandOutput } from "./commands/BatchDeleteEvaluationJobCommand";
|
|
11
|
+
import { CreateCustomModelCommandInput, CreateCustomModelCommandOutput } from "./commands/CreateCustomModelCommand";
|
|
11
12
|
import { CreateEvaluationJobCommandInput, CreateEvaluationJobCommandOutput } from "./commands/CreateEvaluationJobCommand";
|
|
12
13
|
import { CreateGuardrailCommandInput, CreateGuardrailCommandOutput } from "./commands/CreateGuardrailCommand";
|
|
13
14
|
import { CreateGuardrailVersionCommandInput, CreateGuardrailVersionCommandOutput } from "./commands/CreateGuardrailVersionCommand";
|
|
@@ -72,11 +73,11 @@ export { __Client };
|
|
|
72
73
|
/**
|
|
73
74
|
* @public
|
|
74
75
|
*/
|
|
75
|
-
export type ServiceInputTypes = BatchDeleteEvaluationJobCommandInput | CreateEvaluationJobCommandInput | CreateGuardrailCommandInput | CreateGuardrailVersionCommandInput | CreateInferenceProfileCommandInput | CreateMarketplaceModelEndpointCommandInput | CreateModelCopyJobCommandInput | CreateModelCustomizationJobCommandInput | CreateModelImportJobCommandInput | CreateModelInvocationJobCommandInput | CreatePromptRouterCommandInput | CreateProvisionedModelThroughputCommandInput | DeleteCustomModelCommandInput | DeleteGuardrailCommandInput | DeleteImportedModelCommandInput | DeleteInferenceProfileCommandInput | DeleteMarketplaceModelEndpointCommandInput | DeleteModelInvocationLoggingConfigurationCommandInput | DeletePromptRouterCommandInput | DeleteProvisionedModelThroughputCommandInput | DeregisterMarketplaceModelEndpointCommandInput | GetCustomModelCommandInput | GetEvaluationJobCommandInput | GetFoundationModelCommandInput | GetGuardrailCommandInput | GetImportedModelCommandInput | GetInferenceProfileCommandInput | GetMarketplaceModelEndpointCommandInput | GetModelCopyJobCommandInput | GetModelCustomizationJobCommandInput | GetModelImportJobCommandInput | GetModelInvocationJobCommandInput | GetModelInvocationLoggingConfigurationCommandInput | GetPromptRouterCommandInput | GetProvisionedModelThroughputCommandInput | ListCustomModelsCommandInput | ListEvaluationJobsCommandInput | ListFoundationModelsCommandInput | ListGuardrailsCommandInput | ListImportedModelsCommandInput | ListInferenceProfilesCommandInput | ListMarketplaceModelEndpointsCommandInput | ListModelCopyJobsCommandInput | ListModelCustomizationJobsCommandInput | ListModelImportJobsCommandInput | ListModelInvocationJobsCommandInput | ListPromptRoutersCommandInput | ListProvisionedModelThroughputsCommandInput | ListTagsForResourceCommandInput | PutModelInvocationLoggingConfigurationCommandInput | RegisterMarketplaceModelEndpointCommandInput | StopEvaluationJobCommandInput | StopModelCustomizationJobCommandInput | StopModelInvocationJobCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateGuardrailCommandInput | UpdateMarketplaceModelEndpointCommandInput | UpdateProvisionedModelThroughputCommandInput;
|
|
76
|
+
export type ServiceInputTypes = BatchDeleteEvaluationJobCommandInput | CreateCustomModelCommandInput | CreateEvaluationJobCommandInput | CreateGuardrailCommandInput | CreateGuardrailVersionCommandInput | CreateInferenceProfileCommandInput | CreateMarketplaceModelEndpointCommandInput | CreateModelCopyJobCommandInput | CreateModelCustomizationJobCommandInput | CreateModelImportJobCommandInput | CreateModelInvocationJobCommandInput | CreatePromptRouterCommandInput | CreateProvisionedModelThroughputCommandInput | DeleteCustomModelCommandInput | DeleteGuardrailCommandInput | DeleteImportedModelCommandInput | DeleteInferenceProfileCommandInput | DeleteMarketplaceModelEndpointCommandInput | DeleteModelInvocationLoggingConfigurationCommandInput | DeletePromptRouterCommandInput | DeleteProvisionedModelThroughputCommandInput | DeregisterMarketplaceModelEndpointCommandInput | GetCustomModelCommandInput | GetEvaluationJobCommandInput | GetFoundationModelCommandInput | GetGuardrailCommandInput | GetImportedModelCommandInput | GetInferenceProfileCommandInput | GetMarketplaceModelEndpointCommandInput | GetModelCopyJobCommandInput | GetModelCustomizationJobCommandInput | GetModelImportJobCommandInput | GetModelInvocationJobCommandInput | GetModelInvocationLoggingConfigurationCommandInput | GetPromptRouterCommandInput | GetProvisionedModelThroughputCommandInput | ListCustomModelsCommandInput | ListEvaluationJobsCommandInput | ListFoundationModelsCommandInput | ListGuardrailsCommandInput | ListImportedModelsCommandInput | ListInferenceProfilesCommandInput | ListMarketplaceModelEndpointsCommandInput | ListModelCopyJobsCommandInput | ListModelCustomizationJobsCommandInput | ListModelImportJobsCommandInput | ListModelInvocationJobsCommandInput | ListPromptRoutersCommandInput | ListProvisionedModelThroughputsCommandInput | ListTagsForResourceCommandInput | PutModelInvocationLoggingConfigurationCommandInput | RegisterMarketplaceModelEndpointCommandInput | StopEvaluationJobCommandInput | StopModelCustomizationJobCommandInput | StopModelInvocationJobCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateGuardrailCommandInput | UpdateMarketplaceModelEndpointCommandInput | UpdateProvisionedModelThroughputCommandInput;
|
|
76
77
|
/**
|
|
77
78
|
* @public
|
|
78
79
|
*/
|
|
79
|
-
export type ServiceOutputTypes = BatchDeleteEvaluationJobCommandOutput | CreateEvaluationJobCommandOutput | CreateGuardrailCommandOutput | CreateGuardrailVersionCommandOutput | CreateInferenceProfileCommandOutput | CreateMarketplaceModelEndpointCommandOutput | CreateModelCopyJobCommandOutput | CreateModelCustomizationJobCommandOutput | CreateModelImportJobCommandOutput | CreateModelInvocationJobCommandOutput | CreatePromptRouterCommandOutput | CreateProvisionedModelThroughputCommandOutput | DeleteCustomModelCommandOutput | DeleteGuardrailCommandOutput | DeleteImportedModelCommandOutput | DeleteInferenceProfileCommandOutput | DeleteMarketplaceModelEndpointCommandOutput | DeleteModelInvocationLoggingConfigurationCommandOutput | DeletePromptRouterCommandOutput | DeleteProvisionedModelThroughputCommandOutput | DeregisterMarketplaceModelEndpointCommandOutput | GetCustomModelCommandOutput | GetEvaluationJobCommandOutput | GetFoundationModelCommandOutput | GetGuardrailCommandOutput | GetImportedModelCommandOutput | GetInferenceProfileCommandOutput | GetMarketplaceModelEndpointCommandOutput | GetModelCopyJobCommandOutput | GetModelCustomizationJobCommandOutput | GetModelImportJobCommandOutput | GetModelInvocationJobCommandOutput | GetModelInvocationLoggingConfigurationCommandOutput | GetPromptRouterCommandOutput | GetProvisionedModelThroughputCommandOutput | ListCustomModelsCommandOutput | ListEvaluationJobsCommandOutput | ListFoundationModelsCommandOutput | ListGuardrailsCommandOutput | ListImportedModelsCommandOutput | ListInferenceProfilesCommandOutput | ListMarketplaceModelEndpointsCommandOutput | ListModelCopyJobsCommandOutput | ListModelCustomizationJobsCommandOutput | ListModelImportJobsCommandOutput | ListModelInvocationJobsCommandOutput | ListPromptRoutersCommandOutput | ListProvisionedModelThroughputsCommandOutput | ListTagsForResourceCommandOutput | PutModelInvocationLoggingConfigurationCommandOutput | RegisterMarketplaceModelEndpointCommandOutput | StopEvaluationJobCommandOutput | StopModelCustomizationJobCommandOutput | StopModelInvocationJobCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateGuardrailCommandOutput | UpdateMarketplaceModelEndpointCommandOutput | UpdateProvisionedModelThroughputCommandOutput;
|
|
80
|
+
export type ServiceOutputTypes = BatchDeleteEvaluationJobCommandOutput | CreateCustomModelCommandOutput | CreateEvaluationJobCommandOutput | CreateGuardrailCommandOutput | CreateGuardrailVersionCommandOutput | CreateInferenceProfileCommandOutput | CreateMarketplaceModelEndpointCommandOutput | CreateModelCopyJobCommandOutput | CreateModelCustomizationJobCommandOutput | CreateModelImportJobCommandOutput | CreateModelInvocationJobCommandOutput | CreatePromptRouterCommandOutput | CreateProvisionedModelThroughputCommandOutput | DeleteCustomModelCommandOutput | DeleteGuardrailCommandOutput | DeleteImportedModelCommandOutput | DeleteInferenceProfileCommandOutput | DeleteMarketplaceModelEndpointCommandOutput | DeleteModelInvocationLoggingConfigurationCommandOutput | DeletePromptRouterCommandOutput | DeleteProvisionedModelThroughputCommandOutput | DeregisterMarketplaceModelEndpointCommandOutput | GetCustomModelCommandOutput | GetEvaluationJobCommandOutput | GetFoundationModelCommandOutput | GetGuardrailCommandOutput | GetImportedModelCommandOutput | GetInferenceProfileCommandOutput | GetMarketplaceModelEndpointCommandOutput | GetModelCopyJobCommandOutput | GetModelCustomizationJobCommandOutput | GetModelImportJobCommandOutput | GetModelInvocationJobCommandOutput | GetModelInvocationLoggingConfigurationCommandOutput | GetPromptRouterCommandOutput | GetProvisionedModelThroughputCommandOutput | ListCustomModelsCommandOutput | ListEvaluationJobsCommandOutput | ListFoundationModelsCommandOutput | ListGuardrailsCommandOutput | ListImportedModelsCommandOutput | ListInferenceProfilesCommandOutput | ListMarketplaceModelEndpointsCommandOutput | ListModelCopyJobsCommandOutput | ListModelCustomizationJobsCommandOutput | ListModelImportJobsCommandOutput | ListModelInvocationJobsCommandOutput | ListPromptRoutersCommandOutput | ListProvisionedModelThroughputsCommandOutput | ListTagsForResourceCommandOutput | PutModelInvocationLoggingConfigurationCommandOutput | RegisterMarketplaceModelEndpointCommandOutput | StopEvaluationJobCommandOutput | StopModelCustomizationJobCommandOutput | StopModelInvocationJobCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateGuardrailCommandOutput | UpdateMarketplaceModelEndpointCommandOutput | UpdateProvisionedModelThroughputCommandOutput;
|
|
80
81
|
/**
|
|
81
82
|
* @public
|
|
82
83
|
*/
|
|
@@ -27,9 +27,7 @@ declare const BatchDeleteEvaluationJobCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>Deletes a batch of evaluation jobs. An evaluation job can only be deleted if it has
|
|
31
|
-
* following status <code>FAILED</code>, <code>COMPLETED</code>, and <code>STOPPED</code>.
|
|
32
|
-
* You can request up to 25 model evaluation jobs be deleted in a single request.</p>
|
|
30
|
+
* <p>Deletes a batch of evaluation jobs. An evaluation job can only be deleted if it has following status <code>FAILED</code>, <code>COMPLETED</code>, and <code>STOPPED</code>. You can request up to 25 model evaluation jobs be deleted in a single request.</p>
|
|
33
31
|
* @example
|
|
34
32
|
* Use a bare-bones client and the command you need to make an API call.
|
|
35
33
|
* ```javascript
|