@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
package/README.md
CHANGED
|
@@ -210,6 +210,14 @@ BatchDeleteEvaluationJob
|
|
|
210
210
|
|
|
211
211
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock/command/BatchDeleteEvaluationJobCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/BatchDeleteEvaluationJobCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/BatchDeleteEvaluationJobCommandOutput/)
|
|
212
212
|
|
|
213
|
+
</details>
|
|
214
|
+
<details>
|
|
215
|
+
<summary>
|
|
216
|
+
CreateCustomModel
|
|
217
|
+
</summary>
|
|
218
|
+
|
|
219
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock/command/CreateCustomModelCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/CreateCustomModelCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/CreateCustomModelCommandOutput/)
|
|
220
|
+
|
|
213
221
|
</details>
|
|
214
222
|
<details>
|
|
215
223
|
<summary>
|
package/dist-cjs/index.js
CHANGED
|
@@ -38,6 +38,7 @@ __export(index_exports, {
|
|
|
38
38
|
ByteContentDocFilterSensitiveLog: () => ByteContentDocFilterSensitiveLog,
|
|
39
39
|
CommitmentDuration: () => CommitmentDuration,
|
|
40
40
|
ConflictException: () => ConflictException,
|
|
41
|
+
CreateCustomModelCommand: () => CreateCustomModelCommand,
|
|
41
42
|
CreateEvaluationJobCommand: () => CreateEvaluationJobCommand,
|
|
42
43
|
CreateEvaluationJobRequestFilterSensitiveLog: () => CreateEvaluationJobRequestFilterSensitiveLog,
|
|
43
44
|
CreateGuardrailCommand: () => CreateGuardrailCommand,
|
|
@@ -189,6 +190,7 @@ __export(index_exports, {
|
|
|
189
190
|
ModelInvocationJobStatus: () => ModelInvocationJobStatus,
|
|
190
191
|
ModelInvocationJobSummaryFilterSensitiveLog: () => ModelInvocationJobSummaryFilterSensitiveLog,
|
|
191
192
|
ModelModality: () => ModelModality,
|
|
193
|
+
ModelStatus: () => ModelStatus,
|
|
192
194
|
PerformanceConfigLatency: () => PerformanceConfigLatency,
|
|
193
195
|
PromptRouterStatus: () => PromptRouterStatus,
|
|
194
196
|
PromptRouterSummaryFilterSensitiveLog: () => PromptRouterSummaryFilterSensitiveLog,
|
|
@@ -572,6 +574,79 @@ var ServiceUnavailableException = class _ServiceUnavailableException extends Bed
|
|
|
572
574
|
Object.setPrototypeOf(this, _ServiceUnavailableException.prototype);
|
|
573
575
|
}
|
|
574
576
|
};
|
|
577
|
+
var ModelDataSource;
|
|
578
|
+
((ModelDataSource3) => {
|
|
579
|
+
ModelDataSource3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
580
|
+
if (value.s3DataSource !== void 0) return visitor.s3DataSource(value.s3DataSource);
|
|
581
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
582
|
+
}, "visit");
|
|
583
|
+
})(ModelDataSource || (ModelDataSource = {}));
|
|
584
|
+
var TooManyTagsException = class _TooManyTagsException extends BedrockServiceException {
|
|
585
|
+
static {
|
|
586
|
+
__name(this, "TooManyTagsException");
|
|
587
|
+
}
|
|
588
|
+
name = "TooManyTagsException";
|
|
589
|
+
$fault = "client";
|
|
590
|
+
/**
|
|
591
|
+
* <p>The name of the resource with too many tags.</p>
|
|
592
|
+
* @public
|
|
593
|
+
*/
|
|
594
|
+
resourceName;
|
|
595
|
+
/**
|
|
596
|
+
* @internal
|
|
597
|
+
*/
|
|
598
|
+
constructor(opts) {
|
|
599
|
+
super({
|
|
600
|
+
name: "TooManyTagsException",
|
|
601
|
+
$fault: "client",
|
|
602
|
+
...opts
|
|
603
|
+
});
|
|
604
|
+
Object.setPrototypeOf(this, _TooManyTagsException.prototype);
|
|
605
|
+
this.resourceName = opts.resourceName;
|
|
606
|
+
}
|
|
607
|
+
};
|
|
608
|
+
var CustomizationConfig;
|
|
609
|
+
((CustomizationConfig3) => {
|
|
610
|
+
CustomizationConfig3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
611
|
+
if (value.distillationConfig !== void 0) return visitor.distillationConfig(value.distillationConfig);
|
|
612
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
613
|
+
}, "visit");
|
|
614
|
+
})(CustomizationConfig || (CustomizationConfig = {}));
|
|
615
|
+
var CustomizationType = {
|
|
616
|
+
CONTINUED_PRE_TRAINING: "CONTINUED_PRE_TRAINING",
|
|
617
|
+
DISTILLATION: "DISTILLATION",
|
|
618
|
+
FINE_TUNING: "FINE_TUNING",
|
|
619
|
+
IMPORTED: "IMPORTED"
|
|
620
|
+
};
|
|
621
|
+
var ModelStatus = {
|
|
622
|
+
ACTIVE: "Active",
|
|
623
|
+
CREATING: "Creating",
|
|
624
|
+
FAILED: "Failed"
|
|
625
|
+
};
|
|
626
|
+
var InvocationLogSource;
|
|
627
|
+
((InvocationLogSource3) => {
|
|
628
|
+
InvocationLogSource3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
629
|
+
if (value.s3Uri !== void 0) return visitor.s3Uri(value.s3Uri);
|
|
630
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
631
|
+
}, "visit");
|
|
632
|
+
})(InvocationLogSource || (InvocationLogSource = {}));
|
|
633
|
+
var RequestMetadataFilters;
|
|
634
|
+
((RequestMetadataFilters3) => {
|
|
635
|
+
RequestMetadataFilters3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
636
|
+
if (value.equals !== void 0) return visitor.equals(value.equals);
|
|
637
|
+
if (value.notEquals !== void 0) return visitor.notEquals(value.notEquals);
|
|
638
|
+
if (value.andAll !== void 0) return visitor.andAll(value.andAll);
|
|
639
|
+
if (value.orAll !== void 0) return visitor.orAll(value.orAll);
|
|
640
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
641
|
+
}, "visit");
|
|
642
|
+
})(RequestMetadataFilters || (RequestMetadataFilters = {}));
|
|
643
|
+
var SortModelsBy = {
|
|
644
|
+
CREATION_TIME: "CreationTime"
|
|
645
|
+
};
|
|
646
|
+
var SortOrder = {
|
|
647
|
+
ASCENDING: "Ascending",
|
|
648
|
+
DESCENDING: "Descending"
|
|
649
|
+
};
|
|
575
650
|
var EvaluationJobStatus = {
|
|
576
651
|
COMPLETED: "Completed",
|
|
577
652
|
DELETING: "Deleting",
|
|
@@ -633,8 +708,8 @@ var PerformanceConfigLatency = {
|
|
|
633
708
|
STANDARD: "standard"
|
|
634
709
|
};
|
|
635
710
|
var EvaluationModelConfig;
|
|
636
|
-
((
|
|
637
|
-
|
|
711
|
+
((EvaluationModelConfig4) => {
|
|
712
|
+
EvaluationModelConfig4.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
638
713
|
if (value.bedrockModel !== void 0) return visitor.bedrockModel(value.bedrockModel);
|
|
639
714
|
if (value.precomputedInferenceSource !== void 0)
|
|
640
715
|
return visitor.precomputedInferenceSource(value.precomputedInferenceSource);
|
|
@@ -657,8 +732,8 @@ var RetrieveAndGenerateType = {
|
|
|
657
732
|
KNOWLEDGE_BASE: "KNOWLEDGE_BASE"
|
|
658
733
|
};
|
|
659
734
|
var EvaluationPrecomputedRagSourceConfig;
|
|
660
|
-
((
|
|
661
|
-
|
|
735
|
+
((EvaluationPrecomputedRagSourceConfig4) => {
|
|
736
|
+
EvaluationPrecomputedRagSourceConfig4.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
662
737
|
if (value.retrieveSourceConfig !== void 0) return visitor.retrieveSourceConfig(value.retrieveSourceConfig);
|
|
663
738
|
if (value.retrieveAndGenerateSourceConfig !== void 0)
|
|
664
739
|
return visitor.retrieveAndGenerateSourceConfig(value.retrieveAndGenerateSourceConfig);
|
|
@@ -672,10 +747,6 @@ var EvaluationJobType = {
|
|
|
672
747
|
var SortJobsBy = {
|
|
673
748
|
CREATION_TIME: "CreationTime"
|
|
674
749
|
};
|
|
675
|
-
var SortOrder = {
|
|
676
|
-
ASCENDING: "Ascending",
|
|
677
|
-
DESCENDING: "Descending"
|
|
678
|
-
};
|
|
679
750
|
var GuardrailContentFilterAction = {
|
|
680
751
|
BLOCK: "BLOCK",
|
|
681
752
|
NONE: "NONE"
|
|
@@ -758,30 +829,6 @@ var GuardrailWordAction = {
|
|
|
758
829
|
var GuardrailManagedWordsType = {
|
|
759
830
|
PROFANITY: "PROFANITY"
|
|
760
831
|
};
|
|
761
|
-
var TooManyTagsException = class _TooManyTagsException extends BedrockServiceException {
|
|
762
|
-
static {
|
|
763
|
-
__name(this, "TooManyTagsException");
|
|
764
|
-
}
|
|
765
|
-
name = "TooManyTagsException";
|
|
766
|
-
$fault = "client";
|
|
767
|
-
/**
|
|
768
|
-
* <p>The name of the resource with too many tags.</p>
|
|
769
|
-
* @public
|
|
770
|
-
*/
|
|
771
|
-
resourceName;
|
|
772
|
-
/**
|
|
773
|
-
* @internal
|
|
774
|
-
*/
|
|
775
|
-
constructor(opts) {
|
|
776
|
-
super({
|
|
777
|
-
name: "TooManyTagsException",
|
|
778
|
-
$fault: "client",
|
|
779
|
-
...opts
|
|
780
|
-
});
|
|
781
|
-
Object.setPrototypeOf(this, _TooManyTagsException.prototype);
|
|
782
|
-
this.resourceName = opts.resourceName;
|
|
783
|
-
}
|
|
784
|
-
};
|
|
785
832
|
var GuardrailStatus = {
|
|
786
833
|
CREATING: "CREATING",
|
|
787
834
|
DELETING: "DELETING",
|
|
@@ -809,21 +856,11 @@ var ModelCopyJobStatus = {
|
|
|
809
856
|
FAILED: "Failed",
|
|
810
857
|
IN_PROGRESS: "InProgress"
|
|
811
858
|
};
|
|
812
|
-
var ModelDataSource;
|
|
813
|
-
((ModelDataSource3) => {
|
|
814
|
-
ModelDataSource3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
815
|
-
if (value.s3DataSource !== void 0) return visitor.s3DataSource(value.s3DataSource);
|
|
816
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
817
|
-
}, "visit");
|
|
818
|
-
})(ModelDataSource || (ModelDataSource = {}));
|
|
819
859
|
var ModelImportJobStatus = {
|
|
820
860
|
COMPLETED: "Completed",
|
|
821
861
|
FAILED: "Failed",
|
|
822
862
|
IN_PROGRESS: "InProgress"
|
|
823
863
|
};
|
|
824
|
-
var SortModelsBy = {
|
|
825
|
-
CREATION_TIME: "CreationTime"
|
|
826
|
-
};
|
|
827
864
|
var S3InputFormat = {
|
|
828
865
|
JSONL: "JSONL"
|
|
829
866
|
};
|
|
@@ -853,35 +890,6 @@ var ModelInvocationJobStatus = {
|
|
|
853
890
|
SUBMITTED: "Submitted",
|
|
854
891
|
VALIDATING: "Validating"
|
|
855
892
|
};
|
|
856
|
-
var CustomizationConfig;
|
|
857
|
-
((CustomizationConfig3) => {
|
|
858
|
-
CustomizationConfig3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
859
|
-
if (value.distillationConfig !== void 0) return visitor.distillationConfig(value.distillationConfig);
|
|
860
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
861
|
-
}, "visit");
|
|
862
|
-
})(CustomizationConfig || (CustomizationConfig = {}));
|
|
863
|
-
var CustomizationType = {
|
|
864
|
-
CONTINUED_PRE_TRAINING: "CONTINUED_PRE_TRAINING",
|
|
865
|
-
DISTILLATION: "DISTILLATION",
|
|
866
|
-
FINE_TUNING: "FINE_TUNING"
|
|
867
|
-
};
|
|
868
|
-
var InvocationLogSource;
|
|
869
|
-
((InvocationLogSource3) => {
|
|
870
|
-
InvocationLogSource3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
871
|
-
if (value.s3Uri !== void 0) return visitor.s3Uri(value.s3Uri);
|
|
872
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
873
|
-
}, "visit");
|
|
874
|
-
})(InvocationLogSource || (InvocationLogSource = {}));
|
|
875
|
-
var RequestMetadataFilters;
|
|
876
|
-
((RequestMetadataFilters3) => {
|
|
877
|
-
RequestMetadataFilters3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
878
|
-
if (value.equals !== void 0) return visitor.equals(value.equals);
|
|
879
|
-
if (value.notEquals !== void 0) return visitor.notEquals(value.notEquals);
|
|
880
|
-
if (value.andAll !== void 0) return visitor.andAll(value.andAll);
|
|
881
|
-
if (value.orAll !== void 0) return visitor.orAll(value.orAll);
|
|
882
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
883
|
-
}, "visit");
|
|
884
|
-
})(RequestMetadataFilters || (RequestMetadataFilters = {}));
|
|
885
893
|
var ModelCustomization = {
|
|
886
894
|
CONTINUED_PRE_TRAINING: "CONTINUED_PRE_TRAINING",
|
|
887
895
|
DISTILLATION: "DISTILLATION",
|
|
@@ -962,31 +970,46 @@ var RetrievalFilter;
|
|
|
962
970
|
}, "visit");
|
|
963
971
|
})(RetrievalFilter || (RetrievalFilter = {}));
|
|
964
972
|
var KnowledgeBaseConfig;
|
|
965
|
-
((
|
|
966
|
-
|
|
973
|
+
((KnowledgeBaseConfig3) => {
|
|
974
|
+
KnowledgeBaseConfig3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
967
975
|
if (value.retrieveConfig !== void 0) return visitor.retrieveConfig(value.retrieveConfig);
|
|
968
976
|
if (value.retrieveAndGenerateConfig !== void 0)
|
|
969
977
|
return visitor.retrieveAndGenerateConfig(value.retrieveAndGenerateConfig);
|
|
970
978
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
971
979
|
}, "visit");
|
|
972
980
|
})(KnowledgeBaseConfig || (KnowledgeBaseConfig = {}));
|
|
973
|
-
var
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
(
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
981
|
+
var RequestMetadataBaseFiltersFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
982
|
+
...obj,
|
|
983
|
+
...obj.equals && { equals: import_smithy_client.SENSITIVE_STRING },
|
|
984
|
+
...obj.notEquals && { notEquals: import_smithy_client.SENSITIVE_STRING }
|
|
985
|
+
}), "RequestMetadataBaseFiltersFilterSensitiveLog");
|
|
986
|
+
var RequestMetadataFiltersFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
987
|
+
if (obj.equals !== void 0) return { equals: import_smithy_client.SENSITIVE_STRING };
|
|
988
|
+
if (obj.notEquals !== void 0) return { notEquals: import_smithy_client.SENSITIVE_STRING };
|
|
989
|
+
if (obj.andAll !== void 0)
|
|
990
|
+
return { andAll: obj.andAll.map((item) => RequestMetadataBaseFiltersFilterSensitiveLog(item)) };
|
|
991
|
+
if (obj.orAll !== void 0)
|
|
992
|
+
return { orAll: obj.orAll.map((item) => RequestMetadataBaseFiltersFilterSensitiveLog(item)) };
|
|
993
|
+
if (obj.$unknown !== void 0) return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
994
|
+
}, "RequestMetadataFiltersFilterSensitiveLog");
|
|
995
|
+
var InvocationLogsConfigFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
996
|
+
...obj,
|
|
997
|
+
...obj.invocationLogSource && { invocationLogSource: obj.invocationLogSource },
|
|
998
|
+
...obj.requestMetadataFilters && {
|
|
999
|
+
requestMetadataFilters: RequestMetadataFiltersFilterSensitiveLog(obj.requestMetadataFilters)
|
|
1000
|
+
}
|
|
1001
|
+
}), "InvocationLogsConfigFilterSensitiveLog");
|
|
1002
|
+
var TrainingDataConfigFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1003
|
+
...obj,
|
|
1004
|
+
...obj.invocationLogsConfig && {
|
|
1005
|
+
invocationLogsConfig: InvocationLogsConfigFilterSensitiveLog(obj.invocationLogsConfig)
|
|
1006
|
+
}
|
|
1007
|
+
}), "TrainingDataConfigFilterSensitiveLog");
|
|
1008
|
+
var GetCustomModelResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1009
|
+
...obj,
|
|
1010
|
+
...obj.trainingDataConfig && { trainingDataConfig: TrainingDataConfigFilterSensitiveLog(obj.trainingDataConfig) },
|
|
1011
|
+
...obj.customizationConfig && { customizationConfig: obj.customizationConfig }
|
|
1012
|
+
}), "GetCustomModelResponseFilterSensitiveLog");
|
|
990
1013
|
var BatchDeleteEvaluationJobRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
991
1014
|
...obj,
|
|
992
1015
|
...obj.jobIdentifiers && { jobIdentifiers: import_smithy_client.SENSITIVE_STRING }
|
|
@@ -1325,38 +1348,6 @@ var ListModelInvocationJobsResponseFilterSensitiveLog = /* @__PURE__ */ __name((
|
|
|
1325
1348
|
invocationJobSummaries: obj.invocationJobSummaries.map((item) => ModelInvocationJobSummaryFilterSensitiveLog(item))
|
|
1326
1349
|
}
|
|
1327
1350
|
}), "ListModelInvocationJobsResponseFilterSensitiveLog");
|
|
1328
|
-
var RequestMetadataBaseFiltersFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1329
|
-
...obj,
|
|
1330
|
-
...obj.equals && { equals: import_smithy_client.SENSITIVE_STRING },
|
|
1331
|
-
...obj.notEquals && { notEquals: import_smithy_client.SENSITIVE_STRING }
|
|
1332
|
-
}), "RequestMetadataBaseFiltersFilterSensitiveLog");
|
|
1333
|
-
var RequestMetadataFiltersFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
1334
|
-
if (obj.equals !== void 0) return { equals: import_smithy_client.SENSITIVE_STRING };
|
|
1335
|
-
if (obj.notEquals !== void 0) return { notEquals: import_smithy_client.SENSITIVE_STRING };
|
|
1336
|
-
if (obj.andAll !== void 0)
|
|
1337
|
-
return { andAll: obj.andAll.map((item) => RequestMetadataBaseFiltersFilterSensitiveLog(item)) };
|
|
1338
|
-
if (obj.orAll !== void 0)
|
|
1339
|
-
return { orAll: obj.orAll.map((item) => RequestMetadataBaseFiltersFilterSensitiveLog(item)) };
|
|
1340
|
-
if (obj.$unknown !== void 0) return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1341
|
-
}, "RequestMetadataFiltersFilterSensitiveLog");
|
|
1342
|
-
var InvocationLogsConfigFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1343
|
-
...obj,
|
|
1344
|
-
...obj.invocationLogSource && { invocationLogSource: obj.invocationLogSource },
|
|
1345
|
-
...obj.requestMetadataFilters && {
|
|
1346
|
-
requestMetadataFilters: RequestMetadataFiltersFilterSensitiveLog(obj.requestMetadataFilters)
|
|
1347
|
-
}
|
|
1348
|
-
}), "InvocationLogsConfigFilterSensitiveLog");
|
|
1349
|
-
var TrainingDataConfigFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1350
|
-
...obj,
|
|
1351
|
-
...obj.invocationLogsConfig && {
|
|
1352
|
-
invocationLogsConfig: InvocationLogsConfigFilterSensitiveLog(obj.invocationLogsConfig)
|
|
1353
|
-
}
|
|
1354
|
-
}), "TrainingDataConfigFilterSensitiveLog");
|
|
1355
|
-
var GetCustomModelResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1356
|
-
...obj,
|
|
1357
|
-
...obj.trainingDataConfig && { trainingDataConfig: TrainingDataConfigFilterSensitiveLog(obj.trainingDataConfig) },
|
|
1358
|
-
...obj.customizationConfig && { customizationConfig: obj.customizationConfig }
|
|
1359
|
-
}), "GetCustomModelResponseFilterSensitiveLog");
|
|
1360
1351
|
var CreatePromptRouterRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1361
1352
|
...obj,
|
|
1362
1353
|
...obj.description && { description: import_smithy_client.SENSITIVE_STRING }
|
|
@@ -1449,6 +1440,32 @@ var KnowledgeBaseConfigFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
|
1449
1440
|
};
|
|
1450
1441
|
if (obj.$unknown !== void 0) return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1451
1442
|
}, "KnowledgeBaseConfigFilterSensitiveLog");
|
|
1443
|
+
|
|
1444
|
+
// src/protocols/Aws_restJson1.ts
|
|
1445
|
+
var import_core2 = require("@aws-sdk/core");
|
|
1446
|
+
|
|
1447
|
+
|
|
1448
|
+
var import_uuid = require("uuid");
|
|
1449
|
+
|
|
1450
|
+
// src/models/models_1.ts
|
|
1451
|
+
|
|
1452
|
+
var RAGConfig;
|
|
1453
|
+
((RAGConfig2) => {
|
|
1454
|
+
RAGConfig2.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
1455
|
+
if (value.knowledgeBaseConfig !== void 0) return visitor.knowledgeBaseConfig(value.knowledgeBaseConfig);
|
|
1456
|
+
if (value.precomputedRagSourceConfig !== void 0)
|
|
1457
|
+
return visitor.precomputedRagSourceConfig(value.precomputedRagSourceConfig);
|
|
1458
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
1459
|
+
}, "visit");
|
|
1460
|
+
})(RAGConfig || (RAGConfig = {}));
|
|
1461
|
+
var EvaluationInferenceConfig;
|
|
1462
|
+
((EvaluationInferenceConfig2) => {
|
|
1463
|
+
EvaluationInferenceConfig2.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
1464
|
+
if (value.models !== void 0) return visitor.models(value.models);
|
|
1465
|
+
if (value.ragConfigs !== void 0) return visitor.ragConfigs(value.ragConfigs);
|
|
1466
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
1467
|
+
}, "visit");
|
|
1468
|
+
})(EvaluationInferenceConfig || (EvaluationInferenceConfig = {}));
|
|
1452
1469
|
var RAGConfigFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
1453
1470
|
if (obj.knowledgeBaseConfig !== void 0)
|
|
1454
1471
|
return { knowledgeBaseConfig: KnowledgeBaseConfigFilterSensitiveLog(obj.knowledgeBaseConfig) };
|
|
@@ -1469,12 +1486,14 @@ var CreateEvaluationJobRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj)
|
|
|
1469
1486
|
...obj.evaluationConfig && { evaluationConfig: EvaluationConfigFilterSensitiveLog(obj.evaluationConfig) },
|
|
1470
1487
|
...obj.inferenceConfig && { inferenceConfig: EvaluationInferenceConfigFilterSensitiveLog(obj.inferenceConfig) }
|
|
1471
1488
|
}), "CreateEvaluationJobRequestFilterSensitiveLog");
|
|
1489
|
+
var GetEvaluationJobResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1490
|
+
...obj,
|
|
1491
|
+
...obj.jobDescription && { jobDescription: import_smithy_client.SENSITIVE_STRING },
|
|
1492
|
+
...obj.evaluationConfig && { evaluationConfig: EvaluationConfigFilterSensitiveLog(obj.evaluationConfig) },
|
|
1493
|
+
...obj.inferenceConfig && { inferenceConfig: EvaluationInferenceConfigFilterSensitiveLog(obj.inferenceConfig) }
|
|
1494
|
+
}), "GetEvaluationJobResponseFilterSensitiveLog");
|
|
1472
1495
|
|
|
1473
1496
|
// src/protocols/Aws_restJson1.ts
|
|
1474
|
-
var import_core2 = require("@aws-sdk/core");
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
var import_uuid = require("uuid");
|
|
1478
1497
|
var se_BatchDeleteEvaluationJobCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1479
1498
|
const b = (0, import_core.requestBuilder)(input, context);
|
|
1480
1499
|
const headers = {
|
|
@@ -1490,6 +1509,26 @@ var se_BatchDeleteEvaluationJobCommand = /* @__PURE__ */ __name(async (input, co
|
|
|
1490
1509
|
b.m("POST").h(headers).b(body);
|
|
1491
1510
|
return b.build();
|
|
1492
1511
|
}, "se_BatchDeleteEvaluationJobCommand");
|
|
1512
|
+
var se_CreateCustomModelCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1513
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
1514
|
+
const headers = {
|
|
1515
|
+
"content-type": "application/json"
|
|
1516
|
+
};
|
|
1517
|
+
b.bp("/custom-models/create-custom-model");
|
|
1518
|
+
let body;
|
|
1519
|
+
body = JSON.stringify(
|
|
1520
|
+
(0, import_smithy_client.take)(input, {
|
|
1521
|
+
clientRequestToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
1522
|
+
modelKmsKeyArn: [],
|
|
1523
|
+
modelName: [],
|
|
1524
|
+
modelSourceConfig: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "modelSourceConfig"),
|
|
1525
|
+
modelTags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "modelTags"),
|
|
1526
|
+
roleArn: []
|
|
1527
|
+
})
|
|
1528
|
+
);
|
|
1529
|
+
b.m("POST").h(headers).b(body);
|
|
1530
|
+
return b.build();
|
|
1531
|
+
}, "se_CreateCustomModelCommand");
|
|
1493
1532
|
var se_CreateEvaluationJobCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1494
1533
|
const b = (0, import_core.requestBuilder)(input, context);
|
|
1495
1534
|
const headers = {
|
|
@@ -1957,7 +1996,8 @@ var se_ListCustomModelsCommand = /* @__PURE__ */ __name(async (input, context) =
|
|
|
1957
1996
|
[_nT]: [, input[_nT]],
|
|
1958
1997
|
[_sB]: [, input[_sB]],
|
|
1959
1998
|
[_sO]: [, input[_sO]],
|
|
1960
|
-
[_iO]: [() => input.isOwned !== void 0, () => input[_iO].toString()]
|
|
1999
|
+
[_iO]: [() => input.isOwned !== void 0, () => input[_iO].toString()],
|
|
2000
|
+
[_mS]: [, input[_mS]]
|
|
1961
2001
|
});
|
|
1962
2002
|
let body;
|
|
1963
2003
|
b.m("GET").h(headers).q(query).b(body);
|
|
@@ -2338,6 +2378,20 @@ var de_BatchDeleteEvaluationJobCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
2338
2378
|
Object.assign(contents, doc);
|
|
2339
2379
|
return contents;
|
|
2340
2380
|
}, "de_BatchDeleteEvaluationJobCommand");
|
|
2381
|
+
var de_CreateCustomModelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2382
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2383
|
+
return de_CommandError(output, context);
|
|
2384
|
+
}
|
|
2385
|
+
const contents = (0, import_smithy_client.map)({
|
|
2386
|
+
$metadata: deserializeMetadata(output)
|
|
2387
|
+
});
|
|
2388
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2389
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2390
|
+
modelArn: import_smithy_client.expectString
|
|
2391
|
+
});
|
|
2392
|
+
Object.assign(contents, doc);
|
|
2393
|
+
return contents;
|
|
2394
|
+
}, "de_CreateCustomModelCommand");
|
|
2341
2395
|
var de_CreateEvaluationJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2342
2396
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2343
2397
|
return de_CommandError(output, context);
|
|
@@ -2600,12 +2654,14 @@ var de_GetCustomModelCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2600
2654
|
creationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "creationTime"),
|
|
2601
2655
|
customizationConfig: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)((0, import_core2.awsExpectUnion)(_)), "customizationConfig"),
|
|
2602
2656
|
customizationType: import_smithy_client.expectString,
|
|
2657
|
+
failureMessage: import_smithy_client.expectString,
|
|
2603
2658
|
hyperParameters: import_smithy_client._json,
|
|
2604
2659
|
jobArn: import_smithy_client.expectString,
|
|
2605
2660
|
jobName: import_smithy_client.expectString,
|
|
2606
2661
|
modelArn: import_smithy_client.expectString,
|
|
2607
2662
|
modelKmsKeyArn: import_smithy_client.expectString,
|
|
2608
2663
|
modelName: import_smithy_client.expectString,
|
|
2664
|
+
modelStatus: import_smithy_client.expectString,
|
|
2609
2665
|
outputDataConfig: import_smithy_client._json,
|
|
2610
2666
|
trainingDataConfig: import_smithy_client._json,
|
|
2611
2667
|
trainingMetrics: /* @__PURE__ */ __name((_) => de_TrainingMetrics(_, context), "trainingMetrics"),
|
|
@@ -3710,6 +3766,7 @@ var de_CustomModelSummary = /* @__PURE__ */ __name((output, context) => {
|
|
|
3710
3766
|
customizationType: import_smithy_client.expectString,
|
|
3711
3767
|
modelArn: import_smithy_client.expectString,
|
|
3712
3768
|
modelName: import_smithy_client.expectString,
|
|
3769
|
+
modelStatus: import_smithy_client.expectString,
|
|
3713
3770
|
ownerAccountId: import_smithy_client.expectString
|
|
3714
3771
|
});
|
|
3715
3772
|
}, "de_CustomModelSummary");
|
|
@@ -4283,6 +4340,7 @@ var _gV = "guardrailVersion";
|
|
|
4283
4340
|
var _iO = "isOwned";
|
|
4284
4341
|
var _mAE = "modelArnEquals";
|
|
4285
4342
|
var _mR = "maxResults";
|
|
4343
|
+
var _mS = "modelStatus";
|
|
4286
4344
|
var _mSE = "modelSourceEquals";
|
|
4287
4345
|
var _mSI = "modelSourceIdentifier";
|
|
4288
4346
|
var _nC = "nameContains";
|
|
@@ -4311,6 +4369,21 @@ var BatchDeleteEvaluationJobCommand = class extends import_smithy_client.Command
|
|
|
4311
4369
|
}
|
|
4312
4370
|
};
|
|
4313
4371
|
|
|
4372
|
+
// src/commands/CreateCustomModelCommand.ts
|
|
4373
|
+
|
|
4374
|
+
|
|
4375
|
+
|
|
4376
|
+
var CreateCustomModelCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
4377
|
+
return [
|
|
4378
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
4379
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
4380
|
+
];
|
|
4381
|
+
}).s("AmazonBedrockControlPlaneService", "CreateCustomModel", {}).n("BedrockClient", "CreateCustomModelCommand").f(void 0, void 0).ser(se_CreateCustomModelCommand).de(de_CreateCustomModelCommand).build() {
|
|
4382
|
+
static {
|
|
4383
|
+
__name(this, "CreateCustomModelCommand");
|
|
4384
|
+
}
|
|
4385
|
+
};
|
|
4386
|
+
|
|
4314
4387
|
// src/commands/CreateEvaluationJobCommand.ts
|
|
4315
4388
|
|
|
4316
4389
|
|
|
@@ -4630,17 +4703,6 @@ var GetCustomModelCommand = class extends import_smithy_client.Command.classBuil
|
|
|
4630
4703
|
|
|
4631
4704
|
|
|
4632
4705
|
|
|
4633
|
-
|
|
4634
|
-
// src/models/models_1.ts
|
|
4635
|
-
|
|
4636
|
-
var GetEvaluationJobResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
4637
|
-
...obj,
|
|
4638
|
-
...obj.jobDescription && { jobDescription: import_smithy_client.SENSITIVE_STRING },
|
|
4639
|
-
...obj.evaluationConfig && { evaluationConfig: EvaluationConfigFilterSensitiveLog(obj.evaluationConfig) },
|
|
4640
|
-
...obj.inferenceConfig && { inferenceConfig: EvaluationInferenceConfigFilterSensitiveLog(obj.inferenceConfig) }
|
|
4641
|
-
}), "GetEvaluationJobResponseFilterSensitiveLog");
|
|
4642
|
-
|
|
4643
|
-
// src/commands/GetEvaluationJobCommand.ts
|
|
4644
4706
|
var GetEvaluationJobCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
4645
4707
|
return [
|
|
4646
4708
|
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
@@ -5195,6 +5257,7 @@ var UpdateProvisionedModelThroughputCommand = class extends import_smithy_client
|
|
|
5195
5257
|
// src/Bedrock.ts
|
|
5196
5258
|
var commands = {
|
|
5197
5259
|
BatchDeleteEvaluationJobCommand,
|
|
5260
|
+
CreateCustomModelCommand,
|
|
5198
5261
|
CreateEvaluationJobCommand,
|
|
5199
5262
|
CreateGuardrailCommand,
|
|
5200
5263
|
CreateGuardrailVersionCommand,
|
|
@@ -5317,6 +5380,7 @@ var paginateListProvisionedModelThroughputs = (0, import_core.createPaginator)(B
|
|
|
5317
5380
|
Bedrock,
|
|
5318
5381
|
$Command,
|
|
5319
5382
|
BatchDeleteEvaluationJobCommand,
|
|
5383
|
+
CreateCustomModelCommand,
|
|
5320
5384
|
CreateEvaluationJobCommand,
|
|
5321
5385
|
CreateGuardrailCommand,
|
|
5322
5386
|
CreateGuardrailVersionCommand,
|
|
@@ -5397,6 +5461,15 @@ var paginateListProvisionedModelThroughputs = (0, import_core.createPaginator)(B
|
|
|
5397
5461
|
ThrottlingException,
|
|
5398
5462
|
ValidationException,
|
|
5399
5463
|
ServiceUnavailableException,
|
|
5464
|
+
ModelDataSource,
|
|
5465
|
+
TooManyTagsException,
|
|
5466
|
+
CustomizationConfig,
|
|
5467
|
+
CustomizationType,
|
|
5468
|
+
ModelStatus,
|
|
5469
|
+
InvocationLogSource,
|
|
5470
|
+
RequestMetadataFilters,
|
|
5471
|
+
SortModelsBy,
|
|
5472
|
+
SortOrder,
|
|
5400
5473
|
EvaluationJobStatus,
|
|
5401
5474
|
ApplicationType,
|
|
5402
5475
|
RatingScaleItemValue,
|
|
@@ -5414,7 +5487,6 @@ var paginateListProvisionedModelThroughputs = (0, import_core.createPaginator)(B
|
|
|
5414
5487
|
EvaluationPrecomputedRagSourceConfig,
|
|
5415
5488
|
EvaluationJobType,
|
|
5416
5489
|
SortJobsBy,
|
|
5417
|
-
SortOrder,
|
|
5418
5490
|
GuardrailContentFilterAction,
|
|
5419
5491
|
GuardrailModality,
|
|
5420
5492
|
GuardrailFilterStrength,
|
|
@@ -5427,23 +5499,16 @@ var paginateListProvisionedModelThroughputs = (0, import_core.createPaginator)(B
|
|
|
5427
5499
|
GuardrailTopicType,
|
|
5428
5500
|
GuardrailWordAction,
|
|
5429
5501
|
GuardrailManagedWordsType,
|
|
5430
|
-
TooManyTagsException,
|
|
5431
5502
|
GuardrailStatus,
|
|
5432
5503
|
InferenceProfileModelSource,
|
|
5433
5504
|
InferenceProfileStatus,
|
|
5434
5505
|
InferenceProfileType,
|
|
5435
5506
|
ModelCopyJobStatus,
|
|
5436
|
-
ModelDataSource,
|
|
5437
5507
|
ModelImportJobStatus,
|
|
5438
|
-
SortModelsBy,
|
|
5439
5508
|
S3InputFormat,
|
|
5440
5509
|
ModelInvocationJobInputDataConfig,
|
|
5441
5510
|
ModelInvocationJobOutputDataConfig,
|
|
5442
5511
|
ModelInvocationJobStatus,
|
|
5443
|
-
CustomizationConfig,
|
|
5444
|
-
CustomizationType,
|
|
5445
|
-
InvocationLogSource,
|
|
5446
|
-
RequestMetadataFilters,
|
|
5447
5512
|
ModelCustomization,
|
|
5448
5513
|
InferenceType,
|
|
5449
5514
|
ModelModality,
|
|
@@ -5458,8 +5523,11 @@ var paginateListProvisionedModelThroughputs = (0, import_core.createPaginator)(B
|
|
|
5458
5523
|
FineTuningJobStatus,
|
|
5459
5524
|
RetrievalFilter,
|
|
5460
5525
|
KnowledgeBaseConfig,
|
|
5461
|
-
|
|
5462
|
-
|
|
5526
|
+
RequestMetadataBaseFiltersFilterSensitiveLog,
|
|
5527
|
+
RequestMetadataFiltersFilterSensitiveLog,
|
|
5528
|
+
InvocationLogsConfigFilterSensitiveLog,
|
|
5529
|
+
TrainingDataConfigFilterSensitiveLog,
|
|
5530
|
+
GetCustomModelResponseFilterSensitiveLog,
|
|
5463
5531
|
BatchDeleteEvaluationJobRequestFilterSensitiveLog,
|
|
5464
5532
|
BatchDeleteEvaluationJobErrorFilterSensitiveLog,
|
|
5465
5533
|
BatchDeleteEvaluationJobItemFilterSensitiveLog,
|
|
@@ -5515,11 +5583,6 @@ var paginateListProvisionedModelThroughputs = (0, import_core.createPaginator)(B
|
|
|
5515
5583
|
GetModelInvocationJobResponseFilterSensitiveLog,
|
|
5516
5584
|
ModelInvocationJobSummaryFilterSensitiveLog,
|
|
5517
5585
|
ListModelInvocationJobsResponseFilterSensitiveLog,
|
|
5518
|
-
RequestMetadataBaseFiltersFilterSensitiveLog,
|
|
5519
|
-
RequestMetadataFiltersFilterSensitiveLog,
|
|
5520
|
-
InvocationLogsConfigFilterSensitiveLog,
|
|
5521
|
-
TrainingDataConfigFilterSensitiveLog,
|
|
5522
|
-
GetCustomModelResponseFilterSensitiveLog,
|
|
5523
5586
|
CreatePromptRouterRequestFilterSensitiveLog,
|
|
5524
5587
|
GetPromptRouterResponseFilterSensitiveLog,
|
|
5525
5588
|
PromptRouterSummaryFilterSensitiveLog,
|
|
@@ -5533,6 +5596,8 @@ var paginateListProvisionedModelThroughputs = (0, import_core.createPaginator)(B
|
|
|
5533
5596
|
RetrieveConfigFilterSensitiveLog,
|
|
5534
5597
|
RetrieveAndGenerateConfigurationFilterSensitiveLog,
|
|
5535
5598
|
KnowledgeBaseConfigFilterSensitiveLog,
|
|
5599
|
+
RAGConfig,
|
|
5600
|
+
EvaluationInferenceConfig,
|
|
5536
5601
|
RAGConfigFilterSensitiveLog,
|
|
5537
5602
|
EvaluationInferenceConfigFilterSensitiveLog,
|
|
5538
5603
|
CreateEvaluationJobRequestFilterSensitiveLog,
|
package/dist-es/Bedrock.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { createAggregatedClient } from "@smithy/smithy-client";
|
|
2
2
|
import { BedrockClient } from "./BedrockClient";
|
|
3
3
|
import { BatchDeleteEvaluationJobCommand, } from "./commands/BatchDeleteEvaluationJobCommand";
|
|
4
|
+
import { CreateCustomModelCommand, } from "./commands/CreateCustomModelCommand";
|
|
4
5
|
import { CreateEvaluationJobCommand, } from "./commands/CreateEvaluationJobCommand";
|
|
5
6
|
import { CreateGuardrailCommand, } from "./commands/CreateGuardrailCommand";
|
|
6
7
|
import { CreateGuardrailVersionCommand, } from "./commands/CreateGuardrailVersionCommand";
|
|
@@ -61,6 +62,7 @@ import { UpdateMarketplaceModelEndpointCommand, } from "./commands/UpdateMarketp
|
|
|
61
62
|
import { UpdateProvisionedModelThroughputCommand, } from "./commands/UpdateProvisionedModelThroughputCommand";
|
|
62
63
|
const commands = {
|
|
63
64
|
BatchDeleteEvaluationJobCommand,
|
|
65
|
+
CreateCustomModelCommand,
|
|
64
66
|
CreateEvaluationJobCommand,
|
|
65
67
|
CreateGuardrailCommand,
|
|
66
68
|
CreateGuardrailVersionCommand,
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_CreateCustomModelCommand, se_CreateCustomModelCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class CreateCustomModelCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("AmazonBedrockControlPlaneService", "CreateCustomModel", {})
|
|
17
|
+
.n("BedrockClient", "CreateCustomModelCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_CreateCustomModelCommand)
|
|
20
|
+
.de(de_CreateCustomModelCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -2,7 +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 { CreateEvaluationJobRequestFilterSensitiveLog
|
|
5
|
+
import { CreateEvaluationJobRequestFilterSensitiveLog } from "../models/models_1";
|
|
6
6
|
import { de_CreateEvaluationJobCommand, se_CreateEvaluationJobCommand } from "../protocols/Aws_restJson1";
|
|
7
7
|
export { $Command };
|
|
8
8
|
export class CreateEvaluationJobCommand extends $Command
|