aws_sdk_guardduty/client/
get_member_detectors.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 [`GetMemberDetectors`](crate::operation::get_member_detectors::builders::GetMemberDetectorsFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`detector_id(impl Into<String>)`](crate::operation::get_member_detectors::builders::GetMemberDetectorsFluentBuilder::detector_id) / [`set_detector_id(Option<String>)`](crate::operation::get_member_detectors::builders::GetMemberDetectorsFluentBuilder::set_detector_id):<br>required: **true**<br><p>The detector ID for the administrator 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    ///   - [`account_ids(impl Into<String>)`](crate::operation::get_member_detectors::builders::GetMemberDetectorsFluentBuilder::account_ids) / [`set_account_ids(Option<Vec::<String>>)`](crate::operation::get_member_detectors::builders::GetMemberDetectorsFluentBuilder::set_account_ids):<br>required: **true**<br><p>A list of member account IDs.</p><br>
8    /// - On success, responds with [`GetMemberDetectorsOutput`](crate::operation::get_member_detectors::GetMemberDetectorsOutput) with field(s):
9    ///   - [`member_data_source_configurations(Option<Vec::<MemberDataSourceConfiguration>>)`](crate::operation::get_member_detectors::GetMemberDetectorsOutput::member_data_source_configurations): <p>An object that describes which data sources are enabled for a member account.</p>
10    ///   - [`unprocessed_accounts(Option<Vec::<UnprocessedAccount>>)`](crate::operation::get_member_detectors::GetMemberDetectorsOutput::unprocessed_accounts): <p>A list of member account IDs that were unable to be processed along with an explanation for why they were not processed.</p>
11    /// - On failure, responds with [`SdkError<GetMemberDetectorsError>`](crate::operation::get_member_detectors::GetMemberDetectorsError)
12    pub fn get_member_detectors(&self) -> crate::operation::get_member_detectors::builders::GetMemberDetectorsFluentBuilder {
13        crate::operation::get_member_detectors::builders::GetMemberDetectorsFluentBuilder::new(self.handle.clone())
14    }
15}