Skip to content

Commit 911ac51

Browse files
author
AWS
committed
Amazon Bedrock Update: 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.
1 parent 1bdd4b7 commit 911ac51

File tree

2 files changed

+33
-7
lines changed

2 files changed

+33
-7
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "Amazon Bedrock",
4+
"contributor": "",
5+
"description": "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."
6+
}

services/bedrock/src/main/resources/codegen-resources/service-2.json

Lines changed: 27 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2754,7 +2754,8 @@
27542754
"BUILD_LOG",
27552755
"QUALITY_REPORT",
27562756
"POLICY_DEFINITION",
2757-
"GENERATED_TEST_CASES"
2757+
"GENERATED_TEST_CASES",
2758+
"POLICY_SCENARIOS"
27582759
]
27592760
},
27602761
"AutomatedReasoningPolicyBuildResultAssets":{
@@ -2775,6 +2776,10 @@
27752776
"generatedTestCases":{
27762777
"shape":"AutomatedReasoningPolicyGeneratedTestCases",
27772778
"documentation":"<p>A comprehensive test suite generated by the build workflow, providing validation capabilities for automated reasoning policies.</p>"
2779+
},
2780+
"policyScenarios":{
2781+
"shape":"AutomatedReasoningPolicyScenarios",
2782+
"documentation":"<p>An entity encompassing all the policy scenarios generated by the build workflow, which can be used to validate an Automated Reasoning policy. </p>"
27782783
}
27792784
},
27802785
"documentation":"<p>Contains the various assets generated during a policy build workflow, including logs, quality reports, test cases, and the final policy definition.</p>",
@@ -3510,8 +3515,8 @@
35103515
"required":[
35113516
"expression",
35123517
"alternateExpression",
3513-
"ruleIds",
3514-
"expectedResult"
3518+
"expectedResult",
3519+
"ruleIds"
35153520
],
35163521
"members":{
35173522
"expression":{
@@ -3522,13 +3527,13 @@
35223527
"shape":"AutomatedReasoningPolicyScenarioAlternateExpression",
35233528
"documentation":"<p>An alternative way to express the same test scenario, used for validation and comparison purposes.</p>"
35243529
},
3525-
"ruleIds":{
3526-
"shape":"AutomatedReasoningPolicyDefinitionRuleIdList",
3527-
"documentation":"<p>The list of rule identifiers that are expected to be triggered or evaluated by this test scenario.</p>"
3528-
},
35293530
"expectedResult":{
35303531
"shape":"AutomatedReasoningCheckResult",
35313532
"documentation":"<p>The expected outcome when this scenario is evaluated against the policy (e.g., PASS, FAIL, VIOLATION).</p>"
3533+
},
3534+
"ruleIds":{
3535+
"shape":"AutomatedReasoningPolicyDefinitionRuleIdList",
3536+
"documentation":"<p>The list of rule identifiers that are expected to be triggered or evaluated by this test scenario.</p>"
35323537
}
35333538
},
35343539
"documentation":"<p>Represents a test scenario used to validate an Automated Reasoning policy, including the test conditions and expected outcomes.</p>"
@@ -3545,6 +3550,21 @@
35453550
"min":0,
35463551
"sensitive":true
35473552
},
3553+
"AutomatedReasoningPolicyScenarioList":{
3554+
"type":"list",
3555+
"member":{"shape":"AutomatedReasoningPolicyScenario"}
3556+
},
3557+
"AutomatedReasoningPolicyScenarios":{
3558+
"type":"structure",
3559+
"required":["policyScenarios"],
3560+
"members":{
3561+
"policyScenarios":{
3562+
"shape":"AutomatedReasoningPolicyScenarioList",
3563+
"documentation":"<p>Represents a collection of generated policy scenarios.</p>"
3564+
}
3565+
},
3566+
"documentation":"<p>Contains a comprehensive entity encompassing all the scenarios generated by the build workflow, which can be used to validate an Automated Reasoning policy.</p>"
3567+
},
35483568
"AutomatedReasoningPolicySummaries":{
35493569
"type":"list",
35503570
"member":{"shape":"AutomatedReasoningPolicySummary"},

0 commit comments

Comments
 (0)