aws_sdk_codestarnotifications/client/unsubscribe.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 [`Unsubscribe`](crate::operation::unsubscribe::builders::UnsubscribeFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`arn(impl Into<String>)`](crate::operation::unsubscribe::builders::UnsubscribeFluentBuilder::arn) / [`set_arn(Option<String>)`](crate::operation::unsubscribe::builders::UnsubscribeFluentBuilder::set_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of the notification rule.</p><br>
7 /// - [`target_address(impl Into<String>)`](crate::operation::unsubscribe::builders::UnsubscribeFluentBuilder::target_address) / [`set_target_address(Option<String>)`](crate::operation::unsubscribe::builders::UnsubscribeFluentBuilder::set_target_address):<br>required: **true**<br><p>The ARN of the Chatbot topic to unsubscribe from the notification rule.</p><br>
8 /// - On success, responds with [`UnsubscribeOutput`](crate::operation::unsubscribe::UnsubscribeOutput) with field(s):
9 /// - [`arn(String)`](crate::operation::unsubscribe::UnsubscribeOutput::arn): <p>The Amazon Resource Name (ARN) of the the notification rule from which you have removed a subscription.</p>
10 /// - On failure, responds with [`SdkError<UnsubscribeError>`](crate::operation::unsubscribe::UnsubscribeError)
11 pub fn unsubscribe(&self) -> crate::operation::unsubscribe::builders::UnsubscribeFluentBuilder {
12 crate::operation::unsubscribe::builders::UnsubscribeFluentBuilder::new(self.handle.clone())
13 }
14}