aws-sdk-bedrock 1.65.0 → 1.66.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 88f4e843b57ec20afe2a0f9fa902df4ade648926248e345b70dfcf1912e4e76e
4
- data.tar.gz: 3fbcdeebc8b9bd47e4fc216186d8c96548a6442bda6fcd56198ee0be7b48c461
3
+ metadata.gz: caa4908f5c60af56af5db865f3eb007c2c3edd175860c1dd89089fbdc48bedf9
4
+ data.tar.gz: cba932d9ebaa70ee9f69467d1b016733fc0ace81552c2856246aebb962609ad1
5
5
  SHA512:
6
- metadata.gz: 4adfa0e2e4d1ba4002690c4fcfbd003d5f5b29adfea96241f183faebeadcb558762499a1c60afbeeae718e065968c61be85f93dbd2803628889512217cd43a04
7
- data.tar.gz: 9c4bc551145e79db823b8c545b9521492d7a5134e6e49896f167769dc3ec0b40aa7bac08561af2f0bcca7497c8781e4e80538d488a65df13a1e101a70df8516e
6
+ metadata.gz: 32f5f938f699a96d42f98f86ba24d1a840b00257be540b83d0eacb0c4d19acc9caefd7eaefa0e0f37a2ea8c8d871097276c610c43a4220171b7a9e0f309b7385
7
+ data.tar.gz: 133e7b6d96b26d4e088eb77a9a271824f03719ddcde1c5fc55caae2c87f883a82ca3c23d5bf553bb3b1594c69a43627e882ac4f350b9a46c30812fd71997341d
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.66.0 (2025-11-17)
5
+ ------------------
6
+
7
+ * Feature - Automated Reasoning checks in Amazon Bedrock Guardrails now automatically generate Q&A tests for new Automated Reasoning policies. The GetAutomatedReasoningPolicyBuildWorkflowResultAssets API adds GENERATED_TEST_CASES asset type, allowing customers to retrieve tests generated by the build workflow.
8
+
4
9
  1.65.0 (2025-10-21)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.65.0
1
+ 1.66.0
@@ -3417,7 +3417,7 @@ module Aws::Bedrock
3417
3417
  # resp = client.get_automated_reasoning_policy_build_workflow_result_assets({
3418
3418
  # policy_arn: "AutomatedReasoningPolicyArn", # required
3419
3419
  # build_workflow_id: "AutomatedReasoningPolicyBuildWorkflowId", # required
3420
- # asset_type: "BUILD_LOG", # required, accepts BUILD_LOG, QUALITY_REPORT, POLICY_DEFINITION
3420
+ # asset_type: "BUILD_LOG", # required, accepts BUILD_LOG, QUALITY_REPORT, POLICY_DEFINITION, GENERATED_TEST_CASES
3421
3421
  # })
3422
3422
  #
3423
3423
  # @example Response structure
@@ -3534,6 +3534,10 @@ module Aws::Bedrock
3534
3534
  # resp.build_workflow_assets.build_log.entries[0].build_steps[0].messages #=> Array
3535
3535
  # resp.build_workflow_assets.build_log.entries[0].build_steps[0].messages[0].message #=> String
3536
3536
  # resp.build_workflow_assets.build_log.entries[0].build_steps[0].messages[0].message_type #=> String, one of "INFO", "WARNING", "ERROR"
3537
+ # resp.build_workflow_assets.generated_test_cases.generated_test_cases #=> Array
3538
+ # resp.build_workflow_assets.generated_test_cases.generated_test_cases[0].query_content #=> String
3539
+ # resp.build_workflow_assets.generated_test_cases.generated_test_cases[0].guard_content #=> String
3540
+ # resp.build_workflow_assets.generated_test_cases.generated_test_cases[0].expected_aggregated_findings_result #=> String, one of "VALID", "INVALID", "SATISFIABLE", "IMPOSSIBLE", "TRANSLATION_AMBIGUOUS", "TOO_COMPLEX", "NO_TRANSLATION"
3537
3541
  #
3538
3542
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetAutomatedReasoningPolicyBuildWorkflowResultAssets AWS API Documentation
3539
3543
  #
@@ -6244,7 +6248,7 @@ module Aws::Bedrock
6244
6248
  #
6245
6249
  # * Failed – This job has failed. Check the failure message for any
6246
6250
  # further details. For further assistance, reach out to the [Amazon
6247
- # Web ServicesSupport Center][3].
6251
+ # Web Services Support Center][3].
6248
6252
  #
6249
6253
  # * Stopped – This job was stopped by a user.
6250
6254
  #
@@ -7628,7 +7632,7 @@ module Aws::Bedrock
7628
7632
  tracer: tracer
7629
7633
  )
7630
7634
  context[:gem_name] = 'aws-sdk-bedrock'
7631
- context[:gem_version] = '1.65.0'
7635
+ context[:gem_version] = '1.66.0'
7632
7636
  Seahorse::Client::Request.new(handlers, context)
7633
7637
  end
7634
7638
 
@@ -136,6 +136,9 @@ module Aws::Bedrock
136
136
  AutomatedReasoningPolicyDisjointRuleSetList = Shapes::ListShape.new(name: 'AutomatedReasoningPolicyDisjointRuleSetList')
137
137
  AutomatedReasoningPolicyDisjointedRuleIdList = Shapes::ListShape.new(name: 'AutomatedReasoningPolicyDisjointedRuleIdList')
138
138
  AutomatedReasoningPolicyFormatVersion = Shapes::StringShape.new(name: 'AutomatedReasoningPolicyFormatVersion')
139
+ AutomatedReasoningPolicyGeneratedTestCase = Shapes::StructureShape.new(name: 'AutomatedReasoningPolicyGeneratedTestCase')
140
+ AutomatedReasoningPolicyGeneratedTestCaseList = Shapes::ListShape.new(name: 'AutomatedReasoningPolicyGeneratedTestCaseList')
141
+ AutomatedReasoningPolicyGeneratedTestCases = Shapes::StructureShape.new(name: 'AutomatedReasoningPolicyGeneratedTestCases')
139
142
  AutomatedReasoningPolicyHash = Shapes::StringShape.new(name: 'AutomatedReasoningPolicyHash')
140
143
  AutomatedReasoningPolicyId = Shapes::StringShape.new(name: 'AutomatedReasoningPolicyId')
141
144
  AutomatedReasoningPolicyIngestContentAnnotation = Shapes::StructureShape.new(name: 'AutomatedReasoningPolicyIngestContentAnnotation')
@@ -983,10 +986,12 @@ module Aws::Bedrock
983
986
  AutomatedReasoningPolicyBuildResultAssets.add_member(:policy_definition, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyDefinition, location_name: "policyDefinition"))
984
987
  AutomatedReasoningPolicyBuildResultAssets.add_member(:quality_report, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyDefinitionQualityReport, location_name: "qualityReport"))
985
988
  AutomatedReasoningPolicyBuildResultAssets.add_member(:build_log, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyBuildLog, location_name: "buildLog"))
989
+ AutomatedReasoningPolicyBuildResultAssets.add_member(:generated_test_cases, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyGeneratedTestCases, location_name: "generatedTestCases"))
986
990
  AutomatedReasoningPolicyBuildResultAssets.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
987
991
  AutomatedReasoningPolicyBuildResultAssets.add_member_subclass(:policy_definition, Types::AutomatedReasoningPolicyBuildResultAssets::PolicyDefinition)
988
992
  AutomatedReasoningPolicyBuildResultAssets.add_member_subclass(:quality_report, Types::AutomatedReasoningPolicyBuildResultAssets::QualityReport)
989
993
  AutomatedReasoningPolicyBuildResultAssets.add_member_subclass(:build_log, Types::AutomatedReasoningPolicyBuildResultAssets::BuildLog)
994
+ AutomatedReasoningPolicyBuildResultAssets.add_member_subclass(:generated_test_cases, Types::AutomatedReasoningPolicyBuildResultAssets::GeneratedTestCases)
990
995
  AutomatedReasoningPolicyBuildResultAssets.add_member_subclass(:unknown, Types::AutomatedReasoningPolicyBuildResultAssets::Unknown)
991
996
  AutomatedReasoningPolicyBuildResultAssets.struct_class = Types::AutomatedReasoningPolicyBuildResultAssets
992
997
 
@@ -1132,6 +1137,16 @@ module Aws::Bedrock
1132
1137
 
1133
1138
  AutomatedReasoningPolicyDisjointedRuleIdList.member = Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyDefinitionRuleId)
1134
1139
 
1140
+ AutomatedReasoningPolicyGeneratedTestCase.add_member(:query_content, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyTestQueryContent, required: true, location_name: "queryContent"))
1141
+ AutomatedReasoningPolicyGeneratedTestCase.add_member(:guard_content, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyTestGuardContent, required: true, location_name: "guardContent"))
1142
+ AutomatedReasoningPolicyGeneratedTestCase.add_member(:expected_aggregated_findings_result, Shapes::ShapeRef.new(shape: AutomatedReasoningCheckResult, required: true, location_name: "expectedAggregatedFindingsResult"))
1143
+ AutomatedReasoningPolicyGeneratedTestCase.struct_class = Types::AutomatedReasoningPolicyGeneratedTestCase
1144
+
1145
+ AutomatedReasoningPolicyGeneratedTestCaseList.member = Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyGeneratedTestCase)
1146
+
1147
+ AutomatedReasoningPolicyGeneratedTestCases.add_member(:generated_test_cases, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyGeneratedTestCaseList, required: true, location_name: "generatedTestCases"))
1148
+ AutomatedReasoningPolicyGeneratedTestCases.struct_class = Types::AutomatedReasoningPolicyGeneratedTestCases
1149
+
1135
1150
  AutomatedReasoningPolicyIngestContentAnnotation.add_member(:content, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyAnnotationIngestContent, required: true, location_name: "content"))
1136
1151
  AutomatedReasoningPolicyIngestContentAnnotation.struct_class = Types::AutomatedReasoningPolicyIngestContentAnnotation
1137
1152
 
@@ -830,7 +830,8 @@ module Aws::Bedrock
830
830
  end
831
831
 
832
832
  # Contains the various assets generated during a policy build workflow,
833
- # including logs, quality reports, and the final policy definition.
833
+ # including logs, quality reports, test cases, and the final policy
834
+ # definition.
834
835
  #
835
836
  # @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.
836
837
  #
@@ -851,12 +852,18 @@ module Aws::Bedrock
851
852
  # step in the policy generation process.
852
853
  # @return [Types::AutomatedReasoningPolicyBuildLog]
853
854
  #
855
+ # @!attribute [rw] generated_test_cases
856
+ # A comprehensive test suite generated by the build workflow,
857
+ # providing validation capabilities for automated reasoning policies.
858
+ # @return [Types::AutomatedReasoningPolicyGeneratedTestCases]
859
+ #
854
860
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningPolicyBuildResultAssets AWS API Documentation
855
861
  #
856
862
  class AutomatedReasoningPolicyBuildResultAssets < Struct.new(
857
863
  :policy_definition,
858
864
  :quality_report,
859
865
  :build_log,
866
+ :generated_test_cases,
860
867
  :unknown)
861
868
  SENSITIVE = []
862
869
  include Aws::Structure
@@ -865,6 +872,7 @@ module Aws::Bedrock
865
872
  class PolicyDefinition < AutomatedReasoningPolicyBuildResultAssets; end
866
873
  class QualityReport < AutomatedReasoningPolicyBuildResultAssets; end
867
874
  class BuildLog < AutomatedReasoningPolicyBuildResultAssets; end
875
+ class GeneratedTestCases < AutomatedReasoningPolicyBuildResultAssets; end
868
876
  class Unknown < AutomatedReasoningPolicyBuildResultAssets; end
869
877
  end
870
878
 
@@ -1451,6 +1459,72 @@ module Aws::Bedrock
1451
1459
  include Aws::Structure
1452
1460
  end
1453
1461
 
1462
+ # Represents a generated test case, consisting of query content, guard
1463
+ # content, and expected results.
1464
+ #
1465
+ # @!attribute [rw] query_content
1466
+ # The input query or prompt that generated the content. This provides
1467
+ # context for the validation.
1468
+ # @return [String]
1469
+ #
1470
+ # @!attribute [rw] guard_content
1471
+ # The output content that's validated by the Automated Reasoning
1472
+ # policy. This represents the foundation model response that will be
1473
+ # checked for accuracy.
1474
+ # @return [String]
1475
+ #
1476
+ # @!attribute [rw] expected_aggregated_findings_result
1477
+ # The expected results of the generated test case. Possible values
1478
+ # include:
1479
+ #
1480
+ # * `VALID` - The claims are true. The claims are implied by the
1481
+ # premises and the Automated Reasoning policy. Given the Automated
1482
+ # Reasoning policy and premises, it is not possible for these claims
1483
+ # to be false. In other words, there are no alternative answers that
1484
+ # are true that contradict the claims.
1485
+ #
1486
+ # * `INVALID` - The claims are false. The claims are not implied by
1487
+ # the premises and Automated Reasoning policy. Furthermore, there
1488
+ # exists different claims that are consistent with the premises and
1489
+ # Automated Reasoning policy.
1490
+ #
1491
+ # * `SATISFIABLE` - The claims can be true or false. It depends on
1492
+ # what assumptions are made for the claim to be implied from the
1493
+ # premises and Automated Reasoning policy rules. In this situation,
1494
+ # different assumptions can make input claims false and alternative
1495
+ # claims true.
1496
+ #
1497
+ # * `IMPOSSIBLE` - Automated Reasoning can’t make a statement about
1498
+ # the claims. This can happen if the premises are logically
1499
+ # incorrect, or if there is a conflict within the Automated
1500
+ # Reasoning policy itself.
1501
+ # @return [String]
1502
+ #
1503
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningPolicyGeneratedTestCase AWS API Documentation
1504
+ #
1505
+ class AutomatedReasoningPolicyGeneratedTestCase < Struct.new(
1506
+ :query_content,
1507
+ :guard_content,
1508
+ :expected_aggregated_findings_result)
1509
+ SENSITIVE = [:query_content, :guard_content]
1510
+ include Aws::Structure
1511
+ end
1512
+
1513
+ # Contains a comprehensive test suite generated by the build workflow,
1514
+ # providing validation capabilities for automated reasoning policies.
1515
+ #
1516
+ # @!attribute [rw] generated_test_cases
1517
+ # Represents a collection of generated test cases.
1518
+ # @return [Array<Types::AutomatedReasoningPolicyGeneratedTestCase>]
1519
+ #
1520
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningPolicyGeneratedTestCases AWS API Documentation
1521
+ #
1522
+ class AutomatedReasoningPolicyGeneratedTestCases < Struct.new(
1523
+ :generated_test_cases)
1524
+ SENSITIVE = []
1525
+ include Aws::Structure
1526
+ end
1527
+
1454
1528
  # An annotation for processing and incorporating new content into an
1455
1529
  # Automated Reasoning policy.
1456
1530
  #
@@ -6435,7 +6509,7 @@ module Aws::Bedrock
6435
6509
  #
6436
6510
  # * Failed – This job has failed. Check the failure message for any
6437
6511
  # further details. For further assistance, reach out to the [Amazon
6438
- # Web ServicesSupport Center][3].
6512
+ # Web Services Support Center][3].
6439
6513
  #
6440
6514
  # * Stopped – This job was stopped by a user.
6441
6515
  #
@@ -9865,7 +9939,7 @@ module Aws::Bedrock
9865
9939
  #
9866
9940
  # * Failed – This job has failed. Check the failure message for any
9867
9941
  # further details. For further assistance, reach out to the [Amazon
9868
- # Web ServicesSupport Center][3].
9942
+ # Web Services Support Center][3].
9869
9943
  #
9870
9944
  # * Stopped – This job was stopped by a user.
9871
9945
  #
@@ -10682,7 +10756,7 @@ module Aws::Bedrock
10682
10756
  #
10683
10757
  # * Failed – This job has failed. Check the failure message for any
10684
10758
  # further details. For further assistance, reach out to the [Amazon
10685
- # Web ServicesSupport Center][3].
10759
+ # Web Services Support Center][3].
10686
10760
  #
10687
10761
  # * Stopped – This job was stopped by a user.
10688
10762
  #
@@ -55,7 +55,7 @@ module Aws::Bedrock
55
55
  autoload :EndpointProvider, 'aws-sdk-bedrock/endpoint_provider'
56
56
  autoload :Endpoints, 'aws-sdk-bedrock/endpoints'
57
57
 
58
- GEM_VERSION = '1.65.0'
58
+ GEM_VERSION = '1.66.0'
59
59
 
60
60
  end
61
61
 
data/sig/client.rbs CHANGED
@@ -1260,7 +1260,7 @@ module Aws
1260
1260
  def get_automated_reasoning_policy_build_workflow_result_assets: (
1261
1261
  policy_arn: ::String,
1262
1262
  build_workflow_id: ::String,
1263
- asset_type: ("BUILD_LOG" | "QUALITY_REPORT" | "POLICY_DEFINITION")
1263
+ asset_type: ("BUILD_LOG" | "QUALITY_REPORT" | "POLICY_DEFINITION" | "GENERATED_TEST_CASES")
1264
1264
  ) -> _GetAutomatedReasoningPolicyBuildWorkflowResultAssetsResponseSuccess
1265
1265
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetAutomatedReasoningPolicyBuildWorkflowResultAssetsResponseSuccess
1266
1266
 
data/sig/types.rbs CHANGED
@@ -265,6 +265,7 @@ module Aws::Bedrock
265
265
  attr_accessor policy_definition: Types::AutomatedReasoningPolicyDefinition
266
266
  attr_accessor quality_report: Types::AutomatedReasoningPolicyDefinitionQualityReport
267
267
  attr_accessor build_log: Types::AutomatedReasoningPolicyBuildLog
268
+ attr_accessor generated_test_cases: Types::AutomatedReasoningPolicyGeneratedTestCases
268
269
  attr_accessor unknown: untyped
269
270
  SENSITIVE: []
270
271
 
@@ -274,6 +275,8 @@ module Aws::Bedrock
274
275
  end
275
276
  class BuildLog < AutomatedReasoningPolicyBuildResultAssets
276
277
  end
278
+ class GeneratedTestCases < AutomatedReasoningPolicyBuildResultAssets
279
+ end
277
280
  class Unknown < AutomatedReasoningPolicyBuildResultAssets
278
281
  end
279
282
  end
@@ -445,6 +448,18 @@ module Aws::Bedrock
445
448
  SENSITIVE: []
446
449
  end
447
450
 
451
+ class AutomatedReasoningPolicyGeneratedTestCase
452
+ attr_accessor query_content: ::String
453
+ attr_accessor guard_content: ::String
454
+ attr_accessor expected_aggregated_findings_result: ("VALID" | "INVALID" | "SATISFIABLE" | "IMPOSSIBLE" | "TRANSLATION_AMBIGUOUS" | "TOO_COMPLEX" | "NO_TRANSLATION")
455
+ SENSITIVE: [:query_content, :guard_content]
456
+ end
457
+
458
+ class AutomatedReasoningPolicyGeneratedTestCases
459
+ attr_accessor generated_test_cases: ::Array[Types::AutomatedReasoningPolicyGeneratedTestCase]
460
+ SENSITIVE: []
461
+ end
462
+
448
463
  class AutomatedReasoningPolicyIngestContentAnnotation
449
464
  attr_accessor content: ::String
450
465
  SENSITIVE: [:content]
@@ -1439,7 +1454,7 @@ module Aws::Bedrock
1439
1454
  class GetAutomatedReasoningPolicyBuildWorkflowResultAssetsRequest
1440
1455
  attr_accessor policy_arn: ::String
1441
1456
  attr_accessor build_workflow_id: ::String
1442
- attr_accessor asset_type: ("BUILD_LOG" | "QUALITY_REPORT" | "POLICY_DEFINITION")
1457
+ attr_accessor asset_type: ("BUILD_LOG" | "QUALITY_REPORT" | "POLICY_DEFINITION" | "GENERATED_TEST_CASES")
1443
1458
  SENSITIVE: []
1444
1459
  end
1445
1460
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-bedrock
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.65.0
4
+ version: 1.66.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services