aws_sdk_workmail/client/
associate_member_to_group.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`AssociateMemberToGroup`](crate::operation::associate_member_to_group::builders::AssociateMemberToGroupFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`organization_id(impl Into<String>)`](crate::operation::associate_member_to_group::builders::AssociateMemberToGroupFluentBuilder::organization_id) / [`set_organization_id(Option<String>)`](crate::operation::associate_member_to_group::builders::AssociateMemberToGroupFluentBuilder::set_organization_id):<br>required: **true**<br><p>The organization under which the group exists.</p><br>
    ///   - [`group_id(impl Into<String>)`](crate::operation::associate_member_to_group::builders::AssociateMemberToGroupFluentBuilder::group_id) / [`set_group_id(Option<String>)`](crate::operation::associate_member_to_group::builders::AssociateMemberToGroupFluentBuilder::set_group_id):<br>required: **true**<br><p>The group to which the member (user or group) is associated.</p> <p>The identifier can accept <i>GroupId</i>, <i>Groupname</i>, or <i>email</i>. The following identity formats are available:</p> <ul>  <li>   <p>Group ID: 12345678-1234-1234-1234-123456789012 or S-1-1-12-1234567890-123456789-123456789-1234</p></li>  <li>   <p>Email address: group@domain.tld</p></li>  <li>   <p>Group name: group</p></li> </ul><br>
    ///   - [`member_id(impl Into<String>)`](crate::operation::associate_member_to_group::builders::AssociateMemberToGroupFluentBuilder::member_id) / [`set_member_id(Option<String>)`](crate::operation::associate_member_to_group::builders::AssociateMemberToGroupFluentBuilder::set_member_id):<br>required: **true**<br><p>The member (user or group) to associate to the group.</p> <p>The member ID can accept <i>UserID or GroupId</i>, <i>Username or Groupname</i>, or <i>email</i>.</p> <ul>  <li>   <p>Member: 12345678-1234-1234-1234-123456789012 or S-1-1-12-1234567890-123456789-123456789-1234</p></li>  <li>   <p>Email address: member@domain.tld</p></li>  <li>   <p>Member name: member</p></li> </ul><br>
    /// - On success, responds with [`AssociateMemberToGroupOutput`](crate::operation::associate_member_to_group::AssociateMemberToGroupOutput)
    /// - On failure, responds with [`SdkError<AssociateMemberToGroupError>`](crate::operation::associate_member_to_group::AssociateMemberToGroupError)
    pub fn associate_member_to_group(&self) -> crate::operation::associate_member_to_group::builders::AssociateMemberToGroupFluentBuilder {
        crate::operation::associate_member_to_group::builders::AssociateMemberToGroupFluentBuilder::new(self.handle.clone())
    }
}