Skip to main content

aws_sdk_interconnect/client/
delete_connection.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 [`DeleteConnection`](crate::operation::delete_connection::builders::DeleteConnectionFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`identifier(impl Into<String>)`](crate::operation::delete_connection::builders::DeleteConnectionFluentBuilder::identifier) / [`set_identifier(Option<String>)`](crate::operation::delete_connection::builders::DeleteConnectionFluentBuilder::set_identifier):<br>required: **true**<br><p>The identifier of the <code>Connection</code> to be deleted.</p><br>
7    ///   - [`client_token(impl Into<String>)`](crate::operation::delete_connection::builders::DeleteConnectionFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::delete_connection::builders::DeleteConnectionFluentBuilder::set_client_token):<br>required: **false**<br><p>Idempotency token used for the request.</p><br>
8    /// - On success, responds with [`DeleteConnectionOutput`](crate::operation::delete_connection::DeleteConnectionOutput) with field(s):
9    ///   - [`connection(Option<Connection>)`](crate::operation::delete_connection::DeleteConnectionOutput::connection): <p>The <code>Connection</code> object that has been marked for deletion.</p>
10    /// - On failure, responds with [`SdkError<DeleteConnectionError>`](crate::operation::delete_connection::DeleteConnectionError)
11    pub fn delete_connection(&self) -> crate::operation::delete_connection::builders::DeleteConnectionFluentBuilder {
12        crate::operation::delete_connection::builders::DeleteConnectionFluentBuilder::new(self.handle.clone())
13    }
14}