aws-sdk-bedrock 1.57.0 → 1.58.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.
@@ -128,6 +128,1883 @@ module Aws::Bedrock
128
128
  class Unknown < AutomatedEvaluationCustomMetricSource; end
129
129
  end
130
130
 
131
+ # Represents the result of an Automated Reasoning validation check,
132
+ # indicating whether the content is logically valid, invalid, or falls
133
+ # into other categories based on the policy rules.
134
+ #
135
+ # @note AutomatedReasoningCheckFinding is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of AutomatedReasoningCheckFinding corresponding to the set member.
136
+ #
137
+ # @!attribute [rw] valid
138
+ # Indicates that the claims are true. The claims are implied by the
139
+ # premises and the Automated Reasoning policy. Given the Automated
140
+ # Reasoning policy and premises, it is not possible for these claims
141
+ # to be false.
142
+ # @return [Types::AutomatedReasoningCheckValidFinding]
143
+ #
144
+ # @!attribute [rw] invalid
145
+ # Indicates that the claims are false. The claims are not implied by
146
+ # the premises and Automated Reasoning policy. Furthermore, there
147
+ # exist different claims that are consistent with the premises and
148
+ # Automated Reasoning policy.
149
+ # @return [Types::AutomatedReasoningCheckInvalidFinding]
150
+ #
151
+ # @!attribute [rw] satisfiable
152
+ # Indicates that the claims can be true or false. It depends on what
153
+ # assumptions are made for the claim to be implied from the premises
154
+ # and Automated Reasoning policy rules. In this situation, different
155
+ # assumptions can make input claims false and alternative claims true.
156
+ # @return [Types::AutomatedReasoningCheckSatisfiableFinding]
157
+ #
158
+ # @!attribute [rw] impossible
159
+ # Indicates that Automated Reasoning cannot make a statement about the
160
+ # claims. This can happen if the premises are logically incorrect, or
161
+ # if there is a conflict within the Automated Reasoning policy itself.
162
+ # @return [Types::AutomatedReasoningCheckImpossibleFinding]
163
+ #
164
+ # @!attribute [rw] translation_ambiguous
165
+ # Indicates that an ambiguity was detected in the translation, making
166
+ # it unsound to continue with validity checking. Additional context or
167
+ # follow-up questions might be needed to get translation to succeed.
168
+ # @return [Types::AutomatedReasoningCheckTranslationAmbiguousFinding]
169
+ #
170
+ # @!attribute [rw] too_complex
171
+ # Indicates that the input contains too much information for Automated
172
+ # Reasoning to process within its latency limits.
173
+ # @return [Types::AutomatedReasoningCheckTooComplexFinding]
174
+ #
175
+ # @!attribute [rw] no_translations
176
+ # Identifies that some or all of the input prompt wasn't translated
177
+ # into logic. This can happen if the input isn't relevant to the
178
+ # Automated Reasoning policy, or if the policy doesn't have variables
179
+ # to model relevant input.
180
+ # @return [Types::AutomatedReasoningCheckNoTranslationsFinding]
181
+ #
182
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningCheckFinding AWS API Documentation
183
+ #
184
+ class AutomatedReasoningCheckFinding < Struct.new(
185
+ :valid,
186
+ :invalid,
187
+ :satisfiable,
188
+ :impossible,
189
+ :translation_ambiguous,
190
+ :too_complex,
191
+ :no_translations,
192
+ :unknown)
193
+ SENSITIVE = []
194
+ include Aws::Structure
195
+ include Aws::Structure::Union
196
+
197
+ class Valid < AutomatedReasoningCheckFinding; end
198
+ class Invalid < AutomatedReasoningCheckFinding; end
199
+ class Satisfiable < AutomatedReasoningCheckFinding; end
200
+ class Impossible < AutomatedReasoningCheckFinding; end
201
+ class TranslationAmbiguous < AutomatedReasoningCheckFinding; end
202
+ class TooComplex < AutomatedReasoningCheckFinding; end
203
+ class NoTranslations < AutomatedReasoningCheckFinding; end
204
+ class Unknown < AutomatedReasoningCheckFinding; end
205
+ end
206
+
207
+ # Indicates that no valid claims can be made due to logical
208
+ # contradictions in the premises or rules.
209
+ #
210
+ # @!attribute [rw] translation
211
+ # The logical translation of the input that this finding evaluates.
212
+ # @return [Types::AutomatedReasoningCheckTranslation]
213
+ #
214
+ # @!attribute [rw] contradicting_rules
215
+ # The automated reasoning policy rules that contradict the claims
216
+ # and/or premises in the input.
217
+ # @return [Array<Types::AutomatedReasoningCheckRule>]
218
+ #
219
+ # @!attribute [rw] logic_warning
220
+ # Indication of a logic issue with the translation without needing to
221
+ # consider the automated reasoning policy rules.
222
+ # @return [Types::AutomatedReasoningCheckLogicWarning]
223
+ #
224
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningCheckImpossibleFinding AWS API Documentation
225
+ #
226
+ class AutomatedReasoningCheckImpossibleFinding < Struct.new(
227
+ :translation,
228
+ :contradicting_rules,
229
+ :logic_warning)
230
+ SENSITIVE = []
231
+ include Aws::Structure
232
+ end
233
+
234
+ # References a portion of the original input text that corresponds to
235
+ # logical elements.
236
+ #
237
+ # @!attribute [rw] text
238
+ # The specific text from the original input that this reference points
239
+ # to.
240
+ # @return [String]
241
+ #
242
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningCheckInputTextReference AWS API Documentation
243
+ #
244
+ class AutomatedReasoningCheckInputTextReference < Struct.new(
245
+ :text)
246
+ SENSITIVE = [:text]
247
+ include Aws::Structure
248
+ end
249
+
250
+ # Indicates that the claims are logically false and contradictory to the
251
+ # established rules or premises.
252
+ #
253
+ # @!attribute [rw] translation
254
+ # The logical translation of the input that this finding invalidates.
255
+ # @return [Types::AutomatedReasoningCheckTranslation]
256
+ #
257
+ # @!attribute [rw] contradicting_rules
258
+ # The automated reasoning policy rules that contradict the claims in
259
+ # the input.
260
+ # @return [Array<Types::AutomatedReasoningCheckRule>]
261
+ #
262
+ # @!attribute [rw] logic_warning
263
+ # Indication of a logic issue with the translation without needing to
264
+ # consider the automated reasoning policy rules.
265
+ # @return [Types::AutomatedReasoningCheckLogicWarning]
266
+ #
267
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningCheckInvalidFinding AWS API Documentation
268
+ #
269
+ class AutomatedReasoningCheckInvalidFinding < Struct.new(
270
+ :translation,
271
+ :contradicting_rules,
272
+ :logic_warning)
273
+ SENSITIVE = []
274
+ include Aws::Structure
275
+ end
276
+
277
+ # Identifies logical issues in the translated statements that exist
278
+ # independent of any policy rules, such as statements that are always
279
+ # true or always false.
280
+ #
281
+ # @!attribute [rw] type
282
+ # The category of the detected logical issue, such as statements that
283
+ # are always true or always false.
284
+ # @return [String]
285
+ #
286
+ # @!attribute [rw] premises
287
+ # The logical statements that serve as premises under which the claims
288
+ # are validated.
289
+ # @return [Array<Types::AutomatedReasoningLogicStatement>]
290
+ #
291
+ # @!attribute [rw] claims
292
+ # The logical statements that are validated while assuming the policy
293
+ # and premises.
294
+ # @return [Array<Types::AutomatedReasoningLogicStatement>]
295
+ #
296
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningCheckLogicWarning AWS API Documentation
297
+ #
298
+ class AutomatedReasoningCheckLogicWarning < Struct.new(
299
+ :type,
300
+ :premises,
301
+ :claims)
302
+ SENSITIVE = []
303
+ include Aws::Structure
304
+ end
305
+
306
+ # Indicates that no relevant logical information could be extracted from
307
+ # the input for validation.
308
+ #
309
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningCheckNoTranslationsFinding AWS API Documentation
310
+ #
311
+ class AutomatedReasoningCheckNoTranslationsFinding < Aws::EmptyStructure; end
312
+
313
+ # References a specific automated reasoning policy rule that was applied
314
+ # during evaluation.
315
+ #
316
+ # @!attribute [rw] id
317
+ # The unique identifier of the automated reasoning rule.
318
+ # @return [String]
319
+ #
320
+ # @!attribute [rw] policy_version_arn
321
+ # The ARN of the automated reasoning policy version that contains this
322
+ # rule.
323
+ # @return [String]
324
+ #
325
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningCheckRule AWS API Documentation
326
+ #
327
+ class AutomatedReasoningCheckRule < Struct.new(
328
+ :id,
329
+ :policy_version_arn)
330
+ SENSITIVE = []
331
+ include Aws::Structure
332
+ end
333
+
334
+ # Indicates that the claims could be either true or false depending on
335
+ # additional assumptions not provided in the input.
336
+ #
337
+ # @!attribute [rw] translation
338
+ # The logical translation of the input that this finding evaluates.
339
+ # @return [Types::AutomatedReasoningCheckTranslation]
340
+ #
341
+ # @!attribute [rw] claims_true_scenario
342
+ # An example scenario demonstrating how the claims could be logically
343
+ # true.
344
+ # @return [Types::AutomatedReasoningCheckScenario]
345
+ #
346
+ # @!attribute [rw] claims_false_scenario
347
+ # An example scenario demonstrating how the claims could be logically
348
+ # false.
349
+ # @return [Types::AutomatedReasoningCheckScenario]
350
+ #
351
+ # @!attribute [rw] logic_warning
352
+ # Indication of a logic issue with the translation without needing to
353
+ # consider the automated reasoning policy rules.
354
+ # @return [Types::AutomatedReasoningCheckLogicWarning]
355
+ #
356
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningCheckSatisfiableFinding AWS API Documentation
357
+ #
358
+ class AutomatedReasoningCheckSatisfiableFinding < Struct.new(
359
+ :translation,
360
+ :claims_true_scenario,
361
+ :claims_false_scenario,
362
+ :logic_warning)
363
+ SENSITIVE = []
364
+ include Aws::Structure
365
+ end
366
+
367
+ # Represents a logical scenario where claims can be evaluated as true or
368
+ # false, containing specific logical assignments.
369
+ #
370
+ # @!attribute [rw] statements
371
+ # List of logical assignments and statements that define this
372
+ # scenario.
373
+ # @return [Array<Types::AutomatedReasoningLogicStatement>]
374
+ #
375
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningCheckScenario AWS API Documentation
376
+ #
377
+ class AutomatedReasoningCheckScenario < Struct.new(
378
+ :statements)
379
+ SENSITIVE = []
380
+ include Aws::Structure
381
+ end
382
+
383
+ # Indicates that the input exceeds the processing capacity due to the
384
+ # volume or complexity of the logical information.
385
+ #
386
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningCheckTooComplexFinding AWS API Documentation
387
+ #
388
+ class AutomatedReasoningCheckTooComplexFinding < Aws::EmptyStructure; end
389
+
390
+ # Contains the logical translation of natural language input into formal
391
+ # logical statements, including premises, claims, and confidence scores.
392
+ #
393
+ # @!attribute [rw] premises
394
+ # The logical statements that serve as the foundation or assumptions
395
+ # for the claims.
396
+ # @return [Array<Types::AutomatedReasoningLogicStatement>]
397
+ #
398
+ # @!attribute [rw] claims
399
+ # The logical statements that are being validated against the premises
400
+ # and policy rules.
401
+ # @return [Array<Types::AutomatedReasoningLogicStatement>]
402
+ #
403
+ # @!attribute [rw] untranslated_premises
404
+ # References to portions of the original input text that correspond to
405
+ # the premises but could not be fully translated.
406
+ # @return [Array<Types::AutomatedReasoningCheckInputTextReference>]
407
+ #
408
+ # @!attribute [rw] untranslated_claims
409
+ # References to portions of the original input text that correspond to
410
+ # the claims but could not be fully translated.
411
+ # @return [Array<Types::AutomatedReasoningCheckInputTextReference>]
412
+ #
413
+ # @!attribute [rw] confidence
414
+ # A confidence score between 0 and 1 indicating how certain the system
415
+ # is about the logical translation.
416
+ # @return [Float]
417
+ #
418
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningCheckTranslation AWS API Documentation
419
+ #
420
+ class AutomatedReasoningCheckTranslation < Struct.new(
421
+ :premises,
422
+ :claims,
423
+ :untranslated_premises,
424
+ :untranslated_claims,
425
+ :confidence)
426
+ SENSITIVE = []
427
+ include Aws::Structure
428
+ end
429
+
430
+ # Indicates that the input has multiple valid logical interpretations,
431
+ # requiring additional context or clarification.
432
+ #
433
+ # @!attribute [rw] options
434
+ # Different logical interpretations that were detected during
435
+ # translation of the input.
436
+ # @return [Array<Types::AutomatedReasoningCheckTranslationOption>]
437
+ #
438
+ # @!attribute [rw] difference_scenarios
439
+ # Scenarios showing how the different translation options differ in
440
+ # meaning.
441
+ # @return [Array<Types::AutomatedReasoningCheckScenario>]
442
+ #
443
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningCheckTranslationAmbiguousFinding AWS API Documentation
444
+ #
445
+ class AutomatedReasoningCheckTranslationAmbiguousFinding < Struct.new(
446
+ :options,
447
+ :difference_scenarios)
448
+ SENSITIVE = []
449
+ include Aws::Structure
450
+ end
451
+
452
+ # Represents one possible logical interpretation of ambiguous input
453
+ # content.
454
+ #
455
+ # @!attribute [rw] translations
456
+ # Different logical interpretations that were detected during
457
+ # translation of the input.
458
+ # @return [Array<Types::AutomatedReasoningCheckTranslation>]
459
+ #
460
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningCheckTranslationOption AWS API Documentation
461
+ #
462
+ class AutomatedReasoningCheckTranslationOption < Struct.new(
463
+ :translations)
464
+ SENSITIVE = []
465
+ include Aws::Structure
466
+ end
467
+
468
+ # Indicates that the claims are definitively true and logically implied
469
+ # by the premises, with no possible alternative interpretations.
470
+ #
471
+ # @!attribute [rw] translation
472
+ # The logical translation of the input that this finding validates.
473
+ # @return [Types::AutomatedReasoningCheckTranslation]
474
+ #
475
+ # @!attribute [rw] claims_true_scenario
476
+ # An example scenario demonstrating how the claims are logically true.
477
+ # @return [Types::AutomatedReasoningCheckScenario]
478
+ #
479
+ # @!attribute [rw] supporting_rules
480
+ # The automated reasoning policy rules that support why this result is
481
+ # considered valid.
482
+ # @return [Array<Types::AutomatedReasoningCheckRule>]
483
+ #
484
+ # @!attribute [rw] logic_warning
485
+ # Indication of a logic issue with the translation without needing to
486
+ # consider the automated reasoning policy rules.
487
+ # @return [Types::AutomatedReasoningCheckLogicWarning]
488
+ #
489
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningCheckValidFinding AWS API Documentation
490
+ #
491
+ class AutomatedReasoningCheckValidFinding < Struct.new(
492
+ :translation,
493
+ :claims_true_scenario,
494
+ :supporting_rules,
495
+ :logic_warning)
496
+ SENSITIVE = []
497
+ include Aws::Structure
498
+ end
499
+
500
+ # Represents a logical statement that can be expressed both in formal
501
+ # logic notation and natural language, providing dual representations
502
+ # for better understanding and validation.
503
+ #
504
+ # @!attribute [rw] logic
505
+ # The formal logic representation of the statement using mathematical
506
+ # notation and logical operators.
507
+ # @return [String]
508
+ #
509
+ # @!attribute [rw] natural_language
510
+ # The natural language representation of the logical statement,
511
+ # providing a human-readable interpretation of the formal logic.
512
+ # @return [String]
513
+ #
514
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningLogicStatement AWS API Documentation
515
+ #
516
+ class AutomatedReasoningLogicStatement < Struct.new(
517
+ :logic,
518
+ :natural_language)
519
+ SENSITIVE = [:logic, :natural_language]
520
+ include Aws::Structure
521
+ end
522
+
523
+ # An annotation for adding a new rule to an Automated Reasoning policy
524
+ # using a formal logical expression.
525
+ #
526
+ # @!attribute [rw] expression
527
+ # The formal logical expression that defines the rule, using
528
+ # mathematical notation and referencing policy variables and types.
529
+ # @return [String]
530
+ #
531
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningPolicyAddRuleAnnotation AWS API Documentation
532
+ #
533
+ class AutomatedReasoningPolicyAddRuleAnnotation < Struct.new(
534
+ :expression)
535
+ SENSITIVE = [:expression]
536
+ include Aws::Structure
537
+ end
538
+
539
+ # An annotation for adding a new rule to the policy by converting a
540
+ # natural language description into a formal logical expression.
541
+ #
542
+ # @!attribute [rw] natural_language
543
+ # The natural language description of the rule that should be
544
+ # converted into a formal logical expression.
545
+ # @return [String]
546
+ #
547
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningPolicyAddRuleFromNaturalLanguageAnnotation AWS API Documentation
548
+ #
549
+ class AutomatedReasoningPolicyAddRuleFromNaturalLanguageAnnotation < Struct.new(
550
+ :natural_language)
551
+ SENSITIVE = [:natural_language]
552
+ include Aws::Structure
553
+ end
554
+
555
+ # A mutation operation that adds a new rule to the policy definition
556
+ # during the build process.
557
+ #
558
+ # @!attribute [rw] rule
559
+ # Represents a formal logic rule in an Automated Reasoning policy. For
560
+ # example, rules can be expressed as if-then statements that define
561
+ # logical constraints.
562
+ # @return [Types::AutomatedReasoningPolicyDefinitionRule]
563
+ #
564
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningPolicyAddRuleMutation AWS API Documentation
565
+ #
566
+ class AutomatedReasoningPolicyAddRuleMutation < Struct.new(
567
+ :rule)
568
+ SENSITIVE = []
569
+ include Aws::Structure
570
+ end
571
+
572
+ # An annotation for adding a new custom type to an Automated Reasoning
573
+ # policy, defining a set of possible values for variables.
574
+ #
575
+ # @!attribute [rw] name
576
+ # The name of the new custom type. This name will be used to reference
577
+ # the type in variable definitions and rules.
578
+ # @return [String]
579
+ #
580
+ # @!attribute [rw] description
581
+ # A description of what the custom type represents and how it should
582
+ # be used in the policy.
583
+ # @return [String]
584
+ #
585
+ # @!attribute [rw] values
586
+ # The list of possible values that variables of this type can take,
587
+ # each with its own description and identifier.
588
+ # @return [Array<Types::AutomatedReasoningPolicyDefinitionTypeValue>]
589
+ #
590
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningPolicyAddTypeAnnotation AWS API Documentation
591
+ #
592
+ class AutomatedReasoningPolicyAddTypeAnnotation < Struct.new(
593
+ :name,
594
+ :description,
595
+ :values)
596
+ SENSITIVE = [:name, :description]
597
+ include Aws::Structure
598
+ end
599
+
600
+ # A mutation operation that adds a new custom type to the policy
601
+ # definition during the build process.
602
+ #
603
+ # @!attribute [rw] type
604
+ # Represents a custom user-defined viarble type in an Automated
605
+ # Reasoning policy. Types are enum-based and provide additional
606
+ # context beyond predefined variable types.
607
+ # @return [Types::AutomatedReasoningPolicyDefinitionType]
608
+ #
609
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningPolicyAddTypeMutation AWS API Documentation
610
+ #
611
+ class AutomatedReasoningPolicyAddTypeMutation < Struct.new(
612
+ :type)
613
+ SENSITIVE = []
614
+ include Aws::Structure
615
+ end
616
+
617
+ # Represents a single value that can be added to an existing custom type
618
+ # in the policy.
619
+ #
620
+ # @!attribute [rw] value
621
+ # The identifier or name of the new value to add to the type.
622
+ # @return [String]
623
+ #
624
+ # @!attribute [rw] description
625
+ # A description of what this new type value represents and when it
626
+ # should be used.
627
+ # @return [String]
628
+ #
629
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningPolicyAddTypeValue AWS API Documentation
630
+ #
631
+ class AutomatedReasoningPolicyAddTypeValue < Struct.new(
632
+ :value,
633
+ :description)
634
+ SENSITIVE = [:description]
635
+ include Aws::Structure
636
+ end
637
+
638
+ # An annotation for adding a new variable to an Automated Reasoning
639
+ # policy, which can be used in rule expressions.
640
+ #
641
+ # @!attribute [rw] name
642
+ # The name of the new variable. This name will be used to reference
643
+ # the variable in rule expressions.
644
+ # @return [String]
645
+ #
646
+ # @!attribute [rw] type
647
+ # The type of the variable, which can be a built-in type (like string
648
+ # or number) or a custom type defined in the policy.
649
+ # @return [String]
650
+ #
651
+ # @!attribute [rw] description
652
+ # A description of what the variable represents and how it should be
653
+ # used in rules.
654
+ # @return [String]
655
+ #
656
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningPolicyAddVariableAnnotation AWS API Documentation
657
+ #
658
+ class AutomatedReasoningPolicyAddVariableAnnotation < Struct.new(
659
+ :name,
660
+ :type,
661
+ :description)
662
+ SENSITIVE = [:name, :type, :description]
663
+ include Aws::Structure
664
+ end
665
+
666
+ # A mutation operation that adds a new variable to the policy definition
667
+ # during the build process.
668
+ #
669
+ # @!attribute [rw] variable
670
+ # Represents a variable in an Automated Reasoning policy. Variables
671
+ # represent concepts that can have values assigned during natural
672
+ # language translation.
673
+ # @return [Types::AutomatedReasoningPolicyDefinitionVariable]
674
+ #
675
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningPolicyAddVariableMutation AWS API Documentation
676
+ #
677
+ class AutomatedReasoningPolicyAddVariableMutation < Struct.new(
678
+ :variable)
679
+ SENSITIVE = []
680
+ include Aws::Structure
681
+ end
682
+
683
+ # Contains the various operations that can be performed on an Automated
684
+ # Reasoning policy, including adding, updating, and deleting rules,
685
+ # variables, and types.
686
+ #
687
+ # @note AutomatedReasoningPolicyAnnotation is a union - when making an API calls you must set exactly one of the members.
688
+ #
689
+ # @note AutomatedReasoningPolicyAnnotation is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of AutomatedReasoningPolicyAnnotation corresponding to the set member.
690
+ #
691
+ # @!attribute [rw] add_type
692
+ # An operation to add a new custom type to the policy, defining a set
693
+ # of possible values for policy variables.
694
+ # @return [Types::AutomatedReasoningPolicyAddTypeAnnotation]
695
+ #
696
+ # @!attribute [rw] update_type
697
+ # An operation to modify an existing custom type in the policy, such
698
+ # as changing its name, description, or allowed values.
699
+ # @return [Types::AutomatedReasoningPolicyUpdateTypeAnnotation]
700
+ #
701
+ # @!attribute [rw] delete_type
702
+ # An operation to remove a custom type from the policy. The type must
703
+ # not be referenced by any variables or rules.
704
+ # @return [Types::AutomatedReasoningPolicyDeleteTypeAnnotation]
705
+ #
706
+ # @!attribute [rw] add_variable
707
+ # An operation to add a new variable to the policy, which can be used
708
+ # in rule expressions to represent dynamic values.
709
+ # @return [Types::AutomatedReasoningPolicyAddVariableAnnotation]
710
+ #
711
+ # @!attribute [rw] update_variable
712
+ # An operation to modify an existing variable in the policy, such as
713
+ # changing its name, type, or description.
714
+ # @return [Types::AutomatedReasoningPolicyUpdateVariableAnnotation]
715
+ #
716
+ # @!attribute [rw] delete_variable
717
+ # An operation to remove a variable from the policy. The variable must
718
+ # not be referenced by any rules.
719
+ # @return [Types::AutomatedReasoningPolicyDeleteVariableAnnotation]
720
+ #
721
+ # @!attribute [rw] add_rule
722
+ # An operation to add a new logical rule to the policy using formal
723
+ # mathematical expressions.
724
+ # @return [Types::AutomatedReasoningPolicyAddRuleAnnotation]
725
+ #
726
+ # @!attribute [rw] update_rule
727
+ # An operation to modify an existing rule in the policy, such as
728
+ # changing its logical expression or conditions.
729
+ # @return [Types::AutomatedReasoningPolicyUpdateRuleAnnotation]
730
+ #
731
+ # @!attribute [rw] delete_rule
732
+ # An operation to remove a rule from the policy.
733
+ # @return [Types::AutomatedReasoningPolicyDeleteRuleAnnotation]
734
+ #
735
+ # @!attribute [rw] add_rule_from_natural_language
736
+ # An operation to add a new rule by converting natural language
737
+ # descriptions into formal logical expressions.
738
+ # @return [Types::AutomatedReasoningPolicyAddRuleFromNaturalLanguageAnnotation]
739
+ #
740
+ # @!attribute [rw] update_from_rules_feedback
741
+ # An operation to update the policy based on feedback about how
742
+ # specific rules performed during testing or validation.
743
+ # @return [Types::AutomatedReasoningPolicyUpdateFromRuleFeedbackAnnotation]
744
+ #
745
+ # @!attribute [rw] update_from_scenario_feedback
746
+ # An operation to update the policy based on feedback about how it
747
+ # performed on specific test scenarios.
748
+ # @return [Types::AutomatedReasoningPolicyUpdateFromScenarioFeedbackAnnotation]
749
+ #
750
+ # @!attribute [rw] ingest_content
751
+ # An operation to process and incorporate new content into the policy,
752
+ # extracting additional rules and concepts.
753
+ # @return [Types::AutomatedReasoningPolicyIngestContentAnnotation]
754
+ #
755
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningPolicyAnnotation AWS API Documentation
756
+ #
757
+ class AutomatedReasoningPolicyAnnotation < Struct.new(
758
+ :add_type,
759
+ :update_type,
760
+ :delete_type,
761
+ :add_variable,
762
+ :update_variable,
763
+ :delete_variable,
764
+ :add_rule,
765
+ :update_rule,
766
+ :delete_rule,
767
+ :add_rule_from_natural_language,
768
+ :update_from_rules_feedback,
769
+ :update_from_scenario_feedback,
770
+ :ingest_content,
771
+ :unknown)
772
+ SENSITIVE = []
773
+ include Aws::Structure
774
+ include Aws::Structure::Union
775
+
776
+ class AddType < AutomatedReasoningPolicyAnnotation; end
777
+ class UpdateType < AutomatedReasoningPolicyAnnotation; end
778
+ class DeleteType < AutomatedReasoningPolicyAnnotation; end
779
+ class AddVariable < AutomatedReasoningPolicyAnnotation; end
780
+ class UpdateVariable < AutomatedReasoningPolicyAnnotation; end
781
+ class DeleteVariable < AutomatedReasoningPolicyAnnotation; end
782
+ class AddRule < AutomatedReasoningPolicyAnnotation; end
783
+ class UpdateRule < AutomatedReasoningPolicyAnnotation; end
784
+ class DeleteRule < AutomatedReasoningPolicyAnnotation; end
785
+ class AddRuleFromNaturalLanguage < AutomatedReasoningPolicyAnnotation; end
786
+ class UpdateFromRulesFeedback < AutomatedReasoningPolicyAnnotation; end
787
+ class UpdateFromScenarioFeedback < AutomatedReasoningPolicyAnnotation; end
788
+ class IngestContent < AutomatedReasoningPolicyAnnotation; end
789
+ class Unknown < AutomatedReasoningPolicyAnnotation; end
790
+ end
791
+
792
+ # Contains detailed logging information about the policy build process,
793
+ # including steps taken, decisions made, and any issues encountered.
794
+ #
795
+ # @!attribute [rw] entries
796
+ # A list of log entries documenting each step in the policy build
797
+ # process, including timestamps, status, and detailed messages.
798
+ # @return [Array<Types::AutomatedReasoningPolicyBuildLogEntry>]
799
+ #
800
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningPolicyBuildLog AWS API Documentation
801
+ #
802
+ class AutomatedReasoningPolicyBuildLog < Struct.new(
803
+ :entries)
804
+ SENSITIVE = []
805
+ include Aws::Structure
806
+ end
807
+
808
+ # Represents a single entry in the policy build log, containing
809
+ # information about a specific step or event in the build process.
810
+ #
811
+ # @!attribute [rw] annotation
812
+ # The annotation or operation that was being processed when this log
813
+ # entry was created.
814
+ # @return [Types::AutomatedReasoningPolicyAnnotation]
815
+ #
816
+ # @!attribute [rw] status
817
+ # The status of the build step (e.g., SUCCESS, FAILED, IN\_PROGRESS).
818
+ # @return [String]
819
+ #
820
+ # @!attribute [rw] build_steps
821
+ # Detailed information about the specific build steps that were
822
+ # executed, including any sub-operations or transformations.
823
+ # @return [Array<Types::AutomatedReasoningPolicyBuildStep>]
824
+ #
825
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningPolicyBuildLogEntry AWS API Documentation
826
+ #
827
+ class AutomatedReasoningPolicyBuildLogEntry < Struct.new(
828
+ :annotation,
829
+ :status,
830
+ :build_steps)
831
+ SENSITIVE = []
832
+ include Aws::Structure
833
+ end
834
+
835
+ # Contains the various assets generated during a policy build workflow,
836
+ # including logs, quality reports, and the final policy definition.
837
+ #
838
+ # @note AutomatedReasoningPolicyBuildResultAssets is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of AutomatedReasoningPolicyBuildResultAssets corresponding to the set member.
839
+ #
840
+ # @!attribute [rw] policy_definition
841
+ # Contains the formal logic rules, variables, and custom variable
842
+ # types that define an Automated Reasoning policy. The policy
843
+ # definition specifies the constraints used to validate foundation
844
+ # model responses for accuracy and logical consistency.
845
+ # @return [Types::AutomatedReasoningPolicyDefinition]
846
+ #
847
+ # @!attribute [rw] quality_report
848
+ # A comprehensive report analyzing the quality of the generated
849
+ # policy, including metrics about rule coverage, potential conflicts,
850
+ # and unused elements.
851
+ # @return [Types::AutomatedReasoningPolicyDefinitionQualityReport]
852
+ #
853
+ # @!attribute [rw] build_log
854
+ # The complete build log containing detailed information about each
855
+ # step in the policy generation process.
856
+ # @return [Types::AutomatedReasoningPolicyBuildLog]
857
+ #
858
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningPolicyBuildResultAssets AWS API Documentation
859
+ #
860
+ class AutomatedReasoningPolicyBuildResultAssets < Struct.new(
861
+ :policy_definition,
862
+ :quality_report,
863
+ :build_log,
864
+ :unknown)
865
+ SENSITIVE = []
866
+ include Aws::Structure
867
+ include Aws::Structure::Union
868
+
869
+ class PolicyDefinition < AutomatedReasoningPolicyBuildResultAssets; end
870
+ class QualityReport < AutomatedReasoningPolicyBuildResultAssets; end
871
+ class BuildLog < AutomatedReasoningPolicyBuildResultAssets; end
872
+ class Unknown < AutomatedReasoningPolicyBuildResultAssets; end
873
+ end
874
+
875
+ # Represents a single step in the policy build process, containing
876
+ # context about what was being processed and any messages or results.
877
+ #
878
+ # @!attribute [rw] context
879
+ # Contextual information about what was being processed during this
880
+ # build step, such as the type of operation or the source material
881
+ # being analyzed.
882
+ # @return [Types::AutomatedReasoningPolicyBuildStepContext]
883
+ #
884
+ # @!attribute [rw] prior_element
885
+ # Reference to the previous element or step in the build process,
886
+ # helping to trace the sequence of operations.
887
+ # @return [Types::AutomatedReasoningPolicyDefinitionElement]
888
+ #
889
+ # @!attribute [rw] messages
890
+ # A list of messages generated during this build step, including
891
+ # informational messages, warnings, and error details.
892
+ # @return [Array<Types::AutomatedReasoningPolicyBuildStepMessage>]
893
+ #
894
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningPolicyBuildStep AWS API Documentation
895
+ #
896
+ class AutomatedReasoningPolicyBuildStep < Struct.new(
897
+ :context,
898
+ :prior_element,
899
+ :messages)
900
+ SENSITIVE = []
901
+ include Aws::Structure
902
+ end
903
+
904
+ # Provides context about what type of operation was being performed
905
+ # during a build step.
906
+ #
907
+ # @note AutomatedReasoningPolicyBuildStepContext is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of AutomatedReasoningPolicyBuildStepContext corresponding to the set member.
908
+ #
909
+ # @!attribute [rw] planning
910
+ # Indicates that this build step was part of the planning phase, where
911
+ # the system determines what operations to perform.
912
+ # @return [Types::AutomatedReasoningPolicyPlanning]
913
+ #
914
+ # @!attribute [rw] mutation
915
+ # Indicates that this build step involved modifying the policy
916
+ # structure, such as adding or updating rules, variables, or types.
917
+ # @return [Types::AutomatedReasoningPolicyMutation]
918
+ #
919
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningPolicyBuildStepContext AWS API Documentation
920
+ #
921
+ class AutomatedReasoningPolicyBuildStepContext < Struct.new(
922
+ :planning,
923
+ :mutation,
924
+ :unknown)
925
+ SENSITIVE = []
926
+ include Aws::Structure
927
+ include Aws::Structure::Union
928
+
929
+ class Planning < AutomatedReasoningPolicyBuildStepContext; end
930
+ class Mutation < AutomatedReasoningPolicyBuildStepContext; end
931
+ class Unknown < AutomatedReasoningPolicyBuildStepContext; end
932
+ end
933
+
934
+ # Represents a message generated during a build step, providing
935
+ # information about what happened or any issues encountered.
936
+ #
937
+ # @!attribute [rw] message
938
+ # The content of the message, describing what occurred during the
939
+ # build step.
940
+ # @return [String]
941
+ #
942
+ # @!attribute [rw] message_type
943
+ # The type of message (e.g., INFO, WARNING, ERROR) indicating its
944
+ # severity and purpose.
945
+ # @return [String]
946
+ #
947
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningPolicyBuildStepMessage AWS API Documentation
948
+ #
949
+ class AutomatedReasoningPolicyBuildStepMessage < Struct.new(
950
+ :message,
951
+ :message_type)
952
+ SENSITIVE = []
953
+ include Aws::Structure
954
+ end
955
+
956
+ # Represents a source document used in the policy build workflow,
957
+ # containing the content and metadata needed for policy generation.
958
+ #
959
+ # @!attribute [rw] document
960
+ # The actual content of the source document that will be analyzed to
961
+ # extract policy rules and concepts.
962
+ # @return [String]
963
+ #
964
+ # @!attribute [rw] document_content_type
965
+ # The MIME type of the document content (e.g., text/plain,
966
+ # application/pdf, text/markdown).
967
+ # @return [String]
968
+ #
969
+ # @!attribute [rw] document_name
970
+ # A descriptive name for the document that helps identify its purpose
971
+ # and content.
972
+ # @return [String]
973
+ #
974
+ # @!attribute [rw] document_description
975
+ # A detailed description of the document's content and how it should
976
+ # be used in the policy generation process.
977
+ # @return [String]
978
+ #
979
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningPolicyBuildWorkflowDocument AWS API Documentation
980
+ #
981
+ class AutomatedReasoningPolicyBuildWorkflowDocument < Struct.new(
982
+ :document,
983
+ :document_content_type,
984
+ :document_name,
985
+ :document_description)
986
+ SENSITIVE = [:document_name, :document_description]
987
+ include Aws::Structure
988
+ end
989
+
990
+ # Contains content and instructions for repairing or improving an
991
+ # existing Automated Reasoning policy.
992
+ #
993
+ # @!attribute [rw] annotations
994
+ # Specific annotations or modifications to apply during the policy
995
+ # repair process, such as rule corrections or variable updates.
996
+ # @return [Array<Types::AutomatedReasoningPolicyAnnotation>]
997
+ #
998
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningPolicyBuildWorkflowRepairContent AWS API Documentation
999
+ #
1000
+ class AutomatedReasoningPolicyBuildWorkflowRepairContent < Struct.new(
1001
+ :annotations)
1002
+ SENSITIVE = []
1003
+ include Aws::Structure
1004
+ end
1005
+
1006
+ # Defines the source content for a policy build workflow, which can
1007
+ # include documents, repair instructions, or other input materials.
1008
+ #
1009
+ # @!attribute [rw] policy_definition
1010
+ # Contains the formal logic rules, variables, and custom variable
1011
+ # types that define an Automated Reasoning policy. The policy
1012
+ # definition specifies the constraints used to validate foundation
1013
+ # model responses for accuracy and logical consistency.
1014
+ # @return [Types::AutomatedReasoningPolicyDefinition]
1015
+ #
1016
+ # @!attribute [rw] workflow_content
1017
+ # The actual content to be processed in the build workflow, such as
1018
+ # documents to analyze or repair instructions to apply.
1019
+ # @return [Types::AutomatedReasoningPolicyWorkflowTypeContent]
1020
+ #
1021
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningPolicyBuildWorkflowSource AWS API Documentation
1022
+ #
1023
+ class AutomatedReasoningPolicyBuildWorkflowSource < Struct.new(
1024
+ :policy_definition,
1025
+ :workflow_content)
1026
+ SENSITIVE = []
1027
+ include Aws::Structure
1028
+ end
1029
+
1030
+ # Provides a summary of a policy build workflow, including its current
1031
+ # status, timing information, and key identifiers.
1032
+ #
1033
+ # @!attribute [rw] policy_arn
1034
+ # The Amazon Resource Name (ARN) of the Automated Reasoning policy
1035
+ # associated with this build workflow.
1036
+ # @return [String]
1037
+ #
1038
+ # @!attribute [rw] build_workflow_id
1039
+ # The unique identifier of the build workflow.
1040
+ # @return [String]
1041
+ #
1042
+ # @!attribute [rw] status
1043
+ # The current status of the build workflow (e.g., RUNNING, COMPLETED,
1044
+ # FAILED, CANCELLED).
1045
+ # @return [String]
1046
+ #
1047
+ # @!attribute [rw] build_workflow_type
1048
+ # The type of build workflow (e.g., DOCUMENT\_INGESTION,
1049
+ # POLICY\_REPAIR).
1050
+ # @return [String]
1051
+ #
1052
+ # @!attribute [rw] created_at
1053
+ # The timestamp when the build workflow was created.
1054
+ # @return [Time]
1055
+ #
1056
+ # @!attribute [rw] updated_at
1057
+ # The timestamp when the build workflow was last updated.
1058
+ # @return [Time]
1059
+ #
1060
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningPolicyBuildWorkflowSummary AWS API Documentation
1061
+ #
1062
+ class AutomatedReasoningPolicyBuildWorkflowSummary < Struct.new(
1063
+ :policy_arn,
1064
+ :build_workflow_id,
1065
+ :status,
1066
+ :build_workflow_type,
1067
+ :created_at,
1068
+ :updated_at)
1069
+ SENSITIVE = []
1070
+ include Aws::Structure
1071
+ end
1072
+
1073
+ # Contains the formal logic rules, variables, and custom variable types
1074
+ # that define an Automated Reasoning policy. The policy definition
1075
+ # specifies the constraints used to validate foundation model responses
1076
+ # for accuracy and logical consistency.
1077
+ #
1078
+ # @!attribute [rw] version
1079
+ # The version of the policy definition format.
1080
+ # @return [String]
1081
+ #
1082
+ # @!attribute [rw] types
1083
+ # The custom user-defined vairable types used in the policy. Types are
1084
+ # enum-based variable types that provide additional context beyond the
1085
+ # predefined variable types.
1086
+ # @return [Array<Types::AutomatedReasoningPolicyDefinitionType>]
1087
+ #
1088
+ # @!attribute [rw] rules
1089
+ # The formal logic rules extracted from the source document. Rules
1090
+ # define the logical constraints that determine whether model
1091
+ # responses are valid, invalid, or satisfiable.
1092
+ # @return [Array<Types::AutomatedReasoningPolicyDefinitionRule>]
1093
+ #
1094
+ # @!attribute [rw] variables
1095
+ # The variables that represent concepts in the policy. Variables can
1096
+ # have values assigned when translating natural language into formal
1097
+ # logic. Their descriptions are crucial for accurate translation.
1098
+ # @return [Array<Types::AutomatedReasoningPolicyDefinitionVariable>]
1099
+ #
1100
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningPolicyDefinition AWS API Documentation
1101
+ #
1102
+ class AutomatedReasoningPolicyDefinition < Struct.new(
1103
+ :version,
1104
+ :types,
1105
+ :rules,
1106
+ :variables)
1107
+ SENSITIVE = []
1108
+ include Aws::Structure
1109
+ end
1110
+
1111
+ # Represents a single element in an Automated Reasoning policy
1112
+ # definition, such as a rule, variable, or type definition.
1113
+ #
1114
+ # @note AutomatedReasoningPolicyDefinitionElement is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of AutomatedReasoningPolicyDefinitionElement corresponding to the set member.
1115
+ #
1116
+ # @!attribute [rw] policy_definition_variable
1117
+ # Represents a variable in an Automated Reasoning policy. Variables
1118
+ # represent concepts that can have values assigned during natural
1119
+ # language translation.
1120
+ # @return [Types::AutomatedReasoningPolicyDefinitionVariable]
1121
+ #
1122
+ # @!attribute [rw] policy_definition_type
1123
+ # Represents a custom user-defined viarble type in an Automated
1124
+ # Reasoning policy. Types are enum-based and provide additional
1125
+ # context beyond predefined variable types.
1126
+ # @return [Types::AutomatedReasoningPolicyDefinitionType]
1127
+ #
1128
+ # @!attribute [rw] policy_definition_rule
1129
+ # Represents a formal logic rule in an Automated Reasoning policy. For
1130
+ # example, rules can be expressed as if-then statements that define
1131
+ # logical constraints.
1132
+ # @return [Types::AutomatedReasoningPolicyDefinitionRule]
1133
+ #
1134
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningPolicyDefinitionElement AWS API Documentation
1135
+ #
1136
+ class AutomatedReasoningPolicyDefinitionElement < Struct.new(
1137
+ :policy_definition_variable,
1138
+ :policy_definition_type,
1139
+ :policy_definition_rule,
1140
+ :unknown)
1141
+ SENSITIVE = []
1142
+ include Aws::Structure
1143
+ include Aws::Structure::Union
1144
+
1145
+ class PolicyDefinitionVariable < AutomatedReasoningPolicyDefinitionElement; end
1146
+ class PolicyDefinitionType < AutomatedReasoningPolicyDefinitionElement; end
1147
+ class PolicyDefinitionRule < AutomatedReasoningPolicyDefinitionElement; end
1148
+ class Unknown < AutomatedReasoningPolicyDefinitionElement; end
1149
+ end
1150
+
1151
+ # Provides a comprehensive analysis of the quality and completeness of
1152
+ # an Automated Reasoning policy definition, highlighting potential
1153
+ # issues and optimization opportunities.
1154
+ #
1155
+ # @!attribute [rw] type_count
1156
+ # The total number of custom types defined in the policy.
1157
+ # @return [Integer]
1158
+ #
1159
+ # @!attribute [rw] variable_count
1160
+ # The total number of variables defined in the policy.
1161
+ # @return [Integer]
1162
+ #
1163
+ # @!attribute [rw] rule_count
1164
+ # The total number of rules defined in the policy.
1165
+ # @return [Integer]
1166
+ #
1167
+ # @!attribute [rw] unused_types
1168
+ # A list of custom types that are defined but not referenced by any
1169
+ # variables or rules, suggesting they may be unnecessary.
1170
+ # @return [Array<String>]
1171
+ #
1172
+ # @!attribute [rw] unused_type_values
1173
+ # A list of type values that are defined but never used in any rules,
1174
+ # indicating potential cleanup opportunities.
1175
+ # @return [Array<Types::AutomatedReasoningPolicyDefinitionTypeValuePair>]
1176
+ #
1177
+ # @!attribute [rw] unused_variables
1178
+ # A list of variables that are defined but not referenced by any
1179
+ # rules, suggesting they may be unnecessary.
1180
+ # @return [Array<String>]
1181
+ #
1182
+ # @!attribute [rw] conflicting_rules
1183
+ # A list of rules that may conflict with each other, potentially
1184
+ # leading to inconsistent policy behavior.
1185
+ # @return [Array<String>]
1186
+ #
1187
+ # @!attribute [rw] disjoint_rule_sets
1188
+ # Groups of rules that operate on completely separate sets of
1189
+ # variables, indicating the policy may be addressing multiple
1190
+ # unrelated concerns.
1191
+ # @return [Array<Types::AutomatedReasoningPolicyDisjointRuleSet>]
1192
+ #
1193
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningPolicyDefinitionQualityReport AWS API Documentation
1194
+ #
1195
+ class AutomatedReasoningPolicyDefinitionQualityReport < Struct.new(
1196
+ :type_count,
1197
+ :variable_count,
1198
+ :rule_count,
1199
+ :unused_types,
1200
+ :unused_type_values,
1201
+ :unused_variables,
1202
+ :conflicting_rules,
1203
+ :disjoint_rule_sets)
1204
+ SENSITIVE = [:unused_types, :unused_variables]
1205
+ include Aws::Structure
1206
+ end
1207
+
1208
+ # Represents a formal logic rule in an Automated Reasoning policy. For
1209
+ # example, rules can be expressed as if-then statements that define
1210
+ # logical constraints.
1211
+ #
1212
+ # @!attribute [rw] id
1213
+ # The unique identifier of the rule within the policy.
1214
+ # @return [String]
1215
+ #
1216
+ # @!attribute [rw] expression
1217
+ # The formal logic expression of the rule.
1218
+ # @return [String]
1219
+ #
1220
+ # @!attribute [rw] alternate_expression
1221
+ # The human-readable form of the rule expression, often in natural
1222
+ # language or simplified notation.
1223
+ # @return [String]
1224
+ #
1225
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningPolicyDefinitionRule AWS API Documentation
1226
+ #
1227
+ class AutomatedReasoningPolicyDefinitionRule < Struct.new(
1228
+ :id,
1229
+ :expression,
1230
+ :alternate_expression)
1231
+ SENSITIVE = [:expression, :alternate_expression]
1232
+ include Aws::Structure
1233
+ end
1234
+
1235
+ # Represents a custom user-defined viarble type in an Automated
1236
+ # Reasoning policy. Types are enum-based and provide additional context
1237
+ # beyond predefined variable types.
1238
+ #
1239
+ # @!attribute [rw] name
1240
+ # The name of the custom type.
1241
+ # @return [String]
1242
+ #
1243
+ # @!attribute [rw] description
1244
+ # The description of what the custom type represents.
1245
+ # @return [String]
1246
+ #
1247
+ # @!attribute [rw] values
1248
+ # The possible values for this enum-based type, each with its own
1249
+ # description.
1250
+ # @return [Array<Types::AutomatedReasoningPolicyDefinitionTypeValue>]
1251
+ #
1252
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningPolicyDefinitionType AWS API Documentation
1253
+ #
1254
+ class AutomatedReasoningPolicyDefinitionType < Struct.new(
1255
+ :name,
1256
+ :description,
1257
+ :values)
1258
+ SENSITIVE = [:name, :description]
1259
+ include Aws::Structure
1260
+ end
1261
+
1262
+ # Represents a single value within a custom type definition, including
1263
+ # its identifier and description.
1264
+ #
1265
+ # @!attribute [rw] value
1266
+ # The actual value or identifier for this type value.
1267
+ # @return [String]
1268
+ #
1269
+ # @!attribute [rw] description
1270
+ # A human-readable description explaining what this type value
1271
+ # represents and when it should be used.
1272
+ # @return [String]
1273
+ #
1274
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningPolicyDefinitionTypeValue AWS API Documentation
1275
+ #
1276
+ class AutomatedReasoningPolicyDefinitionTypeValue < Struct.new(
1277
+ :value,
1278
+ :description)
1279
+ SENSITIVE = [:description]
1280
+ include Aws::Structure
1281
+ end
1282
+
1283
+ # Associates a type name with a specific value name, used for
1284
+ # referencing type values in rules and other policy elements.
1285
+ #
1286
+ # @!attribute [rw] type_name
1287
+ # The name of the custom type that contains the referenced value.
1288
+ # @return [String]
1289
+ #
1290
+ # @!attribute [rw] value_name
1291
+ # The name of the specific value within the type.
1292
+ # @return [String]
1293
+ #
1294
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningPolicyDefinitionTypeValuePair AWS API Documentation
1295
+ #
1296
+ class AutomatedReasoningPolicyDefinitionTypeValuePair < Struct.new(
1297
+ :type_name,
1298
+ :value_name)
1299
+ SENSITIVE = [:type_name]
1300
+ include Aws::Structure
1301
+ end
1302
+
1303
+ # Represents a variable in an Automated Reasoning policy. Variables
1304
+ # represent concepts that can have values assigned during natural
1305
+ # language translation.
1306
+ #
1307
+ # @!attribute [rw] name
1308
+ # The name of the variable. Use descriptive names that clearly
1309
+ # indicate the concept being represented.
1310
+ # @return [String]
1311
+ #
1312
+ # @!attribute [rw] type
1313
+ # The data type of the variable. Valid types include bool, int, real,
1314
+ # enum, and custom types that you can provide.
1315
+ # @return [String]
1316
+ #
1317
+ # @!attribute [rw] description
1318
+ # The description of the variable that explains what it represents and
1319
+ # how users might refer to it. Clear and comprehensive descriptions
1320
+ # are essential for accurate natural language translation.
1321
+ # @return [String]
1322
+ #
1323
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningPolicyDefinitionVariable AWS API Documentation
1324
+ #
1325
+ class AutomatedReasoningPolicyDefinitionVariable < Struct.new(
1326
+ :name,
1327
+ :type,
1328
+ :description)
1329
+ SENSITIVE = [:name, :type, :description]
1330
+ include Aws::Structure
1331
+ end
1332
+
1333
+ # An annotation for removing a rule from an Automated Reasoning policy.
1334
+ #
1335
+ # @!attribute [rw] rule_id
1336
+ # The unique identifier of the rule to delete from the policy.
1337
+ # @return [String]
1338
+ #
1339
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningPolicyDeleteRuleAnnotation AWS API Documentation
1340
+ #
1341
+ class AutomatedReasoningPolicyDeleteRuleAnnotation < Struct.new(
1342
+ :rule_id)
1343
+ SENSITIVE = []
1344
+ include Aws::Structure
1345
+ end
1346
+
1347
+ # A mutation operation that removes a rule from the policy definition
1348
+ # during the build process.
1349
+ #
1350
+ # @!attribute [rw] id
1351
+ # The unique identifier of the rule to delete.
1352
+ # @return [String]
1353
+ #
1354
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningPolicyDeleteRuleMutation AWS API Documentation
1355
+ #
1356
+ class AutomatedReasoningPolicyDeleteRuleMutation < Struct.new(
1357
+ :id)
1358
+ SENSITIVE = []
1359
+ include Aws::Structure
1360
+ end
1361
+
1362
+ # An annotation for removing a custom type from an Automated Reasoning
1363
+ # policy.
1364
+ #
1365
+ # @!attribute [rw] name
1366
+ # The name of the custom type to delete from the policy. The type must
1367
+ # not be referenced by any variables or rules.
1368
+ # @return [String]
1369
+ #
1370
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningPolicyDeleteTypeAnnotation AWS API Documentation
1371
+ #
1372
+ class AutomatedReasoningPolicyDeleteTypeAnnotation < Struct.new(
1373
+ :name)
1374
+ SENSITIVE = [:name]
1375
+ include Aws::Structure
1376
+ end
1377
+
1378
+ # A mutation operation that removes a custom type from the policy
1379
+ # definition during the build process.
1380
+ #
1381
+ # @!attribute [rw] name
1382
+ # The name of the custom type to delete.
1383
+ # @return [String]
1384
+ #
1385
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningPolicyDeleteTypeMutation AWS API Documentation
1386
+ #
1387
+ class AutomatedReasoningPolicyDeleteTypeMutation < Struct.new(
1388
+ :name)
1389
+ SENSITIVE = [:name]
1390
+ include Aws::Structure
1391
+ end
1392
+
1393
+ # Represents a value to be removed from an existing custom type in the
1394
+ # policy.
1395
+ #
1396
+ # @!attribute [rw] value
1397
+ # The identifier or name of the value to remove from the type.
1398
+ # @return [String]
1399
+ #
1400
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningPolicyDeleteTypeValue AWS API Documentation
1401
+ #
1402
+ class AutomatedReasoningPolicyDeleteTypeValue < Struct.new(
1403
+ :value)
1404
+ SENSITIVE = []
1405
+ include Aws::Structure
1406
+ end
1407
+
1408
+ # An annotation for removing a variable from an Automated Reasoning
1409
+ # policy.
1410
+ #
1411
+ # @!attribute [rw] name
1412
+ # The name of the variable to delete from the policy. The variable
1413
+ # must not be referenced by any rules.
1414
+ # @return [String]
1415
+ #
1416
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningPolicyDeleteVariableAnnotation AWS API Documentation
1417
+ #
1418
+ class AutomatedReasoningPolicyDeleteVariableAnnotation < Struct.new(
1419
+ :name)
1420
+ SENSITIVE = [:name]
1421
+ include Aws::Structure
1422
+ end
1423
+
1424
+ # A mutation operation that removes a variable from the policy
1425
+ # definition during the build process.
1426
+ #
1427
+ # @!attribute [rw] name
1428
+ # The name of the variable to delete.
1429
+ # @return [String]
1430
+ #
1431
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningPolicyDeleteVariableMutation AWS API Documentation
1432
+ #
1433
+ class AutomatedReasoningPolicyDeleteVariableMutation < Struct.new(
1434
+ :name)
1435
+ SENSITIVE = [:name]
1436
+ include Aws::Structure
1437
+ end
1438
+
1439
+ # Represents a set of rules that operate on completely separate
1440
+ # variables, indicating they address different concerns or domains
1441
+ # within the policy.
1442
+ #
1443
+ # @!attribute [rw] variables
1444
+ # The set of variables that are used by the rules in this disjoint
1445
+ # set.
1446
+ # @return [Array<String>]
1447
+ #
1448
+ # @!attribute [rw] rules
1449
+ # The list of rules that form this disjoint set, all operating on the
1450
+ # same set of variables.
1451
+ # @return [Array<String>]
1452
+ #
1453
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningPolicyDisjointRuleSet AWS API Documentation
1454
+ #
1455
+ class AutomatedReasoningPolicyDisjointRuleSet < Struct.new(
1456
+ :variables,
1457
+ :rules)
1458
+ SENSITIVE = [:variables]
1459
+ include Aws::Structure
1460
+ end
1461
+
1462
+ # An annotation for processing and incorporating new content into an
1463
+ # Automated Reasoning policy.
1464
+ #
1465
+ # @!attribute [rw] content
1466
+ # The new content to be analyzed and incorporated into the policy,
1467
+ # such as additional documents or rule descriptions.
1468
+ # @return [String]
1469
+ #
1470
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningPolicyIngestContentAnnotation AWS API Documentation
1471
+ #
1472
+ class AutomatedReasoningPolicyIngestContentAnnotation < Struct.new(
1473
+ :content)
1474
+ SENSITIVE = [:content]
1475
+ include Aws::Structure
1476
+ end
1477
+
1478
+ # A container for various mutation operations that can be applied to an
1479
+ # Automated Reasoning policy, including adding, updating, and deleting
1480
+ # policy elements.
1481
+ #
1482
+ # @note AutomatedReasoningPolicyMutation is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of AutomatedReasoningPolicyMutation corresponding to the set member.
1483
+ #
1484
+ # @!attribute [rw] add_type
1485
+ # A mutation to add a new custom type to the policy.
1486
+ # @return [Types::AutomatedReasoningPolicyAddTypeMutation]
1487
+ #
1488
+ # @!attribute [rw] update_type
1489
+ # A mutation to modify an existing custom type in the policy.
1490
+ # @return [Types::AutomatedReasoningPolicyUpdateTypeMutation]
1491
+ #
1492
+ # @!attribute [rw] delete_type
1493
+ # A mutation to remove a custom type from the policy.
1494
+ # @return [Types::AutomatedReasoningPolicyDeleteTypeMutation]
1495
+ #
1496
+ # @!attribute [rw] add_variable
1497
+ # A mutation to add a new variable to the policy.
1498
+ # @return [Types::AutomatedReasoningPolicyAddVariableMutation]
1499
+ #
1500
+ # @!attribute [rw] update_variable
1501
+ # A mutation to modify an existing variable in the policy.
1502
+ # @return [Types::AutomatedReasoningPolicyUpdateVariableMutation]
1503
+ #
1504
+ # @!attribute [rw] delete_variable
1505
+ # A mutation to remove a variable from the policy.
1506
+ # @return [Types::AutomatedReasoningPolicyDeleteVariableMutation]
1507
+ #
1508
+ # @!attribute [rw] add_rule
1509
+ # A mutation to add a new rule to the policy.
1510
+ # @return [Types::AutomatedReasoningPolicyAddRuleMutation]
1511
+ #
1512
+ # @!attribute [rw] update_rule
1513
+ # A mutation to modify an existing rule in the policy.
1514
+ # @return [Types::AutomatedReasoningPolicyUpdateRuleMutation]
1515
+ #
1516
+ # @!attribute [rw] delete_rule
1517
+ # A mutation to remove a rule from the policy.
1518
+ # @return [Types::AutomatedReasoningPolicyDeleteRuleMutation]
1519
+ #
1520
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningPolicyMutation AWS API Documentation
1521
+ #
1522
+ class AutomatedReasoningPolicyMutation < Struct.new(
1523
+ :add_type,
1524
+ :update_type,
1525
+ :delete_type,
1526
+ :add_variable,
1527
+ :update_variable,
1528
+ :delete_variable,
1529
+ :add_rule,
1530
+ :update_rule,
1531
+ :delete_rule,
1532
+ :unknown)
1533
+ SENSITIVE = []
1534
+ include Aws::Structure
1535
+ include Aws::Structure::Union
1536
+
1537
+ class AddType < AutomatedReasoningPolicyMutation; end
1538
+ class UpdateType < AutomatedReasoningPolicyMutation; end
1539
+ class DeleteType < AutomatedReasoningPolicyMutation; end
1540
+ class AddVariable < AutomatedReasoningPolicyMutation; end
1541
+ class UpdateVariable < AutomatedReasoningPolicyMutation; end
1542
+ class DeleteVariable < AutomatedReasoningPolicyMutation; end
1543
+ class AddRule < AutomatedReasoningPolicyMutation; end
1544
+ class UpdateRule < AutomatedReasoningPolicyMutation; end
1545
+ class DeleteRule < AutomatedReasoningPolicyMutation; end
1546
+ class Unknown < AutomatedReasoningPolicyMutation; end
1547
+ end
1548
+
1549
+ # Represents the planning phase of policy build workflow, where the
1550
+ # system analyzes source content and determines what operations to
1551
+ # perform.
1552
+ #
1553
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningPolicyPlanning AWS API Documentation
1554
+ #
1555
+ class AutomatedReasoningPolicyPlanning < Aws::EmptyStructure; end
1556
+
1557
+ # Represents a test scenario used to validate an Automated Reasoning
1558
+ # policy, including the test conditions and expected outcomes.
1559
+ #
1560
+ # @!attribute [rw] expression
1561
+ # The logical expression or condition that defines this test scenario.
1562
+ # @return [String]
1563
+ #
1564
+ # @!attribute [rw] alternate_expression
1565
+ # An alternative way to express the same test scenario, used for
1566
+ # validation and comparison purposes.
1567
+ # @return [String]
1568
+ #
1569
+ # @!attribute [rw] rule_ids
1570
+ # The list of rule identifiers that are expected to be triggered or
1571
+ # evaluated by this test scenario.
1572
+ # @return [Array<String>]
1573
+ #
1574
+ # @!attribute [rw] expected_result
1575
+ # The expected outcome when this scenario is evaluated against the
1576
+ # policy (e.g., PASS, FAIL, VIOLATION).
1577
+ # @return [String]
1578
+ #
1579
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningPolicyScenario AWS API Documentation
1580
+ #
1581
+ class AutomatedReasoningPolicyScenario < Struct.new(
1582
+ :expression,
1583
+ :alternate_expression,
1584
+ :rule_ids,
1585
+ :expected_result)
1586
+ SENSITIVE = [:expression, :alternate_expression]
1587
+ include Aws::Structure
1588
+ end
1589
+
1590
+ # Contains summary information about an Automated Reasoning policy,
1591
+ # including metadata and timestamps.
1592
+ #
1593
+ # @!attribute [rw] policy_arn
1594
+ # The Amazon Resource Name (ARN) of the policy.
1595
+ # @return [String]
1596
+ #
1597
+ # @!attribute [rw] name
1598
+ # The name of the policy.
1599
+ # @return [String]
1600
+ #
1601
+ # @!attribute [rw] description
1602
+ # The description of the policy.
1603
+ # @return [String]
1604
+ #
1605
+ # @!attribute [rw] version
1606
+ # The version of the policy.
1607
+ # @return [String]
1608
+ #
1609
+ # @!attribute [rw] policy_id
1610
+ # The unique identifier of the policy.
1611
+ # @return [String]
1612
+ #
1613
+ # @!attribute [rw] created_at
1614
+ # The timestamp when the policy was created.
1615
+ # @return [Time]
1616
+ #
1617
+ # @!attribute [rw] updated_at
1618
+ # The timestamp when the policy was last updated.
1619
+ # @return [Time]
1620
+ #
1621
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningPolicySummary AWS API Documentation
1622
+ #
1623
+ class AutomatedReasoningPolicySummary < Struct.new(
1624
+ :policy_arn,
1625
+ :name,
1626
+ :description,
1627
+ :version,
1628
+ :policy_id,
1629
+ :created_at,
1630
+ :updated_at)
1631
+ SENSITIVE = [:name, :description]
1632
+ include Aws::Structure
1633
+ end
1634
+
1635
+ # Represents a test for validating an Automated Reasoning policy. tests
1636
+ # contain sample inputs and expected outcomes to verify policy behavior.
1637
+ #
1638
+ # @!attribute [rw] test_case_id
1639
+ # The unique identifier of the test.
1640
+ # @return [String]
1641
+ #
1642
+ # @!attribute [rw] guard_content
1643
+ # The output content to be validated by the policy, typically
1644
+ # representing a foundation model response.
1645
+ # @return [String]
1646
+ #
1647
+ # @!attribute [rw] query_content
1648
+ # The input query or prompt that generated the content. This provides
1649
+ # context for the validation.
1650
+ # @return [String]
1651
+ #
1652
+ # @!attribute [rw] expected_aggregated_findings_result
1653
+ # The expected result of the Automated Reasoning check for this test.
1654
+ # @return [String]
1655
+ #
1656
+ # @!attribute [rw] created_at
1657
+ # The timestamp when the test was created.
1658
+ # @return [Time]
1659
+ #
1660
+ # @!attribute [rw] updated_at
1661
+ # The timestamp when the test was last updated.
1662
+ # @return [Time]
1663
+ #
1664
+ # @!attribute [rw] confidence_threshold
1665
+ # The minimum confidence level for logic validation. Content meeting
1666
+ # this threshold is considered high-confidence and can be validated.
1667
+ # @return [Float]
1668
+ #
1669
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningPolicyTestCase AWS API Documentation
1670
+ #
1671
+ class AutomatedReasoningPolicyTestCase < Struct.new(
1672
+ :test_case_id,
1673
+ :guard_content,
1674
+ :query_content,
1675
+ :expected_aggregated_findings_result,
1676
+ :created_at,
1677
+ :updated_at,
1678
+ :confidence_threshold)
1679
+ SENSITIVE = [:guard_content, :query_content]
1680
+ include Aws::Structure
1681
+ end
1682
+
1683
+ # Contains the results of testing an Automated Reasoning policy against
1684
+ # various scenarios and validation checks.
1685
+ #
1686
+ # @!attribute [rw] test_case
1687
+ # Represents a test for validating an Automated Reasoning policy.
1688
+ # tests contain sample inputs and expected outcomes to verify policy
1689
+ # behavior.
1690
+ # @return [Types::AutomatedReasoningPolicyTestCase]
1691
+ #
1692
+ # @!attribute [rw] policy_arn
1693
+ # The Amazon Resource Name (ARN) of the Automated Reasoning policy
1694
+ # that was tested.
1695
+ # @return [String]
1696
+ #
1697
+ # @!attribute [rw] test_run_status
1698
+ # The overall status of the test run (e.g., COMPLETED, FAILED,
1699
+ # IN\_PROGRESS).
1700
+ # @return [String]
1701
+ #
1702
+ # @!attribute [rw] test_findings
1703
+ # Detailed findings from the test run, including any issues,
1704
+ # violations, or unexpected behaviors discovered.
1705
+ # @return [Array<Types::AutomatedReasoningCheckFinding>]
1706
+ #
1707
+ # @!attribute [rw] test_run_result
1708
+ # The overall result of the test run, indicating whether the policy
1709
+ # passed or failed validation.
1710
+ # @return [String]
1711
+ #
1712
+ # @!attribute [rw] aggregated_test_findings_result
1713
+ # A summary of all test findings, aggregated to provide an overall
1714
+ # assessment of policy quality and correctness.
1715
+ # @return [String]
1716
+ #
1717
+ # @!attribute [rw] updated_at
1718
+ # The timestamp when the test results were last updated.
1719
+ # @return [Time]
1720
+ #
1721
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningPolicyTestResult AWS API Documentation
1722
+ #
1723
+ class AutomatedReasoningPolicyTestResult < Struct.new(
1724
+ :test_case,
1725
+ :policy_arn,
1726
+ :test_run_status,
1727
+ :test_findings,
1728
+ :test_run_result,
1729
+ :aggregated_test_findings_result,
1730
+ :updated_at)
1731
+ SENSITIVE = []
1732
+ include Aws::Structure
1733
+ end
1734
+
1735
+ # An annotation for managing values within custom types, including
1736
+ # adding, updating, or removing specific type values.
1737
+ #
1738
+ # @note AutomatedReasoningPolicyTypeValueAnnotation is a union - when making an API calls you must set exactly one of the members.
1739
+ #
1740
+ # @note AutomatedReasoningPolicyTypeValueAnnotation is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of AutomatedReasoningPolicyTypeValueAnnotation corresponding to the set member.
1741
+ #
1742
+ # @!attribute [rw] add_type_value
1743
+ # An operation to add a new value to an existing custom type.
1744
+ # @return [Types::AutomatedReasoningPolicyAddTypeValue]
1745
+ #
1746
+ # @!attribute [rw] update_type_value
1747
+ # An operation to modify an existing value within a custom type.
1748
+ # @return [Types::AutomatedReasoningPolicyUpdateTypeValue]
1749
+ #
1750
+ # @!attribute [rw] delete_type_value
1751
+ # An operation to remove a value from an existing custom type.
1752
+ # @return [Types::AutomatedReasoningPolicyDeleteTypeValue]
1753
+ #
1754
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningPolicyTypeValueAnnotation AWS API Documentation
1755
+ #
1756
+ class AutomatedReasoningPolicyTypeValueAnnotation < Struct.new(
1757
+ :add_type_value,
1758
+ :update_type_value,
1759
+ :delete_type_value,
1760
+ :unknown)
1761
+ SENSITIVE = []
1762
+ include Aws::Structure
1763
+ include Aws::Structure::Union
1764
+
1765
+ class AddTypeValue < AutomatedReasoningPolicyTypeValueAnnotation; end
1766
+ class UpdateTypeValue < AutomatedReasoningPolicyTypeValueAnnotation; end
1767
+ class DeleteTypeValue < AutomatedReasoningPolicyTypeValueAnnotation; end
1768
+ class Unknown < AutomatedReasoningPolicyTypeValueAnnotation; end
1769
+ end
1770
+
1771
+ # An annotation for updating the policy based on feedback about how
1772
+ # specific rules performed during testing or real-world usage.
1773
+ #
1774
+ # @!attribute [rw] rule_ids
1775
+ # The list of rule identifiers that the feedback applies to.
1776
+ # @return [Array<String>]
1777
+ #
1778
+ # @!attribute [rw] feedback
1779
+ # The feedback information about rule performance, including
1780
+ # suggestions for improvements or corrections.
1781
+ # @return [String]
1782
+ #
1783
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningPolicyUpdateFromRuleFeedbackAnnotation AWS API Documentation
1784
+ #
1785
+ class AutomatedReasoningPolicyUpdateFromRuleFeedbackAnnotation < Struct.new(
1786
+ :rule_ids,
1787
+ :feedback)
1788
+ SENSITIVE = [:feedback]
1789
+ include Aws::Structure
1790
+ end
1791
+
1792
+ # An annotation for updating the policy based on feedback about how it
1793
+ # performed on specific test scenarios.
1794
+ #
1795
+ # @!attribute [rw] rule_ids
1796
+ # The list of rule identifiers that were involved in the scenario
1797
+ # being evaluated.
1798
+ # @return [Array<String>]
1799
+ #
1800
+ # @!attribute [rw] scenario_expression
1801
+ # The logical expression that defines the test scenario that generated
1802
+ # this feedback.
1803
+ # @return [String]
1804
+ #
1805
+ # @!attribute [rw] feedback
1806
+ # The feedback information about scenario performance, including any
1807
+ # issues or improvements identified.
1808
+ # @return [String]
1809
+ #
1810
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningPolicyUpdateFromScenarioFeedbackAnnotation AWS API Documentation
1811
+ #
1812
+ class AutomatedReasoningPolicyUpdateFromScenarioFeedbackAnnotation < Struct.new(
1813
+ :rule_ids,
1814
+ :scenario_expression,
1815
+ :feedback)
1816
+ SENSITIVE = [:scenario_expression, :feedback]
1817
+ include Aws::Structure
1818
+ end
1819
+
1820
+ # An annotation for modifying an existing rule in an Automated Reasoning
1821
+ # policy.
1822
+ #
1823
+ # @!attribute [rw] rule_id
1824
+ # The unique identifier of the rule to update.
1825
+ # @return [String]
1826
+ #
1827
+ # @!attribute [rw] expression
1828
+ # The new formal logical expression for the rule, replacing the
1829
+ # previous expression.
1830
+ # @return [String]
1831
+ #
1832
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningPolicyUpdateRuleAnnotation AWS API Documentation
1833
+ #
1834
+ class AutomatedReasoningPolicyUpdateRuleAnnotation < Struct.new(
1835
+ :rule_id,
1836
+ :expression)
1837
+ SENSITIVE = [:expression]
1838
+ include Aws::Structure
1839
+ end
1840
+
1841
+ # A mutation operation that modifies an existing rule in the policy
1842
+ # definition during the build process.
1843
+ #
1844
+ # @!attribute [rw] rule
1845
+ # Represents a formal logic rule in an Automated Reasoning policy. For
1846
+ # example, rules can be expressed as if-then statements that define
1847
+ # logical constraints.
1848
+ # @return [Types::AutomatedReasoningPolicyDefinitionRule]
1849
+ #
1850
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningPolicyUpdateRuleMutation AWS API Documentation
1851
+ #
1852
+ class AutomatedReasoningPolicyUpdateRuleMutation < Struct.new(
1853
+ :rule)
1854
+ SENSITIVE = []
1855
+ include Aws::Structure
1856
+ end
1857
+
1858
+ # An annotation for modifying an existing custom type in an Automated
1859
+ # Reasoning policy.
1860
+ #
1861
+ # @!attribute [rw] name
1862
+ # The current name of the custom type to update.
1863
+ # @return [String]
1864
+ #
1865
+ # @!attribute [rw] new_name
1866
+ # The new name for the custom type, if you want to rename it. If not
1867
+ # provided, the name remains unchanged.
1868
+ # @return [String]
1869
+ #
1870
+ # @!attribute [rw] description
1871
+ # The new description for the custom type, replacing the previous
1872
+ # description.
1873
+ # @return [String]
1874
+ #
1875
+ # @!attribute [rw] values
1876
+ # The updated list of values for the custom type, which can include
1877
+ # additions, modifications, or removals.
1878
+ # @return [Array<Types::AutomatedReasoningPolicyTypeValueAnnotation>]
1879
+ #
1880
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningPolicyUpdateTypeAnnotation AWS API Documentation
1881
+ #
1882
+ class AutomatedReasoningPolicyUpdateTypeAnnotation < Struct.new(
1883
+ :name,
1884
+ :new_name,
1885
+ :description,
1886
+ :values)
1887
+ SENSITIVE = [:name, :new_name, :description]
1888
+ include Aws::Structure
1889
+ end
1890
+
1891
+ # A mutation operation that modifies an existing custom type in the
1892
+ # policy definition during the build process.
1893
+ #
1894
+ # @!attribute [rw] type
1895
+ # Represents a custom user-defined viarble type in an Automated
1896
+ # Reasoning policy. Types are enum-based and provide additional
1897
+ # context beyond predefined variable types.
1898
+ # @return [Types::AutomatedReasoningPolicyDefinitionType]
1899
+ #
1900
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningPolicyUpdateTypeMutation AWS API Documentation
1901
+ #
1902
+ class AutomatedReasoningPolicyUpdateTypeMutation < Struct.new(
1903
+ :type)
1904
+ SENSITIVE = []
1905
+ include Aws::Structure
1906
+ end
1907
+
1908
+ # Represents a modification to a value within an existing custom type.
1909
+ #
1910
+ # @!attribute [rw] value
1911
+ # The current identifier or name of the type value to update.
1912
+ # @return [String]
1913
+ #
1914
+ # @!attribute [rw] new_value
1915
+ # The new identifier or name for the type value, if you want to rename
1916
+ # it.
1917
+ # @return [String]
1918
+ #
1919
+ # @!attribute [rw] description
1920
+ # The new description for the type value, replacing the previous
1921
+ # description.
1922
+ # @return [String]
1923
+ #
1924
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningPolicyUpdateTypeValue AWS API Documentation
1925
+ #
1926
+ class AutomatedReasoningPolicyUpdateTypeValue < Struct.new(
1927
+ :value,
1928
+ :new_value,
1929
+ :description)
1930
+ SENSITIVE = [:description]
1931
+ include Aws::Structure
1932
+ end
1933
+
1934
+ # An annotation for modifying an existing variable in an Automated
1935
+ # Reasoning policy.
1936
+ #
1937
+ # @!attribute [rw] name
1938
+ # The current name of the variable to update.
1939
+ # @return [String]
1940
+ #
1941
+ # @!attribute [rw] new_name
1942
+ # The new name for the variable, if you want to rename it. If not
1943
+ # provided, the name remains unchanged.
1944
+ # @return [String]
1945
+ #
1946
+ # @!attribute [rw] description
1947
+ # The new description for the variable, replacing the previous
1948
+ # description.
1949
+ # @return [String]
1950
+ #
1951
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningPolicyUpdateVariableAnnotation AWS API Documentation
1952
+ #
1953
+ class AutomatedReasoningPolicyUpdateVariableAnnotation < Struct.new(
1954
+ :name,
1955
+ :new_name,
1956
+ :description)
1957
+ SENSITIVE = [:name, :new_name, :description]
1958
+ include Aws::Structure
1959
+ end
1960
+
1961
+ # A mutation operation that modifies an existing variable in the policy
1962
+ # definition during the build process.
1963
+ #
1964
+ # @!attribute [rw] variable
1965
+ # Represents a variable in an Automated Reasoning policy. Variables
1966
+ # represent concepts that can have values assigned during natural
1967
+ # language translation.
1968
+ # @return [Types::AutomatedReasoningPolicyDefinitionVariable]
1969
+ #
1970
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningPolicyUpdateVariableMutation AWS API Documentation
1971
+ #
1972
+ class AutomatedReasoningPolicyUpdateVariableMutation < Struct.new(
1973
+ :variable)
1974
+ SENSITIVE = []
1975
+ include Aws::Structure
1976
+ end
1977
+
1978
+ # Defines the content and configuration for different types of policy
1979
+ # build workflows.
1980
+ #
1981
+ # @note AutomatedReasoningPolicyWorkflowTypeContent is a union - when making an API calls you must set exactly one of the members.
1982
+ #
1983
+ # @!attribute [rw] documents
1984
+ # The list of documents to be processed in a document ingestion
1985
+ # workflow.
1986
+ # @return [Array<Types::AutomatedReasoningPolicyBuildWorkflowDocument>]
1987
+ #
1988
+ # @!attribute [rw] policy_repair_assets
1989
+ # The assets and instructions needed for a policy repair workflow,
1990
+ # including repair annotations and guidance.
1991
+ # @return [Types::AutomatedReasoningPolicyBuildWorkflowRepairContent]
1992
+ #
1993
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningPolicyWorkflowTypeContent AWS API Documentation
1994
+ #
1995
+ class AutomatedReasoningPolicyWorkflowTypeContent < Struct.new(
1996
+ :documents,
1997
+ :policy_repair_assets,
1998
+ :unknown)
1999
+ SENSITIVE = []
2000
+ include Aws::Structure
2001
+ include Aws::Structure::Union
2002
+
2003
+ class Documents < AutomatedReasoningPolicyWorkflowTypeContent; end
2004
+ class PolicyRepairAssets < AutomatedReasoningPolicyWorkflowTypeContent; end
2005
+ class Unknown < AutomatedReasoningPolicyWorkflowTypeContent; end
2006
+ end
2007
+
131
2008
  # A JSON array that provides the status of the evaluation jobs being
132
2009
  # deleted.
133
2010
  #
@@ -246,6 +2123,30 @@ module Aws::Bedrock
246
2123
  include Aws::Structure
247
2124
  end
248
2125
 
2126
+ # @!attribute [rw] policy_arn
2127
+ # The Amazon Resource Name (ARN) of the Automated Reasoning policy
2128
+ # whose build workflow you want to cancel.
2129
+ # @return [String]
2130
+ #
2131
+ # @!attribute [rw] build_workflow_id
2132
+ # The unique identifier of the build workflow to cancel. You can get
2133
+ # this ID from the StartAutomatedReasoningPolicyBuildWorkflow response
2134
+ # or by listing build workflows.
2135
+ # @return [String]
2136
+ #
2137
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/CancelAutomatedReasoningPolicyBuildWorkflowRequest AWS API Documentation
2138
+ #
2139
+ class CancelAutomatedReasoningPolicyBuildWorkflowRequest < Struct.new(
2140
+ :policy_arn,
2141
+ :build_workflow_id)
2142
+ SENSITIVE = []
2143
+ include Aws::Structure
2144
+ end
2145
+
2146
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/CancelAutomatedReasoningPolicyBuildWorkflowResponse AWS API Documentation
2147
+ #
2148
+ class CancelAutomatedReasoningPolicyBuildWorkflowResponse < Aws::EmptyStructure; end
2149
+
249
2150
  # CloudWatch logging configuration.
250
2151
  #
251
2152
  # @!attribute [rw] log_group_name
@@ -283,6 +2184,277 @@ module Aws::Bedrock
283
2184
  include Aws::Structure
284
2185
  end
285
2186
 
2187
+ # @!attribute [rw] name
2188
+ # A unique name for the Automated Reasoning policy. The name must be
2189
+ # between 1 and 63 characters and can contain letters, numbers,
2190
+ # hyphens, and underscores.
2191
+ # @return [String]
2192
+ #
2193
+ # @!attribute [rw] description
2194
+ # A description of the Automated Reasoning policy. Use this to provide
2195
+ # context about the policy's purpose and the types of validations it
2196
+ # performs.
2197
+ # @return [String]
2198
+ #
2199
+ # @!attribute [rw] client_request_token
2200
+ # A unique, case-sensitive identifier to ensure that the operation
2201
+ # completes no more than once. If this token matches a previous
2202
+ # request, Amazon Bedrock ignores the request but doesn't return an
2203
+ # error.
2204
+ #
2205
+ # **A suitable default value is auto-generated.** You should normally
2206
+ # not need to pass this option.
2207
+ # @return [String]
2208
+ #
2209
+ # @!attribute [rw] policy_definition
2210
+ # The policy definition that contains the formal logic rules,
2211
+ # variables, and custom variable types used to validate foundation
2212
+ # model responses in your application.
2213
+ # @return [Types::AutomatedReasoningPolicyDefinition]
2214
+ #
2215
+ # @!attribute [rw] tags
2216
+ # A list of tags to associate with the Automated Reasoning policy.
2217
+ # Tags help you organize and manage your policies.
2218
+ # @return [Array<Types::Tag>]
2219
+ #
2220
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/CreateAutomatedReasoningPolicyRequest AWS API Documentation
2221
+ #
2222
+ class CreateAutomatedReasoningPolicyRequest < Struct.new(
2223
+ :name,
2224
+ :description,
2225
+ :client_request_token,
2226
+ :policy_definition,
2227
+ :tags)
2228
+ SENSITIVE = [:name, :description]
2229
+ include Aws::Structure
2230
+ end
2231
+
2232
+ # @!attribute [rw] policy_arn
2233
+ # The Amazon Resource Name (ARN) of the Automated Reasoning policy
2234
+ # that you created.
2235
+ # @return [String]
2236
+ #
2237
+ # @!attribute [rw] version
2238
+ # The version number of the newly created Automated Reasoning policy.
2239
+ # The initial version is always DRAFT.
2240
+ # @return [String]
2241
+ #
2242
+ # @!attribute [rw] name
2243
+ # The name of the Automated Reasoning policy.
2244
+ # @return [String]
2245
+ #
2246
+ # @!attribute [rw] description
2247
+ # The description of the Automated Reasoning policy.
2248
+ # @return [String]
2249
+ #
2250
+ # @!attribute [rw] definition_hash
2251
+ # The hash of the policy definition. This is used as a concurrency
2252
+ # token for creating policy versions that you can use in your
2253
+ # application.
2254
+ # @return [String]
2255
+ #
2256
+ # @!attribute [rw] created_at
2257
+ # The timestamp when the policy was created.
2258
+ # @return [Time]
2259
+ #
2260
+ # @!attribute [rw] updated_at
2261
+ # The timestamp when the policy was last updated.
2262
+ # @return [Time]
2263
+ #
2264
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/CreateAutomatedReasoningPolicyResponse AWS API Documentation
2265
+ #
2266
+ class CreateAutomatedReasoningPolicyResponse < Struct.new(
2267
+ :policy_arn,
2268
+ :version,
2269
+ :name,
2270
+ :description,
2271
+ :definition_hash,
2272
+ :created_at,
2273
+ :updated_at)
2274
+ SENSITIVE = [:name, :description]
2275
+ include Aws::Structure
2276
+ end
2277
+
2278
+ # @!attribute [rw] policy_arn
2279
+ # The Amazon Resource Name (ARN) of the Automated Reasoning policy for
2280
+ # which to create the test.
2281
+ # @return [String]
2282
+ #
2283
+ # @!attribute [rw] guard_content
2284
+ # The output content that's validated by the Automated Reasoning
2285
+ # policy. This represents the foundation model response that will be
2286
+ # checked for accuracy.
2287
+ # @return [String]
2288
+ #
2289
+ # @!attribute [rw] query_content
2290
+ # The input query or prompt that generated the content. This provides
2291
+ # context for the validation.
2292
+ # @return [String]
2293
+ #
2294
+ # @!attribute [rw] expected_aggregated_findings_result
2295
+ # The expected result of the Automated Reasoning check. Valid values
2296
+ # include: , TOO\_COMPLEX, and NO\_TRANSLATIONS.
2297
+ #
2298
+ # * `VALID` - The claims are true. The claims are implied by the
2299
+ # premises and the Automated Reasoning policy. Given the Automated
2300
+ # Reasoning policy and premises, it is not possible for these claims
2301
+ # to be false. In other words, there are no alternative answers that
2302
+ # are true that contradict the claims.
2303
+ #
2304
+ # * `INVALID` - The claims are false. The claims are not implied by
2305
+ # the premises and Automated Reasoning policy. Furthermore, there
2306
+ # exists different claims that are consistent with the premises and
2307
+ # Automated Reasoning policy.
2308
+ #
2309
+ # * `SATISFIABLE` - The claims can be true or false. It depends on
2310
+ # what assumptions are made for the claim to be implied from the
2311
+ # premises and Automated Reasoning policy rules. In this situation,
2312
+ # different assumptions can make input claims false and alternative
2313
+ # claims true.
2314
+ #
2315
+ # * `IMPOSSIBLE` - Automated Reasoning can’t make a statement about
2316
+ # the claims. This can happen if the premises are logically
2317
+ # incorrect, or if there is a conflict within the Automated
2318
+ # Reasoning policy itself.
2319
+ #
2320
+ # * `TRANSLATION_AMBIGUOUS` - Detected an ambiguity in the translation
2321
+ # meant it would be unsound to continue with validity checking.
2322
+ # Additional context or follow-up questions might be needed to get
2323
+ # translation to succeed.
2324
+ #
2325
+ # * `TOO_COMPLEX` - The input contains too much information for
2326
+ # Automated Reasoning to process within its latency limits.
2327
+ #
2328
+ # * `NO_TRANSLATIONS` - Identifies that some or all of the input
2329
+ # prompt wasn't translated into logic. This can happen if the input
2330
+ # isn't relevant to the Automated Reasoning policy, or if the
2331
+ # policy doesn't have variables to model relevant input. If
2332
+ # Automated Reasoning can't translate anything, you get a single
2333
+ # `NO_TRANSLATIONS` finding. You might also see a `NO_TRANSLATIONS`
2334
+ # (along with other findings) if some part of the validation isn't
2335
+ # translated.
2336
+ # @return [String]
2337
+ #
2338
+ # @!attribute [rw] client_request_token
2339
+ # A unique, case-sensitive identifier to ensure that the operation
2340
+ # completes no more than one time. If this token matches a previous
2341
+ # request, Amazon Bedrock ignores the request, but does not return an
2342
+ # error.
2343
+ #
2344
+ # **A suitable default value is auto-generated.** You should normally
2345
+ # not need to pass this option.
2346
+ # @return [String]
2347
+ #
2348
+ # @!attribute [rw] confidence_threshold
2349
+ # The minimum confidence level for logic validation. Content that
2350
+ # meets the threshold is considered a high-confidence finding that can
2351
+ # be validated.
2352
+ # @return [Float]
2353
+ #
2354
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/CreateAutomatedReasoningPolicyTestCaseRequest AWS API Documentation
2355
+ #
2356
+ class CreateAutomatedReasoningPolicyTestCaseRequest < Struct.new(
2357
+ :policy_arn,
2358
+ :guard_content,
2359
+ :query_content,
2360
+ :expected_aggregated_findings_result,
2361
+ :client_request_token,
2362
+ :confidence_threshold)
2363
+ SENSITIVE = [:guard_content, :query_content]
2364
+ include Aws::Structure
2365
+ end
2366
+
2367
+ # @!attribute [rw] policy_arn
2368
+ # The Amazon Resource Name (ARN) of the policy for which the test was
2369
+ # created.
2370
+ # @return [String]
2371
+ #
2372
+ # @!attribute [rw] test_case_id
2373
+ # The unique identifier of the created test.
2374
+ # @return [String]
2375
+ #
2376
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/CreateAutomatedReasoningPolicyTestCaseResponse AWS API Documentation
2377
+ #
2378
+ class CreateAutomatedReasoningPolicyTestCaseResponse < Struct.new(
2379
+ :policy_arn,
2380
+ :test_case_id)
2381
+ SENSITIVE = []
2382
+ include Aws::Structure
2383
+ end
2384
+
2385
+ # @!attribute [rw] policy_arn
2386
+ # The Amazon Resource Name (ARN) of the Automated Reasoning policy for
2387
+ # which to create a version.
2388
+ # @return [String]
2389
+ #
2390
+ # @!attribute [rw] client_request_token
2391
+ # A unique, case-sensitive identifier to ensure that the operation
2392
+ # completes no more than one time. If this token matches a previous
2393
+ # request, Amazon Bedrock ignores the request, but does not return an
2394
+ # error.
2395
+ #
2396
+ # **A suitable default value is auto-generated.** You should normally
2397
+ # not need to pass this option.
2398
+ # @return [String]
2399
+ #
2400
+ # @!attribute [rw] last_updated_definition_hash
2401
+ # The hash of the current policy definition used as a concurrency
2402
+ # token to ensure the policy hasn't been modified since you last
2403
+ # retrieved it.
2404
+ # @return [String]
2405
+ #
2406
+ # @!attribute [rw] tags
2407
+ # A list of tags to associate with the policy version.
2408
+ # @return [Array<Types::Tag>]
2409
+ #
2410
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/CreateAutomatedReasoningPolicyVersionRequest AWS API Documentation
2411
+ #
2412
+ class CreateAutomatedReasoningPolicyVersionRequest < Struct.new(
2413
+ :policy_arn,
2414
+ :client_request_token,
2415
+ :last_updated_definition_hash,
2416
+ :tags)
2417
+ SENSITIVE = []
2418
+ include Aws::Structure
2419
+ end
2420
+
2421
+ # @!attribute [rw] policy_arn
2422
+ # The versioned Amazon Resource Name (ARN) of the policy version.
2423
+ # @return [String]
2424
+ #
2425
+ # @!attribute [rw] version
2426
+ # The version number of the policy version.
2427
+ # @return [String]
2428
+ #
2429
+ # @!attribute [rw] name
2430
+ # The name of the policy version.
2431
+ # @return [String]
2432
+ #
2433
+ # @!attribute [rw] description
2434
+ # The description of the policy version.
2435
+ # @return [String]
2436
+ #
2437
+ # @!attribute [rw] definition_hash
2438
+ # The hash of the policy definition for this version.
2439
+ # @return [String]
2440
+ #
2441
+ # @!attribute [rw] created_at
2442
+ # The timestamp when the policy version was created.
2443
+ # @return [Time]
2444
+ #
2445
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/CreateAutomatedReasoningPolicyVersionResponse AWS API Documentation
2446
+ #
2447
+ class CreateAutomatedReasoningPolicyVersionResponse < Struct.new(
2448
+ :policy_arn,
2449
+ :version,
2450
+ :name,
2451
+ :description,
2452
+ :definition_hash,
2453
+ :created_at)
2454
+ SENSITIVE = [:name, :description]
2455
+ include Aws::Structure
2456
+ end
2457
+
286
2458
  # @!attribute [rw] model_deployment_name
287
2459
  # The name for the custom model deployment. The name must be unique
288
2460
  # within your Amazon Web Services account and Region.
@@ -594,6 +2766,11 @@ module Aws::Bedrock
594
2766
  # guardrail.
595
2767
  # @return [Types::GuardrailContextualGroundingPolicyConfig]
596
2768
  #
2769
+ # @!attribute [rw] automated_reasoning_policy_config
2770
+ # Optional configuration for integrating Automated Reasoning policies
2771
+ # with the new guardrail.
2772
+ # @return [Types::GuardrailAutomatedReasoningPolicyConfig]
2773
+ #
597
2774
  # @!attribute [rw] cross_region_config
598
2775
  # The system-defined guardrail profile that you're using with your
599
2776
  # guardrail. Guardrail profiles define the destination Amazon Web
@@ -648,6 +2825,7 @@ module Aws::Bedrock
648
2825
  :word_policy_config,
649
2826
  :sensitive_information_policy_config,
650
2827
  :contextual_grounding_policy_config,
2828
+ :automated_reasoning_policy_config,
651
2829
  :cross_region_config,
652
2830
  :blocked_input_messaging,
653
2831
  :blocked_outputs_messaging,
@@ -1605,54 +3783,128 @@ module Aws::Bedrock
1605
3783
  include Aws::Structure
1606
3784
  end
1607
3785
 
1608
- # A model customization configuration
1609
- #
1610
- # @note CustomizationConfig is a union - when making an API calls you must set exactly one of the members.
1611
- #
1612
- # @note CustomizationConfig is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of CustomizationConfig corresponding to the set member.
3786
+ # A model customization configuration
3787
+ #
3788
+ # @note CustomizationConfig is a union - when making an API calls you must set exactly one of the members.
3789
+ #
3790
+ # @note CustomizationConfig is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of CustomizationConfig corresponding to the set member.
3791
+ #
3792
+ # @!attribute [rw] distillation_config
3793
+ # The Distillation configuration for the custom model.
3794
+ # @return [Types::DistillationConfig]
3795
+ #
3796
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/CustomizationConfig AWS API Documentation
3797
+ #
3798
+ class CustomizationConfig < Struct.new(
3799
+ :distillation_config,
3800
+ :unknown)
3801
+ SENSITIVE = []
3802
+ include Aws::Structure
3803
+ include Aws::Structure::Union
3804
+
3805
+ class DistillationConfig < CustomizationConfig; end
3806
+ class Unknown < CustomizationConfig; end
3807
+ end
3808
+
3809
+ # For a Distillation job, the status details for the data processing
3810
+ # sub-task of the job.
3811
+ #
3812
+ # @!attribute [rw] status
3813
+ # The status of the data processing sub-task of the job.
3814
+ # @return [String]
3815
+ #
3816
+ # @!attribute [rw] creation_time
3817
+ # The start time of the data processing sub-task of the job.
3818
+ # @return [Time]
3819
+ #
3820
+ # @!attribute [rw] last_modified_time
3821
+ # The latest update to the data processing sub-task of the job.
3822
+ # @return [Time]
3823
+ #
3824
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/DataProcessingDetails AWS API Documentation
3825
+ #
3826
+ class DataProcessingDetails < Struct.new(
3827
+ :status,
3828
+ :creation_time,
3829
+ :last_modified_time)
3830
+ SENSITIVE = []
3831
+ include Aws::Structure
3832
+ end
3833
+
3834
+ # @!attribute [rw] policy_arn
3835
+ # The Amazon Resource Name (ARN) of the Automated Reasoning policy
3836
+ # whose build workflow you want to delete.
3837
+ # @return [String]
3838
+ #
3839
+ # @!attribute [rw] build_workflow_id
3840
+ # The unique identifier of the build workflow to delete.
3841
+ # @return [String]
3842
+ #
3843
+ # @!attribute [rw] last_updated_at
3844
+ # The timestamp when the build workflow was last updated. This is used
3845
+ # for optimistic concurrency control to prevent accidental deletion of
3846
+ # workflows that have been modified.
3847
+ # @return [Time]
3848
+ #
3849
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/DeleteAutomatedReasoningPolicyBuildWorkflowRequest AWS API Documentation
3850
+ #
3851
+ class DeleteAutomatedReasoningPolicyBuildWorkflowRequest < Struct.new(
3852
+ :policy_arn,
3853
+ :build_workflow_id,
3854
+ :last_updated_at)
3855
+ SENSITIVE = []
3856
+ include Aws::Structure
3857
+ end
3858
+
3859
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/DeleteAutomatedReasoningPolicyBuildWorkflowResponse AWS API Documentation
1613
3860
  #
1614
- # @!attribute [rw] distillation_config
1615
- # The Distillation configuration for the custom model.
1616
- # @return [Types::DistillationConfig]
3861
+ class DeleteAutomatedReasoningPolicyBuildWorkflowResponse < Aws::EmptyStructure; end
3862
+
3863
+ # @!attribute [rw] policy_arn
3864
+ # The Amazon Resource Name (ARN) of the Automated Reasoning policy to
3865
+ # delete.
3866
+ # @return [String]
1617
3867
  #
1618
- # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/CustomizationConfig AWS API Documentation
3868
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/DeleteAutomatedReasoningPolicyRequest AWS API Documentation
1619
3869
  #
1620
- class CustomizationConfig < Struct.new(
1621
- :distillation_config,
1622
- :unknown)
3870
+ class DeleteAutomatedReasoningPolicyRequest < Struct.new(
3871
+ :policy_arn)
1623
3872
  SENSITIVE = []
1624
3873
  include Aws::Structure
1625
- include Aws::Structure::Union
1626
-
1627
- class DistillationConfig < CustomizationConfig; end
1628
- class Unknown < CustomizationConfig; end
1629
3874
  end
1630
3875
 
1631
- # For a Distillation job, the status details for the data processing
1632
- # sub-task of the job.
3876
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/DeleteAutomatedReasoningPolicyResponse AWS API Documentation
1633
3877
  #
1634
- # @!attribute [rw] status
1635
- # The status of the data processing sub-task of the job.
3878
+ class DeleteAutomatedReasoningPolicyResponse < Aws::EmptyStructure; end
3879
+
3880
+ # @!attribute [rw] policy_arn
3881
+ # The Amazon Resource Name (ARN) of the Automated Reasoning policy
3882
+ # that contains the test.
1636
3883
  # @return [String]
1637
3884
  #
1638
- # @!attribute [rw] creation_time
1639
- # The start time of the data processing sub-task of the job.
1640
- # @return [Time]
3885
+ # @!attribute [rw] test_case_id
3886
+ # The unique identifier of the test to delete.
3887
+ # @return [String]
1641
3888
  #
1642
- # @!attribute [rw] last_modified_time
1643
- # The latest update to the data processing sub-task of the job.
3889
+ # @!attribute [rw] last_updated_at
3890
+ # The timestamp when the test was last updated. This is used as a
3891
+ # concurrency token to prevent conflicting modifications.
1644
3892
  # @return [Time]
1645
3893
  #
1646
- # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/DataProcessingDetails AWS API Documentation
3894
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/DeleteAutomatedReasoningPolicyTestCaseRequest AWS API Documentation
1647
3895
  #
1648
- class DataProcessingDetails < Struct.new(
1649
- :status,
1650
- :creation_time,
1651
- :last_modified_time)
3896
+ class DeleteAutomatedReasoningPolicyTestCaseRequest < Struct.new(
3897
+ :policy_arn,
3898
+ :test_case_id,
3899
+ :last_updated_at)
1652
3900
  SENSITIVE = []
1653
3901
  include Aws::Structure
1654
3902
  end
1655
3903
 
3904
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/DeleteAutomatedReasoningPolicyTestCaseResponse AWS API Documentation
3905
+ #
3906
+ class DeleteAutomatedReasoningPolicyTestCaseResponse < Aws::EmptyStructure; end
3907
+
1656
3908
  # @!attribute [rw] custom_model_deployment_identifier
1657
3909
  # The Amazon Resource Name (ARN) or name of the custom model
1658
3910
  # deployment to delete.
@@ -2421,6 +4673,33 @@ module Aws::Bedrock
2421
4673
  class Unknown < EvaluatorModelConfig; end
2422
4674
  end
2423
4675
 
4676
+ # @!attribute [rw] policy_arn
4677
+ # The Amazon Resource Name (ARN) of the Automated Reasoning policy to
4678
+ # export. Can be either the unversioned ARN for the draft policy or a
4679
+ # versioned ARN for a specific policy version.
4680
+ # @return [String]
4681
+ #
4682
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ExportAutomatedReasoningPolicyVersionRequest AWS API Documentation
4683
+ #
4684
+ class ExportAutomatedReasoningPolicyVersionRequest < Struct.new(
4685
+ :policy_arn)
4686
+ SENSITIVE = []
4687
+ include Aws::Structure
4688
+ end
4689
+
4690
+ # @!attribute [rw] policy_definition
4691
+ # The exported policy definition containing the formal logic rules,
4692
+ # variables, and custom variable types.
4693
+ # @return [Types::AutomatedReasoningPolicyDefinition]
4694
+ #
4695
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ExportAutomatedReasoningPolicyVersionResponse AWS API Documentation
4696
+ #
4697
+ class ExportAutomatedReasoningPolicyVersionResponse < Struct.new(
4698
+ :policy_definition)
4699
+ SENSITIVE = []
4700
+ include Aws::Structure
4701
+ end
4702
+
2424
4703
  # The unique external source of the content contained in the wrapper
2425
4704
  # object.
2426
4705
  #
@@ -2631,95 +4910,449 @@ module Aws::Bedrock
2631
4910
 
2632
4911
  # Summary information for a foundation model.
2633
4912
  #
2634
- # @!attribute [rw] model_arn
2635
- # The Amazon Resource Name (ARN) of the foundation model.
4913
+ # @!attribute [rw] model_arn
4914
+ # The Amazon Resource Name (ARN) of the foundation model.
4915
+ # @return [String]
4916
+ #
4917
+ # @!attribute [rw] model_id
4918
+ # The model ID of the foundation model.
4919
+ # @return [String]
4920
+ #
4921
+ # @!attribute [rw] model_name
4922
+ # The name of the model.
4923
+ # @return [String]
4924
+ #
4925
+ # @!attribute [rw] provider_name
4926
+ # The model's provider name.
4927
+ # @return [String]
4928
+ #
4929
+ # @!attribute [rw] input_modalities
4930
+ # The input modalities that the model supports.
4931
+ # @return [Array<String>]
4932
+ #
4933
+ # @!attribute [rw] output_modalities
4934
+ # The output modalities that the model supports.
4935
+ # @return [Array<String>]
4936
+ #
4937
+ # @!attribute [rw] response_streaming_supported
4938
+ # Indicates whether the model supports streaming.
4939
+ # @return [Boolean]
4940
+ #
4941
+ # @!attribute [rw] customizations_supported
4942
+ # Whether the model supports fine-tuning or continual pre-training.
4943
+ # @return [Array<String>]
4944
+ #
4945
+ # @!attribute [rw] inference_types_supported
4946
+ # The inference types that the model supports.
4947
+ # @return [Array<String>]
4948
+ #
4949
+ # @!attribute [rw] model_lifecycle
4950
+ # Contains details about whether a model version is available or
4951
+ # deprecated.
4952
+ # @return [Types::FoundationModelLifecycle]
4953
+ #
4954
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/FoundationModelSummary AWS API Documentation
4955
+ #
4956
+ class FoundationModelSummary < Struct.new(
4957
+ :model_arn,
4958
+ :model_id,
4959
+ :model_name,
4960
+ :provider_name,
4961
+ :input_modalities,
4962
+ :output_modalities,
4963
+ :response_streaming_supported,
4964
+ :customizations_supported,
4965
+ :inference_types_supported,
4966
+ :model_lifecycle)
4967
+ SENSITIVE = []
4968
+ include Aws::Structure
4969
+ end
4970
+
4971
+ # The configuration details for response generation based on retrieved
4972
+ # text chunks.
4973
+ #
4974
+ # @!attribute [rw] prompt_template
4975
+ # Contains the template for the prompt that's sent to the model for
4976
+ # response generation.
4977
+ # @return [Types::PromptTemplate]
4978
+ #
4979
+ # @!attribute [rw] guardrail_configuration
4980
+ # Contains configuration details for the guardrail.
4981
+ # @return [Types::GuardrailConfiguration]
4982
+ #
4983
+ # @!attribute [rw] kb_inference_config
4984
+ # Contains configuration details for inference for knowledge base
4985
+ # retrieval and response generation.
4986
+ # @return [Types::KbInferenceConfig]
4987
+ #
4988
+ # @!attribute [rw] additional_model_request_fields
4989
+ # Additional model parameters and corresponding values not included in
4990
+ # the `textInferenceConfig` structure for a knowledge base. This
4991
+ # allows you to provide custom model parameters specific to the
4992
+ # language model being used.
4993
+ # @return [Hash<String,Hash,Array,String,Numeric,Boolean>]
4994
+ #
4995
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GenerationConfiguration AWS API Documentation
4996
+ #
4997
+ class GenerationConfiguration < Struct.new(
4998
+ :prompt_template,
4999
+ :guardrail_configuration,
5000
+ :kb_inference_config,
5001
+ :additional_model_request_fields)
5002
+ SENSITIVE = []
5003
+ include Aws::Structure
5004
+ end
5005
+
5006
+ # @!attribute [rw] policy_arn
5007
+ # The Amazon Resource Name (ARN) of the Automated Reasoning policy
5008
+ # whose annotations you want to retrieve.
5009
+ # @return [String]
5010
+ #
5011
+ # @!attribute [rw] build_workflow_id
5012
+ # The unique identifier of the build workflow whose annotations you
5013
+ # want to retrieve.
5014
+ # @return [String]
5015
+ #
5016
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetAutomatedReasoningPolicyAnnotationsRequest AWS API Documentation
5017
+ #
5018
+ class GetAutomatedReasoningPolicyAnnotationsRequest < Struct.new(
5019
+ :policy_arn,
5020
+ :build_workflow_id)
5021
+ SENSITIVE = []
5022
+ include Aws::Structure
5023
+ end
5024
+
5025
+ # @!attribute [rw] policy_arn
5026
+ # The Amazon Resource Name (ARN) of the Automated Reasoning policy.
5027
+ # @return [String]
5028
+ #
5029
+ # @!attribute [rw] name
5030
+ # The name of the Automated Reasoning policy.
5031
+ # @return [String]
5032
+ #
5033
+ # @!attribute [rw] build_workflow_id
5034
+ # The unique identifier of the build workflow.
5035
+ # @return [String]
5036
+ #
5037
+ # @!attribute [rw] annotations
5038
+ # The current set of annotations containing rules, variables, and
5039
+ # types extracted from the source documents. These can be modified
5040
+ # before finalizing the policy.
5041
+ # @return [Array<Types::AutomatedReasoningPolicyAnnotation>]
5042
+ #
5043
+ # @!attribute [rw] annotation_set_hash
5044
+ # A hash value representing the current state of the annotations. This
5045
+ # is used for optimistic concurrency control when updating
5046
+ # annotations.
5047
+ # @return [String]
5048
+ #
5049
+ # @!attribute [rw] updated_at
5050
+ # The timestamp when the annotations were last updated.
5051
+ # @return [Time]
5052
+ #
5053
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetAutomatedReasoningPolicyAnnotationsResponse AWS API Documentation
5054
+ #
5055
+ class GetAutomatedReasoningPolicyAnnotationsResponse < Struct.new(
5056
+ :policy_arn,
5057
+ :name,
5058
+ :build_workflow_id,
5059
+ :annotations,
5060
+ :annotation_set_hash,
5061
+ :updated_at)
5062
+ SENSITIVE = [:name]
5063
+ include Aws::Structure
5064
+ end
5065
+
5066
+ # @!attribute [rw] policy_arn
5067
+ # The Amazon Resource Name (ARN) of the Automated Reasoning policy
5068
+ # whose build workflow you want to retrieve.
5069
+ # @return [String]
5070
+ #
5071
+ # @!attribute [rw] build_workflow_id
5072
+ # The unique identifier of the build workflow to retrieve.
5073
+ # @return [String]
5074
+ #
5075
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetAutomatedReasoningPolicyBuildWorkflowRequest AWS API Documentation
5076
+ #
5077
+ class GetAutomatedReasoningPolicyBuildWorkflowRequest < Struct.new(
5078
+ :policy_arn,
5079
+ :build_workflow_id)
5080
+ SENSITIVE = []
5081
+ include Aws::Structure
5082
+ end
5083
+
5084
+ # @!attribute [rw] policy_arn
5085
+ # The Amazon Resource Name (ARN) of the Automated Reasoning policy.
5086
+ # @return [String]
5087
+ #
5088
+ # @!attribute [rw] build_workflow_id
5089
+ # The unique identifier of the build workflow.
5090
+ # @return [String]
5091
+ #
5092
+ # @!attribute [rw] status
5093
+ # The current status of the build workflow (e.g., RUNNING, COMPLETED,
5094
+ # FAILED, CANCELLED).
5095
+ # @return [String]
5096
+ #
5097
+ # @!attribute [rw] build_workflow_type
5098
+ # The type of build workflow being executed (e.g.,
5099
+ # DOCUMENT\_INGESTION, POLICY\_REPAIR).
5100
+ # @return [String]
5101
+ #
5102
+ # @!attribute [rw] document_name
5103
+ # The name of the source document used in the build workflow.
5104
+ # @return [String]
5105
+ #
5106
+ # @!attribute [rw] document_content_type
5107
+ # The content type of the source document (e.g., text/plain,
5108
+ # application/pdf).
5109
+ # @return [String]
5110
+ #
5111
+ # @!attribute [rw] document_description
5112
+ # A detailed description of the document's content and how it should
5113
+ # be used in the policy generation process.
5114
+ # @return [String]
5115
+ #
5116
+ # @!attribute [rw] created_at
5117
+ # The timestamp when the build workflow was created.
5118
+ # @return [Time]
5119
+ #
5120
+ # @!attribute [rw] updated_at
5121
+ # The timestamp when the build workflow was last updated.
5122
+ # @return [Time]
5123
+ #
5124
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetAutomatedReasoningPolicyBuildWorkflowResponse AWS API Documentation
5125
+ #
5126
+ class GetAutomatedReasoningPolicyBuildWorkflowResponse < Struct.new(
5127
+ :policy_arn,
5128
+ :build_workflow_id,
5129
+ :status,
5130
+ :build_workflow_type,
5131
+ :document_name,
5132
+ :document_content_type,
5133
+ :document_description,
5134
+ :created_at,
5135
+ :updated_at)
5136
+ SENSITIVE = [:document_name, :document_description]
5137
+ include Aws::Structure
5138
+ end
5139
+
5140
+ # @!attribute [rw] policy_arn
5141
+ # The Amazon Resource Name (ARN) of the Automated Reasoning policy
5142
+ # whose build workflow assets you want to retrieve.
5143
+ # @return [String]
5144
+ #
5145
+ # @!attribute [rw] build_workflow_id
5146
+ # The unique identifier of the build workflow whose result assets you
5147
+ # want to retrieve.
5148
+ # @return [String]
5149
+ #
5150
+ # @!attribute [rw] asset_type
5151
+ # The type of asset to retrieve (e.g., BUILD\_LOG, QUALITY\_REPORT,
5152
+ # POLICY\_DEFINITION).
5153
+ # @return [String]
5154
+ #
5155
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetAutomatedReasoningPolicyBuildWorkflowResultAssetsRequest AWS API Documentation
5156
+ #
5157
+ class GetAutomatedReasoningPolicyBuildWorkflowResultAssetsRequest < Struct.new(
5158
+ :policy_arn,
5159
+ :build_workflow_id,
5160
+ :asset_type)
5161
+ SENSITIVE = []
5162
+ include Aws::Structure
5163
+ end
5164
+
5165
+ # @!attribute [rw] policy_arn
5166
+ # The Amazon Resource Name (ARN) of the Automated Reasoning policy.
5167
+ # @return [String]
5168
+ #
5169
+ # @!attribute [rw] build_workflow_id
5170
+ # The unique identifier of the build workflow.
5171
+ # @return [String]
5172
+ #
5173
+ # @!attribute [rw] build_workflow_assets
5174
+ # The requested build workflow asset. This is a union type that
5175
+ # returns only one of the available asset types (logs, reports, or
5176
+ # generated artifacts) based on the specific asset type requested in
5177
+ # the API call.
5178
+ # @return [Types::AutomatedReasoningPolicyBuildResultAssets]
5179
+ #
5180
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetAutomatedReasoningPolicyBuildWorkflowResultAssetsResponse AWS API Documentation
5181
+ #
5182
+ class GetAutomatedReasoningPolicyBuildWorkflowResultAssetsResponse < Struct.new(
5183
+ :policy_arn,
5184
+ :build_workflow_id,
5185
+ :build_workflow_assets)
5186
+ SENSITIVE = []
5187
+ include Aws::Structure
5188
+ end
5189
+
5190
+ # @!attribute [rw] policy_arn
5191
+ # The Amazon Resource Name (ARN) of the Automated Reasoning policy for
5192
+ # which you want to get the next test scenario.
5193
+ # @return [String]
5194
+ #
5195
+ # @!attribute [rw] build_workflow_id
5196
+ # The unique identifier of the build workflow associated with the test
5197
+ # scenarios.
5198
+ # @return [String]
5199
+ #
5200
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetAutomatedReasoningPolicyNextScenarioRequest AWS API Documentation
5201
+ #
5202
+ class GetAutomatedReasoningPolicyNextScenarioRequest < Struct.new(
5203
+ :policy_arn,
5204
+ :build_workflow_id)
5205
+ SENSITIVE = []
5206
+ include Aws::Structure
5207
+ end
5208
+
5209
+ # @!attribute [rw] policy_arn
5210
+ # The Amazon Resource Name (ARN) of the Automated Reasoning policy.
5211
+ # @return [String]
5212
+ #
5213
+ # @!attribute [rw] scenario
5214
+ # The next test scenario to validate, including the test expression
5215
+ # and expected results.
5216
+ # @return [Types::AutomatedReasoningPolicyScenario]
5217
+ #
5218
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetAutomatedReasoningPolicyNextScenarioResponse AWS API Documentation
5219
+ #
5220
+ class GetAutomatedReasoningPolicyNextScenarioResponse < Struct.new(
5221
+ :policy_arn,
5222
+ :scenario)
5223
+ SENSITIVE = []
5224
+ include Aws::Structure
5225
+ end
5226
+
5227
+ # @!attribute [rw] policy_arn
5228
+ # The Amazon Resource Name (ARN) of the Automated Reasoning policy to
5229
+ # retrieve. Can be either the unversioned ARN for the draft policy or
5230
+ # an ARN for a specific policy version.
5231
+ # @return [String]
5232
+ #
5233
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetAutomatedReasoningPolicyRequest AWS API Documentation
5234
+ #
5235
+ class GetAutomatedReasoningPolicyRequest < Struct.new(
5236
+ :policy_arn)
5237
+ SENSITIVE = []
5238
+ include Aws::Structure
5239
+ end
5240
+
5241
+ # @!attribute [rw] policy_arn
5242
+ # The Amazon Resource Name (ARN) of the policy.
5243
+ # @return [String]
5244
+ #
5245
+ # @!attribute [rw] name
5246
+ # The name of the policy.
2636
5247
  # @return [String]
2637
5248
  #
2638
- # @!attribute [rw] model_id
2639
- # The model ID of the foundation model.
5249
+ # @!attribute [rw] version
5250
+ # The version of the policy.
2640
5251
  # @return [String]
2641
5252
  #
2642
- # @!attribute [rw] model_name
2643
- # The name of the model.
5253
+ # @!attribute [rw] policy_id
5254
+ # The unique identifier of the policy.
2644
5255
  # @return [String]
2645
5256
  #
2646
- # @!attribute [rw] provider_name
2647
- # The model's provider name.
5257
+ # @!attribute [rw] description
5258
+ # The description of the policy.
2648
5259
  # @return [String]
2649
5260
  #
2650
- # @!attribute [rw] input_modalities
2651
- # The input modalities that the model supports.
2652
- # @return [Array<String>]
5261
+ # @!attribute [rw] definition_hash
5262
+ # The hash of the policy definition used as a concurrency token.
5263
+ # @return [String]
2653
5264
  #
2654
- # @!attribute [rw] output_modalities
2655
- # The output modalities that the model supports.
2656
- # @return [Array<String>]
5265
+ # @!attribute [rw] created_at
5266
+ # The timestamp when the policy was created.
5267
+ # @return [Time]
2657
5268
  #
2658
- # @!attribute [rw] response_streaming_supported
2659
- # Indicates whether the model supports streaming.
2660
- # @return [Boolean]
5269
+ # @!attribute [rw] updated_at
5270
+ # The timestamp when the policy was last updated.
5271
+ # @return [Time]
2661
5272
  #
2662
- # @!attribute [rw] customizations_supported
2663
- # Whether the model supports fine-tuning or continual pre-training.
2664
- # @return [Array<String>]
5273
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetAutomatedReasoningPolicyResponse AWS API Documentation
2665
5274
  #
2666
- # @!attribute [rw] inference_types_supported
2667
- # The inference types that the model supports.
2668
- # @return [Array<String>]
5275
+ class GetAutomatedReasoningPolicyResponse < Struct.new(
5276
+ :policy_arn,
5277
+ :name,
5278
+ :version,
5279
+ :policy_id,
5280
+ :description,
5281
+ :definition_hash,
5282
+ :created_at,
5283
+ :updated_at)
5284
+ SENSITIVE = [:name, :description]
5285
+ include Aws::Structure
5286
+ end
5287
+
5288
+ # @!attribute [rw] policy_arn
5289
+ # The Amazon Resource Name (ARN) of the Automated Reasoning policy
5290
+ # that contains the test.
5291
+ # @return [String]
2669
5292
  #
2670
- # @!attribute [rw] model_lifecycle
2671
- # Contains details about whether a model version is available or
2672
- # deprecated.
2673
- # @return [Types::FoundationModelLifecycle]
5293
+ # @!attribute [rw] test_case_id
5294
+ # The unique identifier of the test to retrieve.
5295
+ # @return [String]
2674
5296
  #
2675
- # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/FoundationModelSummary AWS API Documentation
5297
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetAutomatedReasoningPolicyTestCaseRequest AWS API Documentation
2676
5298
  #
2677
- class FoundationModelSummary < Struct.new(
2678
- :model_arn,
2679
- :model_id,
2680
- :model_name,
2681
- :provider_name,
2682
- :input_modalities,
2683
- :output_modalities,
2684
- :response_streaming_supported,
2685
- :customizations_supported,
2686
- :inference_types_supported,
2687
- :model_lifecycle)
5299
+ class GetAutomatedReasoningPolicyTestCaseRequest < Struct.new(
5300
+ :policy_arn,
5301
+ :test_case_id)
2688
5302
  SENSITIVE = []
2689
5303
  include Aws::Structure
2690
5304
  end
2691
5305
 
2692
- # The configuration details for response generation based on retrieved
2693
- # text chunks.
5306
+ # @!attribute [rw] policy_arn
5307
+ # The Amazon Resource Name (ARN) of the policy that contains the test.
5308
+ # @return [String]
2694
5309
  #
2695
- # @!attribute [rw] prompt_template
2696
- # Contains the template for the prompt that's sent to the model for
2697
- # response generation.
2698
- # @return [Types::PromptTemplate]
5310
+ # @!attribute [rw] test_case
5311
+ # The test details including the content, query, expected result, and
5312
+ # metadata.
5313
+ # @return [Types::AutomatedReasoningPolicyTestCase]
2699
5314
  #
2700
- # @!attribute [rw] guardrail_configuration
2701
- # Contains configuration details for the guardrail.
2702
- # @return [Types::GuardrailConfiguration]
5315
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetAutomatedReasoningPolicyTestCaseResponse AWS API Documentation
2703
5316
  #
2704
- # @!attribute [rw] kb_inference_config
2705
- # Contains configuration details for inference for knowledge base
2706
- # retrieval and response generation.
2707
- # @return [Types::KbInferenceConfig]
5317
+ class GetAutomatedReasoningPolicyTestCaseResponse < Struct.new(
5318
+ :policy_arn,
5319
+ :test_case)
5320
+ SENSITIVE = []
5321
+ include Aws::Structure
5322
+ end
5323
+
5324
+ # @!attribute [rw] policy_arn
5325
+ # The Amazon Resource Name (ARN) of the Automated Reasoning policy.
5326
+ # @return [String]
2708
5327
  #
2709
- # @!attribute [rw] additional_model_request_fields
2710
- # Additional model parameters and corresponding values not included in
2711
- # the `textInferenceConfig` structure for a knowledge base. This
2712
- # allows you to provide custom model parameters specific to the
2713
- # language model being used.
2714
- # @return [Hash<String,Hash,Array,String,Numeric,Boolean>]
5328
+ # @!attribute [rw] build_workflow_id
5329
+ # The build workflow identifier. The build workflow must display a
5330
+ # `COMPLETED` status to get results.
5331
+ # @return [String]
2715
5332
  #
2716
- # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GenerationConfiguration AWS API Documentation
5333
+ # @!attribute [rw] test_case_id
5334
+ # The unique identifier of the test for which to retrieve results.
5335
+ # @return [String]
2717
5336
  #
2718
- class GenerationConfiguration < Struct.new(
2719
- :prompt_template,
2720
- :guardrail_configuration,
2721
- :kb_inference_config,
2722
- :additional_model_request_fields)
5337
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetAutomatedReasoningPolicyTestResultRequest AWS API Documentation
5338
+ #
5339
+ class GetAutomatedReasoningPolicyTestResultRequest < Struct.new(
5340
+ :policy_arn,
5341
+ :build_workflow_id,
5342
+ :test_case_id)
5343
+ SENSITIVE = []
5344
+ include Aws::Structure
5345
+ end
5346
+
5347
+ # @!attribute [rw] test_result
5348
+ # The test result containing validation findings, execution status,
5349
+ # and detailed analysis.
5350
+ # @return [Types::AutomatedReasoningPolicyTestResult]
5351
+ #
5352
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetAutomatedReasoningPolicyTestResultResponse AWS API Documentation
5353
+ #
5354
+ class GetAutomatedReasoningPolicyTestResultResponse < Struct.new(
5355
+ :test_result)
2723
5356
  SENSITIVE = []
2724
5357
  include Aws::Structure
2725
5358
  end
@@ -3150,6 +5783,11 @@ module Aws::Bedrock
3150
5783
  # The contextual grounding policy used in the guardrail.
3151
5784
  # @return [Types::GuardrailContextualGroundingPolicy]
3152
5785
  #
5786
+ # @!attribute [rw] automated_reasoning_policy
5787
+ # The current Automated Reasoning policy configuration for the
5788
+ # guardrail, if any is configured.
5789
+ # @return [Types::GuardrailAutomatedReasoningPolicy]
5790
+ #
3153
5791
  # @!attribute [rw] cross_region_details
3154
5792
  # Details about the system-defined guardrail profile that you're
3155
5793
  # using with your guardrail, including the guardrail profile ID and
@@ -3201,6 +5839,7 @@ module Aws::Bedrock
3201
5839
  :word_policy,
3202
5840
  :sensitive_information_policy,
3203
5841
  :contextual_grounding_policy,
5842
+ :automated_reasoning_policy,
3204
5843
  :cross_region_details,
3205
5844
  :created_at,
3206
5845
  :updated_at,
@@ -4058,6 +6697,52 @@ module Aws::Bedrock
4058
6697
  include Aws::Structure
4059
6698
  end
4060
6699
 
6700
+ # Represents the configuration of Automated Reasoning policies within a
6701
+ # Amazon Bedrock Guardrail, including the policies to apply and
6702
+ # confidence thresholds.
6703
+ #
6704
+ # @!attribute [rw] policies
6705
+ # The list of Automated Reasoning policy ARNs that should be applied
6706
+ # as part of this guardrail configuration.
6707
+ # @return [Array<String>]
6708
+ #
6709
+ # @!attribute [rw] confidence_threshold
6710
+ # The minimum confidence level required for Automated Reasoning policy
6711
+ # violations to trigger guardrail actions. Values range from 0.0 to
6712
+ # 1.0.
6713
+ # @return [Float]
6714
+ #
6715
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GuardrailAutomatedReasoningPolicy AWS API Documentation
6716
+ #
6717
+ class GuardrailAutomatedReasoningPolicy < Struct.new(
6718
+ :policies,
6719
+ :confidence_threshold)
6720
+ SENSITIVE = []
6721
+ include Aws::Structure
6722
+ end
6723
+
6724
+ # Configuration settings for integrating Automated Reasoning policies
6725
+ # with Amazon Bedrock Guardrails.
6726
+ #
6727
+ # @!attribute [rw] policies
6728
+ # The list of Automated Reasoning policy ARNs to include in the
6729
+ # guardrail configuration.
6730
+ # @return [Array<String>]
6731
+ #
6732
+ # @!attribute [rw] confidence_threshold
6733
+ # The confidence threshold for triggering guardrail actions based on
6734
+ # Automated Reasoning policy violations.
6735
+ # @return [Float]
6736
+ #
6737
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GuardrailAutomatedReasoningPolicyConfig AWS API Documentation
6738
+ #
6739
+ class GuardrailAutomatedReasoningPolicyConfig < Struct.new(
6740
+ :policies,
6741
+ :confidence_threshold)
6742
+ SENSITIVE = []
6743
+ include Aws::Structure
6744
+ end
6745
+
4061
6746
  # The configuration details for the guardrail.
4062
6747
  #
4063
6748
  # @!attribute [rw] guardrail_id
@@ -6053,90 +8738,269 @@ module Aws::Bedrock
6053
8738
  # [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference.html
6054
8739
  # @return [String]
6055
8740
  #
6056
- # @!attribute [rw] retrieval_configuration
6057
- # Contains configuration details for retrieving text chunks.
6058
- # @return [Types::KnowledgeBaseRetrievalConfiguration]
6059
- #
6060
- # @!attribute [rw] generation_configuration
6061
- # Contains configurations details for response generation based on
6062
- # retrieved text chunks.
6063
- # @return [Types::GenerationConfiguration]
8741
+ # @!attribute [rw] retrieval_configuration
8742
+ # Contains configuration details for retrieving text chunks.
8743
+ # @return [Types::KnowledgeBaseRetrievalConfiguration]
8744
+ #
8745
+ # @!attribute [rw] generation_configuration
8746
+ # Contains configurations details for response generation based on
8747
+ # retrieved text chunks.
8748
+ # @return [Types::GenerationConfiguration]
8749
+ #
8750
+ # @!attribute [rw] orchestration_configuration
8751
+ # Contains configuration details for the model to process the prompt
8752
+ # prior to retrieval and response generation.
8753
+ # @return [Types::OrchestrationConfiguration]
8754
+ #
8755
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/KnowledgeBaseRetrieveAndGenerateConfiguration AWS API Documentation
8756
+ #
8757
+ class KnowledgeBaseRetrieveAndGenerateConfiguration < Struct.new(
8758
+ :knowledge_base_id,
8759
+ :model_arn,
8760
+ :retrieval_configuration,
8761
+ :generation_configuration,
8762
+ :orchestration_configuration)
8763
+ SENSITIVE = []
8764
+ include Aws::Structure
8765
+ end
8766
+
8767
+ # The configuration details for returning the results from the knowledge
8768
+ # base vector search.
8769
+ #
8770
+ # @!attribute [rw] number_of_results
8771
+ # The number of text chunks to retrieve; the number of results to
8772
+ # return.
8773
+ # @return [Integer]
8774
+ #
8775
+ # @!attribute [rw] override_search_type
8776
+ # By default, Amazon Bedrock decides a search strategy for you. If
8777
+ # you're using an Amazon OpenSearch Serverless vector store that
8778
+ # contains a filterable text field, you can specify whether to query
8779
+ # the knowledge base with a `HYBRID` search using both vector
8780
+ # embeddings and raw text, or `SEMANTIC` search using only vector
8781
+ # embeddings. For other vector store configurations, only `SEMANTIC`
8782
+ # search is available.
8783
+ # @return [String]
8784
+ #
8785
+ # @!attribute [rw] filter
8786
+ # Specifies the filters to use on the metadata fields in the knowledge
8787
+ # base data sources before returning results.
8788
+ # @return [Types::RetrievalFilter]
8789
+ #
8790
+ # @!attribute [rw] implicit_filter_configuration
8791
+ # Configuration for implicit filtering in Knowledge Base vector
8792
+ # searches. This allows the system to automatically apply filters
8793
+ # based on the query context without requiring explicit filter
8794
+ # expressions.
8795
+ # @return [Types::ImplicitFilterConfiguration]
8796
+ #
8797
+ # @!attribute [rw] reranking_configuration
8798
+ # Configuration for reranking search results in Knowledge Base vector
8799
+ # searches. Reranking improves search relevance by reordering initial
8800
+ # vector search results using more sophisticated relevance models.
8801
+ # @return [Types::VectorSearchRerankingConfiguration]
8802
+ #
8803
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/KnowledgeBaseVectorSearchConfiguration AWS API Documentation
8804
+ #
8805
+ class KnowledgeBaseVectorSearchConfiguration < Struct.new(
8806
+ :number_of_results,
8807
+ :override_search_type,
8808
+ :filter,
8809
+ :implicit_filter_configuration,
8810
+ :reranking_configuration)
8811
+ SENSITIVE = [:filter]
8812
+ include Aws::Structure
8813
+ end
8814
+
8815
+ # The legal term of the agreement.
8816
+ #
8817
+ # @!attribute [rw] url
8818
+ # URL to the legal term document.
8819
+ # @return [String]
8820
+ #
8821
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/LegalTerm AWS API Documentation
8822
+ #
8823
+ class LegalTerm < Struct.new(
8824
+ :url)
8825
+ SENSITIVE = []
8826
+ include Aws::Structure
8827
+ end
8828
+
8829
+ # @!attribute [rw] policy_arn
8830
+ # Optional filter to list only the policy versions with the specified
8831
+ # Amazon Resource Name (ARN). If not provided, the DRAFT versions for
8832
+ # all policies are listed.
8833
+ # @return [String]
8834
+ #
8835
+ # @!attribute [rw] next_token
8836
+ # The pagination token from a previous request to retrieve the next
8837
+ # page of results.
8838
+ # @return [String]
8839
+ #
8840
+ # @!attribute [rw] max_results
8841
+ # The maximum number of policies to return in a single call.
8842
+ # @return [Integer]
8843
+ #
8844
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ListAutomatedReasoningPoliciesRequest AWS API Documentation
8845
+ #
8846
+ class ListAutomatedReasoningPoliciesRequest < Struct.new(
8847
+ :policy_arn,
8848
+ :next_token,
8849
+ :max_results)
8850
+ SENSITIVE = []
8851
+ include Aws::Structure
8852
+ end
8853
+
8854
+ # @!attribute [rw] automated_reasoning_policy_summaries
8855
+ # A list of Automated Reasoning policy summaries.
8856
+ # @return [Array<Types::AutomatedReasoningPolicySummary>]
8857
+ #
8858
+ # @!attribute [rw] next_token
8859
+ # The pagination token to use in a subsequent request to retrieve the
8860
+ # next page of results.
8861
+ # @return [String]
8862
+ #
8863
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ListAutomatedReasoningPoliciesResponse AWS API Documentation
8864
+ #
8865
+ class ListAutomatedReasoningPoliciesResponse < Struct.new(
8866
+ :automated_reasoning_policy_summaries,
8867
+ :next_token)
8868
+ SENSITIVE = []
8869
+ include Aws::Structure
8870
+ end
8871
+
8872
+ # @!attribute [rw] policy_arn
8873
+ # The Amazon Resource Name (ARN) of the Automated Reasoning policy
8874
+ # whose build workflows you want to list.
8875
+ # @return [String]
8876
+ #
8877
+ # @!attribute [rw] next_token
8878
+ # A pagination token from a previous request to continue listing build
8879
+ # workflows from where the previous request left off.
8880
+ # @return [String]
8881
+ #
8882
+ # @!attribute [rw] max_results
8883
+ # The maximum number of build workflows to return in a single
8884
+ # response. Valid range is 1-100.
8885
+ # @return [Integer]
8886
+ #
8887
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ListAutomatedReasoningPolicyBuildWorkflowsRequest AWS API Documentation
8888
+ #
8889
+ class ListAutomatedReasoningPolicyBuildWorkflowsRequest < Struct.new(
8890
+ :policy_arn,
8891
+ :next_token,
8892
+ :max_results)
8893
+ SENSITIVE = []
8894
+ include Aws::Structure
8895
+ end
8896
+
8897
+ # @!attribute [rw] automated_reasoning_policy_build_workflow_summaries
8898
+ # A list of build workflow summaries, each containing key information
8899
+ # about a build workflow including its status and timestamps.
8900
+ # @return [Array<Types::AutomatedReasoningPolicyBuildWorkflowSummary>]
8901
+ #
8902
+ # @!attribute [rw] next_token
8903
+ # A pagination token to use in subsequent requests to retrieve
8904
+ # additional build workflows.
8905
+ # @return [String]
8906
+ #
8907
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ListAutomatedReasoningPolicyBuildWorkflowsResponse AWS API Documentation
8908
+ #
8909
+ class ListAutomatedReasoningPolicyBuildWorkflowsResponse < Struct.new(
8910
+ :automated_reasoning_policy_build_workflow_summaries,
8911
+ :next_token)
8912
+ SENSITIVE = []
8913
+ include Aws::Structure
8914
+ end
8915
+
8916
+ # @!attribute [rw] policy_arn
8917
+ # The Amazon Resource Name (ARN) of the Automated Reasoning policy for
8918
+ # which to list tests.
8919
+ # @return [String]
8920
+ #
8921
+ # @!attribute [rw] next_token
8922
+ # The pagination token from a previous request to retrieve the next
8923
+ # page of results.
8924
+ # @return [String]
6064
8925
  #
6065
- # @!attribute [rw] orchestration_configuration
6066
- # Contains configuration details for the model to process the prompt
6067
- # prior to retrieval and response generation.
6068
- # @return [Types::OrchestrationConfiguration]
8926
+ # @!attribute [rw] max_results
8927
+ # The maximum number of tests to return in a single call.
8928
+ # @return [Integer]
6069
8929
  #
6070
- # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/KnowledgeBaseRetrieveAndGenerateConfiguration AWS API Documentation
8930
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ListAutomatedReasoningPolicyTestCasesRequest AWS API Documentation
6071
8931
  #
6072
- class KnowledgeBaseRetrieveAndGenerateConfiguration < Struct.new(
6073
- :knowledge_base_id,
6074
- :model_arn,
6075
- :retrieval_configuration,
6076
- :generation_configuration,
6077
- :orchestration_configuration)
8932
+ class ListAutomatedReasoningPolicyTestCasesRequest < Struct.new(
8933
+ :policy_arn,
8934
+ :next_token,
8935
+ :max_results)
6078
8936
  SENSITIVE = []
6079
8937
  include Aws::Structure
6080
8938
  end
6081
8939
 
6082
- # The configuration details for returning the results from the knowledge
6083
- # base vector search.
8940
+ # @!attribute [rw] test_cases
8941
+ # A list of tests for the specified policy.
8942
+ # @return [Array<Types::AutomatedReasoningPolicyTestCase>]
6084
8943
  #
6085
- # @!attribute [rw] number_of_results
6086
- # The number of text chunks to retrieve; the number of results to
6087
- # return.
6088
- # @return [Integer]
8944
+ # @!attribute [rw] next_token
8945
+ # The pagination token to use in a subsequent request to retrieve the
8946
+ # next page of results.
8947
+ # @return [String]
6089
8948
  #
6090
- # @!attribute [rw] override_search_type
6091
- # By default, Amazon Bedrock decides a search strategy for you. If
6092
- # you're using an Amazon OpenSearch Serverless vector store that
6093
- # contains a filterable text field, you can specify whether to query
6094
- # the knowledge base with a `HYBRID` search using both vector
6095
- # embeddings and raw text, or `SEMANTIC` search using only vector
6096
- # embeddings. For other vector store configurations, only `SEMANTIC`
6097
- # search is available.
8949
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ListAutomatedReasoningPolicyTestCasesResponse AWS API Documentation
8950
+ #
8951
+ class ListAutomatedReasoningPolicyTestCasesResponse < Struct.new(
8952
+ :test_cases,
8953
+ :next_token)
8954
+ SENSITIVE = []
8955
+ include Aws::Structure
8956
+ end
8957
+
8958
+ # @!attribute [rw] policy_arn
8959
+ # The Amazon Resource Name (ARN) of the Automated Reasoning policy
8960
+ # whose test results you want to list.
6098
8961
  # @return [String]
6099
8962
  #
6100
- # @!attribute [rw] filter
6101
- # Specifies the filters to use on the metadata fields in the knowledge
6102
- # base data sources before returning results.
6103
- # @return [Types::RetrievalFilter]
8963
+ # @!attribute [rw] build_workflow_id
8964
+ # The unique identifier of the build workflow whose test results you
8965
+ # want to list.
8966
+ # @return [String]
6104
8967
  #
6105
- # @!attribute [rw] implicit_filter_configuration
6106
- # Configuration for implicit filtering in Knowledge Base vector
6107
- # searches. This allows the system to automatically apply filters
6108
- # based on the query context without requiring explicit filter
6109
- # expressions.
6110
- # @return [Types::ImplicitFilterConfiguration]
8968
+ # @!attribute [rw] next_token
8969
+ # A pagination token from a previous request to continue listing test
8970
+ # results from where the previous request left off.
8971
+ # @return [String]
6111
8972
  #
6112
- # @!attribute [rw] reranking_configuration
6113
- # Configuration for reranking search results in Knowledge Base vector
6114
- # searches. Reranking improves search relevance by reordering initial
6115
- # vector search results using more sophisticated relevance models.
6116
- # @return [Types::VectorSearchRerankingConfiguration]
8973
+ # @!attribute [rw] max_results
8974
+ # The maximum number of test results to return in a single response.
8975
+ # Valid range is 1-100.
8976
+ # @return [Integer]
6117
8977
  #
6118
- # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/KnowledgeBaseVectorSearchConfiguration AWS API Documentation
8978
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ListAutomatedReasoningPolicyTestResultsRequest AWS API Documentation
6119
8979
  #
6120
- class KnowledgeBaseVectorSearchConfiguration < Struct.new(
6121
- :number_of_results,
6122
- :override_search_type,
6123
- :filter,
6124
- :implicit_filter_configuration,
6125
- :reranking_configuration)
6126
- SENSITIVE = [:filter]
8980
+ class ListAutomatedReasoningPolicyTestResultsRequest < Struct.new(
8981
+ :policy_arn,
8982
+ :build_workflow_id,
8983
+ :next_token,
8984
+ :max_results)
8985
+ SENSITIVE = []
6127
8986
  include Aws::Structure
6128
8987
  end
6129
8988
 
6130
- # The legal term of the agreement.
8989
+ # @!attribute [rw] test_results
8990
+ # A list of test results, each containing information about how the
8991
+ # policy performed on specific test scenarios.
8992
+ # @return [Array<Types::AutomatedReasoningPolicyTestResult>]
6131
8993
  #
6132
- # @!attribute [rw] url
6133
- # URL to the legal term document.
8994
+ # @!attribute [rw] next_token
8995
+ # A pagination token to use in subsequent requests to retrieve
8996
+ # additional test results.
6134
8997
  # @return [String]
6135
8998
  #
6136
- # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/LegalTerm AWS API Documentation
8999
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ListAutomatedReasoningPolicyTestResultsResponse AWS API Documentation
6137
9000
  #
6138
- class LegalTerm < Struct.new(
6139
- :url)
9001
+ class ListAutomatedReasoningPolicyTestResultsResponse < Struct.new(
9002
+ :test_results,
9003
+ :next_token)
6140
9004
  SENSITIVE = []
6141
9005
  include Aws::Structure
6142
9006
  end
@@ -8411,6 +11275,22 @@ module Aws::Bedrock
8411
11275
  class Unknown < RerankingMetadataSelectiveModeConfiguration; end
8412
11276
  end
8413
11277
 
11278
+ # Thrown when attempting to delete or modify a resource that is
11279
+ # currently being used by other resources or operations. For example,
11280
+ # trying to delete an Automated Reasoning policy that is referenced by
11281
+ # an active guardrail.
11282
+ #
11283
+ # @!attribute [rw] message
11284
+ # @return [String]
11285
+ #
11286
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ResourceInUseException AWS API Documentation
11287
+ #
11288
+ class ResourceInUseException < Struct.new(
11289
+ :message)
11290
+ SENSITIVE = []
11291
+ include Aws::Structure
11292
+ end
11293
+
8414
11294
  # The specified resource Amazon Resource Name (ARN) was not found. Check
8415
11295
  # the Amazon Resource Name (ARN) and try your request again.
8416
11296
  #
@@ -8778,6 +11658,110 @@ module Aws::Bedrock
8778
11658
  include Aws::Structure
8779
11659
  end
8780
11660
 
11661
+ # @!attribute [rw] policy_arn
11662
+ # The Amazon Resource Name (ARN) of the Automated Reasoning policy for
11663
+ # which to start the build workflow.
11664
+ # @return [String]
11665
+ #
11666
+ # @!attribute [rw] build_workflow_type
11667
+ # The type of build workflow to start (e.g., DOCUMENT\_INGESTION for
11668
+ # processing new documents, POLICY\_REPAIR for fixing existing
11669
+ # policies).
11670
+ # @return [String]
11671
+ #
11672
+ # @!attribute [rw] client_request_token
11673
+ # A unique, case-sensitive identifier to ensure that the operation
11674
+ # completes no more than once. If this token matches a previous
11675
+ # request, Amazon Bedrock ignores the request but doesn't return an
11676
+ # error.
11677
+ #
11678
+ # **A suitable default value is auto-generated.** You should normally
11679
+ # not need to pass this option.
11680
+ # @return [String]
11681
+ #
11682
+ # @!attribute [rw] source_content
11683
+ # The source content for the build workflow, such as documents to
11684
+ # analyze or repair instructions for existing policies.
11685
+ # @return [Types::AutomatedReasoningPolicyBuildWorkflowSource]
11686
+ #
11687
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/StartAutomatedReasoningPolicyBuildWorkflowRequest AWS API Documentation
11688
+ #
11689
+ class StartAutomatedReasoningPolicyBuildWorkflowRequest < Struct.new(
11690
+ :policy_arn,
11691
+ :build_workflow_type,
11692
+ :client_request_token,
11693
+ :source_content)
11694
+ SENSITIVE = []
11695
+ include Aws::Structure
11696
+ end
11697
+
11698
+ # @!attribute [rw] policy_arn
11699
+ # The Amazon Resource Name (ARN) of the Automated Reasoning policy.
11700
+ # @return [String]
11701
+ #
11702
+ # @!attribute [rw] build_workflow_id
11703
+ # The unique identifier of the newly started build workflow. Use this
11704
+ # ID to track the workflow's progress and retrieve its results.
11705
+ # @return [String]
11706
+ #
11707
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/StartAutomatedReasoningPolicyBuildWorkflowResponse AWS API Documentation
11708
+ #
11709
+ class StartAutomatedReasoningPolicyBuildWorkflowResponse < Struct.new(
11710
+ :policy_arn,
11711
+ :build_workflow_id)
11712
+ SENSITIVE = []
11713
+ include Aws::Structure
11714
+ end
11715
+
11716
+ # @!attribute [rw] policy_arn
11717
+ # The Amazon Resource Name (ARN) of the Automated Reasoning policy to
11718
+ # test.
11719
+ # @return [String]
11720
+ #
11721
+ # @!attribute [rw] build_workflow_id
11722
+ # The build workflow identifier. The build workflow must show a
11723
+ # `COMPLETED` status before running tests.
11724
+ # @return [String]
11725
+ #
11726
+ # @!attribute [rw] test_case_ids
11727
+ # The list of test identifiers to run. If not provided, all tests for
11728
+ # the policy are run.
11729
+ # @return [Array<String>]
11730
+ #
11731
+ # @!attribute [rw] client_request_token
11732
+ # A unique, case-sensitive identifier to ensure that the operation
11733
+ # completes no more than one time. If this token matches a previous
11734
+ # request, Amazon Bedrock ignores the request but doesn't return an
11735
+ # error.
11736
+ #
11737
+ # **A suitable default value is auto-generated.** You should normally
11738
+ # not need to pass this option.
11739
+ # @return [String]
11740
+ #
11741
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/StartAutomatedReasoningPolicyTestWorkflowRequest AWS API Documentation
11742
+ #
11743
+ class StartAutomatedReasoningPolicyTestWorkflowRequest < Struct.new(
11744
+ :policy_arn,
11745
+ :build_workflow_id,
11746
+ :test_case_ids,
11747
+ :client_request_token)
11748
+ SENSITIVE = []
11749
+ include Aws::Structure
11750
+ end
11751
+
11752
+ # @!attribute [rw] policy_arn
11753
+ # The Amazon Resource Name (ARN) of the policy for which the test
11754
+ # workflow was started.
11755
+ # @return [String]
11756
+ #
11757
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/StartAutomatedReasoningPolicyTestWorkflowResponse AWS API Documentation
11758
+ #
11759
+ class StartAutomatedReasoningPolicyTestWorkflowResponse < Struct.new(
11760
+ :policy_arn)
11761
+ SENSITIVE = []
11762
+ include Aws::Structure
11763
+ end
11764
+
8781
11765
  # For a Distillation job, the status details for sub-tasks of the job.
8782
11766
  # Possible statuses for each sub-task include the following:
8783
11767
  #
@@ -9124,6 +12108,203 @@ module Aws::Bedrock
9124
12108
  #
9125
12109
  class UntagResourceResponse < Aws::EmptyStructure; end
9126
12110
 
12111
+ # @!attribute [rw] policy_arn
12112
+ # The Amazon Resource Name (ARN) of the Automated Reasoning policy
12113
+ # whose annotations you want to update.
12114
+ # @return [String]
12115
+ #
12116
+ # @!attribute [rw] build_workflow_id
12117
+ # The unique identifier of the build workflow whose annotations you
12118
+ # want to update.
12119
+ # @return [String]
12120
+ #
12121
+ # @!attribute [rw] annotations
12122
+ # The updated annotations containing modified rules, variables, and
12123
+ # types for the policy.
12124
+ # @return [Array<Types::AutomatedReasoningPolicyAnnotation>]
12125
+ #
12126
+ # @!attribute [rw] last_updated_annotation_set_hash
12127
+ # The hash value of the annotation set that you're updating. This is
12128
+ # used for optimistic concurrency control to prevent conflicting
12129
+ # updates.
12130
+ # @return [String]
12131
+ #
12132
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/UpdateAutomatedReasoningPolicyAnnotationsRequest AWS API Documentation
12133
+ #
12134
+ class UpdateAutomatedReasoningPolicyAnnotationsRequest < Struct.new(
12135
+ :policy_arn,
12136
+ :build_workflow_id,
12137
+ :annotations,
12138
+ :last_updated_annotation_set_hash)
12139
+ SENSITIVE = []
12140
+ include Aws::Structure
12141
+ end
12142
+
12143
+ # @!attribute [rw] policy_arn
12144
+ # The Amazon Resource Name (ARN) of the Automated Reasoning policy.
12145
+ # @return [String]
12146
+ #
12147
+ # @!attribute [rw] build_workflow_id
12148
+ # The unique identifier of the build workflow.
12149
+ # @return [String]
12150
+ #
12151
+ # @!attribute [rw] annotation_set_hash
12152
+ # The new hash value representing the updated state of the
12153
+ # annotations.
12154
+ # @return [String]
12155
+ #
12156
+ # @!attribute [rw] updated_at
12157
+ # The timestamp when the annotations were updated.
12158
+ # @return [Time]
12159
+ #
12160
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/UpdateAutomatedReasoningPolicyAnnotationsResponse AWS API Documentation
12161
+ #
12162
+ class UpdateAutomatedReasoningPolicyAnnotationsResponse < Struct.new(
12163
+ :policy_arn,
12164
+ :build_workflow_id,
12165
+ :annotation_set_hash,
12166
+ :updated_at)
12167
+ SENSITIVE = []
12168
+ include Aws::Structure
12169
+ end
12170
+
12171
+ # @!attribute [rw] policy_arn
12172
+ # The Amazon Resource Name (ARN) of the Automated Reasoning policy to
12173
+ # update. This must be the ARN of a draft policy.
12174
+ # @return [String]
12175
+ #
12176
+ # @!attribute [rw] policy_definition
12177
+ # The updated policy definition containing the formal logic rules,
12178
+ # variables, and types.
12179
+ # @return [Types::AutomatedReasoningPolicyDefinition]
12180
+ #
12181
+ # @!attribute [rw] name
12182
+ # The updated name for the Automated Reasoning policy.
12183
+ # @return [String]
12184
+ #
12185
+ # @!attribute [rw] description
12186
+ # The updated description for the Automated Reasoning policy.
12187
+ # @return [String]
12188
+ #
12189
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/UpdateAutomatedReasoningPolicyRequest AWS API Documentation
12190
+ #
12191
+ class UpdateAutomatedReasoningPolicyRequest < Struct.new(
12192
+ :policy_arn,
12193
+ :policy_definition,
12194
+ :name,
12195
+ :description)
12196
+ SENSITIVE = [:name, :description]
12197
+ include Aws::Structure
12198
+ end
12199
+
12200
+ # @!attribute [rw] policy_arn
12201
+ # The Amazon Resource Name (ARN) of the updated policy.
12202
+ # @return [String]
12203
+ #
12204
+ # @!attribute [rw] name
12205
+ # The updated name of the policy.
12206
+ # @return [String]
12207
+ #
12208
+ # @!attribute [rw] definition_hash
12209
+ # The hash of the updated policy definition.
12210
+ # @return [String]
12211
+ #
12212
+ # @!attribute [rw] updated_at
12213
+ # The timestamp when the policy was last updated.
12214
+ # @return [Time]
12215
+ #
12216
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/UpdateAutomatedReasoningPolicyResponse AWS API Documentation
12217
+ #
12218
+ class UpdateAutomatedReasoningPolicyResponse < Struct.new(
12219
+ :policy_arn,
12220
+ :name,
12221
+ :definition_hash,
12222
+ :updated_at)
12223
+ SENSITIVE = [:name]
12224
+ include Aws::Structure
12225
+ end
12226
+
12227
+ # @!attribute [rw] policy_arn
12228
+ # The Amazon Resource Name (ARN) of the Automated Reasoning policy
12229
+ # that contains the test.
12230
+ # @return [String]
12231
+ #
12232
+ # @!attribute [rw] test_case_id
12233
+ # The unique identifier of the test to update.
12234
+ # @return [String]
12235
+ #
12236
+ # @!attribute [rw] guard_content
12237
+ # The updated content to be validated by the Automated Reasoning
12238
+ # policy.
12239
+ # @return [String]
12240
+ #
12241
+ # @!attribute [rw] query_content
12242
+ # The updated input query or prompt that generated the content.
12243
+ # @return [String]
12244
+ #
12245
+ # @!attribute [rw] last_updated_at
12246
+ # The timestamp when the test was last updated. This is used as a
12247
+ # concurrency token to prevent conflicting modifications.
12248
+ # @return [Time]
12249
+ #
12250
+ # @!attribute [rw] expected_aggregated_findings_result
12251
+ # The updated expected result of the Automated Reasoning check.
12252
+ # @return [String]
12253
+ #
12254
+ # @!attribute [rw] confidence_threshold
12255
+ # The updated minimum confidence level for logic validation. If null
12256
+ # is provided, the threshold will be removed.
12257
+ # @return [Float]
12258
+ #
12259
+ # @!attribute [rw] kms_key_arn
12260
+ # The KMS key ARN for encrypting the test at rest. If not provided,
12261
+ # the key will not be updated. Use `DISCARD` to remove the key.
12262
+ # @return [String]
12263
+ #
12264
+ # @!attribute [rw] client_request_token
12265
+ # A unique, case-sensitive identifier to ensure that the operation
12266
+ # completes no more than one time. If this token matches a previous
12267
+ # request, Amazon Bedrock ignores the request, but does not return an
12268
+ # error.
12269
+ #
12270
+ # **A suitable default value is auto-generated.** You should normally
12271
+ # not need to pass this option.
12272
+ # @return [String]
12273
+ #
12274
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/UpdateAutomatedReasoningPolicyTestCaseRequest AWS API Documentation
12275
+ #
12276
+ class UpdateAutomatedReasoningPolicyTestCaseRequest < Struct.new(
12277
+ :policy_arn,
12278
+ :test_case_id,
12279
+ :guard_content,
12280
+ :query_content,
12281
+ :last_updated_at,
12282
+ :expected_aggregated_findings_result,
12283
+ :confidence_threshold,
12284
+ :kms_key_arn,
12285
+ :client_request_token)
12286
+ SENSITIVE = [:guard_content, :query_content]
12287
+ include Aws::Structure
12288
+ end
12289
+
12290
+ # @!attribute [rw] policy_arn
12291
+ # The Amazon Resource Name (ARN) of the policy that contains the
12292
+ # updated test.
12293
+ # @return [String]
12294
+ #
12295
+ # @!attribute [rw] test_case_id
12296
+ # The unique identifier of the updated test.
12297
+ # @return [String]
12298
+ #
12299
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/UpdateAutomatedReasoningPolicyTestCaseResponse AWS API Documentation
12300
+ #
12301
+ class UpdateAutomatedReasoningPolicyTestCaseResponse < Struct.new(
12302
+ :policy_arn,
12303
+ :test_case_id)
12304
+ SENSITIVE = []
12305
+ include Aws::Structure
12306
+ end
12307
+
9127
12308
  # @!attribute [rw] guardrail_identifier
9128
12309
  # The unique identifier of the guardrail. This can be an ID or the
9129
12310
  # ARN.
@@ -9158,6 +12339,11 @@ module Aws::Bedrock
9158
12339
  # guardrail.
9159
12340
  # @return [Types::GuardrailContextualGroundingPolicyConfig]
9160
12341
  #
12342
+ # @!attribute [rw] automated_reasoning_policy_config
12343
+ # Updated configuration for Automated Reasoning policies associated
12344
+ # with the guardrail.
12345
+ # @return [Types::GuardrailAutomatedReasoningPolicyConfig]
12346
+ #
9161
12347
  # @!attribute [rw] cross_region_config
9162
12348
  # The system-defined guardrail profile that you're using with your
9163
12349
  # guardrail. Guardrail profiles define the destination Amazon Web
@@ -9194,6 +12380,7 @@ module Aws::Bedrock
9194
12380
  :word_policy_config,
9195
12381
  :sensitive_information_policy_config,
9196
12382
  :contextual_grounding_policy_config,
12383
+ :automated_reasoning_policy_config,
9197
12384
  :cross_region_config,
9198
12385
  :blocked_input_messaging,
9199
12386
  :blocked_outputs_messaging,