aws_sdk_guardduty/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 is configurable:
6    ///   - [`detector_id(impl Into<String>)`](crate::operation::get_master_account::builders::GetMasterAccountFluentBuilder::detector_id) / [`set_detector_id(Option<String>)`](crate::operation::get_master_account::builders::GetMasterAccountFluentBuilder::set_detector_id):<br>required: **true**<br><p>The unique ID of the detector of the GuardDuty member account.</p> <p>To find the <code>detectorId</code> in the current Region, see the Settings page in the GuardDuty console, or run the <a href="https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html">ListDetectors</a> API.</p><br>
7    /// - On success, responds with [`GetMasterAccountOutput`](crate::operation::get_master_account::GetMasterAccountOutput) with field(s):
8    ///   - [`master(Option<Master>)`](crate::operation::get_master_account::GetMasterAccountOutput::master): <p>The administrator account details.</p>
9    /// - On failure, responds with [`SdkError<GetMasterAccountError>`](crate::operation::get_master_account::GetMasterAccountError)
10    #[deprecated(note = "This operation is deprecated, use GetAdministratorAccount instead")]
11    pub fn get_master_account(&self) -> crate::operation::get_master_account::builders::GetMasterAccountFluentBuilder {
12        crate::operation::get_master_account::builders::GetMasterAccountFluentBuilder::new(self.handle.clone())
13    }
14}