@aws-sdk/client-bedrock 3.859.0 → 3.862.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 +192 -0
- package/dist-cjs/index.js +2684 -369
- package/dist-es/Bedrock.js +48 -0
- package/dist-es/commands/CancelAutomatedReasoningPolicyBuildWorkflowCommand.js +22 -0
- package/dist-es/commands/CreateAutomatedReasoningPolicyCommand.js +23 -0
- package/dist-es/commands/CreateAutomatedReasoningPolicyTestCaseCommand.js +23 -0
- package/dist-es/commands/CreateAutomatedReasoningPolicyVersionCommand.js +23 -0
- package/dist-es/commands/CreateGuardrailCommand.js +1 -1
- package/dist-es/commands/CreateGuardrailVersionCommand.js +1 -1
- package/dist-es/commands/CreateInferenceProfileCommand.js +1 -1
- package/dist-es/commands/CreatePromptRouterCommand.js +1 -1
- package/dist-es/commands/DeleteAutomatedReasoningPolicyBuildWorkflowCommand.js +22 -0
- package/dist-es/commands/DeleteAutomatedReasoningPolicyCommand.js +22 -0
- package/dist-es/commands/DeleteAutomatedReasoningPolicyTestCaseCommand.js +22 -0
- package/dist-es/commands/ExportAutomatedReasoningPolicyVersionCommand.js +23 -0
- package/dist-es/commands/GetAutomatedReasoningPolicyAnnotationsCommand.js +23 -0
- package/dist-es/commands/GetAutomatedReasoningPolicyBuildWorkflowCommand.js +23 -0
- package/dist-es/commands/GetAutomatedReasoningPolicyBuildWorkflowResultAssetsCommand.js +23 -0
- package/dist-es/commands/GetAutomatedReasoningPolicyCommand.js +23 -0
- package/dist-es/commands/GetAutomatedReasoningPolicyNextScenarioCommand.js +23 -0
- package/dist-es/commands/GetAutomatedReasoningPolicyTestCaseCommand.js +23 -0
- package/dist-es/commands/GetAutomatedReasoningPolicyTestResultCommand.js +23 -0
- package/dist-es/commands/GetGuardrailCommand.js +1 -1
- package/dist-es/commands/GetInferenceProfileCommand.js +1 -1
- package/dist-es/commands/GetModelInvocationJobCommand.js +1 -1
- package/dist-es/commands/GetPromptRouterCommand.js +1 -1
- package/dist-es/commands/ListAutomatedReasoningPoliciesCommand.js +23 -0
- package/dist-es/commands/ListAutomatedReasoningPolicyBuildWorkflowsCommand.js +22 -0
- package/dist-es/commands/ListAutomatedReasoningPolicyTestCasesCommand.js +23 -0
- package/dist-es/commands/ListAutomatedReasoningPolicyTestResultsCommand.js +23 -0
- package/dist-es/commands/ListGuardrailsCommand.js +1 -1
- package/dist-es/commands/ListInferenceProfilesCommand.js +1 -1
- package/dist-es/commands/ListModelInvocationJobsCommand.js +1 -1
- package/dist-es/commands/ListPromptRoutersCommand.js +1 -1
- package/dist-es/commands/StartAutomatedReasoningPolicyBuildWorkflowCommand.js +23 -0
- package/dist-es/commands/StartAutomatedReasoningPolicyTestWorkflowCommand.js +22 -0
- package/dist-es/commands/UpdateAutomatedReasoningPolicyAnnotationsCommand.js +23 -0
- package/dist-es/commands/UpdateAutomatedReasoningPolicyCommand.js +23 -0
- package/dist-es/commands/UpdateAutomatedReasoningPolicyTestCaseCommand.js +23 -0
- package/dist-es/commands/UpdateGuardrailCommand.js +1 -1
- package/dist-es/commands/index.js +24 -0
- package/dist-es/models/models_0.js +742 -315
- package/dist-es/models/models_1.js +300 -1
- package/dist-es/pagination/ListAutomatedReasoningPoliciesPaginator.js +4 -0
- package/dist-es/pagination/ListAutomatedReasoningPolicyBuildWorkflowsPaginator.js +4 -0
- package/dist-es/pagination/ListAutomatedReasoningPolicyTestCasesPaginator.js +4 -0
- package/dist-es/pagination/ListAutomatedReasoningPolicyTestResultsPaginator.js +4 -0
- package/dist-es/pagination/index.js +4 -0
- package/dist-es/protocols/Aws_restJson1.js +997 -31
- package/dist-types/Bedrock.d.ts +169 -0
- package/dist-types/BedrockClient.d.ts +26 -2
- package/dist-types/commands/CancelAutomatedReasoningPolicyBuildWorkflowCommand.d.ts +86 -0
- package/dist-types/commands/CreateAutomatedReasoningPolicyCommand.d.ts +139 -0
- package/dist-types/commands/CreateAutomatedReasoningPolicyTestCaseCommand.d.ts +99 -0
- package/dist-types/commands/CreateAutomatedReasoningPolicyVersionCommand.d.ts +106 -0
- package/dist-types/commands/CreateGuardrailCommand.d.ts +7 -1
- package/dist-types/commands/CreateGuardrailVersionCommand.d.ts +1 -1
- package/dist-types/commands/CreateInferenceProfileCommand.d.ts +1 -1
- package/dist-types/commands/CreateModelCopyJobCommand.d.ts +1 -1
- package/dist-types/commands/CreateModelImportJobCommand.d.ts +1 -1
- package/dist-types/commands/CreateModelInvocationJobCommand.d.ts +1 -1
- package/dist-types/commands/CreatePromptRouterCommand.d.ts +1 -1
- package/dist-types/commands/CreateProvisionedModelThroughputCommand.d.ts +1 -1
- package/dist-types/commands/DeleteAutomatedReasoningPolicyBuildWorkflowCommand.d.ts +90 -0
- package/dist-types/commands/DeleteAutomatedReasoningPolicyCommand.d.ts +85 -0
- package/dist-types/commands/DeleteAutomatedReasoningPolicyTestCaseCommand.d.ts +93 -0
- package/dist-types/commands/DeleteGuardrailCommand.d.ts +1 -1
- package/dist-types/commands/DeleteImportedModelCommand.d.ts +1 -1
- package/dist-types/commands/DeleteInferenceProfileCommand.d.ts +1 -1
- package/dist-types/commands/DeleteModelInvocationLoggingConfigurationCommand.d.ts +1 -1
- package/dist-types/commands/DeletePromptRouterCommand.d.ts +1 -1
- package/dist-types/commands/DeleteProvisionedModelThroughputCommand.d.ts +1 -1
- package/dist-types/commands/ExportAutomatedReasoningPolicyVersionCommand.d.ts +115 -0
- package/dist-types/commands/GetAutomatedReasoningPolicyAnnotationsCommand.d.ts +172 -0
- package/dist-types/commands/GetAutomatedReasoningPolicyBuildWorkflowCommand.d.ts +96 -0
- package/dist-types/commands/GetAutomatedReasoningPolicyBuildWorkflowResultAssetsCommand.d.ts +307 -0
- package/dist-types/commands/GetAutomatedReasoningPolicyCommand.d.ts +94 -0
- package/dist-types/commands/GetAutomatedReasoningPolicyNextScenarioCommand.d.ts +96 -0
- package/dist-types/commands/GetAutomatedReasoningPolicyTestCaseCommand.d.ts +97 -0
- package/dist-types/commands/GetAutomatedReasoningPolicyTestResultCommand.d.ts +258 -0
- package/dist-types/commands/GetFoundationModelCommand.d.ts +1 -1
- package/dist-types/commands/GetGuardrailCommand.d.ts +7 -1
- package/dist-types/commands/GetImportedModelCommand.d.ts +1 -1
- package/dist-types/commands/GetInferenceProfileCommand.d.ts +1 -1
- package/dist-types/commands/GetModelCopyJobCommand.d.ts +1 -1
- package/dist-types/commands/GetModelImportJobCommand.d.ts +1 -1
- package/dist-types/commands/GetModelInvocationJobCommand.d.ts +1 -1
- package/dist-types/commands/GetModelInvocationLoggingConfigurationCommand.d.ts +1 -1
- package/dist-types/commands/GetPromptRouterCommand.d.ts +1 -1
- package/dist-types/commands/GetProvisionedModelThroughputCommand.d.ts +1 -1
- package/dist-types/commands/ListAutomatedReasoningPoliciesCommand.d.ts +100 -0
- package/dist-types/commands/ListAutomatedReasoningPolicyBuildWorkflowsCommand.d.ts +99 -0
- package/dist-types/commands/ListAutomatedReasoningPolicyTestCasesCommand.d.ts +100 -0
- package/dist-types/commands/ListAutomatedReasoningPolicyTestResultsCommand.d.ts +265 -0
- package/dist-types/commands/ListFoundationModelsCommand.d.ts +1 -1
- package/dist-types/commands/ListGuardrailsCommand.d.ts +1 -1
- package/dist-types/commands/ListImportedModelsCommand.d.ts +1 -1
- package/dist-types/commands/ListInferenceProfilesCommand.d.ts +1 -1
- package/dist-types/commands/ListModelCopyJobsCommand.d.ts +1 -1
- package/dist-types/commands/ListModelImportJobsCommand.d.ts +1 -1
- package/dist-types/commands/ListModelInvocationJobsCommand.d.ts +1 -1
- package/dist-types/commands/ListPromptRoutersCommand.d.ts +1 -1
- package/dist-types/commands/ListProvisionedModelThroughputsCommand.d.ts +1 -2
- package/dist-types/commands/PutModelInvocationLoggingConfigurationCommand.d.ts +1 -1
- package/dist-types/commands/StartAutomatedReasoningPolicyBuildWorkflowCommand.d.ts +222 -0
- package/dist-types/commands/StartAutomatedReasoningPolicyTestWorkflowCommand.d.ts +95 -0
- package/dist-types/commands/StopModelInvocationJobCommand.d.ts +1 -1
- package/dist-types/commands/UpdateAutomatedReasoningPolicyAnnotationsCommand.d.ts +175 -0
- package/dist-types/commands/UpdateAutomatedReasoningPolicyCommand.d.ts +127 -0
- package/dist-types/commands/UpdateAutomatedReasoningPolicyTestCaseCommand.d.ts +102 -0
- package/dist-types/commands/UpdateGuardrailCommand.d.ts +7 -1
- package/dist-types/commands/index.d.ts +24 -0
- package/dist-types/models/models_0.d.ts +3899 -3774
- package/dist-types/models/models_1.d.ts +3320 -1
- package/dist-types/pagination/ListAutomatedReasoningPoliciesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListAutomatedReasoningPolicyBuildWorkflowsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListAutomatedReasoningPolicyTestCasesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListAutomatedReasoningPolicyTestResultsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +4 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +216 -0
- package/dist-types/ts3.4/Bedrock.d.ts +523 -0
- package/dist-types/ts3.4/BedrockClient.d.ts +144 -0
- package/dist-types/ts3.4/commands/CancelAutomatedReasoningPolicyBuildWorkflowCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateAutomatedReasoningPolicyCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateAutomatedReasoningPolicyTestCaseCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateAutomatedReasoningPolicyVersionCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateGuardrailCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/CreateGuardrailVersionCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/CreateInferenceProfileCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/CreateModelCopyJobCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/CreateModelImportJobCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/CreateModelInvocationJobCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/CreatePromptRouterCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/CreateProvisionedModelThroughputCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeleteAutomatedReasoningPolicyBuildWorkflowCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteAutomatedReasoningPolicyCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteAutomatedReasoningPolicyTestCaseCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteGuardrailCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeleteImportedModelCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeleteInferenceProfileCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeleteModelInvocationLoggingConfigurationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeletePromptRouterCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeleteProvisionedModelThroughputCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ExportAutomatedReasoningPolicyVersionCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetAutomatedReasoningPolicyAnnotationsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetAutomatedReasoningPolicyBuildWorkflowCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetAutomatedReasoningPolicyBuildWorkflowResultAssetsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetAutomatedReasoningPolicyCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetAutomatedReasoningPolicyNextScenarioCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetAutomatedReasoningPolicyTestCaseCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetAutomatedReasoningPolicyTestResultCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetFoundationModelCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetGuardrailCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetImportedModelCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetInferenceProfileCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetModelCopyJobCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetModelImportJobCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetModelInvocationJobCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetModelInvocationLoggingConfigurationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetPromptRouterCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetProvisionedModelThroughputCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListAutomatedReasoningPoliciesCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListAutomatedReasoningPolicyBuildWorkflowsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListAutomatedReasoningPolicyTestCasesCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListAutomatedReasoningPolicyTestResultsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListFoundationModelsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListGuardrailsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListImportedModelsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListInferenceProfilesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListModelCopyJobsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListModelImportJobsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListModelInvocationJobsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListPromptRoutersCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListProvisionedModelThroughputsCommand.d.ts +4 -2
- package/dist-types/ts3.4/commands/PutModelInvocationLoggingConfigurationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/StartAutomatedReasoningPolicyBuildWorkflowCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/StartAutomatedReasoningPolicyTestWorkflowCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/StopModelInvocationJobCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateAutomatedReasoningPolicyAnnotationsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdateAutomatedReasoningPolicyCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdateAutomatedReasoningPolicyTestCaseCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdateGuardrailCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/index.d.ts +24 -0
- package/dist-types/ts3.4/models/models_0.d.ts +2324 -1702
- package/dist-types/ts3.4/models/models_1.d.ts +970 -2
- package/dist-types/ts3.4/pagination/ListAutomatedReasoningPoliciesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListAutomatedReasoningPolicyBuildWorkflowsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListAutomatedReasoningPolicyTestCasesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListAutomatedReasoningPolicyTestResultsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +4 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +288 -0
- package/package.json +34 -34
|
@@ -1,5 +1,110 @@
|
|
|
1
1
|
import { SENSITIVE_STRING } from "@smithy/smithy-client";
|
|
2
|
-
import { EvaluationConfigFilterSensitiveLog, EvaluationModelConfigFilterSensitiveLog, ExternalSourcesRetrieveAndGenerateConfigurationFilterSensitiveLog, GenerationConfigurationFilterSensitiveLog, ImplicitFilterConfigurationFilterSensitiveLog, TrainingDataConfigFilterSensitiveLog, VectorSearchRerankingConfigurationFilterSensitiveLog, } from "./models_0";
|
|
2
|
+
import { EvaluationConfigFilterSensitiveLog, EvaluationModelConfigFilterSensitiveLog, ExternalSourcesRetrieveAndGenerateConfigurationFilterSensitiveLog, GenerationConfigurationFilterSensitiveLog, GuardrailContentPolicyConfigFilterSensitiveLog, GuardrailContextualGroundingPolicyConfigFilterSensitiveLog, GuardrailTopicPolicyConfigFilterSensitiveLog, ImplicitFilterConfigurationFilterSensitiveLog, TrainingDataConfigFilterSensitiveLog, VectorSearchRerankingConfigurationFilterSensitiveLog, } from "./models_0";
|
|
3
|
+
export const GuardrailManagedWordsType = {
|
|
4
|
+
PROFANITY: "PROFANITY",
|
|
5
|
+
};
|
|
6
|
+
export const GuardrailStatus = {
|
|
7
|
+
CREATING: "CREATING",
|
|
8
|
+
DELETING: "DELETING",
|
|
9
|
+
FAILED: "FAILED",
|
|
10
|
+
READY: "READY",
|
|
11
|
+
UPDATING: "UPDATING",
|
|
12
|
+
VERSIONING: "VERSIONING",
|
|
13
|
+
};
|
|
14
|
+
export var InferenceProfileModelSource;
|
|
15
|
+
(function (InferenceProfileModelSource) {
|
|
16
|
+
InferenceProfileModelSource.visit = (value, visitor) => {
|
|
17
|
+
if (value.copyFrom !== undefined)
|
|
18
|
+
return visitor.copyFrom(value.copyFrom);
|
|
19
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
20
|
+
};
|
|
21
|
+
})(InferenceProfileModelSource || (InferenceProfileModelSource = {}));
|
|
22
|
+
export const InferenceProfileStatus = {
|
|
23
|
+
ACTIVE: "ACTIVE",
|
|
24
|
+
};
|
|
25
|
+
export const InferenceProfileType = {
|
|
26
|
+
APPLICATION: "APPLICATION",
|
|
27
|
+
SYSTEM_DEFINED: "SYSTEM_DEFINED",
|
|
28
|
+
};
|
|
29
|
+
export const ModelCopyJobStatus = {
|
|
30
|
+
COMPLETED: "Completed",
|
|
31
|
+
FAILED: "Failed",
|
|
32
|
+
IN_PROGRESS: "InProgress",
|
|
33
|
+
};
|
|
34
|
+
export const ModelImportJobStatus = {
|
|
35
|
+
COMPLETED: "Completed",
|
|
36
|
+
FAILED: "Failed",
|
|
37
|
+
IN_PROGRESS: "InProgress",
|
|
38
|
+
};
|
|
39
|
+
export const S3InputFormat = {
|
|
40
|
+
JSONL: "JSONL",
|
|
41
|
+
};
|
|
42
|
+
export var ModelInvocationJobInputDataConfig;
|
|
43
|
+
(function (ModelInvocationJobInputDataConfig) {
|
|
44
|
+
ModelInvocationJobInputDataConfig.visit = (value, visitor) => {
|
|
45
|
+
if (value.s3InputDataConfig !== undefined)
|
|
46
|
+
return visitor.s3InputDataConfig(value.s3InputDataConfig);
|
|
47
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
48
|
+
};
|
|
49
|
+
})(ModelInvocationJobInputDataConfig || (ModelInvocationJobInputDataConfig = {}));
|
|
50
|
+
export var ModelInvocationJobOutputDataConfig;
|
|
51
|
+
(function (ModelInvocationJobOutputDataConfig) {
|
|
52
|
+
ModelInvocationJobOutputDataConfig.visit = (value, visitor) => {
|
|
53
|
+
if (value.s3OutputDataConfig !== undefined)
|
|
54
|
+
return visitor.s3OutputDataConfig(value.s3OutputDataConfig);
|
|
55
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
56
|
+
};
|
|
57
|
+
})(ModelInvocationJobOutputDataConfig || (ModelInvocationJobOutputDataConfig = {}));
|
|
58
|
+
export const ModelInvocationJobStatus = {
|
|
59
|
+
COMPLETED: "Completed",
|
|
60
|
+
EXPIRED: "Expired",
|
|
61
|
+
FAILED: "Failed",
|
|
62
|
+
IN_PROGRESS: "InProgress",
|
|
63
|
+
PARTIALLY_COMPLETED: "PartiallyCompleted",
|
|
64
|
+
SCHEDULED: "Scheduled",
|
|
65
|
+
STOPPED: "Stopped",
|
|
66
|
+
STOPPING: "Stopping",
|
|
67
|
+
SUBMITTED: "Submitted",
|
|
68
|
+
VALIDATING: "Validating",
|
|
69
|
+
};
|
|
70
|
+
export const ModelCustomization = {
|
|
71
|
+
CONTINUED_PRE_TRAINING: "CONTINUED_PRE_TRAINING",
|
|
72
|
+
DISTILLATION: "DISTILLATION",
|
|
73
|
+
FINE_TUNING: "FINE_TUNING",
|
|
74
|
+
};
|
|
75
|
+
export const InferenceType = {
|
|
76
|
+
ON_DEMAND: "ON_DEMAND",
|
|
77
|
+
PROVISIONED: "PROVISIONED",
|
|
78
|
+
};
|
|
79
|
+
export const ModelModality = {
|
|
80
|
+
EMBEDDING: "EMBEDDING",
|
|
81
|
+
IMAGE: "IMAGE",
|
|
82
|
+
TEXT: "TEXT",
|
|
83
|
+
};
|
|
84
|
+
export const FoundationModelLifecycleStatus = {
|
|
85
|
+
ACTIVE: "ACTIVE",
|
|
86
|
+
LEGACY: "LEGACY",
|
|
87
|
+
};
|
|
88
|
+
export const PromptRouterStatus = {
|
|
89
|
+
AVAILABLE: "AVAILABLE",
|
|
90
|
+
};
|
|
91
|
+
export const PromptRouterType = {
|
|
92
|
+
CUSTOM: "custom",
|
|
93
|
+
DEFAULT: "default",
|
|
94
|
+
};
|
|
95
|
+
export const CommitmentDuration = {
|
|
96
|
+
ONE_MONTH: "OneMonth",
|
|
97
|
+
SIX_MONTHS: "SixMonths",
|
|
98
|
+
};
|
|
99
|
+
export const ProvisionedModelStatus = {
|
|
100
|
+
CREATING: "Creating",
|
|
101
|
+
FAILED: "Failed",
|
|
102
|
+
IN_SERVICE: "InService",
|
|
103
|
+
UPDATING: "Updating",
|
|
104
|
+
};
|
|
105
|
+
export const SortByProvisionedModels = {
|
|
106
|
+
CREATION_TIME: "CreationTime",
|
|
107
|
+
};
|
|
3
108
|
export const AuthorizationStatus = {
|
|
4
109
|
AUTHORIZED: "AUTHORIZED",
|
|
5
110
|
NOT_AUTHORIZED: "NOT_AUTHORIZED",
|
|
@@ -100,6 +205,200 @@ export var EvaluationInferenceConfig;
|
|
|
100
205
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
101
206
|
};
|
|
102
207
|
})(EvaluationInferenceConfig || (EvaluationInferenceConfig = {}));
|
|
208
|
+
export const GuardrailManagedWordsConfigFilterSensitiveLog = (obj) => ({
|
|
209
|
+
...obj,
|
|
210
|
+
...(obj.inputAction && { inputAction: SENSITIVE_STRING }),
|
|
211
|
+
...(obj.outputAction && { outputAction: SENSITIVE_STRING }),
|
|
212
|
+
});
|
|
213
|
+
export const GuardrailWordConfigFilterSensitiveLog = (obj) => ({
|
|
214
|
+
...obj,
|
|
215
|
+
...(obj.inputAction && { inputAction: SENSITIVE_STRING }),
|
|
216
|
+
...(obj.outputAction && { outputAction: SENSITIVE_STRING }),
|
|
217
|
+
});
|
|
218
|
+
export const GuardrailWordPolicyConfigFilterSensitiveLog = (obj) => ({
|
|
219
|
+
...obj,
|
|
220
|
+
...(obj.wordsConfig && { wordsConfig: obj.wordsConfig.map((item) => GuardrailWordConfigFilterSensitiveLog(item)) }),
|
|
221
|
+
...(obj.managedWordListsConfig && {
|
|
222
|
+
managedWordListsConfig: obj.managedWordListsConfig.map((item) => GuardrailManagedWordsConfigFilterSensitiveLog(item)),
|
|
223
|
+
}),
|
|
224
|
+
});
|
|
225
|
+
export const CreateGuardrailRequestFilterSensitiveLog = (obj) => ({
|
|
226
|
+
...obj,
|
|
227
|
+
...(obj.name && { name: SENSITIVE_STRING }),
|
|
228
|
+
...(obj.description && { description: SENSITIVE_STRING }),
|
|
229
|
+
...(obj.topicPolicyConfig && {
|
|
230
|
+
topicPolicyConfig: GuardrailTopicPolicyConfigFilterSensitiveLog(obj.topicPolicyConfig),
|
|
231
|
+
}),
|
|
232
|
+
...(obj.contentPolicyConfig && {
|
|
233
|
+
contentPolicyConfig: GuardrailContentPolicyConfigFilterSensitiveLog(obj.contentPolicyConfig),
|
|
234
|
+
}),
|
|
235
|
+
...(obj.wordPolicyConfig && { wordPolicyConfig: GuardrailWordPolicyConfigFilterSensitiveLog(obj.wordPolicyConfig) }),
|
|
236
|
+
...(obj.contextualGroundingPolicyConfig && {
|
|
237
|
+
contextualGroundingPolicyConfig: GuardrailContextualGroundingPolicyConfigFilterSensitiveLog(obj.contextualGroundingPolicyConfig),
|
|
238
|
+
}),
|
|
239
|
+
...(obj.blockedInputMessaging && { blockedInputMessaging: SENSITIVE_STRING }),
|
|
240
|
+
...(obj.blockedOutputsMessaging && { blockedOutputsMessaging: SENSITIVE_STRING }),
|
|
241
|
+
});
|
|
242
|
+
export const CreateGuardrailVersionRequestFilterSensitiveLog = (obj) => ({
|
|
243
|
+
...obj,
|
|
244
|
+
...(obj.description && { description: SENSITIVE_STRING }),
|
|
245
|
+
});
|
|
246
|
+
export const GuardrailContentFilterFilterSensitiveLog = (obj) => ({
|
|
247
|
+
...obj,
|
|
248
|
+
...(obj.inputModalities && { inputModalities: SENSITIVE_STRING }),
|
|
249
|
+
...(obj.outputModalities && { outputModalities: SENSITIVE_STRING }),
|
|
250
|
+
...(obj.inputAction && { inputAction: SENSITIVE_STRING }),
|
|
251
|
+
...(obj.outputAction && { outputAction: SENSITIVE_STRING }),
|
|
252
|
+
});
|
|
253
|
+
export const GuardrailContentFiltersTierFilterSensitiveLog = (obj) => ({
|
|
254
|
+
...obj,
|
|
255
|
+
...(obj.tierName && { tierName: SENSITIVE_STRING }),
|
|
256
|
+
});
|
|
257
|
+
export const GuardrailContentPolicyFilterSensitiveLog = (obj) => ({
|
|
258
|
+
...obj,
|
|
259
|
+
...(obj.filters && { filters: obj.filters.map((item) => GuardrailContentFilterFilterSensitiveLog(item)) }),
|
|
260
|
+
...(obj.tier && { tier: GuardrailContentFiltersTierFilterSensitiveLog(obj.tier) }),
|
|
261
|
+
});
|
|
262
|
+
export const GuardrailContextualGroundingFilterFilterSensitiveLog = (obj) => ({
|
|
263
|
+
...obj,
|
|
264
|
+
...(obj.action && { action: SENSITIVE_STRING }),
|
|
265
|
+
});
|
|
266
|
+
export const GuardrailContextualGroundingPolicyFilterSensitiveLog = (obj) => ({
|
|
267
|
+
...obj,
|
|
268
|
+
...(obj.filters && {
|
|
269
|
+
filters: obj.filters.map((item) => GuardrailContextualGroundingFilterFilterSensitiveLog(item)),
|
|
270
|
+
}),
|
|
271
|
+
});
|
|
272
|
+
export const GuardrailTopicsTierFilterSensitiveLog = (obj) => ({
|
|
273
|
+
...obj,
|
|
274
|
+
...(obj.tierName && { tierName: SENSITIVE_STRING }),
|
|
275
|
+
});
|
|
276
|
+
export const GuardrailTopicFilterSensitiveLog = (obj) => ({
|
|
277
|
+
...obj,
|
|
278
|
+
...(obj.name && { name: SENSITIVE_STRING }),
|
|
279
|
+
...(obj.definition && { definition: SENSITIVE_STRING }),
|
|
280
|
+
...(obj.examples && { examples: SENSITIVE_STRING }),
|
|
281
|
+
...(obj.inputAction && { inputAction: SENSITIVE_STRING }),
|
|
282
|
+
...(obj.outputAction && { outputAction: SENSITIVE_STRING }),
|
|
283
|
+
});
|
|
284
|
+
export const GuardrailTopicPolicyFilterSensitiveLog = (obj) => ({
|
|
285
|
+
...obj,
|
|
286
|
+
...(obj.topics && { topics: obj.topics.map((item) => GuardrailTopicFilterSensitiveLog(item)) }),
|
|
287
|
+
...(obj.tier && { tier: GuardrailTopicsTierFilterSensitiveLog(obj.tier) }),
|
|
288
|
+
});
|
|
289
|
+
export const GuardrailManagedWordsFilterSensitiveLog = (obj) => ({
|
|
290
|
+
...obj,
|
|
291
|
+
...(obj.inputAction && { inputAction: SENSITIVE_STRING }),
|
|
292
|
+
...(obj.outputAction && { outputAction: SENSITIVE_STRING }),
|
|
293
|
+
});
|
|
294
|
+
export const GuardrailWordFilterSensitiveLog = (obj) => ({
|
|
295
|
+
...obj,
|
|
296
|
+
...(obj.inputAction && { inputAction: SENSITIVE_STRING }),
|
|
297
|
+
...(obj.outputAction && { outputAction: SENSITIVE_STRING }),
|
|
298
|
+
});
|
|
299
|
+
export const GuardrailWordPolicyFilterSensitiveLog = (obj) => ({
|
|
300
|
+
...obj,
|
|
301
|
+
...(obj.words && { words: obj.words.map((item) => GuardrailWordFilterSensitiveLog(item)) }),
|
|
302
|
+
...(obj.managedWordLists && {
|
|
303
|
+
managedWordLists: obj.managedWordLists.map((item) => GuardrailManagedWordsFilterSensitiveLog(item)),
|
|
304
|
+
}),
|
|
305
|
+
});
|
|
306
|
+
export const GetGuardrailResponseFilterSensitiveLog = (obj) => ({
|
|
307
|
+
...obj,
|
|
308
|
+
...(obj.name && { name: SENSITIVE_STRING }),
|
|
309
|
+
...(obj.description && { description: SENSITIVE_STRING }),
|
|
310
|
+
...(obj.topicPolicy && { topicPolicy: GuardrailTopicPolicyFilterSensitiveLog(obj.topicPolicy) }),
|
|
311
|
+
...(obj.contentPolicy && { contentPolicy: GuardrailContentPolicyFilterSensitiveLog(obj.contentPolicy) }),
|
|
312
|
+
...(obj.wordPolicy && { wordPolicy: GuardrailWordPolicyFilterSensitiveLog(obj.wordPolicy) }),
|
|
313
|
+
...(obj.contextualGroundingPolicy && {
|
|
314
|
+
contextualGroundingPolicy: GuardrailContextualGroundingPolicyFilterSensitiveLog(obj.contextualGroundingPolicy),
|
|
315
|
+
}),
|
|
316
|
+
...(obj.statusReasons && { statusReasons: SENSITIVE_STRING }),
|
|
317
|
+
...(obj.failureRecommendations && { failureRecommendations: SENSITIVE_STRING }),
|
|
318
|
+
...(obj.blockedInputMessaging && { blockedInputMessaging: SENSITIVE_STRING }),
|
|
319
|
+
...(obj.blockedOutputsMessaging && { blockedOutputsMessaging: SENSITIVE_STRING }),
|
|
320
|
+
});
|
|
321
|
+
export const GuardrailSummaryFilterSensitiveLog = (obj) => ({
|
|
322
|
+
...obj,
|
|
323
|
+
...(obj.name && { name: SENSITIVE_STRING }),
|
|
324
|
+
...(obj.description && { description: SENSITIVE_STRING }),
|
|
325
|
+
});
|
|
326
|
+
export const ListGuardrailsResponseFilterSensitiveLog = (obj) => ({
|
|
327
|
+
...obj,
|
|
328
|
+
...(obj.guardrails && { guardrails: obj.guardrails.map((item) => GuardrailSummaryFilterSensitiveLog(item)) }),
|
|
329
|
+
});
|
|
330
|
+
export const UpdateGuardrailRequestFilterSensitiveLog = (obj) => ({
|
|
331
|
+
...obj,
|
|
332
|
+
...(obj.name && { name: SENSITIVE_STRING }),
|
|
333
|
+
...(obj.description && { description: SENSITIVE_STRING }),
|
|
334
|
+
...(obj.topicPolicyConfig && {
|
|
335
|
+
topicPolicyConfig: GuardrailTopicPolicyConfigFilterSensitiveLog(obj.topicPolicyConfig),
|
|
336
|
+
}),
|
|
337
|
+
...(obj.contentPolicyConfig && {
|
|
338
|
+
contentPolicyConfig: GuardrailContentPolicyConfigFilterSensitiveLog(obj.contentPolicyConfig),
|
|
339
|
+
}),
|
|
340
|
+
...(obj.wordPolicyConfig && { wordPolicyConfig: GuardrailWordPolicyConfigFilterSensitiveLog(obj.wordPolicyConfig) }),
|
|
341
|
+
...(obj.contextualGroundingPolicyConfig && {
|
|
342
|
+
contextualGroundingPolicyConfig: GuardrailContextualGroundingPolicyConfigFilterSensitiveLog(obj.contextualGroundingPolicyConfig),
|
|
343
|
+
}),
|
|
344
|
+
...(obj.blockedInputMessaging && { blockedInputMessaging: SENSITIVE_STRING }),
|
|
345
|
+
...(obj.blockedOutputsMessaging && { blockedOutputsMessaging: SENSITIVE_STRING }),
|
|
346
|
+
});
|
|
347
|
+
export const CreateInferenceProfileRequestFilterSensitiveLog = (obj) => ({
|
|
348
|
+
...obj,
|
|
349
|
+
...(obj.description && { description: SENSITIVE_STRING }),
|
|
350
|
+
...(obj.modelSource && { modelSource: obj.modelSource }),
|
|
351
|
+
});
|
|
352
|
+
export const GetInferenceProfileResponseFilterSensitiveLog = (obj) => ({
|
|
353
|
+
...obj,
|
|
354
|
+
...(obj.description && { description: SENSITIVE_STRING }),
|
|
355
|
+
});
|
|
356
|
+
export const InferenceProfileSummaryFilterSensitiveLog = (obj) => ({
|
|
357
|
+
...obj,
|
|
358
|
+
...(obj.description && { description: SENSITIVE_STRING }),
|
|
359
|
+
});
|
|
360
|
+
export const ListInferenceProfilesResponseFilterSensitiveLog = (obj) => ({
|
|
361
|
+
...obj,
|
|
362
|
+
...(obj.inferenceProfileSummaries && {
|
|
363
|
+
inferenceProfileSummaries: obj.inferenceProfileSummaries.map((item) => InferenceProfileSummaryFilterSensitiveLog(item)),
|
|
364
|
+
}),
|
|
365
|
+
});
|
|
366
|
+
export const GetModelInvocationJobResponseFilterSensitiveLog = (obj) => ({
|
|
367
|
+
...obj,
|
|
368
|
+
...(obj.message && { message: SENSITIVE_STRING }),
|
|
369
|
+
...(obj.inputDataConfig && { inputDataConfig: obj.inputDataConfig }),
|
|
370
|
+
...(obj.outputDataConfig && { outputDataConfig: obj.outputDataConfig }),
|
|
371
|
+
});
|
|
372
|
+
export const ModelInvocationJobSummaryFilterSensitiveLog = (obj) => ({
|
|
373
|
+
...obj,
|
|
374
|
+
...(obj.message && { message: SENSITIVE_STRING }),
|
|
375
|
+
...(obj.inputDataConfig && { inputDataConfig: obj.inputDataConfig }),
|
|
376
|
+
...(obj.outputDataConfig && { outputDataConfig: obj.outputDataConfig }),
|
|
377
|
+
});
|
|
378
|
+
export const ListModelInvocationJobsResponseFilterSensitiveLog = (obj) => ({
|
|
379
|
+
...obj,
|
|
380
|
+
...(obj.invocationJobSummaries && {
|
|
381
|
+
invocationJobSummaries: obj.invocationJobSummaries.map((item) => ModelInvocationJobSummaryFilterSensitiveLog(item)),
|
|
382
|
+
}),
|
|
383
|
+
});
|
|
384
|
+
export const CreatePromptRouterRequestFilterSensitiveLog = (obj) => ({
|
|
385
|
+
...obj,
|
|
386
|
+
...(obj.description && { description: SENSITIVE_STRING }),
|
|
387
|
+
});
|
|
388
|
+
export const GetPromptRouterResponseFilterSensitiveLog = (obj) => ({
|
|
389
|
+
...obj,
|
|
390
|
+
...(obj.description && { description: SENSITIVE_STRING }),
|
|
391
|
+
});
|
|
392
|
+
export const PromptRouterSummaryFilterSensitiveLog = (obj) => ({
|
|
393
|
+
...obj,
|
|
394
|
+
...(obj.description && { description: SENSITIVE_STRING }),
|
|
395
|
+
});
|
|
396
|
+
export const ListPromptRoutersResponseFilterSensitiveLog = (obj) => ({
|
|
397
|
+
...obj,
|
|
398
|
+
...(obj.promptRouterSummaries && {
|
|
399
|
+
promptRouterSummaries: obj.promptRouterSummaries.map((item) => PromptRouterSummaryFilterSensitiveLog(item)),
|
|
400
|
+
}),
|
|
401
|
+
});
|
|
103
402
|
export const CreateModelCustomizationJobRequestFilterSensitiveLog = (obj) => ({
|
|
104
403
|
...obj,
|
|
105
404
|
...(obj.trainingDataConfig && { trainingDataConfig: TrainingDataConfigFilterSensitiveLog(obj.trainingDataConfig) }),
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { BedrockClient } from "../BedrockClient";
|
|
3
|
+
import { ListAutomatedReasoningPoliciesCommand, } from "../commands/ListAutomatedReasoningPoliciesCommand";
|
|
4
|
+
export const paginateListAutomatedReasoningPolicies = createPaginator(BedrockClient, ListAutomatedReasoningPoliciesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { BedrockClient } from "../BedrockClient";
|
|
3
|
+
import { ListAutomatedReasoningPolicyBuildWorkflowsCommand, } from "../commands/ListAutomatedReasoningPolicyBuildWorkflowsCommand";
|
|
4
|
+
export const paginateListAutomatedReasoningPolicyBuildWorkflows = createPaginator(BedrockClient, ListAutomatedReasoningPolicyBuildWorkflowsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { BedrockClient } from "../BedrockClient";
|
|
3
|
+
import { ListAutomatedReasoningPolicyTestCasesCommand, } from "../commands/ListAutomatedReasoningPolicyTestCasesCommand";
|
|
4
|
+
export const paginateListAutomatedReasoningPolicyTestCases = createPaginator(BedrockClient, ListAutomatedReasoningPolicyTestCasesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { BedrockClient } from "../BedrockClient";
|
|
3
|
+
import { ListAutomatedReasoningPolicyTestResultsCommand, } from "../commands/ListAutomatedReasoningPolicyTestResultsCommand";
|
|
4
|
+
export const paginateListAutomatedReasoningPolicyTestResults = createPaginator(BedrockClient, ListAutomatedReasoningPolicyTestResultsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
export * from "./Interfaces";
|
|
2
|
+
export * from "./ListAutomatedReasoningPoliciesPaginator";
|
|
3
|
+
export * from "./ListAutomatedReasoningPolicyBuildWorkflowsPaginator";
|
|
4
|
+
export * from "./ListAutomatedReasoningPolicyTestCasesPaginator";
|
|
5
|
+
export * from "./ListAutomatedReasoningPolicyTestResultsPaginator";
|
|
2
6
|
export * from "./ListCustomModelDeploymentsPaginator";
|
|
3
7
|
export * from "./ListCustomModelsPaginator";
|
|
4
8
|
export * from "./ListEvaluationJobsPaginator";
|