aws_sdk_codeartifact/client/
delete_domain.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 [`DeleteDomain`](crate::operation::delete_domain::builders::DeleteDomainFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`domain(impl Into<String>)`](crate::operation::delete_domain::builders::DeleteDomainFluentBuilder::domain) / [`set_domain(Option<String>)`](crate::operation::delete_domain::builders::DeleteDomainFluentBuilder::set_domain):<br>required: **true**<br><p>The name of the domain to delete.</p><br>
7    ///   - [`domain_owner(impl Into<String>)`](crate::operation::delete_domain::builders::DeleteDomainFluentBuilder::domain_owner) / [`set_domain_owner(Option<String>)`](crate::operation::delete_domain::builders::DeleteDomainFluentBuilder::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    /// - On success, responds with [`DeleteDomainOutput`](crate::operation::delete_domain::DeleteDomainOutput) with field(s):
9    ///   - [`domain(Option<DomainDescription>)`](crate::operation::delete_domain::DeleteDomainOutput::domain): <p>Contains information about the deleted domain after processing the request.</p>
10    /// - On failure, responds with [`SdkError<DeleteDomainError>`](crate::operation::delete_domain::DeleteDomainError)
11    pub fn delete_domain(&self) -> crate::operation::delete_domain::builders::DeleteDomainFluentBuilder {
12        crate::operation::delete_domain::builders::DeleteDomainFluentBuilder::new(self.handle.clone())
13    }
14}