Skip to content

create_automated_reasoning_policy_version

Operation

create_automated_reasoning_policy_version

Creates a new version of an existing Automated Reasoning policy. This allows you to iterate on your policy rules while maintaining previous versions for rollback or comparison purposes.

Parameters:

Name Type Description Default
request CreateAutomatedReasoningPolicyVersionInput | CreateAutomatedReasoningPolicyVersionInputDict | 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[CreateAutomatedReasoningPolicyVersionInputDict]

The input fields as keyword arguments.

{}

Returns:

Type Description
CreateAutomatedReasoningPolicyVersionOutput

An instance of CreateAutomatedReasoningPolicyVersionOutput.

create_automated_reasoning_policy_version async

Creates a new version of an existing Automated Reasoning policy. This allows you to iterate on your policy rules while maintaining previous versions for rollback or comparison purposes.

Parameters:

Name Type Description Default
request CreateAutomatedReasoningPolicyVersionInput | CreateAutomatedReasoningPolicyVersionInputDict | 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[CreateAutomatedReasoningPolicyVersionInputDict]

The input fields as keyword arguments.

{}

Returns:

Type Description
CreateAutomatedReasoningPolicyVersionOutput

An instance of CreateAutomatedReasoningPolicyVersionOutput.

Input

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

CreateAutomatedReasoningPolicyVersionInputDict

Bases: TypedDict

Dictionary form of CreateAutomatedReasoningPolicyVersionInput.

Attributes

client_request_token instance-attribute
client_request_token: str | None

A unique, case-sensitive identifier to ensure that the operation completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error.

This field is autopopulated if not provided.

last_updated_definition_hash instance-attribute
last_updated_definition_hash: Required[str]

The hash of the current policy definition used as a concurrency token to ensure the policy hasn't been modified since you last retrieved it.

policy_arn instance-attribute
policy_arn: Required[str]

The Amazon Resource Name (ARN) of the Automated Reasoning policy for which to create a version.

tags instance-attribute
tags: Sequence[Tag | TagDict] | None

A list of tags to associate with the policy version.

CreateAutomatedReasoningPolicyVersionInput dataclass

Bases: _SerdeShape

Dataclass for CreateAutomatedReasoningPolicyVersionInput structure.

Attributes

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

A unique, case-sensitive identifier to ensure that the operation completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error.

This field is autopopulated if not provided.

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

The hash of the current policy definition used as a concurrency token to ensure the policy hasn't been modified since you last retrieved it.

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

The Amazon Resource Name (ARN) of the Automated Reasoning policy for which to create a version.

tags class-attribute instance-attribute
tags: list[Tag] | None = ...

A list of tags to associate with the policy version.

Output

CreateAutomatedReasoningPolicyVersionOutput dataclass

Bases: _SerdeShape

Dataclass for CreateAutomatedReasoningPolicyVersionOutput structure.

Attributes

created_at instance-attribute
created_at: datetime

The timestamp when the policy version was created.

definition_hash instance-attribute
definition_hash: str

The hash of the policy definition for this version.

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

The description of the policy version.

name instance-attribute
name: str

The name of the policy version.

policy_arn instance-attribute
policy_arn: str

The versioned Amazon Resource Name (ARN) of the policy version.

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.

version instance-attribute
version: str

The version number of the policy version.