aws-sdk-context 1.0.0

AWS SDK for AWS Context
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`UpdateConnection`](crate::operation::update_connection::builders::UpdateConnectionFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`connection_id(impl Into<String>)`](crate::operation::update_connection::builders::UpdateConnectionFluentBuilder::connection_id) / [`set_connection_id(Option<String>)`](crate::operation::update_connection::builders::UpdateConnectionFluentBuilder::set_connection_id):<br>required: **true**<br><p>The connection to update, by its ID (which starts with <code>conn-</code>) or its ARN.</p><br>
    ///   - [`name(impl Into<String>)`](crate::operation::update_connection::builders::UpdateConnectionFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::update_connection::builders::UpdateConnectionFluentBuilder::set_name):<br>required: **false**<br><p>The new name. If you omit it, the name is unchanged.</p><br>
    ///   - [`scope(DataSourceScope)`](crate::operation::update_connection::builders::UpdateConnectionFluentBuilder::scope) / [`set_scope(Option<DataSourceScope>)`](crate::operation::update_connection::builders::UpdateConnectionFluentBuilder::set_scope):<br>required: **false**<br><p>The new ingestion scope for the connection. If you omit it, the existing scope is unchanged. The rules of <code>CreateConnectionRequest.scope</code> apply, with the following additions:</p> <ul>  <li>   <p>A <code>DATABRICKS</code> or <code>SNOWFLAKE</code> scope names at most one <code>databricksCatalog</code> or <code>snowflakeDatabase</code>, unless the existing scope already names each one.</p></li>  <li>   <p>If the stored scope has a selector with a <code>glueService</code> segment, the new scope can't be empty. Every selector that it adds must also have a <code>glueService</code> segment. Otherwise, the request fails with <code>ValidationException</code>. You can keep a selector that the stored scope already has, so resending the stored scope unchanged succeeds.</p></li> </ul><br>
    ///   - [`access_config(AccessConfig)`](crate::operation::update_connection::builders::UpdateConnectionFluentBuilder::access_config) / [`set_access_config(Option<AccessConfig>)`](crate::operation::update_connection::builders::UpdateConnectionFluentBuilder::set_access_config):<br>required: **false**<br><p>The updated access configuration for the data source. If you omit it, the existing configuration is unchanged. If you provide one, it replaces the stored configuration, including its variant.</p> <p>For <code>DATABRICKS</code> and <code>SNOWFLAKE</code>, a configuration with no variant clears a stored <code>iamRole</code>, and the connection is then returned with no <code>accessConfig</code>.</p> <p>For <code>GLUE_DATA_CATALOG</code> and <code>BEDROCK_KNOWLEDGE_BASE</code>, you cannot add or remove the <code>iamRole</code>. An update that adds an <code>iamRole</code> to a connection stored without one fails with <code>ValidationException</code>. So does an update that provides a configuration without <code>iamRole</code> for a connection that has one. You can replace a stored role with another role. To change how such a connection reads its data source, delete the connection and create it again.</p><br>
    ///   - [`sync_schedule(SyncSchedule)`](crate::operation::update_connection::builders::UpdateConnectionFluentBuilder::sync_schedule) / [`set_sync_schedule(Option<SyncSchedule>)`](crate::operation::update_connection::builders::UpdateConnectionFluentBuilder::set_sync_schedule):<br>required: **false**<br><p>The new sync schedule for a <code>DATABRICKS</code> or <code>SNOWFLAKE</code> source. If you omit it, the existing schedule is unchanged. Not accepted for <code>GLUE_DATA_CATALOG</code> and <code>BEDROCK_KNOWLEDGE_BASE</code> connections.</p><br>
    ///   - [`ingestion_config(IngestionConfig)`](crate::operation::update_connection::builders::UpdateConnectionFluentBuilder::ingestion_config) / [`set_ingestion_config(Option<IngestionConfig>)`](crate::operation::update_connection::builders::UpdateConnectionFluentBuilder::set_ingestion_config):<br>required: **true**<br><p>The ingestion configuration: the IAM role that a data producer assumes to push data into this connection. Required on every update, so that an existing connection always has an ingestion role that AWS Context can authorize. You must have <code>iam:PassRole</code> permission to pass this role to the data producer, and the role must be in your account. You can't clear the role.</p><br>
    ///   - [`glue_connection_mappings(GlueConnectionMapping)`](crate::operation::update_connection::builders::UpdateConnectionFluentBuilder::glue_connection_mappings) / [`set_glue_connection_mappings(Option<Vec::<GlueConnectionMapping>>)`](crate::operation::update_connection::builders::UpdateConnectionFluentBuilder::set_glue_connection_mappings):<br>required: **false**<br><p>The AWS Glue connection for each <code>redshiftNamespace</code>, and for each <code>rdsInstance</code> and <code>rdsDatabase</code> pair, in <code>scope</code>. If you omit it, the stored list is kept. A list replaces the stored list, and an empty list clears it. If the update changes <code>scope</code>, or changes the role of a connection to another account's catalog, AWS Context validates the kept list again. The rules are those of <code>CreateConnectionRequest.glueConnectionMappings</code>. You can't change the list of a <code>SNOWFLAKE</code> connection, which is keyed by <code>snowflakeDatabase</code>: omit it or send it unchanged.</p><br>
    ///   - [`publish(bool)`](crate::operation::update_connection::builders::UpdateConnectionFluentBuilder::publish) / [`set_publish(Option<bool>)`](crate::operation::update_connection::builders::UpdateConnectionFluentBuilder::set_publish):<br>required: **false**<br><p>Specifies whether to publish a third-party connection created with <code>publish: false</code>. If <code>true</code>, AWS Context configures catalog synchronization. The connection moves to ACTIVE when AWS Glue finishes provisioning the managed crawler. This has no effect on an ACTIVE connection. <code>false</code> is not accepted, because a connection can't be unpublished. Delete the connection instead.</p><br>
    /// - On success, responds with [`UpdateConnectionOutput`](crate::operation::update_connection::UpdateConnectionOutput) with field(s):
    ///   - [`id(String)`](crate::operation::update_connection::UpdateConnectionOutput::id): <p>The ID of the connection.</p>
    ///   - [`arn(String)`](crate::operation::update_connection::UpdateConnectionOutput::arn): <p>The ARN of the connection.</p>
    ///   - [`name(String)`](crate::operation::update_connection::UpdateConnectionOutput::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::update_connection::UpdateConnectionOutput::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::update_connection::UpdateConnectionOutput::scope): <p>The hierarchical subset of the data source this connection ingests.</p>
    ///   - [`access_config(Option<AccessConfig>)`](crate::operation::update_connection::UpdateConnectionOutput::access_config): <p>Per-connection access configuration: the IAM role used for data access.</p>
    ///   - [`sync_schedule(Option<SyncSchedule>)`](crate::operation::update_connection::UpdateConnectionOutput::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::update_connection::UpdateConnectionOutput::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::update_connection::UpdateConnectionOutput::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::update_connection::UpdateConnectionOutput::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::update_connection::UpdateConnectionOutput::failure): <p>The reason the connection is FAILED. Absent in every other status.</p>
    ///   - [`sub_status(Option<ResourceSubStatus>)`](crate::operation::update_connection::UpdateConnectionOutput::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::update_connection::UpdateConnectionOutput::created_at): <p>The date and time when the connection was created.</p>
    ///   - [`updated_at(DateTime)`](crate::operation::update_connection::UpdateConnectionOutput::updated_at): <p>When the resource last changed. Equal to <code>createdAt</code> until the first update.</p>
    /// - On failure, responds with [`SdkError<UpdateConnectionError>`](crate::operation::update_connection::UpdateConnectionError)
    pub fn update_connection(&self) -> crate::operation::update_connection::builders::UpdateConnectionFluentBuilder {
        crate::operation::update_connection::builders::UpdateConnectionFluentBuilder::new(self.handle.clone())
    }
}