1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateFeature`](crate::operation::create_feature::builders::CreateFeatureFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`project(impl Into<String>)`](crate::operation::create_feature::builders::CreateFeatureFluentBuilder::project) / [`set_project(Option<String>)`](crate::operation::create_feature::builders::CreateFeatureFluentBuilder::set_project):<br>required: **true**<br><p>The name or ARN of the project that is to contain the new feature.</p><br>
    ///   - [`name(impl Into<String>)`](crate::operation::create_feature::builders::CreateFeatureFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_feature::builders::CreateFeatureFluentBuilder::set_name):<br>required: **true**<br><p>The name for the new feature.</p><br>
    ///   - [`evaluation_strategy(FeatureEvaluationStrategy)`](crate::operation::create_feature::builders::CreateFeatureFluentBuilder::evaluation_strategy) / [`set_evaluation_strategy(Option<FeatureEvaluationStrategy>)`](crate::operation::create_feature::builders::CreateFeatureFluentBuilder::set_evaluation_strategy):<br>required: **false**<br><p>Specify <code>ALL_RULES</code> to activate the traffic allocation specified by any ongoing launches or experiments. Specify <code>DEFAULT_VARIATION</code> to serve the default variation to all users instead.</p><br>
    ///   - [`description(impl Into<String>)`](crate::operation::create_feature::builders::CreateFeatureFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::create_feature::builders::CreateFeatureFluentBuilder::set_description):<br>required: **false**<br><p>An optional description of the feature.</p><br>
    ///   - [`variations(VariationConfig)`](crate::operation::create_feature::builders::CreateFeatureFluentBuilder::variations) / [`set_variations(Option<Vec::<VariationConfig>>)`](crate::operation::create_feature::builders::CreateFeatureFluentBuilder::set_variations):<br>required: **true**<br><p>An array of structures that contain the configuration of the feature's different variations.</p><br>
    ///   - [`default_variation(impl Into<String>)`](crate::operation::create_feature::builders::CreateFeatureFluentBuilder::default_variation) / [`set_default_variation(Option<String>)`](crate::operation::create_feature::builders::CreateFeatureFluentBuilder::set_default_variation):<br>required: **false**<br><p>The name of the variation to use as the default variation. The default variation is served to users who are not allocated to any ongoing launches or experiments of this feature.</p> <p>This variation must also be listed in the <code>variations</code> structure.</p> <p>If you omit <code>defaultVariation</code>, the first variation listed in the <code>variations</code> structure is used as the default variation.</p><br>
    ///   - [`tags(impl Into<String>, impl Into<String>)`](crate::operation::create_feature::builders::CreateFeatureFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::create_feature::builders::CreateFeatureFluentBuilder::set_tags):<br>required: **false**<br><p>Assigns one or more tags (key-value pairs) to the feature.</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 a feature.</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>
    ///   - [`entity_overrides(impl Into<String>, impl Into<String>)`](crate::operation::create_feature::builders::CreateFeatureFluentBuilder::entity_overrides) / [`set_entity_overrides(Option<HashMap::<String, String>>)`](crate::operation::create_feature::builders::CreateFeatureFluentBuilder::set_entity_overrides):<br>required: **false**<br><p>Specify users that should always be served a specific variation of a feature. Each user is specified by a key-value pair . For each key, specify a user by entering their user ID, account ID, or some other identifier. For the value, specify the name of the variation that they are to be served.</p> <p>This parameter is limited to 2500 overrides or a total of 40KB. The 40KB limit includes an overhead of 6 bytes per override.</p><br>
    /// - On success, responds with [`CreateFeatureOutput`](crate::operation::create_feature::CreateFeatureOutput) with field(s):
    ///   - [`feature(Option<Feature>)`](crate::operation::create_feature::CreateFeatureOutput::feature): <p>A structure that contains information about the new feature.</p>
    /// - On failure, responds with [`SdkError<CreateFeatureError>`](crate::operation::create_feature::CreateFeatureError)
    pub fn create_feature(&self) -> crate::operation::create_feature::builders::CreateFeatureFluentBuilder {
        crate::operation::create_feature::builders::CreateFeatureFluentBuilder::new(self.handle.clone())
    }
}