aws_sdk_directconnect/client/
delete_interconnect.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 [`DeleteInterconnect`](crate::operation::delete_interconnect::builders::DeleteInterconnectFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`interconnect_id(impl Into<String>)`](crate::operation::delete_interconnect::builders::DeleteInterconnectFluentBuilder::interconnect_id) / [`set_interconnect_id(Option<String>)`](crate::operation::delete_interconnect::builders::DeleteInterconnectFluentBuilder::set_interconnect_id):<br>required: **true**<br><p>The ID of the interconnect.</p><br>
7    /// - On success, responds with [`DeleteInterconnectOutput`](crate::operation::delete_interconnect::DeleteInterconnectOutput) with field(s):
8    ///   - [`interconnect_state(Option<InterconnectState>)`](crate::operation::delete_interconnect::DeleteInterconnectOutput::interconnect_state): <p>The state of the interconnect. The following are the possible values:</p> <ul>  <li>   <p><code>requested</code>: The initial state of an interconnect. The interconnect stays in the requested state until the Letter of Authorization (LOA) is sent to the customer.</p></li>  <li>   <p><code>pending</code>: The interconnect is approved, and is being initialized.</p></li>  <li>   <p><code>available</code>: The network link is up, and the interconnect is ready for use.</p></li>  <li>   <p><code>down</code>: The network link is down.</p></li>  <li>   <p><code>deleting</code>: The interconnect is being deleted.</p></li>  <li>   <p><code>deleted</code>: The interconnect is deleted.</p></li>  <li>   <p><code>unknown</code>: The state of the interconnect is not available.</p></li> </ul>
9    /// - On failure, responds with [`SdkError<DeleteInterconnectError>`](crate::operation::delete_interconnect::DeleteInterconnectError)
10    pub fn delete_interconnect(&self) -> crate::operation::delete_interconnect::builders::DeleteInterconnectFluentBuilder {
11        crate::operation::delete_interconnect::builders::DeleteInterconnectFluentBuilder::new(self.handle.clone())
12    }
13}