update_automated_reasoning_policy_test_case¶
Operation¶
update_automated_reasoning_policy_test_case
¶
update_automated_reasoning_policy_test_case(request: UpdateAutomatedReasoningPolicyTestCaseInput | UpdateAutomatedReasoningPolicyTestCaseInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[UpdateAutomatedReasoningPolicyTestCaseInputDict]) -> UpdateAutomatedReasoningPolicyTestCaseOutput
Updates an existing Automated Reasoning policy test. You can modify the content, query, expected result, and confidence threshold.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
request
|
UpdateAutomatedReasoningPolicyTestCaseInput | UpdateAutomatedReasoningPolicyTestCaseInputDict | 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[UpdateAutomatedReasoningPolicyTestCaseInputDict]
|
The input fields as keyword arguments. |
{}
|
Returns:
| Type | Description |
|---|---|
UpdateAutomatedReasoningPolicyTestCaseOutput
|
An instance of |
update_automated_reasoning_policy_test_case
async
¶
update_automated_reasoning_policy_test_case(request: UpdateAutomatedReasoningPolicyTestCaseInput | UpdateAutomatedReasoningPolicyTestCaseInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[UpdateAutomatedReasoningPolicyTestCaseInputDict]) -> UpdateAutomatedReasoningPolicyTestCaseOutput
Updates an existing Automated Reasoning policy test. You can modify the content, query, expected result, and confidence threshold.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
request
|
UpdateAutomatedReasoningPolicyTestCaseInput | UpdateAutomatedReasoningPolicyTestCaseInputDict | 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[UpdateAutomatedReasoningPolicyTestCaseInputDict]
|
The input fields as keyword arguments. |
{}
|
Returns:
| Type | Description |
|---|---|
UpdateAutomatedReasoningPolicyTestCaseOutput
|
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.
UpdateAutomatedReasoningPolicyTestCaseInputDict
¶
Bases: TypedDict
Dictionary form of UpdateAutomatedReasoningPolicyTestCaseInput.
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.
confidence_threshold
instance-attribute
¶
confidence_threshold: float | None
The updated minimum confidence level for logic validation. If null is provided, the threshold will be removed.
expected_aggregated_findings_result
instance-attribute
¶
The updated expected result of the Automated Reasoning check.
guard_content
instance-attribute
¶
The updated content to be validated by the Automated Reasoning policy.
last_updated_at
instance-attribute
¶
The timestamp when the test was last updated. This is used as a concurrency token to prevent conflicting modifications.
policy_arn
instance-attribute
¶
The Amazon Resource Name (ARN) of the Automated Reasoning policy that contains the test.
UpdateAutomatedReasoningPolicyTestCaseInput
dataclass
¶
Bases: _SerdeShape
Dataclass for UpdateAutomatedReasoningPolicyTestCaseInput 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.
confidence_threshold
class-attribute
instance-attribute
¶
confidence_threshold: float | None = ...
The updated minimum confidence level for logic validation. If null is provided, the threshold will be removed.
expected_aggregated_findings_result
class-attribute
instance-attribute
¶
expected_aggregated_findings_result: str | None = ...
The updated expected result of the Automated Reasoning check.
guard_content
class-attribute
instance-attribute
¶
guard_content: str | None = ...
The updated content to be validated by the Automated Reasoning policy.
last_updated_at
class-attribute
instance-attribute
¶
last_updated_at: datetime | None = ...
The timestamp when the test was last updated. This is used as a concurrency token to prevent conflicting modifications.
policy_arn
class-attribute
instance-attribute
¶
policy_arn: str | None = ...
The Amazon Resource Name (ARN) of the Automated Reasoning policy that contains the test.
Output¶
UpdateAutomatedReasoningPolicyTestCaseOutput
dataclass
¶
Bases: _SerdeShape
Dataclass for UpdateAutomatedReasoningPolicyTestCaseOutput structure.
Attributes¶
policy_arn
instance-attribute
¶
policy_arn: str
The Amazon Resource Name (ARN) of the policy that contains the updated test.
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.