aws_sdk_frauddetector/client/
create_list.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 [`CreateList`](crate::operation::create_list::builders::CreateListFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`name(impl Into<String>)`](crate::operation::create_list::builders::CreateListFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_list::builders::CreateListFluentBuilder::set_name):<br>required: **true**<br><p>The name of the list.</p><br>
7    ///   - [`elements(impl Into<String>)`](crate::operation::create_list::builders::CreateListFluentBuilder::elements) / [`set_elements(Option<Vec::<String>>)`](crate::operation::create_list::builders::CreateListFluentBuilder::set_elements):<br>required: **false**<br><p>The names of the elements, if providing. You can also create an empty list and add elements later using the <a href="https://docs.aws.amazon.com/frauddetector/latest/api/API_Updatelist.html">UpdateList</a> API.</p><br>
8    ///   - [`variable_type(impl Into<String>)`](crate::operation::create_list::builders::CreateListFluentBuilder::variable_type) / [`set_variable_type(Option<String>)`](crate::operation::create_list::builders::CreateListFluentBuilder::set_variable_type):<br>required: **false**<br><p>The variable type of the list. You can only assign the variable type with String data type. For more information, see <a href="https://docs.aws.amazon.com/frauddetector/latest/ug/create-a-variable.html#variable-types">Variable types</a>.</p><br>
9    ///   - [`description(impl Into<String>)`](crate::operation::create_list::builders::CreateListFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::create_list::builders::CreateListFluentBuilder::set_description):<br>required: **false**<br><p>The description of the list.</p><br>
10    ///   - [`tags(Tag)`](crate::operation::create_list::builders::CreateListFluentBuilder::tags) / [`set_tags(Option<Vec::<Tag>>)`](crate::operation::create_list::builders::CreateListFluentBuilder::set_tags):<br>required: **false**<br><p>A collection of the key and value pairs.</p><br>
11    /// - On success, responds with [`CreateListOutput`](crate::operation::create_list::CreateListOutput)
12    /// - On failure, responds with [`SdkError<CreateListError>`](crate::operation::create_list::CreateListError)
13    pub fn create_list(&self) -> crate::operation::create_list::builders::CreateListFluentBuilder {
14        crate::operation::create_list::builders::CreateListFluentBuilder::new(self.handle.clone())
15    }
16}