aws_sdk_networkmanager/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    ///   - [`global_network_id(impl Into<String>)`](crate::operation::delete_connection::builders::DeleteConnectionFluentBuilder::global_network_id) / [`set_global_network_id(Option<String>)`](crate::operation::delete_connection::builders::DeleteConnectionFluentBuilder::set_global_network_id):<br>required: **true**<br><p>The ID of the global network.</p><br>
7    ///   - [`connection_id(impl Into<String>)`](crate::operation::delete_connection::builders::DeleteConnectionFluentBuilder::connection_id) / [`set_connection_id(Option<String>)`](crate::operation::delete_connection::builders::DeleteConnectionFluentBuilder::set_connection_id):<br>required: **true**<br><p>The ID of the connection.</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>Information about the connection.</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}