aws_sdk_codestarnotifications/client/delete_target.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 [`DeleteTarget`](crate::operation::delete_target::builders::DeleteTargetFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`target_address(impl Into<String>)`](crate::operation::delete_target::builders::DeleteTargetFluentBuilder::target_address) / [`set_target_address(Option<String>)`](crate::operation::delete_target::builders::DeleteTargetFluentBuilder::set_target_address):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of the Chatbot topic or Chatbot client to delete.</p><br>
7 /// - [`force_unsubscribe_all(bool)`](crate::operation::delete_target::builders::DeleteTargetFluentBuilder::force_unsubscribe_all) / [`set_force_unsubscribe_all(Option<bool>)`](crate::operation::delete_target::builders::DeleteTargetFluentBuilder::set_force_unsubscribe_all):<br>required: **false**<br><p>A Boolean value that can be used to delete all associations with this Chatbot topic. The default value is FALSE. If set to TRUE, all associations between that target and every notification rule in your Amazon Web Services account are deleted.</p><br>
8 /// - On success, responds with [`DeleteTargetOutput`](crate::operation::delete_target::DeleteTargetOutput)
9 /// - On failure, responds with [`SdkError<DeleteTargetError>`](crate::operation::delete_target::DeleteTargetError)
10 pub fn delete_target(&self) -> crate::operation::delete_target::builders::DeleteTargetFluentBuilder {
11 crate::operation::delete_target::builders::DeleteTargetFluentBuilder::new(self.handle.clone())
12 }
13}