aws_sdk_codeartifact/client/
associate_external_connection.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`AssociateExternalConnection`](crate::operation::associate_external_connection::builders::AssociateExternalConnectionFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`domain(impl Into<String>)`](crate::operation::associate_external_connection::builders::AssociateExternalConnectionFluentBuilder::domain) / [`set_domain(Option<String>)`](crate::operation::associate_external_connection::builders::AssociateExternalConnectionFluentBuilder::set_domain):<br>required: **true**<br><p>The name of the domain that contains the repository.</p><br>
7    ///   - [`domain_owner(impl Into<String>)`](crate::operation::associate_external_connection::builders::AssociateExternalConnectionFluentBuilder::domain_owner) / [`set_domain_owner(Option<String>)`](crate::operation::associate_external_connection::builders::AssociateExternalConnectionFluentBuilder::set_domain_owner):<br>required: **false**<br><p>The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces.</p><br>
8    ///   - [`repository(impl Into<String>)`](crate::operation::associate_external_connection::builders::AssociateExternalConnectionFluentBuilder::repository) / [`set_repository(Option<String>)`](crate::operation::associate_external_connection::builders::AssociateExternalConnectionFluentBuilder::set_repository):<br>required: **true**<br><p>The name of the repository to which the external connection is added.</p><br>
9    ///   - [`external_connection(impl Into<String>)`](crate::operation::associate_external_connection::builders::AssociateExternalConnectionFluentBuilder::external_connection) / [`set_external_connection(Option<String>)`](crate::operation::associate_external_connection::builders::AssociateExternalConnectionFluentBuilder::set_external_connection):<br>required: **true**<br><p>The name of the external connection to add to the repository. The following values are supported:</p> <ul>  <li>   <p><code>public:npmjs</code> - for the npm public repository.</p></li>  <li>   <p><code>public:nuget-org</code> - for the NuGet Gallery.</p></li>  <li>   <p><code>public:pypi</code> - for the Python Package Index.</p></li>  <li>   <p><code>public:maven-central</code> - for Maven Central.</p></li>  <li>   <p><code>public:maven-googleandroid</code> - for the Google Android repository.</p></li>  <li>   <p><code>public:maven-gradleplugins</code> - for the Gradle plugins repository.</p></li>  <li>   <p><code>public:maven-commonsware</code> - for the CommonsWare Android repository.</p></li>  <li>   <p><code>public:maven-clojars</code> - for the Clojars repository.</p></li>  <li>   <p><code>public:ruby-gems-org</code> - for RubyGems.org.</p></li>  <li>   <p><code>public:crates-io</code> - for Crates.io.</p></li> </ul><br>
10    /// - On success, responds with [`AssociateExternalConnectionOutput`](crate::operation::associate_external_connection::AssociateExternalConnectionOutput) with field(s):
11    ///   - [`repository(Option<RepositoryDescription>)`](crate::operation::associate_external_connection::AssociateExternalConnectionOutput::repository): <p>Information about the connected repository after processing the request.</p>
12    /// - On failure, responds with [`SdkError<AssociateExternalConnectionError>`](crate::operation::associate_external_connection::AssociateExternalConnectionError)
13    pub fn associate_external_connection(
14        &self,
15    ) -> crate::operation::associate_external_connection::builders::AssociateExternalConnectionFluentBuilder {
16        crate::operation::associate_external_connection::builders::AssociateExternalConnectionFluentBuilder::new(self.handle.clone())
17    }
18}