Skip to content

Bedrock  >  Operations  >  update_automated_reasoning_policy

update_automated_reasoning_policy

Operation

update_automated_reasoning_policy async

update_automated_reasoning_policy(input: UpdateAutomatedReasoningPolicyInput, plugins: list[Plugin] | None = None) -> UpdateAutomatedReasoningPolicyOutput

Updates an existing Automated Reasoning policy with new rules, variables, or configuration. This creates a new version of the policy while preserving the previous version.

Parameters:

Name Type Description Default
input UpdateAutomatedReasoningPolicyInput

An instance of UpdateAutomatedReasoningPolicyInput.

required
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None

Returns:

Type Description
UpdateAutomatedReasoningPolicyOutput

An instance of UpdateAutomatedReasoningPolicyOutput.

Input

UpdateAutomatedReasoningPolicyInput dataclass

Dataclass for UpdateAutomatedReasoningPolicyInput structure.

Attributes

description class-attribute instance-attribute
description: str | None = field(repr=False, default=None)

The updated description for the Automated Reasoning policy.

name class-attribute instance-attribute
name: str | None = field(repr=False, default=None)

The updated name for the Automated Reasoning policy.

policy_arn class-attribute instance-attribute
policy_arn: str | None = None

The Amazon Resource Name (ARN) of the Automated Reasoning policy to update. This must be the ARN of a draft policy.

policy_definition class-attribute instance-attribute
policy_definition: AutomatedReasoningPolicyDefinition | None = None

The updated policy definition containing the formal logic rules, variables, and types.

Output

UpdateAutomatedReasoningPolicyOutput dataclass

Dataclass for UpdateAutomatedReasoningPolicyOutput structure.

Attributes

definition_hash instance-attribute
definition_hash: str

The hash of the updated policy definition.

name class-attribute instance-attribute
name: str = field(repr=False)

The updated name of the policy.

policy_arn instance-attribute
policy_arn: str

The Amazon Resource Name (ARN) of the updated policy.

updated_at instance-attribute
updated_at: datetime

The timestamp when the policy was last updated.