aws_sdk_pinpointsmsvoicev2/client/delete_opt_out_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 [`DeleteOptOutList`](crate::operation::delete_opt_out_list::builders::DeleteOptOutListFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`opt_out_list_name(impl Into<String>)`](crate::operation::delete_opt_out_list::builders::DeleteOptOutListFluentBuilder::opt_out_list_name) / [`set_opt_out_list_name(Option<String>)`](crate::operation::delete_opt_out_list::builders::DeleteOptOutListFluentBuilder::set_opt_out_list_name):<br>required: **true**<br><p>The OptOutListName or OptOutListArn of the OptOutList to delete. You can use <code>DescribeOptOutLists</code> to find the values for OptOutListName and OptOutListArn.</p><important> <p>If you are using a shared AWS End User Messaging SMS and Voice resource then you must use the full Amazon Resource Name(ARN).</p> </important><br>
7 /// - On success, responds with [`DeleteOptOutListOutput`](crate::operation::delete_opt_out_list::DeleteOptOutListOutput) with field(s):
8 /// - [`opt_out_list_arn(Option<String>)`](crate::operation::delete_opt_out_list::DeleteOptOutListOutput::opt_out_list_arn): <p>The Amazon Resource Name (ARN) of the OptOutList that was removed.</p>
9 /// - [`opt_out_list_name(Option<String>)`](crate::operation::delete_opt_out_list::DeleteOptOutListOutput::opt_out_list_name): <p>The name of the OptOutList that was removed.</p>
10 /// - [`created_timestamp(Option<DateTime>)`](crate::operation::delete_opt_out_list::DeleteOptOutListOutput::created_timestamp): <p>The time when the OptOutList was created, in <a href="https://www.epochconverter.com/">UNIX epoch time</a> format.</p>
11 /// - On failure, responds with [`SdkError<DeleteOptOutListError>`](crate::operation::delete_opt_out_list::DeleteOptOutListError)
12 pub fn delete_opt_out_list(&self) -> crate::operation::delete_opt_out_list::builders::DeleteOptOutListFluentBuilder {
13 crate::operation::delete_opt_out_list::builders::DeleteOptOutListFluentBuilder::new(self.handle.clone())
14 }
15}