aws_sdk_frauddetector/client/update_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 [`UpdateList`](crate::operation::update_list::builders::UpdateListFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`name(impl Into<String>)`](crate::operation::update_list::builders::UpdateListFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::update_list::builders::UpdateListFluentBuilder::set_name):<br>required: **true**<br><p>The name of the list to update.</p><br>
7 /// - [`elements(impl Into<String>)`](crate::operation::update_list::builders::UpdateListFluentBuilder::elements) / [`set_elements(Option<Vec::<String>>)`](crate::operation::update_list::builders::UpdateListFluentBuilder::set_elements):<br>required: **false**<br><p>One or more list elements to add or replace. If you are providing the elements, make sure to specify the <code>updateMode</code> to use.</p> <p>If you are deleting all elements from the list, use <code>REPLACE</code> for the <code>updateMode</code> and provide an empty list (0 elements).</p><br>
8 /// - [`description(impl Into<String>)`](crate::operation::update_list::builders::UpdateListFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::update_list::builders::UpdateListFluentBuilder::set_description):<br>required: **false**<br><p>The new description.</p><br>
9 /// - [`update_mode(ListUpdateMode)`](crate::operation::update_list::builders::UpdateListFluentBuilder::update_mode) / [`set_update_mode(Option<ListUpdateMode>)`](crate::operation::update_list::builders::UpdateListFluentBuilder::set_update_mode):<br>required: **false**<br><p>The update mode (type).</p> <ul> <li> <p>Use <code>APPEND</code> if you are adding elements to the list.</p></li> <li> <p>Use <code>REPLACE</code> if you replacing existing elements in the list.</p></li> <li> <p>Use <code>REMOVE</code> if you are removing elements from the list.</p></li> </ul><br>
10 /// - [`variable_type(impl Into<String>)`](crate::operation::update_list::builders::UpdateListFluentBuilder::variable_type) / [`set_variable_type(Option<String>)`](crate::operation::update_list::builders::UpdateListFluentBuilder::set_variable_type):<br>required: **false**<br><p>The variable type you want to assign to the list.</p><note> <p>You cannot update a variable type of a list that already has a variable type assigned to it. You can assign a variable type to a list only if the list does not already have a variable type.</p> </note><br>
11 /// - On success, responds with [`UpdateListOutput`](crate::operation::update_list::UpdateListOutput)
12 /// - On failure, responds with [`SdkError<UpdateListError>`](crate::operation::update_list::UpdateListError)
13 pub fn update_list(&self) -> crate::operation::update_list::builders::UpdateListFluentBuilder {
14 crate::operation::update_list::builders::UpdateListFluentBuilder::new(self.handle.clone())
15 }
16}