aws_sdk_guardduty/client/
delete_members.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 [`DeleteMembers`](crate::operation::delete_members::builders::DeleteMembersFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`detector_id(impl Into<String>)`](crate::operation::delete_members::builders::DeleteMembersFluentBuilder::detector_id) / [`set_detector_id(Option<String>)`](crate::operation::delete_members::builders::DeleteMembersFluentBuilder::set_detector_id):<br>required: **true**<br><p>The unique ID of the detector of the GuardDuty account whose members you want to delete.</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::delete_members::builders::DeleteMembersFluentBuilder::account_ids) / [`set_account_ids(Option<Vec::<String>>)`](crate::operation::delete_members::builders::DeleteMembersFluentBuilder::set_account_ids):<br>required: **true**<br><p>A list of account IDs of the GuardDuty member accounts that you want to delete.</p><br>
8    /// - On success, responds with [`DeleteMembersOutput`](crate::operation::delete_members::DeleteMembersOutput) with field(s):
9    ///   - [`unprocessed_accounts(Option<Vec::<UnprocessedAccount>>)`](crate::operation::delete_members::DeleteMembersOutput::unprocessed_accounts): <p>The accounts that could not be processed.</p>
10    /// - On failure, responds with [`SdkError<DeleteMembersError>`](crate::operation::delete_members::DeleteMembersError)
11    pub fn delete_members(&self) -> crate::operation::delete_members::builders::DeleteMembersFluentBuilder {
12        crate::operation::delete_members::builders::DeleteMembersFluentBuilder::new(self.handle.clone())
13    }
14}