Skip to main content

aws_sdk_bedrockagentcore/client/
update_ab_test.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`UpdateABTest`](crate::operation::update_ab_test::builders::UpdateABTestFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`ab_test_id(impl Into<String>)`](crate::operation::update_ab_test::builders::UpdateABTestFluentBuilder::ab_test_id) / [`set_ab_test_id(Option<String>)`](crate::operation::update_ab_test::builders::UpdateABTestFluentBuilder::set_ab_test_id):<br>required: **true**<br><p>The unique identifier of the A/B test to update.</p><br>
7    ///   - [`client_token(impl Into<String>)`](crate::operation::update_ab_test::builders::UpdateABTestFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::update_ab_test::builders::UpdateABTestFluentBuilder::set_client_token):<br>required: **false**<br><p>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.</p><br>
8    ///   - [`name(impl Into<String>)`](crate::operation::update_ab_test::builders::UpdateABTestFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::update_ab_test::builders::UpdateABTestFluentBuilder::set_name):<br>required: **false**<br><p>The updated name of the A/B test.</p><br>
9    ///   - [`description(impl Into<String>)`](crate::operation::update_ab_test::builders::UpdateABTestFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::update_ab_test::builders::UpdateABTestFluentBuilder::set_description):<br>required: **false**<br><p>The updated description of the A/B test.</p><br>
10    ///   - [`variants(Variant)`](crate::operation::update_ab_test::builders::UpdateABTestFluentBuilder::variants) / [`set_variants(Option<Vec::<Variant>>)`](crate::operation::update_ab_test::builders::UpdateABTestFluentBuilder::set_variants):<br>required: **false**<br><p>The updated list of variants.</p><br>
11    ///   - [`gateway_filter(GatewayFilter)`](crate::operation::update_ab_test::builders::UpdateABTestFluentBuilder::gateway_filter) / [`set_gateway_filter(Option<GatewayFilter>)`](crate::operation::update_ab_test::builders::UpdateABTestFluentBuilder::set_gateway_filter):<br>required: **false**<br><p>The updated gateway filter.</p><br>
12    ///   - [`evaluation_config(AbTestEvaluationConfig)`](crate::operation::update_ab_test::builders::UpdateABTestFluentBuilder::evaluation_config) / [`set_evaluation_config(Option<AbTestEvaluationConfig>)`](crate::operation::update_ab_test::builders::UpdateABTestFluentBuilder::set_evaluation_config):<br>required: **false**<br><p>The updated evaluation configuration.</p><br>
13    ///   - [`role_arn(impl Into<String>)`](crate::operation::update_ab_test::builders::UpdateABTestFluentBuilder::role_arn) / [`set_role_arn(Option<String>)`](crate::operation::update_ab_test::builders::UpdateABTestFluentBuilder::set_role_arn):<br>required: **false**<br><p>The updated IAM role ARN.</p><br>
14    ///   - [`execution_status(AbTestExecutionStatus)`](crate::operation::update_ab_test::builders::UpdateABTestFluentBuilder::execution_status) / [`set_execution_status(Option<AbTestExecutionStatus>)`](crate::operation::update_ab_test::builders::UpdateABTestFluentBuilder::set_execution_status):<br>required: **false**<br><p>The updated execution status to enable or disable the A/B test.</p><br>
15    /// - On success, responds with [`UpdateAbTestOutput`](crate::operation::update_ab_test::UpdateAbTestOutput) with field(s):
16    ///   - [`ab_test_id(String)`](crate::operation::update_ab_test::UpdateAbTestOutput::ab_test_id): <p>The unique identifier of the updated A/B test.</p>
17    ///   - [`ab_test_arn(String)`](crate::operation::update_ab_test::UpdateAbTestOutput::ab_test_arn): <p>The Amazon Resource Name (ARN) of the updated A/B test.</p>
18    ///   - [`status(AbTestStatus)`](crate::operation::update_ab_test::UpdateAbTestOutput::status): <p>The status of the A/B test.</p>
19    ///   - [`execution_status(AbTestExecutionStatus)`](crate::operation::update_ab_test::UpdateAbTestOutput::execution_status): <p>The execution status of the A/B test.</p>
20    ///   - [`updated_at(DateTime)`](crate::operation::update_ab_test::UpdateAbTestOutput::updated_at): <p>The timestamp when the A/B test was updated.</p>
21    /// - On failure, responds with [`SdkError<UpdateABTestError>`](crate::operation::update_ab_test::UpdateABTestError)
22    pub fn update_ab_test(&self) -> crate::operation::update_ab_test::builders::UpdateABTestFluentBuilder {
23        crate::operation::update_ab_test::builders::UpdateABTestFluentBuilder::new(self.handle.clone())
24    }
25}