1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateExperiment`](crate::operation::create_experiment::builders::CreateExperimentFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`project(impl Into<String>)`](crate::operation::create_experiment::builders::CreateExperimentFluentBuilder::project) / [`set_project(Option<String>)`](crate::operation::create_experiment::builders::CreateExperimentFluentBuilder::set_project):<br>required: **true**<br><p>The name or ARN of the project that you want to create the new experiment in.</p><br>
    ///   - [`name(impl Into<String>)`](crate::operation::create_experiment::builders::CreateExperimentFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_experiment::builders::CreateExperimentFluentBuilder::set_name):<br>required: **true**<br><p>A name for the new experiment.</p><br>
    ///   - [`description(impl Into<String>)`](crate::operation::create_experiment::builders::CreateExperimentFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::create_experiment::builders::CreateExperimentFluentBuilder::set_description):<br>required: **false**<br><p>An optional description of the experiment.</p><br>
    ///   - [`treatments(TreatmentConfig)`](crate::operation::create_experiment::builders::CreateExperimentFluentBuilder::treatments) / [`set_treatments(Option<Vec::<TreatmentConfig>>)`](crate::operation::create_experiment::builders::CreateExperimentFluentBuilder::set_treatments):<br>required: **true**<br><p>An array of structures that describe the configuration of each feature variation used in the experiment.</p><br>
    ///   - [`metric_goals(MetricGoalConfig)`](crate::operation::create_experiment::builders::CreateExperimentFluentBuilder::metric_goals) / [`set_metric_goals(Option<Vec::<MetricGoalConfig>>)`](crate::operation::create_experiment::builders::CreateExperimentFluentBuilder::set_metric_goals):<br>required: **true**<br><p>An array of structures that defines the metrics used for the experiment, and whether a higher or lower value for each metric is the goal.</p><br>
    ///   - [`randomization_salt(impl Into<String>)`](crate::operation::create_experiment::builders::CreateExperimentFluentBuilder::randomization_salt) / [`set_randomization_salt(Option<String>)`](crate::operation::create_experiment::builders::CreateExperimentFluentBuilder::set_randomization_salt):<br>required: **false**<br><p>When Evidently assigns a particular user session to an experiment, it must use a randomization ID to determine which variation the user session is served. This randomization ID is a combination of the entity ID and <code>randomizationSalt</code>. If you omit <code>randomizationSalt</code>, Evidently uses the experiment name as the <code>randomizationSalt</code>.</p><br>
    ///   - [`sampling_rate(i64)`](crate::operation::create_experiment::builders::CreateExperimentFluentBuilder::sampling_rate) / [`set_sampling_rate(Option<i64>)`](crate::operation::create_experiment::builders::CreateExperimentFluentBuilder::set_sampling_rate):<br>required: **false**<br><p>The portion of the available audience that you want to allocate to this experiment, in thousandths of a percent. The available audience is the total audience minus the audience that you have allocated to overrides or current launches of this feature.</p> <p>This is represented in thousandths of a percent. For example, specify 10,000 to allocate 10% of the available audience.</p><br>
    ///   - [`online_ab_config(OnlineAbConfig)`](crate::operation::create_experiment::builders::CreateExperimentFluentBuilder::online_ab_config) / [`set_online_ab_config(Option<OnlineAbConfig>)`](crate::operation::create_experiment::builders::CreateExperimentFluentBuilder::set_online_ab_config):<br>required: **false**<br><p>A structure that contains the configuration of which variation to use as the "control" version. tThe "control" version is used for comparison with other variations. This structure also specifies how much experiment traffic is allocated to each variation.</p><br>
    ///   - [`segment(impl Into<String>)`](crate::operation::create_experiment::builders::CreateExperimentFluentBuilder::segment) / [`set_segment(Option<String>)`](crate::operation::create_experiment::builders::CreateExperimentFluentBuilder::set_segment):<br>required: **false**<br><p>Specifies an audience <i>segment</i> to use in the experiment. When a segment is used in an experiment, only user sessions that match the segment pattern are used in the experiment.</p><br>
    ///   - [`tags(impl Into<String>, impl Into<String>)`](crate::operation::create_experiment::builders::CreateExperimentFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::create_experiment::builders::CreateExperimentFluentBuilder::set_tags):<br>required: **false**<br><p>Assigns one or more tags (key-value pairs) to the experiment.</p> <p>Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values.</p> <p>Tags don't have any semantic meaning to Amazon Web Services and are interpreted strictly as strings of characters.</p> <p>You can associate as many as 50 tags with an experiment.</p> <p>For more information, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html">Tagging Amazon Web Services resources</a>.</p><br>
    /// - On success, responds with [`CreateExperimentOutput`](crate::operation::create_experiment::CreateExperimentOutput) with field(s):
    ///   - [`experiment(Option<Experiment>)`](crate::operation::create_experiment::CreateExperimentOutput::experiment): <p>A structure containing the configuration details of the experiment that you created.</p>
    /// - On failure, responds with [`SdkError<CreateExperimentError>`](crate::operation::create_experiment::CreateExperimentError)
    pub fn create_experiment(&self) -> crate::operation::create_experiment::builders::CreateExperimentFluentBuilder {
        crate::operation::create_experiment::builders::CreateExperimentFluentBuilder::new(self.handle.clone())
    }
}