automated_reasoning_policy_annotations
Creates, updates, deletes, gets or lists an automated_reasoning_policy_annotations resource.
Overview
| Name | automated_reasoning_policy_annotations |
| Type | Resource |
| Id | aws.bedrock.automated_reasoning_policy_annotations |
Fields
The following fields are returned by SELECT queries:
- get_automated_reasoning_policy_annotations
| Name | Datatype | Description |
|---|---|---|
name | string | The name of the Automated Reasoning policy. (pattern: <code>[0-9a-zA-Z-_ ]+</code>) |
annotation_set_hash | string | A hash value representing the current state of the annotations. This is used for optimistic concurrency control when updating annotations. (pattern: <code>[0-9a-z]{128}</code>) |
annotations | array | The current set of annotations containing rules, variables, and types extracted from the source documents. These can be modified before finalizing the policy. |
build_workflow_id | string | The unique identifier of the build workflow. (pattern: <code>[a-f0-9]{8}-?[a-f0-9]{4}-?4[a-f0-9]{3}-?[89ab][a-f0-9]{3}-?[a-f0-9]{12}</code>) |
policy_arn | string | The Amazon Resource Name (ARN) of the Automated Reasoning policy. (pattern: <code>arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:[0-9]{12}:automated-reasoning-policy/[a-z0-9]{12}(:([1-9][0-9]{0,11}))?</code>) |
updated_at | string (date-time) | The timestamp when the annotations were last updated. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_automated_reasoning_policy_annotations | select | policy_arn, build_workflow_id, region | Retrieves the current annotations for an Automated Reasoning policy build workflow. Annotations contain corrections to the rules, variables and types to be applied to the policy. | |
update_automated_reasoning_policy_annotations | update | policy_arn, build_workflow_id, region, annotations, lastUpdatedAnnotationSetHash | Updates the annotations for an Automated Reasoning policy build workflow. This allows you to modify extracted rules, variables, and types before finalizing the policy. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
build_workflow_id | string | The unique identifier of the build workflow whose annotations you want to update. |
policy_arn | string | The Amazon Resource Name (ARN) of the Automated Reasoning policy whose annotations you want to update. |
region | string | AWS region (default: us-east-1) |
SELECT examples
- get_automated_reasoning_policy_annotations
Retrieves the current annotations for an Automated Reasoning policy build workflow. Annotations contain corrections to the rules, variables and types to be applied to the policy.
SELECT
name,
annotation_set_hash,
annotations,
build_workflow_id,
policy_arn,
updated_at
FROM aws.bedrock.automated_reasoning_policy_annotations
WHERE policy_arn = '{{ policy_arn }}' -- required
AND build_workflow_id = '{{ build_workflow_id }}' -- required
AND region = '{{ region }}' -- required
;
UPDATE examples
- update_automated_reasoning_policy_annotations
Updates the annotations for an Automated Reasoning policy build workflow. This allows you to modify extracted rules, variables, and types before finalizing the policy.
UPDATE aws.bedrock.automated_reasoning_policy_annotations
SET
annotations = '{{ annotations }}',
lastUpdatedAnnotationSetHash = '{{ lastUpdatedAnnotationSetHash }}'
WHERE
policy_arn = '{{ policy_arn }}' --required
AND build_workflow_id = '{{ build_workflow_id }}' --required
AND region = '{{ region }}' --required
AND annotations = '{{ annotations }}' --required
AND lastUpdatedAnnotationSetHash = '{{ lastUpdatedAnnotationSetHash }}' --required
RETURNING
annotation_set_hash,
build_workflow_id,
policy_arn,
updated_at;