Skip to content

Bedrock Agentcore  >  Operations  >  update_ab_test

update_ab_test

Operation

update_ab_test async

update_ab_test(input: UpdateABTestInput, plugins: list[Plugin] | None = None) -> UpdateABTestOutput

Updates an A/B test's configuration, including variants, traffic allocation, evaluation settings, or execution status.

Parameters:

Name Type Description Default
input UpdateABTestInput

An instance of UpdateABTestInput.

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
UpdateABTestOutput

An instance of UpdateABTestOutput.

Input

UpdateABTestInput dataclass

Dataclass for UpdateABTestInput structure.

Attributes

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

The unique identifier of the A/B test to update.

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

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

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

The updated description of the A/B test.

evaluation_config class-attribute instance-attribute
evaluation_config: ABTestEvaluationConfig | None = None

The updated evaluation configuration.

execution_status class-attribute instance-attribute
execution_status: ABTestExecutionStatus | None = None

The updated execution status to enable or disable the A/B test.

gateway_filter class-attribute instance-attribute
gateway_filter: GatewayFilter | None = None

The updated gateway filter.

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

The updated name of the A/B test.

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

The updated IAM role ARN.

variants class-attribute instance-attribute
variants: list[Variant] | None = None

The updated list of variants.

Output

UpdateABTestOutput dataclass

Dataclass for UpdateABTestOutput structure.

Attributes

ab_test_arn instance-attribute
ab_test_arn: str

The Amazon Resource Name (ARN) of the updated A/B test.

ab_test_id instance-attribute
ab_test_id: str

The unique identifier of the updated A/B test.

execution_status instance-attribute
execution_status: ABTestExecutionStatus

The execution status of the A/B test.

status instance-attribute
status: ABTestStatus

The status of the A/B test.

updated_at instance-attribute
updated_at: datetime

The timestamp when the A/B test was updated.