Skip to content

Bedrock  >  Operations  >  get_automated_reasoning_policy

get_automated_reasoning_policy

Operation

get_automated_reasoning_policy async

get_automated_reasoning_policy(input: GetAutomatedReasoningPolicyInput, plugins: list[Plugin] | None = None) -> GetAutomatedReasoningPolicyOutput

Retrieves details about an Automated Reasoning policy or policy version. Returns information including the policy definition, metadata, and timestamps.

Parameters:

Name Type Description Default
input GetAutomatedReasoningPolicyInput

An instance of GetAutomatedReasoningPolicyInput.

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
GetAutomatedReasoningPolicyOutput

An instance of GetAutomatedReasoningPolicyOutput.

Input

GetAutomatedReasoningPolicyInput dataclass

Dataclass for GetAutomatedReasoningPolicyInput structure.

Attributes

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

The Amazon Resource Name (ARN) of the Automated Reasoning policy to retrieve. Can be either the unversioned ARN for the draft policy or an ARN for a specific policy version.

Output

GetAutomatedReasoningPolicyOutput dataclass

Dataclass for GetAutomatedReasoningPolicyOutput structure.

Attributes

created_at class-attribute instance-attribute
created_at: datetime | None = None

The timestamp when the policy was created.

definition_hash instance-attribute
definition_hash: str

The hash of the policy definition used as a concurrency token.

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

The description of the policy.

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

The Amazon Resource Name (ARN) of the KMS key used to encrypt the automated reasoning policy and its associated artifacts. If a KMS key is not provided during the initial CreateAutomatedReasoningPolicyRequest, the kmsKeyArn won't be included in the GetAutomatedReasoningPolicyResponse.

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

The name of the policy.

policy_arn instance-attribute
policy_arn: str

The Amazon Resource Name (ARN) of the policy.

policy_id instance-attribute
policy_id: str

The unique identifier of the policy.

updated_at instance-attribute
updated_at: datetime

The timestamp when the policy was last updated.

version instance-attribute
version: str

The version of the policy.