Skip to content

Commit 2364e18

Browse files
This release includes model updates and enhanced SDK documentation for union fields in automated reasoning policy components. Added docs cover policy definitions, mutations (add/update for rules/types/variables), build assets, workflow sources, test results, and tag exception handling.
1 parent 1d5ac10 commit 2364e18

18 files changed

+156
-36
lines changed

generator/ServiceModels/bedrock/bedrock-2023-04-20.api.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@
108108
{"shape":"ValidationException"},
109109
{"shape":"ConflictException"},
110110
{"shape":"InternalServerException"},
111+
{"shape":"TooManyTagsException"},
111112
{"shape":"ServiceQuotaExceededException"},
112113
{"shape":"ThrottlingException"}
113114
],

generator/ServiceModels/bedrock/bedrock-2023-04-20.docs.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -720,8 +720,8 @@
720720
"AutomatedReasoningPolicyDefinition": {
721721
"base": "<p>Contains the formal logic rules, variables, and custom variable types that define an Automated Reasoning policy. The policy definition specifies the constraints used to validate foundation model responses for accuracy and logical consistency.</p>",
722722
"refs": {
723-
"AutomatedReasoningPolicyBuildResultAssets$policyDefinition": null,
724-
"AutomatedReasoningPolicyBuildWorkflowSource$policyDefinition": null,
723+
"AutomatedReasoningPolicyBuildResultAssets$policyDefinition": "<p>The complete policy definition generated by the build workflow, containing all rules, variables, and custom types extracted from the source documents.</p>",
724+
"AutomatedReasoningPolicyBuildWorkflowSource$policyDefinition": "<p>An existing policy definition that serves as the starting point for the build workflow, typically used in policy repair or update scenarios.</p>",
725725
"CreateAutomatedReasoningPolicyRequest$policyDefinition": "<p>The policy definition that contains the formal logic rules, variables, and custom variable types used to validate foundation model responses in your application.</p>",
726726
"ExportAutomatedReasoningPolicyVersionResponse$policyDefinition": "<p>The exported policy definition containing the formal logic rules, variables, and custom variable types.</p>",
727727
"UpdateAutomatedReasoningPolicyRequest$policyDefinition": "<p>The updated policy definition containing the formal logic rules, variables, and types.</p>"
@@ -742,10 +742,10 @@
742742
"AutomatedReasoningPolicyDefinitionRule": {
743743
"base": "<p>Represents a formal logic rule in an Automated Reasoning policy. For example, rules can be expressed as if-then statements that define logical constraints.</p>",
744744
"refs": {
745-
"AutomatedReasoningPolicyAddRuleMutation$rule": null,
746-
"AutomatedReasoningPolicyDefinitionElement$policyDefinitionRule": null,
745+
"AutomatedReasoningPolicyAddRuleMutation$rule": "<p>The rule definition that specifies the formal logical expression and metadata for the new rule being added to the policy.</p>",
746+
"AutomatedReasoningPolicyDefinitionElement$policyDefinitionRule": "<p>A rule element within the policy definition that contains a formal logical expression used for validation.</p>",
747747
"AutomatedReasoningPolicyDefinitionRuleList$member": null,
748-
"AutomatedReasoningPolicyUpdateRuleMutation$rule": null
748+
"AutomatedReasoningPolicyUpdateRuleMutation$rule": "<p>The updated rule definition containing the modified formal logical expression and any changed metadata for the existing rule.</p>"
749749
}
750750
},
751751
"AutomatedReasoningPolicyDefinitionRuleAlternateExpression": {
@@ -792,10 +792,10 @@
792792
"AutomatedReasoningPolicyDefinitionType": {
793793
"base": "<p>Represents a custom user-defined viarble type in an Automated Reasoning policy. Types are enum-based and provide additional context beyond predefined variable types.</p>",
794794
"refs": {
795-
"AutomatedReasoningPolicyAddTypeMutation$type": null,
796-
"AutomatedReasoningPolicyDefinitionElement$policyDefinitionType": null,
795+
"AutomatedReasoningPolicyAddTypeMutation$type": "<p>The type definition that specifies the name, description, and possible values for the new custom type being added to the policy.</p>",
796+
"AutomatedReasoningPolicyDefinitionElement$policyDefinitionType": "<p>A custom type element within the policy definition that defines a set of possible values for variables.</p>",
797797
"AutomatedReasoningPolicyDefinitionTypeList$member": null,
798-
"AutomatedReasoningPolicyUpdateTypeMutation$type": null
798+
"AutomatedReasoningPolicyUpdateTypeMutation$type": "<p>The updated type definition containing the modified name, description, or values for the existing custom type.</p>"
799799
}
800800
},
801801
"AutomatedReasoningPolicyDefinitionTypeDescription": {
@@ -880,10 +880,10 @@
880880
"AutomatedReasoningPolicyDefinitionVariable": {
881881
"base": "<p>Represents a variable in an Automated Reasoning policy. Variables represent concepts that can have values assigned during natural language translation.</p>",
882882
"refs": {
883-
"AutomatedReasoningPolicyAddVariableMutation$variable": null,
884-
"AutomatedReasoningPolicyDefinitionElement$policyDefinitionVariable": null,
883+
"AutomatedReasoningPolicyAddVariableMutation$variable": "<p>The variable definition that specifies the name, type, and description for the new variable being added to the policy.</p>",
884+
"AutomatedReasoningPolicyDefinitionElement$policyDefinitionVariable": "<p>A variable element within the policy definition that represents a concept used in logical expressions and rules.</p>",
885885
"AutomatedReasoningPolicyDefinitionVariableList$member": null,
886-
"AutomatedReasoningPolicyUpdateVariableMutation$variable": null
886+
"AutomatedReasoningPolicyUpdateVariableMutation$variable": "<p>The updated variable definition containing the modified name, type, or description for the existing variable.</p>"
887887
}
888888
},
889889
"AutomatedReasoningPolicyDefinitionVariableDescription": {
@@ -1082,7 +1082,7 @@
10821082
"base": "<p>Represents a test for validating an Automated Reasoning policy. tests contain sample inputs and expected outcomes to verify policy behavior.</p>",
10831083
"refs": {
10841084
"AutomatedReasoningPolicyTestCaseList$member": null,
1085-
"AutomatedReasoningPolicyTestResult$testCase": null,
1085+
"AutomatedReasoningPolicyTestResult$testCase": "<p>The test case that was executed, including the input content, expected results, and configuration parameters used during validation.</p>",
10861086
"GetAutomatedReasoningPolicyTestCaseResponse$testCase": "<p>The test details including the content, query, expected result, and metadata.</p>"
10871087
}
10881088
},

generator/ServiceModels/bedrock/bedrock-2023-04-20.normal.json

Lines changed: 49 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@
112112
{"shape":"ValidationException"},
113113
{"shape":"ConflictException"},
114114
{"shape":"InternalServerException"},
115+
{"shape":"TooManyTagsException"},
115116
{"shape":"ServiceQuotaExceededException"},
116117
{"shape":"ThrottlingException"}
117118
],
@@ -2287,7 +2288,10 @@
22872288
"type":"structure",
22882289
"required":["rule"],
22892290
"members":{
2290-
"rule":{"shape":"AutomatedReasoningPolicyDefinitionRule"}
2291+
"rule":{
2292+
"shape":"AutomatedReasoningPolicyDefinitionRule",
2293+
"documentation":"<p>The rule definition that specifies the formal logical expression and metadata for the new rule being added to the policy.</p>"
2294+
}
22912295
},
22922296
"documentation":"<p>A mutation operation that adds a new rule to the policy definition during the build process.</p>"
22932297
},
@@ -2318,7 +2322,10 @@
23182322
"type":"structure",
23192323
"required":["type"],
23202324
"members":{
2321-
"type":{"shape":"AutomatedReasoningPolicyDefinitionType"}
2325+
"type":{
2326+
"shape":"AutomatedReasoningPolicyDefinitionType",
2327+
"documentation":"<p>The type definition that specifies the name, description, and possible values for the new custom type being added to the policy.</p>"
2328+
}
23222329
},
23232330
"documentation":"<p>A mutation operation that adds a new custom type to the policy definition during the build process.</p>"
23242331
},
@@ -2364,7 +2371,10 @@
23642371
"type":"structure",
23652372
"required":["variable"],
23662373
"members":{
2367-
"variable":{"shape":"AutomatedReasoningPolicyDefinitionVariable"}
2374+
"variable":{
2375+
"shape":"AutomatedReasoningPolicyDefinitionVariable",
2376+
"documentation":"<p>The variable definition that specifies the name, type, and description for the new variable being added to the policy.</p>"
2377+
}
23682378
},
23692379
"documentation":"<p>A mutation operation that adds a new variable to the policy definition during the build process.</p>"
23702380
},
@@ -2543,7 +2553,10 @@
25432553
"AutomatedReasoningPolicyBuildResultAssets":{
25442554
"type":"structure",
25452555
"members":{
2546-
"policyDefinition":{"shape":"AutomatedReasoningPolicyDefinition"},
2556+
"policyDefinition":{
2557+
"shape":"AutomatedReasoningPolicyDefinition",
2558+
"documentation":"<p>The complete policy definition generated by the build workflow, containing all rules, variables, and custom types extracted from the source documents.</p>"
2559+
},
25472560
"qualityReport":{
25482561
"shape":"AutomatedReasoningPolicyDefinitionQualityReport",
25492562
"documentation":"<p>A comprehensive report analyzing the quality of the generated policy, including metrics about rule coverage, potential conflicts, and unused elements.</p>"
@@ -2677,7 +2690,10 @@
26772690
"AutomatedReasoningPolicyBuildWorkflowSource":{
26782691
"type":"structure",
26792692
"members":{
2680-
"policyDefinition":{"shape":"AutomatedReasoningPolicyDefinition"},
2693+
"policyDefinition":{
2694+
"shape":"AutomatedReasoningPolicyDefinition",
2695+
"documentation":"<p>An existing policy definition that serves as the starting point for the build workflow, typically used in policy repair or update scenarios.</p>"
2696+
},
26812697
"workflowContent":{
26822698
"shape":"AutomatedReasoningPolicyWorkflowTypeContent",
26832699
"documentation":"<p>The actual content to be processed in the build workflow, such as documents to analyze or repair instructions to apply.</p>"
@@ -2781,9 +2797,18 @@
27812797
"AutomatedReasoningPolicyDefinitionElement":{
27822798
"type":"structure",
27832799
"members":{
2784-
"policyDefinitionVariable":{"shape":"AutomatedReasoningPolicyDefinitionVariable"},
2785-
"policyDefinitionType":{"shape":"AutomatedReasoningPolicyDefinitionType"},
2786-
"policyDefinitionRule":{"shape":"AutomatedReasoningPolicyDefinitionRule"}
2800+
"policyDefinitionVariable":{
2801+
"shape":"AutomatedReasoningPolicyDefinitionVariable",
2802+
"documentation":"<p>A variable element within the policy definition that represents a concept used in logical expressions and rules.</p>"
2803+
},
2804+
"policyDefinitionType":{
2805+
"shape":"AutomatedReasoningPolicyDefinitionType",
2806+
"documentation":"<p>A custom type element within the policy definition that defines a set of possible values for variables.</p>"
2807+
},
2808+
"policyDefinitionRule":{
2809+
"shape":"AutomatedReasoningPolicyDefinitionRule",
2810+
"documentation":"<p>A rule element within the policy definition that contains a formal logical expression used for validation.</p>"
2811+
}
27872812
},
27882813
"documentation":"<p>Represents a single element in an Automated Reasoning policy definition, such as a rule, variable, or type definition.</p>",
27892814
"union":true
@@ -3410,7 +3435,10 @@
34103435
"updatedAt"
34113436
],
34123437
"members":{
3413-
"testCase":{"shape":"AutomatedReasoningPolicyTestCase"},
3438+
"testCase":{
3439+
"shape":"AutomatedReasoningPolicyTestCase",
3440+
"documentation":"<p>The test case that was executed, including the input content, expected results, and configuration parameters used during validation.</p>"
3441+
},
34143442
"policyArn":{
34153443
"shape":"AutomatedReasoningPolicyArn",
34163444
"documentation":"<p>The Amazon Resource Name (ARN) of the Automated Reasoning policy that was tested.</p>"
@@ -3536,7 +3564,10 @@
35363564
"type":"structure",
35373565
"required":["rule"],
35383566
"members":{
3539-
"rule":{"shape":"AutomatedReasoningPolicyDefinitionRule"}
3567+
"rule":{
3568+
"shape":"AutomatedReasoningPolicyDefinitionRule",
3569+
"documentation":"<p>The updated rule definition containing the modified formal logical expression and any changed metadata for the existing rule.</p>"
3570+
}
35403571
},
35413572
"documentation":"<p>A mutation operation that modifies an existing rule in the policy definition during the build process.</p>"
35423573
},
@@ -3570,7 +3601,10 @@
35703601
"type":"structure",
35713602
"required":["type"],
35723603
"members":{
3573-
"type":{"shape":"AutomatedReasoningPolicyDefinitionType"}
3604+
"type":{
3605+
"shape":"AutomatedReasoningPolicyDefinitionType",
3606+
"documentation":"<p>The updated type definition containing the modified name, description, or values for the existing custom type.</p>"
3607+
}
35743608
},
35753609
"documentation":"<p>A mutation operation that modifies an existing custom type in the policy definition during the build process.</p>"
35763610
},
@@ -3616,7 +3650,10 @@
36163650
"type":"structure",
36173651
"required":["variable"],
36183652
"members":{
3619-
"variable":{"shape":"AutomatedReasoningPolicyDefinitionVariable"}
3653+
"variable":{
3654+
"shape":"AutomatedReasoningPolicyDefinitionVariable",
3655+
"documentation":"<p>The updated variable definition containing the modified name, type, or description for the existing variable.</p>"
3656+
}
36203657
},
36213658
"documentation":"<p>A mutation operation that modifies an existing variable in the policy definition during the build process.</p>"
36223659
},

sdk/src/Services/Bedrock/Generated/Model/AutomatedReasoningPolicyAddRuleMutation.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,11 @@ public partial class AutomatedReasoningPolicyAddRuleMutation
3838
private AutomatedReasoningPolicyDefinitionRule _rule;
3939

4040
/// <summary>
41-
/// Gets and sets the property Rule.
41+
/// Gets and sets the property Rule.
42+
/// <para>
43+
/// The rule definition that specifies the formal logical expression and metadata for
44+
/// the new rule being added to the policy.
45+
/// </para>
4246
/// </summary>
4347
[AWSProperty(Required=true)]
4448
public AutomatedReasoningPolicyDefinitionRule Rule

sdk/src/Services/Bedrock/Generated/Model/AutomatedReasoningPolicyAddTypeMutation.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,11 @@ public partial class AutomatedReasoningPolicyAddTypeMutation
3838
private AutomatedReasoningPolicyDefinitionType _type;
3939

4040
/// <summary>
41-
/// Gets and sets the property Type.
41+
/// Gets and sets the property Type.
42+
/// <para>
43+
/// The type definition that specifies the name, description, and possible values for
44+
/// the new custom type being added to the policy.
45+
/// </para>
4246
/// </summary>
4347
[AWSProperty(Required=true)]
4448
public AutomatedReasoningPolicyDefinitionType Type

sdk/src/Services/Bedrock/Generated/Model/AutomatedReasoningPolicyAddVariableMutation.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,11 @@ public partial class AutomatedReasoningPolicyAddVariableMutation
3838
private AutomatedReasoningPolicyDefinitionVariable _variable;
3939

4040
/// <summary>
41-
/// Gets and sets the property Variable.
41+
/// Gets and sets the property Variable.
42+
/// <para>
43+
/// The variable definition that specifies the name, type, and description for the new
44+
/// variable being added to the policy.
45+
/// </para>
4246
/// </summary>
4347
[AWSProperty(Required=true)]
4448
public AutomatedReasoningPolicyDefinitionVariable Variable

sdk/src/Services/Bedrock/Generated/Model/AutomatedReasoningPolicyBuildResultAssets.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,11 @@ internal bool IsSetBuildLog()
5959
}
6060

6161
/// <summary>
62-
/// Gets and sets the property PolicyDefinition.
62+
/// Gets and sets the property PolicyDefinition.
63+
/// <para>
64+
/// The complete policy definition generated by the build workflow, containing all rules,
65+
/// variables, and custom types extracted from the source documents.
66+
/// </para>
6367
/// </summary>
6468
public AutomatedReasoningPolicyDefinition PolicyDefinition
6569
{

sdk/src/Services/Bedrock/Generated/Model/AutomatedReasoningPolicyBuildWorkflowSource.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,11 @@ public partial class AutomatedReasoningPolicyBuildWorkflowSource
3939
private AutomatedReasoningPolicyWorkflowTypeContent _workflowContent;
4040

4141
/// <summary>
42-
/// Gets and sets the property PolicyDefinition.
42+
/// Gets and sets the property PolicyDefinition.
43+
/// <para>
44+
/// An existing policy definition that serves as the starting point for the build workflow,
45+
/// typically used in policy repair or update scenarios.
46+
/// </para>
4347
/// </summary>
4448
public AutomatedReasoningPolicyDefinition PolicyDefinition
4549
{

sdk/src/Services/Bedrock/Generated/Model/AutomatedReasoningPolicyDefinitionElement.cs

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,11 @@ public partial class AutomatedReasoningPolicyDefinitionElement
4040
private AutomatedReasoningPolicyDefinitionVariable _policyDefinitionVariable;
4141

4242
/// <summary>
43-
/// Gets and sets the property PolicyDefinitionRule.
43+
/// Gets and sets the property PolicyDefinitionRule.
44+
/// <para>
45+
/// A rule element within the policy definition that contains a formal logical expression
46+
/// used for validation.
47+
/// </para>
4448
/// </summary>
4549
public AutomatedReasoningPolicyDefinitionRule PolicyDefinitionRule
4650
{
@@ -55,7 +59,11 @@ internal bool IsSetPolicyDefinitionRule()
5559
}
5660

5761
/// <summary>
58-
/// Gets and sets the property PolicyDefinitionType.
62+
/// Gets and sets the property PolicyDefinitionType.
63+
/// <para>
64+
/// A custom type element within the policy definition that defines a set of possible
65+
/// values for variables.
66+
/// </para>
5967
/// </summary>
6068
public AutomatedReasoningPolicyDefinitionType PolicyDefinitionType
6169
{
@@ -70,7 +78,11 @@ internal bool IsSetPolicyDefinitionType()
7078
}
7179

7280
/// <summary>
73-
/// Gets and sets the property PolicyDefinitionVariable.
81+
/// Gets and sets the property PolicyDefinitionVariable.
82+
/// <para>
83+
/// A variable element within the policy definition that represents a concept used in
84+
/// logical expressions and rules.
85+
/// </para>
7486
/// </summary>
7587
public AutomatedReasoningPolicyDefinitionVariable PolicyDefinitionVariable
7688
{

sdk/src/Services/Bedrock/Generated/Model/AutomatedReasoningPolicyTestResult.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,11 @@ internal bool IsSetPolicyArn()
8282
}
8383

8484
/// <summary>
85-
/// Gets and sets the property TestCase.
85+
/// Gets and sets the property TestCase.
86+
/// <para>
87+
/// The test case that was executed, including the input content, expected results, and
88+
/// configuration parameters used during validation.
89+
/// </para>
8690
/// </summary>
8791
[AWSProperty(Required=true)]
8892
public AutomatedReasoningPolicyTestCase TestCase

0 commit comments

Comments
 (0)