1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateConnection`](crate::operation::create_connection::builders::CreateConnectionFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`provider_type(ProviderType)`](crate::operation::create_connection::builders::CreateConnectionFluentBuilder::provider_type) / [`set_provider_type(Option<ProviderType>)`](crate::operation::create_connection::builders::CreateConnectionFluentBuilder::set_provider_type): <p>The name of the external provider where your third-party code repository is configured.</p>
    ///   - [`connection_name(impl Into<String>)`](crate::operation::create_connection::builders::CreateConnectionFluentBuilder::connection_name) / [`set_connection_name(Option<String>)`](crate::operation::create_connection::builders::CreateConnectionFluentBuilder::set_connection_name): <p>The name of the connection to be created.</p>
    ///   - [`tags(Tag)`](crate::operation::create_connection::builders::CreateConnectionFluentBuilder::tags) / [`set_tags(Option<Vec<Tag>>)`](crate::operation::create_connection::builders::CreateConnectionFluentBuilder::set_tags): <p>The key-value pair to use when tagging the resource.</p>
    ///   - [`host_arn(impl Into<String>)`](crate::operation::create_connection::builders::CreateConnectionFluentBuilder::host_arn) / [`set_host_arn(Option<String>)`](crate::operation::create_connection::builders::CreateConnectionFluentBuilder::set_host_arn): <p>The Amazon Resource Name (ARN) of the host associated with the connection to be created.</p>
    /// - On success, responds with [`CreateConnectionOutput`](crate::operation::create_connection::CreateConnectionOutput) with field(s):
    ///   - [`connection_arn(Option<String>)`](crate::operation::create_connection::CreateConnectionOutput::connection_arn): <p>The Amazon Resource Name (ARN) of the connection to be created. The ARN is used as the connection reference when the connection is shared between Amazon Web Services services.</p> <note>   <p>The ARN is never reused if the connection is deleted.</p>  </note>
    ///   - [`tags(Option<Vec<Tag>>)`](crate::operation::create_connection::CreateConnectionOutput::tags): <p>Specifies the tags applied to the resource.</p>
    /// - On failure, responds with [`SdkError<CreateConnectionError>`](crate::operation::create_connection::CreateConnectionError)
    pub fn create_connection(&self) -> crate::operation::create_connection::builders::CreateConnectionFluentBuilder {
        crate::operation::create_connection::builders::CreateConnectionFluentBuilder::new(self.handle.clone())
    }
}