@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
|
@@ -78,18 +78,6 @@ export class ConflictException extends __BaseException {
|
|
|
78
78
|
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
|
-
export var EndpointConfig;
|
|
82
|
-
(function (EndpointConfig) {
|
|
83
|
-
EndpointConfig.visit = (value, visitor) => {
|
|
84
|
-
if (value.sageMaker !== undefined)
|
|
85
|
-
return visitor.sageMaker(value.sageMaker);
|
|
86
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
87
|
-
};
|
|
88
|
-
})(EndpointConfig || (EndpointConfig = {}));
|
|
89
|
-
export const Status = {
|
|
90
|
-
INCOMPATIBLE_ENDPOINT: "INCOMPATIBLE_ENDPOINT",
|
|
91
|
-
REGISTERED: "REGISTERED",
|
|
92
|
-
};
|
|
93
81
|
export class ServiceQuotaExceededException extends __BaseException {
|
|
94
82
|
name = "ServiceQuotaExceededException";
|
|
95
83
|
$fault = "client";
|
|
@@ -102,18 +90,6 @@ export class ServiceQuotaExceededException extends __BaseException {
|
|
|
102
90
|
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
103
91
|
}
|
|
104
92
|
}
|
|
105
|
-
export class ServiceUnavailableException extends __BaseException {
|
|
106
|
-
name = "ServiceUnavailableException";
|
|
107
|
-
$fault = "server";
|
|
108
|
-
constructor(opts) {
|
|
109
|
-
super({
|
|
110
|
-
name: "ServiceUnavailableException",
|
|
111
|
-
$fault: "server",
|
|
112
|
-
...opts,
|
|
113
|
-
});
|
|
114
|
-
Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
93
|
export class TooManyTagsException extends __BaseException {
|
|
118
94
|
name = "TooManyTagsException";
|
|
119
95
|
$fault = "client";
|
|
@@ -128,6 +104,231 @@ export class TooManyTagsException extends __BaseException {
|
|
|
128
104
|
this.resourceName = opts.resourceName;
|
|
129
105
|
}
|
|
130
106
|
}
|
|
107
|
+
export const AutomatedReasoningCheckResult = {
|
|
108
|
+
IMPOSSIBLE: "IMPOSSIBLE",
|
|
109
|
+
INVALID: "INVALID",
|
|
110
|
+
NO_TRANSLATION: "NO_TRANSLATION",
|
|
111
|
+
SATISFIABLE: "SATISFIABLE",
|
|
112
|
+
TOO_COMPLEX: "TOO_COMPLEX",
|
|
113
|
+
TRANSLATION_AMBIGUOUS: "TRANSLATION_AMBIGUOUS",
|
|
114
|
+
VALID: "VALID",
|
|
115
|
+
};
|
|
116
|
+
export class ResourceInUseException extends __BaseException {
|
|
117
|
+
name = "ResourceInUseException";
|
|
118
|
+
$fault = "client";
|
|
119
|
+
constructor(opts) {
|
|
120
|
+
super({
|
|
121
|
+
name: "ResourceInUseException",
|
|
122
|
+
$fault: "client",
|
|
123
|
+
...opts,
|
|
124
|
+
});
|
|
125
|
+
Object.setPrototypeOf(this, ResourceInUseException.prototype);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
export var AutomatedReasoningPolicyTypeValueAnnotation;
|
|
129
|
+
(function (AutomatedReasoningPolicyTypeValueAnnotation) {
|
|
130
|
+
AutomatedReasoningPolicyTypeValueAnnotation.visit = (value, visitor) => {
|
|
131
|
+
if (value.addTypeValue !== undefined)
|
|
132
|
+
return visitor.addTypeValue(value.addTypeValue);
|
|
133
|
+
if (value.updateTypeValue !== undefined)
|
|
134
|
+
return visitor.updateTypeValue(value.updateTypeValue);
|
|
135
|
+
if (value.deleteTypeValue !== undefined)
|
|
136
|
+
return visitor.deleteTypeValue(value.deleteTypeValue);
|
|
137
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
138
|
+
};
|
|
139
|
+
})(AutomatedReasoningPolicyTypeValueAnnotation || (AutomatedReasoningPolicyTypeValueAnnotation = {}));
|
|
140
|
+
export var AutomatedReasoningPolicyAnnotation;
|
|
141
|
+
(function (AutomatedReasoningPolicyAnnotation) {
|
|
142
|
+
AutomatedReasoningPolicyAnnotation.visit = (value, visitor) => {
|
|
143
|
+
if (value.addType !== undefined)
|
|
144
|
+
return visitor.addType(value.addType);
|
|
145
|
+
if (value.updateType !== undefined)
|
|
146
|
+
return visitor.updateType(value.updateType);
|
|
147
|
+
if (value.deleteType !== undefined)
|
|
148
|
+
return visitor.deleteType(value.deleteType);
|
|
149
|
+
if (value.addVariable !== undefined)
|
|
150
|
+
return visitor.addVariable(value.addVariable);
|
|
151
|
+
if (value.updateVariable !== undefined)
|
|
152
|
+
return visitor.updateVariable(value.updateVariable);
|
|
153
|
+
if (value.deleteVariable !== undefined)
|
|
154
|
+
return visitor.deleteVariable(value.deleteVariable);
|
|
155
|
+
if (value.addRule !== undefined)
|
|
156
|
+
return visitor.addRule(value.addRule);
|
|
157
|
+
if (value.updateRule !== undefined)
|
|
158
|
+
return visitor.updateRule(value.updateRule);
|
|
159
|
+
if (value.deleteRule !== undefined)
|
|
160
|
+
return visitor.deleteRule(value.deleteRule);
|
|
161
|
+
if (value.addRuleFromNaturalLanguage !== undefined)
|
|
162
|
+
return visitor.addRuleFromNaturalLanguage(value.addRuleFromNaturalLanguage);
|
|
163
|
+
if (value.updateFromRulesFeedback !== undefined)
|
|
164
|
+
return visitor.updateFromRulesFeedback(value.updateFromRulesFeedback);
|
|
165
|
+
if (value.updateFromScenarioFeedback !== undefined)
|
|
166
|
+
return visitor.updateFromScenarioFeedback(value.updateFromScenarioFeedback);
|
|
167
|
+
if (value.ingestContent !== undefined)
|
|
168
|
+
return visitor.ingestContent(value.ingestContent);
|
|
169
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
170
|
+
};
|
|
171
|
+
})(AutomatedReasoningPolicyAnnotation || (AutomatedReasoningPolicyAnnotation = {}));
|
|
172
|
+
export const AutomatedReasoningPolicyBuildWorkflowType = {
|
|
173
|
+
IMPORT_POLICY: "IMPORT_POLICY",
|
|
174
|
+
INGEST_CONTENT: "INGEST_CONTENT",
|
|
175
|
+
REFINE_POLICY: "REFINE_POLICY",
|
|
176
|
+
};
|
|
177
|
+
export const AutomatedReasoningPolicyBuildDocumentContentType = {
|
|
178
|
+
PDF: "pdf",
|
|
179
|
+
TEXT: "txt",
|
|
180
|
+
};
|
|
181
|
+
export const AutomatedReasoningPolicyBuildWorkflowStatus = {
|
|
182
|
+
BUILDING: "BUILDING",
|
|
183
|
+
CANCELLED: "CANCELLED",
|
|
184
|
+
CANCEL_REQUESTED: "CANCEL_REQUESTED",
|
|
185
|
+
COMPLETED: "COMPLETED",
|
|
186
|
+
FAILED: "FAILED",
|
|
187
|
+
PREPROCESSING: "PREPROCESSING",
|
|
188
|
+
SCHEDULED: "SCHEDULED",
|
|
189
|
+
TESTING: "TESTING",
|
|
190
|
+
};
|
|
191
|
+
export const AutomatedReasoningPolicyBuildResultAssetType = {
|
|
192
|
+
BUILD_LOG: "BUILD_LOG",
|
|
193
|
+
POLICY_DEFINITION: "POLICY_DEFINITION",
|
|
194
|
+
QUALITY_REPORT: "QUALITY_REPORT",
|
|
195
|
+
};
|
|
196
|
+
export var AutomatedReasoningPolicyMutation;
|
|
197
|
+
(function (AutomatedReasoningPolicyMutation) {
|
|
198
|
+
AutomatedReasoningPolicyMutation.visit = (value, visitor) => {
|
|
199
|
+
if (value.addType !== undefined)
|
|
200
|
+
return visitor.addType(value.addType);
|
|
201
|
+
if (value.updateType !== undefined)
|
|
202
|
+
return visitor.updateType(value.updateType);
|
|
203
|
+
if (value.deleteType !== undefined)
|
|
204
|
+
return visitor.deleteType(value.deleteType);
|
|
205
|
+
if (value.addVariable !== undefined)
|
|
206
|
+
return visitor.addVariable(value.addVariable);
|
|
207
|
+
if (value.updateVariable !== undefined)
|
|
208
|
+
return visitor.updateVariable(value.updateVariable);
|
|
209
|
+
if (value.deleteVariable !== undefined)
|
|
210
|
+
return visitor.deleteVariable(value.deleteVariable);
|
|
211
|
+
if (value.addRule !== undefined)
|
|
212
|
+
return visitor.addRule(value.addRule);
|
|
213
|
+
if (value.updateRule !== undefined)
|
|
214
|
+
return visitor.updateRule(value.updateRule);
|
|
215
|
+
if (value.deleteRule !== undefined)
|
|
216
|
+
return visitor.deleteRule(value.deleteRule);
|
|
217
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
218
|
+
};
|
|
219
|
+
})(AutomatedReasoningPolicyMutation || (AutomatedReasoningPolicyMutation = {}));
|
|
220
|
+
export var AutomatedReasoningPolicyBuildStepContext;
|
|
221
|
+
(function (AutomatedReasoningPolicyBuildStepContext) {
|
|
222
|
+
AutomatedReasoningPolicyBuildStepContext.visit = (value, visitor) => {
|
|
223
|
+
if (value.planning !== undefined)
|
|
224
|
+
return visitor.planning(value.planning);
|
|
225
|
+
if (value.mutation !== undefined)
|
|
226
|
+
return visitor.mutation(value.mutation);
|
|
227
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
228
|
+
};
|
|
229
|
+
})(AutomatedReasoningPolicyBuildStepContext || (AutomatedReasoningPolicyBuildStepContext = {}));
|
|
230
|
+
export const AutomatedReasoningPolicyBuildMessageType = {
|
|
231
|
+
ERROR: "ERROR",
|
|
232
|
+
INFO: "INFO",
|
|
233
|
+
WARNING: "WARNING",
|
|
234
|
+
};
|
|
235
|
+
export var AutomatedReasoningPolicyDefinitionElement;
|
|
236
|
+
(function (AutomatedReasoningPolicyDefinitionElement) {
|
|
237
|
+
AutomatedReasoningPolicyDefinitionElement.visit = (value, visitor) => {
|
|
238
|
+
if (value.policyDefinitionVariable !== undefined)
|
|
239
|
+
return visitor.policyDefinitionVariable(value.policyDefinitionVariable);
|
|
240
|
+
if (value.policyDefinitionType !== undefined)
|
|
241
|
+
return visitor.policyDefinitionType(value.policyDefinitionType);
|
|
242
|
+
if (value.policyDefinitionRule !== undefined)
|
|
243
|
+
return visitor.policyDefinitionRule(value.policyDefinitionRule);
|
|
244
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
245
|
+
};
|
|
246
|
+
})(AutomatedReasoningPolicyDefinitionElement || (AutomatedReasoningPolicyDefinitionElement = {}));
|
|
247
|
+
export const AutomatedReasoningPolicyAnnotationStatus = {
|
|
248
|
+
APPLIED: "APPLIED",
|
|
249
|
+
FAILED: "FAILED",
|
|
250
|
+
};
|
|
251
|
+
export var AutomatedReasoningPolicyBuildResultAssets;
|
|
252
|
+
(function (AutomatedReasoningPolicyBuildResultAssets) {
|
|
253
|
+
AutomatedReasoningPolicyBuildResultAssets.visit = (value, visitor) => {
|
|
254
|
+
if (value.policyDefinition !== undefined)
|
|
255
|
+
return visitor.policyDefinition(value.policyDefinition);
|
|
256
|
+
if (value.qualityReport !== undefined)
|
|
257
|
+
return visitor.qualityReport(value.qualityReport);
|
|
258
|
+
if (value.buildLog !== undefined)
|
|
259
|
+
return visitor.buildLog(value.buildLog);
|
|
260
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
261
|
+
};
|
|
262
|
+
})(AutomatedReasoningPolicyBuildResultAssets || (AutomatedReasoningPolicyBuildResultAssets = {}));
|
|
263
|
+
export const AutomatedReasoningCheckLogicWarningType = {
|
|
264
|
+
ALWAYS_FALSE: "ALWAYS_FALSE",
|
|
265
|
+
ALWAYS_TRUE: "ALWAYS_TRUE",
|
|
266
|
+
};
|
|
267
|
+
export var AutomatedReasoningCheckFinding;
|
|
268
|
+
(function (AutomatedReasoningCheckFinding) {
|
|
269
|
+
AutomatedReasoningCheckFinding.visit = (value, visitor) => {
|
|
270
|
+
if (value.valid !== undefined)
|
|
271
|
+
return visitor.valid(value.valid);
|
|
272
|
+
if (value.invalid !== undefined)
|
|
273
|
+
return visitor.invalid(value.invalid);
|
|
274
|
+
if (value.satisfiable !== undefined)
|
|
275
|
+
return visitor.satisfiable(value.satisfiable);
|
|
276
|
+
if (value.impossible !== undefined)
|
|
277
|
+
return visitor.impossible(value.impossible);
|
|
278
|
+
if (value.translationAmbiguous !== undefined)
|
|
279
|
+
return visitor.translationAmbiguous(value.translationAmbiguous);
|
|
280
|
+
if (value.tooComplex !== undefined)
|
|
281
|
+
return visitor.tooComplex(value.tooComplex);
|
|
282
|
+
if (value.noTranslations !== undefined)
|
|
283
|
+
return visitor.noTranslations(value.noTranslations);
|
|
284
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
285
|
+
};
|
|
286
|
+
})(AutomatedReasoningCheckFinding || (AutomatedReasoningCheckFinding = {}));
|
|
287
|
+
export const AutomatedReasoningPolicyTestRunResult = {
|
|
288
|
+
FAILED: "FAILED",
|
|
289
|
+
PASSED: "PASSED",
|
|
290
|
+
};
|
|
291
|
+
export const AutomatedReasoningPolicyTestRunStatus = {
|
|
292
|
+
COMPLETED: "COMPLETED",
|
|
293
|
+
FAILED: "FAILED",
|
|
294
|
+
IN_PROGRESS: "IN_PROGRESS",
|
|
295
|
+
NOT_STARTED: "NOT_STARTED",
|
|
296
|
+
SCHEDULED: "SCHEDULED",
|
|
297
|
+
};
|
|
298
|
+
export var AutomatedReasoningPolicyWorkflowTypeContent;
|
|
299
|
+
(function (AutomatedReasoningPolicyWorkflowTypeContent) {
|
|
300
|
+
AutomatedReasoningPolicyWorkflowTypeContent.visit = (value, visitor) => {
|
|
301
|
+
if (value.documents !== undefined)
|
|
302
|
+
return visitor.documents(value.documents);
|
|
303
|
+
if (value.policyRepairAssets !== undefined)
|
|
304
|
+
return visitor.policyRepairAssets(value.policyRepairAssets);
|
|
305
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
306
|
+
};
|
|
307
|
+
})(AutomatedReasoningPolicyWorkflowTypeContent || (AutomatedReasoningPolicyWorkflowTypeContent = {}));
|
|
308
|
+
export var EndpointConfig;
|
|
309
|
+
(function (EndpointConfig) {
|
|
310
|
+
EndpointConfig.visit = (value, visitor) => {
|
|
311
|
+
if (value.sageMaker !== undefined)
|
|
312
|
+
return visitor.sageMaker(value.sageMaker);
|
|
313
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
314
|
+
};
|
|
315
|
+
})(EndpointConfig || (EndpointConfig = {}));
|
|
316
|
+
export const Status = {
|
|
317
|
+
INCOMPATIBLE_ENDPOINT: "INCOMPATIBLE_ENDPOINT",
|
|
318
|
+
REGISTERED: "REGISTERED",
|
|
319
|
+
};
|
|
320
|
+
export class ServiceUnavailableException extends __BaseException {
|
|
321
|
+
name = "ServiceUnavailableException";
|
|
322
|
+
$fault = "server";
|
|
323
|
+
constructor(opts) {
|
|
324
|
+
super({
|
|
325
|
+
name: "ServiceUnavailableException",
|
|
326
|
+
$fault: "server",
|
|
327
|
+
...opts,
|
|
328
|
+
});
|
|
329
|
+
Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
|
|
330
|
+
}
|
|
331
|
+
}
|
|
131
332
|
export const CustomModelDeploymentStatus = {
|
|
132
333
|
ACTIVE: "Active",
|
|
133
334
|
CREATING: "Creating",
|
|
@@ -408,111 +609,531 @@ export const GuardrailWordAction = {
|
|
|
408
609
|
BLOCK: "BLOCK",
|
|
409
610
|
NONE: "NONE",
|
|
410
611
|
};
|
|
411
|
-
export const
|
|
412
|
-
|
|
413
|
-
}
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
(
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
}
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
}
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
};
|
|
442
|
-
export const
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
};
|
|
450
|
-
export
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
}
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
612
|
+
export const AutomatedReasoningPolicyDefinitionRuleFilterSensitiveLog = (obj) => ({
|
|
613
|
+
...obj,
|
|
614
|
+
...(obj.expression && { expression: SENSITIVE_STRING }),
|
|
615
|
+
...(obj.alternateExpression && { alternateExpression: SENSITIVE_STRING }),
|
|
616
|
+
});
|
|
617
|
+
export const AutomatedReasoningPolicyDefinitionTypeValueFilterSensitiveLog = (obj) => ({
|
|
618
|
+
...obj,
|
|
619
|
+
...(obj.description && { description: SENSITIVE_STRING }),
|
|
620
|
+
});
|
|
621
|
+
export const AutomatedReasoningPolicyDefinitionTypeFilterSensitiveLog = (obj) => ({
|
|
622
|
+
...obj,
|
|
623
|
+
...(obj.name && { name: SENSITIVE_STRING }),
|
|
624
|
+
...(obj.description && { description: SENSITIVE_STRING }),
|
|
625
|
+
...(obj.values && {
|
|
626
|
+
values: obj.values.map((item) => AutomatedReasoningPolicyDefinitionTypeValueFilterSensitiveLog(item)),
|
|
627
|
+
}),
|
|
628
|
+
});
|
|
629
|
+
export const AutomatedReasoningPolicyDefinitionVariableFilterSensitiveLog = (obj) => ({
|
|
630
|
+
...obj,
|
|
631
|
+
...(obj.name && { name: SENSITIVE_STRING }),
|
|
632
|
+
...(obj.type && { type: SENSITIVE_STRING }),
|
|
633
|
+
...(obj.description && { description: SENSITIVE_STRING }),
|
|
634
|
+
});
|
|
635
|
+
export const AutomatedReasoningPolicyDefinitionFilterSensitiveLog = (obj) => ({
|
|
636
|
+
...obj,
|
|
637
|
+
...(obj.types && { types: obj.types.map((item) => AutomatedReasoningPolicyDefinitionTypeFilterSensitiveLog(item)) }),
|
|
638
|
+
...(obj.rules && { rules: obj.rules.map((item) => AutomatedReasoningPolicyDefinitionRuleFilterSensitiveLog(item)) }),
|
|
639
|
+
...(obj.variables && {
|
|
640
|
+
variables: obj.variables.map((item) => AutomatedReasoningPolicyDefinitionVariableFilterSensitiveLog(item)),
|
|
641
|
+
}),
|
|
642
|
+
});
|
|
643
|
+
export const CreateAutomatedReasoningPolicyRequestFilterSensitiveLog = (obj) => ({
|
|
644
|
+
...obj,
|
|
645
|
+
...(obj.name && { name: SENSITIVE_STRING }),
|
|
646
|
+
...(obj.description && { description: SENSITIVE_STRING }),
|
|
647
|
+
...(obj.policyDefinition && {
|
|
648
|
+
policyDefinition: AutomatedReasoningPolicyDefinitionFilterSensitiveLog(obj.policyDefinition),
|
|
649
|
+
}),
|
|
650
|
+
});
|
|
651
|
+
export const CreateAutomatedReasoningPolicyResponseFilterSensitiveLog = (obj) => ({
|
|
652
|
+
...obj,
|
|
653
|
+
...(obj.name && { name: SENSITIVE_STRING }),
|
|
654
|
+
...(obj.description && { description: SENSITIVE_STRING }),
|
|
655
|
+
});
|
|
656
|
+
export const CreateAutomatedReasoningPolicyTestCaseRequestFilterSensitiveLog = (obj) => ({
|
|
657
|
+
...obj,
|
|
658
|
+
...(obj.guardContent && { guardContent: SENSITIVE_STRING }),
|
|
659
|
+
...(obj.queryContent && { queryContent: SENSITIVE_STRING }),
|
|
660
|
+
});
|
|
661
|
+
export const CreateAutomatedReasoningPolicyVersionResponseFilterSensitiveLog = (obj) => ({
|
|
662
|
+
...obj,
|
|
663
|
+
...(obj.name && { name: SENSITIVE_STRING }),
|
|
664
|
+
...(obj.description && { description: SENSITIVE_STRING }),
|
|
665
|
+
});
|
|
666
|
+
export const ExportAutomatedReasoningPolicyVersionResponseFilterSensitiveLog = (obj) => ({
|
|
667
|
+
...obj,
|
|
668
|
+
...(obj.policyDefinition && {
|
|
669
|
+
policyDefinition: AutomatedReasoningPolicyDefinitionFilterSensitiveLog(obj.policyDefinition),
|
|
670
|
+
}),
|
|
671
|
+
});
|
|
672
|
+
export const GetAutomatedReasoningPolicyResponseFilterSensitiveLog = (obj) => ({
|
|
673
|
+
...obj,
|
|
674
|
+
...(obj.name && { name: SENSITIVE_STRING }),
|
|
675
|
+
...(obj.description && { description: SENSITIVE_STRING }),
|
|
676
|
+
});
|
|
677
|
+
export const AutomatedReasoningPolicyAddRuleAnnotationFilterSensitiveLog = (obj) => ({
|
|
678
|
+
...obj,
|
|
679
|
+
...(obj.expression && { expression: SENSITIVE_STRING }),
|
|
680
|
+
});
|
|
681
|
+
export const AutomatedReasoningPolicyAddRuleFromNaturalLanguageAnnotationFilterSensitiveLog = (obj) => ({
|
|
682
|
+
...obj,
|
|
683
|
+
...(obj.naturalLanguage && { naturalLanguage: SENSITIVE_STRING }),
|
|
684
|
+
});
|
|
685
|
+
export const AutomatedReasoningPolicyAddTypeAnnotationFilterSensitiveLog = (obj) => ({
|
|
686
|
+
...obj,
|
|
687
|
+
...(obj.name && { name: SENSITIVE_STRING }),
|
|
688
|
+
...(obj.description && { description: SENSITIVE_STRING }),
|
|
689
|
+
...(obj.values && {
|
|
690
|
+
values: obj.values.map((item) => AutomatedReasoningPolicyDefinitionTypeValueFilterSensitiveLog(item)),
|
|
691
|
+
}),
|
|
692
|
+
});
|
|
693
|
+
export const AutomatedReasoningPolicyAddVariableAnnotationFilterSensitiveLog = (obj) => ({
|
|
694
|
+
...obj,
|
|
695
|
+
...(obj.name && { name: SENSITIVE_STRING }),
|
|
696
|
+
...(obj.type && { type: SENSITIVE_STRING }),
|
|
697
|
+
...(obj.description && { description: SENSITIVE_STRING }),
|
|
698
|
+
});
|
|
699
|
+
export const AutomatedReasoningPolicyDeleteTypeAnnotationFilterSensitiveLog = (obj) => ({
|
|
700
|
+
...obj,
|
|
701
|
+
...(obj.name && { name: SENSITIVE_STRING }),
|
|
702
|
+
});
|
|
703
|
+
export const AutomatedReasoningPolicyDeleteVariableAnnotationFilterSensitiveLog = (obj) => ({
|
|
704
|
+
...obj,
|
|
705
|
+
...(obj.name && { name: SENSITIVE_STRING }),
|
|
706
|
+
});
|
|
707
|
+
export const AutomatedReasoningPolicyIngestContentAnnotationFilterSensitiveLog = (obj) => ({
|
|
708
|
+
...obj,
|
|
709
|
+
...(obj.content && { content: SENSITIVE_STRING }),
|
|
710
|
+
});
|
|
711
|
+
export const AutomatedReasoningPolicyUpdateFromRuleFeedbackAnnotationFilterSensitiveLog = (obj) => ({
|
|
712
|
+
...obj,
|
|
713
|
+
...(obj.feedback && { feedback: SENSITIVE_STRING }),
|
|
714
|
+
});
|
|
715
|
+
export const AutomatedReasoningPolicyUpdateFromScenarioFeedbackAnnotationFilterSensitiveLog = (obj) => ({
|
|
716
|
+
...obj,
|
|
717
|
+
...(obj.scenarioExpression && { scenarioExpression: SENSITIVE_STRING }),
|
|
718
|
+
...(obj.feedback && { feedback: SENSITIVE_STRING }),
|
|
719
|
+
});
|
|
720
|
+
export const AutomatedReasoningPolicyUpdateRuleAnnotationFilterSensitiveLog = (obj) => ({
|
|
721
|
+
...obj,
|
|
722
|
+
...(obj.expression && { expression: SENSITIVE_STRING }),
|
|
723
|
+
});
|
|
724
|
+
export const AutomatedReasoningPolicyAddTypeValueFilterSensitiveLog = (obj) => ({
|
|
725
|
+
...obj,
|
|
726
|
+
...(obj.description && { description: SENSITIVE_STRING }),
|
|
727
|
+
});
|
|
728
|
+
export const AutomatedReasoningPolicyUpdateTypeValueFilterSensitiveLog = (obj) => ({
|
|
729
|
+
...obj,
|
|
730
|
+
...(obj.description && { description: SENSITIVE_STRING }),
|
|
731
|
+
});
|
|
732
|
+
export const AutomatedReasoningPolicyTypeValueAnnotationFilterSensitiveLog = (obj) => {
|
|
733
|
+
if (obj.addTypeValue !== undefined)
|
|
734
|
+
return { addTypeValue: AutomatedReasoningPolicyAddTypeValueFilterSensitiveLog(obj.addTypeValue) };
|
|
735
|
+
if (obj.updateTypeValue !== undefined)
|
|
736
|
+
return { updateTypeValue: AutomatedReasoningPolicyUpdateTypeValueFilterSensitiveLog(obj.updateTypeValue) };
|
|
737
|
+
if (obj.deleteTypeValue !== undefined)
|
|
738
|
+
return { deleteTypeValue: obj.deleteTypeValue };
|
|
739
|
+
if (obj.$unknown !== undefined)
|
|
740
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
486
741
|
};
|
|
487
|
-
export const
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
742
|
+
export const AutomatedReasoningPolicyUpdateTypeAnnotationFilterSensitiveLog = (obj) => ({
|
|
743
|
+
...obj,
|
|
744
|
+
...(obj.name && { name: SENSITIVE_STRING }),
|
|
745
|
+
...(obj.newName && { newName: SENSITIVE_STRING }),
|
|
746
|
+
...(obj.description && { description: SENSITIVE_STRING }),
|
|
747
|
+
...(obj.values && {
|
|
748
|
+
values: obj.values.map((item) => AutomatedReasoningPolicyTypeValueAnnotationFilterSensitiveLog(item)),
|
|
749
|
+
}),
|
|
750
|
+
});
|
|
751
|
+
export const AutomatedReasoningPolicyUpdateVariableAnnotationFilterSensitiveLog = (obj) => ({
|
|
752
|
+
...obj,
|
|
753
|
+
...(obj.name && { name: SENSITIVE_STRING }),
|
|
754
|
+
...(obj.newName && { newName: SENSITIVE_STRING }),
|
|
755
|
+
...(obj.description && { description: SENSITIVE_STRING }),
|
|
756
|
+
});
|
|
757
|
+
export const AutomatedReasoningPolicyAnnotationFilterSensitiveLog = (obj) => {
|
|
758
|
+
if (obj.addType !== undefined)
|
|
759
|
+
return { addType: AutomatedReasoningPolicyAddTypeAnnotationFilterSensitiveLog(obj.addType) };
|
|
760
|
+
if (obj.updateType !== undefined)
|
|
761
|
+
return { updateType: AutomatedReasoningPolicyUpdateTypeAnnotationFilterSensitiveLog(obj.updateType) };
|
|
762
|
+
if (obj.deleteType !== undefined)
|
|
763
|
+
return { deleteType: AutomatedReasoningPolicyDeleteTypeAnnotationFilterSensitiveLog(obj.deleteType) };
|
|
764
|
+
if (obj.addVariable !== undefined)
|
|
765
|
+
return { addVariable: AutomatedReasoningPolicyAddVariableAnnotationFilterSensitiveLog(obj.addVariable) };
|
|
766
|
+
if (obj.updateVariable !== undefined)
|
|
767
|
+
return { updateVariable: AutomatedReasoningPolicyUpdateVariableAnnotationFilterSensitiveLog(obj.updateVariable) };
|
|
768
|
+
if (obj.deleteVariable !== undefined)
|
|
769
|
+
return { deleteVariable: AutomatedReasoningPolicyDeleteVariableAnnotationFilterSensitiveLog(obj.deleteVariable) };
|
|
770
|
+
if (obj.addRule !== undefined)
|
|
771
|
+
return { addRule: AutomatedReasoningPolicyAddRuleAnnotationFilterSensitiveLog(obj.addRule) };
|
|
772
|
+
if (obj.updateRule !== undefined)
|
|
773
|
+
return { updateRule: AutomatedReasoningPolicyUpdateRuleAnnotationFilterSensitiveLog(obj.updateRule) };
|
|
774
|
+
if (obj.deleteRule !== undefined)
|
|
775
|
+
return { deleteRule: obj.deleteRule };
|
|
776
|
+
if (obj.addRuleFromNaturalLanguage !== undefined)
|
|
777
|
+
return {
|
|
778
|
+
addRuleFromNaturalLanguage: AutomatedReasoningPolicyAddRuleFromNaturalLanguageAnnotationFilterSensitiveLog(obj.addRuleFromNaturalLanguage),
|
|
779
|
+
};
|
|
780
|
+
if (obj.updateFromRulesFeedback !== undefined)
|
|
781
|
+
return {
|
|
782
|
+
updateFromRulesFeedback: AutomatedReasoningPolicyUpdateFromRuleFeedbackAnnotationFilterSensitiveLog(obj.updateFromRulesFeedback),
|
|
783
|
+
};
|
|
784
|
+
if (obj.updateFromScenarioFeedback !== undefined)
|
|
785
|
+
return {
|
|
786
|
+
updateFromScenarioFeedback: AutomatedReasoningPolicyUpdateFromScenarioFeedbackAnnotationFilterSensitiveLog(obj.updateFromScenarioFeedback),
|
|
787
|
+
};
|
|
788
|
+
if (obj.ingestContent !== undefined)
|
|
789
|
+
return { ingestContent: AutomatedReasoningPolicyIngestContentAnnotationFilterSensitiveLog(obj.ingestContent) };
|
|
790
|
+
if (obj.$unknown !== undefined)
|
|
791
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
491
792
|
};
|
|
492
|
-
export const
|
|
493
|
-
|
|
494
|
-
|
|
793
|
+
export const GetAutomatedReasoningPolicyAnnotationsResponseFilterSensitiveLog = (obj) => ({
|
|
794
|
+
...obj,
|
|
795
|
+
...(obj.name && { name: SENSITIVE_STRING }),
|
|
796
|
+
...(obj.annotations && {
|
|
797
|
+
annotations: obj.annotations.map((item) => AutomatedReasoningPolicyAnnotationFilterSensitiveLog(item)),
|
|
798
|
+
}),
|
|
799
|
+
});
|
|
800
|
+
export const GetAutomatedReasoningPolicyBuildWorkflowResponseFilterSensitiveLog = (obj) => ({
|
|
801
|
+
...obj,
|
|
802
|
+
...(obj.documentName && { documentName: SENSITIVE_STRING }),
|
|
803
|
+
...(obj.documentDescription && { documentDescription: SENSITIVE_STRING }),
|
|
804
|
+
});
|
|
805
|
+
export const AutomatedReasoningPolicyAddRuleMutationFilterSensitiveLog = (obj) => ({
|
|
806
|
+
...obj,
|
|
807
|
+
...(obj.rule && { rule: AutomatedReasoningPolicyDefinitionRuleFilterSensitiveLog(obj.rule) }),
|
|
808
|
+
});
|
|
809
|
+
export const AutomatedReasoningPolicyAddTypeMutationFilterSensitiveLog = (obj) => ({
|
|
810
|
+
...obj,
|
|
811
|
+
...(obj.type && { type: AutomatedReasoningPolicyDefinitionTypeFilterSensitiveLog(obj.type) }),
|
|
812
|
+
});
|
|
813
|
+
export const AutomatedReasoningPolicyAddVariableMutationFilterSensitiveLog = (obj) => ({
|
|
814
|
+
...obj,
|
|
815
|
+
...(obj.variable && { variable: AutomatedReasoningPolicyDefinitionVariableFilterSensitiveLog(obj.variable) }),
|
|
816
|
+
});
|
|
817
|
+
export const AutomatedReasoningPolicyDeleteTypeMutationFilterSensitiveLog = (obj) => ({
|
|
818
|
+
...obj,
|
|
819
|
+
...(obj.name && { name: SENSITIVE_STRING }),
|
|
820
|
+
});
|
|
821
|
+
export const AutomatedReasoningPolicyDeleteVariableMutationFilterSensitiveLog = (obj) => ({
|
|
822
|
+
...obj,
|
|
823
|
+
...(obj.name && { name: SENSITIVE_STRING }),
|
|
824
|
+
});
|
|
825
|
+
export const AutomatedReasoningPolicyUpdateRuleMutationFilterSensitiveLog = (obj) => ({
|
|
826
|
+
...obj,
|
|
827
|
+
...(obj.rule && { rule: AutomatedReasoningPolicyDefinitionRuleFilterSensitiveLog(obj.rule) }),
|
|
828
|
+
});
|
|
829
|
+
export const AutomatedReasoningPolicyUpdateTypeMutationFilterSensitiveLog = (obj) => ({
|
|
830
|
+
...obj,
|
|
831
|
+
...(obj.type && { type: AutomatedReasoningPolicyDefinitionTypeFilterSensitiveLog(obj.type) }),
|
|
832
|
+
});
|
|
833
|
+
export const AutomatedReasoningPolicyUpdateVariableMutationFilterSensitiveLog = (obj) => ({
|
|
834
|
+
...obj,
|
|
835
|
+
...(obj.variable && { variable: AutomatedReasoningPolicyDefinitionVariableFilterSensitiveLog(obj.variable) }),
|
|
836
|
+
});
|
|
837
|
+
export const AutomatedReasoningPolicyMutationFilterSensitiveLog = (obj) => {
|
|
838
|
+
if (obj.addType !== undefined)
|
|
839
|
+
return { addType: AutomatedReasoningPolicyAddTypeMutationFilterSensitiveLog(obj.addType) };
|
|
840
|
+
if (obj.updateType !== undefined)
|
|
841
|
+
return { updateType: AutomatedReasoningPolicyUpdateTypeMutationFilterSensitiveLog(obj.updateType) };
|
|
842
|
+
if (obj.deleteType !== undefined)
|
|
843
|
+
return { deleteType: AutomatedReasoningPolicyDeleteTypeMutationFilterSensitiveLog(obj.deleteType) };
|
|
844
|
+
if (obj.addVariable !== undefined)
|
|
845
|
+
return { addVariable: AutomatedReasoningPolicyAddVariableMutationFilterSensitiveLog(obj.addVariable) };
|
|
846
|
+
if (obj.updateVariable !== undefined)
|
|
847
|
+
return { updateVariable: AutomatedReasoningPolicyUpdateVariableMutationFilterSensitiveLog(obj.updateVariable) };
|
|
848
|
+
if (obj.deleteVariable !== undefined)
|
|
849
|
+
return { deleteVariable: AutomatedReasoningPolicyDeleteVariableMutationFilterSensitiveLog(obj.deleteVariable) };
|
|
850
|
+
if (obj.addRule !== undefined)
|
|
851
|
+
return { addRule: AutomatedReasoningPolicyAddRuleMutationFilterSensitiveLog(obj.addRule) };
|
|
852
|
+
if (obj.updateRule !== undefined)
|
|
853
|
+
return { updateRule: AutomatedReasoningPolicyUpdateRuleMutationFilterSensitiveLog(obj.updateRule) };
|
|
854
|
+
if (obj.deleteRule !== undefined)
|
|
855
|
+
return { deleteRule: obj.deleteRule };
|
|
856
|
+
if (obj.$unknown !== undefined)
|
|
857
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
495
858
|
};
|
|
496
|
-
export const
|
|
497
|
-
|
|
859
|
+
export const AutomatedReasoningPolicyBuildStepContextFilterSensitiveLog = (obj) => {
|
|
860
|
+
if (obj.planning !== undefined)
|
|
861
|
+
return { planning: obj.planning };
|
|
862
|
+
if (obj.mutation !== undefined)
|
|
863
|
+
return { mutation: AutomatedReasoningPolicyMutationFilterSensitiveLog(obj.mutation) };
|
|
864
|
+
if (obj.$unknown !== undefined)
|
|
865
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
498
866
|
};
|
|
499
|
-
export const
|
|
500
|
-
|
|
501
|
-
|
|
867
|
+
export const AutomatedReasoningPolicyDefinitionElementFilterSensitiveLog = (obj) => {
|
|
868
|
+
if (obj.policyDefinitionVariable !== undefined)
|
|
869
|
+
return {
|
|
870
|
+
policyDefinitionVariable: AutomatedReasoningPolicyDefinitionVariableFilterSensitiveLog(obj.policyDefinitionVariable),
|
|
871
|
+
};
|
|
872
|
+
if (obj.policyDefinitionType !== undefined)
|
|
873
|
+
return { policyDefinitionType: AutomatedReasoningPolicyDefinitionTypeFilterSensitiveLog(obj.policyDefinitionType) };
|
|
874
|
+
if (obj.policyDefinitionRule !== undefined)
|
|
875
|
+
return { policyDefinitionRule: AutomatedReasoningPolicyDefinitionRuleFilterSensitiveLog(obj.policyDefinitionRule) };
|
|
876
|
+
if (obj.$unknown !== undefined)
|
|
877
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
502
878
|
};
|
|
503
|
-
export const
|
|
504
|
-
|
|
505
|
-
|
|
879
|
+
export const AutomatedReasoningPolicyBuildStepFilterSensitiveLog = (obj) => ({
|
|
880
|
+
...obj,
|
|
881
|
+
...(obj.context && { context: AutomatedReasoningPolicyBuildStepContextFilterSensitiveLog(obj.context) }),
|
|
882
|
+
...(obj.priorElement && {
|
|
883
|
+
priorElement: AutomatedReasoningPolicyDefinitionElementFilterSensitiveLog(obj.priorElement),
|
|
884
|
+
}),
|
|
885
|
+
});
|
|
886
|
+
export const AutomatedReasoningPolicyBuildLogEntryFilterSensitiveLog = (obj) => ({
|
|
887
|
+
...obj,
|
|
888
|
+
...(obj.annotation && { annotation: AutomatedReasoningPolicyAnnotationFilterSensitiveLog(obj.annotation) }),
|
|
889
|
+
...(obj.buildSteps && {
|
|
890
|
+
buildSteps: obj.buildSteps.map((item) => AutomatedReasoningPolicyBuildStepFilterSensitiveLog(item)),
|
|
891
|
+
}),
|
|
892
|
+
});
|
|
893
|
+
export const AutomatedReasoningPolicyBuildLogFilterSensitiveLog = (obj) => ({
|
|
894
|
+
...obj,
|
|
895
|
+
...(obj.entries && {
|
|
896
|
+
entries: obj.entries.map((item) => AutomatedReasoningPolicyBuildLogEntryFilterSensitiveLog(item)),
|
|
897
|
+
}),
|
|
898
|
+
});
|
|
899
|
+
export const AutomatedReasoningPolicyDisjointRuleSetFilterSensitiveLog = (obj) => ({
|
|
900
|
+
...obj,
|
|
901
|
+
...(obj.variables && { variables: SENSITIVE_STRING }),
|
|
902
|
+
});
|
|
903
|
+
export const AutomatedReasoningPolicyDefinitionTypeValuePairFilterSensitiveLog = (obj) => ({
|
|
904
|
+
...obj,
|
|
905
|
+
...(obj.typeName && { typeName: SENSITIVE_STRING }),
|
|
906
|
+
});
|
|
907
|
+
export const AutomatedReasoningPolicyDefinitionQualityReportFilterSensitiveLog = (obj) => ({
|
|
908
|
+
...obj,
|
|
909
|
+
...(obj.unusedTypes && { unusedTypes: SENSITIVE_STRING }),
|
|
910
|
+
...(obj.unusedTypeValues && {
|
|
911
|
+
unusedTypeValues: obj.unusedTypeValues.map((item) => AutomatedReasoningPolicyDefinitionTypeValuePairFilterSensitiveLog(item)),
|
|
912
|
+
}),
|
|
913
|
+
...(obj.unusedVariables && { unusedVariables: SENSITIVE_STRING }),
|
|
914
|
+
...(obj.disjointRuleSets && {
|
|
915
|
+
disjointRuleSets: obj.disjointRuleSets.map((item) => AutomatedReasoningPolicyDisjointRuleSetFilterSensitiveLog(item)),
|
|
916
|
+
}),
|
|
917
|
+
});
|
|
918
|
+
export const AutomatedReasoningPolicyBuildResultAssetsFilterSensitiveLog = (obj) => {
|
|
919
|
+
if (obj.policyDefinition !== undefined)
|
|
920
|
+
return { policyDefinition: AutomatedReasoningPolicyDefinitionFilterSensitiveLog(obj.policyDefinition) };
|
|
921
|
+
if (obj.qualityReport !== undefined)
|
|
922
|
+
return { qualityReport: AutomatedReasoningPolicyDefinitionQualityReportFilterSensitiveLog(obj.qualityReport) };
|
|
923
|
+
if (obj.buildLog !== undefined)
|
|
924
|
+
return { buildLog: AutomatedReasoningPolicyBuildLogFilterSensitiveLog(obj.buildLog) };
|
|
925
|
+
if (obj.$unknown !== undefined)
|
|
926
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
506
927
|
};
|
|
507
|
-
export const
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
928
|
+
export const GetAutomatedReasoningPolicyBuildWorkflowResultAssetsResponseFilterSensitiveLog = (obj) => ({
|
|
929
|
+
...obj,
|
|
930
|
+
...(obj.buildWorkflowAssets && {
|
|
931
|
+
buildWorkflowAssets: AutomatedReasoningPolicyBuildResultAssetsFilterSensitiveLog(obj.buildWorkflowAssets),
|
|
932
|
+
}),
|
|
933
|
+
});
|
|
934
|
+
export const AutomatedReasoningPolicyScenarioFilterSensitiveLog = (obj) => ({
|
|
935
|
+
...obj,
|
|
936
|
+
...(obj.expression && { expression: SENSITIVE_STRING }),
|
|
937
|
+
...(obj.alternateExpression && { alternateExpression: SENSITIVE_STRING }),
|
|
938
|
+
});
|
|
939
|
+
export const GetAutomatedReasoningPolicyNextScenarioResponseFilterSensitiveLog = (obj) => ({
|
|
940
|
+
...obj,
|
|
941
|
+
...(obj.scenario && { scenario: AutomatedReasoningPolicyScenarioFilterSensitiveLog(obj.scenario) }),
|
|
942
|
+
});
|
|
943
|
+
export const AutomatedReasoningPolicyTestCaseFilterSensitiveLog = (obj) => ({
|
|
944
|
+
...obj,
|
|
945
|
+
...(obj.guardContent && { guardContent: SENSITIVE_STRING }),
|
|
946
|
+
...(obj.queryContent && { queryContent: SENSITIVE_STRING }),
|
|
947
|
+
});
|
|
948
|
+
export const GetAutomatedReasoningPolicyTestCaseResponseFilterSensitiveLog = (obj) => ({
|
|
949
|
+
...obj,
|
|
950
|
+
...(obj.testCase && { testCase: AutomatedReasoningPolicyTestCaseFilterSensitiveLog(obj.testCase) }),
|
|
951
|
+
});
|
|
952
|
+
export const AutomatedReasoningLogicStatementFilterSensitiveLog = (obj) => ({
|
|
953
|
+
...obj,
|
|
954
|
+
...(obj.logic && { logic: SENSITIVE_STRING }),
|
|
955
|
+
...(obj.naturalLanguage && { naturalLanguage: SENSITIVE_STRING }),
|
|
956
|
+
});
|
|
957
|
+
export const AutomatedReasoningCheckLogicWarningFilterSensitiveLog = (obj) => ({
|
|
958
|
+
...obj,
|
|
959
|
+
...(obj.premises && {
|
|
960
|
+
premises: obj.premises.map((item) => AutomatedReasoningLogicStatementFilterSensitiveLog(item)),
|
|
961
|
+
}),
|
|
962
|
+
...(obj.claims && { claims: obj.claims.map((item) => AutomatedReasoningLogicStatementFilterSensitiveLog(item)) }),
|
|
963
|
+
});
|
|
964
|
+
export const AutomatedReasoningCheckInputTextReferenceFilterSensitiveLog = (obj) => ({
|
|
965
|
+
...obj,
|
|
966
|
+
...(obj.text && { text: SENSITIVE_STRING }),
|
|
967
|
+
});
|
|
968
|
+
export const AutomatedReasoningCheckTranslationFilterSensitiveLog = (obj) => ({
|
|
969
|
+
...obj,
|
|
970
|
+
...(obj.premises && {
|
|
971
|
+
premises: obj.premises.map((item) => AutomatedReasoningLogicStatementFilterSensitiveLog(item)),
|
|
972
|
+
}),
|
|
973
|
+
...(obj.claims && { claims: obj.claims.map((item) => AutomatedReasoningLogicStatementFilterSensitiveLog(item)) }),
|
|
974
|
+
...(obj.untranslatedPremises && {
|
|
975
|
+
untranslatedPremises: obj.untranslatedPremises.map((item) => AutomatedReasoningCheckInputTextReferenceFilterSensitiveLog(item)),
|
|
976
|
+
}),
|
|
977
|
+
...(obj.untranslatedClaims && {
|
|
978
|
+
untranslatedClaims: obj.untranslatedClaims.map((item) => AutomatedReasoningCheckInputTextReferenceFilterSensitiveLog(item)),
|
|
979
|
+
}),
|
|
980
|
+
});
|
|
981
|
+
export const AutomatedReasoningCheckImpossibleFindingFilterSensitiveLog = (obj) => ({
|
|
982
|
+
...obj,
|
|
983
|
+
...(obj.translation && { translation: AutomatedReasoningCheckTranslationFilterSensitiveLog(obj.translation) }),
|
|
984
|
+
...(obj.logicWarning && { logicWarning: AutomatedReasoningCheckLogicWarningFilterSensitiveLog(obj.logicWarning) }),
|
|
985
|
+
});
|
|
986
|
+
export const AutomatedReasoningCheckInvalidFindingFilterSensitiveLog = (obj) => ({
|
|
987
|
+
...obj,
|
|
988
|
+
...(obj.translation && { translation: AutomatedReasoningCheckTranslationFilterSensitiveLog(obj.translation) }),
|
|
989
|
+
...(obj.logicWarning && { logicWarning: AutomatedReasoningCheckLogicWarningFilterSensitiveLog(obj.logicWarning) }),
|
|
990
|
+
});
|
|
991
|
+
export const AutomatedReasoningCheckScenarioFilterSensitiveLog = (obj) => ({
|
|
992
|
+
...obj,
|
|
993
|
+
...(obj.statements && {
|
|
994
|
+
statements: obj.statements.map((item) => AutomatedReasoningLogicStatementFilterSensitiveLog(item)),
|
|
995
|
+
}),
|
|
996
|
+
});
|
|
997
|
+
export const AutomatedReasoningCheckSatisfiableFindingFilterSensitiveLog = (obj) => ({
|
|
998
|
+
...obj,
|
|
999
|
+
...(obj.translation && { translation: AutomatedReasoningCheckTranslationFilterSensitiveLog(obj.translation) }),
|
|
1000
|
+
...(obj.claimsTrueScenario && {
|
|
1001
|
+
claimsTrueScenario: AutomatedReasoningCheckScenarioFilterSensitiveLog(obj.claimsTrueScenario),
|
|
1002
|
+
}),
|
|
1003
|
+
...(obj.claimsFalseScenario && {
|
|
1004
|
+
claimsFalseScenario: AutomatedReasoningCheckScenarioFilterSensitiveLog(obj.claimsFalseScenario),
|
|
1005
|
+
}),
|
|
1006
|
+
...(obj.logicWarning && { logicWarning: AutomatedReasoningCheckLogicWarningFilterSensitiveLog(obj.logicWarning) }),
|
|
1007
|
+
});
|
|
1008
|
+
export const AutomatedReasoningCheckTranslationOptionFilterSensitiveLog = (obj) => ({
|
|
1009
|
+
...obj,
|
|
1010
|
+
});
|
|
1011
|
+
export const AutomatedReasoningCheckTranslationAmbiguousFindingFilterSensitiveLog = (obj) => ({
|
|
1012
|
+
...obj,
|
|
1013
|
+
});
|
|
1014
|
+
export const AutomatedReasoningCheckValidFindingFilterSensitiveLog = (obj) => ({
|
|
1015
|
+
...obj,
|
|
1016
|
+
...(obj.translation && { translation: AutomatedReasoningCheckTranslationFilterSensitiveLog(obj.translation) }),
|
|
1017
|
+
...(obj.claimsTrueScenario && {
|
|
1018
|
+
claimsTrueScenario: AutomatedReasoningCheckScenarioFilterSensitiveLog(obj.claimsTrueScenario),
|
|
1019
|
+
}),
|
|
1020
|
+
...(obj.logicWarning && { logicWarning: AutomatedReasoningCheckLogicWarningFilterSensitiveLog(obj.logicWarning) }),
|
|
1021
|
+
});
|
|
1022
|
+
export const AutomatedReasoningCheckFindingFilterSensitiveLog = (obj) => {
|
|
1023
|
+
if (obj.valid !== undefined)
|
|
1024
|
+
return { valid: AutomatedReasoningCheckValidFindingFilterSensitiveLog(obj.valid) };
|
|
1025
|
+
if (obj.invalid !== undefined)
|
|
1026
|
+
return { invalid: AutomatedReasoningCheckInvalidFindingFilterSensitiveLog(obj.invalid) };
|
|
1027
|
+
if (obj.satisfiable !== undefined)
|
|
1028
|
+
return { satisfiable: AutomatedReasoningCheckSatisfiableFindingFilterSensitiveLog(obj.satisfiable) };
|
|
1029
|
+
if (obj.impossible !== undefined)
|
|
1030
|
+
return { impossible: AutomatedReasoningCheckImpossibleFindingFilterSensitiveLog(obj.impossible) };
|
|
1031
|
+
if (obj.translationAmbiguous !== undefined)
|
|
1032
|
+
return {
|
|
1033
|
+
translationAmbiguous: AutomatedReasoningCheckTranslationAmbiguousFindingFilterSensitiveLog(obj.translationAmbiguous),
|
|
1034
|
+
};
|
|
1035
|
+
if (obj.tooComplex !== undefined)
|
|
1036
|
+
return { tooComplex: obj.tooComplex };
|
|
1037
|
+
if (obj.noTranslations !== undefined)
|
|
1038
|
+
return { noTranslations: obj.noTranslations };
|
|
1039
|
+
if (obj.$unknown !== undefined)
|
|
1040
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
512
1041
|
};
|
|
513
|
-
export const
|
|
514
|
-
|
|
1042
|
+
export const AutomatedReasoningPolicyTestResultFilterSensitiveLog = (obj) => ({
|
|
1043
|
+
...obj,
|
|
1044
|
+
...(obj.testCase && { testCase: AutomatedReasoningPolicyTestCaseFilterSensitiveLog(obj.testCase) }),
|
|
1045
|
+
...(obj.testFindings && {
|
|
1046
|
+
testFindings: obj.testFindings.map((item) => AutomatedReasoningCheckFindingFilterSensitiveLog(item)),
|
|
1047
|
+
}),
|
|
1048
|
+
});
|
|
1049
|
+
export const GetAutomatedReasoningPolicyTestResultResponseFilterSensitiveLog = (obj) => ({
|
|
1050
|
+
...obj,
|
|
1051
|
+
...(obj.testResult && { testResult: AutomatedReasoningPolicyTestResultFilterSensitiveLog(obj.testResult) }),
|
|
1052
|
+
});
|
|
1053
|
+
export const AutomatedReasoningPolicySummaryFilterSensitiveLog = (obj) => ({
|
|
1054
|
+
...obj,
|
|
1055
|
+
...(obj.name && { name: SENSITIVE_STRING }),
|
|
1056
|
+
...(obj.description && { description: SENSITIVE_STRING }),
|
|
1057
|
+
});
|
|
1058
|
+
export const ListAutomatedReasoningPoliciesResponseFilterSensitiveLog = (obj) => ({
|
|
1059
|
+
...obj,
|
|
1060
|
+
...(obj.automatedReasoningPolicySummaries && {
|
|
1061
|
+
automatedReasoningPolicySummaries: obj.automatedReasoningPolicySummaries.map((item) => AutomatedReasoningPolicySummaryFilterSensitiveLog(item)),
|
|
1062
|
+
}),
|
|
1063
|
+
});
|
|
1064
|
+
export const ListAutomatedReasoningPolicyTestCasesResponseFilterSensitiveLog = (obj) => ({
|
|
1065
|
+
...obj,
|
|
1066
|
+
...(obj.testCases && {
|
|
1067
|
+
testCases: obj.testCases.map((item) => AutomatedReasoningPolicyTestCaseFilterSensitiveLog(item)),
|
|
1068
|
+
}),
|
|
1069
|
+
});
|
|
1070
|
+
export const ListAutomatedReasoningPolicyTestResultsResponseFilterSensitiveLog = (obj) => ({
|
|
1071
|
+
...obj,
|
|
1072
|
+
...(obj.testResults && {
|
|
1073
|
+
testResults: obj.testResults.map((item) => AutomatedReasoningPolicyTestResultFilterSensitiveLog(item)),
|
|
1074
|
+
}),
|
|
1075
|
+
});
|
|
1076
|
+
export const AutomatedReasoningPolicyBuildWorkflowDocumentFilterSensitiveLog = (obj) => ({
|
|
1077
|
+
...obj,
|
|
1078
|
+
...(obj.documentName && { documentName: SENSITIVE_STRING }),
|
|
1079
|
+
...(obj.documentDescription && { documentDescription: SENSITIVE_STRING }),
|
|
1080
|
+
});
|
|
1081
|
+
export const AutomatedReasoningPolicyBuildWorkflowRepairContentFilterSensitiveLog = (obj) => ({
|
|
1082
|
+
...obj,
|
|
1083
|
+
...(obj.annotations && {
|
|
1084
|
+
annotations: obj.annotations.map((item) => AutomatedReasoningPolicyAnnotationFilterSensitiveLog(item)),
|
|
1085
|
+
}),
|
|
1086
|
+
});
|
|
1087
|
+
export const AutomatedReasoningPolicyWorkflowTypeContentFilterSensitiveLog = (obj) => {
|
|
1088
|
+
if (obj.documents !== undefined)
|
|
1089
|
+
return {
|
|
1090
|
+
documents: obj.documents.map((item) => AutomatedReasoningPolicyBuildWorkflowDocumentFilterSensitiveLog(item)),
|
|
1091
|
+
};
|
|
1092
|
+
if (obj.policyRepairAssets !== undefined)
|
|
1093
|
+
return {
|
|
1094
|
+
policyRepairAssets: AutomatedReasoningPolicyBuildWorkflowRepairContentFilterSensitiveLog(obj.policyRepairAssets),
|
|
1095
|
+
};
|
|
1096
|
+
if (obj.$unknown !== undefined)
|
|
1097
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
515
1098
|
};
|
|
1099
|
+
export const AutomatedReasoningPolicyBuildWorkflowSourceFilterSensitiveLog = (obj) => ({
|
|
1100
|
+
...obj,
|
|
1101
|
+
...(obj.policyDefinition && {
|
|
1102
|
+
policyDefinition: AutomatedReasoningPolicyDefinitionFilterSensitiveLog(obj.policyDefinition),
|
|
1103
|
+
}),
|
|
1104
|
+
...(obj.workflowContent && {
|
|
1105
|
+
workflowContent: AutomatedReasoningPolicyWorkflowTypeContentFilterSensitiveLog(obj.workflowContent),
|
|
1106
|
+
}),
|
|
1107
|
+
});
|
|
1108
|
+
export const StartAutomatedReasoningPolicyBuildWorkflowRequestFilterSensitiveLog = (obj) => ({
|
|
1109
|
+
...obj,
|
|
1110
|
+
...(obj.sourceContent && {
|
|
1111
|
+
sourceContent: AutomatedReasoningPolicyBuildWorkflowSourceFilterSensitiveLog(obj.sourceContent),
|
|
1112
|
+
}),
|
|
1113
|
+
});
|
|
1114
|
+
export const UpdateAutomatedReasoningPolicyRequestFilterSensitiveLog = (obj) => ({
|
|
1115
|
+
...obj,
|
|
1116
|
+
...(obj.policyDefinition && {
|
|
1117
|
+
policyDefinition: AutomatedReasoningPolicyDefinitionFilterSensitiveLog(obj.policyDefinition),
|
|
1118
|
+
}),
|
|
1119
|
+
...(obj.name && { name: SENSITIVE_STRING }),
|
|
1120
|
+
...(obj.description && { description: SENSITIVE_STRING }),
|
|
1121
|
+
});
|
|
1122
|
+
export const UpdateAutomatedReasoningPolicyResponseFilterSensitiveLog = (obj) => ({
|
|
1123
|
+
...obj,
|
|
1124
|
+
...(obj.name && { name: SENSITIVE_STRING }),
|
|
1125
|
+
});
|
|
1126
|
+
export const UpdateAutomatedReasoningPolicyAnnotationsRequestFilterSensitiveLog = (obj) => ({
|
|
1127
|
+
...obj,
|
|
1128
|
+
...(obj.annotations && {
|
|
1129
|
+
annotations: obj.annotations.map((item) => AutomatedReasoningPolicyAnnotationFilterSensitiveLog(item)),
|
|
1130
|
+
}),
|
|
1131
|
+
});
|
|
1132
|
+
export const UpdateAutomatedReasoningPolicyTestCaseRequestFilterSensitiveLog = (obj) => ({
|
|
1133
|
+
...obj,
|
|
1134
|
+
...(obj.guardContent && { guardContent: SENSITIVE_STRING }),
|
|
1135
|
+
...(obj.queryContent && { queryContent: SENSITIVE_STRING }),
|
|
1136
|
+
});
|
|
516
1137
|
export const RequestMetadataBaseFiltersFilterSensitiveLog = (obj) => ({
|
|
517
1138
|
...obj,
|
|
518
1139
|
...(obj.equals && { equals: SENSITIVE_STRING }),
|
|
@@ -761,197 +1382,3 @@ export const GuardrailTopicPolicyConfigFilterSensitiveLog = (obj) => ({
|
|
|
761
1382
|
}),
|
|
762
1383
|
...(obj.tierConfig && { tierConfig: GuardrailTopicsTierConfigFilterSensitiveLog(obj.tierConfig) }),
|
|
763
1384
|
});
|
|
764
|
-
export const GuardrailManagedWordsConfigFilterSensitiveLog = (obj) => ({
|
|
765
|
-
...obj,
|
|
766
|
-
...(obj.inputAction && { inputAction: SENSITIVE_STRING }),
|
|
767
|
-
...(obj.outputAction && { outputAction: SENSITIVE_STRING }),
|
|
768
|
-
});
|
|
769
|
-
export const GuardrailWordConfigFilterSensitiveLog = (obj) => ({
|
|
770
|
-
...obj,
|
|
771
|
-
...(obj.inputAction && { inputAction: SENSITIVE_STRING }),
|
|
772
|
-
...(obj.outputAction && { outputAction: SENSITIVE_STRING }),
|
|
773
|
-
});
|
|
774
|
-
export const GuardrailWordPolicyConfigFilterSensitiveLog = (obj) => ({
|
|
775
|
-
...obj,
|
|
776
|
-
...(obj.wordsConfig && { wordsConfig: obj.wordsConfig.map((item) => GuardrailWordConfigFilterSensitiveLog(item)) }),
|
|
777
|
-
...(obj.managedWordListsConfig && {
|
|
778
|
-
managedWordListsConfig: obj.managedWordListsConfig.map((item) => GuardrailManagedWordsConfigFilterSensitiveLog(item)),
|
|
779
|
-
}),
|
|
780
|
-
});
|
|
781
|
-
export const CreateGuardrailRequestFilterSensitiveLog = (obj) => ({
|
|
782
|
-
...obj,
|
|
783
|
-
...(obj.name && { name: SENSITIVE_STRING }),
|
|
784
|
-
...(obj.description && { description: SENSITIVE_STRING }),
|
|
785
|
-
...(obj.topicPolicyConfig && {
|
|
786
|
-
topicPolicyConfig: GuardrailTopicPolicyConfigFilterSensitiveLog(obj.topicPolicyConfig),
|
|
787
|
-
}),
|
|
788
|
-
...(obj.contentPolicyConfig && {
|
|
789
|
-
contentPolicyConfig: GuardrailContentPolicyConfigFilterSensitiveLog(obj.contentPolicyConfig),
|
|
790
|
-
}),
|
|
791
|
-
...(obj.wordPolicyConfig && { wordPolicyConfig: GuardrailWordPolicyConfigFilterSensitiveLog(obj.wordPolicyConfig) }),
|
|
792
|
-
...(obj.contextualGroundingPolicyConfig && {
|
|
793
|
-
contextualGroundingPolicyConfig: GuardrailContextualGroundingPolicyConfigFilterSensitiveLog(obj.contextualGroundingPolicyConfig),
|
|
794
|
-
}),
|
|
795
|
-
...(obj.blockedInputMessaging && { blockedInputMessaging: SENSITIVE_STRING }),
|
|
796
|
-
...(obj.blockedOutputsMessaging && { blockedOutputsMessaging: SENSITIVE_STRING }),
|
|
797
|
-
});
|
|
798
|
-
export const CreateGuardrailVersionRequestFilterSensitiveLog = (obj) => ({
|
|
799
|
-
...obj,
|
|
800
|
-
...(obj.description && { description: SENSITIVE_STRING }),
|
|
801
|
-
});
|
|
802
|
-
export const GuardrailContentFilterFilterSensitiveLog = (obj) => ({
|
|
803
|
-
...obj,
|
|
804
|
-
...(obj.inputModalities && { inputModalities: SENSITIVE_STRING }),
|
|
805
|
-
...(obj.outputModalities && { outputModalities: SENSITIVE_STRING }),
|
|
806
|
-
...(obj.inputAction && { inputAction: SENSITIVE_STRING }),
|
|
807
|
-
...(obj.outputAction && { outputAction: SENSITIVE_STRING }),
|
|
808
|
-
});
|
|
809
|
-
export const GuardrailContentFiltersTierFilterSensitiveLog = (obj) => ({
|
|
810
|
-
...obj,
|
|
811
|
-
...(obj.tierName && { tierName: SENSITIVE_STRING }),
|
|
812
|
-
});
|
|
813
|
-
export const GuardrailContentPolicyFilterSensitiveLog = (obj) => ({
|
|
814
|
-
...obj,
|
|
815
|
-
...(obj.filters && { filters: obj.filters.map((item) => GuardrailContentFilterFilterSensitiveLog(item)) }),
|
|
816
|
-
...(obj.tier && { tier: GuardrailContentFiltersTierFilterSensitiveLog(obj.tier) }),
|
|
817
|
-
});
|
|
818
|
-
export const GuardrailContextualGroundingFilterFilterSensitiveLog = (obj) => ({
|
|
819
|
-
...obj,
|
|
820
|
-
...(obj.action && { action: SENSITIVE_STRING }),
|
|
821
|
-
});
|
|
822
|
-
export const GuardrailContextualGroundingPolicyFilterSensitiveLog = (obj) => ({
|
|
823
|
-
...obj,
|
|
824
|
-
...(obj.filters && {
|
|
825
|
-
filters: obj.filters.map((item) => GuardrailContextualGroundingFilterFilterSensitiveLog(item)),
|
|
826
|
-
}),
|
|
827
|
-
});
|
|
828
|
-
export const GuardrailTopicsTierFilterSensitiveLog = (obj) => ({
|
|
829
|
-
...obj,
|
|
830
|
-
...(obj.tierName && { tierName: SENSITIVE_STRING }),
|
|
831
|
-
});
|
|
832
|
-
export const GuardrailTopicFilterSensitiveLog = (obj) => ({
|
|
833
|
-
...obj,
|
|
834
|
-
...(obj.name && { name: SENSITIVE_STRING }),
|
|
835
|
-
...(obj.definition && { definition: SENSITIVE_STRING }),
|
|
836
|
-
...(obj.examples && { examples: SENSITIVE_STRING }),
|
|
837
|
-
...(obj.inputAction && { inputAction: SENSITIVE_STRING }),
|
|
838
|
-
...(obj.outputAction && { outputAction: SENSITIVE_STRING }),
|
|
839
|
-
});
|
|
840
|
-
export const GuardrailTopicPolicyFilterSensitiveLog = (obj) => ({
|
|
841
|
-
...obj,
|
|
842
|
-
...(obj.topics && { topics: obj.topics.map((item) => GuardrailTopicFilterSensitiveLog(item)) }),
|
|
843
|
-
...(obj.tier && { tier: GuardrailTopicsTierFilterSensitiveLog(obj.tier) }),
|
|
844
|
-
});
|
|
845
|
-
export const GuardrailManagedWordsFilterSensitiveLog = (obj) => ({
|
|
846
|
-
...obj,
|
|
847
|
-
...(obj.inputAction && { inputAction: SENSITIVE_STRING }),
|
|
848
|
-
...(obj.outputAction && { outputAction: SENSITIVE_STRING }),
|
|
849
|
-
});
|
|
850
|
-
export const GuardrailWordFilterSensitiveLog = (obj) => ({
|
|
851
|
-
...obj,
|
|
852
|
-
...(obj.inputAction && { inputAction: SENSITIVE_STRING }),
|
|
853
|
-
...(obj.outputAction && { outputAction: SENSITIVE_STRING }),
|
|
854
|
-
});
|
|
855
|
-
export const GuardrailWordPolicyFilterSensitiveLog = (obj) => ({
|
|
856
|
-
...obj,
|
|
857
|
-
...(obj.words && { words: obj.words.map((item) => GuardrailWordFilterSensitiveLog(item)) }),
|
|
858
|
-
...(obj.managedWordLists && {
|
|
859
|
-
managedWordLists: obj.managedWordLists.map((item) => GuardrailManagedWordsFilterSensitiveLog(item)),
|
|
860
|
-
}),
|
|
861
|
-
});
|
|
862
|
-
export const GetGuardrailResponseFilterSensitiveLog = (obj) => ({
|
|
863
|
-
...obj,
|
|
864
|
-
...(obj.name && { name: SENSITIVE_STRING }),
|
|
865
|
-
...(obj.description && { description: SENSITIVE_STRING }),
|
|
866
|
-
...(obj.topicPolicy && { topicPolicy: GuardrailTopicPolicyFilterSensitiveLog(obj.topicPolicy) }),
|
|
867
|
-
...(obj.contentPolicy && { contentPolicy: GuardrailContentPolicyFilterSensitiveLog(obj.contentPolicy) }),
|
|
868
|
-
...(obj.wordPolicy && { wordPolicy: GuardrailWordPolicyFilterSensitiveLog(obj.wordPolicy) }),
|
|
869
|
-
...(obj.contextualGroundingPolicy && {
|
|
870
|
-
contextualGroundingPolicy: GuardrailContextualGroundingPolicyFilterSensitiveLog(obj.contextualGroundingPolicy),
|
|
871
|
-
}),
|
|
872
|
-
...(obj.statusReasons && { statusReasons: SENSITIVE_STRING }),
|
|
873
|
-
...(obj.failureRecommendations && { failureRecommendations: SENSITIVE_STRING }),
|
|
874
|
-
...(obj.blockedInputMessaging && { blockedInputMessaging: SENSITIVE_STRING }),
|
|
875
|
-
...(obj.blockedOutputsMessaging && { blockedOutputsMessaging: SENSITIVE_STRING }),
|
|
876
|
-
});
|
|
877
|
-
export const GuardrailSummaryFilterSensitiveLog = (obj) => ({
|
|
878
|
-
...obj,
|
|
879
|
-
...(obj.name && { name: SENSITIVE_STRING }),
|
|
880
|
-
...(obj.description && { description: SENSITIVE_STRING }),
|
|
881
|
-
});
|
|
882
|
-
export const ListGuardrailsResponseFilterSensitiveLog = (obj) => ({
|
|
883
|
-
...obj,
|
|
884
|
-
...(obj.guardrails && { guardrails: obj.guardrails.map((item) => GuardrailSummaryFilterSensitiveLog(item)) }),
|
|
885
|
-
});
|
|
886
|
-
export const UpdateGuardrailRequestFilterSensitiveLog = (obj) => ({
|
|
887
|
-
...obj,
|
|
888
|
-
...(obj.name && { name: SENSITIVE_STRING }),
|
|
889
|
-
...(obj.description && { description: SENSITIVE_STRING }),
|
|
890
|
-
...(obj.topicPolicyConfig && {
|
|
891
|
-
topicPolicyConfig: GuardrailTopicPolicyConfigFilterSensitiveLog(obj.topicPolicyConfig),
|
|
892
|
-
}),
|
|
893
|
-
...(obj.contentPolicyConfig && {
|
|
894
|
-
contentPolicyConfig: GuardrailContentPolicyConfigFilterSensitiveLog(obj.contentPolicyConfig),
|
|
895
|
-
}),
|
|
896
|
-
...(obj.wordPolicyConfig && { wordPolicyConfig: GuardrailWordPolicyConfigFilterSensitiveLog(obj.wordPolicyConfig) }),
|
|
897
|
-
...(obj.contextualGroundingPolicyConfig && {
|
|
898
|
-
contextualGroundingPolicyConfig: GuardrailContextualGroundingPolicyConfigFilterSensitiveLog(obj.contextualGroundingPolicyConfig),
|
|
899
|
-
}),
|
|
900
|
-
...(obj.blockedInputMessaging && { blockedInputMessaging: SENSITIVE_STRING }),
|
|
901
|
-
...(obj.blockedOutputsMessaging && { blockedOutputsMessaging: SENSITIVE_STRING }),
|
|
902
|
-
});
|
|
903
|
-
export const CreateInferenceProfileRequestFilterSensitiveLog = (obj) => ({
|
|
904
|
-
...obj,
|
|
905
|
-
...(obj.description && { description: SENSITIVE_STRING }),
|
|
906
|
-
...(obj.modelSource && { modelSource: obj.modelSource }),
|
|
907
|
-
});
|
|
908
|
-
export const GetInferenceProfileResponseFilterSensitiveLog = (obj) => ({
|
|
909
|
-
...obj,
|
|
910
|
-
...(obj.description && { description: SENSITIVE_STRING }),
|
|
911
|
-
});
|
|
912
|
-
export const InferenceProfileSummaryFilterSensitiveLog = (obj) => ({
|
|
913
|
-
...obj,
|
|
914
|
-
...(obj.description && { description: SENSITIVE_STRING }),
|
|
915
|
-
});
|
|
916
|
-
export const ListInferenceProfilesResponseFilterSensitiveLog = (obj) => ({
|
|
917
|
-
...obj,
|
|
918
|
-
...(obj.inferenceProfileSummaries && {
|
|
919
|
-
inferenceProfileSummaries: obj.inferenceProfileSummaries.map((item) => InferenceProfileSummaryFilterSensitiveLog(item)),
|
|
920
|
-
}),
|
|
921
|
-
});
|
|
922
|
-
export const GetModelInvocationJobResponseFilterSensitiveLog = (obj) => ({
|
|
923
|
-
...obj,
|
|
924
|
-
...(obj.message && { message: SENSITIVE_STRING }),
|
|
925
|
-
...(obj.inputDataConfig && { inputDataConfig: obj.inputDataConfig }),
|
|
926
|
-
...(obj.outputDataConfig && { outputDataConfig: obj.outputDataConfig }),
|
|
927
|
-
});
|
|
928
|
-
export const ModelInvocationJobSummaryFilterSensitiveLog = (obj) => ({
|
|
929
|
-
...obj,
|
|
930
|
-
...(obj.message && { message: SENSITIVE_STRING }),
|
|
931
|
-
...(obj.inputDataConfig && { inputDataConfig: obj.inputDataConfig }),
|
|
932
|
-
...(obj.outputDataConfig && { outputDataConfig: obj.outputDataConfig }),
|
|
933
|
-
});
|
|
934
|
-
export const ListModelInvocationJobsResponseFilterSensitiveLog = (obj) => ({
|
|
935
|
-
...obj,
|
|
936
|
-
...(obj.invocationJobSummaries && {
|
|
937
|
-
invocationJobSummaries: obj.invocationJobSummaries.map((item) => ModelInvocationJobSummaryFilterSensitiveLog(item)),
|
|
938
|
-
}),
|
|
939
|
-
});
|
|
940
|
-
export const CreatePromptRouterRequestFilterSensitiveLog = (obj) => ({
|
|
941
|
-
...obj,
|
|
942
|
-
...(obj.description && { description: SENSITIVE_STRING }),
|
|
943
|
-
});
|
|
944
|
-
export const GetPromptRouterResponseFilterSensitiveLog = (obj) => ({
|
|
945
|
-
...obj,
|
|
946
|
-
...(obj.description && { description: SENSITIVE_STRING }),
|
|
947
|
-
});
|
|
948
|
-
export const PromptRouterSummaryFilterSensitiveLog = (obj) => ({
|
|
949
|
-
...obj,
|
|
950
|
-
...(obj.description && { description: SENSITIVE_STRING }),
|
|
951
|
-
});
|
|
952
|
-
export const ListPromptRoutersResponseFilterSensitiveLog = (obj) => ({
|
|
953
|
-
...obj,
|
|
954
|
-
...(obj.promptRouterSummaries && {
|
|
955
|
-
promptRouterSummaries: obj.promptRouterSummaries.map((item) => PromptRouterSummaryFilterSensitiveLog(item)),
|
|
956
|
-
}),
|
|
957
|
-
});
|