aws-sdk-bedrock 1.69.0 → 1.70.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 +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-bedrock/client.rb +9 -3
- data/lib/aws-sdk-bedrock/client_api.rb +10 -1
- data/lib/aws-sdk-bedrock/types.rb +31 -7
- data/lib/aws-sdk-bedrock.rb +1 -1
- data/sig/client.rbs +1 -1
- data/sig/types.rbs +10 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e4faf3a418ad62c28406257bc3938fe0d167c867ec1bbe39b9fe29ab59091caf
|
|
4
|
+
data.tar.gz: c057c56d4aee09fa5e9cff4b87f0ee9e8ed336152f5183c0bb623570aa7bd48b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 88936230651a99b26fb76623ef5a26d74650aef66c7642b4f52cc7bdc0c66724eaf7fd49342534795b4916d494badb0b55c4a00a0469c15bb296dd2c37d9c487
|
|
7
|
+
data.tar.gz: cb3b03be3f9e35ba73c23aa0488b59ea45e0fd180dcfa103c12812462e355e4706b17cefff03252ac2c3e6c5978d1ef6564c7d7482d37f866d12ed0a00dea09a
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
Unreleased Changes
|
|
2
2
|
------------------
|
|
3
3
|
|
|
4
|
+
1.70.0 (2025-12-10)
|
|
5
|
+
------------------
|
|
6
|
+
|
|
7
|
+
* Feature - Automated Reasoning checks in Amazon Bedrock Guardrails is capable of generating policy scenarios to validate policies. The GetAutomatedReasoningPolicyBuildWorkflowResultAssets API now adds POLICY SCENARIO asset type, allowing customers to retrieve scenarios generated by the build workflow.
|
|
8
|
+
|
|
4
9
|
1.69.0 (2025-12-03)
|
|
5
10
|
------------------
|
|
6
11
|
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.70.0
|
|
@@ -3456,7 +3456,7 @@ module Aws::Bedrock
|
|
|
3456
3456
|
# resp = client.get_automated_reasoning_policy_build_workflow_result_assets({
|
|
3457
3457
|
# policy_arn: "AutomatedReasoningPolicyArn", # required
|
|
3458
3458
|
# build_workflow_id: "AutomatedReasoningPolicyBuildWorkflowId", # required
|
|
3459
|
-
# asset_type: "BUILD_LOG", # required, accepts BUILD_LOG, QUALITY_REPORT, POLICY_DEFINITION, GENERATED_TEST_CASES
|
|
3459
|
+
# asset_type: "BUILD_LOG", # required, accepts BUILD_LOG, QUALITY_REPORT, POLICY_DEFINITION, GENERATED_TEST_CASES, POLICY_SCENARIOS
|
|
3460
3460
|
# })
|
|
3461
3461
|
#
|
|
3462
3462
|
# @example Response structure
|
|
@@ -3577,6 +3577,12 @@ module Aws::Bedrock
|
|
|
3577
3577
|
# resp.build_workflow_assets.generated_test_cases.generated_test_cases[0].query_content #=> String
|
|
3578
3578
|
# resp.build_workflow_assets.generated_test_cases.generated_test_cases[0].guard_content #=> String
|
|
3579
3579
|
# 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"
|
|
3580
|
+
# resp.build_workflow_assets.policy_scenarios.policy_scenarios #=> Array
|
|
3581
|
+
# resp.build_workflow_assets.policy_scenarios.policy_scenarios[0].expression #=> String
|
|
3582
|
+
# resp.build_workflow_assets.policy_scenarios.policy_scenarios[0].alternate_expression #=> String
|
|
3583
|
+
# resp.build_workflow_assets.policy_scenarios.policy_scenarios[0].expected_result #=> String, one of "VALID", "INVALID", "SATISFIABLE", "IMPOSSIBLE", "TRANSLATION_AMBIGUOUS", "TOO_COMPLEX", "NO_TRANSLATION"
|
|
3584
|
+
# resp.build_workflow_assets.policy_scenarios.policy_scenarios[0].rule_ids #=> Array
|
|
3585
|
+
# resp.build_workflow_assets.policy_scenarios.policy_scenarios[0].rule_ids[0] #=> String
|
|
3580
3586
|
#
|
|
3581
3587
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetAutomatedReasoningPolicyBuildWorkflowResultAssets AWS API Documentation
|
|
3582
3588
|
#
|
|
@@ -3616,9 +3622,9 @@ module Aws::Bedrock
|
|
|
3616
3622
|
# resp.policy_arn #=> String
|
|
3617
3623
|
# resp.scenario.expression #=> String
|
|
3618
3624
|
# resp.scenario.alternate_expression #=> String
|
|
3625
|
+
# resp.scenario.expected_result #=> String, one of "VALID", "INVALID", "SATISFIABLE", "IMPOSSIBLE", "TRANSLATION_AMBIGUOUS", "TOO_COMPLEX", "NO_TRANSLATION"
|
|
3619
3626
|
# resp.scenario.rule_ids #=> Array
|
|
3620
3627
|
# resp.scenario.rule_ids[0] #=> String
|
|
3621
|
-
# resp.scenario.expected_result #=> String, one of "VALID", "INVALID", "SATISFIABLE", "IMPOSSIBLE", "TRANSLATION_AMBIGUOUS", "TOO_COMPLEX", "NO_TRANSLATION"
|
|
3622
3628
|
#
|
|
3623
3629
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetAutomatedReasoningPolicyNextScenario AWS API Documentation
|
|
3624
3630
|
#
|
|
@@ -7812,7 +7818,7 @@ module Aws::Bedrock
|
|
|
7812
7818
|
tracer: tracer
|
|
7813
7819
|
)
|
|
7814
7820
|
context[:gem_name] = 'aws-sdk-bedrock'
|
|
7815
|
-
context[:gem_version] = '1.
|
|
7821
|
+
context[:gem_version] = '1.70.0'
|
|
7816
7822
|
Seahorse::Client::Request.new(handlers, context)
|
|
7817
7823
|
end
|
|
7818
7824
|
|
|
@@ -152,6 +152,8 @@ module Aws::Bedrock
|
|
|
152
152
|
AutomatedReasoningPolicyScenario = Shapes::StructureShape.new(name: 'AutomatedReasoningPolicyScenario')
|
|
153
153
|
AutomatedReasoningPolicyScenarioAlternateExpression = Shapes::StringShape.new(name: 'AutomatedReasoningPolicyScenarioAlternateExpression')
|
|
154
154
|
AutomatedReasoningPolicyScenarioExpression = Shapes::StringShape.new(name: 'AutomatedReasoningPolicyScenarioExpression')
|
|
155
|
+
AutomatedReasoningPolicyScenarioList = Shapes::ListShape.new(name: 'AutomatedReasoningPolicyScenarioList')
|
|
156
|
+
AutomatedReasoningPolicyScenarios = Shapes::StructureShape.new(name: 'AutomatedReasoningPolicyScenarios')
|
|
155
157
|
AutomatedReasoningPolicySummaries = Shapes::ListShape.new(name: 'AutomatedReasoningPolicySummaries')
|
|
156
158
|
AutomatedReasoningPolicySummary = Shapes::StructureShape.new(name: 'AutomatedReasoningPolicySummary')
|
|
157
159
|
AutomatedReasoningPolicyTestCase = Shapes::StructureShape.new(name: 'AutomatedReasoningPolicyTestCase')
|
|
@@ -1035,11 +1037,13 @@ module Aws::Bedrock
|
|
|
1035
1037
|
AutomatedReasoningPolicyBuildResultAssets.add_member(:quality_report, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyDefinitionQualityReport, location_name: "qualityReport"))
|
|
1036
1038
|
AutomatedReasoningPolicyBuildResultAssets.add_member(:build_log, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyBuildLog, location_name: "buildLog"))
|
|
1037
1039
|
AutomatedReasoningPolicyBuildResultAssets.add_member(:generated_test_cases, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyGeneratedTestCases, location_name: "generatedTestCases"))
|
|
1040
|
+
AutomatedReasoningPolicyBuildResultAssets.add_member(:policy_scenarios, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyScenarios, location_name: "policyScenarios"))
|
|
1038
1041
|
AutomatedReasoningPolicyBuildResultAssets.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
|
|
1039
1042
|
AutomatedReasoningPolicyBuildResultAssets.add_member_subclass(:policy_definition, Types::AutomatedReasoningPolicyBuildResultAssets::PolicyDefinition)
|
|
1040
1043
|
AutomatedReasoningPolicyBuildResultAssets.add_member_subclass(:quality_report, Types::AutomatedReasoningPolicyBuildResultAssets::QualityReport)
|
|
1041
1044
|
AutomatedReasoningPolicyBuildResultAssets.add_member_subclass(:build_log, Types::AutomatedReasoningPolicyBuildResultAssets::BuildLog)
|
|
1042
1045
|
AutomatedReasoningPolicyBuildResultAssets.add_member_subclass(:generated_test_cases, Types::AutomatedReasoningPolicyBuildResultAssets::GeneratedTestCases)
|
|
1046
|
+
AutomatedReasoningPolicyBuildResultAssets.add_member_subclass(:policy_scenarios, Types::AutomatedReasoningPolicyBuildResultAssets::PolicyScenarios)
|
|
1043
1047
|
AutomatedReasoningPolicyBuildResultAssets.add_member_subclass(:unknown, Types::AutomatedReasoningPolicyBuildResultAssets::Unknown)
|
|
1044
1048
|
AutomatedReasoningPolicyBuildResultAssets.struct_class = Types::AutomatedReasoningPolicyBuildResultAssets
|
|
1045
1049
|
|
|
@@ -1224,10 +1228,15 @@ module Aws::Bedrock
|
|
|
1224
1228
|
|
|
1225
1229
|
AutomatedReasoningPolicyScenario.add_member(:expression, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyScenarioExpression, required: true, location_name: "expression"))
|
|
1226
1230
|
AutomatedReasoningPolicyScenario.add_member(:alternate_expression, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyScenarioAlternateExpression, required: true, location_name: "alternateExpression"))
|
|
1227
|
-
AutomatedReasoningPolicyScenario.add_member(:rule_ids, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyDefinitionRuleIdList, required: true, location_name: "ruleIds"))
|
|
1228
1231
|
AutomatedReasoningPolicyScenario.add_member(:expected_result, Shapes::ShapeRef.new(shape: AutomatedReasoningCheckResult, required: true, location_name: "expectedResult"))
|
|
1232
|
+
AutomatedReasoningPolicyScenario.add_member(:rule_ids, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyDefinitionRuleIdList, required: true, location_name: "ruleIds"))
|
|
1229
1233
|
AutomatedReasoningPolicyScenario.struct_class = Types::AutomatedReasoningPolicyScenario
|
|
1230
1234
|
|
|
1235
|
+
AutomatedReasoningPolicyScenarioList.member = Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyScenario)
|
|
1236
|
+
|
|
1237
|
+
AutomatedReasoningPolicyScenarios.add_member(:policy_scenarios, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyScenarioList, required: true, location_name: "policyScenarios"))
|
|
1238
|
+
AutomatedReasoningPolicyScenarios.struct_class = Types::AutomatedReasoningPolicyScenarios
|
|
1239
|
+
|
|
1231
1240
|
AutomatedReasoningPolicySummaries.member = Shapes::ShapeRef.new(shape: AutomatedReasoningPolicySummary)
|
|
1232
1241
|
|
|
1233
1242
|
AutomatedReasoningPolicySummary.add_member(:policy_arn, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyArn, required: true, location_name: "policyArn"))
|
|
@@ -940,6 +940,12 @@ module Aws::Bedrock
|
|
|
940
940
|
# providing validation capabilities for automated reasoning policies.
|
|
941
941
|
# @return [Types::AutomatedReasoningPolicyGeneratedTestCases]
|
|
942
942
|
#
|
|
943
|
+
# @!attribute [rw] policy_scenarios
|
|
944
|
+
# An entity encompassing all the policy scenarios generated by the
|
|
945
|
+
# build workflow, which can be used to validate an Automated Reasoning
|
|
946
|
+
# policy.
|
|
947
|
+
# @return [Types::AutomatedReasoningPolicyScenarios]
|
|
948
|
+
#
|
|
943
949
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningPolicyBuildResultAssets AWS API Documentation
|
|
944
950
|
#
|
|
945
951
|
class AutomatedReasoningPolicyBuildResultAssets < Struct.new(
|
|
@@ -947,6 +953,7 @@ module Aws::Bedrock
|
|
|
947
953
|
:quality_report,
|
|
948
954
|
:build_log,
|
|
949
955
|
:generated_test_cases,
|
|
956
|
+
:policy_scenarios,
|
|
950
957
|
:unknown)
|
|
951
958
|
SENSITIVE = []
|
|
952
959
|
include Aws::Structure
|
|
@@ -956,6 +963,7 @@ module Aws::Bedrock
|
|
|
956
963
|
class QualityReport < AutomatedReasoningPolicyBuildResultAssets; end
|
|
957
964
|
class BuildLog < AutomatedReasoningPolicyBuildResultAssets; end
|
|
958
965
|
class GeneratedTestCases < AutomatedReasoningPolicyBuildResultAssets; end
|
|
966
|
+
class PolicyScenarios < AutomatedReasoningPolicyBuildResultAssets; end
|
|
959
967
|
class Unknown < AutomatedReasoningPolicyBuildResultAssets; end
|
|
960
968
|
end
|
|
961
969
|
|
|
@@ -1715,27 +1723,43 @@ module Aws::Bedrock
|
|
|
1715
1723
|
# validation and comparison purposes.
|
|
1716
1724
|
# @return [String]
|
|
1717
1725
|
#
|
|
1718
|
-
# @!attribute [rw] rule_ids
|
|
1719
|
-
# The list of rule identifiers that are expected to be triggered or
|
|
1720
|
-
# evaluated by this test scenario.
|
|
1721
|
-
# @return [Array<String>]
|
|
1722
|
-
#
|
|
1723
1726
|
# @!attribute [rw] expected_result
|
|
1724
1727
|
# The expected outcome when this scenario is evaluated against the
|
|
1725
1728
|
# policy (e.g., PASS, FAIL, VIOLATION).
|
|
1726
1729
|
# @return [String]
|
|
1727
1730
|
#
|
|
1731
|
+
# @!attribute [rw] rule_ids
|
|
1732
|
+
# The list of rule identifiers that are expected to be triggered or
|
|
1733
|
+
# evaluated by this test scenario.
|
|
1734
|
+
# @return [Array<String>]
|
|
1735
|
+
#
|
|
1728
1736
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningPolicyScenario AWS API Documentation
|
|
1729
1737
|
#
|
|
1730
1738
|
class AutomatedReasoningPolicyScenario < Struct.new(
|
|
1731
1739
|
:expression,
|
|
1732
1740
|
:alternate_expression,
|
|
1733
|
-
:
|
|
1734
|
-
:
|
|
1741
|
+
:expected_result,
|
|
1742
|
+
:rule_ids)
|
|
1735
1743
|
SENSITIVE = [:expression, :alternate_expression]
|
|
1736
1744
|
include Aws::Structure
|
|
1737
1745
|
end
|
|
1738
1746
|
|
|
1747
|
+
# Contains a comprehensive entity encompassing all the scenarios
|
|
1748
|
+
# generated by the build workflow, which can be used to validate an
|
|
1749
|
+
# Automated Reasoning policy.
|
|
1750
|
+
#
|
|
1751
|
+
# @!attribute [rw] policy_scenarios
|
|
1752
|
+
# Represents a collection of generated policy scenarios.
|
|
1753
|
+
# @return [Array<Types::AutomatedReasoningPolicyScenario>]
|
|
1754
|
+
#
|
|
1755
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AutomatedReasoningPolicyScenarios AWS API Documentation
|
|
1756
|
+
#
|
|
1757
|
+
class AutomatedReasoningPolicyScenarios < Struct.new(
|
|
1758
|
+
:policy_scenarios)
|
|
1759
|
+
SENSITIVE = []
|
|
1760
|
+
include Aws::Structure
|
|
1761
|
+
end
|
|
1762
|
+
|
|
1739
1763
|
# Contains summary information about an Automated Reasoning policy,
|
|
1740
1764
|
# including metadata and timestamps.
|
|
1741
1765
|
#
|
data/lib/aws-sdk-bedrock.rb
CHANGED
data/sig/client.rbs
CHANGED
|
@@ -1286,7 +1286,7 @@ module Aws
|
|
|
1286
1286
|
def get_automated_reasoning_policy_build_workflow_result_assets: (
|
|
1287
1287
|
policy_arn: ::String,
|
|
1288
1288
|
build_workflow_id: ::String,
|
|
1289
|
-
asset_type: ("BUILD_LOG" | "QUALITY_REPORT" | "POLICY_DEFINITION" | "GENERATED_TEST_CASES")
|
|
1289
|
+
asset_type: ("BUILD_LOG" | "QUALITY_REPORT" | "POLICY_DEFINITION" | "GENERATED_TEST_CASES" | "POLICY_SCENARIOS")
|
|
1290
1290
|
) -> _GetAutomatedReasoningPolicyBuildWorkflowResultAssetsResponseSuccess
|
|
1291
1291
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetAutomatedReasoningPolicyBuildWorkflowResultAssetsResponseSuccess
|
|
1292
1292
|
|
data/sig/types.rbs
CHANGED
|
@@ -287,6 +287,7 @@ module Aws::Bedrock
|
|
|
287
287
|
attr_accessor quality_report: Types::AutomatedReasoningPolicyDefinitionQualityReport
|
|
288
288
|
attr_accessor build_log: Types::AutomatedReasoningPolicyBuildLog
|
|
289
289
|
attr_accessor generated_test_cases: Types::AutomatedReasoningPolicyGeneratedTestCases
|
|
290
|
+
attr_accessor policy_scenarios: Types::AutomatedReasoningPolicyScenarios
|
|
290
291
|
attr_accessor unknown: untyped
|
|
291
292
|
SENSITIVE: []
|
|
292
293
|
|
|
@@ -298,6 +299,8 @@ module Aws::Bedrock
|
|
|
298
299
|
end
|
|
299
300
|
class GeneratedTestCases < AutomatedReasoningPolicyBuildResultAssets
|
|
300
301
|
end
|
|
302
|
+
class PolicyScenarios < AutomatedReasoningPolicyBuildResultAssets
|
|
303
|
+
end
|
|
301
304
|
class Unknown < AutomatedReasoningPolicyBuildResultAssets
|
|
302
305
|
end
|
|
303
306
|
end
|
|
@@ -527,11 +530,16 @@ module Aws::Bedrock
|
|
|
527
530
|
class AutomatedReasoningPolicyScenario
|
|
528
531
|
attr_accessor expression: ::String
|
|
529
532
|
attr_accessor alternate_expression: ::String
|
|
530
|
-
attr_accessor rule_ids: ::Array[::String]
|
|
531
533
|
attr_accessor expected_result: ("VALID" | "INVALID" | "SATISFIABLE" | "IMPOSSIBLE" | "TRANSLATION_AMBIGUOUS" | "TOO_COMPLEX" | "NO_TRANSLATION")
|
|
534
|
+
attr_accessor rule_ids: ::Array[::String]
|
|
532
535
|
SENSITIVE: [:expression, :alternate_expression]
|
|
533
536
|
end
|
|
534
537
|
|
|
538
|
+
class AutomatedReasoningPolicyScenarios
|
|
539
|
+
attr_accessor policy_scenarios: ::Array[Types::AutomatedReasoningPolicyScenario]
|
|
540
|
+
SENSITIVE: []
|
|
541
|
+
end
|
|
542
|
+
|
|
535
543
|
class AutomatedReasoningPolicySummary
|
|
536
544
|
attr_accessor policy_arn: ::String
|
|
537
545
|
attr_accessor name: ::String
|
|
@@ -1492,7 +1500,7 @@ module Aws::Bedrock
|
|
|
1492
1500
|
class GetAutomatedReasoningPolicyBuildWorkflowResultAssetsRequest
|
|
1493
1501
|
attr_accessor policy_arn: ::String
|
|
1494
1502
|
attr_accessor build_workflow_id: ::String
|
|
1495
|
-
attr_accessor asset_type: ("BUILD_LOG" | "QUALITY_REPORT" | "POLICY_DEFINITION" | "GENERATED_TEST_CASES")
|
|
1503
|
+
attr_accessor asset_type: ("BUILD_LOG" | "QUALITY_REPORT" | "POLICY_DEFINITION" | "GENERATED_TEST_CASES" | "POLICY_SCENARIOS")
|
|
1496
1504
|
SENSITIVE: []
|
|
1497
1505
|
end
|
|
1498
1506
|
|