Skip to main content

aws_sdk_context/operation/create_connection/
builders.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub use crate::operation::create_connection::_create_connection_input::CreateConnectionInputBuilder;
3
4pub use crate::operation::create_connection::_create_connection_output::CreateConnectionOutputBuilder;
5
6impl crate::operation::create_connection::builders::CreateConnectionInputBuilder {
7    /// Sends a request with this input using the given client.
8    pub async fn send_with(
9        self,
10        client: &crate::Client,
11    ) -> ::std::result::Result<
12        crate::operation::create_connection::CreateConnectionOutput,
13        ::aws_smithy_runtime_api::client::result::SdkError<
14            crate::operation::create_connection::CreateConnectionError,
15            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16        >,
17    > {
18        let mut fluent_builder = client.create_connection();
19        fluent_builder.inner = self;
20        fluent_builder.send().await
21    }
22}
23/// Fluent builder constructing a request to `CreateConnection`.
24///
25/// <p>Creates a connection to a data source, such as an AWS Glue Data Catalog, an Amazon Bedrock knowledge base, or a third-party data catalog through an AWS Glue connection. GetConnection returns the connection's status.</p>
26#[derive(::std::clone::Clone, ::std::fmt::Debug)]
27pub struct CreateConnectionFluentBuilder {
28    handle: ::std::sync::Arc<crate::client::Handle>,
29    inner: crate::operation::create_connection::builders::CreateConnectionInputBuilder,
30    config_override: ::std::option::Option<crate::config::Builder>,
31}
32impl
33    crate::client::customize::internal::CustomizableSend<
34        crate::operation::create_connection::CreateConnectionOutput,
35        crate::operation::create_connection::CreateConnectionError,
36    > for CreateConnectionFluentBuilder
37{
38    fn send(
39        self,
40        config_override: crate::config::Builder,
41    ) -> crate::client::customize::internal::BoxFuture<
42        crate::client::customize::internal::SendResult<
43            crate::operation::create_connection::CreateConnectionOutput,
44            crate::operation::create_connection::CreateConnectionError,
45        >,
46    > {
47        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
48    }
49}
50impl CreateConnectionFluentBuilder {
51    /// Creates a new `CreateConnectionFluentBuilder`.
52    pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
53        Self {
54            handle,
55            inner: ::std::default::Default::default(),
56            config_override: ::std::option::Option::None,
57        }
58    }
59    /// Access the CreateConnection as a reference.
60    pub fn as_input(&self) -> &crate::operation::create_connection::builders::CreateConnectionInputBuilder {
61        &self.inner
62    }
63    /// Sends the request and returns the response.
64    ///
65    /// If an error occurs, an `SdkError` will be returned with additional details that
66    /// can be matched against.
67    ///
68    /// By default, any retryable failures will be retried twice. Retry behavior
69    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
70    /// set when configuring the client.
71    pub async fn send(
72        self,
73    ) -> ::std::result::Result<
74        crate::operation::create_connection::CreateConnectionOutput,
75        ::aws_smithy_runtime_api::client::result::SdkError<
76            crate::operation::create_connection::CreateConnectionError,
77            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
78        >,
79    > {
80        let input = self
81            .inner
82            .build()
83            .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
84        let runtime_plugins = crate::operation::create_connection::CreateConnection::operation_runtime_plugins(
85            self.handle.runtime_plugins.clone(),
86            &self.handle.conf,
87            self.config_override,
88        );
89        crate::operation::create_connection::CreateConnection::orchestrate(&runtime_plugins, input).await
90    }
91
92    /// Consumes this builder, creating a customizable operation that can be modified before being sent.
93    pub fn customize(
94        self,
95    ) -> crate::client::customize::CustomizableOperation<
96        crate::operation::create_connection::CreateConnectionOutput,
97        crate::operation::create_connection::CreateConnectionError,
98        Self,
99    > {
100        crate::client::customize::CustomizableOperation::new(self)
101    }
102    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
103        self.set_config_override(::std::option::Option::Some(config_override.into()));
104        self
105    }
106
107    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
108        self.config_override = config_override;
109        self
110    }
111    /// <p>A client idempotency token. It is optional, so the AWS SDKs can generate it automatically and reuse it on retries. A retry with an identical request returns the original connection. A different request returns <code>ValidationException</code>. <code>acknowledgements</code>, <code>tags</code> and, once the connection is <code>ACTIVE</code>, <code>publish</code> are not compared with the original request. A create refused for a missing acknowledgement records no token.</p>
112    pub fn client_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
113        self.inner = self.inner.client_token(input.into());
114        self
115    }
116    /// <p>A client idempotency token. It is optional, so the AWS SDKs can generate it automatically and reuse it on retries. A retry with an identical request returns the original connection. A different request returns <code>ValidationException</code>. <code>acknowledgements</code>, <code>tags</code> and, once the connection is <code>ACTIVE</code>, <code>publish</code> are not compared with the original request. A create refused for a missing acknowledgement records no token.</p>
117    pub fn set_client_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
118        self.inner = self.inner.set_client_token(input);
119        self
120    }
121    /// <p>A client idempotency token. It is optional, so the AWS SDKs can generate it automatically and reuse it on retries. A retry with an identical request returns the original connection. A different request returns <code>ValidationException</code>. <code>acknowledgements</code>, <code>tags</code> and, once the connection is <code>ACTIVE</code>, <code>publish</code> are not compared with the original request. A create refused for a missing acknowledgement records no token.</p>
122    pub fn get_client_token(&self) -> &::std::option::Option<::std::string::String> {
123        self.inner.get_client_token()
124    }
125    /// <p>The name of the connection. Required. You can change it later with UpdateConnection. Starts with a letter and contains 3–63 ASCII letters, digits, and hyphens.</p>
126    pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
127        self.inner = self.inner.name(input.into());
128        self
129    }
130    /// <p>The name of the connection. Required. You can change it later with UpdateConnection. Starts with a letter and contains 3–63 ASCII letters, digits, and hyphens.</p>
131    pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
132        self.inner = self.inner.set_name(input);
133        self
134    }
135    /// <p>The name of the connection. Required. You can change it later with UpdateConnection. Starts with a letter and contains 3–63 ASCII letters, digits, and hyphens.</p>
136    pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
137        self.inner.get_name()
138    }
139    /// <p>The external data source that this connection binds to: its <code>type</code> and <code>location.arn</code>. The ARN must be in your account, except for <code>GLUE_DATA_CATALOG</code>, where it can name a catalog or an AWS Glue connection in another account.</p>
140    /// <ul>
141    /// <li>
142    /// <p><code>GLUE_DATA_CATALOG</code> - An AWS Glue Data Catalog ARN (<code>:catalog</code> or <code>:catalog/&lt;path&gt;</code>), or the ARN of an existing AWS Glue connection (<code>:connection/&lt;name&gt;</code>) for a federated AWS data source such as Amazon Redshift or Amazon RDS. The AWS Glue connection must be a unified connection (ConnectionSchemaVersion 2) in your partition and Region that you can read. You can't specify <code>scope</code> with an AWS Glue connection ARN. While AWS Glue is still validating the connection, the request fails with <code>ConflictException</code>. If its validation failed, the request fails with <code>AccessDeniedException</code>.</p></li>
143    /// <li>
144    /// <p><code>DATABRICKS</code> or <code>SNOWFLAKE</code> - The ARN of an existing AWS Glue connection whose AWS Glue ConnectionType matches <code>type</code>. AWS Context validates its Credential Broker settings, if present, and doesn't store them.</p></li>
145    /// </ul>
146    pub fn data_source(mut self, input: crate::types::DataSourceReference) -> Self {
147        self.inner = self.inner.data_source(input);
148        self
149    }
150    /// <p>The external data source that this connection binds to: its <code>type</code> and <code>location.arn</code>. The ARN must be in your account, except for <code>GLUE_DATA_CATALOG</code>, where it can name a catalog or an AWS Glue connection in another account.</p>
151    /// <ul>
152    /// <li>
153    /// <p><code>GLUE_DATA_CATALOG</code> - An AWS Glue Data Catalog ARN (<code>:catalog</code> or <code>:catalog/&lt;path&gt;</code>), or the ARN of an existing AWS Glue connection (<code>:connection/&lt;name&gt;</code>) for a federated AWS data source such as Amazon Redshift or Amazon RDS. The AWS Glue connection must be a unified connection (ConnectionSchemaVersion 2) in your partition and Region that you can read. You can't specify <code>scope</code> with an AWS Glue connection ARN. While AWS Glue is still validating the connection, the request fails with <code>ConflictException</code>. If its validation failed, the request fails with <code>AccessDeniedException</code>.</p></li>
154    /// <li>
155    /// <p><code>DATABRICKS</code> or <code>SNOWFLAKE</code> - The ARN of an existing AWS Glue connection whose AWS Glue ConnectionType matches <code>type</code>. AWS Context validates its Credential Broker settings, if present, and doesn't store them.</p></li>
156    /// </ul>
157    pub fn set_data_source(mut self, input: ::std::option::Option<crate::types::DataSourceReference>) -> Self {
158        self.inner = self.inner.set_data_source(input);
159        self
160    }
161    /// <p>The external data source that this connection binds to: its <code>type</code> and <code>location.arn</code>. The ARN must be in your account, except for <code>GLUE_DATA_CATALOG</code>, where it can name a catalog or an AWS Glue connection in another account.</p>
162    /// <ul>
163    /// <li>
164    /// <p><code>GLUE_DATA_CATALOG</code> - An AWS Glue Data Catalog ARN (<code>:catalog</code> or <code>:catalog/&lt;path&gt;</code>), or the ARN of an existing AWS Glue connection (<code>:connection/&lt;name&gt;</code>) for a federated AWS data source such as Amazon Redshift or Amazon RDS. The AWS Glue connection must be a unified connection (ConnectionSchemaVersion 2) in your partition and Region that you can read. You can't specify <code>scope</code> with an AWS Glue connection ARN. While AWS Glue is still validating the connection, the request fails with <code>ConflictException</code>. If its validation failed, the request fails with <code>AccessDeniedException</code>.</p></li>
165    /// <li>
166    /// <p><code>DATABRICKS</code> or <code>SNOWFLAKE</code> - The ARN of an existing AWS Glue connection whose AWS Glue ConnectionType matches <code>type</code>. AWS Context validates its Credential Broker settings, if present, and doesn't store them.</p></li>
167    /// </ul>
168    pub fn get_data_source(&self) -> &::std::option::Option<crate::types::DataSourceReference> {
169        self.inner.get_data_source()
170    }
171    /// <p>Optional hierarchical subset of the data source to ingest. Absent means the whole source. A DATABRICKS scope names at most one <code>databricksCatalog</code>, and a SNOWFLAKE scope one <code>snowflakeDatabase</code>. A GLUE_DATA_CATALOG scope can select by service with a <code>glueService</code> segment (see <code>DataSourceScope</code>). An unknown service name, a repeated or misplaced <code>glueService</code> segment, a later level of another service, or <code>glueService</code> on another connection type returns ValidationException.</p>
172    pub fn scope(mut self, input: crate::types::DataSourceScope) -> Self {
173        self.inner = self.inner.scope(input);
174        self
175    }
176    /// <p>Optional hierarchical subset of the data source to ingest. Absent means the whole source. A DATABRICKS scope names at most one <code>databricksCatalog</code>, and a SNOWFLAKE scope one <code>snowflakeDatabase</code>. A GLUE_DATA_CATALOG scope can select by service with a <code>glueService</code> segment (see <code>DataSourceScope</code>). An unknown service name, a repeated or misplaced <code>glueService</code> segment, a later level of another service, or <code>glueService</code> on another connection type returns ValidationException.</p>
177    pub fn set_scope(mut self, input: ::std::option::Option<crate::types::DataSourceScope>) -> Self {
178        self.inner = self.inner.set_scope(input);
179        self
180    }
181    /// <p>Optional hierarchical subset of the data source to ingest. Absent means the whole source. A DATABRICKS scope names at most one <code>databricksCatalog</code>, and a SNOWFLAKE scope one <code>snowflakeDatabase</code>. A GLUE_DATA_CATALOG scope can select by service with a <code>glueService</code> segment (see <code>DataSourceScope</code>). An unknown service name, a repeated or misplaced <code>glueService</code> segment, a later level of another service, or <code>glueService</code> on another connection type returns ValidationException.</p>
182    pub fn get_scope(&self) -> &::std::option::Option<crate::types::DataSourceScope> {
183        self.inner.get_scope()
184    }
185    /// <p>The access configuration for the data source, which names the AWS Identity and Access Management (IAM) role for data access. Optional.</p>
186    /// <p>For <code>GLUE_DATA_CATALOG</code> and <code>BEDROCK_KNOWLEDGE_BASE</code>, <code>iamRole</code> is the IAM role that AWS Context assumes to read the source and the AWS Glue connections in <code>glueConnectionMappings</code>. If you omit <code>accessConfig</code> or set no variant, AWS Context reads them with your own credentials. This applies whether the source is in your account or another account. For a source in another account, AWS Context checks when it creates the connection that <code>iamRole</code> can read the source, and the request fails if it can't. A source in another account with no <code>iamRole</code> isn't checked when the connection is created. An <code>accessConfig</code> with no variant is stored as absent and is not returned on the connection.</p>
187    /// <p>For <code>DATABRICKS</code> and <code>SNOWFLAKE</code>, AWS Glue reads the source with the <code>ROLE_ARN</code> of the AWS Glue connection in <code>dataSource</code>, not with <code>accessConfig</code>. For these types, <code>accessConfig</code> is reserved for other roles.</p>
188    pub fn access_config(mut self, input: crate::types::AccessConfig) -> Self {
189        self.inner = self.inner.access_config(input);
190        self
191    }
192    /// <p>The access configuration for the data source, which names the AWS Identity and Access Management (IAM) role for data access. Optional.</p>
193    /// <p>For <code>GLUE_DATA_CATALOG</code> and <code>BEDROCK_KNOWLEDGE_BASE</code>, <code>iamRole</code> is the IAM role that AWS Context assumes to read the source and the AWS Glue connections in <code>glueConnectionMappings</code>. If you omit <code>accessConfig</code> or set no variant, AWS Context reads them with your own credentials. This applies whether the source is in your account or another account. For a source in another account, AWS Context checks when it creates the connection that <code>iamRole</code> can read the source, and the request fails if it can't. A source in another account with no <code>iamRole</code> isn't checked when the connection is created. An <code>accessConfig</code> with no variant is stored as absent and is not returned on the connection.</p>
194    /// <p>For <code>DATABRICKS</code> and <code>SNOWFLAKE</code>, AWS Glue reads the source with the <code>ROLE_ARN</code> of the AWS Glue connection in <code>dataSource</code>, not with <code>accessConfig</code>. For these types, <code>accessConfig</code> is reserved for other roles.</p>
195    pub fn set_access_config(mut self, input: ::std::option::Option<crate::types::AccessConfig>) -> Self {
196        self.inner = self.inner.set_access_config(input);
197        self
198    }
199    /// <p>The access configuration for the data source, which names the AWS Identity and Access Management (IAM) role for data access. Optional.</p>
200    /// <p>For <code>GLUE_DATA_CATALOG</code> and <code>BEDROCK_KNOWLEDGE_BASE</code>, <code>iamRole</code> is the IAM role that AWS Context assumes to read the source and the AWS Glue connections in <code>glueConnectionMappings</code>. If you omit <code>accessConfig</code> or set no variant, AWS Context reads them with your own credentials. This applies whether the source is in your account or another account. For a source in another account, AWS Context checks when it creates the connection that <code>iamRole</code> can read the source, and the request fails if it can't. A source in another account with no <code>iamRole</code> isn't checked when the connection is created. An <code>accessConfig</code> with no variant is stored as absent and is not returned on the connection.</p>
201    /// <p>For <code>DATABRICKS</code> and <code>SNOWFLAKE</code>, AWS Glue reads the source with the <code>ROLE_ARN</code> of the AWS Glue connection in <code>dataSource</code>, not with <code>accessConfig</code>. For these types, <code>accessConfig</code> is reserved for other roles.</p>
202    pub fn get_access_config(&self) -> &::std::option::Option<crate::types::AccessConfig> {
203        self.inner.get_access_config()
204    }
205    /// <p>How often AWS Context re-syncs a <code>DATABRICKS</code> or <code>SNOWFLAKE</code> source. If you omit it, the default is <code>DAILY</code>. Not accepted for <code>GLUE_DATA_CATALOG</code> and <code>BEDROCK_KNOWLEDGE_BASE</code> connections. You can change it with UpdateConnection.</p>
206    pub fn sync_schedule(mut self, input: crate::types::SyncSchedule) -> Self {
207        self.inner = self.inner.sync_schedule(input);
208        self
209    }
210    /// <p>How often AWS Context re-syncs a <code>DATABRICKS</code> or <code>SNOWFLAKE</code> source. If you omit it, the default is <code>DAILY</code>. Not accepted for <code>GLUE_DATA_CATALOG</code> and <code>BEDROCK_KNOWLEDGE_BASE</code> connections. You can change it with UpdateConnection.</p>
211    pub fn set_sync_schedule(mut self, input: ::std::option::Option<crate::types::SyncSchedule>) -> Self {
212        self.inner = self.inner.set_sync_schedule(input);
213        self
214    }
215    /// <p>How often AWS Context re-syncs a <code>DATABRICKS</code> or <code>SNOWFLAKE</code> source. If you omit it, the default is <code>DAILY</code>. Not accepted for <code>GLUE_DATA_CATALOG</code> and <code>BEDROCK_KNOWLEDGE_BASE</code> connections. You can change it with UpdateConnection.</p>
216    pub fn get_sync_schedule(&self) -> &::std::option::Option<crate::types::SyncSchedule> {
217        self.inner.get_sync_schedule()
218    }
219    /// <p>The ingestion configuration: the IAM role that a data producer (AWS Glue Data Catalog or Amazon Bedrock knowledge base) assumes to push data into this connection's agent contexts. It is separate from <code>accessConfig</code>, which names the role that AWS Context assumes to read the source. Required, because a connection can't ingest data without a role that its data producer can assume. You must have <code>iam:PassRole</code> permission to pass this role to the data producer, and the role must be in your account.</p>
220    pub fn ingestion_config(mut self, input: crate::types::IngestionConfig) -> Self {
221        self.inner = self.inner.ingestion_config(input);
222        self
223    }
224    /// <p>The ingestion configuration: the IAM role that a data producer (AWS Glue Data Catalog or Amazon Bedrock knowledge base) assumes to push data into this connection's agent contexts. It is separate from <code>accessConfig</code>, which names the role that AWS Context assumes to read the source. Required, because a connection can't ingest data without a role that its data producer can assume. You must have <code>iam:PassRole</code> permission to pass this role to the data producer, and the role must be in your account.</p>
225    pub fn set_ingestion_config(mut self, input: ::std::option::Option<crate::types::IngestionConfig>) -> Self {
226        self.inner = self.inner.set_ingestion_config(input);
227        self
228    }
229    /// <p>The ingestion configuration: the IAM role that a data producer (AWS Glue Data Catalog or Amazon Bedrock knowledge base) assumes to push data into this connection's agent contexts. It is separate from <code>accessConfig</code>, which names the role that AWS Context assumes to read the source. Required, because a connection can't ingest data without a role that its data producer can assume. You must have <code>iam:PassRole</code> permission to pass this role to the data producer, and the role must be in your account.</p>
230    pub fn get_ingestion_config(&self) -> &::std::option::Option<crate::types::IngestionConfig> {
231        self.inner.get_ingestion_config()
232    }
233    ///
234    /// Appends an item to `glueConnectionMappings`.
235    ///
236    /// To override the contents of this collection use [`set_glue_connection_mappings`](Self::set_glue_connection_mappings).
237    ///
238    /// <p>The AWS Glue connection to use for each <code>redshiftNamespace</code>, each <code>rdsInstance</code> and <code>rdsDatabase</code> pair, or each <code>snowflakeDatabase</code> in <code>scope</code>, keyed by <code>path</code>. Optional. You can specify 0–20 entries. The following rules apply:</p>
239    /// <ul>
240    /// <li>
241    /// <p>Once an entry names a level, every resource of that level in <code>scope</code> needs an entry. While an entry names <code>rdsInstance</code>, every selector that names an <code>rdsInstance</code> must also name its <code>rdsDatabase</code>.</p></li>
242    /// <li>
243    /// <p><code>redshiftNamespace</code> and <code>rdsInstance</code> entries require <code>dataSource</code> to be an AWS Glue Data Catalog ARN. <code>accessConfig.iamRole</code> is optional.</p></li>
244    /// <li>
245    /// <p><code>snowflakeDatabase</code> entries require <code>dataSource</code> to be an AWS Glue connection ARN.</p></li>
246    /// <li>
247    /// <p>While any entry is present, <code>scope</code> cannot contain a selector that names only a catalog or a <code>glueService</code>, because such a selector covers every resource of the catalog or service. Otherwise, a selector with a <code>glueService</code> segment follows these rules as it would without that segment. An entry's <code>path</code> never names <code>glueService</code>.</p></li>
248    /// <li>
249    /// <p>A selector that names only <code>glueService</code> <code>REDSHIFT</code> or <code>RDS</code>, with no namespace or instance, cannot be combined with any entry. Such a connection reads only the service's metadata, and you cannot query its data.</p></li>
250    /// </ul>
251    pub fn glue_connection_mappings(mut self, input: crate::types::GlueConnectionMapping) -> Self {
252        self.inner = self.inner.glue_connection_mappings(input);
253        self
254    }
255    /// <p>The AWS Glue connection to use for each <code>redshiftNamespace</code>, each <code>rdsInstance</code> and <code>rdsDatabase</code> pair, or each <code>snowflakeDatabase</code> in <code>scope</code>, keyed by <code>path</code>. Optional. You can specify 0–20 entries. The following rules apply:</p>
256    /// <ul>
257    /// <li>
258    /// <p>Once an entry names a level, every resource of that level in <code>scope</code> needs an entry. While an entry names <code>rdsInstance</code>, every selector that names an <code>rdsInstance</code> must also name its <code>rdsDatabase</code>.</p></li>
259    /// <li>
260    /// <p><code>redshiftNamespace</code> and <code>rdsInstance</code> entries require <code>dataSource</code> to be an AWS Glue Data Catalog ARN. <code>accessConfig.iamRole</code> is optional.</p></li>
261    /// <li>
262    /// <p><code>snowflakeDatabase</code> entries require <code>dataSource</code> to be an AWS Glue connection ARN.</p></li>
263    /// <li>
264    /// <p>While any entry is present, <code>scope</code> cannot contain a selector that names only a catalog or a <code>glueService</code>, because such a selector covers every resource of the catalog or service. Otherwise, a selector with a <code>glueService</code> segment follows these rules as it would without that segment. An entry's <code>path</code> never names <code>glueService</code>.</p></li>
265    /// <li>
266    /// <p>A selector that names only <code>glueService</code> <code>REDSHIFT</code> or <code>RDS</code>, with no namespace or instance, cannot be combined with any entry. Such a connection reads only the service's metadata, and you cannot query its data.</p></li>
267    /// </ul>
268    pub fn set_glue_connection_mappings(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::GlueConnectionMapping>>) -> Self {
269        self.inner = self.inner.set_glue_connection_mappings(input);
270        self
271    }
272    /// <p>The AWS Glue connection to use for each <code>redshiftNamespace</code>, each <code>rdsInstance</code> and <code>rdsDatabase</code> pair, or each <code>snowflakeDatabase</code> in <code>scope</code>, keyed by <code>path</code>. Optional. You can specify 0–20 entries. The following rules apply:</p>
273    /// <ul>
274    /// <li>
275    /// <p>Once an entry names a level, every resource of that level in <code>scope</code> needs an entry. While an entry names <code>rdsInstance</code>, every selector that names an <code>rdsInstance</code> must also name its <code>rdsDatabase</code>.</p></li>
276    /// <li>
277    /// <p><code>redshiftNamespace</code> and <code>rdsInstance</code> entries require <code>dataSource</code> to be an AWS Glue Data Catalog ARN. <code>accessConfig.iamRole</code> is optional.</p></li>
278    /// <li>
279    /// <p><code>snowflakeDatabase</code> entries require <code>dataSource</code> to be an AWS Glue connection ARN.</p></li>
280    /// <li>
281    /// <p>While any entry is present, <code>scope</code> cannot contain a selector that names only a catalog or a <code>glueService</code>, because such a selector covers every resource of the catalog or service. Otherwise, a selector with a <code>glueService</code> segment follows these rules as it would without that segment. An entry's <code>path</code> never names <code>glueService</code>.</p></li>
282    /// <li>
283    /// <p>A selector that names only <code>glueService</code> <code>REDSHIFT</code> or <code>RDS</code>, with no namespace or instance, cannot be combined with any entry. Such a connection reads only the service's metadata, and you cannot query its data.</p></li>
284    /// </ul>
285    pub fn get_glue_connection_mappings(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::GlueConnectionMapping>> {
286        self.inner.get_glue_connection_mappings()
287    }
288    /// <p>Specifies whether to configure catalog synchronization and wait for it to be provisioned during this call. If you omit it, the default is <code>true</code>. For a <code>DATABRICKS</code> or <code>SNOWFLAKE</code> connection, <code>false</code> validates only the AWS Glue connection. The connection is returned as <code>CREATING</code> with <code>subStatus</code> <code>GLUE_CONNECTION_VALIDATED</code>, and you publish it later by calling UpdateConnection with <code>publish</code> set to <code>true</code>. Ignored for <code>GLUE_DATA_CATALOG</code> and <code>BEDROCK_KNOWLEDGE_BASE</code> connections, which have no sync job.</p>
289    pub fn publish(mut self, input: bool) -> Self {
290        self.inner = self.inner.publish(input);
291        self
292    }
293    /// <p>Specifies whether to configure catalog synchronization and wait for it to be provisioned during this call. If you omit it, the default is <code>true</code>. For a <code>DATABRICKS</code> or <code>SNOWFLAKE</code> connection, <code>false</code> validates only the AWS Glue connection. The connection is returned as <code>CREATING</code> with <code>subStatus</code> <code>GLUE_CONNECTION_VALIDATED</code>, and you publish it later by calling UpdateConnection with <code>publish</code> set to <code>true</code>. Ignored for <code>GLUE_DATA_CATALOG</code> and <code>BEDROCK_KNOWLEDGE_BASE</code> connections, which have no sync job.</p>
294    pub fn set_publish(mut self, input: ::std::option::Option<bool>) -> Self {
295        self.inner = self.inner.set_publish(input);
296        self
297    }
298    /// <p>Specifies whether to configure catalog synchronization and wait for it to be provisioned during this call. If you omit it, the default is <code>true</code>. For a <code>DATABRICKS</code> or <code>SNOWFLAKE</code> connection, <code>false</code> validates only the AWS Glue connection. The connection is returned as <code>CREATING</code> with <code>subStatus</code> <code>GLUE_CONNECTION_VALIDATED</code>, and you publish it later by calling UpdateConnection with <code>publish</code> set to <code>true</code>. Ignored for <code>GLUE_DATA_CATALOG</code> and <code>BEDROCK_KNOWLEDGE_BASE</code> connections, which have no sync job.</p>
299    pub fn get_publish(&self) -> &::std::option::Option<bool> {
300        self.inner.get_publish()
301    }
302    ///
303    /// Appends an item to `acknowledgements`.
304    ///
305    /// To override the contents of this collection use [`set_acknowledgements`](Self::set_acknowledgements).
306    ///
307    /// <p>The conditions that you acknowledge AWS Context can't honor. Specify <code>CUSTOMER_MANAGED_KEY</code> when the knowledge base is encrypted with an AWS KMS customer managed key and you accept that AWS Context stores the ingested data under AWS owned keys. If you omit it, creating a connection to such a knowledge base fails with <code>ValidationException</code>. An unknown or repeated value also fails with <code>ValidationException</code>.</p>
308    pub fn acknowledgements(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
309        self.inner = self.inner.acknowledgements(input.into());
310        self
311    }
312    /// <p>The conditions that you acknowledge AWS Context can't honor. Specify <code>CUSTOMER_MANAGED_KEY</code> when the knowledge base is encrypted with an AWS KMS customer managed key and you accept that AWS Context stores the ingested data under AWS owned keys. If you omit it, creating a connection to such a knowledge base fails with <code>ValidationException</code>. An unknown or repeated value also fails with <code>ValidationException</code>.</p>
313    pub fn set_acknowledgements(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
314        self.inner = self.inner.set_acknowledgements(input);
315        self
316    }
317    /// <p>The conditions that you acknowledge AWS Context can't honor. Specify <code>CUSTOMER_MANAGED_KEY</code> when the knowledge base is encrypted with an AWS KMS customer managed key and you accept that AWS Context stores the ingested data under AWS owned keys. If you omit it, creating a connection to such a knowledge base fails with <code>ValidationException</code>. An unknown or repeated value also fails with <code>ValidationException</code>.</p>
318    pub fn get_acknowledgements(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
319        self.inner.get_acknowledgements()
320    }
321    ///
322    /// Adds a key-value pair to `tags`.
323    ///
324    /// To override the contents of this collection use [`set_tags`](Self::set_tags).
325    ///
326    /// <p>Tags to add to the connection when you create it: up to 200 in the request, of which at most 50 can be user tags. Keys can't start with <code>aws:</code>. To add tags, you also need <code>context:TagResource</code> permission on the new connection. If you specify more than 50 user tags, the request fails with <code>ServiceQuotaExceededException</code>, as on TagResource. If an AWS Organizations tag policy refuses a tag, the request fails with <code>ValidationException</code>.</p>
327    pub fn tags(mut self, k: impl ::std::convert::Into<::std::string::String>, v: impl ::std::convert::Into<::std::string::String>) -> Self {
328        self.inner = self.inner.tags(k.into(), v.into());
329        self
330    }
331    /// <p>Tags to add to the connection when you create it: up to 200 in the request, of which at most 50 can be user tags. Keys can't start with <code>aws:</code>. To add tags, you also need <code>context:TagResource</code> permission on the new connection. If you specify more than 50 user tags, the request fails with <code>ServiceQuotaExceededException</code>, as on TagResource. If an AWS Organizations tag policy refuses a tag, the request fails with <code>ValidationException</code>.</p>
332    pub fn set_tags(mut self, input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>) -> Self {
333        self.inner = self.inner.set_tags(input);
334        self
335    }
336    /// <p>Tags to add to the connection when you create it: up to 200 in the request, of which at most 50 can be user tags. Keys can't start with <code>aws:</code>. To add tags, you also need <code>context:TagResource</code> permission on the new connection. If you specify more than 50 user tags, the request fails with <code>ServiceQuotaExceededException</code>, as on TagResource. If an AWS Organizations tag policy refuses a tag, the request fails with <code>ValidationException</code>.</p>
337    pub fn get_tags(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
338        self.inner.get_tags()
339    }
340}