aws_sdk_outposts/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_id(impl Into<String>)`](crate::operation::get_connection::builders::GetConnectionFluentBuilder::connection_id) / [`set_connection_id(Option<String>)`](crate::operation::get_connection::builders::GetConnectionFluentBuilder::set_connection_id):<br>required: **true**<br><p>The ID of the connection.</p><br>
7 /// - On success, responds with [`GetConnectionOutput`](crate::operation::get_connection::GetConnectionOutput) with field(s):
8 /// - [`connection_id(Option<String>)`](crate::operation::get_connection::GetConnectionOutput::connection_id): <p>The ID of the connection.</p>
9 /// - [`connection_details(Option<ConnectionDetails>)`](crate::operation::get_connection::GetConnectionOutput::connection_details): <p>Information about the connection.</p>
10 /// - On failure, responds with [`SdkError<GetConnectionError>`](crate::operation::get_connection::GetConnectionError)
11 pub fn get_connection(&self) -> crate::operation::get_connection::builders::GetConnectionFluentBuilder {
12 crate::operation::get_connection::builders::GetConnectionFluentBuilder::new(self.handle.clone())
13 }
14}