aws_sdk_workmail/client/
disassociate_delegate_from_resource.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 [`DisassociateDelegateFromResource`](crate::operation::disassociate_delegate_from_resource::builders::DisassociateDelegateFromResourceFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`organization_id(impl Into<String>)`](crate::operation::disassociate_delegate_from_resource::builders::DisassociateDelegateFromResourceFluentBuilder::organization_id) / [`set_organization_id(Option<String>)`](crate::operation::disassociate_delegate_from_resource::builders::DisassociateDelegateFromResourceFluentBuilder::set_organization_id):<br>required: **true**<br><p>The identifier for the organization under which the resource exists.</p><br>
7    ///   - [`resource_id(impl Into<String>)`](crate::operation::disassociate_delegate_from_resource::builders::DisassociateDelegateFromResourceFluentBuilder::resource_id) / [`set_resource_id(Option<String>)`](crate::operation::disassociate_delegate_from_resource::builders::DisassociateDelegateFromResourceFluentBuilder::set_resource_id):<br>required: **true**<br><p>The identifier of the resource from which delegates' set members are removed.</p> <p>The identifier can accept <i>ResourceId</i>, <i>Resourcename</i>, or <i>email</i>. The following identity formats are available:</p> <ul>  <li>   <p>Resource ID: r-0123456789a0123456789b0123456789</p></li>  <li>   <p>Email address: resource@domain.tld</p></li>  <li>   <p>Resource name: resource</p></li> </ul><br>
8    ///   - [`entity_id(impl Into<String>)`](crate::operation::disassociate_delegate_from_resource::builders::DisassociateDelegateFromResourceFluentBuilder::entity_id) / [`set_entity_id(Option<String>)`](crate::operation::disassociate_delegate_from_resource::builders::DisassociateDelegateFromResourceFluentBuilder::set_entity_id):<br>required: **true**<br><p>The identifier for the member (user, group) to be removed from the resource's delegates.</p> <p>The entity ID can accept <i>UserId or GroupID</i>, <i>Username or Groupname</i>, or <i>email</i>.</p> <ul>  <li>   <p>Entity: 12345678-1234-1234-1234-123456789012 or S-1-1-12-1234567890-123456789-123456789-1234</p></li>  <li>   <p>Email address: entity@domain.tld</p></li>  <li>   <p>Entity: entity</p></li> </ul><br>
9    /// - On success, responds with [`DisassociateDelegateFromResourceOutput`](crate::operation::disassociate_delegate_from_resource::DisassociateDelegateFromResourceOutput)
10    /// - On failure, responds with [`SdkError<DisassociateDelegateFromResourceError>`](crate::operation::disassociate_delegate_from_resource::DisassociateDelegateFromResourceError)
11    pub fn disassociate_delegate_from_resource(
12        &self,
13    ) -> crate::operation::disassociate_delegate_from_resource::builders::DisassociateDelegateFromResourceFluentBuilder {
14        crate::operation::disassociate_delegate_from_resource::builders::DisassociateDelegateFromResourceFluentBuilder::new(self.handle.clone())
15    }
16}