Skip to content

update_automated_reasoning_policy

Operation

update_automated_reasoning_policy

update_automated_reasoning_policy(request: UpdateAutomatedReasoningPolicyInput | UpdateAutomatedReasoningPolicyInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[UpdateAutomatedReasoningPolicyInputDict]) -> 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
request UpdateAutomatedReasoningPolicyInput | UpdateAutomatedReasoningPolicyInputDict | None

The input as a model or dictionary. Pass this or keyword arguments, not both.

None
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
**kwargs Unpack[UpdateAutomatedReasoningPolicyInputDict]

The input fields as keyword arguments.

{}

Returns:

Type Description
UpdateAutomatedReasoningPolicyOutput

An instance of UpdateAutomatedReasoningPolicyOutput.

update_automated_reasoning_policy async

update_automated_reasoning_policy(request: UpdateAutomatedReasoningPolicyInput | UpdateAutomatedReasoningPolicyInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[UpdateAutomatedReasoningPolicyInputDict]) -> 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
request UpdateAutomatedReasoningPolicyInput | UpdateAutomatedReasoningPolicyInputDict | None

The input as a model or dictionary. Pass this or keyword arguments, not both.

None
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
**kwargs Unpack[UpdateAutomatedReasoningPolicyInputDict]

The input fields as keyword arguments.

{}

Returns:

Type Description
UpdateAutomatedReasoningPolicyOutput

An instance of UpdateAutomatedReasoningPolicyOutput.

Input

Pass the input as keyword arguments, a positional dictionary, or a positional model object. Pass plugins separately as a keyword argument.

UpdateAutomatedReasoningPolicyInputDict

Bases: TypedDict

Dictionary form of UpdateAutomatedReasoningPolicyInput.

Attributes

description instance-attribute
description: str | None

The updated description for the Automated Reasoning policy.

name instance-attribute
name: str | None

The updated name for the Automated Reasoning policy.

policy_arn instance-attribute
policy_arn: Required[str]

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

policy_definition instance-attribute

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

UpdateAutomatedReasoningPolicyInput dataclass

Bases: _SerdeShape

Dataclass for UpdateAutomatedReasoningPolicyInput structure.

Attributes

description class-attribute instance-attribute
description: str | None = ...

The updated description for the Automated Reasoning policy.

name class-attribute instance-attribute
name: str | None = ...

The updated name for the Automated Reasoning policy.

policy_arn class-attribute instance-attribute
policy_arn: str | 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 = ...

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

Output

UpdateAutomatedReasoningPolicyOutput dataclass

Bases: _SerdeShape

Dataclass for UpdateAutomatedReasoningPolicyOutput structure.

Attributes

definition_hash instance-attribute
definition_hash: str

The hash of the updated policy definition.

name instance-attribute
name: str

The updated name of the policy.

policy_arn instance-attribute
policy_arn: str

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

response_metadata class-attribute instance-attribute
response_metadata: ResponseMetadata = ...

Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional.

updated_at instance-attribute
updated_at: datetime

The timestamp when the policy was last updated.