aws_sdk_datazone/client/
get_connection.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GetConnection`](crate::operation::get_connection::builders::GetConnectionFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`domain_identifier(impl Into<String>)`](crate::operation::get_connection::builders::GetConnectionFluentBuilder::domain_identifier) / [`set_domain_identifier(Option<String>)`](crate::operation::get_connection::builders::GetConnectionFluentBuilder::set_domain_identifier):<br>required: **true**<br><p>The ID of the domain where we get the connection.</p><br>
    ///   - [`identifier(impl Into<String>)`](crate::operation::get_connection::builders::GetConnectionFluentBuilder::identifier) / [`set_identifier(Option<String>)`](crate::operation::get_connection::builders::GetConnectionFluentBuilder::set_identifier):<br>required: **true**<br><p>The connection ID.</p><br>
    ///   - [`with_secret(bool)`](crate::operation::get_connection::builders::GetConnectionFluentBuilder::with_secret) / [`set_with_secret(Option<bool>)`](crate::operation::get_connection::builders::GetConnectionFluentBuilder::set_with_secret):<br>required: **false**<br><p>Specifies whether a connection has a secret.</p><br>
    /// - On success, responds with [`GetConnectionOutput`](crate::operation::get_connection::GetConnectionOutput) with field(s):
    ///   - [`connection_credentials(Option<ConnectionCredentials>)`](crate::operation::get_connection::GetConnectionOutput::connection_credentials): <p>Connection credentials.</p>
    ///   - [`connection_id(String)`](crate::operation::get_connection::GetConnectionOutput::connection_id): <p>The ID of the connection.</p>
    ///   - [`description(Option<String>)`](crate::operation::get_connection::GetConnectionOutput::description): <p>Connection description.</p>
    ///   - [`domain_id(String)`](crate::operation::get_connection::GetConnectionOutput::domain_id): <p>The domain ID of the connection.</p>
    ///   - [`domain_unit_id(String)`](crate::operation::get_connection::GetConnectionOutput::domain_unit_id): <p>The domain unit ID of the connection.</p>
    ///   - [`environment_id(Option<String>)`](crate::operation::get_connection::GetConnectionOutput::environment_id): <p>The ID of the environment.</p>
    ///   - [`environment_user_role(Option<String>)`](crate::operation::get_connection::GetConnectionOutput::environment_user_role): <p>The environment user role.</p>
    ///   - [`name(String)`](crate::operation::get_connection::GetConnectionOutput::name): <p>The name of the connection.</p>
    ///   - [`physical_endpoints(Vec::<PhysicalEndpoint>)`](crate::operation::get_connection::GetConnectionOutput::physical_endpoints): <p>The physical endpoints of the connection.</p>
    ///   - [`project_id(Option<String>)`](crate::operation::get_connection::GetConnectionOutput::project_id): <p>The ID of the project.</p>
    ///   - [`props(Option<ConnectionPropertiesOutput>)`](crate::operation::get_connection::GetConnectionOutput::props): <p>Connection props.</p>
    ///   - [`r#type(ConnectionType)`](crate::operation::get_connection::GetConnectionOutput::type): <p>The type of the connection.</p>
    /// - On failure, responds with [`SdkError<GetConnectionError>`](crate::operation::get_connection::GetConnectionError)
    pub fn get_connection(&self) -> crate::operation::get_connection::builders::GetConnectionFluentBuilder {
        crate::operation::get_connection::builders::GetConnectionFluentBuilder::new(self.handle.clone())
    }
}