Skip to content

BedrockAgentCoreClient.update_ab_test

rboto-bedrock-agentcore==0.4.0 · Service index · Types

Model summary (excerpt): Updates an A/B test's configuration, including variants, traffic allocation, evaluation settings, or execution status.

Install and imports

python -m pip install "rboto[bedrock-agentcore]==0.4.0"
from rboto import BedrockAgentCoreClient
from collections.abc import Sequence
from rboto_bedrock_agentcore.types import (
    ABTestEvaluationConfig,
    ABTestExecutionStatus,
    GatewayFilter,
    UpdateABTestOutput,
    Variant,
)

Signature

async def update_ab_test(
    *,
    ab_test_id: str,
    client_token: str | None = None,
    name: str | None = None,
    description: str | None = None,
    variants: Sequence[Variant] | None = None,
    gateway_filter: GatewayFilter | None = None,
    evaluation_config: ABTestEvaluationConfig | None = None,
    role_arn: str | None = None,
    execution_status: ABTestExecutionStatus | None = None,
) -> UpdateABTestOutput: ...

Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.

Arguments

Argument Required Model notes (excerpt)
ab_test_id Yes The unique identifier of the A/B test to update.
client_token No 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.
name No The updated name of the A/B test.
description No The updated description of the A/B test.
variants No The updated list of variants.
gateway_filter No The updated gateway filter.
evaluation_config No The updated evaluation configuration.
role_arn No The updated IAM role ARN.
execution_status No The updated execution status to enable or disable the A/B test.

Output

UpdateABTestOutput.

Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.

Field Type Presence References
ab_test_id str Always present —
ab_test_arn str Always present —
status ABTestStatusOutput Always present ABTestStatusOutput
execution_status ABTestExecutionStatusOutput Always present ABTestExecutionStatusOutput
updated_at str Always present —

| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.

ABTestEvaluationConfig, ABTestExecutionStatus, GatewayFilter, UpdateABTestOutput, Variant

Follow these links for nested inputs and outputs; recursive types link back to the same type page.

Pagination and streaming

No generated paginator for this operation.

No output stream.

Errors

Import from rboto_bedrock_agentcore.exceptions:

AccessDeniedError, ConflictError, InternalServerError, ResourceNotFoundError, ServiceQuotaExceededError, ThrottlingError, UnauthorizedError, ValidationError.

Other service failures use the service base error; credential, transport and timeout failures use shared errors.

Service guide · Pinned model