1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`EvaluateFeature`](crate::operation::evaluate_feature::builders::EvaluateFeatureFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`project(impl Into<String>)`](crate::operation::evaluate_feature::builders::EvaluateFeatureFluentBuilder::project) / [`set_project(Option<String>)`](crate::operation::evaluate_feature::builders::EvaluateFeatureFluentBuilder::set_project):<br>required: **true**<br><p>The name or ARN of the project that contains this feature.</p><br>
    ///   - [`feature(impl Into<String>)`](crate::operation::evaluate_feature::builders::EvaluateFeatureFluentBuilder::feature) / [`set_feature(Option<String>)`](crate::operation::evaluate_feature::builders::EvaluateFeatureFluentBuilder::set_feature):<br>required: **true**<br><p>The name of the feature being evaluated.</p><br>
    ///   - [`entity_id(impl Into<String>)`](crate::operation::evaluate_feature::builders::EvaluateFeatureFluentBuilder::entity_id) / [`set_entity_id(Option<String>)`](crate::operation::evaluate_feature::builders::EvaluateFeatureFluentBuilder::set_entity_id):<br>required: **true**<br><p>An internal ID that represents a unique user of the application. This <code>entityID</code> is checked against any override rules assigned for this feature.</p><br>
    ///   - [`evaluation_context(impl Into<String>)`](crate::operation::evaluate_feature::builders::EvaluateFeatureFluentBuilder::evaluation_context) / [`set_evaluation_context(Option<String>)`](crate::operation::evaluate_feature::builders::EvaluateFeatureFluentBuilder::set_evaluation_context):<br>required: **false**<br><p>A JSON object of attributes that you can optionally pass in as part of the evaluation event sent to Evidently from the user session. Evidently can use this value to match user sessions with defined audience segments. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Evidently-segments.html">Use segments to focus your audience</a>.</p> <p>If you include this parameter, the value must be a JSON object. A JSON array is not supported.</p><br>
    /// - On success, responds with [`EvaluateFeatureOutput`](crate::operation::evaluate_feature::EvaluateFeatureOutput) with field(s):
    ///   - [`variation(Option<String>)`](crate::operation::evaluate_feature::EvaluateFeatureOutput::variation): <p>The name of the variation that was served to the user session.</p>
    ///   - [`value(Option<VariableValue>)`](crate::operation::evaluate_feature::EvaluateFeatureOutput::value): <p>The value assigned to this variation to differentiate it from the other variations of this feature.</p>
    ///   - [`reason(Option<String>)`](crate::operation::evaluate_feature::EvaluateFeatureOutput::reason): <p>Specifies the reason that the user session was assigned this variation. Possible values include <code>DEFAULT</code>, meaning the user was served the default variation; <code>LAUNCH_RULE_MATCH</code>, if the user session was enrolled in a launch; <code>EXPERIMENT_RULE_MATCH</code>, if the user session was enrolled in an experiment; or <code>ENTITY_OVERRIDES_MATCH</code>, if the user's <code>entityId</code> matches an override rule.</p>
    ///   - [`details(Option<String>)`](crate::operation::evaluate_feature::EvaluateFeatureOutput::details): <p>If this user was assigned to a launch or experiment, this field lists the launch or experiment name.</p>
    /// - On failure, responds with [`SdkError<EvaluateFeatureError>`](crate::operation::evaluate_feature::EvaluateFeatureError)
    pub fn evaluate_feature(&self) -> crate::operation::evaluate_feature::builders::EvaluateFeatureFluentBuilder {
        crate::operation::evaluate_feature::builders::EvaluateFeatureFluentBuilder::new(self.handle.clone())
    }
}