Skip to main content

automated_reasoning_policy_annotations

Creates, updates, deletes, gets or lists an automated_reasoning_policy_annotations resource.

Overview​

Nameautomated_reasoning_policy_annotations
TypeResource
Idaws.bedrock.automated_reasoning_policy_annotations

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringThe name of the Automated Reasoning policy. (pattern: <code>[0-9a-zA-Z-_ ]+</code>)
annotation_set_hashstringA 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>)
annotationsarrayThe current set of annotations containing rules, variables, and types extracted from the source documents. These can be modified before finalizing the policy.
build_workflow_idstringThe 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_arnstringThe 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_atstring (date-time)The timestamp when the annotations were last updated.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_automated_reasoning_policy_annotationsselectpolicy_arn, build_workflow_id, regionRetrieves 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_annotationsupdatepolicy_arn, build_workflow_id, region, annotations, lastUpdatedAnnotationSetHashUpdates 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.

NameDatatypeDescription
build_workflow_idstringThe unique identifier of the build workflow whose annotations you want to update.
policy_arnstringThe Amazon Resource Name (ARN) of the Automated Reasoning policy whose annotations you want to update.
regionstringAWS region (default: us-east-1)

SELECT examples​

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​

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;