aws-sdk-organizations 1.119.1

AWS SDK for AWS Organizations
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CloseAccount`](crate::operation::close_account::builders::CloseAccountFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`account_id(impl Into<String>)`](crate::operation::close_account::builders::CloseAccountFluentBuilder::account_id) / [`set_account_id(Option<String>)`](crate::operation::close_account::builders::CloseAccountFluentBuilder::set_account_id):<br>required: **true**<br><p>Retrieves the Amazon Web Services account Id for the current <code>CloseAccount</code> API request.</p><br>
    /// - On success, responds with [`CloseAccountOutput`](crate::operation::close_account::CloseAccountOutput)
    /// - On failure, responds with [`SdkError<CloseAccountError>`](crate::operation::close_account::CloseAccountError)
    pub fn close_account(&self) -> crate::operation::close_account::builders::CloseAccountFluentBuilder {
        crate::operation::close_account::builders::CloseAccountFluentBuilder::new(self.handle.clone())
    }
}