aws_sdk_codeartifact/client/
disassociate_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 [`DisassociateExternalConnection`](crate::operation::disassociate_external_connection::builders::DisassociateExternalConnectionFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`domain(impl Into<String>)`](crate::operation::disassociate_external_connection::builders::DisassociateExternalConnectionFluentBuilder::domain) / [`set_domain(Option<String>)`](crate::operation::disassociate_external_connection::builders::DisassociateExternalConnectionFluentBuilder::set_domain):<br>required: **true**<br><p>The name of the domain that contains the repository from which to remove the external repository.</p><br>
7    ///   - [`domain_owner(impl Into<String>)`](crate::operation::disassociate_external_connection::builders::DisassociateExternalConnectionFluentBuilder::domain_owner) / [`set_domain_owner(Option<String>)`](crate::operation::disassociate_external_connection::builders::DisassociateExternalConnectionFluentBuilder::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::disassociate_external_connection::builders::DisassociateExternalConnectionFluentBuilder::repository) / [`set_repository(Option<String>)`](crate::operation::disassociate_external_connection::builders::DisassociateExternalConnectionFluentBuilder::set_repository):<br>required: **true**<br><p>The name of the repository from which the external connection will be removed.</p><br>
9    ///   - [`external_connection(impl Into<String>)`](crate::operation::disassociate_external_connection::builders::DisassociateExternalConnectionFluentBuilder::external_connection) / [`set_external_connection(Option<String>)`](crate::operation::disassociate_external_connection::builders::DisassociateExternalConnectionFluentBuilder::set_external_connection):<br>required: **true**<br><p>The name of the external connection to be removed from the repository.</p><br>
10    /// - On success, responds with [`DisassociateExternalConnectionOutput`](crate::operation::disassociate_external_connection::DisassociateExternalConnectionOutput) with field(s):
11    ///   - [`repository(Option<RepositoryDescription>)`](crate::operation::disassociate_external_connection::DisassociateExternalConnectionOutput::repository): <p>The repository associated with the removed external connection.</p>
12    /// - On failure, responds with [`SdkError<DisassociateExternalConnectionError>`](crate::operation::disassociate_external_connection::DisassociateExternalConnectionError)
13    pub fn disassociate_external_connection(
14        &self,
15    ) -> crate::operation::disassociate_external_connection::builders::DisassociateExternalConnectionFluentBuilder {
16        crate::operation::disassociate_external_connection::builders::DisassociateExternalConnectionFluentBuilder::new(self.handle.clone())
17    }
18}