aws_sdk_workmail/client/
create_group.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateGroup`](crate::operation::create_group::builders::CreateGroupFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`organization_id(impl Into<String>)`](crate::operation::create_group::builders::CreateGroupFluentBuilder::organization_id) / [`set_organization_id(Option<String>)`](crate::operation::create_group::builders::CreateGroupFluentBuilder::set_organization_id):<br>required: **true**<br><p>The organization under which the group is to be created.</p><br>
    ///   - [`name(impl Into<String>)`](crate::operation::create_group::builders::CreateGroupFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_group::builders::CreateGroupFluentBuilder::set_name):<br>required: **true**<br><p>The name of the group.</p><br>
    ///   - [`hidden_from_global_address_list(bool)`](crate::operation::create_group::builders::CreateGroupFluentBuilder::hidden_from_global_address_list) / [`set_hidden_from_global_address_list(Option<bool>)`](crate::operation::create_group::builders::CreateGroupFluentBuilder::set_hidden_from_global_address_list):<br>required: **false**<br><p>If this parameter is enabled, the group will be hidden from the address book.</p><br>
    /// - On success, responds with [`CreateGroupOutput`](crate::operation::create_group::CreateGroupOutput) with field(s):
    ///   - [`group_id(Option<String>)`](crate::operation::create_group::CreateGroupOutput::group_id): <p>The identifier of the group.</p>
    /// - On failure, responds with [`SdkError<CreateGroupError>`](crate::operation::create_group::CreateGroupError)
    pub fn create_group(&self) -> crate::operation::create_group::builders::CreateGroupFluentBuilder {
        crate::operation::create_group::builders::CreateGroupFluentBuilder::new(self.handle.clone())
    }
}