aws_sdk_workmail/client/
delete_group.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 [`DeleteGroup`](crate::operation::delete_group::builders::DeleteGroupFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`organization_id(impl Into<String>)`](crate::operation::delete_group::builders::DeleteGroupFluentBuilder::organization_id) / [`set_organization_id(Option<String>)`](crate::operation::delete_group::builders::DeleteGroupFluentBuilder::set_organization_id):<br>required: **true**<br><p>The organization that contains the group.</p><br>
7    ///   - [`group_id(impl Into<String>)`](crate::operation::delete_group::builders::DeleteGroupFluentBuilder::group_id) / [`set_group_id(Option<String>)`](crate::operation::delete_group::builders::DeleteGroupFluentBuilder::set_group_id):<br>required: **true**<br><p>The identifier of the group to be deleted.</p> <p>The identifier can be the <i>GroupId</i>, or <i>Groupname</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>Group name: group</p></li> </ul><br>
8    /// - On success, responds with [`DeleteGroupOutput`](crate::operation::delete_group::DeleteGroupOutput)
9    /// - On failure, responds with [`SdkError<DeleteGroupError>`](crate::operation::delete_group::DeleteGroupError)
10    pub fn delete_group(&self) -> crate::operation::delete_group::builders::DeleteGroupFluentBuilder {
11        crate::operation::delete_group::builders::DeleteGroupFluentBuilder::new(self.handle.clone())
12    }
13}