aws_sdk_machinelearning/client/
create_evaluation.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 [`CreateEvaluation`](crate::operation::create_evaluation::builders::CreateEvaluationFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`evaluation_id(impl Into<String>)`](crate::operation::create_evaluation::builders::CreateEvaluationFluentBuilder::evaluation_id) / [`set_evaluation_id(Option<String>)`](crate::operation::create_evaluation::builders::CreateEvaluationFluentBuilder::set_evaluation_id):<br>required: **true**<br><p>A user-supplied ID that uniquely identifies the <code>Evaluation</code>.</p><br>
7    ///   - [`evaluation_name(impl Into<String>)`](crate::operation::create_evaluation::builders::CreateEvaluationFluentBuilder::evaluation_name) / [`set_evaluation_name(Option<String>)`](crate::operation::create_evaluation::builders::CreateEvaluationFluentBuilder::set_evaluation_name):<br>required: **false**<br><p>A user-supplied name or description of the <code>Evaluation</code>.</p><br>
8    ///   - [`ml_model_id(impl Into<String>)`](crate::operation::create_evaluation::builders::CreateEvaluationFluentBuilder::ml_model_id) / [`set_ml_model_id(Option<String>)`](crate::operation::create_evaluation::builders::CreateEvaluationFluentBuilder::set_ml_model_id):<br>required: **true**<br><p>The ID of the <code>MLModel</code> to evaluate.</p> <p>The schema used in creating the <code>MLModel</code> must match the schema of the <code>DataSource</code> used in the <code>Evaluation</code>.</p><br>
9    ///   - [`evaluation_data_source_id(impl Into<String>)`](crate::operation::create_evaluation::builders::CreateEvaluationFluentBuilder::evaluation_data_source_id) / [`set_evaluation_data_source_id(Option<String>)`](crate::operation::create_evaluation::builders::CreateEvaluationFluentBuilder::set_evaluation_data_source_id):<br>required: **true**<br><p>The ID of the <code>DataSource</code> for the evaluation. The schema of the <code>DataSource</code> must match the schema used to create the <code>MLModel</code>.</p><br>
10    /// - On success, responds with [`CreateEvaluationOutput`](crate::operation::create_evaluation::CreateEvaluationOutput) with field(s):
11    ///   - [`evaluation_id(Option<String>)`](crate::operation::create_evaluation::CreateEvaluationOutput::evaluation_id): <p>The user-supplied ID that uniquely identifies the <code>Evaluation</code>. This value should be identical to the value of the <code>EvaluationId</code> in the request.</p>
12    /// - On failure, responds with [`SdkError<CreateEvaluationError>`](crate::operation::create_evaluation::CreateEvaluationError)
13    pub fn create_evaluation(&self) -> crate::operation::create_evaluation::builders::CreateEvaluationFluentBuilder {
14        crate::operation::create_evaluation::builders::CreateEvaluationFluentBuilder::new(self.handle.clone())
15    }
16}