aws_sdk_lightsail/client/delete_contact_method.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 [`DeleteContactMethod`](crate::operation::delete_contact_method::builders::DeleteContactMethodFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`protocol(ContactProtocol)`](crate::operation::delete_contact_method::builders::DeleteContactMethodFluentBuilder::protocol) / [`set_protocol(Option<ContactProtocol>)`](crate::operation::delete_contact_method::builders::DeleteContactMethodFluentBuilder::set_protocol):<br>required: **true**<br><p>The protocol that will be deleted, such as <code>Email</code> or <code>SMS</code> (text messaging).</p><note> <p>To delete an <code>Email</code> and an <code>SMS</code> contact method if you added both, you must run separate <code>DeleteContactMethod</code> actions to delete each protocol.</p> </note><br>
7 /// - On success, responds with [`DeleteContactMethodOutput`](crate::operation::delete_contact_method::DeleteContactMethodOutput) with field(s):
8 /// - [`operations(Option<Vec::<Operation>>)`](crate::operation::delete_contact_method::DeleteContactMethodOutput::operations): <p>An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.</p>
9 /// - On failure, responds with [`SdkError<DeleteContactMethodError>`](crate::operation::delete_contact_method::DeleteContactMethodError)
10 pub fn delete_contact_method(&self) -> crate::operation::delete_contact_method::builders::DeleteContactMethodFluentBuilder {
11 crate::operation::delete_contact_method::builders::DeleteContactMethodFluentBuilder::new(self.handle.clone())
12 }
13}