create_automated_reasoning_policy_version¶
Operation¶
create_automated_reasoning_policy_version
¶
create_automated_reasoning_policy_version(request: CreateAutomatedReasoningPolicyVersionInput | CreateAutomatedReasoningPolicyVersionInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[CreateAutomatedReasoningPolicyVersionInputDict]) -> CreateAutomatedReasoningPolicyVersionOutput
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 |
create_automated_reasoning_policy_version
async
¶
create_automated_reasoning_policy_version(request: CreateAutomatedReasoningPolicyVersionInput | CreateAutomatedReasoningPolicyVersionInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[CreateAutomatedReasoningPolicyVersionInputDict]) -> CreateAutomatedReasoningPolicyVersionOutput
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 |
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
¶
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
¶
The Amazon Resource Name (ARN) of the Automated Reasoning policy for which to create a 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.
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.
policy_arn
instance-attribute
¶
policy_arn: str
The versioned Amazon Resource Name (ARN) of the policy version.
response_metadata
class-attribute
instance-attribute
¶
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.