aws_sdk_networkmanager/client/
delete_peering.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 [`DeletePeering`](crate::operation::delete_peering::builders::DeletePeeringFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`peering_id(impl Into<String>)`](crate::operation::delete_peering::builders::DeletePeeringFluentBuilder::peering_id) / [`set_peering_id(Option<String>)`](crate::operation::delete_peering::builders::DeletePeeringFluentBuilder::set_peering_id):<br>required: **true**<br><p>The ID of the peering connection to delete.</p><br>
7    /// - On success, responds with [`DeletePeeringOutput`](crate::operation::delete_peering::DeletePeeringOutput) with field(s):
8    ///   - [`peering(Option<Peering>)`](crate::operation::delete_peering::DeletePeeringOutput::peering): <p>Information about a deleted peering connection.</p>
9    /// - On failure, responds with [`SdkError<DeletePeeringError>`](crate::operation::delete_peering::DeletePeeringError)
10    pub fn delete_peering(&self) -> crate::operation::delete_peering::builders::DeletePeeringFluentBuilder {
11        crate::operation::delete_peering::builders::DeletePeeringFluentBuilder::new(self.handle.clone())
12    }
13}