aws_sdk_guardduty/client/invite_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 [`InviteMembers`](crate::operation::invite_members::builders::InviteMembersFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`detector_id(impl Into<String>)`](crate::operation::invite_members::builders::InviteMembersFluentBuilder::detector_id) / [`set_detector_id(Option<String>)`](crate::operation::invite_members::builders::InviteMembersFluentBuilder::set_detector_id):<br>required: **true**<br><p>The unique ID of the detector of the GuardDuty account with which you want to invite members.</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::invite_members::builders::InviteMembersFluentBuilder::account_ids) / [`set_account_ids(Option<Vec::<String>>)`](crate::operation::invite_members::builders::InviteMembersFluentBuilder::set_account_ids):<br>required: **true**<br><p>A list of account IDs of the accounts that you want to invite to GuardDuty as members.</p><br>
8 /// - [`disable_email_notification(bool)`](crate::operation::invite_members::builders::InviteMembersFluentBuilder::disable_email_notification) / [`set_disable_email_notification(Option<bool>)`](crate::operation::invite_members::builders::InviteMembersFluentBuilder::set_disable_email_notification):<br>required: **false**<br><p>A Boolean value that specifies whether you want to disable email notification to the accounts that you are inviting to GuardDuty as members.</p><br>
9 /// - [`message(impl Into<String>)`](crate::operation::invite_members::builders::InviteMembersFluentBuilder::message) / [`set_message(Option<String>)`](crate::operation::invite_members::builders::InviteMembersFluentBuilder::set_message):<br>required: **false**<br><p>The invitation message that you want to send to the accounts that you're inviting to GuardDuty as members.</p><br>
10 /// - On success, responds with [`InviteMembersOutput`](crate::operation::invite_members::InviteMembersOutput) with field(s):
11 /// - [`unprocessed_accounts(Option<Vec::<UnprocessedAccount>>)`](crate::operation::invite_members::InviteMembersOutput::unprocessed_accounts): <p>A list of objects that contain the unprocessed account and a result string that explains why it was unprocessed.</p>
12 /// - On failure, responds with [`SdkError<InviteMembersError>`](crate::operation::invite_members::InviteMembersError)
13 pub fn invite_members(&self) -> crate::operation::invite_members::builders::InviteMembersFluentBuilder {
14 crate::operation::invite_members::builders::InviteMembersFluentBuilder::new(self.handle.clone())
15 }
16}