// 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:
/// - [`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 connection to return, by its ID (which starts with <code>conn-</code>) or its ARN.</p><br>
/// - On success, responds with [`GetConnectionOutput`](crate::operation::get_connection::GetConnectionOutput) with field(s):
/// - [`id(String)`](crate::operation::get_connection::GetConnectionOutput::id): <p>The ID of the connection.</p>
/// - [`arn(String)`](crate::operation::get_connection::GetConnectionOutput::arn): <p>The ARN of the connection.</p>
/// - [`name(String)`](crate::operation::get_connection::GetConnectionOutput::name): <p>The name of the connection. You set it when you create the connection and can change it with UpdateConnection. Uses the same constraints as an agent context name. Always present.</p>
/// - [`data_source(Option<DataSourceReference>)`](crate::operation::get_connection::GetConnectionOutput::data_source): <p>The typed reference to the external data source that this connection binds to. Its <code>type</code>, the authoritative kind of data source, is in <code>dataSource.type</code>.</p>
/// - [`scope(Option<DataSourceScope>)`](crate::operation::get_connection::GetConnectionOutput::scope): <p>The hierarchical subset of the data source this connection ingests.</p>
/// - [`access_config(Option<AccessConfig>)`](crate::operation::get_connection::GetConnectionOutput::access_config): <p>Per-connection access configuration: the IAM role used for data access.</p>
/// - [`sync_schedule(Option<SyncSchedule>)`](crate::operation::get_connection::GetConnectionOutput::sync_schedule): <p>The effective sync schedule. Present for <code>DATABRICKS</code> and <code>SNOWFLAKE</code> connections (<code>DAILY</code> if you didn't specify one). Absent for <code>GLUE_DATA_CATALOG</code> and <code>BEDROCK_KNOWLEDGE_BASE</code> connections, which are event-driven.</p>
/// - [`ingestion_config(Option<IngestionConfig>)`](crate::operation::get_connection::GetConnectionOutput::ingestion_config): <p>The connection's ingestion configuration (the IAM role a data producer assumes to push into this connection). Absent when no ingestion role is configured.</p>
/// - [`glue_connection_mappings(Option<Vec::<GlueConnectionMapping>>)`](crate::operation::get_connection::GetConnectionOutput::glue_connection_mappings): <p>The AWS Glue connection for each <code>redshiftNamespace</code>, each <code>rdsInstance</code> and <code>rdsDatabase</code> pair, or each <code>snowflakeDatabase</code> in <code>scope</code>. Absent when none is configured.</p>
/// - [`status(ConnectionStatus)`](crate::operation::get_connection::GetConnectionOutput::status): <p>The connection's status. Valid values:</p> <ul> <li> <p><code>CREATING</code> - Validation or provisioning is still in progress.</p></li> <li> <p><code>ACTIVE</code> - The data source is reachable and, for a <code>DATABRICKS</code> or <code>SNOWFLAKE</code> connection, AWS Glue has provisioned catalog synchronization and returned its crawler ARN. This doesn't mean that a crawl has started or completed.</p></li> <li> <p><code>UPDATING</code> - The connection is being updated.</p></li> <li> <p><code>DELETING</code> - The connection is being deleted.</p></li> <li> <p><code>FAILED</code> - Validation or provisioning failed, and the connection can't recover.</p></li> </ul>
/// - [`failure(Option<ConnectionFailure>)`](crate::operation::get_connection::GetConnectionOutput::failure): <p>The reason the connection is FAILED. Absent in every other status.</p>
/// - [`sub_status(Option<ResourceSubStatus>)`](crate::operation::get_connection::GetConnectionOutput::sub_status): <p>The last milestone a third-party connection's lifecycle reached. Present in two statuses: CREATING, where it shows the resources provisioned so far, and DELETING, where it shows the resources removed so far. Absent in every other status and while nothing has been done yet in the current direction. CREATING at GLUE_CONNECTION_VALIDATED on a connection created with <code>publish: false</code> means it is waiting for UpdateConnection <code>publish: true</code>.</p>
/// - [`created_at(DateTime)`](crate::operation::get_connection::GetConnectionOutput::created_at): <p>The date and time when the connection was created.</p>
/// - [`updated_at(DateTime)`](crate::operation::get_connection::GetConnectionOutput::updated_at): <p>When the resource last changed. Equal to <code>createdAt</code> until the first update.</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())
}
}