update_ab_test
async
¶
update_ab_test(
ab_test_id: ABTestId,
*,
config_overrides: Optional[AsyncBedrockAgentCoreClientConfig] = None,
client_token: Optional[ClientToken] = None,
name: Optional[ABTestName] = None,
description: Optional[ABTestDescription] = None,
variants: Optional[VariantList] = None,
gateway_filter: Optional[GatewayFilter] = None,
evaluation_config: Optional[ABTestEvaluationConfig] = None,
role_arn: Optional[RoleArn] = None,
execution_status: Optional[ABTestExecutionStatus] = None,
) -> UpdateABTestResponse
Updates an A/B test's configuration, including variants, traffic allocation, evaluation settings, or execution status.
Parameters:
-
ab_test_id(ABTestId) –The unique identifier of the A/B test to update.
-
client_token(Optional[ClientToken], default: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.
-
name(Optional[ABTestName], default:None) –The updated name of the A/B test.
-
description(Optional[ABTestDescription], default:None) –The updated description of the A/B test.
-
variants(Optional[VariantList], default:None) –The updated list of variants.
-
gateway_filter(Optional[GatewayFilter], default:None) –The updated gateway filter.
-
evaluation_config(Optional[ABTestEvaluationConfig], default:None) –The updated evaluation configuration.
-
role_arn(Optional[RoleArn], default:None) –The updated IAM role ARN.
-
execution_status(Optional[ABTestExecutionStatus], default:None) –The updated execution status to enable or disable the A/B test.
Raises:
-
AccessDeniedException–The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
-
ConflictException–The exception that occurs when the request conflicts with the current state of the resource. This can happen when trying to modify a resource that is currently being modified by another request, or when trying to create a resource that already exists.
-
InternalServerException–The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
-
ResourceNotFoundException–The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
-
ServiceQuotaExceededException–The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.
-
ThrottlingException–The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
-
UnauthorizedException–This exception is thrown when the JWT bearer token is invalid or not found for OAuth bearer token based access
-
ValidationException–The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_bedrock_agentcore/_services/async_bedrock_agent_core.py
3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 | |