aws_sdk_eventbridge/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 /// - [`name(impl Into<String>)`](crate::operation::delete_connection::builders::DeleteConnectionFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::delete_connection::builders::DeleteConnectionFluentBuilder::set_name):<br>required: **true**<br><p>The name of the connection to delete.</p><br>
7 /// - On success, responds with [`DeleteConnectionOutput`](crate::operation::delete_connection::DeleteConnectionOutput) with field(s):
8 /// - [`connection_arn(Option<String>)`](crate::operation::delete_connection::DeleteConnectionOutput::connection_arn): <p>The ARN of the connection that was deleted.</p>
9 /// - [`connection_state(Option<ConnectionState>)`](crate::operation::delete_connection::DeleteConnectionOutput::connection_state): <p>The state of the connection before it was deleted.</p>
10 /// - [`creation_time(Option<DateTime>)`](crate::operation::delete_connection::DeleteConnectionOutput::creation_time): <p>A time stamp for the time that the connection was created.</p>
11 /// - [`last_modified_time(Option<DateTime>)`](crate::operation::delete_connection::DeleteConnectionOutput::last_modified_time): <p>A time stamp for the time that the connection was last modified before it was deleted.</p>
12 /// - [`last_authorized_time(Option<DateTime>)`](crate::operation::delete_connection::DeleteConnectionOutput::last_authorized_time): <p>A time stamp for the time that the connection was last authorized before it wa deleted.</p>
13 /// - On failure, responds with [`SdkError<DeleteConnectionError>`](crate::operation::delete_connection::DeleteConnectionError)
14 pub fn delete_connection(&self) -> crate::operation::delete_connection::builders::DeleteConnectionFluentBuilder {
15 crate::operation::delete_connection::builders::DeleteConnectionFluentBuilder::new(self.handle.clone())
16 }
17}