aws_sdk_securityhub/client/
get_master_account.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 [`GetMasterAccount`](crate::operation::get_master_account::builders::GetMasterAccountFluentBuilder) operation.
4    ///
5    /// - The fluent builder takes no input, just [`send`](crate::operation::get_master_account::builders::GetMasterAccountFluentBuilder::send) it.
6    /// - On success, responds with [`GetMasterAccountOutput`](crate::operation::get_master_account::GetMasterAccountOutput) with field(s):
7    ///   - [`master(Option<Invitation>)`](crate::operation::get_master_account::GetMasterAccountOutput::master): <p>A list of details about the Security Hub administrator account for the current member account.</p>
8    /// - On failure, responds with [`SdkError<GetMasterAccountError>`](crate::operation::get_master_account::GetMasterAccountError)
9    #[deprecated(note = "This API has been deprecated, use GetAdministratorAccount API instead.")]
10    pub fn get_master_account(&self) -> crate::operation::get_master_account::builders::GetMasterAccountFluentBuilder {
11        crate::operation::get_master_account::builders::GetMasterAccountFluentBuilder::new(self.handle.clone())
12    }
13}