aws-sdk-bedrockagentcore 1.45.0

AWS SDK for Amazon Bedrock AgentCore
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateABTest`](crate::operation::create_ab_test::builders::CreateABTestFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`name(impl Into<String>)`](crate::operation::create_ab_test::builders::CreateABTestFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_ab_test::builders::CreateABTestFluentBuilder::set_name):<br>required: **true**<br><p>The name of the A/B test. Must be unique within your account.</p><br>
    ///   - [`description(impl Into<String>)`](crate::operation::create_ab_test::builders::CreateABTestFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::create_ab_test::builders::CreateABTestFluentBuilder::set_description):<br>required: **false**<br><p>The description of the A/B test.</p><br>
    ///   - [`gateway_arn(impl Into<String>)`](crate::operation::create_ab_test::builders::CreateABTestFluentBuilder::gateway_arn) / [`set_gateway_arn(Option<String>)`](crate::operation::create_ab_test::builders::CreateABTestFluentBuilder::set_gateway_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of the gateway to use for traffic splitting.</p><br>
    ///   - [`variants(Variant)`](crate::operation::create_ab_test::builders::CreateABTestFluentBuilder::variants) / [`set_variants(Option<Vec::<Variant>>)`](crate::operation::create_ab_test::builders::CreateABTestFluentBuilder::set_variants):<br>required: **true**<br><p>The list of variants for the A/B test. Must contain exactly two variants: a control (C) and a treatment (T1), each with a configuration bundle or target reference and a traffic weight.</p><br>
    ///   - [`gateway_filter(GatewayFilter)`](crate::operation::create_ab_test::builders::CreateABTestFluentBuilder::gateway_filter) / [`set_gateway_filter(Option<GatewayFilter>)`](crate::operation::create_ab_test::builders::CreateABTestFluentBuilder::set_gateway_filter):<br>required: **false**<br><p>Optional filter to restrict which gateway target paths are included in the A/B test.</p><br>
    ///   - [`evaluation_config(AbTestEvaluationConfig)`](crate::operation::create_ab_test::builders::CreateABTestFluentBuilder::evaluation_config) / [`set_evaluation_config(Option<AbTestEvaluationConfig>)`](crate::operation::create_ab_test::builders::CreateABTestFluentBuilder::set_evaluation_config):<br>required: **true**<br><p>The evaluation configuration specifying which online evaluation configurations to use for measuring variant performance.</p><br>
    ///   - [`role_arn(impl Into<String>)`](crate::operation::create_ab_test::builders::CreateABTestFluentBuilder::role_arn) / [`set_role_arn(Option<String>)`](crate::operation::create_ab_test::builders::CreateABTestFluentBuilder::set_role_arn):<br>required: **true**<br><p>The IAM role ARN that grants permissions for the A/B test to access gateway and evaluation resources.</p><br>
    ///   - [`enable_on_create(bool)`](crate::operation::create_ab_test::builders::CreateABTestFluentBuilder::enable_on_create) / [`set_enable_on_create(Option<bool>)`](crate::operation::create_ab_test::builders::CreateABTestFluentBuilder::set_enable_on_create):<br>required: **false**<br><p>Whether to enable the A/B test immediately upon creation. If true, traffic splitting begins automatically.</p><br>
    ///   - [`client_token(impl Into<String>)`](crate::operation::create_ab_test::builders::CreateABTestFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::create_ab_test::builders::CreateABTestFluentBuilder::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>
    /// - On success, responds with [`CreateAbTestOutput`](crate::operation::create_ab_test::CreateAbTestOutput) with field(s):
    ///   - [`ab_test_id(String)`](crate::operation::create_ab_test::CreateAbTestOutput::ab_test_id): <p>The unique identifier of the created A/B test.</p>
    ///   - [`ab_test_arn(String)`](crate::operation::create_ab_test::CreateAbTestOutput::ab_test_arn): <p>The Amazon Resource Name (ARN) of the created A/B test.</p>
    ///   - [`name(Option<String>)`](crate::operation::create_ab_test::CreateAbTestOutput::name): <p>The name of the A/B test.</p>
    ///   - [`status(AbTestStatus)`](crate::operation::create_ab_test::CreateAbTestOutput::status): <p>The status of the A/B test.</p>
    ///   - [`execution_status(AbTestExecutionStatus)`](crate::operation::create_ab_test::CreateAbTestOutput::execution_status): <p>The execution status indicating whether the A/B test is currently running.</p>
    ///   - [`created_at(DateTime)`](crate::operation::create_ab_test::CreateAbTestOutput::created_at): <p>The timestamp when the A/B test was created.</p>
    /// - On failure, responds with [`SdkError<CreateABTestError>`](crate::operation::create_ab_test::CreateABTestError)
    pub fn create_ab_test(&self) -> crate::operation::create_ab_test::builders::CreateABTestFluentBuilder {
        crate::operation::create_ab_test::builders::CreateABTestFluentBuilder::new(self.handle.clone())
    }
}