Skip to content

Commit 1a741cc

Browse files
author
awstools
committed
feat(client-bedrock): 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 9fda95f commit 1a741cc

File tree

3 files changed

+45
-17
lines changed

3 files changed

+45
-17
lines changed

clients/client-bedrock/src/commands/CreateAutomatedReasoningPolicyVersionCommand.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,9 @@ export interface CreateAutomatedReasoningPolicyVersionCommandOutput
9393
* @throws {@link ThrottlingException} (client fault)
9494
* <p>The number of requests exceeds the limit. Resubmit your request later.</p>
9595
*
96+
* @throws {@link TooManyTagsException} (client fault)
97+
* <p>The request contains more tags than can be associated with a resource (50 tags per resource). The maximum number of tags includes both existing tags and those included in your current request. </p>
98+
*
9699
* @throws {@link ValidationException} (client fault)
97100
* <p>Input validation failed. Check your request parameters and retry the request.</p>
98101
*

clients/client-bedrock/src/models/models_0.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1752,7 +1752,7 @@ export interface GetAutomatedReasoningPolicyBuildWorkflowResultAssetsRequest {
17521752
*/
17531753
export interface AutomatedReasoningPolicyAddRuleMutation {
17541754
/**
1755-
* <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>
1755+
* <p>The rule definition that specifies the formal logical expression and metadata for the new rule being added to the policy.</p>
17561756
* @public
17571757
*/
17581758
rule: AutomatedReasoningPolicyDefinitionRule | undefined;
@@ -1764,7 +1764,7 @@ export interface AutomatedReasoningPolicyAddRuleMutation {
17641764
*/
17651765
export interface AutomatedReasoningPolicyAddTypeMutation {
17661766
/**
1767-
* <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>
1767+
* <p>The type definition that specifies the name, description, and possible values for the new custom type being added to the policy.</p>
17681768
* @public
17691769
*/
17701770
type: AutomatedReasoningPolicyDefinitionType | undefined;
@@ -1776,7 +1776,7 @@ export interface AutomatedReasoningPolicyAddTypeMutation {
17761776
*/
17771777
export interface AutomatedReasoningPolicyAddVariableMutation {
17781778
/**
1779-
* <p>Represents a variable in an Automated Reasoning policy. Variables represent concepts that can have values assigned during natural language translation.</p>
1779+
* <p>The variable definition that specifies the name, type, and description for the new variable being added to the policy.</p>
17801780
* @public
17811781
*/
17821782
variable: AutomatedReasoningPolicyDefinitionVariable | undefined;
@@ -1824,7 +1824,7 @@ export interface AutomatedReasoningPolicyDeleteVariableMutation {
18241824
*/
18251825
export interface AutomatedReasoningPolicyUpdateRuleMutation {
18261826
/**
1827-
* <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>
1827+
* <p>The updated rule definition containing the modified formal logical expression and any changed metadata for the existing rule.</p>
18281828
* @public
18291829
*/
18301830
rule: AutomatedReasoningPolicyDefinitionRule | undefined;
@@ -1836,7 +1836,7 @@ export interface AutomatedReasoningPolicyUpdateRuleMutation {
18361836
*/
18371837
export interface AutomatedReasoningPolicyUpdateTypeMutation {
18381838
/**
1839-
* <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>
1839+
* <p>The updated type definition containing the modified name, description, or values for the existing custom type.</p>
18401840
* @public
18411841
*/
18421842
type: AutomatedReasoningPolicyDefinitionType | undefined;
@@ -1848,7 +1848,7 @@ export interface AutomatedReasoningPolicyUpdateTypeMutation {
18481848
*/
18491849
export interface AutomatedReasoningPolicyUpdateVariableMutation {
18501850
/**
1851-
* <p>Represents a variable in an Automated Reasoning policy. Variables represent concepts that can have values assigned during natural language translation.</p>
1851+
* <p>The updated variable definition containing the modified name, type, or description for the existing variable.</p>
18521852
* @public
18531853
*/
18541854
variable: AutomatedReasoningPolicyDefinitionVariable | undefined;
@@ -2180,7 +2180,7 @@ export type AutomatedReasoningPolicyDefinitionElement =
21802180
*/
21812181
export namespace AutomatedReasoningPolicyDefinitionElement {
21822182
/**
2183-
* <p>Represents a variable in an Automated Reasoning policy. Variables represent concepts that can have values assigned during natural language translation.</p>
2183+
* <p>A variable element within the policy definition that represents a concept used in logical expressions and rules.</p>
21842184
* @public
21852185
*/
21862186
export interface PolicyDefinitionVariableMember {
@@ -2191,7 +2191,7 @@ export namespace AutomatedReasoningPolicyDefinitionElement {
21912191
}
21922192

21932193
/**
2194-
* <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>
2194+
* <p>A custom type element within the policy definition that defines a set of possible values for variables.</p>
21952195
* @public
21962196
*/
21972197
export interface PolicyDefinitionTypeMember {
@@ -2202,7 +2202,7 @@ export namespace AutomatedReasoningPolicyDefinitionElement {
22022202
}
22032203

22042204
/**
2205-
* <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>
2205+
* <p>A rule element within the policy definition that contains a formal logical expression used for validation.</p>
22062206
* @public
22072207
*/
22082208
export interface PolicyDefinitionRuleMember {
@@ -2418,7 +2418,7 @@ export type AutomatedReasoningPolicyBuildResultAssets =
24182418
*/
24192419
export namespace AutomatedReasoningPolicyBuildResultAssets {
24202420
/**
2421-
* <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>
2421+
* <p>The complete policy definition generated by the build workflow, containing all rules, variables, and custom types extracted from the source documents.</p>
24222422
* @public
24232423
*/
24242424
export interface PolicyDefinitionMember {
@@ -3151,7 +3151,7 @@ export type AutomatedReasoningPolicyTestRunStatus =
31513151
*/
31523152
export interface AutomatedReasoningPolicyTestResult {
31533153
/**
3154-
* <p>Represents a test for validating an Automated Reasoning policy. tests contain sample inputs and expected outcomes to verify policy behavior.</p>
3154+
* <p>The test case that was executed, including the input content, expected results, and configuration parameters used during validation.</p>
31553155
* @public
31563156
*/
31573157
testCase: AutomatedReasoningPolicyTestCase | undefined;
@@ -3563,7 +3563,7 @@ export namespace AutomatedReasoningPolicyWorkflowTypeContent {
35633563
*/
35643564
export interface AutomatedReasoningPolicyBuildWorkflowSource {
35653565
/**
3566-
* <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>
3566+
* <p>An existing policy definition that serves as the starting point for the build workflow, typically used in policy repair or update scenarios.</p>
35673567
* @public
35683568
*/
35693569
policyDefinition?: AutomatedReasoningPolicyDefinition | undefined;

codegen/sdk-codegen/aws-models/bedrock.json

Lines changed: 30 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1544,6 +1544,7 @@
15441544
"rule": {
15451545
"target": "com.amazonaws.bedrock#AutomatedReasoningPolicyDefinitionRule",
15461546
"traits": {
1547+
"smithy.api#documentation": "<p>The rule definition that specifies the formal logical expression and metadata for the new rule being added to the policy.</p>",
15471548
"smithy.api#required": {}
15481549
}
15491550
}
@@ -1587,6 +1588,7 @@
15871588
"type": {
15881589
"target": "com.amazonaws.bedrock#AutomatedReasoningPolicyDefinitionType",
15891590
"traits": {
1591+
"smithy.api#documentation": "<p>The type definition that specifies the name, description, and possible values for the new custom type being added to the policy.</p>",
15901592
"smithy.api#required": {}
15911593
}
15921594
}
@@ -1651,6 +1653,7 @@
16511653
"variable": {
16521654
"target": "com.amazonaws.bedrock#AutomatedReasoningPolicyDefinitionVariable",
16531655
"traits": {
1656+
"smithy.api#documentation": "<p>The variable definition that specifies the name, type, and description for the new variable being added to the policy.</p>",
16541657
"smithy.api#required": {}
16551658
}
16561659
}
@@ -1955,7 +1958,10 @@
19551958
"type": "union",
19561959
"members": {
19571960
"policyDefinition": {
1958-
"target": "com.amazonaws.bedrock#AutomatedReasoningPolicyDefinition"
1961+
"target": "com.amazonaws.bedrock#AutomatedReasoningPolicyDefinition",
1962+
"traits": {
1963+
"smithy.api#documentation": "<p>The complete policy definition generated by the build workflow, containing all rules, variables, and custom types extracted from the source documents.</p>"
1964+
}
19591965
},
19601966
"qualityReport": {
19611967
"target": "com.amazonaws.bedrock#AutomatedReasoningPolicyDefinitionQualityReport",
@@ -2135,7 +2141,10 @@
21352141
"type": "structure",
21362142
"members": {
21372143
"policyDefinition": {
2138-
"target": "com.amazonaws.bedrock#AutomatedReasoningPolicyDefinition"
2144+
"target": "com.amazonaws.bedrock#AutomatedReasoningPolicyDefinition",
2145+
"traits": {
2146+
"smithy.api#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>"
2147+
}
21392148
},
21402149
"workflowContent": {
21412150
"target": "com.amazonaws.bedrock#AutomatedReasoningPolicyWorkflowTypeContent",
@@ -2340,13 +2349,22 @@
23402349
"type": "union",
23412350
"members": {
23422351
"policyDefinitionVariable": {
2343-
"target": "com.amazonaws.bedrock#AutomatedReasoningPolicyDefinitionVariable"
2352+
"target": "com.amazonaws.bedrock#AutomatedReasoningPolicyDefinitionVariable",
2353+
"traits": {
2354+
"smithy.api#documentation": "<p>A variable element within the policy definition that represents a concept used in logical expressions and rules.</p>"
2355+
}
23442356
},
23452357
"policyDefinitionType": {
2346-
"target": "com.amazonaws.bedrock#AutomatedReasoningPolicyDefinitionType"
2358+
"target": "com.amazonaws.bedrock#AutomatedReasoningPolicyDefinitionType",
2359+
"traits": {
2360+
"smithy.api#documentation": "<p>A custom type element within the policy definition that defines a set of possible values for variables.</p>"
2361+
}
23472362
},
23482363
"policyDefinitionRule": {
2349-
"target": "com.amazonaws.bedrock#AutomatedReasoningPolicyDefinitionRule"
2364+
"target": "com.amazonaws.bedrock#AutomatedReasoningPolicyDefinitionRule",
2365+
"traits": {
2366+
"smithy.api#documentation": "<p>A rule element within the policy definition that contains a formal logical expression used for validation.</p>"
2367+
}
23502368
}
23512369
},
23522370
"traits": {
@@ -3333,6 +3351,7 @@
33333351
"testCase": {
33343352
"target": "com.amazonaws.bedrock#AutomatedReasoningPolicyTestCase",
33353353
"traits": {
3354+
"smithy.api#documentation": "<p>The test case that was executed, including the input content, expected results, and configuration parameters used during validation.</p>",
33363355
"smithy.api#required": {}
33373356
}
33383357
},
@@ -3546,6 +3565,7 @@
35463565
"rule": {
35473566
"target": "com.amazonaws.bedrock#AutomatedReasoningPolicyDefinitionRule",
35483567
"traits": {
3568+
"smithy.api#documentation": "<p>The updated rule definition containing the modified formal logical expression and any changed metadata for the existing rule.</p>",
35493569
"smithy.api#required": {}
35503570
}
35513571
}
@@ -3594,6 +3614,7 @@
35943614
"type": {
35953615
"target": "com.amazonaws.bedrock#AutomatedReasoningPolicyDefinitionType",
35963616
"traits": {
3617+
"smithy.api#documentation": "<p>The updated type definition containing the modified name, description, or values for the existing custom type.</p>",
35973618
"smithy.api#required": {}
35983619
}
35993620
}
@@ -3662,6 +3683,7 @@
36623683
"variable": {
36633684
"target": "com.amazonaws.bedrock#AutomatedReasoningPolicyDefinitionVariable",
36643685
"traits": {
3686+
"smithy.api#documentation": "<p>The updated variable definition containing the modified name, type, or description for the existing variable.</p>",
36653687
"smithy.api#required": {}
36663688
}
36673689
}
@@ -4431,6 +4453,9 @@
44314453
{
44324454
"target": "com.amazonaws.bedrock#ThrottlingException"
44334455
},
4456+
{
4457+
"target": "com.amazonaws.bedrock#TooManyTagsException"
4458+
},
44344459
{
44354460
"target": "com.amazonaws.bedrock#ValidationException"
44364461
}

0 commit comments

Comments
 (0)