aws_sdk_cleanroomsml/client/
create_ml_input_channel.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 [`CreateMLInputChannel`](crate::operation::create_ml_input_channel::builders::CreateMLInputChannelFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`membership_identifier(impl Into<String>)`](crate::operation::create_ml_input_channel::builders::CreateMLInputChannelFluentBuilder::membership_identifier) / [`set_membership_identifier(Option<String>)`](crate::operation::create_ml_input_channel::builders::CreateMLInputChannelFluentBuilder::set_membership_identifier):<br>required: **true**<br><p>The membership ID of the member that is creating the ML input channel.</p><br>
7    ///   - [`configured_model_algorithm_associations(impl Into<String>)`](crate::operation::create_ml_input_channel::builders::CreateMLInputChannelFluentBuilder::configured_model_algorithm_associations) / [`set_configured_model_algorithm_associations(Option<Vec::<String>>)`](crate::operation::create_ml_input_channel::builders::CreateMLInputChannelFluentBuilder::set_configured_model_algorithm_associations):<br>required: **true**<br><p>The associated configured model algorithms that are necessary to create this ML input channel.</p><br>
8    ///   - [`input_channel(InputChannel)`](crate::operation::create_ml_input_channel::builders::CreateMLInputChannelFluentBuilder::input_channel) / [`set_input_channel(Option<InputChannel>)`](crate::operation::create_ml_input_channel::builders::CreateMLInputChannelFluentBuilder::set_input_channel):<br>required: **true**<br><p>The input data that is used to create this ML input channel.</p><br>
9    ///   - [`name(impl Into<String>)`](crate::operation::create_ml_input_channel::builders::CreateMLInputChannelFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_ml_input_channel::builders::CreateMLInputChannelFluentBuilder::set_name):<br>required: **true**<br><p>The name of the ML input channel.</p><br>
10    ///   - [`retention_in_days(i32)`](crate::operation::create_ml_input_channel::builders::CreateMLInputChannelFluentBuilder::retention_in_days) / [`set_retention_in_days(Option<i32>)`](crate::operation::create_ml_input_channel::builders::CreateMLInputChannelFluentBuilder::set_retention_in_days):<br>required: **true**<br><p>The number of days that the data in the ML input channel is retained.</p><br>
11    ///   - [`description(impl Into<String>)`](crate::operation::create_ml_input_channel::builders::CreateMLInputChannelFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::create_ml_input_channel::builders::CreateMLInputChannelFluentBuilder::set_description):<br>required: **false**<br><p>The description of the ML input channel.</p><br>
12    ///   - [`kms_key_arn(impl Into<String>)`](crate::operation::create_ml_input_channel::builders::CreateMLInputChannelFluentBuilder::kms_key_arn) / [`set_kms_key_arn(Option<String>)`](crate::operation::create_ml_input_channel::builders::CreateMLInputChannelFluentBuilder::set_kms_key_arn):<br>required: **false**<br><p>The Amazon Resource Name (ARN) of the KMS key that is used to access the input channel.</p><br>
13    ///   - [`tags(impl Into<String>, impl Into<String>)`](crate::operation::create_ml_input_channel::builders::CreateMLInputChannelFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::create_ml_input_channel::builders::CreateMLInputChannelFluentBuilder::set_tags):<br>required: **false**<br><p>The optional metadata that you apply to the resource to help you categorize and organize them. Each tag consists of a key and an optional value, both of which you define.</p> <p>The following basic restrictions apply to tags:</p> <ul>  <li>   <p>Maximum number of tags per resource - 50.</p></li>  <li>   <p>For each resource, each tag key must be unique, and each tag key can have only one value.</p></li>  <li>   <p>Maximum key length - 128 Unicode characters in UTF-8.</p></li>  <li>   <p>Maximum value length - 256 Unicode characters in UTF-8.</p></li>  <li>   <p>If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.</p></li>  <li>   <p>Tag keys and values are case sensitive.</p></li>  <li>   <p>Do not use aws:, AWS:, or any upper or lowercase combination of such as a prefix for keys as it is reserved for AWS use. You cannot edit or delete tag keys with this prefix. Values can have this prefix. If a tag value has aws as its prefix but the key does not, then Clean Rooms ML considers it to be a user tag and will count against the limit of 50 tags. Tags with only the key prefix of aws do not count against your tags per resource limit.</p></li> </ul><br>
14    /// - On success, responds with [`CreateMlInputChannelOutput`](crate::operation::create_ml_input_channel::CreateMlInputChannelOutput) with field(s):
15    ///   - [`ml_input_channel_arn(String)`](crate::operation::create_ml_input_channel::CreateMlInputChannelOutput::ml_input_channel_arn): <p>The Amazon Resource Name (ARN) of the ML input channel.</p>
16    /// - On failure, responds with [`SdkError<CreateMLInputChannelError>`](crate::operation::create_ml_input_channel::CreateMLInputChannelError)
17    pub fn create_ml_input_channel(&self) -> crate::operation::create_ml_input_channel::builders::CreateMLInputChannelFluentBuilder {
18        crate::operation::create_ml_input_channel::builders::CreateMLInputChannelFluentBuilder::new(self.handle.clone())
19    }
20}