aws_sdk_codestarconnections/client/
get_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 [`GetConnection`](crate::operation::get_connection::builders::GetConnectionFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`connection_arn(impl Into<String>)`](crate::operation::get_connection::builders::GetConnectionFluentBuilder::connection_arn) / [`set_connection_arn(Option<String>)`](crate::operation::get_connection::builders::GetConnectionFluentBuilder::set_connection_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of a connection.</p><br>
7    /// - On success, responds with [`GetConnectionOutput`](crate::operation::get_connection::GetConnectionOutput) with field(s):
8    ///   - [`connection(Option<Connection>)`](crate::operation::get_connection::GetConnectionOutput::connection): <p>The connection details, such as status, owner, and provider type.</p>
9    /// - On failure, responds with [`SdkError<GetConnectionError>`](crate::operation::get_connection::GetConnectionError)
10    pub fn get_connection(&self) -> crate::operation::get_connection::builders::GetConnectionFluentBuilder {
11        crate::operation::get_connection::builders::GetConnectionFluentBuilder::new(self.handle.clone())
12    }
13}