@@ -10,6 +10,7 @@ import {
10
10
ApplyGuardrailRequest ,
11
11
ApplyGuardrailRequestFilterSensitiveLog ,
12
12
ApplyGuardrailResponse ,
13
+ ApplyGuardrailResponseFilterSensitiveLog ,
13
14
} from "../models/models_0" ;
14
15
import { de_ApplyGuardrailCommand , se_ApplyGuardrailCommand } from "../protocols/Aws_restJson1" ;
15
16
@@ -72,6 +73,8 @@ export interface ApplyGuardrailCommandOutput extends ApplyGuardrailResponse, __M
72
73
* // sensitiveInformationPolicyFreeUnits: Number("int"), // required
73
74
* // contextualGroundingPolicyUnits: Number("int"), // required
74
75
* // contentPolicyImageUnits: Number("int"),
76
+ * // automatedReasoningPolicyUnits: Number("int"),
77
+ * // automatedReasoningPolicies: Number("int"),
75
78
* // },
76
79
* // action: "NONE" || "GUARDRAIL_INTERVENED", // required
77
80
* // actionReason: "STRING_VALUE",
@@ -150,6 +153,162 @@ export interface ApplyGuardrailCommandOutput extends ApplyGuardrailResponse, __M
150
153
* // },
151
154
* // ],
152
155
* // },
156
+ * // automatedReasoningPolicy: { // GuardrailAutomatedReasoningPolicyAssessment
157
+ * // findings: [ // GuardrailAutomatedReasoningFindingList
158
+ * // { // GuardrailAutomatedReasoningFinding Union: only one key present
159
+ * // valid: { // GuardrailAutomatedReasoningValidFinding
160
+ * // translation: { // GuardrailAutomatedReasoningTranslation
161
+ * // premises: [ // GuardrailAutomatedReasoningStatementList
162
+ * // { // GuardrailAutomatedReasoningStatement
163
+ * // logic: "STRING_VALUE",
164
+ * // naturalLanguage: "STRING_VALUE",
165
+ * // },
166
+ * // ],
167
+ * // claims: [
168
+ * // {
169
+ * // logic: "STRING_VALUE",
170
+ * // naturalLanguage: "STRING_VALUE",
171
+ * // },
172
+ * // ],
173
+ * // untranslatedPremises: [ // GuardrailAutomatedReasoningInputTextReferenceList
174
+ * // { // GuardrailAutomatedReasoningInputTextReference
175
+ * // text: "STRING_VALUE",
176
+ * // },
177
+ * // ],
178
+ * // untranslatedClaims: [
179
+ * // {
180
+ * // text: "STRING_VALUE",
181
+ * // },
182
+ * // ],
183
+ * // confidence: Number("double"),
184
+ * // },
185
+ * // claimsTrueScenario: { // GuardrailAutomatedReasoningScenario
186
+ * // statements: [
187
+ * // {
188
+ * // logic: "STRING_VALUE",
189
+ * // naturalLanguage: "STRING_VALUE",
190
+ * // },
191
+ * // ],
192
+ * // },
193
+ * // supportingRules: [ // GuardrailAutomatedReasoningRuleList
194
+ * // { // GuardrailAutomatedReasoningRule
195
+ * // identifier: "STRING_VALUE",
196
+ * // policyVersionArn: "STRING_VALUE",
197
+ * // },
198
+ * // ],
199
+ * // logicWarning: { // GuardrailAutomatedReasoningLogicWarning
200
+ * // type: "ALWAYS_FALSE" || "ALWAYS_TRUE",
201
+ * // premises: [
202
+ * // {
203
+ * // logic: "STRING_VALUE",
204
+ * // naturalLanguage: "STRING_VALUE",
205
+ * // },
206
+ * // ],
207
+ * // claims: [
208
+ * // {
209
+ * // logic: "STRING_VALUE",
210
+ * // naturalLanguage: "STRING_VALUE",
211
+ * // },
212
+ * // ],
213
+ * // },
214
+ * // },
215
+ * // invalid: { // GuardrailAutomatedReasoningInvalidFinding
216
+ * // translation: {
217
+ * // premises: "<GuardrailAutomatedReasoningStatementList>",
218
+ * // claims: "<GuardrailAutomatedReasoningStatementList>",
219
+ * // untranslatedPremises: [
220
+ * // {
221
+ * // text: "STRING_VALUE",
222
+ * // },
223
+ * // ],
224
+ * // untranslatedClaims: [
225
+ * // {
226
+ * // text: "STRING_VALUE",
227
+ * // },
228
+ * // ],
229
+ * // confidence: Number("double"),
230
+ * // },
231
+ * // contradictingRules: [
232
+ * // {
233
+ * // identifier: "STRING_VALUE",
234
+ * // policyVersionArn: "STRING_VALUE",
235
+ * // },
236
+ * // ],
237
+ * // logicWarning: {
238
+ * // type: "ALWAYS_FALSE" || "ALWAYS_TRUE",
239
+ * // premises: "<GuardrailAutomatedReasoningStatementList>",
240
+ * // claims: "<GuardrailAutomatedReasoningStatementList>",
241
+ * // },
242
+ * // },
243
+ * // satisfiable: { // GuardrailAutomatedReasoningSatisfiableFinding
244
+ * // translation: {
245
+ * // premises: "<GuardrailAutomatedReasoningStatementList>",
246
+ * // claims: "<GuardrailAutomatedReasoningStatementList>",
247
+ * // untranslatedPremises: [
248
+ * // {
249
+ * // text: "STRING_VALUE",
250
+ * // },
251
+ * // ],
252
+ * // untranslatedClaims: "<GuardrailAutomatedReasoningInputTextReferenceList>",
253
+ * // confidence: Number("double"),
254
+ * // },
255
+ * // claimsTrueScenario: {
256
+ * // statements: "<GuardrailAutomatedReasoningStatementList>",
257
+ * // },
258
+ * // claimsFalseScenario: {
259
+ * // statements: "<GuardrailAutomatedReasoningStatementList>",
260
+ * // },
261
+ * // logicWarning: {
262
+ * // type: "ALWAYS_FALSE" || "ALWAYS_TRUE",
263
+ * // premises: "<GuardrailAutomatedReasoningStatementList>",
264
+ * // claims: "<GuardrailAutomatedReasoningStatementList>",
265
+ * // },
266
+ * // },
267
+ * // impossible: { // GuardrailAutomatedReasoningImpossibleFinding
268
+ * // translation: {
269
+ * // premises: "<GuardrailAutomatedReasoningStatementList>",
270
+ * // claims: "<GuardrailAutomatedReasoningStatementList>",
271
+ * // untranslatedPremises: "<GuardrailAutomatedReasoningInputTextReferenceList>",
272
+ * // untranslatedClaims: "<GuardrailAutomatedReasoningInputTextReferenceList>",
273
+ * // confidence: Number("double"),
274
+ * // },
275
+ * // contradictingRules: [
276
+ * // {
277
+ * // identifier: "STRING_VALUE",
278
+ * // policyVersionArn: "STRING_VALUE",
279
+ * // },
280
+ * // ],
281
+ * // logicWarning: {
282
+ * // type: "ALWAYS_FALSE" || "ALWAYS_TRUE",
283
+ * // premises: "<GuardrailAutomatedReasoningStatementList>",
284
+ * // claims: "<GuardrailAutomatedReasoningStatementList>",
285
+ * // },
286
+ * // },
287
+ * // translationAmbiguous: { // GuardrailAutomatedReasoningTranslationAmbiguousFinding
288
+ * // options: [ // GuardrailAutomatedReasoningTranslationOptionList
289
+ * // { // GuardrailAutomatedReasoningTranslationOption
290
+ * // translations: [ // GuardrailAutomatedReasoningTranslationList
291
+ * // {
292
+ * // premises: "<GuardrailAutomatedReasoningStatementList>",
293
+ * // claims: "<GuardrailAutomatedReasoningStatementList>",
294
+ * // untranslatedPremises: "<GuardrailAutomatedReasoningInputTextReferenceList>",
295
+ * // untranslatedClaims: "<GuardrailAutomatedReasoningInputTextReferenceList>",
296
+ * // confidence: Number("double"),
297
+ * // },
298
+ * // ],
299
+ * // },
300
+ * // ],
301
+ * // differenceScenarios: [ // GuardrailAutomatedReasoningDifferenceScenarioList
302
+ * // {
303
+ * // statements: "<GuardrailAutomatedReasoningStatementList>",
304
+ * // },
305
+ * // ],
306
+ * // },
307
+ * // tooComplex: {},
308
+ * // noTranslations: {},
309
+ * // },
310
+ * // ],
311
+ * // },
153
312
* // invocationMetrics: { // GuardrailInvocationMetrics
154
313
* // guardrailProcessingLatency: Number("long"),
155
314
* // usage: {
@@ -160,6 +319,8 @@ export interface ApplyGuardrailCommandOutput extends ApplyGuardrailResponse, __M
160
319
* // sensitiveInformationPolicyFreeUnits: Number("int"), // required
161
320
* // contextualGroundingPolicyUnits: Number("int"), // required
162
321
* // contentPolicyImageUnits: Number("int"),
322
+ * // automatedReasoningPolicyUnits: Number("int"),
323
+ * // automatedReasoningPolicies: Number("int"),
163
324
* // },
164
325
* // guardrailCoverage: { // GuardrailCoverage
165
326
* // textCharacters: { // GuardrailTextCharactersCoverage
@@ -235,7 +396,7 @@ export class ApplyGuardrailCommand extends $Command
235
396
} )
236
397
. s ( "AmazonBedrockFrontendService" , "ApplyGuardrail" , { } )
237
398
. n ( "BedrockRuntimeClient" , "ApplyGuardrailCommand" )
238
- . f ( ApplyGuardrailRequestFilterSensitiveLog , void 0 )
399
+ . f ( ApplyGuardrailRequestFilterSensitiveLog , ApplyGuardrailResponseFilterSensitiveLog )
239
400
. ser ( se_ApplyGuardrailCommand )
240
401
. de ( de_ApplyGuardrailCommand )
241
402
. build ( ) {
0 commit comments