@aws-sdk/client-bedrock 3.703.0 → 3.705.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/dist-cjs/index.js +103 -3
- package/dist-es/commands/CreateModelCustomizationJobCommand.js +2 -1
- package/dist-es/commands/GetCustomModelCommand.js +2 -1
- package/dist-es/commands/GetModelCustomizationJobCommand.js +2 -1
- package/dist-es/models/models_0.js +77 -0
- package/dist-es/protocols/Aws_restJson1.js +3 -0
- package/dist-types/commands/CreateGuardrailCommand.d.ts +1 -1
- package/dist-types/commands/CreateModelCustomizationJobCommand.d.ts +43 -3
- package/dist-types/commands/GetCustomModelCommand.d.ts +42 -2
- package/dist-types/commands/GetFoundationModelCommand.d.ts +1 -1
- 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/ListCustomModelsCommand.d.ts +1 -1
- package/dist-types/commands/ListFoundationModelsCommand.d.ts +2 -2
- package/dist-types/commands/ListModelCustomizationJobsCommand.d.ts +1 -1
- package/dist-types/commands/ListModelInvocationJobsCommand.d.ts +1 -1
- package/dist-types/commands/PutModelInvocationLoggingConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/StopModelInvocationJobCommand.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +391 -6
- package/dist-types/ts3.4/models/models_0.d.ts +134 -3
- package/package.json +1 -1
package/dist-cjs/index.js
CHANGED
|
@@ -45,9 +45,11 @@ __export(src_exports, {
|
|
|
45
45
|
CreateInferenceProfileRequestFilterSensitiveLog: () => CreateInferenceProfileRequestFilterSensitiveLog,
|
|
46
46
|
CreateModelCopyJobCommand: () => CreateModelCopyJobCommand,
|
|
47
47
|
CreateModelCustomizationJobCommand: () => CreateModelCustomizationJobCommand,
|
|
48
|
+
CreateModelCustomizationJobRequestFilterSensitiveLog: () => CreateModelCustomizationJobRequestFilterSensitiveLog,
|
|
48
49
|
CreateModelImportJobCommand: () => CreateModelImportJobCommand,
|
|
49
50
|
CreateModelInvocationJobCommand: () => CreateModelInvocationJobCommand,
|
|
50
51
|
CreateProvisionedModelThroughputCommand: () => CreateProvisionedModelThroughputCommand,
|
|
52
|
+
CustomizationConfig: () => CustomizationConfig,
|
|
51
53
|
CustomizationType: () => CustomizationType,
|
|
52
54
|
DeleteCustomModelCommand: () => DeleteCustomModelCommand,
|
|
53
55
|
DeleteGuardrailCommand: () => DeleteGuardrailCommand,
|
|
@@ -77,6 +79,7 @@ __export(src_exports, {
|
|
|
77
79
|
FoundationModelLifecycleStatus: () => FoundationModelLifecycleStatus,
|
|
78
80
|
GenerationConfigurationFilterSensitiveLog: () => GenerationConfigurationFilterSensitiveLog,
|
|
79
81
|
GetCustomModelCommand: () => GetCustomModelCommand,
|
|
82
|
+
GetCustomModelResponseFilterSensitiveLog: () => GetCustomModelResponseFilterSensitiveLog,
|
|
80
83
|
GetEvaluationJobCommand: () => GetEvaluationJobCommand,
|
|
81
84
|
GetEvaluationJobRequestFilterSensitiveLog: () => GetEvaluationJobRequestFilterSensitiveLog,
|
|
82
85
|
GetEvaluationJobResponseFilterSensitiveLog: () => GetEvaluationJobResponseFilterSensitiveLog,
|
|
@@ -88,6 +91,7 @@ __export(src_exports, {
|
|
|
88
91
|
GetInferenceProfileResponseFilterSensitiveLog: () => GetInferenceProfileResponseFilterSensitiveLog,
|
|
89
92
|
GetModelCopyJobCommand: () => GetModelCopyJobCommand,
|
|
90
93
|
GetModelCustomizationJobCommand: () => GetModelCustomizationJobCommand,
|
|
94
|
+
GetModelCustomizationJobResponseFilterSensitiveLog: () => GetModelCustomizationJobResponseFilterSensitiveLog,
|
|
91
95
|
GetModelImportJobCommand: () => GetModelImportJobCommand,
|
|
92
96
|
GetModelInvocationJobCommand: () => GetModelInvocationJobCommand,
|
|
93
97
|
GetModelInvocationJobResponseFilterSensitiveLog: () => GetModelInvocationJobResponseFilterSensitiveLog,
|
|
@@ -115,6 +119,8 @@ __export(src_exports, {
|
|
|
115
119
|
InferenceProfileType: () => InferenceProfileType,
|
|
116
120
|
InferenceType: () => InferenceType,
|
|
117
121
|
InternalServerException: () => InternalServerException,
|
|
122
|
+
InvocationLogSource: () => InvocationLogSource,
|
|
123
|
+
InvocationLogsConfigFilterSensitiveLog: () => InvocationLogsConfigFilterSensitiveLog,
|
|
118
124
|
KnowledgeBaseConfig: () => KnowledgeBaseConfig,
|
|
119
125
|
KnowledgeBaseConfigFilterSensitiveLog: () => KnowledgeBaseConfigFilterSensitiveLog,
|
|
120
126
|
KnowledgeBaseRetrievalConfigurationFilterSensitiveLog: () => KnowledgeBaseRetrievalConfigurationFilterSensitiveLog,
|
|
@@ -151,6 +157,9 @@ __export(src_exports, {
|
|
|
151
157
|
QueryTransformationType: () => QueryTransformationType,
|
|
152
158
|
RAGConfig: () => RAGConfig,
|
|
153
159
|
RAGConfigFilterSensitiveLog: () => RAGConfigFilterSensitiveLog,
|
|
160
|
+
RequestMetadataBaseFiltersFilterSensitiveLog: () => RequestMetadataBaseFiltersFilterSensitiveLog,
|
|
161
|
+
RequestMetadataFilters: () => RequestMetadataFilters,
|
|
162
|
+
RequestMetadataFiltersFilterSensitiveLog: () => RequestMetadataFiltersFilterSensitiveLog,
|
|
154
163
|
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
155
164
|
RetrievalFilter: () => RetrievalFilter,
|
|
156
165
|
RetrievalFilterFilterSensitiveLog: () => RetrievalFilterFilterSensitiveLog,
|
|
@@ -171,6 +180,7 @@ __export(src_exports, {
|
|
|
171
180
|
TagResourceCommand: () => TagResourceCommand,
|
|
172
181
|
ThrottlingException: () => ThrottlingException,
|
|
173
182
|
TooManyTagsException: () => TooManyTagsException,
|
|
183
|
+
TrainingDataConfigFilterSensitiveLog: () => TrainingDataConfigFilterSensitiveLog,
|
|
174
184
|
UntagResourceCommand: () => UntagResourceCommand,
|
|
175
185
|
UpdateGuardrailCommand: () => UpdateGuardrailCommand,
|
|
176
186
|
UpdateGuardrailRequestFilterSensitiveLog: () => UpdateGuardrailRequestFilterSensitiveLog,
|
|
@@ -705,12 +715,44 @@ var ModelInvocationJobStatus = {
|
|
|
705
715
|
SUBMITTED: "Submitted",
|
|
706
716
|
VALIDATING: "Validating"
|
|
707
717
|
};
|
|
718
|
+
var CustomizationConfig;
|
|
719
|
+
((CustomizationConfig3) => {
|
|
720
|
+
CustomizationConfig3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
721
|
+
if (value.distillationConfig !== void 0)
|
|
722
|
+
return visitor.distillationConfig(value.distillationConfig);
|
|
723
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
724
|
+
}, "visit");
|
|
725
|
+
})(CustomizationConfig || (CustomizationConfig = {}));
|
|
708
726
|
var CustomizationType = {
|
|
709
727
|
CONTINUED_PRE_TRAINING: "CONTINUED_PRE_TRAINING",
|
|
728
|
+
DISTILLATION: "DISTILLATION",
|
|
710
729
|
FINE_TUNING: "FINE_TUNING"
|
|
711
730
|
};
|
|
731
|
+
var InvocationLogSource;
|
|
732
|
+
((InvocationLogSource3) => {
|
|
733
|
+
InvocationLogSource3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
734
|
+
if (value.s3Uri !== void 0)
|
|
735
|
+
return visitor.s3Uri(value.s3Uri);
|
|
736
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
737
|
+
}, "visit");
|
|
738
|
+
})(InvocationLogSource || (InvocationLogSource = {}));
|
|
739
|
+
var RequestMetadataFilters;
|
|
740
|
+
((RequestMetadataFilters3) => {
|
|
741
|
+
RequestMetadataFilters3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
742
|
+
if (value.equals !== void 0)
|
|
743
|
+
return visitor.equals(value.equals);
|
|
744
|
+
if (value.notEquals !== void 0)
|
|
745
|
+
return visitor.notEquals(value.notEquals);
|
|
746
|
+
if (value.andAll !== void 0)
|
|
747
|
+
return visitor.andAll(value.andAll);
|
|
748
|
+
if (value.orAll !== void 0)
|
|
749
|
+
return visitor.orAll(value.orAll);
|
|
750
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
751
|
+
}, "visit");
|
|
752
|
+
})(RequestMetadataFilters || (RequestMetadataFilters = {}));
|
|
712
753
|
var ModelCustomization = {
|
|
713
754
|
CONTINUED_PRE_TRAINING: "CONTINUED_PRE_TRAINING",
|
|
755
|
+
DISTILLATION: "DISTILLATION",
|
|
714
756
|
FINE_TUNING: "FINE_TUNING"
|
|
715
757
|
};
|
|
716
758
|
var InferenceType = {
|
|
@@ -1028,6 +1070,51 @@ var ListModelInvocationJobsResponseFilterSensitiveLog = /* @__PURE__ */ __name((
|
|
|
1028
1070
|
invocationJobSummaries: obj.invocationJobSummaries.map((item) => ModelInvocationJobSummaryFilterSensitiveLog(item))
|
|
1029
1071
|
}
|
|
1030
1072
|
}), "ListModelInvocationJobsResponseFilterSensitiveLog");
|
|
1073
|
+
var RequestMetadataBaseFiltersFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1074
|
+
...obj,
|
|
1075
|
+
...obj.equals && { equals: import_smithy_client.SENSITIVE_STRING },
|
|
1076
|
+
...obj.notEquals && { notEquals: import_smithy_client.SENSITIVE_STRING }
|
|
1077
|
+
}), "RequestMetadataBaseFiltersFilterSensitiveLog");
|
|
1078
|
+
var RequestMetadataFiltersFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
1079
|
+
if (obj.equals !== void 0)
|
|
1080
|
+
return { equals: import_smithy_client.SENSITIVE_STRING };
|
|
1081
|
+
if (obj.notEquals !== void 0)
|
|
1082
|
+
return { notEquals: import_smithy_client.SENSITIVE_STRING };
|
|
1083
|
+
if (obj.andAll !== void 0)
|
|
1084
|
+
return { andAll: obj.andAll.map((item) => RequestMetadataBaseFiltersFilterSensitiveLog(item)) };
|
|
1085
|
+
if (obj.orAll !== void 0)
|
|
1086
|
+
return { orAll: obj.orAll.map((item) => RequestMetadataBaseFiltersFilterSensitiveLog(item)) };
|
|
1087
|
+
if (obj.$unknown !== void 0)
|
|
1088
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1089
|
+
}, "RequestMetadataFiltersFilterSensitiveLog");
|
|
1090
|
+
var InvocationLogsConfigFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1091
|
+
...obj,
|
|
1092
|
+
...obj.invocationLogSource && { invocationLogSource: obj.invocationLogSource },
|
|
1093
|
+
...obj.requestMetadataFilters && {
|
|
1094
|
+
requestMetadataFilters: RequestMetadataFiltersFilterSensitiveLog(obj.requestMetadataFilters)
|
|
1095
|
+
}
|
|
1096
|
+
}), "InvocationLogsConfigFilterSensitiveLog");
|
|
1097
|
+
var TrainingDataConfigFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1098
|
+
...obj,
|
|
1099
|
+
...obj.invocationLogsConfig && {
|
|
1100
|
+
invocationLogsConfig: InvocationLogsConfigFilterSensitiveLog(obj.invocationLogsConfig)
|
|
1101
|
+
}
|
|
1102
|
+
}), "TrainingDataConfigFilterSensitiveLog");
|
|
1103
|
+
var GetCustomModelResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1104
|
+
...obj,
|
|
1105
|
+
...obj.trainingDataConfig && { trainingDataConfig: TrainingDataConfigFilterSensitiveLog(obj.trainingDataConfig) },
|
|
1106
|
+
...obj.customizationConfig && { customizationConfig: obj.customizationConfig }
|
|
1107
|
+
}), "GetCustomModelResponseFilterSensitiveLog");
|
|
1108
|
+
var CreateModelCustomizationJobRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1109
|
+
...obj,
|
|
1110
|
+
...obj.trainingDataConfig && { trainingDataConfig: TrainingDataConfigFilterSensitiveLog(obj.trainingDataConfig) },
|
|
1111
|
+
...obj.customizationConfig && { customizationConfig: obj.customizationConfig }
|
|
1112
|
+
}), "CreateModelCustomizationJobRequestFilterSensitiveLog");
|
|
1113
|
+
var GetModelCustomizationJobResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1114
|
+
...obj,
|
|
1115
|
+
...obj.trainingDataConfig && { trainingDataConfig: TrainingDataConfigFilterSensitiveLog(obj.trainingDataConfig) },
|
|
1116
|
+
...obj.customizationConfig && { customizationConfig: obj.customizationConfig }
|
|
1117
|
+
}), "GetModelCustomizationJobResponseFilterSensitiveLog");
|
|
1031
1118
|
var RetrievalFilterFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
1032
1119
|
if (obj.equals !== void 0)
|
|
1033
1120
|
return { equals: obj.equals };
|
|
@@ -1274,6 +1361,7 @@ var se_CreateModelCustomizationJobCommand = /* @__PURE__ */ __name(async (input,
|
|
|
1274
1361
|
customModelKmsKeyId: [],
|
|
1275
1362
|
customModelName: [],
|
|
1276
1363
|
customModelTags: (_) => (0, import_smithy_client._json)(_),
|
|
1364
|
+
customizationConfig: (_) => (0, import_smithy_client._json)(_),
|
|
1277
1365
|
customizationType: [],
|
|
1278
1366
|
hyperParameters: (_) => (0, import_smithy_client._json)(_),
|
|
1279
1367
|
jobName: [],
|
|
@@ -2057,6 +2145,7 @@ var de_GetCustomModelCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2057
2145
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2058
2146
|
baseModelArn: import_smithy_client.expectString,
|
|
2059
2147
|
creationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
2148
|
+
customizationConfig: (_) => (0, import_smithy_client._json)((0, import_core2.awsExpectUnion)(_)),
|
|
2060
2149
|
customizationType: import_smithy_client.expectString,
|
|
2061
2150
|
hyperParameters: import_smithy_client._json,
|
|
2062
2151
|
jobArn: import_smithy_client.expectString,
|
|
@@ -2225,6 +2314,7 @@ var de_GetModelCustomizationJobCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
2225
2314
|
baseModelArn: import_smithy_client.expectString,
|
|
2226
2315
|
clientRequestToken: import_smithy_client.expectString,
|
|
2227
2316
|
creationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
2317
|
+
customizationConfig: (_) => (0, import_smithy_client._json)((0, import_core2.awsExpectUnion)(_)),
|
|
2228
2318
|
customizationType: import_smithy_client.expectString,
|
|
2229
2319
|
endTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
2230
2320
|
failureMessage: import_smithy_client.expectString,
|
|
@@ -3505,7 +3595,7 @@ var _CreateModelCustomizationJobCommand = class _CreateModelCustomizationJobComm
|
|
|
3505
3595
|
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3506
3596
|
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3507
3597
|
];
|
|
3508
|
-
}).s("AmazonBedrockControlPlaneService", "CreateModelCustomizationJob", {}).n("BedrockClient", "CreateModelCustomizationJobCommand").f(
|
|
3598
|
+
}).s("AmazonBedrockControlPlaneService", "CreateModelCustomizationJob", {}).n("BedrockClient", "CreateModelCustomizationJobCommand").f(CreateModelCustomizationJobRequestFilterSensitiveLog, void 0).ser(se_CreateModelCustomizationJobCommand).de(de_CreateModelCustomizationJobCommand).build() {
|
|
3509
3599
|
};
|
|
3510
3600
|
__name(_CreateModelCustomizationJobCommand, "CreateModelCustomizationJobCommand");
|
|
3511
3601
|
var CreateModelCustomizationJobCommand = _CreateModelCustomizationJobCommand;
|
|
@@ -3645,7 +3735,7 @@ var _GetCustomModelCommand = class _GetCustomModelCommand extends import_smithy_
|
|
|
3645
3735
|
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3646
3736
|
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3647
3737
|
];
|
|
3648
|
-
}).s("AmazonBedrockControlPlaneService", "GetCustomModel", {}).n("BedrockClient", "GetCustomModelCommand").f(void 0,
|
|
3738
|
+
}).s("AmazonBedrockControlPlaneService", "GetCustomModel", {}).n("BedrockClient", "GetCustomModelCommand").f(void 0, GetCustomModelResponseFilterSensitiveLog).ser(se_GetCustomModelCommand).de(de_GetCustomModelCommand).build() {
|
|
3649
3739
|
};
|
|
3650
3740
|
__name(_GetCustomModelCommand, "GetCustomModelCommand");
|
|
3651
3741
|
var GetCustomModelCommand = _GetCustomModelCommand;
|
|
@@ -3743,7 +3833,7 @@ var _GetModelCustomizationJobCommand = class _GetModelCustomizationJobCommand ex
|
|
|
3743
3833
|
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3744
3834
|
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3745
3835
|
];
|
|
3746
|
-
}).s("AmazonBedrockControlPlaneService", "GetModelCustomizationJob", {}).n("BedrockClient", "GetModelCustomizationJobCommand").f(void 0,
|
|
3836
|
+
}).s("AmazonBedrockControlPlaneService", "GetModelCustomizationJob", {}).n("BedrockClient", "GetModelCustomizationJobCommand").f(void 0, GetModelCustomizationJobResponseFilterSensitiveLog).ser(se_GetModelCustomizationJobCommand).de(de_GetModelCustomizationJobCommand).build() {
|
|
3747
3837
|
};
|
|
3748
3838
|
__name(_GetModelCustomizationJobCommand, "GetModelCustomizationJobCommand");
|
|
3749
3839
|
var GetModelCustomizationJobCommand = _GetModelCustomizationJobCommand;
|
|
@@ -4287,7 +4377,10 @@ var paginateListProvisionedModelThroughputs = (0, import_core.createPaginator)(B
|
|
|
4287
4377
|
ModelInvocationJobInputDataConfig,
|
|
4288
4378
|
ModelInvocationJobOutputDataConfig,
|
|
4289
4379
|
ModelInvocationJobStatus,
|
|
4380
|
+
CustomizationConfig,
|
|
4290
4381
|
CustomizationType,
|
|
4382
|
+
InvocationLogSource,
|
|
4383
|
+
RequestMetadataFilters,
|
|
4291
4384
|
ModelCustomization,
|
|
4292
4385
|
InferenceType,
|
|
4293
4386
|
ModelModality,
|
|
@@ -4339,6 +4432,13 @@ var paginateListProvisionedModelThroughputs = (0, import_core.createPaginator)(B
|
|
|
4339
4432
|
GetModelInvocationJobResponseFilterSensitiveLog,
|
|
4340
4433
|
ModelInvocationJobSummaryFilterSensitiveLog,
|
|
4341
4434
|
ListModelInvocationJobsResponseFilterSensitiveLog,
|
|
4435
|
+
RequestMetadataBaseFiltersFilterSensitiveLog,
|
|
4436
|
+
RequestMetadataFiltersFilterSensitiveLog,
|
|
4437
|
+
InvocationLogsConfigFilterSensitiveLog,
|
|
4438
|
+
TrainingDataConfigFilterSensitiveLog,
|
|
4439
|
+
GetCustomModelResponseFilterSensitiveLog,
|
|
4440
|
+
CreateModelCustomizationJobRequestFilterSensitiveLog,
|
|
4441
|
+
GetModelCustomizationJobResponseFilterSensitiveLog,
|
|
4342
4442
|
RetrievalFilterFilterSensitiveLog,
|
|
4343
4443
|
KnowledgeBaseVectorSearchConfigurationFilterSensitiveLog,
|
|
4344
4444
|
KnowledgeBaseRetrievalConfigurationFilterSensitiveLog,
|
|
@@ -2,6 +2,7 @@ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
4
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { CreateModelCustomizationJobRequestFilterSensitiveLog, } from "../models/models_0";
|
|
5
6
|
import { de_CreateModelCustomizationJobCommand, se_CreateModelCustomizationJobCommand, } from "../protocols/Aws_restJson1";
|
|
6
7
|
export { $Command };
|
|
7
8
|
export class CreateModelCustomizationJobCommand extends $Command
|
|
@@ -15,7 +16,7 @@ export class CreateModelCustomizationJobCommand extends $Command
|
|
|
15
16
|
})
|
|
16
17
|
.s("AmazonBedrockControlPlaneService", "CreateModelCustomizationJob", {})
|
|
17
18
|
.n("BedrockClient", "CreateModelCustomizationJobCommand")
|
|
18
|
-
.f(
|
|
19
|
+
.f(CreateModelCustomizationJobRequestFilterSensitiveLog, void 0)
|
|
19
20
|
.ser(se_CreateModelCustomizationJobCommand)
|
|
20
21
|
.de(de_CreateModelCustomizationJobCommand)
|
|
21
22
|
.build() {
|
|
@@ -2,6 +2,7 @@ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
4
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { GetCustomModelResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
6
|
import { de_GetCustomModelCommand, se_GetCustomModelCommand } from "../protocols/Aws_restJson1";
|
|
6
7
|
export { $Command };
|
|
7
8
|
export class GetCustomModelCommand extends $Command
|
|
@@ -15,7 +16,7 @@ export class GetCustomModelCommand extends $Command
|
|
|
15
16
|
})
|
|
16
17
|
.s("AmazonBedrockControlPlaneService", "GetCustomModel", {})
|
|
17
18
|
.n("BedrockClient", "GetCustomModelCommand")
|
|
18
|
-
.f(void 0,
|
|
19
|
+
.f(void 0, GetCustomModelResponseFilterSensitiveLog)
|
|
19
20
|
.ser(se_GetCustomModelCommand)
|
|
20
21
|
.de(de_GetCustomModelCommand)
|
|
21
22
|
.build() {
|
|
@@ -2,6 +2,7 @@ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
4
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { GetModelCustomizationJobResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
6
|
import { de_GetModelCustomizationJobCommand, se_GetModelCustomizationJobCommand } from "../protocols/Aws_restJson1";
|
|
6
7
|
export { $Command };
|
|
7
8
|
export class GetModelCustomizationJobCommand extends $Command
|
|
@@ -15,7 +16,7 @@ export class GetModelCustomizationJobCommand extends $Command
|
|
|
15
16
|
})
|
|
16
17
|
.s("AmazonBedrockControlPlaneService", "GetModelCustomizationJob", {})
|
|
17
18
|
.n("BedrockClient", "GetModelCustomizationJobCommand")
|
|
18
|
-
.f(void 0,
|
|
19
|
+
.f(void 0, GetModelCustomizationJobResponseFilterSensitiveLog)
|
|
19
20
|
.ser(se_GetModelCustomizationJobCommand)
|
|
20
21
|
.de(de_GetModelCustomizationJobCommand)
|
|
21
22
|
.build() {
|
|
@@ -312,12 +312,44 @@ export const ModelInvocationJobStatus = {
|
|
|
312
312
|
SUBMITTED: "Submitted",
|
|
313
313
|
VALIDATING: "Validating",
|
|
314
314
|
};
|
|
315
|
+
export var CustomizationConfig;
|
|
316
|
+
(function (CustomizationConfig) {
|
|
317
|
+
CustomizationConfig.visit = (value, visitor) => {
|
|
318
|
+
if (value.distillationConfig !== undefined)
|
|
319
|
+
return visitor.distillationConfig(value.distillationConfig);
|
|
320
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
321
|
+
};
|
|
322
|
+
})(CustomizationConfig || (CustomizationConfig = {}));
|
|
315
323
|
export const CustomizationType = {
|
|
316
324
|
CONTINUED_PRE_TRAINING: "CONTINUED_PRE_TRAINING",
|
|
325
|
+
DISTILLATION: "DISTILLATION",
|
|
317
326
|
FINE_TUNING: "FINE_TUNING",
|
|
318
327
|
};
|
|
328
|
+
export var InvocationLogSource;
|
|
329
|
+
(function (InvocationLogSource) {
|
|
330
|
+
InvocationLogSource.visit = (value, visitor) => {
|
|
331
|
+
if (value.s3Uri !== undefined)
|
|
332
|
+
return visitor.s3Uri(value.s3Uri);
|
|
333
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
334
|
+
};
|
|
335
|
+
})(InvocationLogSource || (InvocationLogSource = {}));
|
|
336
|
+
export var RequestMetadataFilters;
|
|
337
|
+
(function (RequestMetadataFilters) {
|
|
338
|
+
RequestMetadataFilters.visit = (value, visitor) => {
|
|
339
|
+
if (value.equals !== undefined)
|
|
340
|
+
return visitor.equals(value.equals);
|
|
341
|
+
if (value.notEquals !== undefined)
|
|
342
|
+
return visitor.notEquals(value.notEquals);
|
|
343
|
+
if (value.andAll !== undefined)
|
|
344
|
+
return visitor.andAll(value.andAll);
|
|
345
|
+
if (value.orAll !== undefined)
|
|
346
|
+
return visitor.orAll(value.orAll);
|
|
347
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
348
|
+
};
|
|
349
|
+
})(RequestMetadataFilters || (RequestMetadataFilters = {}));
|
|
319
350
|
export const ModelCustomization = {
|
|
320
351
|
CONTINUED_PRE_TRAINING: "CONTINUED_PRE_TRAINING",
|
|
352
|
+
DISTILLATION: "DISTILLATION",
|
|
321
353
|
FINE_TUNING: "FINE_TUNING",
|
|
322
354
|
};
|
|
323
355
|
export const InferenceType = {
|
|
@@ -633,6 +665,51 @@ export const ListModelInvocationJobsResponseFilterSensitiveLog = (obj) => ({
|
|
|
633
665
|
invocationJobSummaries: obj.invocationJobSummaries.map((item) => ModelInvocationJobSummaryFilterSensitiveLog(item)),
|
|
634
666
|
}),
|
|
635
667
|
});
|
|
668
|
+
export const RequestMetadataBaseFiltersFilterSensitiveLog = (obj) => ({
|
|
669
|
+
...obj,
|
|
670
|
+
...(obj.equals && { equals: SENSITIVE_STRING }),
|
|
671
|
+
...(obj.notEquals && { notEquals: SENSITIVE_STRING }),
|
|
672
|
+
});
|
|
673
|
+
export const RequestMetadataFiltersFilterSensitiveLog = (obj) => {
|
|
674
|
+
if (obj.equals !== undefined)
|
|
675
|
+
return { equals: SENSITIVE_STRING };
|
|
676
|
+
if (obj.notEquals !== undefined)
|
|
677
|
+
return { notEquals: SENSITIVE_STRING };
|
|
678
|
+
if (obj.andAll !== undefined)
|
|
679
|
+
return { andAll: obj.andAll.map((item) => RequestMetadataBaseFiltersFilterSensitiveLog(item)) };
|
|
680
|
+
if (obj.orAll !== undefined)
|
|
681
|
+
return { orAll: obj.orAll.map((item) => RequestMetadataBaseFiltersFilterSensitiveLog(item)) };
|
|
682
|
+
if (obj.$unknown !== undefined)
|
|
683
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
684
|
+
};
|
|
685
|
+
export const InvocationLogsConfigFilterSensitiveLog = (obj) => ({
|
|
686
|
+
...obj,
|
|
687
|
+
...(obj.invocationLogSource && { invocationLogSource: obj.invocationLogSource }),
|
|
688
|
+
...(obj.requestMetadataFilters && {
|
|
689
|
+
requestMetadataFilters: RequestMetadataFiltersFilterSensitiveLog(obj.requestMetadataFilters),
|
|
690
|
+
}),
|
|
691
|
+
});
|
|
692
|
+
export const TrainingDataConfigFilterSensitiveLog = (obj) => ({
|
|
693
|
+
...obj,
|
|
694
|
+
...(obj.invocationLogsConfig && {
|
|
695
|
+
invocationLogsConfig: InvocationLogsConfigFilterSensitiveLog(obj.invocationLogsConfig),
|
|
696
|
+
}),
|
|
697
|
+
});
|
|
698
|
+
export const GetCustomModelResponseFilterSensitiveLog = (obj) => ({
|
|
699
|
+
...obj,
|
|
700
|
+
...(obj.trainingDataConfig && { trainingDataConfig: TrainingDataConfigFilterSensitiveLog(obj.trainingDataConfig) }),
|
|
701
|
+
...(obj.customizationConfig && { customizationConfig: obj.customizationConfig }),
|
|
702
|
+
});
|
|
703
|
+
export const CreateModelCustomizationJobRequestFilterSensitiveLog = (obj) => ({
|
|
704
|
+
...obj,
|
|
705
|
+
...(obj.trainingDataConfig && { trainingDataConfig: TrainingDataConfigFilterSensitiveLog(obj.trainingDataConfig) }),
|
|
706
|
+
...(obj.customizationConfig && { customizationConfig: obj.customizationConfig }),
|
|
707
|
+
});
|
|
708
|
+
export const GetModelCustomizationJobResponseFilterSensitiveLog = (obj) => ({
|
|
709
|
+
...obj,
|
|
710
|
+
...(obj.trainingDataConfig && { trainingDataConfig: TrainingDataConfigFilterSensitiveLog(obj.trainingDataConfig) }),
|
|
711
|
+
...(obj.customizationConfig && { customizationConfig: obj.customizationConfig }),
|
|
712
|
+
});
|
|
636
713
|
export const RetrievalFilterFilterSensitiveLog = (obj) => {
|
|
637
714
|
if (obj.equals !== undefined)
|
|
638
715
|
return { equals: obj.equals };
|
|
@@ -125,6 +125,7 @@ export const se_CreateModelCustomizationJobCommand = async (input, context) => {
|
|
|
125
125
|
customModelKmsKeyId: [],
|
|
126
126
|
customModelName: [],
|
|
127
127
|
customModelTags: (_) => _json(_),
|
|
128
|
+
customizationConfig: (_) => _json(_),
|
|
128
129
|
customizationType: [],
|
|
129
130
|
hyperParameters: (_) => _json(_),
|
|
130
131
|
jobName: [],
|
|
@@ -889,6 +890,7 @@ export const de_GetCustomModelCommand = async (output, context) => {
|
|
|
889
890
|
const doc = take(data, {
|
|
890
891
|
baseModelArn: __expectString,
|
|
891
892
|
creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
893
|
+
customizationConfig: (_) => _json(__expectUnion(_)),
|
|
892
894
|
customizationType: __expectString,
|
|
893
895
|
hyperParameters: _json,
|
|
894
896
|
jobArn: __expectString,
|
|
@@ -1057,6 +1059,7 @@ export const de_GetModelCustomizationJobCommand = async (output, context) => {
|
|
|
1057
1059
|
baseModelArn: __expectString,
|
|
1058
1060
|
clientRequestToken: __expectString,
|
|
1059
1061
|
creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1062
|
+
customizationConfig: (_) => _json(__expectUnion(_)),
|
|
1060
1063
|
customizationType: __expectString,
|
|
1061
1064
|
endTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1062
1065
|
failureMessage: __expectString,
|
|
@@ -57,7 +57,7 @@ declare const CreateGuardrailCommand_base: {
|
|
|
57
57
|
* </ul>
|
|
58
58
|
* <p>In addition to the above policies, you can also configure the messages to be returned to
|
|
59
59
|
* the user if a user input or model response is in violation of the policies defined in the guardrail.</p>
|
|
60
|
-
* <p>For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails.html">
|
|
60
|
+
* <p>For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails.html">Amazon Bedrock Guardrails</a> in
|
|
61
61
|
* the <i>Amazon Bedrock User Guide</i>.</p>
|
|
62
62
|
* @example
|
|
63
63
|
* Use a bare-bones client and the command you need to make an API call.
|
|
@@ -48,7 +48,7 @@ declare const CreateModelCustomizationJobCommand_base: {
|
|
|
48
48
|
* roleArn: "STRING_VALUE", // required
|
|
49
49
|
* clientRequestToken: "STRING_VALUE",
|
|
50
50
|
* baseModelIdentifier: "STRING_VALUE", // required
|
|
51
|
-
* customizationType: "FINE_TUNING" || "CONTINUED_PRE_TRAINING",
|
|
51
|
+
* customizationType: "FINE_TUNING" || "CONTINUED_PRE_TRAINING" || "DISTILLATION",
|
|
52
52
|
* customModelKmsKeyId: "STRING_VALUE",
|
|
53
53
|
* jobTags: [ // TagList
|
|
54
54
|
* { // Tag
|
|
@@ -63,7 +63,39 @@ declare const CreateModelCustomizationJobCommand_base: {
|
|
|
63
63
|
* },
|
|
64
64
|
* ],
|
|
65
65
|
* trainingDataConfig: { // TrainingDataConfig
|
|
66
|
-
* s3Uri: "STRING_VALUE",
|
|
66
|
+
* s3Uri: "STRING_VALUE",
|
|
67
|
+
* invocationLogsConfig: { // InvocationLogsConfig
|
|
68
|
+
* usePromptResponse: true || false,
|
|
69
|
+
* invocationLogSource: { // InvocationLogSource Union: only one key present
|
|
70
|
+
* s3Uri: "STRING_VALUE",
|
|
71
|
+
* },
|
|
72
|
+
* requestMetadataFilters: { // RequestMetadataFilters Union: only one key present
|
|
73
|
+
* equals: { // RequestMetadataMap
|
|
74
|
+
* "<keys>": "STRING_VALUE",
|
|
75
|
+
* },
|
|
76
|
+
* notEquals: {
|
|
77
|
+
* "<keys>": "STRING_VALUE",
|
|
78
|
+
* },
|
|
79
|
+
* andAll: [ // RequestMetadataFiltersList
|
|
80
|
+
* { // RequestMetadataBaseFilters
|
|
81
|
+
* equals: {
|
|
82
|
+
* "<keys>": "STRING_VALUE",
|
|
83
|
+
* },
|
|
84
|
+
* notEquals: {
|
|
85
|
+
* "<keys>": "STRING_VALUE",
|
|
86
|
+
* },
|
|
87
|
+
* },
|
|
88
|
+
* ],
|
|
89
|
+
* orAll: [
|
|
90
|
+
* {
|
|
91
|
+
* equals: {
|
|
92
|
+
* "<keys>": "STRING_VALUE",
|
|
93
|
+
* },
|
|
94
|
+
* notEquals: "<RequestMetadataMap>",
|
|
95
|
+
* },
|
|
96
|
+
* ],
|
|
97
|
+
* },
|
|
98
|
+
* },
|
|
67
99
|
* },
|
|
68
100
|
* validationDataConfig: { // ValidationDataConfig
|
|
69
101
|
* validators: [ // Validators // required
|
|
@@ -75,7 +107,7 @@ declare const CreateModelCustomizationJobCommand_base: {
|
|
|
75
107
|
* outputDataConfig: { // OutputDataConfig
|
|
76
108
|
* s3Uri: "STRING_VALUE", // required
|
|
77
109
|
* },
|
|
78
|
-
* hyperParameters: { // ModelCustomizationHyperParameters
|
|
110
|
+
* hyperParameters: { // ModelCustomizationHyperParameters
|
|
79
111
|
* "<keys>": "STRING_VALUE",
|
|
80
112
|
* },
|
|
81
113
|
* vpcConfig: { // VpcConfig
|
|
@@ -86,6 +118,14 @@ declare const CreateModelCustomizationJobCommand_base: {
|
|
|
86
118
|
* "STRING_VALUE",
|
|
87
119
|
* ],
|
|
88
120
|
* },
|
|
121
|
+
* customizationConfig: { // CustomizationConfig Union: only one key present
|
|
122
|
+
* distillationConfig: { // DistillationConfig
|
|
123
|
+
* teacherModelConfig: { // TeacherModelConfig
|
|
124
|
+
* teacherModelIdentifier: "STRING_VALUE", // required
|
|
125
|
+
* maxResponseLengthForInference: Number("int"),
|
|
126
|
+
* },
|
|
127
|
+
* },
|
|
128
|
+
* },
|
|
89
129
|
* };
|
|
90
130
|
* const command = new CreateModelCustomizationJobCommand(input);
|
|
91
131
|
* const response = await client.send(command);
|
|
@@ -45,13 +45,45 @@ declare const GetCustomModelCommand_base: {
|
|
|
45
45
|
* // jobName: "STRING_VALUE",
|
|
46
46
|
* // jobArn: "STRING_VALUE", // required
|
|
47
47
|
* // baseModelArn: "STRING_VALUE", // required
|
|
48
|
-
* // customizationType: "FINE_TUNING" || "CONTINUED_PRE_TRAINING",
|
|
48
|
+
* // customizationType: "FINE_TUNING" || "CONTINUED_PRE_TRAINING" || "DISTILLATION",
|
|
49
49
|
* // modelKmsKeyArn: "STRING_VALUE",
|
|
50
50
|
* // hyperParameters: { // ModelCustomizationHyperParameters
|
|
51
51
|
* // "<keys>": "STRING_VALUE",
|
|
52
52
|
* // },
|
|
53
53
|
* // trainingDataConfig: { // TrainingDataConfig
|
|
54
|
-
* // s3Uri: "STRING_VALUE",
|
|
54
|
+
* // s3Uri: "STRING_VALUE",
|
|
55
|
+
* // invocationLogsConfig: { // InvocationLogsConfig
|
|
56
|
+
* // usePromptResponse: true || false,
|
|
57
|
+
* // invocationLogSource: { // InvocationLogSource Union: only one key present
|
|
58
|
+
* // s3Uri: "STRING_VALUE",
|
|
59
|
+
* // },
|
|
60
|
+
* // requestMetadataFilters: { // RequestMetadataFilters Union: only one key present
|
|
61
|
+
* // equals: { // RequestMetadataMap
|
|
62
|
+
* // "<keys>": "STRING_VALUE",
|
|
63
|
+
* // },
|
|
64
|
+
* // notEquals: {
|
|
65
|
+
* // "<keys>": "STRING_VALUE",
|
|
66
|
+
* // },
|
|
67
|
+
* // andAll: [ // RequestMetadataFiltersList
|
|
68
|
+
* // { // RequestMetadataBaseFilters
|
|
69
|
+
* // equals: {
|
|
70
|
+
* // "<keys>": "STRING_VALUE",
|
|
71
|
+
* // },
|
|
72
|
+
* // notEquals: {
|
|
73
|
+
* // "<keys>": "STRING_VALUE",
|
|
74
|
+
* // },
|
|
75
|
+
* // },
|
|
76
|
+
* // ],
|
|
77
|
+
* // orAll: [
|
|
78
|
+
* // {
|
|
79
|
+
* // equals: {
|
|
80
|
+
* // "<keys>": "STRING_VALUE",
|
|
81
|
+
* // },
|
|
82
|
+
* // notEquals: "<RequestMetadataMap>",
|
|
83
|
+
* // },
|
|
84
|
+
* // ],
|
|
85
|
+
* // },
|
|
86
|
+
* // },
|
|
55
87
|
* // },
|
|
56
88
|
* // validationDataConfig: { // ValidationDataConfig
|
|
57
89
|
* // validators: [ // Validators // required
|
|
@@ -72,6 +104,14 @@ declare const GetCustomModelCommand_base: {
|
|
|
72
104
|
* // },
|
|
73
105
|
* // ],
|
|
74
106
|
* // creationTime: new Date("TIMESTAMP"), // required
|
|
107
|
+
* // customizationConfig: { // CustomizationConfig Union: only one key present
|
|
108
|
+
* // distillationConfig: { // DistillationConfig
|
|
109
|
+
* // teacherModelConfig: { // TeacherModelConfig
|
|
110
|
+
* // teacherModelIdentifier: "STRING_VALUE", // required
|
|
111
|
+
* // maxResponseLengthForInference: Number("int"),
|
|
112
|
+
* // },
|
|
113
|
+
* // },
|
|
114
|
+
* // },
|
|
75
115
|
* // };
|
|
76
116
|
*
|
|
77
117
|
* ```
|
|
@@ -53,7 +53,7 @@ declare const GetFoundationModelCommand_base: {
|
|
|
53
53
|
* // ],
|
|
54
54
|
* // responseStreamingSupported: true || false,
|
|
55
55
|
* // customizationsSupported: [ // ModelCustomizationList
|
|
56
|
-
* // "FINE_TUNING" || "CONTINUED_PRE_TRAINING",
|
|
56
|
+
* // "FINE_TUNING" || "CONTINUED_PRE_TRAINING" || "DISTILLATION",
|
|
57
57
|
* // ],
|
|
58
58
|
* // inferenceTypesSupported: [ // InferenceTypeList
|
|
59
59
|
* // "ON_DEMAND" || "PROVISIONED",
|
|
@@ -53,11 +53,43 @@ declare const GetModelCustomizationJobCommand_base: {
|
|
|
53
53
|
* // lastModifiedTime: new Date("TIMESTAMP"),
|
|
54
54
|
* // endTime: new Date("TIMESTAMP"),
|
|
55
55
|
* // baseModelArn: "STRING_VALUE", // required
|
|
56
|
-
* // hyperParameters: { // ModelCustomizationHyperParameters
|
|
56
|
+
* // hyperParameters: { // ModelCustomizationHyperParameters
|
|
57
57
|
* // "<keys>": "STRING_VALUE",
|
|
58
58
|
* // },
|
|
59
59
|
* // trainingDataConfig: { // TrainingDataConfig
|
|
60
|
-
* // s3Uri: "STRING_VALUE",
|
|
60
|
+
* // s3Uri: "STRING_VALUE",
|
|
61
|
+
* // invocationLogsConfig: { // InvocationLogsConfig
|
|
62
|
+
* // usePromptResponse: true || false,
|
|
63
|
+
* // invocationLogSource: { // InvocationLogSource Union: only one key present
|
|
64
|
+
* // s3Uri: "STRING_VALUE",
|
|
65
|
+
* // },
|
|
66
|
+
* // requestMetadataFilters: { // RequestMetadataFilters Union: only one key present
|
|
67
|
+
* // equals: { // RequestMetadataMap
|
|
68
|
+
* // "<keys>": "STRING_VALUE",
|
|
69
|
+
* // },
|
|
70
|
+
* // notEquals: {
|
|
71
|
+
* // "<keys>": "STRING_VALUE",
|
|
72
|
+
* // },
|
|
73
|
+
* // andAll: [ // RequestMetadataFiltersList
|
|
74
|
+
* // { // RequestMetadataBaseFilters
|
|
75
|
+
* // equals: {
|
|
76
|
+
* // "<keys>": "STRING_VALUE",
|
|
77
|
+
* // },
|
|
78
|
+
* // notEquals: {
|
|
79
|
+
* // "<keys>": "STRING_VALUE",
|
|
80
|
+
* // },
|
|
81
|
+
* // },
|
|
82
|
+
* // ],
|
|
83
|
+
* // orAll: [
|
|
84
|
+
* // {
|
|
85
|
+
* // equals: {
|
|
86
|
+
* // "<keys>": "STRING_VALUE",
|
|
87
|
+
* // },
|
|
88
|
+
* // notEquals: "<RequestMetadataMap>",
|
|
89
|
+
* // },
|
|
90
|
+
* // ],
|
|
91
|
+
* // },
|
|
92
|
+
* // },
|
|
61
93
|
* // },
|
|
62
94
|
* // validationDataConfig: { // ValidationDataConfig
|
|
63
95
|
* // validators: [ // Validators // required
|
|
@@ -69,7 +101,7 @@ declare const GetModelCustomizationJobCommand_base: {
|
|
|
69
101
|
* // outputDataConfig: { // OutputDataConfig
|
|
70
102
|
* // s3Uri: "STRING_VALUE", // required
|
|
71
103
|
* // },
|
|
72
|
-
* // customizationType: "FINE_TUNING" || "CONTINUED_PRE_TRAINING",
|
|
104
|
+
* // customizationType: "FINE_TUNING" || "CONTINUED_PRE_TRAINING" || "DISTILLATION",
|
|
73
105
|
* // outputModelKmsKeyArn: "STRING_VALUE",
|
|
74
106
|
* // trainingMetrics: { // TrainingMetrics
|
|
75
107
|
* // trainingLoss: Number("float"),
|
|
@@ -87,6 +119,14 @@ declare const GetModelCustomizationJobCommand_base: {
|
|
|
87
119
|
* // "STRING_VALUE",
|
|
88
120
|
* // ],
|
|
89
121
|
* // },
|
|
122
|
+
* // customizationConfig: { // CustomizationConfig Union: only one key present
|
|
123
|
+
* // distillationConfig: { // DistillationConfig
|
|
124
|
+
* // teacherModelConfig: { // TeacherModelConfig
|
|
125
|
+
* // teacherModelIdentifier: "STRING_VALUE", // required
|
|
126
|
+
* // maxResponseLengthForInference: Number("int"),
|
|
127
|
+
* // },
|
|
128
|
+
* // },
|
|
129
|
+
* // },
|
|
90
130
|
* // };
|
|
91
131
|
*
|
|
92
132
|
* ```
|
|
@@ -27,7 +27,7 @@ declare const GetModelInvocationJobCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>Gets details about a batch inference job. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/batch-inference-
|
|
30
|
+
* <p>Gets details about a batch inference job. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/batch-inference-monitor">Monitor batch inference jobs</a>
|
|
31
31
|
* </p>
|
|
32
32
|
* @example
|
|
33
33
|
* Use a bare-bones client and the command you need to make an API call.
|
|
@@ -54,6 +54,7 @@ declare const GetModelInvocationLoggingConfigurationCommand_base: {
|
|
|
54
54
|
* // textDataDeliveryEnabled: true || false,
|
|
55
55
|
* // imageDataDeliveryEnabled: true || false,
|
|
56
56
|
* // embeddingDataDeliveryEnabled: true || false,
|
|
57
|
+
* // videoDataDeliveryEnabled: true || false,
|
|
57
58
|
* // },
|
|
58
59
|
* // };
|
|
59
60
|
*
|
|
@@ -58,7 +58,7 @@ declare const ListCustomModelsCommand_base: {
|
|
|
58
58
|
* // creationTime: new Date("TIMESTAMP"), // required
|
|
59
59
|
* // baseModelArn: "STRING_VALUE", // required
|
|
60
60
|
* // baseModelName: "STRING_VALUE", // required
|
|
61
|
-
* // customizationType: "FINE_TUNING" || "CONTINUED_PRE_TRAINING",
|
|
61
|
+
* // customizationType: "FINE_TUNING" || "CONTINUED_PRE_TRAINING" || "DISTILLATION",
|
|
62
62
|
* // ownerAccountId: "STRING_VALUE",
|
|
63
63
|
* // },
|
|
64
64
|
* // ],
|